@hisptz/dhis2-analytics 1.0.5 → 1.0.7
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/build/cjs/components/ChartAnalytics/ChartAnalytics.stories.js +253 -0
- package/build/cjs/components/ChartAnalytics/ChartAnalytics.test.js +51 -0
- package/build/cjs/components/ChartAnalytics/components/DownloadMenu/components/Menu.js +48 -0
- package/build/cjs/components/ChartAnalytics/components/DownloadMenu/constants/menu.js +34 -0
- package/build/cjs/components/ChartAnalytics/components/DownloadMenu/index.js +67 -0
- package/build/cjs/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.js +1 -0
- package/{src → build/cjs}/components/ChartAnalytics/data/column-data.json +0 -0
- package/{src → build/cjs}/components/ChartAnalytics/data/complex-multi-series-data.json +0 -0
- package/{src → build/cjs}/components/ChartAnalytics/data/multi-series-data.json +0 -0
- package/{src → build/cjs}/components/ChartAnalytics/data/pie-data.json +0 -0
- package/{src → build/cjs}/components/ChartAnalytics/data/stacked-chart-data.json +0 -0
- package/build/cjs/components/ChartAnalytics/hooks/useChart.js +38 -0
- package/build/cjs/components/ChartAnalytics/index.js +69 -0
- package/build/cjs/components/ChartAnalytics/models/column.js +53 -0
- package/build/cjs/components/ChartAnalytics/models/index.js +102 -0
- package/build/cjs/components/ChartAnalytics/models/line.js +35 -0
- package/build/cjs/components/ChartAnalytics/models/multi-series.js +111 -0
- package/build/cjs/components/ChartAnalytics/models/pie.js +53 -0
- package/build/cjs/components/ChartAnalytics/services/export.js +50 -0
- package/{src → build/cjs}/components/ChartAnalytics/styles/custom-highchart.css +0 -0
- package/build/cjs/components/ChartAnalytics/types/props.js +1 -0
- package/build/cjs/components/ChartAnalytics/utils/chart.js +133 -0
- package/build/cjs/components/CircularProgressDashboard/CircularProgressIndicator.stories.js +45 -0
- package/build/cjs/components/CircularProgressDashboard/CircularProgressIndicator.test.js +13 -0
- package/build/cjs/components/CircularProgressDashboard/index.js +49 -0
- package/build/cjs/components/CircularProgressDashboard/types/props.js +1 -0
- package/build/cjs/components/Map/Map.stories.js +352 -0
- package/build/cjs/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.stories.js +32 -0
- package/build/cjs/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.stories.js +40 -0
- package/build/cjs/components/Map/components/EarthEngineLayerConfiguration/index.js +458 -0
- package/build/cjs/components/Map/components/MapArea/index.js +101 -0
- package/build/cjs/components/Map/components/MapArea/interfaces/index.js +1 -0
- package/build/cjs/components/Map/components/MapControls/components/CustomControl/index.js +32 -0
- package/build/cjs/components/Map/components/MapControls/components/DownloadControl/index.js +25 -0
- package/build/cjs/components/Map/components/MapControls/components/FullscreenControl/index.js +13 -0
- package/build/cjs/components/Map/components/MapControls/index.js +42 -0
- package/build/cjs/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.js +13 -0
- package/build/cjs/components/Map/components/MapLayer/components/BoundaryLayer/index.js +51 -0
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.js +106 -0
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.js +379 -0
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.js +36 -0
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/index.js +200 -0
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.js +1 -0
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js +14 -0
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.js +412 -0
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.js +124 -0
- package/{src → build/cjs}/components/Map/components/MapLayer/components/LegendArea/LegendArea.module.css +0 -0
- package/build/cjs/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.js +26 -0
- package/build/cjs/components/Map/components/MapLayer/components/LegendArea/index.js +181 -0
- package/build/cjs/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.js +86 -0
- package/build/cjs/components/Map/components/MapLayer/components/PointLayer/hooks/index.js +14 -0
- package/build/cjs/components/Map/components/MapLayer/components/PointLayer/index.js +46 -0
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.js +57 -0
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.js +145 -0
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.js +43 -0
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.js +56 -0
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.js +61 -0
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.js +43 -0
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.js +35 -0
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.js +15 -0
- package/build/cjs/components/Map/components/MapLayer/components/ThematicLayer/index.js +57 -0
- package/{src → build/cjs}/components/Map/components/MapLayer/components/ThematicLayer/styles/legends.css +0 -0
- package/build/cjs/components/Map/components/MapLayer/index.js +40 -0
- package/build/cjs/components/Map/components/MapLayer/interfaces/index.js +8 -0
- package/build/cjs/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.js +389 -0
- package/build/cjs/components/Map/components/MapProvider/components/MapLayerProvider/index.js +116 -0
- package/build/cjs/components/Map/components/MapProvider/hooks/index.js +19 -0
- package/build/cjs/components/Map/components/MapProvider/index.js +121 -0
- package/build/cjs/components/Map/components/MapUpdater/index.js +24 -0
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.stories.js +32 -0
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.stories.js +40 -0
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.js +40 -0
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.js +428 -0
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.js +63 -0
- package/{src → build/cjs}/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/styles/ColorScale.module.css +0 -0
- package/{src → build/cjs}/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/styles/ColorScaleSelect.module.css +0 -0
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.js +72 -0
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.js +71 -0
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.js +47 -0
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.js +79 -0
- package/build/cjs/components/Map/components/ThematicLayerConfiguration/index.js +265 -0
- package/build/cjs/components/Map/constants/colors.js +428 -0
- package/build/cjs/components/Map/constants/legendSet.js +22 -0
- package/build/cjs/components/Map/hooks/map.js +52 -0
- package/build/cjs/components/Map/index.js +108 -0
- package/build/cjs/components/Map/interfaces/index.js +1 -0
- package/build/cjs/components/Map/state/index.js +23 -0
- package/build/cjs/components/Map/utils/colors.js +78 -0
- package/build/cjs/components/Map/utils/helpers.js +25 -0
- package/build/cjs/components/Map/utils/map.js +161 -0
- package/build/cjs/components/SingleValueContainer/SingleValueContainer.stories.js +127 -0
- package/build/cjs/components/SingleValueContainer/SingleValueContainer.test.js +23 -0
- package/build/cjs/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.js +54 -0
- package/build/cjs/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.js +24 -0
- package/build/cjs/components/SingleValueContainer/index.js +43 -0
- package/{src → build/cjs}/components/SingleValueContainer/styles/SingleValueContainer.module.css +0 -0
- package/build/cjs/components/SingleValueContainer/types/props.js +1 -0
- package/{src → build/cjs}/data/map.json +0 -0
- package/build/cjs/dataProviders/map.js +31 -0
- package/build/cjs/index.js +49 -0
- package/build/cjs/locales/en/translations.json +128 -0
- package/build/cjs/locales/index.js +22 -0
- package/build/es/components/ChartAnalytics/ChartAnalytics.stories.js +235 -0
- package/build/es/components/ChartAnalytics/ChartAnalytics.test.js +46 -0
- package/build/es/components/ChartAnalytics/components/DownloadMenu/components/Menu.js +41 -0
- package/build/es/components/ChartAnalytics/components/DownloadMenu/constants/menu.js +26 -0
- package/build/es/components/ChartAnalytics/components/DownloadMenu/index.js +58 -0
- package/build/es/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.js +1 -0
- package/build/es/components/ChartAnalytics/data/column-data.json +210 -0
- package/build/es/components/ChartAnalytics/data/complex-multi-series-data.json +124 -0
- package/build/es/components/ChartAnalytics/data/multi-series-data.json +536 -0
- package/build/es/components/ChartAnalytics/data/pie-data.json +115 -0
- package/build/es/components/ChartAnalytics/data/stacked-chart-data.json +415 -0
- package/build/es/components/ChartAnalytics/hooks/useChart.js +32 -0
- package/build/es/components/ChartAnalytics/index.js +40 -0
- package/build/es/components/ChartAnalytics/models/column.js +45 -0
- package/build/es/components/ChartAnalytics/models/index.js +95 -0
- package/build/es/components/ChartAnalytics/models/line.js +28 -0
- package/build/es/components/ChartAnalytics/models/multi-series.js +104 -0
- package/build/es/components/ChartAnalytics/models/pie.js +46 -0
- package/build/es/components/ChartAnalytics/services/export.js +36 -0
- package/build/es/components/ChartAnalytics/styles/custom-highchart.css +48 -0
- package/build/es/components/ChartAnalytics/types/props.js +1 -0
- package/build/es/components/ChartAnalytics/utils/chart.js +122 -0
- package/{src/components/CircularProgressDashboard/CircularProgressIndicator.stories.tsx → build/es/components/CircularProgressDashboard/CircularProgressIndicator.stories.js} +9 -16
- package/build/es/components/CircularProgressDashboard/CircularProgressIndicator.test.js +10 -0
- package/build/es/components/CircularProgressDashboard/index.js +41 -0
- package/build/es/components/CircularProgressDashboard/types/props.js +1 -0
- package/build/es/components/Map/Map.stories.js +334 -0
- package/build/es/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.stories.js +23 -0
- package/build/es/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.stories.js +31 -0
- package/build/es/components/Map/components/EarthEngineLayerConfiguration/index.js +448 -0
- package/build/es/components/Map/components/MapArea/index.js +91 -0
- package/build/es/components/Map/components/MapArea/interfaces/index.js +1 -0
- package/build/es/components/Map/components/MapControls/components/CustomControl/index.js +25 -0
- package/build/es/components/Map/components/MapControls/components/DownloadControl/index.js +18 -0
- package/build/es/components/Map/components/MapControls/components/FullscreenControl/index.js +6 -0
- package/build/es/components/Map/components/MapControls/index.js +35 -0
- package/build/es/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.js +7 -0
- package/build/es/components/Map/components/MapLayer/components/BoundaryLayer/index.js +41 -0
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.js +95 -0
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.js +369 -0
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.js +29 -0
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/index.js +191 -0
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.js +1 -0
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js +14 -0
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.js +403 -0
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.js +111 -0
- package/build/es/components/Map/components/MapLayer/components/LegendArea/LegendArea.module.css +12 -0
- package/build/es/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.js +19 -0
- package/build/es/components/Map/components/MapLayer/components/LegendArea/index.js +172 -0
- package/build/es/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.js +76 -0
- package/build/es/components/Map/components/MapLayer/components/PointLayer/hooks/index.js +8 -0
- package/build/es/components/Map/components/MapLayer/components/PointLayer/index.js +39 -0
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.js +49 -0
- package/{src/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.tsx → build/es/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.js} +57 -74
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.js +33 -0
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.js +47 -0
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.js +50 -0
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.js +36 -0
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.js +28 -0
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.js +9 -0
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/index.js +50 -0
- package/build/es/components/Map/components/MapLayer/components/ThematicLayer/styles/legends.css +62 -0
- package/build/es/components/Map/components/MapLayer/index.js +33 -0
- package/build/es/components/Map/components/MapLayer/interfaces/index.js +1 -0
- package/build/es/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.js +381 -0
- package/build/es/components/Map/components/MapProvider/components/MapLayerProvider/index.js +107 -0
- package/{src/components/Map/components/MapProvider/hooks/index.ts → build/es/components/Map/components/MapProvider/hooks/index.js} +3 -6
- package/build/es/components/Map/components/MapProvider/index.js +112 -0
- package/build/es/components/Map/components/MapUpdater/index.js +17 -0
- package/build/es/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.stories.js +23 -0
- package/build/es/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.stories.js +31 -0
- package/build/es/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.js +33 -0
- package/{src/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.ts → build/es/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.js} +46 -59
- package/build/es/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.js +53 -0
- package/build/es/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/styles/ColorScale.module.css +15 -0
- package/build/es/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/styles/ColorScaleSelect.module.css +12 -0
- package/build/es/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.js +56 -0
- package/build/es/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.js +64 -0
- package/build/es/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.js +38 -0
- package/build/es/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.js +70 -0
- package/build/es/components/Map/components/ThematicLayerConfiguration/index.js +254 -0
- package/{src/components/Map/constants/colors.ts → build/es/components/Map/constants/colors.js} +46 -59
- package/build/es/components/Map/constants/legendSet.js +15 -0
- package/build/es/components/Map/hooks/map.js +44 -0
- package/build/es/components/Map/index.js +51 -0
- package/build/es/components/Map/interfaces/index.js +1 -0
- package/build/es/components/Map/state/index.js +14 -0
- package/build/es/components/Map/utils/colors.js +61 -0
- package/build/es/components/Map/utils/helpers.js +14 -0
- package/build/es/components/Map/utils/map.js +147 -0
- package/build/es/components/SingleValueContainer/SingleValueContainer.stories.js +115 -0
- package/build/es/components/SingleValueContainer/SingleValueContainer.test.js +20 -0
- package/build/es/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.js +47 -0
- package/build/es/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.js +17 -0
- package/build/es/components/SingleValueContainer/index.js +29 -0
- package/build/es/components/SingleValueContainer/styles/SingleValueContainer.module.css +39 -0
- package/build/es/components/SingleValueContainer/types/props.js +1 -0
- package/build/es/data/map.json +5984 -0
- package/build/es/dataProviders/map.js +24 -0
- package/build/es/index.js +5 -0
- package/build/es/locales/en/translations.json +128 -0
- package/build/es/locales/index.js +13 -0
- package/build/types/components/ChartAnalytics/components/DownloadMenu/components/Menu.d.ts +8 -0
- package/build/types/components/ChartAnalytics/components/DownloadMenu/constants/menu.d.ts +7 -0
- package/build/types/components/ChartAnalytics/components/DownloadMenu/index.d.ts +9 -0
- package/{src/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.ts → build/types/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.d.ts} +0 -0
- package/build/types/components/ChartAnalytics/hooks/useChart.d.ts +11 -0
- package/build/types/components/ChartAnalytics/index.d.ts +9 -0
- package/build/types/components/ChartAnalytics/models/column.d.ts +12 -0
- package/build/types/components/ChartAnalytics/models/index.d.ts +17 -0
- package/build/types/components/ChartAnalytics/models/line.d.ts +8 -0
- package/build/types/components/ChartAnalytics/models/multi-series.d.ts +9 -0
- package/build/types/components/ChartAnalytics/models/pie.d.ts +8 -0
- package/build/types/components/ChartAnalytics/services/export.d.ts +8 -0
- package/build/types/components/ChartAnalytics/types/props.d.ts +43 -0
- package/build/types/components/ChartAnalytics/utils/chart.d.ts +15 -0
- package/build/types/components/CircularProgressDashboard/index.d.ts +3 -0
- package/build/types/components/CircularProgressDashboard/types/props.d.ts +17 -0
- package/build/types/components/Map/components/EarthEngineLayerConfiguration/index.d.ts +17 -0
- package/build/types/components/Map/components/MapArea/index.d.ts +5 -0
- package/build/types/components/Map/components/MapArea/interfaces/index.d.ts +30 -0
- package/build/types/components/Map/components/MapControls/components/CustomControl/index.d.ts +7 -0
- package/build/types/components/Map/components/MapControls/components/DownloadControl/index.d.ts +8 -0
- package/build/types/components/Map/components/MapControls/components/FullscreenControl/index.d.ts +5 -0
- package/build/types/components/Map/components/MapControls/index.d.ts +6 -0
- package/build/types/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.d.ts +1 -0
- package/build/types/components/Map/components/MapLayer/components/BoundaryLayer/index.d.ts +15 -0
- package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.d.ts +17 -0
- package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.d.ts +4 -0
- package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.d.ts +9 -0
- package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/index.d.ts +4 -0
- package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.d.ts +58 -0
- package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.d.ts +1 -0
- package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.d.ts +55 -0
- package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.d.ts +20 -0
- package/build/types/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.d.ts +6 -0
- package/build/types/components/Map/components/MapLayer/components/LegendArea/index.d.ts +9 -0
- package/build/types/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.d.ts +3 -0
- package/build/types/components/Map/components/MapLayer/components/PointLayer/hooks/index.d.ts +2 -0
- package/build/types/components/Map/components/MapLayer/components/PointLayer/index.d.ts +2 -0
- package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.d.ts +13 -0
- package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.d.ts +10 -0
- package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.d.ts +16 -0
- package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.d.ts +12 -0
- package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.d.ts +21 -0
- package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.d.ts +12 -0
- package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.d.ts +5 -0
- package/build/types/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.d.ts +2 -0
- package/build/types/components/Map/components/MapLayer/components/ThematicLayer/index.d.ts +5 -0
- package/build/types/components/Map/components/MapLayer/index.d.ts +6 -0
- package/build/types/components/Map/components/MapLayer/interfaces/index.d.ts +123 -0
- package/build/types/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.d.ts +9 -0
- package/build/types/components/Map/components/MapProvider/components/MapLayerProvider/index.d.ts +6 -0
- package/build/types/components/Map/components/MapProvider/hooks/index.d.ts +15 -0
- package/build/types/components/Map/components/MapProvider/index.d.ts +3 -0
- package/build/types/components/Map/components/MapUpdater/index.d.ts +5 -0
- package/build/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.d.ts +8 -0
- package/build/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.d.ts +419 -0
- package/build/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.d.ts +9 -0
- package/build/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.d.ts +11 -0
- package/build/types/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.d.ts +2 -0
- package/build/types/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.d.ts +8 -0
- package/build/types/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.d.ts +9 -0
- package/build/types/components/Map/components/ThematicLayerConfiguration/index.d.ts +18 -0
- package/build/types/components/Map/constants/colors.d.ts +419 -0
- package/build/types/components/Map/constants/legendSet.d.ts +7 -0
- package/build/types/components/Map/hooks/map.d.ts +9 -0
- package/build/types/components/Map/index.d.ts +8 -0
- package/build/types/components/Map/interfaces/index.d.ts +65 -0
- package/build/types/components/Map/state/index.d.ts +20 -0
- package/build/types/components/Map/utils/colors.d.ts +12 -0
- package/build/types/components/Map/utils/helpers.d.ts +6 -0
- package/build/types/components/Map/utils/map.d.ts +40 -0
- package/build/types/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.d.ts +8 -0
- package/build/types/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.d.ts +2 -0
- package/build/types/components/SingleValueContainer/index.d.ts +5 -0
- package/build/types/components/SingleValueContainer/types/props.d.ts +15 -0
- package/build/types/dataProviders/map.d.ts +4 -0
- package/{src/index.ts → build/types/index.d.ts} +0 -0
- package/package.json +26 -5
- package/d2.config.js +0 -8
- package/i18n/en.pot +0 -409
- package/src/components/ChartAnalytics/ChartAnalytics.stories.tsx +0 -250
- package/src/components/ChartAnalytics/ChartAnalytics.test.tsx +0 -51
- package/src/components/ChartAnalytics/components/DownloadMenu/components/Menu.tsx +0 -48
- package/src/components/ChartAnalytics/components/DownloadMenu/constants/menu.ts +0 -38
- package/src/components/ChartAnalytics/components/DownloadMenu/index.tsx +0 -67
- package/src/components/ChartAnalytics/hooks/useChart.ts +0 -35
- package/src/components/ChartAnalytics/index.tsx +0 -23
- package/src/components/ChartAnalytics/models/column.ts +0 -50
- package/src/components/ChartAnalytics/models/index.ts +0 -78
- package/src/components/ChartAnalytics/models/line.ts +0 -31
- package/src/components/ChartAnalytics/models/multi-series.ts +0 -115
- package/src/components/ChartAnalytics/models/pie.ts +0 -54
- package/src/components/ChartAnalytics/services/export.ts +0 -38
- package/src/components/ChartAnalytics/types/props.tsx +0 -48
- package/src/components/ChartAnalytics/utils/chart.ts +0 -123
- package/src/components/CircularProgressDashboard/CircularProgressIndicator.test.tsx +0 -9
- package/src/components/CircularProgressDashboard/index.tsx +0 -35
- package/src/components/CircularProgressDashboard/types/props.tsx +0 -17
- package/src/components/Map/Map.stories.tsx +0 -339
- package/src/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.stories.tsx +0 -28
- package/src/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.stories.tsx +0 -34
- package/src/components/Map/components/EarthEngineLayerConfiguration/index.tsx +0 -412
- package/src/components/Map/components/MapArea/index.tsx +0 -83
- package/src/components/Map/components/MapArea/interfaces/index.ts +0 -39
- package/src/components/Map/components/MapControls/components/CustomControl/index.tsx +0 -24
- package/src/components/Map/components/MapControls/components/DownloadControl/index.tsx +0 -10
- package/src/components/Map/components/MapControls/components/FullscreenControl/index.tsx +0 -7
- package/src/components/Map/components/MapControls/index.tsx +0 -24
- package/src/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.ts +0 -7
- package/src/components/Map/components/MapLayer/components/BoundaryLayer/index.tsx +0 -55
- package/src/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.tsx +0 -76
- package/src/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.ts +0 -430
- package/src/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.ts +0 -34
- package/src/components/Map/components/MapLayer/components/GoogleEngineLayer/index.tsx +0 -185
- package/src/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.ts +0 -56
- package/src/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js +0 -34233
- package/src/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.ts +0 -431
- package/src/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.ts +0 -105
- package/src/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.tsx +0 -17
- package/src/components/Map/components/MapLayer/components/LegendArea/index.tsx +0 -168
- package/src/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.tsx +0 -44
- package/src/components/Map/components/MapLayer/components/PointLayer/hooks/index.ts +0 -8
- package/src/components/Map/components/MapLayer/components/PointLayer/index.tsx +0 -36
- package/src/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.tsx +0 -48
- package/src/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.tsx +0 -39
- package/src/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.tsx +0 -57
- package/src/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.tsx +0 -43
- package/src/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.tsx +0 -38
- package/src/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.tsx +0 -26
- package/src/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.ts +0 -10
- package/src/components/Map/components/MapLayer/components/ThematicLayer/index.tsx +0 -46
- package/src/components/Map/components/MapLayer/index.tsx +0 -32
- package/src/components/Map/components/MapLayer/interfaces/index.ts +0 -139
- package/src/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.tsx +0 -359
- package/src/components/Map/components/MapProvider/components/MapLayerProvider/index.tsx +0 -105
- package/src/components/Map/components/MapProvider/index.tsx +0 -93
- package/src/components/Map/components/MapUpdater/index.tsx +0 -8
- package/src/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.stories.tsx +0 -28
- package/src/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.stories.tsx +0 -34
- package/src/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.tsx +0 -24
- package/src/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.tsx +0 -50
- package/src/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.ts +0 -91
- package/src/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.tsx +0 -45
- package/src/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.tsx +0 -47
- package/src/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.tsx +0 -57
- package/src/components/Map/components/ThematicLayerConfiguration/index.tsx +0 -248
- package/src/components/Map/constants/legendSet.ts +0 -19
- package/src/components/Map/hooks/map.ts +0 -47
- package/src/components/Map/index.tsx +0 -65
- package/src/components/Map/interfaces/index.ts +0 -57
- package/src/components/Map/state/index.tsx +0 -31
- package/src/components/Map/utils/colors.ts +0 -95
- package/src/components/Map/utils/helpers.ts +0 -15
- package/src/components/Map/utils/map.ts +0 -150
- package/src/components/SingleValueContainer/SingleValueContainer.stories.tsx +0 -146
- package/src/components/SingleValueContainer/SingleValueContainer.test.tsx +0 -24
- package/src/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.tsx +0 -46
- package/src/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.tsx +0 -12
- package/src/components/SingleValueContainer/index.tsx +0 -30
- package/src/components/SingleValueContainer/types/props.tsx +0 -16
- package/src/dataProviders/map.tsx +0 -24
- package/src/index.test.ts +0 -7
- package/tsconfig.json +0 -45
package/d2.config.js
DELETED
package/i18n/en.pot
DELETED
|
@@ -1,409 +0,0 @@
|
|
|
1
|
-
msgid ""
|
|
2
|
-
msgstr ""
|
|
3
|
-
"Project-Id-Version: i18next-conv\n"
|
|
4
|
-
"MIME-Version: 1.0\n"
|
|
5
|
-
"Content-Type: text/plain; charset=utf-8\n"
|
|
6
|
-
"Content-Transfer-Encoding: 8bit\n"
|
|
7
|
-
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
|
|
8
|
-
"POT-Creation-Date: 2023-01-21T07:50:26.675Z\n"
|
|
9
|
-
"PO-Revision-Date: 2023-01-21T07:50:26.675Z\n"
|
|
10
|
-
|
|
11
|
-
msgid "Download PNG"
|
|
12
|
-
msgstr "Download PNG"
|
|
13
|
-
|
|
14
|
-
msgid "Download JPEG"
|
|
15
|
-
msgstr "Download JPEG"
|
|
16
|
-
|
|
17
|
-
msgid "Download SVG"
|
|
18
|
-
msgstr "Download SVG"
|
|
19
|
-
|
|
20
|
-
msgid "Download PDF"
|
|
21
|
-
msgstr "Download PDF"
|
|
22
|
-
|
|
23
|
-
msgid "View as table"
|
|
24
|
-
msgstr "View as table"
|
|
25
|
-
|
|
26
|
-
msgid "View full screen"
|
|
27
|
-
msgstr "View full screen"
|
|
28
|
-
|
|
29
|
-
msgid "Submit"
|
|
30
|
-
msgstr "Submit"
|
|
31
|
-
|
|
32
|
-
msgid "Aggregation"
|
|
33
|
-
msgstr "Aggregation"
|
|
34
|
-
|
|
35
|
-
msgid "Aggregations"
|
|
36
|
-
msgstr "Aggregations"
|
|
37
|
-
|
|
38
|
-
msgid "Period is required"
|
|
39
|
-
msgstr "Period is required"
|
|
40
|
-
|
|
41
|
-
msgid "Available periods are set by the source data"
|
|
42
|
-
msgstr "Available periods are set by the source data"
|
|
43
|
-
|
|
44
|
-
msgid "Period"
|
|
45
|
-
msgstr "Period"
|
|
46
|
-
|
|
47
|
-
msgid "Min"
|
|
48
|
-
msgstr "Min"
|
|
49
|
-
|
|
50
|
-
msgid "Max"
|
|
51
|
-
msgstr "Max"
|
|
52
|
-
|
|
53
|
-
msgid "Steps"
|
|
54
|
-
msgstr "Steps"
|
|
55
|
-
|
|
56
|
-
msgid "Colors"
|
|
57
|
-
msgstr "Colors"
|
|
58
|
-
|
|
59
|
-
msgid "Unit"
|
|
60
|
-
msgstr "Unit"
|
|
61
|
-
|
|
62
|
-
msgid "Name is required"
|
|
63
|
-
msgstr "Name is required"
|
|
64
|
-
|
|
65
|
-
msgid "Layer name"
|
|
66
|
-
msgstr "Layer name"
|
|
67
|
-
|
|
68
|
-
msgid "Type is required"
|
|
69
|
-
msgstr "Type is required"
|
|
70
|
-
|
|
71
|
-
msgid "Layer type"
|
|
72
|
-
msgstr "Layer type"
|
|
73
|
-
|
|
74
|
-
msgid "Configure Earth Engine Layer"
|
|
75
|
-
msgstr "Configure Earth Engine Layer"
|
|
76
|
-
|
|
77
|
-
msgid "Cancel"
|
|
78
|
-
msgstr "Cancel"
|
|
79
|
-
|
|
80
|
-
msgid "Save"
|
|
81
|
-
msgstr "Save"
|
|
82
|
-
|
|
83
|
-
msgid "Boundaries"
|
|
84
|
-
msgstr "Boundaries"
|
|
85
|
-
|
|
86
|
-
msgid "Source"
|
|
87
|
-
msgstr "Source"
|
|
88
|
-
|
|
89
|
-
msgid "Population"
|
|
90
|
-
msgstr "Population"
|
|
91
|
-
|
|
92
|
-
msgid "people per hectare"
|
|
93
|
-
msgstr "people per hectare"
|
|
94
|
-
|
|
95
|
-
msgid "Estimated number of people living in an area."
|
|
96
|
-
msgstr "Estimated number of people living in an area."
|
|
97
|
-
|
|
98
|
-
msgid "Population age groups"
|
|
99
|
-
msgstr "Population age groups"
|
|
100
|
-
|
|
101
|
-
msgid "Estimated number of people living in an area, grouped by age and gender."
|
|
102
|
-
msgstr "Estimated number of people living in an area, grouped by age and gender."
|
|
103
|
-
|
|
104
|
-
msgid "Male 0 - 1 years"
|
|
105
|
-
msgstr "Male 0 - 1 years"
|
|
106
|
-
|
|
107
|
-
msgid "Male 1 - 4 years"
|
|
108
|
-
msgstr "Male 1 - 4 years"
|
|
109
|
-
|
|
110
|
-
msgid "Male 5 - 9 years"
|
|
111
|
-
msgstr "Male 5 - 9 years"
|
|
112
|
-
|
|
113
|
-
msgid "Male 10 - 14 years"
|
|
114
|
-
msgstr "Male 10 - 14 years"
|
|
115
|
-
|
|
116
|
-
msgid "Male 15 - 19 years"
|
|
117
|
-
msgstr "Male 15 - 19 years"
|
|
118
|
-
|
|
119
|
-
msgid "Male 20 - 24 years"
|
|
120
|
-
msgstr "Male 20 - 24 years"
|
|
121
|
-
|
|
122
|
-
msgid "Male 25 - 29 years"
|
|
123
|
-
msgstr "Male 25 - 29 years"
|
|
124
|
-
|
|
125
|
-
msgid "Male 30 - 34 years"
|
|
126
|
-
msgstr "Male 30 - 34 years"
|
|
127
|
-
|
|
128
|
-
msgid "Male 35 - 39 years"
|
|
129
|
-
msgstr "Male 35 - 39 years"
|
|
130
|
-
|
|
131
|
-
msgid "Male 40 - 44 years"
|
|
132
|
-
msgstr "Male 40 - 44 years"
|
|
133
|
-
|
|
134
|
-
msgid "Male 45 - 49 years"
|
|
135
|
-
msgstr "Male 45 - 49 years"
|
|
136
|
-
|
|
137
|
-
msgid "Male 50 - 54 years"
|
|
138
|
-
msgstr "Male 50 - 54 years"
|
|
139
|
-
|
|
140
|
-
msgid "Male 55 - 59 years"
|
|
141
|
-
msgstr "Male 55 - 59 years"
|
|
142
|
-
|
|
143
|
-
msgid "Male 60 - 64 years"
|
|
144
|
-
msgstr "Male 60 - 64 years"
|
|
145
|
-
|
|
146
|
-
msgid "Male 65 - 69 years"
|
|
147
|
-
msgstr "Male 65 - 69 years"
|
|
148
|
-
|
|
149
|
-
msgid "Male 70 - 74 years"
|
|
150
|
-
msgstr "Male 70 - 74 years"
|
|
151
|
-
|
|
152
|
-
msgid "Male 75 - 79 years"
|
|
153
|
-
msgstr "Male 75 - 79 years"
|
|
154
|
-
|
|
155
|
-
msgid "Male 80 years and above"
|
|
156
|
-
msgstr "Male 80 years and above"
|
|
157
|
-
|
|
158
|
-
msgid "Female 0 - 1 years"
|
|
159
|
-
msgstr "Female 0 - 1 years"
|
|
160
|
-
|
|
161
|
-
msgid "Female 1 - 4 years"
|
|
162
|
-
msgstr "Female 1 - 4 years"
|
|
163
|
-
|
|
164
|
-
msgid "Female 5 - 9 years"
|
|
165
|
-
msgstr "Female 5 - 9 years"
|
|
166
|
-
|
|
167
|
-
msgid "Female 10 - 14 years"
|
|
168
|
-
msgstr "Female 10 - 14 years"
|
|
169
|
-
|
|
170
|
-
msgid "Female 15 - 19 years"
|
|
171
|
-
msgstr "Female 15 - 19 years"
|
|
172
|
-
|
|
173
|
-
msgid "Female 20 - 24 years"
|
|
174
|
-
msgstr "Female 20 - 24 years"
|
|
175
|
-
|
|
176
|
-
msgid "Female 25 - 29 years"
|
|
177
|
-
msgstr "Female 25 - 29 years"
|
|
178
|
-
|
|
179
|
-
msgid "Female 30 - 34 years"
|
|
180
|
-
msgstr "Female 30 - 34 years"
|
|
181
|
-
|
|
182
|
-
msgid "Female 35 - 39 years"
|
|
183
|
-
msgstr "Female 35 - 39 years"
|
|
184
|
-
|
|
185
|
-
msgid "Female 40 - 44 years"
|
|
186
|
-
msgstr "Female 40 - 44 years"
|
|
187
|
-
|
|
188
|
-
msgid "Female 45 - 49 years"
|
|
189
|
-
msgstr "Female 45 - 49 years"
|
|
190
|
-
|
|
191
|
-
msgid "Female 50 - 54 years"
|
|
192
|
-
msgstr "Female 50 - 54 years"
|
|
193
|
-
|
|
194
|
-
msgid "Female 55 - 59 years"
|
|
195
|
-
msgstr "Female 55 - 59 years"
|
|
196
|
-
|
|
197
|
-
msgid "Female 60 - 64 years"
|
|
198
|
-
msgstr "Female 60 - 64 years"
|
|
199
|
-
|
|
200
|
-
msgid "Female 65 - 69 years"
|
|
201
|
-
msgstr "Female 65 - 69 years"
|
|
202
|
-
|
|
203
|
-
msgid "Female 70 - 74 years"
|
|
204
|
-
msgstr "Female 70 - 74 years"
|
|
205
|
-
|
|
206
|
-
msgid "Female 75 - 79 years"
|
|
207
|
-
msgstr "Female 75 - 79 years"
|
|
208
|
-
|
|
209
|
-
msgid "Female 80 years and above"
|
|
210
|
-
msgstr "Female 80 years and above"
|
|
211
|
-
|
|
212
|
-
msgid "Building footprints"
|
|
213
|
-
msgstr "Building footprints"
|
|
214
|
-
|
|
215
|
-
msgid "Number of buildings"
|
|
216
|
-
msgstr "Number of buildings"
|
|
217
|
-
|
|
218
|
-
msgid ""
|
|
219
|
-
"The outlines of buildings derived from high-resolution satellite imagery. "
|
|
220
|
-
"Only for the continent of Africa."
|
|
221
|
-
msgstr ""
|
|
222
|
-
"The outlines of buildings derived from high-resolution satellite imagery. "
|
|
223
|
-
"Only for the continent of Africa."
|
|
224
|
-
|
|
225
|
-
msgid "Building counts are only available for smaller organisation unit areas."
|
|
226
|
-
msgstr "Building counts are only available for smaller organisation unit areas."
|
|
227
|
-
|
|
228
|
-
msgid ""
|
|
229
|
-
"Select a smaller area or single organization unit to see the count of "
|
|
230
|
-
"buildings."
|
|
231
|
-
msgstr ""
|
|
232
|
-
"Select a smaller area or single organization unit to see the count of "
|
|
233
|
-
"buildings."
|
|
234
|
-
|
|
235
|
-
msgid "Elevation"
|
|
236
|
-
msgstr "Elevation"
|
|
237
|
-
|
|
238
|
-
msgid "meters"
|
|
239
|
-
msgstr "meters"
|
|
240
|
-
|
|
241
|
-
msgid "Elevation above sea-level."
|
|
242
|
-
msgstr "Elevation above sea-level."
|
|
243
|
-
|
|
244
|
-
msgid "Precipitation"
|
|
245
|
-
msgstr "Precipitation"
|
|
246
|
-
|
|
247
|
-
msgid "millimeter"
|
|
248
|
-
msgstr "millimeter"
|
|
249
|
-
|
|
250
|
-
msgid ""
|
|
251
|
-
"Precipitation collected from satellite and weather stations on the ground. "
|
|
252
|
-
"The values are in millimeters within 5 days periods. Updated monthly, "
|
|
253
|
-
"during the 3rd week of the following month."
|
|
254
|
-
msgstr ""
|
|
255
|
-
"Precipitation collected from satellite and weather stations on the ground. "
|
|
256
|
-
"The values are in millimeters within 5 days periods. Updated monthly, "
|
|
257
|
-
"during the 3rd week of the following month."
|
|
258
|
-
|
|
259
|
-
msgid "Temperature"
|
|
260
|
-
msgstr "Temperature"
|
|
261
|
-
|
|
262
|
-
msgid "°C during daytime"
|
|
263
|
-
msgstr "°C during daytime"
|
|
264
|
-
|
|
265
|
-
msgid ""
|
|
266
|
-
"Land surface temperatures collected from satellite. Blank spots will appear "
|
|
267
|
-
"in areas with a persistent cloud cover."
|
|
268
|
-
msgstr ""
|
|
269
|
-
"Land surface temperatures collected from satellite. Blank spots will appear "
|
|
270
|
-
"in areas with a persistent cloud cover."
|
|
271
|
-
|
|
272
|
-
msgid "Landcover"
|
|
273
|
-
msgstr "Landcover"
|
|
274
|
-
|
|
275
|
-
msgid "Distinct landcover types collected from satellites."
|
|
276
|
-
msgstr "Distinct landcover types collected from satellites."
|
|
277
|
-
|
|
278
|
-
msgid "Evergreen Needleleaf forest"
|
|
279
|
-
msgstr "Evergreen Needleleaf forest"
|
|
280
|
-
|
|
281
|
-
msgid "Evergreen Broadleaf forest"
|
|
282
|
-
msgstr "Evergreen Broadleaf forest"
|
|
283
|
-
|
|
284
|
-
msgid "Deciduous Needleleaf forest"
|
|
285
|
-
msgstr "Deciduous Needleleaf forest"
|
|
286
|
-
|
|
287
|
-
msgid "Deciduous Broadleaf forest"
|
|
288
|
-
msgstr "Deciduous Broadleaf forest"
|
|
289
|
-
|
|
290
|
-
msgid "Mixed forest"
|
|
291
|
-
msgstr "Mixed forest"
|
|
292
|
-
|
|
293
|
-
msgid "Closed shrublands"
|
|
294
|
-
msgstr "Closed shrublands"
|
|
295
|
-
|
|
296
|
-
msgid "Open shrublands"
|
|
297
|
-
msgstr "Open shrublands"
|
|
298
|
-
|
|
299
|
-
msgid "Woody savannas"
|
|
300
|
-
msgstr "Woody savannas"
|
|
301
|
-
|
|
302
|
-
msgid "Savannas"
|
|
303
|
-
msgstr "Savannas"
|
|
304
|
-
|
|
305
|
-
msgid "Grasslands"
|
|
306
|
-
msgstr "Grasslands"
|
|
307
|
-
|
|
308
|
-
msgid "Permanent wetlands"
|
|
309
|
-
msgstr "Permanent wetlands"
|
|
310
|
-
|
|
311
|
-
msgid "Croplands"
|
|
312
|
-
msgstr "Croplands"
|
|
313
|
-
|
|
314
|
-
msgid "Urban and built-up"
|
|
315
|
-
msgstr "Urban and built-up"
|
|
316
|
-
|
|
317
|
-
msgid "Cropland/Natural vegetation mosaic"
|
|
318
|
-
msgstr "Cropland/Natural vegetation mosaic"
|
|
319
|
-
|
|
320
|
-
msgid "Snow and ice"
|
|
321
|
-
msgstr "Snow and ice"
|
|
322
|
-
|
|
323
|
-
msgid "Barren or sparsely vegetated"
|
|
324
|
-
msgstr "Barren or sparsely vegetated"
|
|
325
|
-
|
|
326
|
-
msgid "Water"
|
|
327
|
-
msgstr "Water"
|
|
328
|
-
|
|
329
|
-
msgid "Nighttime lights"
|
|
330
|
-
msgstr "Nighttime lights"
|
|
331
|
-
|
|
332
|
-
msgid "light intensity"
|
|
333
|
-
msgstr "light intensity"
|
|
334
|
-
|
|
335
|
-
msgid ""
|
|
336
|
-
"Light intensity from cities, towns, and other sites with persistent "
|
|
337
|
-
"lighting, including gas flares."
|
|
338
|
-
msgstr ""
|
|
339
|
-
"Light intensity from cities, towns, and other sites with persistent "
|
|
340
|
-
"lighting, including gas flares."
|
|
341
|
-
|
|
342
|
-
msgid "Could not get aggregate data"
|
|
343
|
-
msgstr "Could not get aggregate data"
|
|
344
|
-
|
|
345
|
-
msgid "Points"
|
|
346
|
-
msgstr "Points"
|
|
347
|
-
|
|
348
|
-
msgid "Mid"
|
|
349
|
-
msgstr "Mid"
|
|
350
|
-
|
|
351
|
-
msgid "Value"
|
|
352
|
-
msgstr "Value"
|
|
353
|
-
|
|
354
|
-
msgid "Error"
|
|
355
|
-
msgstr "Error"
|
|
356
|
-
|
|
357
|
-
msgid "Classes"
|
|
358
|
-
msgstr "Classes"
|
|
359
|
-
|
|
360
|
-
msgid "Select Data Item"
|
|
361
|
-
msgstr "Select Data Item"
|
|
362
|
-
|
|
363
|
-
msgid "Update"
|
|
364
|
-
msgstr "Update"
|
|
365
|
-
|
|
366
|
-
msgid "Legend set"
|
|
367
|
-
msgstr "Legend set"
|
|
368
|
-
|
|
369
|
-
msgid "Please wait..."
|
|
370
|
-
msgstr "Please wait..."
|
|
371
|
-
|
|
372
|
-
msgid "Layer type is required"
|
|
373
|
-
msgstr "Layer type is required"
|
|
374
|
-
|
|
375
|
-
msgid "Choropleth"
|
|
376
|
-
msgstr "Choropleth"
|
|
377
|
-
|
|
378
|
-
msgid "Bubble"
|
|
379
|
-
msgstr "Bubble"
|
|
380
|
-
|
|
381
|
-
msgid "A data item is required"
|
|
382
|
-
msgstr "A data item is required"
|
|
383
|
-
|
|
384
|
-
msgid "Data Item"
|
|
385
|
-
msgstr "Data Item"
|
|
386
|
-
|
|
387
|
-
msgid "Change"
|
|
388
|
-
msgstr "Change"
|
|
389
|
-
|
|
390
|
-
msgid "Select"
|
|
391
|
-
msgstr "Select"
|
|
392
|
-
|
|
393
|
-
msgid "Legend"
|
|
394
|
-
msgstr "Legend"
|
|
395
|
-
|
|
396
|
-
msgid "Custom legend"
|
|
397
|
-
msgstr "Custom legend"
|
|
398
|
-
|
|
399
|
-
msgid "Legend set is required"
|
|
400
|
-
msgstr "Legend set is required"
|
|
401
|
-
|
|
402
|
-
msgid "Radius"
|
|
403
|
-
msgstr "Radius"
|
|
404
|
-
|
|
405
|
-
msgid "Configure Thematic Layer"
|
|
406
|
-
msgstr "Configure Thematic Layer"
|
|
407
|
-
|
|
408
|
-
msgid "Loading ..."
|
|
409
|
-
msgstr "Loading ..."
|
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
import {CssReset} from "@dhis2/ui";
|
|
2
|
-
import type {Story} from "@storybook/react";
|
|
3
|
-
import HighCharts from "highcharts";
|
|
4
|
-
import HighchartsReact from "highcharts-react-official";
|
|
5
|
-
import React, {useState} from "react";
|
|
6
|
-
import ChartDownloadMenu from "./components/DownloadMenu";
|
|
7
|
-
import columnData from "./data/column-data.json";
|
|
8
|
-
import complexMultiSeriesData from "./data/complex-multi-series-data.json";
|
|
9
|
-
import multiSeriesData from "./data/multi-series-data.json";
|
|
10
|
-
import pieData from "./data/pie-data.json";
|
|
11
|
-
import stackedChartData from "./data/stacked-chart-data.json";
|
|
12
|
-
import {setupHighchartsModules} from "./services/export";
|
|
13
|
-
import {ChartAnalyticsProps} from "./types/props";
|
|
14
|
-
import ChartAnalytics from ".";
|
|
15
|
-
|
|
16
|
-
const Template: Story<ChartAnalyticsProps> = (args) => <ChartAnalytics {...args} />;
|
|
17
|
-
setupHighchartsModules(HighCharts);
|
|
18
|
-
|
|
19
|
-
export const Column = Template.bind({});
|
|
20
|
-
Column.args = {
|
|
21
|
-
analytics: columnData as any,
|
|
22
|
-
config: {
|
|
23
|
-
layout: {
|
|
24
|
-
series: ["dx"],
|
|
25
|
-
category: ["ou"],
|
|
26
|
-
filter: ["pe"],
|
|
27
|
-
},
|
|
28
|
-
type: "column",
|
|
29
|
-
height: 500,
|
|
30
|
-
colors: ["#2f7ed8", "#0d233a", "#8bbc21", "#910000", "#1aadce", "#492970", "#f28f43", "#77a1e5", "#c42525", "#a6c96a"],
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export const MultipleColumns = Template.bind({});
|
|
35
|
-
MultipleColumns.args = {
|
|
36
|
-
analytics: multiSeriesData as any,
|
|
37
|
-
config: {
|
|
38
|
-
layout: {
|
|
39
|
-
series: ["ou"],
|
|
40
|
-
category: ["pe"],
|
|
41
|
-
filter: ["dx"],
|
|
42
|
-
},
|
|
43
|
-
type: "column",
|
|
44
|
-
height: 1000,
|
|
45
|
-
colors: ["#2f7ed8", "#0d233a", "#8bbc21", "#910000", "#1aadce", "#492970", "#f28f43", "#77a1e5", "#c42525", "#a6c96a"],
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export const StackedColumn = Template.bind({});
|
|
50
|
-
StackedColumn.args = {
|
|
51
|
-
analytics: stackedChartData as any,
|
|
52
|
-
config: {
|
|
53
|
-
layout: {
|
|
54
|
-
series: ["ou"],
|
|
55
|
-
category: ["pe"],
|
|
56
|
-
filter: ["dx"],
|
|
57
|
-
},
|
|
58
|
-
type: "stacked-column",
|
|
59
|
-
height: 1000,
|
|
60
|
-
colors: ["#2f7ed8", "#0d233a", "#8bbc21", "#910000", "#1aadce", "#492970", "#f28f43", "#77a1e5", "#c42525", "#a6c96a"],
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export const Line = Template.bind({});
|
|
65
|
-
Line.args = {
|
|
66
|
-
analytics: columnData as any,
|
|
67
|
-
config: {
|
|
68
|
-
layout: {
|
|
69
|
-
series: ["dx"],
|
|
70
|
-
category: ["ou"],
|
|
71
|
-
filter: ["pe"],
|
|
72
|
-
},
|
|
73
|
-
type: "line",
|
|
74
|
-
height: 1000,
|
|
75
|
-
colors: ["#2f7ed8", "#0d233a", "#8bbc21", "#910000", "#1aadce", "#492970", "#f28f43", "#77a1e5", "#c42525", "#a6c96a"],
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export const MultipleLines = Template.bind({});
|
|
80
|
-
MultipleLines.args = {
|
|
81
|
-
analytics: multiSeriesData as any,
|
|
82
|
-
config: {
|
|
83
|
-
layout: {
|
|
84
|
-
series: ["ou"],
|
|
85
|
-
category: ["pe"],
|
|
86
|
-
filter: ["dx"],
|
|
87
|
-
},
|
|
88
|
-
type: "line",
|
|
89
|
-
height: 500,
|
|
90
|
-
colors: ["#2f7ed8", "#0d233a", "#8bbc21", "#910000", "#1aadce", "#492970", "#f28f43", "#77a1e5", "#c42525", "#a6c96a"],
|
|
91
|
-
},
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export const PieChart = Template.bind({});
|
|
95
|
-
PieChart.args = {
|
|
96
|
-
analytics: pieData as any,
|
|
97
|
-
config: {
|
|
98
|
-
layout: {
|
|
99
|
-
series: ["dx"],
|
|
100
|
-
category: [],
|
|
101
|
-
filter: ["dx", "pe"],
|
|
102
|
-
},
|
|
103
|
-
type: "pie",
|
|
104
|
-
height: 500,
|
|
105
|
-
colors: ["#2f7ed8", "#0d233a", "#8bbc21", "#910000", "#1aadce", "#492970", "#f28f43", "#77a1e5", "#c4255", "#a6c96a"],
|
|
106
|
-
},
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export const MultiSeries = Template.bind({});
|
|
110
|
-
MultiSeries.args = {
|
|
111
|
-
analytics: multiSeriesData as any,
|
|
112
|
-
config: {
|
|
113
|
-
layout: {
|
|
114
|
-
series: ["ou"],
|
|
115
|
-
category: ["pe"],
|
|
116
|
-
filter: ["dx"],
|
|
117
|
-
},
|
|
118
|
-
type: "multi-series",
|
|
119
|
-
height: 500,
|
|
120
|
-
colors: ["#2f7ed8", "#0d233a", "#8bbc21", "#910000", "#1aadce", "#492970", "#f28f43", "#77a1e5", "#c42525", "#a6c96a"],
|
|
121
|
-
multiSeries: {
|
|
122
|
-
series: [
|
|
123
|
-
{
|
|
124
|
-
id: "qhqAxPSTUXp",
|
|
125
|
-
as: "column",
|
|
126
|
-
yAxis: 0,
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
id: "Vth0fbpFcsO",
|
|
130
|
-
as: "line",
|
|
131
|
-
cumulative: true,
|
|
132
|
-
yAxis: 1,
|
|
133
|
-
},
|
|
134
|
-
],
|
|
135
|
-
yAxes: [
|
|
136
|
-
{
|
|
137
|
-
id: "yAxis1",
|
|
138
|
-
title: {
|
|
139
|
-
text: "Koinandugu",
|
|
140
|
-
},
|
|
141
|
-
labels: {
|
|
142
|
-
format: "{value}",
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
id: "yAxis2",
|
|
147
|
-
title: {
|
|
148
|
-
text: "Kono",
|
|
149
|
-
},
|
|
150
|
-
labels: {
|
|
151
|
-
format: "{value}",
|
|
152
|
-
},
|
|
153
|
-
opposite: true,
|
|
154
|
-
},
|
|
155
|
-
],
|
|
156
|
-
target: {
|
|
157
|
-
id: "",
|
|
158
|
-
styles: {
|
|
159
|
-
color: "blue",
|
|
160
|
-
},
|
|
161
|
-
value: 45,
|
|
162
|
-
label: {
|
|
163
|
-
text: "Target",
|
|
164
|
-
textAlign: "center",
|
|
165
|
-
verticalAlign: "middle",
|
|
166
|
-
},
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
},
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
export const ComplexMultiSeries = Template.bind({});
|
|
173
|
-
ComplexMultiSeries.args = {
|
|
174
|
-
analytics: complexMultiSeriesData as any,
|
|
175
|
-
config: {
|
|
176
|
-
layout: {
|
|
177
|
-
series: ["dx"],
|
|
178
|
-
category: ["pe"],
|
|
179
|
-
filter: ["ou"],
|
|
180
|
-
},
|
|
181
|
-
type: "multi-series",
|
|
182
|
-
height: 500,
|
|
183
|
-
colors: ["#2f7ed8", "#0d233a", "#8bbc21", "#910000", "#1aadce", "#492970", "#f28f43", "#77a1e5", "#c42525", "#a6c96a"],
|
|
184
|
-
multiSeries: {
|
|
185
|
-
series: [
|
|
186
|
-
{
|
|
187
|
-
id: "QQkOAJFukyY",
|
|
188
|
-
as: "column",
|
|
189
|
-
yAxis: 0,
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
id: "QQkOAJFukyY",
|
|
193
|
-
as: "line",
|
|
194
|
-
cumulative: true,
|
|
195
|
-
yAxis: 1,
|
|
196
|
-
},
|
|
197
|
-
],
|
|
198
|
-
yAxes: [
|
|
199
|
-
{
|
|
200
|
-
id: "yAxis1",
|
|
201
|
-
title: {
|
|
202
|
-
text: "Koinandugu",
|
|
203
|
-
},
|
|
204
|
-
labels: {
|
|
205
|
-
format: "{value}",
|
|
206
|
-
},
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
id: "yAxis2",
|
|
210
|
-
title: {
|
|
211
|
-
text: "Kono",
|
|
212
|
-
},
|
|
213
|
-
labels: {
|
|
214
|
-
format: "{value}",
|
|
215
|
-
},
|
|
216
|
-
opposite: true,
|
|
217
|
-
},
|
|
218
|
-
],
|
|
219
|
-
target: {
|
|
220
|
-
id: "",
|
|
221
|
-
styles: {
|
|
222
|
-
color: "blue",
|
|
223
|
-
},
|
|
224
|
-
value: 45,
|
|
225
|
-
label: {
|
|
226
|
-
text: "Target",
|
|
227
|
-
textAlign: "center",
|
|
228
|
-
verticalAlign: "middle",
|
|
229
|
-
},
|
|
230
|
-
},
|
|
231
|
-
},
|
|
232
|
-
},
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
export default {
|
|
236
|
-
title: "Components/Chart Analytics",
|
|
237
|
-
component: ChartAnalytics,
|
|
238
|
-
decorators: [
|
|
239
|
-
(ChartStory: any) => {
|
|
240
|
-
const [chartRef, setChartRef] = useState<HighchartsReact.RefObject | null>(null);
|
|
241
|
-
return (
|
|
242
|
-
<div style={{ width: 1000, height: "100%", display: "flex", gap: 8, flexDirection: "column" }}>
|
|
243
|
-
<CssReset />
|
|
244
|
-
<div style={{ width: "100%", display: "flex", justifyContent: "end" }}>{<ChartDownloadMenu chartRef={chartRef} />}</div>
|
|
245
|
-
<ChartStory ref={setChartRef} />
|
|
246
|
-
</div>
|
|
247
|
-
);
|
|
248
|
-
},
|
|
249
|
-
],
|
|
250
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import {mount} from "@cypress/react";
|
|
2
|
-
import HighCharts from "highcharts";
|
|
3
|
-
import HighchartsReact from "highcharts-react-official";
|
|
4
|
-
import React, {useState} from "react";
|
|
5
|
-
import ChartDownloadMenu from "./components/DownloadMenu";
|
|
6
|
-
import columnData from "./data/column-data.json";
|
|
7
|
-
import {setupHighchartsModules} from "./services/export";
|
|
8
|
-
import ChartAnalytics from ".";
|
|
9
|
-
|
|
10
|
-
const props: any = {
|
|
11
|
-
analytics: columnData as any,
|
|
12
|
-
config: {
|
|
13
|
-
layout: {
|
|
14
|
-
series: ["dx"],
|
|
15
|
-
category: ["ou"],
|
|
16
|
-
filter: ["pe"],
|
|
17
|
-
},
|
|
18
|
-
type: "column",
|
|
19
|
-
height: 500,
|
|
20
|
-
colors: ["#2f7ed8", "#0d233a", "#8bbc21", "#910000", "#1aadce", "#492970", "#f28f43", "#77a1e5", "#c42525", "#a6c96a"],
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
function TestComponent() {
|
|
25
|
-
return <ChartAnalytics {...props} />;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function ExportTestComponent() {
|
|
29
|
-
const [chartRef, setChartRef] = useState<HighchartsReact.RefObject | null>(null);
|
|
30
|
-
|
|
31
|
-
return (
|
|
32
|
-
<div style={{ display: "flex", flexDirection: "column" }}>
|
|
33
|
-
<div>
|
|
34
|
-
<ChartDownloadMenu chartRef={chartRef} />
|
|
35
|
-
</div>
|
|
36
|
-
<ChartAnalytics {...props} ref={setChartRef} />
|
|
37
|
-
</div>
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
describe("Chart Component Tests", () => {
|
|
42
|
-
setupHighchartsModules(HighCharts);
|
|
43
|
-
|
|
44
|
-
it("Mounts without errors", () => {
|
|
45
|
-
mount(<TestComponent />);
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
it("Can be exported as PDF", () => {
|
|
49
|
-
mount(<ExportTestComponent />);
|
|
50
|
-
});
|
|
51
|
-
});
|