@hisptz/dhis2-analytics 2.0.9 → 2.0.10
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/types/components/ChartAnalytics/DHIS2Chart.d.ts +26 -0
- package/dist/types/components/ChartAnalytics/DHIS2Chart.d.ts.map +1 -0
- package/dist/types/components/ChartAnalytics/components/DownloadMenu/components/Menu.d.ts +8 -0
- package/dist/types/components/ChartAnalytics/components/DownloadMenu/components/Menu.d.ts.map +1 -0
- package/dist/types/components/ChartAnalytics/components/DownloadMenu/constants/menu.d.ts +8 -0
- package/dist/types/components/ChartAnalytics/components/DownloadMenu/constants/menu.d.ts.map +1 -0
- package/dist/types/components/ChartAnalytics/components/DownloadMenu/index.d.ts +9 -0
- package/dist/types/components/ChartAnalytics/components/DownloadMenu/index.d.ts.map +1 -0
- package/dist/types/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.d.ts +2 -0
- package/dist/types/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.d.ts.map +1 -0
- package/dist/types/components/ChartAnalytics/hooks/useChart.d.ts +12 -0
- 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/dist/types/components/ChartAnalytics/models/bar.d.ts +9 -0
- package/dist/types/components/ChartAnalytics/models/bar.d.ts.map +1 -0
- package/dist/types/components/ChartAnalytics/models/column.d.ts +13 -0
- package/dist/types/components/ChartAnalytics/models/column.d.ts.map +1 -0
- package/dist/types/components/ChartAnalytics/models/index.d.ts +19 -0
- package/dist/types/components/ChartAnalytics/models/index.d.ts.map +1 -0
- package/dist/types/components/ChartAnalytics/models/line.d.ts +9 -0
- package/dist/types/components/ChartAnalytics/models/line.d.ts.map +1 -0
- package/dist/types/components/ChartAnalytics/models/multi-series.d.ts +10 -0
- package/dist/types/components/ChartAnalytics/models/multi-series.d.ts.map +1 -0
- package/dist/types/components/ChartAnalytics/models/pie.d.ts +9 -0
- package/dist/types/components/ChartAnalytics/models/pie.d.ts.map +1 -0
- package/dist/types/components/ChartAnalytics/services/export.d.ts +9 -0
- package/dist/types/components/ChartAnalytics/services/export.d.ts.map +1 -0
- package/dist/types/components/ChartAnalytics/types/props.d.ts +47 -0
- package/dist/types/components/ChartAnalytics/types/props.d.ts.map +1 -0
- package/dist/types/components/ChartAnalytics/utils/chart.d.ts +16 -0
- 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/dist/types/components/CircularProgressDashboard/types/props.d.ts +18 -0
- package/dist/types/components/CircularProgressDashboard/types/props.d.ts.map +1 -0
- package/dist/types/components/DHIS2PivotTable/DHIS2PivotTable.d.ts +23 -0
- package/dist/types/components/DHIS2PivotTable/DHIS2PivotTable.d.ts.map +1 -0
- package/dist/types/components/DHIS2PivotTable/components/Table/index.d.ts +10 -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/dist/types/components/DHIS2PivotTable/interfaces/index.d.ts +2 -0
- package/dist/types/components/DHIS2PivotTable/interfaces/index.d.ts.map +1 -0
- package/dist/types/components/DHIS2PivotTable/services/engine.d.ts +63 -0
- 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/dist/types/components/Map/components/MapArea/index.d.ts +6 -0
- package/dist/types/components/Map/components/MapArea/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapArea/interfaces/index.d.ts +31 -0
- package/dist/types/components/Map/components/MapArea/interfaces/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapControls/components/CustomControl/index.d.ts +8 -0
- package/dist/types/components/Map/components/MapControls/components/CustomControl/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapControls/components/DownloadControl/index.d.ts +8 -0
- package/dist/types/components/Map/components/MapControls/components/DownloadControl/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapControls/components/FullscreenControl/index.d.ts +6 -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/dist/types/components/Map/components/MapLayer/components/BoundaryLayer/index.d.ts +15 -0
- package/dist/types/components/Map/components/MapLayer/components/BoundaryLayer/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.d.ts +18 -0
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.d.ts +5 -0
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.d.ts +10 -0
- 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/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.d.ts +59 -0
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.d.ts +56 -0
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.d.ts +21 -0
- package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.d.ts +6 -0
- package/dist/types/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/LegendArea/index.d.ts +9 -0
- package/dist/types/components/Map/components/MapLayer/components/LegendArea/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.d.ts +4 -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/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.d.ts +13 -0
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.d.ts +11 -0
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.d.ts +17 -0
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.d.ts +22 -0
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.d.ts +22 -0
- 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 +17 -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/dist/types/components/Map/components/MapLayer/index.d.ts +6 -0
- package/dist/types/components/Map/components/MapLayer/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapLayer/interfaces/index.d.ts +136 -0
- package/dist/types/components/Map/components/MapLayer/interfaces/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.d.ts +10 -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/dist/types/components/Map/components/MapProvider/hooks/index.d.ts +16 -0
- 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/dist/types/components/Map/components/MapUpdater/index.d.ts +5 -0
- 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/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.d.ts +420 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.d.ts.map +1 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.d.ts +9 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.d.ts +12 -0
- 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/dist/types/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.d.ts +8 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.d.ts.map +1 -0
- package/dist/types/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.d.ts +9 -0
- 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/dist/types/components/Map/constants/colors.d.ts +422 -0
- package/dist/types/components/Map/constants/colors.d.ts.map +1 -0
- package/dist/types/components/Map/constants/legendSet.d.ts +8 -0
- package/dist/types/components/Map/constants/legendSet.d.ts.map +1 -0
- package/dist/types/components/Map/hooks/map.d.ts +10 -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/dist/types/components/Map/interfaces/index.d.ts +76 -0
- package/dist/types/components/Map/interfaces/index.d.ts.map +1 -0
- package/dist/types/components/Map/state/index.d.ts +21 -0
- package/dist/types/components/Map/state/index.d.ts.map +1 -0
- package/dist/types/components/Map/utils/colors.d.ts +13 -0
- package/dist/types/components/Map/utils/colors.d.ts.map +1 -0
- package/dist/types/components/Map/utils/helpers.d.ts +7 -0
- package/dist/types/components/Map/utils/helpers.d.ts.map +1 -0
- package/dist/types/components/Map/utils/map.d.ts +41 -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/dist/types/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.d.ts +10 -0
- package/dist/types/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.d.ts.map +1 -0
- package/dist/types/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.d.ts +3 -0
- package/dist/types/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.d.ts.map +1 -0
- package/dist/types/components/SingleValueContainer/index.d.ts +5 -0
- package/dist/types/components/SingleValueContainer/index.d.ts.map +1 -0
- package/dist/types/components/SingleValueContainer/types/props.d.ts +18 -0
- package/dist/types/components/SingleValueContainer/types/props.d.ts.map +1 -0
- package/dist/types/components/Visualization/components/AnalyticsDataProvider/index.d.ts +11 -0
- package/dist/types/components/Visualization/components/AnalyticsDataProvider/index.d.ts.map +1 -0
- package/dist/types/components/Visualization/components/DimensionsProvider/index.d.ts +16 -0
- package/dist/types/components/Visualization/components/DimensionsProvider/index.d.ts.map +1 -0
- package/dist/types/components/Visualization/components/LayoutProvider/index.d.ts +15 -0
- package/dist/types/components/Visualization/components/LayoutProvider/index.d.ts.map +1 -0
- package/dist/types/components/Visualization/components/VisualizationDimensionSelector/index.d.ts +5 -0
- package/dist/types/components/Visualization/components/VisualizationDimensionSelector/index.d.ts.map +1 -0
- package/dist/types/components/Visualization/components/VisualizationProvider/index.d.ts +14 -0
- 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/dist/types/components/Visualization/components/VisualizationTypeProvider/index.d.ts +15 -0
- 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/dist/types/components/Visualization/index.d.ts +23 -0
- 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 +5 -5
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./styles/custom-highchart.css";
|
|
3
|
+
import { ChartAnalyticsProps } from "./types/props.js";
|
|
4
|
+
export * from "./services/export.js";
|
|
5
|
+
export * from "./types/props.js";
|
|
6
|
+
export * from "./components/DownloadMenu/index.js";
|
|
7
|
+
/**
|
|
8
|
+
* The `DHIS2Chart` component allows you to render a chart visualization from DHIS2 analytics data.
|
|
9
|
+
* It accepts the DHIS2 analytics payload as well as configuration on how to visualize the data.
|
|
10
|
+
*
|
|
11
|
+
* @component
|
|
12
|
+
*
|
|
13
|
+
* @param {ChartAnalyticsProps} props
|
|
14
|
+
* @param {Analytics} [props.analytics] - Analytics data from DHIS2
|
|
15
|
+
* @param {ChartConfig} [props.config] - Visualization configuration. See stories for more information
|
|
16
|
+
* @param {Record<string, any>} [props.containerProps] - Props that will be passed to the chart container
|
|
17
|
+
* @param {forwardRef} forwardRef - A function that creates a higher order component that forwards the ref through the component tree.
|
|
18
|
+
*
|
|
19
|
+
* @returns {React.ForwardRefExoticComponent<ChartAnalyticsProps>} - The DHIS2 chart component with forward ref support.
|
|
20
|
+
*/
|
|
21
|
+
export declare const DHIS2Chart: React.ForwardRefExoticComponent<ChartAnalyticsProps>;
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated since `v2`. Use `DHIS2Chart` instead
|
|
24
|
+
* */
|
|
25
|
+
export declare const ChartAnalytics: React.ForwardRefExoticComponent<ChartAnalyticsProps>;
|
|
26
|
+
//# sourceMappingURL=DHIS2Chart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DHIS2Chart.d.ts","sourceRoot":"","sources":["../../../../src/components/ChartAnalytics/DHIS2Chart.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAAO,+BAA+B,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oCAAoC,CAAC;AAyBnD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,yBAAyB,CAAC,mBAAmB,CAG1E,CAAC;AAEH;;KAEK;AACL,eAAO,MAAM,cAAc,sDAAa,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ChartExportMenuItem } from "../interfaces/menu.js";
|
|
2
|
+
export declare function ChartMenu({ menuRef, onClick, onClose, exclude, }: {
|
|
3
|
+
menuRef: HTMLDivElement;
|
|
4
|
+
onClick: (action: string) => void;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
exclude?: ChartExportMenuItem[];
|
|
7
|
+
}): import("react/jsx-runtime.js").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=Menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ChartAnalytics/components/DownloadMenu/components/Menu.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,wBAAgB,SAAS,CAAC,EACzB,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAY,GACZ,EAAE;IACF,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,mBAAmB,EAAE,CAAC;CAChC,8CA+CA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ChartAnalytics/components/DownloadMenu/constants/menu.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;;;GAmC7B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import HighchartsReact from "highcharts-react-official";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ChartExportMenuItem } from "./interfaces/menu.js";
|
|
4
|
+
export declare function ChartDownloadMenu({ chartRef, exclude, icon, }: {
|
|
5
|
+
chartRef: HighchartsReact.RefObject | null;
|
|
6
|
+
exclude?: ChartExportMenuItem[];
|
|
7
|
+
icon?: React.ReactNode;
|
|
8
|
+
}): import("react/jsx-runtime.js").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChartAnalytics/components/DownloadMenu/index.tsx"],"names":[],"mappings":"AACA,OAAO,eAAe,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAA2B,MAAM,OAAO,CAAC;AAShD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,wBAAgB,iBAAiB,CAAC,EACjC,QAAQ,EACR,OAAO,EACP,IAAI,GACJ,EAAE;IACF,QAAQ,EAAE,eAAe,CAAC,SAAS,GAAG,IAAI,CAAC;IAC3C,OAAO,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAChC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB,8CAwDA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,aAAa,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Analytics } from "@hisptz/dhis2-utils";
|
|
2
|
+
import HighCharts from "highcharts";
|
|
3
|
+
import { ChartConfig, ChartType } from "../types/props.js";
|
|
4
|
+
export declare function useChart({ id, analytics, config, }: {
|
|
5
|
+
id: string;
|
|
6
|
+
analytics: Analytics;
|
|
7
|
+
config: ChartConfig;
|
|
8
|
+
}): {
|
|
9
|
+
chart?: HighCharts.Options;
|
|
10
|
+
changeChartType: (type: ChartType) => void;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=useChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChart.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChartAnalytics/hooks/useChart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,UAAU,MAAM,YAAY,CAAC;AAGpC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG3D,wBAAgB,QAAQ,CAAC,EACxB,EAAE,EACF,SAAS,EACT,MAAM,GACN,EAAE;IACF,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,WAAW,CAAC;CACpB,GAAG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC;IAC3B,eAAe,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CAC3C,CAkCA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ChartAnalytics/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PlotOptions } from "highcharts";
|
|
2
|
+
import { DHIS2ColumnChart } from "./column.js";
|
|
3
|
+
export declare class DHIS2BarChart extends DHIS2ColumnChart {
|
|
4
|
+
getHighchartsType(): string;
|
|
5
|
+
}
|
|
6
|
+
export declare class DHIS2StackedBarChart extends DHIS2BarChart {
|
|
7
|
+
getPlotOptions(): PlotOptions;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=bar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bar.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChartAnalytics/models/bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,qBAAa,aAAc,SAAQ,gBAAgB;IAClD,iBAAiB,IAAI,MAAM;CAG3B;AAED,qBAAa,oBAAqB,SAAQ,aAAa;IACtD,cAAc,IAAI,WAAW;CAQ7B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PlotOptions, SeriesOptionsType, XAxisOptions } from "highcharts";
|
|
2
|
+
import { DHIS2Chart } from "./index.js";
|
|
3
|
+
export declare class DHIS2ColumnChart extends DHIS2Chart {
|
|
4
|
+
getCategories(): any[] | undefined;
|
|
5
|
+
getHighchartsType(): string;
|
|
6
|
+
getPlotOptions(): PlotOptions;
|
|
7
|
+
getSeries(): SeriesOptionsType[];
|
|
8
|
+
getXAxis(): XAxisOptions | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare class DHIS2StackedColumnChart extends DHIS2ColumnChart {
|
|
11
|
+
getPlotOptions(): PlotOptions;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=column.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChartAnalytics/models/column.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,qBAAa,gBAAiB,SAAQ,UAAU;IAC/C,aAAa,IAAI,GAAG,EAAE,GAAG,SAAS;IAIlC,iBAAiB,IAAI,MAAM;IAI3B,cAAc,IAAI,WAAW;IAU7B,SAAS,IAAI,iBAAiB,EAAE;IAIhC,QAAQ,IAAI,YAAY,GAAG,SAAS;CAWpC;AAED,qBAAa,uBAAwB,SAAQ,gBAAgB;IAC5D,cAAc,IAAI,WAAW;CAQ7B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Analytics } from "@hisptz/dhis2-utils";
|
|
2
|
+
import HighCharts from "highcharts";
|
|
3
|
+
import { ChartConfig } from "../types/props.js";
|
|
4
|
+
export declare abstract class DHIS2Chart {
|
|
5
|
+
id: string;
|
|
6
|
+
analytics: Analytics;
|
|
7
|
+
config: ChartConfig;
|
|
8
|
+
constructor(id: string, analytics: Analytics, config: ChartConfig);
|
|
9
|
+
abstract getHighchartsType(): string;
|
|
10
|
+
getChartConfig(): HighCharts.ChartOptions & any;
|
|
11
|
+
getOptions(): HighCharts.Options;
|
|
12
|
+
abstract getSeries(): HighCharts.SeriesOptionsType[];
|
|
13
|
+
abstract getPlotOptions(): HighCharts.PlotOptions;
|
|
14
|
+
abstract getXAxis(): HighCharts.XAxisOptions | undefined;
|
|
15
|
+
getYAxis(): HighCharts.YAxisOptions[];
|
|
16
|
+
getExporting(): HighCharts.ExportingOptions;
|
|
17
|
+
private getFilterLabel;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChartAnalytics/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD,8BAAsB,UAAU;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,WAAW,CAAC;gBAER,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW;IAMjE,QAAQ,CAAC,iBAAiB,IAAI,MAAM;IAEpC,cAAc,IAAI,UAAU,CAAC,YAAY,GAAG,GAAG;IAU/C,UAAU,IAAI,UAAU,CAAC,OAAO;IAsDhC,QAAQ,CAAC,SAAS,IAAI,UAAU,CAAC,iBAAiB,EAAE;IAEpD,QAAQ,CAAC,cAAc,IAAI,UAAU,CAAC,WAAW;IAEjD,QAAQ,CAAC,QAAQ,IAAI,UAAU,CAAC,YAAY,GAAG,SAAS;IAExD,QAAQ,IAAI,UAAU,CAAC,YAAY,EAAE;IAuCrC,YAAY,IAAI,UAAU,CAAC,gBAAgB;IAa3C,OAAO,CAAC,cAAc;CAYtB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PlotOptions, SeriesOptionsType, XAxisOptions } from "highcharts";
|
|
2
|
+
import { DHIS2Chart } from "./index.js";
|
|
3
|
+
export declare class DHIS2LineChart extends DHIS2Chart {
|
|
4
|
+
getHighchartsType(): string;
|
|
5
|
+
getPlotOptions(): PlotOptions;
|
|
6
|
+
getSeries(): SeriesOptionsType[];
|
|
7
|
+
getXAxis(): XAxisOptions | undefined;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=line.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChartAnalytics/models/line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,qBAAa,cAAe,SAAQ,UAAU;IAC7C,iBAAiB,IAAI,MAAM;IAI3B,cAAc,IAAI,WAAW;IAM7B,SAAS,IAAI,iBAAiB,EAAE;IAIhC,QAAQ,IAAI,YAAY,GAAG,SAAS;CAWpC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PlotOptions, SeriesOptionsType, XAxisOptions, YAxisOptions } from "highcharts";
|
|
2
|
+
import { DHIS2Chart } from "./index.js";
|
|
3
|
+
export declare class DHIS2MultiSeriesChart extends DHIS2Chart {
|
|
4
|
+
getHighchartsType(): string;
|
|
5
|
+
getPlotOptions(): PlotOptions;
|
|
6
|
+
getSeries(): SeriesOptionsType[];
|
|
7
|
+
getXAxis(): XAxisOptions | undefined;
|
|
8
|
+
getYAxis(): YAxisOptions[];
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=multi-series.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi-series.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChartAnalytics/models/multi-series.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,MAAM,YAAY,CAAC;AAIpB,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,qBAAa,qBAAsB,SAAQ,UAAU;IACpD,iBAAiB,IAAI,MAAM;IAI3B,cAAc,IAAI,WAAW;IAO7B,SAAS,IAAI,iBAAiB,EAAE;IAwEhC,QAAQ,IAAI,YAAY,GAAG,SAAS;IAYpC,QAAQ,IAAI,YAAY,EAAE;CAiC1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PlotOptions, SeriesOptionsType, XAxisOptions } from "highcharts";
|
|
2
|
+
import { DHIS2Chart } from "./index.js";
|
|
3
|
+
export declare class DHIS2PieChart extends DHIS2Chart {
|
|
4
|
+
getHighchartsType(): string;
|
|
5
|
+
getPlotOptions(): PlotOptions;
|
|
6
|
+
getSeries(): SeriesOptionsType[];
|
|
7
|
+
getXAxis(): XAxisOptions | undefined;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=pie.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pie.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChartAnalytics/models/pie.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,qBAAa,aAAc,SAAQ,UAAU;IAC5C,iBAAiB,IAAI,MAAM;IAI3B,cAAc,IAAI,WAAW;IAa7B,SAAS,IAAI,iBAAiB,EAAE;IAwChC,QAAQ,IAAI,YAAY,GAAG,SAAS;CAGpC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Highcharts from "highcharts";
|
|
2
|
+
import HighchartsReact from "highcharts-react-official";
|
|
3
|
+
export declare function setupHighchartsModules(highcharts: typeof Highcharts): void;
|
|
4
|
+
export declare function onFullScreenView(chartRef: HighchartsReact.RefObject, options?: Highcharts.Options): void;
|
|
5
|
+
export declare function onPDFDownload(chartRef: HighchartsReact.RefObject, options?: Highcharts.Options): void;
|
|
6
|
+
export declare function onCSVDownload(chartRef: HighchartsReact.RefObject, options?: Highcharts.Options): void;
|
|
7
|
+
export declare const onImageDownload: (chartRef: HighchartsReact.RefObject, type: "png" | "svg+xml" | "jpeg", options?: Highcharts.Options) => void;
|
|
8
|
+
export declare const onViewAsTable: (chartRef: HighchartsReact.RefObject, show: boolean) => void;
|
|
9
|
+
//# sourceMappingURL=export.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChartAnalytics/services/export.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,eAAe,MAAM,2BAA2B,CAAC;AAKxD,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,OAAO,UAAU,QAInE;AAED,wBAAgB,gBAAgB,CAC/B,QAAQ,EAAE,eAAe,CAAC,SAAS,EACnC,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,QAG5B;AAED,wBAAgB,aAAa,CAC5B,QAAQ,EAAE,eAAe,CAAC,SAAS,EACnC,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,QAG5B;AAED,wBAAgB,aAAa,CAC5B,QAAQ,EAAE,eAAe,CAAC,SAAS,EACnC,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,QAG5B;AAED,eAAO,MAAM,eAAe,aACjB,gBAAgB,SAAS,QAC7B,KAAK,GAAG,SAAS,GAAG,MAAM,YACtB,WAAW,OAAO,SAG5B,CAAC;AAEF,eAAO,MAAM,aAAa,aACf,gBAAgB,SAAS,QAC7B,OAAO,SAUb,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { Analytics } from "@hisptz/dhis2-utils";
|
|
2
|
+
import HighCharts, { DashStyleValue, YAxisOptions, YAxisPlotLinesLabelOptions } from "highcharts";
|
|
3
|
+
import HighchartsReact from "highcharts-react-official";
|
|
4
|
+
export type ChartType = "column" | "pie" | "stacked-column" | "line" | "multi-series" | "bar" | "stacked-bar";
|
|
5
|
+
export interface MultiSeriesConfig {
|
|
6
|
+
series?: Array<{
|
|
7
|
+
id: string;
|
|
8
|
+
as: "column" | "line";
|
|
9
|
+
cumulative?: boolean;
|
|
10
|
+
yAxis?: number;
|
|
11
|
+
}>;
|
|
12
|
+
yAxes?: Array<YAxisOptions>;
|
|
13
|
+
target?: TargetConfig;
|
|
14
|
+
}
|
|
15
|
+
export interface TargetConfig {
|
|
16
|
+
id: string;
|
|
17
|
+
value: number;
|
|
18
|
+
label?: YAxisPlotLinesLabelOptions;
|
|
19
|
+
styles: {
|
|
20
|
+
color?: string;
|
|
21
|
+
width?: number;
|
|
22
|
+
dashStyle?: DashStyleValue;
|
|
23
|
+
zIndex?: number;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export type ChartConfig = {
|
|
27
|
+
layout: {
|
|
28
|
+
series: Array<string>;
|
|
29
|
+
category: Array<string>;
|
|
30
|
+
filter: Array<string>;
|
|
31
|
+
};
|
|
32
|
+
type?: ChartType;
|
|
33
|
+
height?: number;
|
|
34
|
+
colors?: Array<string>;
|
|
35
|
+
showFilterAsTitle?: boolean;
|
|
36
|
+
name?: string;
|
|
37
|
+
allowChartTypeChange?: boolean;
|
|
38
|
+
highChartOverrides?: Partial<HighCharts.Options> | ((config: HighCharts.Options) => Partial<HighCharts.Options>);
|
|
39
|
+
multiSeries?: MultiSeriesConfig;
|
|
40
|
+
};
|
|
41
|
+
export type ChartAnalyticsProps = {
|
|
42
|
+
analytics: Analytics;
|
|
43
|
+
config: ChartConfig;
|
|
44
|
+
setRef?: (ref: HighchartsReact.RefObject) => void;
|
|
45
|
+
containerProps?: Record<string, any>;
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChartAnalytics/types/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,UAAU,EAAE,EAClB,cAAc,EACd,YAAY,EACZ,0BAA0B,EAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,eAAe,MAAM,2BAA2B,CAAC;AAExD,MAAM,MAAM,SAAS,GAClB,QAAQ,GACR,KAAK,GACL,gBAAgB,GAChB,MAAM,GACN,cAAc,GACd,KAAK,GACL,aAAa,CAAC;AAEjB,MAAM,WAAW,iBAAiB;IACjC,MAAM,CAAC,EAAE,KAAK,CAAC;QACd,EAAE,EAAE,MAAM,CAAC;QACX,EAAE,EAAE,QAAQ,GAAG,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;KACf,CAAC,CAAC;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC5B,MAAM,CAAC,EAAE,YAAY,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,0BAA0B,CAAC;IACnC,MAAM,EAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,cAAc,CAAC;QAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACF;AAED,MAAM,MAAM,WAAW,GAAG;IACzB,MAAM,EAAE;QACP,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACtB,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACxB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACtB,CAAC;IACF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,GAC3B,CAAC,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,KAAK,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;IACjE,WAAW,CAAC,EAAE,iBAAiB,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IACjC,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,eAAe,CAAC,SAAS,KAAK,IAAI,CAAC;IAClD,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACrC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Analytics, AnalyticsHeader } from "@hisptz/dhis2-utils";
|
|
2
|
+
import { DHIS2Chart } from "../models/index.js";
|
|
3
|
+
import { ChartConfig, ChartType } from "../types/props.js";
|
|
4
|
+
export declare function getDimensionHeaderIndex(headers: AnalyticsHeader[], name: string): number;
|
|
5
|
+
export declare function getPointSeries(analytics: Analytics, config: ChartConfig, highchartsType: string): any;
|
|
6
|
+
export declare function getColumnSeries(analytics: Analytics, header: AnalyticsHeader, config: ChartConfig, highchartsType: string): any;
|
|
7
|
+
export declare function getAllCategories(analytics: Analytics, config: ChartConfig): string[];
|
|
8
|
+
export declare function updateLayout(config: ChartConfig, { type }: {
|
|
9
|
+
type: ChartType;
|
|
10
|
+
}): {
|
|
11
|
+
series: string[];
|
|
12
|
+
category: string[];
|
|
13
|
+
filter: string[];
|
|
14
|
+
};
|
|
15
|
+
export declare function getChartInstance(id: string, analytics: Analytics, config: ChartConfig): DHIS2Chart;
|
|
16
|
+
//# sourceMappingURL=chart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChartAnalytics/utils/chart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,SAAS,EACT,eAAe,EAEf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKhD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG3D,wBAAgB,uBAAuB,CACtC,OAAO,EAAE,eAAe,EAAE,EAC1B,IAAI,EAAE,MAAM,GACV,MAAM,CAER;AAED,wBAAgB,cAAc,CAC7B,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,WAAW,EACnB,cAAc,EAAE,MAAM,OAetB;AAED,wBAAgB,eAAe,CAC9B,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,WAAW,EACnB,cAAc,EAAE,MAAM,GACpB,GAAG,CAgDL;AAeD,wBAAgB,gBAAgB,CAC/B,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,WAAW,GACjB,MAAM,EAAE,CAgBV;AAED,wBAAgB,YAAY,CAC3B,MAAM,EAAE,WAAW,EACnB,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE;;;;EA0B7B;AAED,wBAAgB,gBAAgB,CAC/B,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,WAAW,GACjB,UAAU,CAmBZ"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CircularDashboardProps } from "./types/props.js";
|
|
3
|
+
export * from "./types/props.js";
|
|
4
|
+
export declare function CircularProgressVisualizer({ numerator, size, denominator, value, textStyle, strokeStyle, }: CircularDashboardProps): React.ReactElement;
|
|
5
|
+
export declare const CircularProgressDashboard: typeof CircularProgressVisualizer;
|
|
6
|
+
//# sourceMappingURL=CircularProgressIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CircularProgressIndicator.d.ts","sourceRoot":"","sources":["../../../../src/components/CircularProgressDashboard/CircularProgressIndicator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,cAAc,kBAAkB,CAAC;AAEjC,wBAAgB,0BAA0B,CAAC,EAC1C,SAAS,EACT,IAAI,EACJ,WAAW,EACX,KAAK,EACL,SAAS,EACT,WAAW,GACX,EAAE,sBAAsB,GAAG,KAAK,CAAC,YAAY,CA8C7C;AAED,eAAO,MAAM,yBAAyB,mCAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CircularProgressDashboard/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type CircularDashboardProps = {
|
|
2
|
+
strokeStyle?: {
|
|
3
|
+
width?: number | string;
|
|
4
|
+
color?: string;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
textStyle?: {
|
|
8
|
+
color?: string;
|
|
9
|
+
fontSize?: number | string;
|
|
10
|
+
fontWeight?: number | string;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
value?: number;
|
|
14
|
+
numerator?: number;
|
|
15
|
+
denominator?: number;
|
|
16
|
+
size: string | number;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../../src/components/CircularProgressDashboard/types/props.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,CAAC,EAAE;QACZ,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACxB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,SAAS,CAAC,EAAE;QACV,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAC3B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Analytics, LegendSet } from "@hisptz/dhis2-utils";
|
|
2
|
+
import { type EngineConfig } from "./services/engine.js";
|
|
3
|
+
import { DataTableProps } from "@dhis2/ui";
|
|
4
|
+
export interface DHIS2PivotTableOptions {
|
|
5
|
+
legendSets?: LegendSet[];
|
|
6
|
+
hideEmptyColumns?: boolean;
|
|
7
|
+
hideEmptyRows?: boolean;
|
|
8
|
+
showRowTotals?: boolean;
|
|
9
|
+
showColumnTotals?: boolean;
|
|
10
|
+
showRowSubtotals?: boolean;
|
|
11
|
+
showColumnSubtotals?: boolean;
|
|
12
|
+
fixColumnHeaders?: boolean;
|
|
13
|
+
fixRowHeaders?: boolean;
|
|
14
|
+
showFilterAsTitle?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface DHIS2PivotTableProps {
|
|
17
|
+
analytics: Analytics;
|
|
18
|
+
tableProps?: DataTableProps;
|
|
19
|
+
setRef?: (ref: HTMLTableElement) => void;
|
|
20
|
+
config: EngineConfig;
|
|
21
|
+
}
|
|
22
|
+
export declare function DHIS2PivotTable({ analytics, config, tableProps, setRef, }: DHIS2PivotTableProps): import("react/jsx-runtime.js").JSX.Element;
|
|
23
|
+
//# sourceMappingURL=DHIS2PivotTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DHIS2PivotTable.d.ts","sourceRoot":"","sources":["../../../../src/components/DHIS2PivotTable/DHIS2PivotTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAMhF,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,MAAM,WAAW,sBAAsB;IACtC,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,oBAAoB;IACpC,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACzC,MAAM,EAAE,YAAY,CAAC;CACrB;AAED,wBAAgB,eAAe,CAAC,EAC/B,SAAS,EACT,MAAM,EACN,UAAU,EACV,MAAM,GACN,EAAE,oBAAoB,8CActB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DataTableProps } from "@dhis2/ui";
|
|
3
|
+
export type PivotTableLayoutProps = DataTableProps;
|
|
4
|
+
export interface PivotTableProps {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
tableProps?: DataTableProps;
|
|
7
|
+
setRef?: (ref: HTMLTableElement) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function PivotTable({ tableProps, children, setRef }: PivotTableProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DHIS2PivotTable/components/Table/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAa,cAAc,EAAE,MAAM,WAAW,CAAC;AAEtD,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC;AAEnD,MAAM,WAAW,eAAe;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACzC;AAED,wBAAgB,UAAU,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,eAAe,2CAU3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DHIS2PivotTable/components/TableBody/index.tsx"],"names":[],"mappings":"AAqHA,wBAAgB,oBAAoB,mDAmBnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DHIS2PivotTable/components/TableHeaders/index.tsx"],"names":[],"mappings":"AA0GA,wBAAgB,YAAY,sDAmB3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DHIS2PivotTable/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DHIS2PivotTable/interfaces/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Analytics, AnalyticsItem, LegendSet } from "@hisptz/dhis2-utils";
|
|
2
|
+
import { DHIS2Dimension } from "../interfaces/index.js";
|
|
3
|
+
export interface EngineConfig {
|
|
4
|
+
layout: {
|
|
5
|
+
columns: {
|
|
6
|
+
dimension: DHIS2Dimension;
|
|
7
|
+
label?: string;
|
|
8
|
+
}[];
|
|
9
|
+
rows: {
|
|
10
|
+
dimension: DHIS2Dimension;
|
|
11
|
+
label?: string;
|
|
12
|
+
}[];
|
|
13
|
+
filter?: {
|
|
14
|
+
dimension: DHIS2Dimension;
|
|
15
|
+
label?: string;
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
18
|
+
options?: {
|
|
19
|
+
legendSets?: LegendSet[];
|
|
20
|
+
hideEmptyColumns?: boolean;
|
|
21
|
+
hideEmptyRows?: boolean;
|
|
22
|
+
showRowTotals?: boolean;
|
|
23
|
+
showColumnTotals?: boolean;
|
|
24
|
+
showRowSubtotals?: boolean;
|
|
25
|
+
showColumnSubtotals?: boolean;
|
|
26
|
+
showFilterAsTitle?: boolean;
|
|
27
|
+
fixColumnHeaders?: boolean;
|
|
28
|
+
fixRowHeaders?: boolean;
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export interface Header {
|
|
33
|
+
dimension: DHIS2Dimension;
|
|
34
|
+
label?: string;
|
|
35
|
+
items?: AnalyticsItem[];
|
|
36
|
+
}
|
|
37
|
+
export declare class DHIS2PivotTableEngine {
|
|
38
|
+
analyticsData: Analytics;
|
|
39
|
+
valueIndex: number;
|
|
40
|
+
config: EngineConfig;
|
|
41
|
+
rowHeaders?: Header[];
|
|
42
|
+
columnHeaders?: Header[];
|
|
43
|
+
columnMap?: {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
}[];
|
|
46
|
+
constructor({ analytics, config, }: {
|
|
47
|
+
analytics: Analytics;
|
|
48
|
+
config: EngineConfig;
|
|
49
|
+
});
|
|
50
|
+
get title(): string;
|
|
51
|
+
get titleSpan(): number;
|
|
52
|
+
get showTitle(): boolean | undefined;
|
|
53
|
+
get fixColumnHeaders(): boolean;
|
|
54
|
+
get fixRowHeaders(): boolean;
|
|
55
|
+
getDimensionItems(dimension: DHIS2Dimension): string[];
|
|
56
|
+
getItem(id: string): AnalyticsItem | undefined;
|
|
57
|
+
getValue(mapper: {
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
}): number | undefined;
|
|
60
|
+
getHeaders(): void;
|
|
61
|
+
getColumnMap(): void;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../../../../src/components/DHIS2PivotTable/services/engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAE1E,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,WAAW,YAAY;IAC5B,MAAM,EAAE;QACP,OAAO,EAAE;YAAE,SAAS,EAAE,cAAc,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QACzD,IAAI,EAAE;YAAE,SAAS,EAAE,cAAc,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QACtD,MAAM,CAAC,EAAE;YAAE,SAAS,EAAE,cAAc,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;KACzD,CAAC;IACF,OAAO,CAAC,EAAE;QACT,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;QACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;QAC9B,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACnB,CAAC;CACF;AAED,MAAM,WAAW,MAAM;IACtB,SAAS,EAAE,cAAc,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;CACxB;AAED,qBAAa,qBAAqB;IACjC,aAAa,EAAE,SAAS,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,YAAY,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB,SAAS,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,EAAE,CAAC;gBAEzB,EACX,SAAS,EACT,MAAM,GACN,EAAE;QACF,SAAS,EAAE,SAAS,CAAC;QACrB,MAAM,EAAE,YAAY,CAAC;KACrB;IAWD,IAAI,KAAK,WAeR;IAED,IAAI,SAAS,WASZ;IAED,IAAI,SAAS,wBAEZ;IAED,IAAI,gBAAgB,YAEnB;IAED,IAAI,aAAa,YAEhB;IAED,iBAAiB,CAAC,SAAS,EAAE,cAAc;IAI3C,OAAO,CAAC,EAAE,EAAE,MAAM;IAIlB,QAAQ,CAAC,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE;IAUvC,UAAU;IAuBV,YAAY;CAyBZ"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { DHIS2PivotTableEngine } from "../services/engine.js";
|
|
3
|
+
export declare function useCustomPivotTableEngine(): DHIS2PivotTableEngine | null;
|
|
4
|
+
export declare function DHIS2PivotTableEngineProvider({ children, engine, }: {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
engine: DHIS2PivotTableEngine;
|
|
7
|
+
}): import("react/jsx-runtime.js").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../../../../src/components/DHIS2PivotTable/state/engine.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAiB,SAAS,EAAc,MAAM,OAAO,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAK9D,wBAAgB,yBAAyB,iCAExC;AAED,wBAAgB,6BAA6B,CAAC,EAC7C,QAAQ,EACR,MAAM,GACN,EAAE;IACF,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,qBAAqB,CAAC;CAC9B,8CAMA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { MapProps } from "./interfaces";
|
|
3
|
+
import "leaflet/dist/leaflet.css";
|
|
4
|
+
export declare const DHIS2Map: React.FC<MapProps>;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated since `v2`. Use `DHIS2Map` instead
|
|
7
|
+
* */
|
|
8
|
+
export declare const Map: React.FC<MapProps>;
|
|
9
|
+
//# sourceMappingURL=DHIS2Map.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DHIS2Map.d.ts","sourceRoot":"","sources":["../../../../src/components/Map/DHIS2Map.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,0BAA0B,CAAC;AA0DlC,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAgB,CAAC;AAEzD;;KAEK;AACL,eAAO,MAAM,GAAG,oBAAW,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EarthEngineLayerConfig } from "../MapLayer/interfaces/index.js";
|
|
2
|
+
export interface EarthEngineLayerConfigModalProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
config?: EarthEngineLayerConfig;
|
|
5
|
+
exclude?: string[];
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
onChange: (config: EarthEngineLayerConfig) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function EarthEngineLayerConfigModal({ open, exclude, config, onClose, onChange, ...props }: EarthEngineLayerConfigModalProps): import("react/jsx-runtime.js").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=EarthEngineLayerConfigModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EarthEngineLayerConfigModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAazE,MAAM,WAAW,gCAAgC;IAChD,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;CACnD;AAED,wBAAgB,2BAA2B,CAAC,EAC3C,IAAI,EACJ,OAAO,EACP,MAAM,EACN,OAAO,EACP,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,gCAAgC,8CA4BlC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EarthEngineLayerConfig } from "../MapLayer/interfaces";
|
|
2
|
+
import { UseFormReturn } from "react-hook-form";
|
|
3
|
+
export interface EarthEngineLayerConfigurationProps {
|
|
4
|
+
form: UseFormReturn<EarthEngineLayerConfig>;
|
|
5
|
+
excluded?: string[];
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export declare function EarthEngineLayerConfiguration({ form, excluded, }: EarthEngineLayerConfigurationProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=EarthEngineLayerConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EarthEngineLayerConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAgB,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAW9D,MAAM,WAAW,kCAAkC;IAClD,IAAI,EAAE,aAAa,CAAC,sBAAsB,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACnB;AAED,wBAAgB,6BAA6B,CAAC,EAC7C,IAAI,EACJ,QAAQ,GACR,EAAE,kCAAkC,2CAoBpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AggregationSelector.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.tsx"],"names":[],"mappings":"AAYA,wBAAgB,mBAAmB,sDAiElC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorConfig.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.tsx"],"names":[],"mappings":"AAkBA,wBAAgB,WAAW,+CAqH1B"}
|
package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/Name.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Name.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/components/EarthEngineLayerConfiguration/components/Name.tsx"],"names":[],"mappings":"AAMA,wBAAgB,IAAI,+CA8BnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeriodSelector.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.tsx"],"names":[],"mappings":"AAYA,wBAAgB,cAAc,sDAsE7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StylesConfig.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.tsx"],"names":[],"mappings":"AAKA,wBAAgB,YAAY,sDAkB3B"}
|