@hisptz/dhis2-analytics 1.0.66 → 2.0.0-alpha.1
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/components/ChartAnalytics/ChartAnalytics.stories.js +254 -0
- package/dist/components/ChartAnalytics/ChartAnalytics.stories.js.map +1 -0
- package/dist/components/ChartAnalytics/DHIS2Chart.js +36 -0
- package/dist/components/ChartAnalytics/DHIS2Chart.js.map +1 -0
- package/dist/components/ChartAnalytics/components/DownloadMenu/components/Menu.js +52 -0
- package/dist/components/ChartAnalytics/components/DownloadMenu/components/Menu.js.map +1 -0
- package/dist/components/ChartAnalytics/components/DownloadMenu/constants/menu.js +42 -0
- package/dist/components/ChartAnalytics/components/DownloadMenu/constants/menu.js.map +1 -0
- package/dist/components/ChartAnalytics/components/DownloadMenu/index.js +65 -0
- package/dist/components/ChartAnalytics/components/DownloadMenu/index.js.map +1 -0
- package/dist/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.js +3 -0
- package/dist/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.js.map +1 -0
- package/dist/components/ChartAnalytics/hooks/useChart.js +43 -0
- package/dist/components/ChartAnalytics/hooks/useChart.js.map +1 -0
- package/dist/components/ChartAnalytics/index.js +3 -0
- package/dist/components/ChartAnalytics/index.js.map +1 -0
- package/dist/components/ChartAnalytics/models/bar.js +21 -0
- package/dist/components/ChartAnalytics/models/bar.js.map +1 -0
- package/{build/es → dist}/components/ChartAnalytics/models/column.js +12 -9
- package/dist/components/ChartAnalytics/models/column.js.map +1 -0
- package/dist/components/ChartAnalytics/models/index.js +114 -0
- package/dist/components/ChartAnalytics/models/index.js.map +1 -0
- package/{build/es → dist}/components/ChartAnalytics/models/line.js +10 -7
- package/dist/components/ChartAnalytics/models/line.js.map +1 -0
- package/dist/components/ChartAnalytics/models/multi-series.js +112 -0
- package/dist/components/ChartAnalytics/models/multi-series.js.map +1 -0
- package/dist/components/ChartAnalytics/models/pie.js +53 -0
- package/dist/components/ChartAnalytics/models/pie.js.map +1 -0
- package/dist/components/ChartAnalytics/services/export.js +35 -0
- package/dist/components/ChartAnalytics/services/export.js.map +1 -0
- package/dist/components/ChartAnalytics/styles/custom-highchart.css +40 -0
- package/dist/components/ChartAnalytics/styles/custom-highchart.css.map +1 -0
- package/dist/components/ChartAnalytics/types/props.js +3 -0
- package/dist/components/ChartAnalytics/types/props.js.map +1 -0
- package/dist/components/ChartAnalytics/utils/chart.js +130 -0
- package/dist/components/ChartAnalytics/utils/chart.js.map +1 -0
- package/dist/components/CircularProgressDashboard/CircularProgressIndicator.js +66 -0
- package/dist/components/CircularProgressDashboard/CircularProgressIndicator.js.map +1 -0
- package/dist/components/CircularProgressDashboard/CircularProgressIndicator.stories.js +42 -0
- package/dist/components/CircularProgressDashboard/CircularProgressIndicator.stories.js.map +1 -0
- package/dist/components/CircularProgressDashboard/index.js +4 -0
- package/dist/components/CircularProgressDashboard/index.js.map +1 -0
- package/dist/components/CircularProgressDashboard/types/props.js +3 -0
- package/dist/components/CircularProgressDashboard/types/props.js.map +1 -0
- package/dist/components/DHIS2PivotTable/DHIS2PivotTable.js +26 -0
- package/dist/components/DHIS2PivotTable/DHIS2PivotTable.js.map +1 -0
- package/dist/components/DHIS2PivotTable/DHIS2PivotTable.stories.js +30 -0
- package/dist/components/DHIS2PivotTable/DHIS2PivotTable.stories.js.map +1 -0
- package/dist/components/DHIS2PivotTable/components/Table/index.js +10 -0
- package/dist/components/DHIS2PivotTable/components/Table/index.js.map +1 -0
- package/dist/components/DHIS2PivotTable/components/TableBody/TableBody.module.css +11 -0
- package/dist/components/DHIS2PivotTable/components/TableBody/TableBody.module.css.map +1 -0
- package/dist/components/DHIS2PivotTable/components/TableBody/index.js +106 -0
- package/dist/components/DHIS2PivotTable/components/TableBody/index.js.map +1 -0
- package/dist/components/DHIS2PivotTable/components/TableHeaders/TableHeaders.module.css +10 -0
- package/dist/components/DHIS2PivotTable/components/TableHeaders/TableHeaders.module.css.map +1 -0
- package/dist/components/DHIS2PivotTable/components/TableHeaders/index.js +94 -0
- package/dist/components/DHIS2PivotTable/components/TableHeaders/index.js.map +1 -0
- package/dist/components/DHIS2PivotTable/index.js +4 -0
- package/dist/components/DHIS2PivotTable/index.js.map +1 -0
- package/dist/components/DHIS2PivotTable/interfaces/index.js +3 -0
- package/dist/components/DHIS2PivotTable/interfaces/index.js.map +1 -0
- package/dist/components/DHIS2PivotTable/services/engine.js +87 -0
- package/dist/components/DHIS2PivotTable/services/engine.js.map +1 -0
- package/dist/components/DHIS2PivotTable/state/engine.js +17 -0
- package/dist/components/DHIS2PivotTable/state/engine.js.map +1 -0
- package/dist/components/Map/DHIS2Map.js +65 -0
- package/dist/components/Map/DHIS2Map.js.map +1 -0
- package/dist/components/Map/DHIS2Map.stories.js +366 -0
- package/dist/components/Map/DHIS2Map.stories.js.map +1 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.js +41 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.js.map +1 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.stories.js +34 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.stories.js.map +1 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.js +26 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.js.map +1 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.stories.js +21 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.stories.js.map +1 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.js +67 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.js.map +1 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.js +134 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.js.map +1 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/Name.js +44 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/Name.js.map +1 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.js +67 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.js.map +1 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.js +24 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.js.map +1 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.js +67 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.js.map +1 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/hooks/data.js +45 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/hooks/data.js.map +1 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/index.js +4 -0
- package/dist/components/Map/components/EarthEngineLayerConfiguration/index.js.map +1 -0
- package/dist/components/Map/components/MapArea/index.js +100 -0
- package/dist/components/Map/components/MapArea/index.js.map +1 -0
- package/dist/components/Map/components/MapArea/interfaces/index.js +3 -0
- package/dist/components/Map/components/MapArea/interfaces/index.js.map +1 -0
- package/dist/components/Map/components/MapControls/components/CustomControl/index.js +16 -0
- package/dist/components/Map/components/MapControls/components/CustomControl/index.js.map +1 -0
- package/dist/components/Map/components/MapControls/components/DownloadControl/index.js +15 -0
- package/dist/components/Map/components/MapControls/components/DownloadControl/index.js.map +1 -0
- package/dist/components/Map/components/MapControls/components/FullscreenControl/index.js +13 -0
- package/dist/components/Map/components/MapControls/components/FullscreenControl/index.js.map +1 -0
- package/dist/components/Map/components/MapControls/index.js +35 -0
- package/dist/components/Map/components/MapControls/index.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.js +10 -0
- package/dist/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/BoundaryLayer/index.js +52 -0
- package/dist/components/Map/components/MapLayer/components/BoundaryLayer/index.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.js +100 -0
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.js +457 -0
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.js +32 -0
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/index.js +197 -0
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/index.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.js +3 -0
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js +31466 -0
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js.map +1 -0
- package/{build/es → dist}/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.js +106 -146
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.js +93 -0
- package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/LegendArea/LegendArea.module.css +10 -0
- package/dist/components/Map/components/MapLayer/components/LegendArea/LegendArea.module.css.map +1 -0
- package/dist/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.js +17 -0
- package/dist/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/LegendArea/index.js +179 -0
- package/dist/components/Map/components/MapLayer/components/LegendArea/index.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.js +92 -0
- package/dist/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/PointLayer/hooks/index.js +11 -0
- package/dist/components/Map/components/MapLayer/components/PointLayer/hooks/index.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/PointLayer/index.js +48 -0
- package/dist/components/Map/components/MapLayer/components/PointLayer/index.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.js +64 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.js +130 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.js +41 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.js +50 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.js +56 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.js +40 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.js +40 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.js +12 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/index.js +55 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/index.js.map +1 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/styles/legends.css +56 -0
- package/dist/components/Map/components/MapLayer/components/ThematicLayer/styles/legends.css.map +1 -0
- package/dist/components/Map/components/MapLayer/index.js +32 -0
- package/dist/components/Map/components/MapLayer/index.js.map +1 -0
- package/dist/components/Map/components/MapLayer/interfaces/index.js +10 -0
- package/dist/components/Map/components/MapLayer/interfaces/index.js.map +1 -0
- package/dist/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.js +405 -0
- package/dist/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.js.map +1 -0
- package/dist/components/Map/components/MapProvider/components/MapLayerProvider/index.js +115 -0
- package/dist/components/Map/components/MapProvider/components/MapLayerProvider/index.js.map +1 -0
- package/dist/components/Map/components/MapProvider/hooks/index.js +16 -0
- package/dist/components/Map/components/MapProvider/hooks/index.js.map +1 -0
- package/dist/components/Map/components/MapProvider/index.js +95 -0
- package/dist/components/Map/components/MapProvider/index.js.map +1 -0
- package/dist/components/Map/components/MapUpdater/index.js +11 -0
- package/dist/components/Map/components/MapUpdater/index.js.map +1 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.js +41 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.js.map +1 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.stories.js +24 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.stories.js.map +1 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.js +174 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.js.map +1 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.stories.js +21 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.stories.js.map +1 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.js +36 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.js.map +1 -0
- package/{build/es/components/Map → dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect}/constants/colors.js +18 -3
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.js.map +1 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.js +71 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.js.map +1 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/styles/ColorScale.module.css +15 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/styles/ColorScale.module.css.map +1 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/styles/ColorScaleSelect.module.css +12 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/styles/ColorScaleSelect.module.css.map +1 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.js +82 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.js.map +1 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.js +57 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.js.map +1 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.js +44 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.js.map +1 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.js +60 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.js.map +1 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/RadiusField.js +54 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/RadiusField.js.map +1 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/TypeField.js +63 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/components/TypeField.js.map +1 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/index.js +5 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/index.js.map +1 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/types/index.js +3 -0
- package/dist/components/Map/components/ThematicLayerConfiguration/types/index.js.map +1 -0
- package/{build/es/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect → dist/components/Map}/constants/colors.js +19 -3
- package/dist/components/Map/constants/colors.js.map +1 -0
- package/dist/components/Map/constants/legendSet.js +23 -0
- package/dist/components/Map/constants/legendSet.js.map +1 -0
- package/dist/components/Map/hooks/map.js +44 -0
- package/dist/components/Map/hooks/map.js.map +1 -0
- package/dist/components/Map/index.js +7 -0
- package/dist/components/Map/index.js.map +1 -0
- package/dist/components/Map/interfaces/index.js +3 -0
- package/dist/components/Map/interfaces/index.js.map +1 -0
- package/dist/components/Map/state/index.js +18 -0
- package/dist/components/Map/state/index.js.map +1 -0
- package/dist/components/Map/utils/colors.js +85 -0
- package/dist/components/Map/utils/colors.js.map +1 -0
- package/dist/components/Map/utils/helpers.js +18 -0
- package/dist/components/Map/utils/helpers.js.map +1 -0
- package/dist/components/Map/utils/map.js +138 -0
- package/dist/components/Map/utils/map.js.map +1 -0
- package/dist/components/SingleValueContainer/SingleValueContainer.stories.js +145 -0
- package/dist/components/SingleValueContainer/SingleValueContainer.stories.js.map +1 -0
- package/dist/components/SingleValueContainer/SingleValueVisualizer.js +44 -0
- package/dist/components/SingleValueContainer/SingleValueVisualizer.js.map +1 -0
- package/dist/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.js +49 -0
- package/dist/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.js.map +1 -0
- package/dist/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.js +22 -0
- package/dist/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.js.map +1 -0
- package/dist/components/SingleValueContainer/index.js +5 -0
- package/dist/components/SingleValueContainer/index.js.map +1 -0
- package/dist/components/SingleValueContainer/styles/SingleValueContainer.module.css +32 -0
- package/dist/components/SingleValueContainer/styles/SingleValueContainer.module.css.map +1 -0
- package/dist/components/SingleValueContainer/types/props.js +3 -0
- package/dist/components/SingleValueContainer/types/props.js.map +1 -0
- package/dist/components/Visualization/components/AnalyticsDataProvider/index.js +94 -0
- package/dist/components/Visualization/components/AnalyticsDataProvider/index.js.map +1 -0
- package/dist/components/Visualization/components/DimensionsProvider/index.js +35 -0
- package/dist/components/Visualization/components/DimensionsProvider/index.js.map +1 -0
- package/dist/components/Visualization/components/LayoutProvider/index.js +18 -0
- package/dist/components/Visualization/components/LayoutProvider/index.js.map +1 -0
- package/dist/components/Visualization/components/VisualizationDimensionSelector/index.js +85 -0
- package/dist/components/Visualization/components/VisualizationDimensionSelector/index.js.map +1 -0
- package/dist/components/Visualization/components/VisualizationProvider/index.js +19 -0
- package/dist/components/Visualization/components/VisualizationProvider/index.js.map +1 -0
- package/dist/components/Visualization/components/VisualizationSelector/index.js +167 -0
- package/dist/components/Visualization/components/VisualizationSelector/index.js.map +1 -0
- package/dist/components/Visualization/components/VisualizationTypeProvider/index.js +27 -0
- package/dist/components/Visualization/components/VisualizationTypeProvider/index.js.map +1 -0
- package/dist/components/Visualization/components/VisualizationTypeSelector/index.js +55 -0
- package/dist/components/Visualization/components/VisualizationTypeSelector/index.js.map +1 -0
- package/dist/components/Visualization/index.js +113 -0
- package/dist/components/Visualization/index.js.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/types/components/ChartAnalytics/DHIS2Chart.d.ts +26 -0
- package/dist/types/components/ChartAnalytics/DHIS2Chart.d.ts.map +1 -0
- package/{build → dist}/types/components/ChartAnalytics/components/DownloadMenu/components/Menu.d.ts +3 -3
- package/dist/types/components/ChartAnalytics/components/DownloadMenu/components/Menu.d.ts.map +1 -0
- package/{build → dist}/types/components/ChartAnalytics/components/DownloadMenu/constants/menu.d.ts +1 -0
- package/dist/types/components/ChartAnalytics/components/DownloadMenu/constants/menu.d.ts.map +1 -0
- package/{build → dist}/types/components/ChartAnalytics/components/DownloadMenu/index.d.ts +3 -2
- package/dist/types/components/ChartAnalytics/components/DownloadMenu/index.d.ts.map +1 -0
- package/{build → dist}/types/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.d.ts +1 -0
- package/dist/types/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.d.ts.map +1 -0
- package/{build → dist}/types/components/ChartAnalytics/hooks/useChart.d.ts +3 -2
- package/dist/types/components/ChartAnalytics/hooks/useChart.d.ts.map +1 -0
- package/dist/types/components/ChartAnalytics/index.d.ts +2 -0
- package/dist/types/components/ChartAnalytics/index.d.ts.map +1 -0
- package/{build → dist}/types/components/ChartAnalytics/models/bar.d.ts +2 -1
- package/dist/types/components/ChartAnalytics/models/bar.d.ts.map +1 -0
- package/{build → dist}/types/components/ChartAnalytics/models/column.d.ts +2 -1
- package/dist/types/components/ChartAnalytics/models/column.d.ts.map +1 -0
- package/{build → dist}/types/components/ChartAnalytics/models/index.d.ts +2 -1
- package/dist/types/components/ChartAnalytics/models/index.d.ts.map +1 -0
- package/{build → dist}/types/components/ChartAnalytics/models/line.d.ts +2 -1
- package/dist/types/components/ChartAnalytics/models/line.d.ts.map +1 -0
- package/{build → dist}/types/components/ChartAnalytics/models/multi-series.d.ts +2 -1
- package/dist/types/components/ChartAnalytics/models/multi-series.d.ts.map +1 -0
- package/{build → dist}/types/components/ChartAnalytics/models/pie.d.ts +2 -1
- package/dist/types/components/ChartAnalytics/models/pie.d.ts.map +1 -0
- package/{build → dist}/types/components/ChartAnalytics/services/export.d.ts +1 -0
- package/dist/types/components/ChartAnalytics/services/export.d.ts.map +1 -0
- package/{build → dist}/types/components/ChartAnalytics/types/props.d.ts +1 -0
- package/dist/types/components/ChartAnalytics/types/props.d.ts.map +1 -0
- package/{build → dist}/types/components/ChartAnalytics/utils/chart.d.ts +3 -2
- package/dist/types/components/ChartAnalytics/utils/chart.d.ts.map +1 -0
- package/dist/types/components/CircularProgressDashboard/CircularProgressIndicator.d.ts +6 -0
- package/dist/types/components/CircularProgressDashboard/CircularProgressIndicator.d.ts.map +1 -0
- package/dist/types/components/CircularProgressDashboard/index.d.ts +3 -0
- package/dist/types/components/CircularProgressDashboard/index.d.ts.map +1 -0
- package/{build → dist}/types/components/CircularProgressDashboard/types/props.d.ts +1 -0
- package/dist/types/components/CircularProgressDashboard/types/props.d.ts.map +1 -0
- package/{build/types/components/CustomPivotTable/index.d.ts → dist/types/components/DHIS2PivotTable/DHIS2PivotTable.d.ts} +8 -12
- package/dist/types/components/DHIS2PivotTable/DHIS2PivotTable.d.ts.map +1 -0
- package/dist/types/components/DHIS2PivotTable/components/Table/index.d.ts +9 -0
- package/dist/types/components/DHIS2PivotTable/components/Table/index.d.ts.map +1 -0
- package/dist/types/components/DHIS2PivotTable/components/TableBody/index.d.ts +2 -0
- package/dist/types/components/DHIS2PivotTable/components/TableBody/index.d.ts.map +1 -0
- package/dist/types/components/DHIS2PivotTable/components/TableHeaders/index.d.ts +2 -0
- package/dist/types/components/DHIS2PivotTable/components/TableHeaders/index.d.ts.map +1 -0
- package/dist/types/components/DHIS2PivotTable/index.d.ts +3 -0
- package/dist/types/components/DHIS2PivotTable/index.d.ts.map +1 -0
- package/{build/types/components/CustomPivotTable → dist/types/components/DHIS2PivotTable}/interfaces/index.d.ts +1 -0
- package/dist/types/components/DHIS2PivotTable/interfaces/index.d.ts.map +1 -0
- package/{build/types/components/CustomPivotTable → dist/types/components/DHIS2PivotTable}/services/engine.d.ts +4 -3
- package/dist/types/components/DHIS2PivotTable/services/engine.d.ts.map +1 -0
- package/dist/types/components/DHIS2PivotTable/state/engine.d.ts +8 -0
- package/dist/types/components/DHIS2PivotTable/state/engine.d.ts.map +1 -0
- package/dist/types/components/Map/DHIS2Map.d.ts +9 -0
- package/dist/types/components/Map/DHIS2Map.d.ts.map +1 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.d.ts +10 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.d.ts.map +1 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.d.ts +9 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.d.ts.map +1 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.d.ts +2 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.d.ts.map +1 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.d.ts +2 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.d.ts.map +1 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/Name.d.ts +2 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/Name.d.ts.map +1 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.d.ts +2 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.d.ts.map +1 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.d.ts +2 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.d.ts.map +1 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.d.ts +4 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.d.ts.map +1 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/hooks/data.d.ts +8 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/hooks/data.d.ts.map +1 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/index.d.ts +3 -0
- package/dist/types/components/Map/components/EarthEngineLayerConfiguration/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapArea/index.d.ts +2 -1
- package/dist/types/components/Map/components/MapArea/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapArea/interfaces/index.d.ts +1 -0
- package/dist/types/components/Map/components/MapArea/interfaces/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapControls/components/CustomControl/index.d.ts +2 -1
- package/dist/types/components/Map/components/MapControls/components/CustomControl/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapControls/components/DownloadControl/index.d.ts +2 -2
- package/dist/types/components/Map/components/MapControls/components/DownloadControl/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapControls/components/FullscreenControl/index.d.ts +1 -0
- package/dist/types/components/Map/components/MapControls/components/FullscreenControl/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapControls/index.d.ts +6 -0
- package/dist/types/components/Map/components/MapControls/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.d.ts +2 -0
- package/dist/types/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapLayer/components/BoundaryLayer/index.d.ts +6 -6
- package/dist/types/components/Map/components/MapLayer/components/BoundaryLayer/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.d.ts +4 -3
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.d.ts +2 -1
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.d.ts +3 -2
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/index.d.ts +4 -0
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.d.ts +2 -1
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.d.ts +3 -2
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.d.ts +3 -2
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.d.ts +3 -3
- package/dist/types/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapLayer/components/LegendArea/index.d.ts +4 -4
- package/dist/types/components/Map/components/MapLayer/components/LegendArea/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.d.ts +1 -0
- package/dist/types/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/PointLayer/hooks/index.d.ts +3 -0
- package/dist/types/components/Map/components/MapLayer/components/PointLayer/hooks/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/PointLayer/index.d.ts +2 -0
- package/dist/types/components/Map/components/MapLayer/components/PointLayer/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.d.ts +2 -2
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.d.ts +3 -2
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.d.ts +2 -1
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.d.ts +3 -3
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.d.ts +4 -3
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.d.ts +12 -0
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.d.ts +5 -0
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.d.ts +3 -0
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/index.d.ts +5 -0
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapLayer/index.d.ts +3 -3
- package/dist/types/components/Map/components/MapLayer/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapLayer/interfaces/index.d.ts +5 -4
- package/dist/types/components/Map/components/MapLayer/interfaces/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.d.ts +1 -0
- package/dist/types/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapProvider/components/MapLayerProvider/index.d.ts +7 -0
- package/dist/types/components/Map/components/MapProvider/components/MapLayerProvider/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapProvider/hooks/index.d.ts +4 -3
- package/dist/types/components/Map/components/MapProvider/hooks/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapProvider/index.d.ts +3 -0
- package/dist/types/components/Map/components/MapProvider/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/MapUpdater/index.d.ts +2 -2
- package/dist/types/components/Map/components/MapUpdater/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.d.ts +3 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.d.ts.map +1 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.d.ts +3 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.d.ts.map +1 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.d.ts +8 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.d.ts +1 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.d.ts +2 -2
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.d.ts +2 -1
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.d.ts.map +1 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.d.ts +2 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.d.ts +2 -2
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.d.ts +2 -2
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/RadiusField.d.ts +2 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/RadiusField.d.ts.map +1 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/TypeField.d.ts +2 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/TypeField.d.ts.map +1 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/index.d.ts +4 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/types/index.d.ts +15 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/types/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/constants/colors.d.ts +1 -0
- package/dist/types/components/Map/constants/colors.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/constants/legendSet.d.ts +1 -0
- package/dist/types/components/Map/constants/legendSet.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/hooks/map.d.ts +1 -0
- package/dist/types/components/Map/hooks/map.d.ts.map +1 -0
- package/dist/types/components/Map/index.d.ts +6 -0
- package/dist/types/components/Map/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/interfaces/index.d.ts +3 -2
- package/dist/types/components/Map/interfaces/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/state/index.d.ts +3 -2
- package/dist/types/components/Map/state/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/utils/colors.d.ts +2 -1
- package/dist/types/components/Map/utils/colors.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/utils/helpers.d.ts +1 -0
- package/dist/types/components/Map/utils/helpers.d.ts.map +1 -0
- package/{build → dist}/types/components/Map/utils/map.d.ts +1 -0
- package/dist/types/components/Map/utils/map.d.ts.map +1 -0
- package/dist/types/components/SingleValueContainer/SingleValueVisualizer.d.ts +11 -0
- package/dist/types/components/SingleValueContainer/SingleValueVisualizer.d.ts.map +1 -0
- package/{build → dist}/types/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.d.ts +2 -1
- package/dist/types/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.d.ts.map +1 -0
- package/{build → dist}/types/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.d.ts +2 -1
- package/dist/types/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.d.ts.map +1 -0
- package/dist/types/components/SingleValueContainer/index.d.ts +4 -0
- package/dist/types/components/SingleValueContainer/index.d.ts.map +1 -0
- package/{build → dist}/types/components/SingleValueContainer/types/props.d.ts +3 -1
- package/dist/types/components/SingleValueContainer/types/props.d.ts.map +1 -0
- package/{build → dist}/types/components/Visualization/components/AnalyticsDataProvider/index.d.ts +2 -1
- package/dist/types/components/Visualization/components/AnalyticsDataProvider/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Visualization/components/DimensionsProvider/index.d.ts +2 -1
- package/dist/types/components/Visualization/components/DimensionsProvider/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Visualization/components/LayoutProvider/index.d.ts +3 -2
- package/dist/types/components/Visualization/components/LayoutProvider/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Visualization/components/VisualizationDimensionSelector/index.d.ts +3 -3
- package/dist/types/components/Visualization/components/VisualizationDimensionSelector/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Visualization/components/VisualizationProvider/index.d.ts +5 -4
- package/dist/types/components/Visualization/components/VisualizationProvider/index.d.ts.map +1 -0
- package/dist/types/components/Visualization/components/VisualizationSelector/index.d.ts +23 -0
- package/dist/types/components/Visualization/components/VisualizationSelector/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Visualization/components/VisualizationTypeProvider/index.d.ts +3 -2
- package/dist/types/components/Visualization/components/VisualizationTypeProvider/index.d.ts.map +1 -0
- package/dist/types/components/Visualization/components/VisualizationTypeSelector/index.d.ts +2 -0
- package/dist/types/components/Visualization/components/VisualizationTypeSelector/index.d.ts.map +1 -0
- package/{build → dist}/types/components/Visualization/index.d.ts +8 -8
- package/dist/types/components/Visualization/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +59 -63
- package/README.md +0 -45
- package/build/cjs/components/ChartAnalytics/ChartAnalytics.test.js +0 -51
- package/build/cjs/components/ChartAnalytics/components/DownloadMenu/components/Menu.js +0 -48
- package/build/cjs/components/ChartAnalytics/components/DownloadMenu/constants/menu.js +0 -34
- package/build/cjs/components/ChartAnalytics/components/DownloadMenu/index.js +0 -65
- package/build/cjs/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.js +0 -1
- package/build/cjs/components/ChartAnalytics/hooks/useChart.js +0 -38
- package/build/cjs/components/ChartAnalytics/index.js +0 -86
- package/build/cjs/components/ChartAnalytics/models/bar.js +0 -24
- package/build/cjs/components/ChartAnalytics/models/column.js +0 -53
- package/build/cjs/components/ChartAnalytics/models/index.js +0 -112
- package/build/cjs/components/ChartAnalytics/models/line.js +0 -35
- package/build/cjs/components/ChartAnalytics/models/multi-series.js +0 -111
- package/build/cjs/components/ChartAnalytics/models/pie.js +0 -53
- package/build/cjs/components/ChartAnalytics/services/export.js +0 -50
- package/build/cjs/components/ChartAnalytics/styles/custom-highchart.css +0 -48
- package/build/cjs/components/ChartAnalytics/types/props.js +0 -1
- package/build/cjs/components/ChartAnalytics/utils/chart.js +0 -138
- package/build/cjs/components/CircularProgressDashboard/CircularProgressIndicator.test.js +0 -13
- package/build/cjs/components/CircularProgressDashboard/index.js +0 -64
- package/build/cjs/components/CircularProgressDashboard/types/props.js +0 -1
- package/build/cjs/components/CustomPivotTable/components/Table/index.js +0 -16
- package/build/cjs/components/CustomPivotTable/components/TableBody/TableBody.module.css +0 -12
- package/build/cjs/components/CustomPivotTable/components/TableBody/index.js +0 -109
- package/build/cjs/components/CustomPivotTable/components/TableHeaders/TableHeaders.module.css +0 -10
- package/build/cjs/components/CustomPivotTable/components/TableHeaders/index.js +0 -89
- package/build/cjs/components/CustomPivotTable/index.js +0 -30
- package/build/cjs/components/CustomPivotTable/interfaces/index.js +0 -1
- package/build/cjs/components/CustomPivotTable/services/engine.js +0 -89
- package/build/cjs/components/CustomPivotTable/state/engine.js +0 -23
- package/build/cjs/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.stories.js +0 -32
- package/build/cjs/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.stories.js +0 -40
- package/build/cjs/components/Map/components/EarthEngineLayerConfiguration/index.js +0 -458
- package/build/cjs/components/Map/components/MapArea/index.js +0 -101
- package/build/cjs/components/Map/components/MapArea/interfaces/index.js +0 -1
- package/build/cjs/components/Map/components/MapControls/components/CustomControl/index.js +0 -32
- package/build/cjs/components/Map/components/MapControls/components/DownloadControl/index.js +0 -25
- package/build/cjs/components/Map/components/MapControls/components/FullscreenControl/index.js +0 -13
- package/build/cjs/components/Map/components/MapControls/index.js +0 -42
- package/build/cjs/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.js +0 -13
- package/build/cjs/components/Map/components/MapLayer/components/BoundaryLayer/index.js +0 -51
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.js +0 -104
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.js +0 -379
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.js +0 -36
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/index.js +0 -200
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.js +0 -1
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js +0 -15
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.js +0 -403
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.js +0 -124
- package/build/cjs/components/Map/components/MapLayer/components/LegendArea/LegendArea.module.css +0 -12
- package/build/cjs/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.js +0 -26
- package/build/cjs/components/Map/components/MapLayer/components/LegendArea/index.js +0 -180
- package/build/cjs/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.js +0 -86
- package/build/cjs/components/Map/components/MapLayer/components/PointLayer/hooks/index.js +0 -14
- package/build/cjs/components/Map/components/MapLayer/components/PointLayer/index.js +0 -46
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.js +0 -57
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.js +0 -145
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.js +0 -43
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.js +0 -56
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.js +0 -61
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.js +0 -43
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.js +0 -35
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.js +0 -15
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/index.js +0 -57
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/styles/legends.css +0 -62
- package/build/cjs/components/Map/components/MapLayer/index.js +0 -40
- package/build/cjs/components/Map/components/MapLayer/interfaces/index.js +0 -8
- package/build/cjs/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.js +0 -399
- package/build/cjs/components/Map/components/MapProvider/components/MapLayerProvider/index.js +0 -116
- package/build/cjs/components/Map/components/MapProvider/hooks/index.js +0 -19
- package/build/cjs/components/Map/components/MapProvider/index.js +0 -121
- package/build/cjs/components/Map/components/MapUpdater/index.js +0 -24
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.stories.js +0 -32
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.stories.js +0 -40
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.js +0 -40
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.js +0 -428
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.js +0 -63
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/styles/ColorScale.module.css +0 -15
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/styles/ColorScaleSelect.module.css +0 -12
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.js +0 -72
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.js +0 -71
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.js +0 -47
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.js +0 -79
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/index.js +0 -265
- package/build/cjs/components/Map/constants/colors.js +0 -429
- package/build/cjs/components/Map/constants/legendSet.js +0 -22
- package/build/cjs/components/Map/hooks/map.js +0 -52
- package/build/cjs/components/Map/index.js +0 -108
- package/build/cjs/components/Map/interfaces/index.js +0 -1
- package/build/cjs/components/Map/state/index.js +0 -23
- package/build/cjs/components/Map/utils/colors.js +0 -78
- package/build/cjs/components/Map/utils/helpers.js +0 -25
- package/build/cjs/components/Map/utils/map.js +0 -161
- package/build/cjs/components/SingleValueContainer/SingleValueContainer.test.js +0 -23
- package/build/cjs/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.js +0 -54
- package/build/cjs/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.js +0 -24
- package/build/cjs/components/SingleValueContainer/index.js +0 -59
- package/build/cjs/components/SingleValueContainer/styles/SingleValueContainer.module.css +0 -39
- package/build/cjs/components/SingleValueContainer/types/props.js +0 -1
- package/build/cjs/components/Visualization/components/AnalyticsDataProvider/index.js +0 -102
- package/build/cjs/components/Visualization/components/DimensionsProvider/index.js +0 -56
- package/build/cjs/components/Visualization/components/LayoutProvider/index.js +0 -31
- package/build/cjs/components/Visualization/components/VisualizationDimensionSelector/index.js +0 -77
- package/build/cjs/components/Visualization/components/VisualizationProvider/index.js +0 -29
- package/build/cjs/components/Visualization/components/VisualizationSelector/index.js +0 -180
- package/build/cjs/components/Visualization/components/VisualizationTypeProvider/index.js +0 -40
- package/build/cjs/components/Visualization/components/VisualizationTypeSelector/index.js +0 -54
- package/build/cjs/components/Visualization/index.js +0 -96
- package/build/cjs/index.js +0 -71
- package/build/cjs/locales/en/translations.json +0 -138
- package/build/cjs/locales/index.js +0 -22
- package/build/es/components/ChartAnalytics/ChartAnalytics.test.js +0 -46
- package/build/es/components/ChartAnalytics/components/DownloadMenu/components/Menu.js +0 -41
- package/build/es/components/ChartAnalytics/components/DownloadMenu/constants/menu.js +0 -26
- package/build/es/components/ChartAnalytics/components/DownloadMenu/index.js +0 -57
- package/build/es/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.js +0 -1
- package/build/es/components/ChartAnalytics/hooks/useChart.js +0 -32
- package/build/es/components/ChartAnalytics/index.js +0 -40
- package/build/es/components/ChartAnalytics/models/bar.js +0 -16
- package/build/es/components/ChartAnalytics/models/index.js +0 -105
- package/build/es/components/ChartAnalytics/models/multi-series.js +0 -104
- package/build/es/components/ChartAnalytics/models/pie.js +0 -46
- package/build/es/components/ChartAnalytics/services/export.js +0 -36
- package/build/es/components/ChartAnalytics/styles/custom-highchart.css +0 -48
- package/build/es/components/ChartAnalytics/types/props.js +0 -1
- package/build/es/components/ChartAnalytics/utils/chart.js +0 -127
- package/build/es/components/CircularProgressDashboard/CircularProgressIndicator.test.js +0 -10
- package/build/es/components/CircularProgressDashboard/index.js +0 -42
- package/build/es/components/CircularProgressDashboard/types/props.js +0 -1
- package/build/es/components/CustomPivotTable/components/Table/index.js +0 -9
- package/build/es/components/CustomPivotTable/components/TableBody/TableBody.module.css +0 -12
- package/build/es/components/CustomPivotTable/components/TableBody/index.js +0 -100
- package/build/es/components/CustomPivotTable/components/TableHeaders/TableHeaders.module.css +0 -10
- package/build/es/components/CustomPivotTable/components/TableHeaders/index.js +0 -82
- package/build/es/components/CustomPivotTable/index.js +0 -22
- package/build/es/components/CustomPivotTable/interfaces/index.js +0 -1
- package/build/es/components/CustomPivotTable/services/engine.js +0 -82
- package/build/es/components/CustomPivotTable/state/engine.js +0 -14
- package/build/es/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.stories.js +0 -23
- package/build/es/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.stories.js +0 -31
- package/build/es/components/Map/components/EarthEngineLayerConfiguration/index.js +0 -448
- package/build/es/components/Map/components/MapArea/index.js +0 -91
- package/build/es/components/Map/components/MapArea/interfaces/index.js +0 -1
- package/build/es/components/Map/components/MapControls/components/CustomControl/index.js +0 -25
- package/build/es/components/Map/components/MapControls/components/DownloadControl/index.js +0 -18
- package/build/es/components/Map/components/MapControls/components/FullscreenControl/index.js +0 -6
- package/build/es/components/Map/components/MapControls/index.js +0 -35
- package/build/es/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.js +0 -7
- package/build/es/components/Map/components/MapLayer/components/BoundaryLayer/index.js +0 -41
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.js +0 -93
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.js +0 -369
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.js +0 -29
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/index.js +0 -191
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.js +0 -1
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js +0 -15
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.js +0 -111
- package/build/es/components/Map/components/MapLayer/components/LegendArea/LegendArea.module.css +0 -12
- package/build/es/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.js +0 -19
- package/build/es/components/Map/components/MapLayer/components/LegendArea/index.js +0 -171
- package/build/es/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.js +0 -76
- package/build/es/components/Map/components/MapLayer/components/PointLayer/hooks/index.js +0 -8
- package/build/es/components/Map/components/MapLayer/components/PointLayer/index.js +0 -39
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.js +0 -49
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.js +0 -133
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.js +0 -33
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.js +0 -47
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.js +0 -50
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.js +0 -36
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.js +0 -28
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.js +0 -9
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/index.js +0 -50
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/styles/legends.css +0 -62
- package/build/es/components/Map/components/MapLayer/index.js +0 -33
- package/build/es/components/Map/components/MapLayer/interfaces/index.js +0 -1
- package/build/es/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.js +0 -391
- package/build/es/components/Map/components/MapProvider/components/MapLayerProvider/index.js +0 -107
- package/build/es/components/Map/components/MapProvider/hooks/index.js +0 -11
- package/build/es/components/Map/components/MapProvider/index.js +0 -112
- package/build/es/components/Map/components/MapUpdater/index.js +0 -17
- package/build/es/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.stories.js +0 -23
- package/build/es/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.stories.js +0 -31
- package/build/es/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.js +0 -33
- package/build/es/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.js +0 -53
- package/build/es/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/styles/ColorScale.module.css +0 -15
- package/build/es/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/styles/ColorScaleSelect.module.css +0 -12
- package/build/es/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.js +0 -56
- package/build/es/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.js +0 -64
- package/build/es/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.js +0 -38
- package/build/es/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.js +0 -70
- package/build/es/components/Map/components/ThematicLayerConfiguration/index.js +0 -254
- package/build/es/components/Map/constants/legendSet.js +0 -15
- package/build/es/components/Map/hooks/map.js +0 -44
- package/build/es/components/Map/index.js +0 -51
- package/build/es/components/Map/interfaces/index.js +0 -1
- package/build/es/components/Map/state/index.js +0 -14
- package/build/es/components/Map/utils/colors.js +0 -61
- package/build/es/components/Map/utils/helpers.js +0 -14
- package/build/es/components/Map/utils/map.js +0 -147
- package/build/es/components/SingleValueContainer/SingleValueContainer.test.js +0 -20
- package/build/es/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.js +0 -47
- package/build/es/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.js +0 -17
- package/build/es/components/SingleValueContainer/index.js +0 -30
- package/build/es/components/SingleValueContainer/styles/SingleValueContainer.module.css +0 -39
- package/build/es/components/SingleValueContainer/types/props.js +0 -1
- package/build/es/components/Visualization/components/AnalyticsDataProvider/index.js +0 -93
- package/build/es/components/Visualization/components/DimensionsProvider/index.js +0 -44
- package/build/es/components/Visualization/components/LayoutProvider/index.js +0 -20
- package/build/es/components/Visualization/components/VisualizationDimensionSelector/index.js +0 -68
- package/build/es/components/Visualization/components/VisualizationProvider/index.js +0 -22
- package/build/es/components/Visualization/components/VisualizationSelector/index.js +0 -166
- package/build/es/components/Visualization/components/VisualizationTypeProvider/index.js +0 -25
- package/build/es/components/Visualization/components/VisualizationTypeSelector/index.js +0 -45
- package/build/es/components/Visualization/index.js +0 -89
- package/build/es/index.js +0 -7
- package/build/es/locales/en/translations.json +0 -138
- package/build/es/locales/index.js +0 -13
- package/build/types/components/ChartAnalytics/index.d.ts +0 -7
- package/build/types/components/CircularProgressDashboard/index.d.ts +0 -4
- package/build/types/components/CustomPivotTable/components/Table/index.d.ts +0 -12
- package/build/types/components/CustomPivotTable/components/TableBody/index.d.ts +0 -2
- package/build/types/components/CustomPivotTable/components/TableHeaders/index.d.ts +0 -2
- package/build/types/components/CustomPivotTable/state/engine.d.ts +0 -7
- package/build/types/components/Map/components/EarthEngineLayerConfiguration/index.d.ts +0 -17
- package/build/types/components/Map/components/MapControls/index.d.ts +0 -6
- package/build/types/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.d.ts +0 -1
- package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/index.d.ts +0 -4
- package/build/types/components/Map/components/MapLayer/components/PointLayer/hooks/index.d.ts +0 -2
- package/build/types/components/Map/components/MapLayer/components/PointLayer/index.d.ts +0 -2
- package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.d.ts +0 -12
- package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.d.ts +0 -5
- package/build/types/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.d.ts +0 -2
- package/build/types/components/Map/components/MapLayer/components/ThematicLayer/index.d.ts +0 -5
- package/build/types/components/Map/components/MapProvider/components/MapLayerProvider/index.d.ts +0 -6
- package/build/types/components/Map/components/MapProvider/index.d.ts +0 -3
- package/build/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.d.ts +0 -8
- package/build/types/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.d.ts +0 -2
- package/build/types/components/Map/components/ThematicLayerConfiguration/index.d.ts +0 -18
- package/build/types/components/Map/index.d.ts +0 -8
- package/build/types/components/SingleValueContainer/index.d.ts +0 -6
- package/build/types/components/Visualization/components/VisualizationSelector/index.d.ts +0 -23
- package/build/types/components/Visualization/components/VisualizationTypeSelector/index.d.ts +0 -2
- package/build/types/index.d.ts +0 -6
- /package/{LICENSE → LICENCE} +0 -0
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
import { DHIS2Map } from './DHIS2Map';
|
|
2
|
+
|
|
3
|
+
const meta = {
|
|
4
|
+
title: "DHIS2 Map",
|
|
5
|
+
component: DHIS2Map
|
|
6
|
+
};
|
|
7
|
+
var DHIS2Map_stories_default = meta;
|
|
8
|
+
const BaseMap = {
|
|
9
|
+
name: "Base map"
|
|
10
|
+
};
|
|
11
|
+
BaseMap.args = {
|
|
12
|
+
orgUnitSelection: {
|
|
13
|
+
orgUnits: [],
|
|
14
|
+
userOrgUnit: true,
|
|
15
|
+
userSubUnit: true,
|
|
16
|
+
userSubX2Unit: true
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
const Controls = {
|
|
20
|
+
name: "Controls"
|
|
21
|
+
};
|
|
22
|
+
Controls.args = {
|
|
23
|
+
orgUnitSelection: {
|
|
24
|
+
orgUnits: [],
|
|
25
|
+
userOrgUnit: true,
|
|
26
|
+
userSubUnit: true,
|
|
27
|
+
userSubX2Unit: true
|
|
28
|
+
},
|
|
29
|
+
controls: [
|
|
30
|
+
{
|
|
31
|
+
type: "print",
|
|
32
|
+
position: "topleft",
|
|
33
|
+
options: {
|
|
34
|
+
hidden: false,
|
|
35
|
+
hideControlContainer: true,
|
|
36
|
+
sizeModes: ["A4Landscape", "A4Portrait", "Current"]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
};
|
|
41
|
+
const BoundaryLayer = {
|
|
42
|
+
name: "Boundary layer"
|
|
43
|
+
};
|
|
44
|
+
BoundaryLayer.args = {
|
|
45
|
+
orgUnitSelection: {
|
|
46
|
+
orgUnits: [],
|
|
47
|
+
userOrgUnit: true,
|
|
48
|
+
userSubUnit: true,
|
|
49
|
+
userSubX2Unit: true
|
|
50
|
+
},
|
|
51
|
+
boundaryLayer: {
|
|
52
|
+
enabled: true
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const BoundaryLayerWithLevels = {
|
|
56
|
+
name: "Boundary layer with levels"
|
|
57
|
+
};
|
|
58
|
+
BoundaryLayerWithLevels.args = {
|
|
59
|
+
orgUnitSelection: {
|
|
60
|
+
orgUnits: [
|
|
61
|
+
{
|
|
62
|
+
id: "ImspTQPwCqd",
|
|
63
|
+
displayName: "Sierra Leone",
|
|
64
|
+
name: "Sierra Leone",
|
|
65
|
+
path: "/ImspTQPwCqd",
|
|
66
|
+
children: []
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
levels: ["2"]
|
|
70
|
+
},
|
|
71
|
+
boundaryLayer: {
|
|
72
|
+
enabled: true
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
const ChoroplethThematicLayer = {};
|
|
76
|
+
ChoroplethThematicLayer.args = {
|
|
77
|
+
orgUnitSelection: {
|
|
78
|
+
orgUnits: [],
|
|
79
|
+
userOrgUnit: true,
|
|
80
|
+
userSubUnit: true,
|
|
81
|
+
userSubX2Unit: false
|
|
82
|
+
},
|
|
83
|
+
boundaryLayer: {
|
|
84
|
+
enabled: true
|
|
85
|
+
},
|
|
86
|
+
thematicLayers: [
|
|
87
|
+
{
|
|
88
|
+
type: "choropleth",
|
|
89
|
+
id: "choropleth",
|
|
90
|
+
enabled: true,
|
|
91
|
+
dataItem: {
|
|
92
|
+
id: "Uvn6LCg7dVU",
|
|
93
|
+
displayName: "ANC 1 Coverage",
|
|
94
|
+
type: "indicator"
|
|
95
|
+
},
|
|
96
|
+
control: {
|
|
97
|
+
enabled: true,
|
|
98
|
+
position: "topright"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
periodSelection: {
|
|
103
|
+
periods: ["2022"]
|
|
104
|
+
},
|
|
105
|
+
legends: {
|
|
106
|
+
enabled: true,
|
|
107
|
+
position: "topright",
|
|
108
|
+
collapsible: true
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
const BubbleThematicLayer = {};
|
|
112
|
+
BubbleThematicLayer.args = {
|
|
113
|
+
orgUnitSelection: {
|
|
114
|
+
orgUnits: [],
|
|
115
|
+
userOrgUnit: true,
|
|
116
|
+
userSubUnit: true,
|
|
117
|
+
userSubX2Unit: true
|
|
118
|
+
},
|
|
119
|
+
boundaryLayer: {
|
|
120
|
+
enabled: true
|
|
121
|
+
},
|
|
122
|
+
thematicLayers: [
|
|
123
|
+
{
|
|
124
|
+
type: "bubble",
|
|
125
|
+
id: "bubble",
|
|
126
|
+
enabled: true,
|
|
127
|
+
dataItem: {
|
|
128
|
+
id: "Uvn6LCg7dVU",
|
|
129
|
+
displayName: "ANC 1 Coverage",
|
|
130
|
+
type: "indicator"
|
|
131
|
+
},
|
|
132
|
+
control: {
|
|
133
|
+
enabled: true,
|
|
134
|
+
position: "topright"
|
|
135
|
+
},
|
|
136
|
+
radius: {
|
|
137
|
+
min: 0,
|
|
138
|
+
max: 40
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
legends: {
|
|
143
|
+
enabled: true,
|
|
144
|
+
position: "topright",
|
|
145
|
+
collapsible: true
|
|
146
|
+
},
|
|
147
|
+
periodSelection: {
|
|
148
|
+
periods: ["2022"]
|
|
149
|
+
},
|
|
150
|
+
controls: [
|
|
151
|
+
{
|
|
152
|
+
type: "fullscreen",
|
|
153
|
+
position: "topleft"
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
};
|
|
157
|
+
const AllThematicLayers = {};
|
|
158
|
+
AllThematicLayers.args = {
|
|
159
|
+
orgUnitSelection: {
|
|
160
|
+
orgUnits: [],
|
|
161
|
+
userOrgUnit: true,
|
|
162
|
+
userSubUnit: true,
|
|
163
|
+
userSubX2Unit: true
|
|
164
|
+
},
|
|
165
|
+
boundaryLayer: {
|
|
166
|
+
enabled: true
|
|
167
|
+
},
|
|
168
|
+
thematicLayers: [
|
|
169
|
+
{
|
|
170
|
+
type: "choropleth",
|
|
171
|
+
id: "ReUHfIn0pTQ",
|
|
172
|
+
enabled: true,
|
|
173
|
+
dataItem: {
|
|
174
|
+
id: "ReUHfIn0pTQ",
|
|
175
|
+
displayName: "ANC 1-3 Dropout Rate",
|
|
176
|
+
type: "indicator",
|
|
177
|
+
legendSet: "fqs276KXCXi"
|
|
178
|
+
},
|
|
179
|
+
control: {
|
|
180
|
+
enabled: true,
|
|
181
|
+
position: "topright"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
type: "choropleth",
|
|
186
|
+
id: "Uvn6LCg7dVU",
|
|
187
|
+
enabled: true,
|
|
188
|
+
dataItem: {
|
|
189
|
+
id: "Uvn6LCg7dVU",
|
|
190
|
+
displayName: "ANC 1 Coverage",
|
|
191
|
+
type: "indicator"
|
|
192
|
+
},
|
|
193
|
+
control: {
|
|
194
|
+
enabled: true,
|
|
195
|
+
position: "topright"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
legends: {
|
|
200
|
+
enabled: true,
|
|
201
|
+
position: "topright",
|
|
202
|
+
collapsible: true
|
|
203
|
+
},
|
|
204
|
+
periodSelection: {
|
|
205
|
+
periods: ["2022"]
|
|
206
|
+
},
|
|
207
|
+
controls: [
|
|
208
|
+
{
|
|
209
|
+
type: "scale",
|
|
210
|
+
position: "bottomleft",
|
|
211
|
+
options: {
|
|
212
|
+
imperial: false,
|
|
213
|
+
metric: true
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
type: "fullscreen",
|
|
218
|
+
position: "bottomleft"
|
|
219
|
+
}
|
|
220
|
+
]
|
|
221
|
+
};
|
|
222
|
+
const ChoroplethThematicLayerWithLevels = {};
|
|
223
|
+
ChoroplethThematicLayerWithLevels.args = {
|
|
224
|
+
orgUnitSelection: {
|
|
225
|
+
orgUnits: [
|
|
226
|
+
{
|
|
227
|
+
id: "ImspTQPwCqd",
|
|
228
|
+
displayName: "Sierra Leone",
|
|
229
|
+
name: "Sierra Leone",
|
|
230
|
+
path: "/ImspTQPwCqd",
|
|
231
|
+
children: []
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
levels: ["3"]
|
|
235
|
+
},
|
|
236
|
+
boundaryLayer: {
|
|
237
|
+
enabled: true
|
|
238
|
+
},
|
|
239
|
+
thematicLayers: [
|
|
240
|
+
{
|
|
241
|
+
type: "choropleth",
|
|
242
|
+
id: "choropleth",
|
|
243
|
+
enabled: true,
|
|
244
|
+
dataItem: {
|
|
245
|
+
id: "Uvn6LCg7dVU",
|
|
246
|
+
displayName: "ANC 1 Coverage",
|
|
247
|
+
type: "indicator"
|
|
248
|
+
},
|
|
249
|
+
control: {
|
|
250
|
+
enabled: true,
|
|
251
|
+
position: "topright"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
legends: {
|
|
256
|
+
enabled: true,
|
|
257
|
+
position: "topright",
|
|
258
|
+
collapsible: true
|
|
259
|
+
},
|
|
260
|
+
periodSelection: {
|
|
261
|
+
periods: ["2022"]
|
|
262
|
+
},
|
|
263
|
+
controls: [
|
|
264
|
+
{
|
|
265
|
+
type: "print",
|
|
266
|
+
position: "topleft",
|
|
267
|
+
options: {
|
|
268
|
+
hidden: false,
|
|
269
|
+
hideControlContainer: true,
|
|
270
|
+
sizeModes: ["A4Landscape", "A4Portrait", "Current"]
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
};
|
|
275
|
+
const PointLayer = {};
|
|
276
|
+
PointLayer.args = {
|
|
277
|
+
orgUnitSelection: {
|
|
278
|
+
orgUnits: [],
|
|
279
|
+
userOrgUnit: true,
|
|
280
|
+
userSubUnit: true,
|
|
281
|
+
userSubX2Unit: false
|
|
282
|
+
},
|
|
283
|
+
thematicLayers: [
|
|
284
|
+
{
|
|
285
|
+
type: "choropleth",
|
|
286
|
+
id: "choropleth",
|
|
287
|
+
enabled: true,
|
|
288
|
+
dataItem: {
|
|
289
|
+
id: "Uvn6LCg7dVU",
|
|
290
|
+
displayName: "ANC 1 Coverage",
|
|
291
|
+
type: "indicator"
|
|
292
|
+
},
|
|
293
|
+
control: {
|
|
294
|
+
enabled: true,
|
|
295
|
+
position: "topright"
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
periodSelection: {
|
|
300
|
+
periods: ["2022"]
|
|
301
|
+
},
|
|
302
|
+
pointLayer: {
|
|
303
|
+
enabled: true,
|
|
304
|
+
label: "Facilities",
|
|
305
|
+
level: "m9lBJogzE95",
|
|
306
|
+
style: {
|
|
307
|
+
groupSet: "J5jldMd8OHv"
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
const GoogleEarthEngineLayers = {};
|
|
312
|
+
GoogleEarthEngineLayers.args = {
|
|
313
|
+
orgUnitSelection: {
|
|
314
|
+
orgUnits: [],
|
|
315
|
+
userOrgUnit: true,
|
|
316
|
+
userSubUnit: true,
|
|
317
|
+
userSubX2Unit: false
|
|
318
|
+
},
|
|
319
|
+
thematicLayers: [],
|
|
320
|
+
periodSelection: {
|
|
321
|
+
periods: ["2022"]
|
|
322
|
+
},
|
|
323
|
+
earthEngineLayers: [
|
|
324
|
+
{
|
|
325
|
+
name: "Population",
|
|
326
|
+
type: "population",
|
|
327
|
+
id: "population",
|
|
328
|
+
enabled: false,
|
|
329
|
+
params: {
|
|
330
|
+
min: 0,
|
|
331
|
+
max: 10,
|
|
332
|
+
palette: "#f7fbff,#deebf7,#c6dbef,#9ecae1,#6baed6,#4292c6,#2171b5,#08519c,#08306b"
|
|
333
|
+
},
|
|
334
|
+
aggregations: ["sum", "mean"],
|
|
335
|
+
filters: {
|
|
336
|
+
period: "2020"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
name: "Footprints",
|
|
341
|
+
type: "footprints",
|
|
342
|
+
id: "footprints",
|
|
343
|
+
aggregations: ["count"],
|
|
344
|
+
enabled: false
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
name: "Land Cover",
|
|
348
|
+
type: "landCover",
|
|
349
|
+
id: "landCover",
|
|
350
|
+
enabled: true,
|
|
351
|
+
aggregations: ["percentage"]
|
|
352
|
+
}
|
|
353
|
+
],
|
|
354
|
+
pointLayer: {
|
|
355
|
+
enabled: false,
|
|
356
|
+
label: "Facilities",
|
|
357
|
+
level: "m9lBJogzE95",
|
|
358
|
+
style: {
|
|
359
|
+
groupSet: "J5jldMd8OHv"
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
export { AllThematicLayers, BaseMap, BoundaryLayer, BoundaryLayerWithLevels, BubbleThematicLayer, ChoroplethThematicLayer, ChoroplethThematicLayerWithLevels, Controls, GoogleEarthEngineLayers, PointLayer, DHIS2Map_stories_default as default };
|
|
365
|
+
//# sourceMappingURL=out.js.map
|
|
366
|
+
//# sourceMappingURL=DHIS2Map.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Map/DHIS2Map.stories.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Meta, StoryObj } from \"@storybook/react\";\nimport { DHIS2Map } from \"./DHIS2Map\";\n\nconst meta: Meta<typeof DHIS2Map> = {\n\ttitle: \"DHIS2 Map\",\n\tcomponent: DHIS2Map,\n};\nexport default meta;\n\ntype Story = StoryObj<typeof DHIS2Map>;\nexport const BaseMap: Story = {\n\tname: \"Base map\",\n};\nBaseMap.args = {\n\torgUnitSelection: {\n\t\torgUnits: [],\n\t\tuserOrgUnit: true,\n\t\tuserSubUnit: true,\n\t\tuserSubX2Unit: true,\n\t},\n};\n\nexport const Controls: Story = {\n\tname: \"Controls\",\n};\nControls.args = {\n\torgUnitSelection: {\n\t\torgUnits: [],\n\t\tuserOrgUnit: true,\n\t\tuserSubUnit: true,\n\t\tuserSubX2Unit: true,\n\t},\n\tcontrols: [\n\t\t{\n\t\t\ttype: \"print\",\n\t\t\tposition: \"topleft\",\n\t\t\toptions: {\n\t\t\t\thidden: false,\n\t\t\t\thideControlContainer: true,\n\t\t\t\tsizeModes: [\"A4Landscape\", \"A4Portrait\", \"Current\"],\n\t\t\t},\n\t\t},\n\t],\n};\n\nexport const BoundaryLayer: Story = {\n\tname: \"Boundary layer\",\n};\nBoundaryLayer.args = {\n\torgUnitSelection: {\n\t\torgUnits: [],\n\t\tuserOrgUnit: true,\n\t\tuserSubUnit: true,\n\t\tuserSubX2Unit: true,\n\t},\n\tboundaryLayer: {\n\t\tenabled: true,\n\t},\n};\n\nexport const BoundaryLayerWithLevels: Story = {\n\tname: \"Boundary layer with levels\",\n};\nBoundaryLayerWithLevels.args = {\n\torgUnitSelection: {\n\t\torgUnits: [\n\t\t\t{\n\t\t\t\tid: \"ImspTQPwCqd\",\n\t\t\t\tdisplayName: \"Sierra Leone\",\n\t\t\t\tname: \"Sierra Leone\",\n\t\t\t\tpath: \"/ImspTQPwCqd\",\n\t\t\t\tchildren: [],\n\t\t\t},\n\t\t],\n\t\tlevels: [\"2\"],\n\t},\n\tboundaryLayer: {\n\t\tenabled: true,\n\t},\n};\n\nexport const ChoroplethThematicLayer: Story = {};\nChoroplethThematicLayer.args = {\n\torgUnitSelection: {\n\t\torgUnits: [],\n\t\tuserOrgUnit: true,\n\t\tuserSubUnit: true,\n\t\tuserSubX2Unit: false,\n\t},\n\tboundaryLayer: {\n\t\tenabled: true,\n\t},\n\tthematicLayers: [\n\t\t{\n\t\t\ttype: \"choropleth\",\n\t\t\tid: \"choropleth\",\n\t\t\tenabled: true,\n\t\t\tdataItem: {\n\t\t\t\tid: \"Uvn6LCg7dVU\",\n\t\t\t\tdisplayName: \"ANC 1 Coverage\",\n\t\t\t\ttype: \"indicator\",\n\t\t\t},\n\t\t\tcontrol: {\n\t\t\t\tenabled: true,\n\t\t\t\tposition: \"topright\",\n\t\t\t},\n\t\t},\n\t],\n\tperiodSelection: {\n\t\tperiods: [\"2022\"],\n\t},\n\tlegends: {\n\t\tenabled: true,\n\t\tposition: \"topright\",\n\t\tcollapsible: true,\n\t},\n};\n\nexport const BubbleThematicLayer: Story = {};\nBubbleThematicLayer.args = {\n\torgUnitSelection: {\n\t\torgUnits: [],\n\t\tuserOrgUnit: true,\n\t\tuserSubUnit: true,\n\t\tuserSubX2Unit: true,\n\t},\n\tboundaryLayer: {\n\t\tenabled: true,\n\t},\n\tthematicLayers: [\n\t\t{\n\t\t\ttype: \"bubble\",\n\t\t\tid: \"bubble\",\n\t\t\tenabled: true,\n\t\t\tdataItem: {\n\t\t\t\tid: \"Uvn6LCg7dVU\",\n\t\t\t\tdisplayName: \"ANC 1 Coverage\",\n\t\t\t\ttype: \"indicator\",\n\t\t\t},\n\t\t\tcontrol: {\n\t\t\t\tenabled: true,\n\t\t\t\tposition: \"topright\",\n\t\t\t},\n\t\t\tradius: {\n\t\t\t\tmin: 0,\n\t\t\t\tmax: 40,\n\t\t\t},\n\t\t},\n\t],\n\tlegends: {\n\t\tenabled: true,\n\t\tposition: \"topright\",\n\t\tcollapsible: true,\n\t},\n\tperiodSelection: {\n\t\tperiods: [\"2022\"],\n\t},\n\tcontrols: [\n\t\t{\n\t\t\ttype: \"fullscreen\",\n\t\t\tposition: \"topleft\",\n\t\t},\n\t],\n};\n\nexport const AllThematicLayers: Story = {};\nAllThematicLayers.args = {\n\torgUnitSelection: {\n\t\torgUnits: [],\n\t\tuserOrgUnit: true,\n\t\tuserSubUnit: true,\n\t\tuserSubX2Unit: true,\n\t},\n\tboundaryLayer: {\n\t\tenabled: true,\n\t},\n\tthematicLayers: [\n\t\t{\n\t\t\ttype: \"choropleth\",\n\t\t\tid: \"ReUHfIn0pTQ\",\n\t\t\tenabled: true,\n\t\t\tdataItem: {\n\t\t\t\tid: \"ReUHfIn0pTQ\",\n\t\t\t\tdisplayName: \"ANC 1-3 Dropout Rate\",\n\t\t\t\ttype: \"indicator\",\n\t\t\t\tlegendSet: \"fqs276KXCXi\",\n\t\t\t},\n\t\t\tcontrol: {\n\t\t\t\tenabled: true,\n\t\t\t\tposition: \"topright\",\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\ttype: \"choropleth\",\n\t\t\tid: \"Uvn6LCg7dVU\",\n\t\t\tenabled: true,\n\t\t\tdataItem: {\n\t\t\t\tid: \"Uvn6LCg7dVU\",\n\t\t\t\tdisplayName: \"ANC 1 Coverage\",\n\t\t\t\ttype: \"indicator\",\n\t\t\t},\n\t\t\tcontrol: {\n\t\t\t\tenabled: true,\n\t\t\t\tposition: \"topright\",\n\t\t\t},\n\t\t},\n\t],\n\tlegends: {\n\t\tenabled: true,\n\t\tposition: \"topright\",\n\t\tcollapsible: true,\n\t},\n\tperiodSelection: {\n\t\tperiods: [\"2022\"],\n\t},\n\tcontrols: [\n\t\t{\n\t\t\ttype: \"scale\",\n\t\t\tposition: \"bottomleft\",\n\t\t\toptions: {\n\t\t\t\timperial: false,\n\t\t\t\tmetric: true,\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\ttype: \"fullscreen\",\n\t\t\tposition: \"bottomleft\",\n\t\t},\n\t],\n};\n\nexport const ChoroplethThematicLayerWithLevels: Story = {};\nChoroplethThematicLayerWithLevels.args = {\n\torgUnitSelection: {\n\t\torgUnits: [\n\t\t\t{\n\t\t\t\tid: \"ImspTQPwCqd\",\n\t\t\t\tdisplayName: \"Sierra Leone\",\n\t\t\t\tname: \"Sierra Leone\",\n\t\t\t\tpath: \"/ImspTQPwCqd\",\n\t\t\t\tchildren: [],\n\t\t\t},\n\t\t],\n\t\tlevels: [\"3\"],\n\t},\n\tboundaryLayer: {\n\t\tenabled: true,\n\t},\n\tthematicLayers: [\n\t\t{\n\t\t\ttype: \"choropleth\",\n\t\t\tid: \"choropleth\",\n\t\t\tenabled: true,\n\t\t\tdataItem: {\n\t\t\t\tid: \"Uvn6LCg7dVU\",\n\t\t\t\tdisplayName: \"ANC 1 Coverage\",\n\t\t\t\ttype: \"indicator\",\n\t\t\t},\n\t\t\tcontrol: {\n\t\t\t\tenabled: true,\n\t\t\t\tposition: \"topright\",\n\t\t\t},\n\t\t},\n\t],\n\tlegends: {\n\t\tenabled: true,\n\t\tposition: \"topright\",\n\t\tcollapsible: true,\n\t},\n\tperiodSelection: {\n\t\tperiods: [\"2022\"],\n\t},\n\tcontrols: [\n\t\t{\n\t\t\ttype: \"print\",\n\t\t\tposition: \"topleft\",\n\t\t\toptions: {\n\t\t\t\thidden: false,\n\t\t\t\thideControlContainer: true,\n\t\t\t\tsizeModes: [\"A4Landscape\", \"A4Portrait\", \"Current\"],\n\t\t\t},\n\t\t},\n\t],\n};\n\nexport const PointLayer: Story = {};\nPointLayer.args = {\n\torgUnitSelection: {\n\t\torgUnits: [],\n\t\tuserOrgUnit: true,\n\t\tuserSubUnit: true,\n\t\tuserSubX2Unit: false,\n\t},\n\tthematicLayers: [\n\t\t{\n\t\t\ttype: \"choropleth\",\n\t\t\tid: \"choropleth\",\n\t\t\tenabled: true,\n\t\t\tdataItem: {\n\t\t\t\tid: \"Uvn6LCg7dVU\",\n\t\t\t\tdisplayName: \"ANC 1 Coverage\",\n\t\t\t\ttype: \"indicator\",\n\t\t\t},\n\t\t\tcontrol: {\n\t\t\t\tenabled: true,\n\t\t\t\tposition: \"topright\",\n\t\t\t},\n\t\t},\n\t],\n\tperiodSelection: {\n\t\tperiods: [\"2022\"],\n\t},\n\tpointLayer: {\n\t\tenabled: true,\n\t\tlabel: \"Facilities\",\n\t\tlevel: \"m9lBJogzE95\",\n\t\tstyle: {\n\t\t\tgroupSet: \"J5jldMd8OHv\",\n\t\t},\n\t},\n};\n\nexport const GoogleEarthEngineLayers: Story = {};\nGoogleEarthEngineLayers.args = {\n\torgUnitSelection: {\n\t\torgUnits: [],\n\t\tuserOrgUnit: true,\n\t\tuserSubUnit: true,\n\t\tuserSubX2Unit: false,\n\t},\n\tthematicLayers: [],\n\tperiodSelection: {\n\t\tperiods: [\"2022\"],\n\t},\n\tearthEngineLayers: [\n\t\t{\n\t\t\tname: \"Population\",\n\t\t\ttype: \"population\",\n\t\t\tid: \"population\",\n\t\t\tenabled: false,\n\t\t\tparams: {\n\t\t\t\tmin: 0,\n\t\t\t\tmax: 10,\n\t\t\t\tpalette:\n\t\t\t\t\t\"#f7fbff,#deebf7,#c6dbef,#9ecae1,#6baed6,#4292c6,#2171b5,#08519c,#08306b\",\n\t\t\t},\n\t\t\taggregations: [\"sum\", \"mean\"],\n\t\t\tfilters: {\n\t\t\t\tperiod: \"2020\",\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tname: \"Footprints\",\n\t\t\ttype: \"footprints\",\n\t\t\tid: \"footprints\",\n\t\t\taggregations: [\"count\"],\n\t\t\tenabled: false,\n\t\t},\n\t\t{\n\t\t\tname: \"Land Cover\",\n\t\t\ttype: \"landCover\",\n\t\t\tid: \"landCover\",\n\t\t\tenabled: true,\n\t\t\taggregations: [\"percentage\"],\n\t\t},\n\t],\n\tpointLayer: {\n\t\tenabled: false,\n\t\tlabel: \"Facilities\",\n\t\tlevel: \"m9lBJogzE95\",\n\t\tstyle: {\n\t\t\tgroupSet: \"J5jldMd8OHv\",\n\t\t},\n\t},\n};\n"]}
|
package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useForm } from 'react-hook-form';
|
|
3
|
+
import { Modal, ModalTitle, ModalContent, ModalActions, ButtonStrip, Button } from '@dhis2/ui';
|
|
4
|
+
import i18n from '@dhis2/d2-i18n';
|
|
5
|
+
import { EarthEngineLayerConfiguration } from './EarthEngineLayerConfiguration.js';
|
|
6
|
+
|
|
7
|
+
function EarthEngineLayerConfigModal({
|
|
8
|
+
open,
|
|
9
|
+
exclude,
|
|
10
|
+
config,
|
|
11
|
+
onClose,
|
|
12
|
+
onChange,
|
|
13
|
+
...props
|
|
14
|
+
}) {
|
|
15
|
+
const form = useForm({
|
|
16
|
+
defaultValues: config ?? {}
|
|
17
|
+
});
|
|
18
|
+
const onSubmitClick = (values) => {
|
|
19
|
+
onClose();
|
|
20
|
+
onChange(values);
|
|
21
|
+
};
|
|
22
|
+
return /* @__PURE__ */ jsxs(Modal, { ...props, hide: !open, onClose, children: [
|
|
23
|
+
/* @__PURE__ */ jsx(ModalTitle, { children: i18n.t("Configure Earth Engine Layer") }),
|
|
24
|
+
/* @__PURE__ */ jsx(ModalContent, { children: /* @__PURE__ */ jsx(EarthEngineLayerConfiguration, { form, excluded: exclude }) }),
|
|
25
|
+
/* @__PURE__ */ jsx(ModalActions, { children: /* @__PURE__ */ jsxs(ButtonStrip, { children: [
|
|
26
|
+
/* @__PURE__ */ jsx(Button, { onClick: onClose, children: i18n.t("Cancel") }),
|
|
27
|
+
/* @__PURE__ */ jsx(
|
|
28
|
+
Button,
|
|
29
|
+
{
|
|
30
|
+
primary: true,
|
|
31
|
+
onClick: () => form.handleSubmit(onSubmitClick)(),
|
|
32
|
+
children: i18n.t("Save")
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
] }) })
|
|
36
|
+
] });
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { EarthEngineLayerConfigModal };
|
|
40
|
+
//# sourceMappingURL=out.js.map
|
|
41
|
+
//# sourceMappingURL=EarthEngineLayerConfigModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.tsx"],"names":[],"mappings":"AAwCG,cAKC,YALD;AAxCH,SAAS,eAAe;AAExB;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACM;AACP,OAAO,UAAU;AAEjB,SAAS,qCAAqC;AAUvC,SAAS,4BAA4B;AAAA,EAC3C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACJ,GAAqC;AACpC,QAAM,OAAO,QAAgC;AAAA,IAC5C,eAAe,UAAU,CAAC;AAAA,EAC3B,CAAC;AACD,QAAM,gBAAgB,CAAC,WAAmC;AACzD,YAAQ;AACR,aAAS,MAAM;AAAA,EAChB;AAEA,SACC,qBAAC,SAAO,GAAG,OAAO,MAAM,CAAC,MAAM,SAC9B;AAAA,wBAAC,cAAY,eAAK,EAAE,8BAA8B,GAAE;AAAA,IACpD,oBAAC,gBACA,8BAAC,iCAA8B,MAAY,UAAU,SAAS,GAC/D;AAAA,IACA,oBAAC,gBACA,+BAAC,eACA;AAAA,0BAAC,UAAO,SAAS,SAAU,eAAK,EAAE,QAAQ,GAAE;AAAA,MAC5C;AAAA,QAAC;AAAA;AAAA,UACA,SAAO;AAAA,UACP,SAAS,MAAM,KAAK,aAAa,aAAa,EAAE;AAAA,UAE/C,eAAK,EAAE,MAAM;AAAA;AAAA,MACf;AAAA,OACD,GACD;AAAA,KACD;AAEF","sourcesContent":["import { useForm } from \"react-hook-form\";\nimport { EarthEngineLayerConfig } from \"../MapLayer/interfaces/index.js\";\nimport {\n\tButton,\n\tButtonStrip,\n\tModal,\n\tModalActions,\n\tModalContent,\n\tModalTitle,\n} from \"@dhis2/ui\";\nimport i18n from \"@dhis2/d2-i18n\";\nimport React from \"react\";\nimport { EarthEngineLayerConfiguration } from \"./EarthEngineLayerConfiguration.js\";\n\nexport interface EarthEngineLayerConfigModalProps {\n\topen: boolean;\n\tconfig?: EarthEngineLayerConfig;\n\texclude?: string[];\n\tonClose: () => void;\n\tonChange: (config: EarthEngineLayerConfig) => void;\n}\n\nexport function EarthEngineLayerConfigModal({\n\topen,\n\texclude,\n\tconfig,\n\tonClose,\n\tonChange,\n\t...props\n}: EarthEngineLayerConfigModalProps) {\n\tconst form = useForm<EarthEngineLayerConfig>({\n\t\tdefaultValues: config ?? {},\n\t});\n\tconst onSubmitClick = (values: EarthEngineLayerConfig) => {\n\t\tonClose();\n\t\tonChange(values);\n\t};\n\n\treturn (\n\t\t<Modal {...props} hide={!open} onClose={onClose}>\n\t\t\t<ModalTitle>{i18n.t(\"Configure Earth Engine Layer\")}</ModalTitle>\n\t\t\t<ModalContent>\n\t\t\t\t<EarthEngineLayerConfiguration form={form} excluded={exclude} />\n\t\t\t</ModalContent>\n\t\t\t<ModalActions>\n\t\t\t\t<ButtonStrip>\n\t\t\t\t\t<Button onClick={onClose}>{i18n.t(\"Cancel\")}</Button>\n\t\t\t\t\t<Button\n\t\t\t\t\t\tprimary\n\t\t\t\t\t\tonClick={() => form.handleSubmit(onSubmitClick)()}\n\t\t\t\t\t>\n\t\t\t\t\t\t{i18n.t(\"Save\")}\n\t\t\t\t\t</Button>\n\t\t\t\t</ButtonStrip>\n\t\t\t</ModalActions>\n\t\t</Modal>\n\t);\n}\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Button } from '@dhis2/ui';
|
|
3
|
+
import { useBoolean } from 'usehooks-ts';
|
|
4
|
+
import { EarthEngineLayerConfigModal } from './EarthEngineLayerConfigModal';
|
|
5
|
+
|
|
6
|
+
const meta = {
|
|
7
|
+
component: EarthEngineLayerConfigModal,
|
|
8
|
+
title: "DHIS2 Map/Earth Engine Layer Config Modal",
|
|
9
|
+
decorators: [
|
|
10
|
+
(Story) => {
|
|
11
|
+
const {
|
|
12
|
+
value: hide,
|
|
13
|
+
setTrue: onClose,
|
|
14
|
+
setFalse: onOpen
|
|
15
|
+
} = useBoolean(true);
|
|
16
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
17
|
+
/* @__PURE__ */ jsx(Story, { args: { open: !hide, onClose }, onClose }),
|
|
18
|
+
/* @__PURE__ */ jsx(Button, { onClick: onOpen, children: "Open modal" })
|
|
19
|
+
] });
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
};
|
|
23
|
+
var EarthEngineLayerConfigModal_stories_default = meta;
|
|
24
|
+
const Default = {};
|
|
25
|
+
Default.args = {
|
|
26
|
+
onClose: () => {
|
|
27
|
+
},
|
|
28
|
+
onChange: console.info,
|
|
29
|
+
open: true
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export { Default, EarthEngineLayerConfigModal_stories_default as default };
|
|
33
|
+
//# sourceMappingURL=out.js.map
|
|
34
|
+
//# sourceMappingURL=EarthEngineLayerConfigModal.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.stories.tsx"],"names":[],"mappings":"AAiBI,SACC,KADD;AAhBJ,SAAS,cAAc;AACvB,SAAS,kBAAkB;AAC3B,SAAS,mCAAmC;AAE5C,MAAM,OAAiD;AAAA,EACtD,WAAW;AAAA,EACX,OAAO;AAAA,EACP,YAAY;AAAA,IACX,CAAC,UAAU;AACV,YAAM;AAAA,QACL,OAAO;AAAA,QACP,SAAS;AAAA,QACT,UAAU;AAAA,MACX,IAAI,WAAW,IAAI;AAEnB,aACC,qBAAC,SACA;AAAA,4BAAC,SAAM,MAAM,EAAE,MAAM,CAAC,MAAM,QAAQ,GAAG,SAAkB;AAAA,QACzD,oBAAC,UAAO,SAAS,QAAQ,wBAAU;AAAA,SACpC;AAAA,IAEF;AAAA,EACD;AACD;AAEA,IAAO,8CAAQ;AAIR,MAAM,UAAiB,CAAC;AAC/B,QAAQ,OAAO;AAAA,EACd,SAAS,MAAM;AAAA,EAAC;AAAA,EAChB,UAAU,QAAQ;AAAA,EAClB,MAAM;AACP","sourcesContent":["import { Meta, StoryObj } from \"@storybook/react\";\nimport { Button } from \"@dhis2/ui\";\nimport { useBoolean } from \"usehooks-ts\";\nimport { EarthEngineLayerConfigModal } from \"./EarthEngineLayerConfigModal\";\n\nconst meta: Meta<typeof EarthEngineLayerConfigModal> = {\n\tcomponent: EarthEngineLayerConfigModal,\n\ttitle: \"DHIS2 Map/Earth Engine Layer Config Modal\",\n\tdecorators: [\n\t\t(Story) => {\n\t\t\tconst {\n\t\t\t\tvalue: hide,\n\t\t\t\tsetTrue: onClose,\n\t\t\t\tsetFalse: onOpen,\n\t\t\t} = useBoolean(true);\n\n\t\t\treturn (\n\t\t\t\t<div>\n\t\t\t\t\t<Story args={{ open: !hide, onClose }} onClose={onClose} />\n\t\t\t\t\t<Button onClick={onOpen}>Open modal</Button>\n\t\t\t\t</div>\n\t\t\t);\n\t\t},\n\t],\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof EarthEngineLayerConfigModal>;\n\nexport const Default: Story = {};\nDefault.args = {\n\tonClose: () => {},\n\tonChange: console.info,\n\topen: true,\n};\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { FormProvider } from 'react-hook-form';
|
|
3
|
+
import { StylesConfig } from './components/StylesConfig.js';
|
|
4
|
+
import { Name } from './components/Name.js';
|
|
5
|
+
import { TypeField } from './components/TypeField.js';
|
|
6
|
+
import { AggregationSelector } from './components/AggregationSelector.js';
|
|
7
|
+
import { PeriodSelector } from './components/PeriodSelector.js';
|
|
8
|
+
import { QueryClient, QueryClientProvider } from 'react-query';
|
|
9
|
+
|
|
10
|
+
const queryClient = new QueryClient();
|
|
11
|
+
function EarthEngineLayerConfiguration({
|
|
12
|
+
form,
|
|
13
|
+
excluded
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx(FormProvider, { ...form, children: /* @__PURE__ */ jsxs("div", { className: "column gap-16", children: [
|
|
16
|
+
/* @__PURE__ */ jsx(TypeField, { excluded }),
|
|
17
|
+
/* @__PURE__ */ jsx(Name, {}),
|
|
18
|
+
/* @__PURE__ */ jsx(AggregationSelector, {}),
|
|
19
|
+
/* @__PURE__ */ jsx(PeriodSelector, {}),
|
|
20
|
+
/* @__PURE__ */ jsx(StylesConfig, {})
|
|
21
|
+
] }) }) });
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { EarthEngineLayerConfiguration };
|
|
25
|
+
//# sourceMappingURL=out.js.map
|
|
26
|
+
//# sourceMappingURL=EarthEngineLayerConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.tsx"],"names":[],"mappings":"AAyBI,SACC,KADD;AAxBJ,SAAS,oBAAmC;AAE5C,SAAS,oBAAoB;AAC7B,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,2BAA2B;AACpC,SAAS,sBAAsB;AAC/B,SAAS,aAAa,2BAA2B;AAEjD,MAAM,cAAc,IAAI,YAAY;AAQ7B,SAAS,8BAA8B;AAAA,EAC7C;AAAA,EACA;AACD,GAAuC;AACtC,SACC,oBAAC,uBAAoB,QAAQ,aAC5B,8BAAC,gBAAc,GAAG,MACjB,+BAAC,SAAI,WAAU,iBACd;AAAA,wBAAC,aAAU,UAAoB;AAAA,IAC/B,oBAAC,QAAK;AAAA,IACN,oBAAC,uBAAoB;AAAA,IACrB,oBAAC,kBAAe;AAAA,IAChB,oBAAC,gBAAa;AAAA,KACf,GACD,GACD;AAEF","sourcesContent":["import { EarthEngineLayerConfig } from \"../MapLayer/interfaces\";\nimport { FormProvider, UseFormReturn } from \"react-hook-form\";\nimport React from \"react\";\nimport { StylesConfig } from \"./components/StylesConfig.js\";\nimport { Name } from \"./components/Name.js\";\nimport { TypeField } from \"./components/TypeField.js\";\nimport { AggregationSelector } from \"./components/AggregationSelector.js\";\nimport { PeriodSelector } from \"./components/PeriodSelector.js\";\nimport { QueryClient, QueryClientProvider } from \"react-query\";\n\nconst queryClient = new QueryClient();\nexport interface EarthEngineLayerConfigurationProps {\n\tform: UseFormReturn<EarthEngineLayerConfig>;\n\texcluded?: string[];\n\n\t[key: string]: any;\n}\n\nexport function EarthEngineLayerConfiguration({\n\tform,\n\texcluded,\n}: EarthEngineLayerConfigurationProps) {\n\treturn (\n\t\t<QueryClientProvider client={queryClient}>\n\t\t\t<FormProvider {...form}>\n\t\t\t\t<div className=\"column gap-16\">\n\t\t\t\t\t<TypeField excluded={excluded} />\n\t\t\t\t\t<Name />\n\t\t\t\t\t<AggregationSelector />\n\t\t\t\t\t<PeriodSelector />\n\t\t\t\t\t<StylesConfig />\n\t\t\t\t</div>\n\t\t\t</FormProvider>\n\t\t</QueryClientProvider>\n\t);\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { EarthEngineLayerConfiguration } from './EarthEngineLayerConfiguration';
|
|
3
|
+
import { useForm } from 'react-hook-form';
|
|
4
|
+
|
|
5
|
+
const Default = {};
|
|
6
|
+
Default.args = {};
|
|
7
|
+
const meta = {
|
|
8
|
+
title: "DHIS2 Map/Earth Engine Configuration",
|
|
9
|
+
component: EarthEngineLayerConfiguration,
|
|
10
|
+
decorators: [
|
|
11
|
+
(MapStory) => {
|
|
12
|
+
const form = useForm();
|
|
13
|
+
return /* @__PURE__ */ jsx("div", { style: { width: "50%", height: "50%" }, children: /* @__PURE__ */ jsx(MapStory, { args: { form }, form }) });
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
};
|
|
17
|
+
var EarthEngineLayerConfiguration_stories_default = meta;
|
|
18
|
+
|
|
19
|
+
export { Default, EarthEngineLayerConfiguration_stories_default as default };
|
|
20
|
+
//# sourceMappingURL=out.js.map
|
|
21
|
+
//# sourceMappingURL=EarthEngineLayerConfiguration.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.stories.tsx"],"names":[],"mappings":"AAmBK;AAlBL,SAAS,qCAAqC;AAE9C,SAAS,eAAe;AAKjB,MAAM,UAAiB,CAAC;AAC/B,QAAQ,OAAO,CAAC;AAEhB,MAAM,OAAmD;AAAA,EACxD,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY;AAAA,IACX,CAAC,aAAa;AACb,YAAM,OAAO,QAAgC;AAC7C,aACC,oBAAC,SAAI,OAAO,EAAE,OAAO,OAAO,QAAQ,MAAM,GACzC,8BAAC,YAAS,MAAM,EAAE,KAAK,GAAG,MAAY,GACvC;AAAA,IAEF;AAAA,EACD;AACD;AAEA,IAAO,gDAAQ","sourcesContent":["import { Meta, StoryObj } from \"@storybook/react\";\nimport { EarthEngineLayerConfiguration } from \"./EarthEngineLayerConfiguration\";\nimport React from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { EarthEngineLayerConfig } from \"../MapLayer/interfaces\";\n\ntype Story = StoryObj<typeof EarthEngineLayerConfiguration>;\n\nexport const Default: Story = {};\nDefault.args = {};\n\nconst meta: Meta<typeof EarthEngineLayerConfiguration> = {\n\ttitle: \"DHIS2 Map/Earth Engine Configuration\",\n\tcomponent: EarthEngineLayerConfiguration,\n\tdecorators: [\n\t\t(MapStory) => {\n\t\t\tconst form = useForm<EarthEngineLayerConfig>();\n\t\t\treturn (\n\t\t\t\t<div style={{ width: \"50%\", height: \"50%\" }}>\n\t\t\t\t\t<MapStory args={{ form }} form={form} />\n\t\t\t\t</div>\n\t\t\t);\n\t\t},\n\t],\n};\n\nexport default meta;\n"]}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Controller } from 'react-hook-form';
|
|
3
|
+
import { SingleSelectField, SingleSelectOption, MultiSelectField, MultiSelectOption } from '@dhis2/ui';
|
|
4
|
+
import { head, capitalize } from 'lodash';
|
|
5
|
+
import i18n from '@dhis2/d2-i18n';
|
|
6
|
+
import { useType } from '../hooks/data.js';
|
|
7
|
+
|
|
8
|
+
function AggregationSelector() {
|
|
9
|
+
const config = useType();
|
|
10
|
+
if (!config?.defaultAggregations) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
const supportedAggregations = config?.defaultAggregations ?? [];
|
|
14
|
+
const maxAggregations = config?.maxAggregations;
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
Controller,
|
|
17
|
+
{
|
|
18
|
+
render: ({ field, fieldState }) => {
|
|
19
|
+
return maxAggregations === 1 ? /* @__PURE__ */ jsx(
|
|
20
|
+
SingleSelectField,
|
|
21
|
+
{
|
|
22
|
+
clearable: true,
|
|
23
|
+
error: Boolean(fieldState.error),
|
|
24
|
+
validationText: fieldState?.error?.message,
|
|
25
|
+
selected: supportedAggregations.includes(
|
|
26
|
+
head(field.value) ?? ""
|
|
27
|
+
) ? head(field.value) : void 0,
|
|
28
|
+
onChange: ({ selected }) => field.onChange([selected]),
|
|
29
|
+
label: i18n.t("Aggregation"),
|
|
30
|
+
children: supportedAggregations.map((aggregation) => /* @__PURE__ */ jsx(
|
|
31
|
+
SingleSelectOption,
|
|
32
|
+
{
|
|
33
|
+
label: capitalize(aggregation),
|
|
34
|
+
value: aggregation
|
|
35
|
+
},
|
|
36
|
+
`${aggregation}-option`
|
|
37
|
+
))
|
|
38
|
+
}
|
|
39
|
+
) : /* @__PURE__ */ jsx(
|
|
40
|
+
MultiSelectField,
|
|
41
|
+
{
|
|
42
|
+
error: Boolean(fieldState.error),
|
|
43
|
+
validationText: fieldState?.error?.message,
|
|
44
|
+
selected: field.value?.filter(
|
|
45
|
+
(value) => supportedAggregations?.includes(value)
|
|
46
|
+
),
|
|
47
|
+
onChange: ({ selected }) => field.onChange(selected),
|
|
48
|
+
label: i18n.t("Aggregations"),
|
|
49
|
+
children: supportedAggregations.map((aggregation) => /* @__PURE__ */ jsx(
|
|
50
|
+
MultiSelectOption,
|
|
51
|
+
{
|
|
52
|
+
label: capitalize(aggregation),
|
|
53
|
+
value: aggregation
|
|
54
|
+
},
|
|
55
|
+
`${aggregation}-option`
|
|
56
|
+
))
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
},
|
|
60
|
+
name: "aggregations"
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { AggregationSelector };
|
|
66
|
+
//# sourceMappingURL=out.js.map
|
|
67
|
+
//# sourceMappingURL=AggregationSelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.tsx"],"names":[],"mappings":"AA4CO;AA5CP,SAAS,kBAAkB;AAC3B;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACM;AACP,SAAS,YAAY,YAAY;AACjC,OAAO,UAAU;AAEjB,SAAS,eAAe;AAEjB,SAAS,sBAAsB;AACrC,QAAM,SAAS,QAAQ;AAEvB,MAAI,CAAC,QAAQ,qBAAqB;AACjC,WAAO;AAAA,EACR;AAEA,QAAM,wBAAwB,QAAQ,uBAAuB,CAAC;AAE9D,QAAM,kBAAkB,QAAQ;AAEhC,SACC;AAAA,IAAC;AAAA;AAAA,MACA,QAAQ,CAAC,EAAE,OAAO,WAAW,MAAM;AAClC,eAAO,oBAAoB,IAC1B;AAAA,UAAC;AAAA;AAAA,YACA,WAAS;AAAA,YACT,OAAO,QAAQ,WAAW,KAAK;AAAA,YAC/B,gBAAgB,YAAY,OAAO;AAAA,YACnC,UACC,sBAAsB;AAAA,cACrB,KAAK,MAAM,KAAK,KAAK;AAAA,YACtB,IACG,KAAK,MAAM,KAAK,IAChB;AAAA,YAEJ,UAAU,CAAC,EAAE,SAAS,MACrB,MAAM,SAAS,CAAC,QAAQ,CAAC;AAAA,YAE1B,OAAO,KAAK,EAAE,aAAa;AAAA,YAE1B,gCAAsB,IAAI,CAAC,gBAC3B;AAAA,cAAC;AAAA;AAAA,gBAEA,OAAO,WAAW,WAAW;AAAA,gBAC7B,OAAO;AAAA;AAAA,cAFF,GAAG,WAAW;AAAA,YAGpB,CACA;AAAA;AAAA,QACF,IAEA;AAAA,UAAC;AAAA;AAAA,YACA,OAAO,QAAQ,WAAW,KAAK;AAAA,YAC/B,gBAAgB,YAAY,OAAO;AAAA,YACnC,UAAU,MAAM,OAAO;AAAA,cACtB,CAAC,UACA,uBAAuB,SAAS,KAAK;AAAA,YACvC;AAAA,YACA,UAAU,CAAC,EAAE,SAAS,MACrB,MAAM,SAAS,QAAQ;AAAA,YAExB,OAAO,KAAK,EAAE,cAAc;AAAA,YAE3B,gCAAsB,IAAI,CAAC,gBAC3B;AAAA,cAAC;AAAA;AAAA,gBAEA,OAAO,WAAW,WAAW;AAAA,gBAC7B,OAAO;AAAA;AAAA,cAFF,GAAG,WAAW;AAAA,YAGpB,CACA;AAAA;AAAA,QACF;AAAA,MAEF;AAAA,MACA,MAAM;AAAA;AAAA,EACP;AAEF","sourcesContent":["import { Controller } from \"react-hook-form\";\nimport {\n\tMultiSelectField,\n\tMultiSelectOption,\n\tSingleSelectField,\n\tSingleSelectOption,\n} from \"@dhis2/ui\";\nimport { capitalize, head } from \"lodash\";\nimport i18n from \"@dhis2/d2-i18n\";\nimport React from \"react\";\nimport { useType } from \"../hooks/data.js\";\n\nexport function AggregationSelector() {\n\tconst config = useType();\n\n\tif (!config?.defaultAggregations) {\n\t\treturn null;\n\t}\n\n\tconst supportedAggregations = config?.defaultAggregations ?? [];\n\n\tconst maxAggregations = config?.maxAggregations;\n\n\treturn (\n\t\t<Controller\n\t\t\trender={({ field, fieldState }) => {\n\t\t\t\treturn maxAggregations === 1 ? (\n\t\t\t\t\t<SingleSelectField\n\t\t\t\t\t\tclearable\n\t\t\t\t\t\terror={Boolean(fieldState.error)}\n\t\t\t\t\t\tvalidationText={fieldState?.error?.message}\n\t\t\t\t\t\tselected={\n\t\t\t\t\t\t\tsupportedAggregations.includes(\n\t\t\t\t\t\t\t\thead(field.value) ?? \"\",\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t? head(field.value)\n\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t}\n\t\t\t\t\t\tonChange={({ selected }: { selected: string }) =>\n\t\t\t\t\t\t\tfield.onChange([selected])\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlabel={i18n.t(\"Aggregation\")}\n\t\t\t\t\t>\n\t\t\t\t\t\t{supportedAggregations.map((aggregation) => (\n\t\t\t\t\t\t\t<SingleSelectOption\n\t\t\t\t\t\t\t\tkey={`${aggregation}-option`}\n\t\t\t\t\t\t\t\tlabel={capitalize(aggregation)}\n\t\t\t\t\t\t\t\tvalue={aggregation}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</SingleSelectField>\n\t\t\t\t) : (\n\t\t\t\t\t<MultiSelectField\n\t\t\t\t\t\terror={Boolean(fieldState.error)}\n\t\t\t\t\t\tvalidationText={fieldState?.error?.message}\n\t\t\t\t\t\tselected={field.value?.filter(\n\t\t\t\t\t\t\t(value: string) =>\n\t\t\t\t\t\t\t\tsupportedAggregations?.includes(value),\n\t\t\t\t\t\t)}\n\t\t\t\t\t\tonChange={({ selected }: { selected: string[] }) =>\n\t\t\t\t\t\t\tfield.onChange(selected)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlabel={i18n.t(\"Aggregations\")}\n\t\t\t\t\t>\n\t\t\t\t\t\t{supportedAggregations.map((aggregation) => (\n\t\t\t\t\t\t\t<MultiSelectOption\n\t\t\t\t\t\t\t\tkey={`${aggregation}-option`}\n\t\t\t\t\t\t\t\tlabel={capitalize(aggregation)}\n\t\t\t\t\t\t\t\tvalue={aggregation}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</MultiSelectField>\n\t\t\t\t);\n\t\t\t}}\n\t\t\tname={\"aggregations\"}\n\t\t/>\n\t);\n}\n"]}
|