@hisptz/dhis2-analytics 2.0.9 → 2.0.11

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.
Files changed (223) hide show
  1. package/dist/types/components/ChartAnalytics/DHIS2Chart.d.ts +26 -0
  2. package/dist/types/components/ChartAnalytics/DHIS2Chart.d.ts.map +1 -0
  3. package/dist/types/components/ChartAnalytics/components/DownloadMenu/components/Menu.d.ts +8 -0
  4. package/dist/types/components/ChartAnalytics/components/DownloadMenu/components/Menu.d.ts.map +1 -0
  5. package/dist/types/components/ChartAnalytics/components/DownloadMenu/constants/menu.d.ts +8 -0
  6. package/dist/types/components/ChartAnalytics/components/DownloadMenu/constants/menu.d.ts.map +1 -0
  7. package/dist/types/components/ChartAnalytics/components/DownloadMenu/index.d.ts +9 -0
  8. package/dist/types/components/ChartAnalytics/components/DownloadMenu/index.d.ts.map +1 -0
  9. package/dist/types/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.d.ts +2 -0
  10. package/dist/types/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.d.ts.map +1 -0
  11. package/dist/types/components/ChartAnalytics/hooks/useChart.d.ts +12 -0
  12. package/dist/types/components/ChartAnalytics/hooks/useChart.d.ts.map +1 -0
  13. package/dist/types/components/ChartAnalytics/index.d.ts +2 -0
  14. package/dist/types/components/ChartAnalytics/index.d.ts.map +1 -0
  15. package/dist/types/components/ChartAnalytics/models/bar.d.ts +9 -0
  16. package/dist/types/components/ChartAnalytics/models/bar.d.ts.map +1 -0
  17. package/dist/types/components/ChartAnalytics/models/column.d.ts +13 -0
  18. package/dist/types/components/ChartAnalytics/models/column.d.ts.map +1 -0
  19. package/dist/types/components/ChartAnalytics/models/index.d.ts +19 -0
  20. package/dist/types/components/ChartAnalytics/models/index.d.ts.map +1 -0
  21. package/dist/types/components/ChartAnalytics/models/line.d.ts +9 -0
  22. package/dist/types/components/ChartAnalytics/models/line.d.ts.map +1 -0
  23. package/dist/types/components/ChartAnalytics/models/multi-series.d.ts +10 -0
  24. package/dist/types/components/ChartAnalytics/models/multi-series.d.ts.map +1 -0
  25. package/dist/types/components/ChartAnalytics/models/pie.d.ts +9 -0
  26. package/dist/types/components/ChartAnalytics/models/pie.d.ts.map +1 -0
  27. package/dist/types/components/ChartAnalytics/services/export.d.ts +9 -0
  28. package/dist/types/components/ChartAnalytics/services/export.d.ts.map +1 -0
  29. package/dist/types/components/ChartAnalytics/types/props.d.ts +47 -0
  30. package/dist/types/components/ChartAnalytics/types/props.d.ts.map +1 -0
  31. package/dist/types/components/ChartAnalytics/utils/chart.d.ts +16 -0
  32. package/dist/types/components/ChartAnalytics/utils/chart.d.ts.map +1 -0
  33. package/dist/types/components/CircularProgressDashboard/CircularProgressIndicator.d.ts +6 -0
  34. package/dist/types/components/CircularProgressDashboard/CircularProgressIndicator.d.ts.map +1 -0
  35. package/dist/types/components/CircularProgressDashboard/index.d.ts +3 -0
  36. package/dist/types/components/CircularProgressDashboard/index.d.ts.map +1 -0
  37. package/dist/types/components/CircularProgressDashboard/types/props.d.ts +18 -0
  38. package/dist/types/components/CircularProgressDashboard/types/props.d.ts.map +1 -0
  39. package/dist/types/components/DHIS2PivotTable/DHIS2PivotTable.d.ts +23 -0
  40. package/dist/types/components/DHIS2PivotTable/DHIS2PivotTable.d.ts.map +1 -0
  41. package/dist/types/components/DHIS2PivotTable/components/Table/index.d.ts +10 -0
  42. package/dist/types/components/DHIS2PivotTable/components/Table/index.d.ts.map +1 -0
  43. package/dist/types/components/DHIS2PivotTable/components/TableBody/index.d.ts +2 -0
  44. package/dist/types/components/DHIS2PivotTable/components/TableBody/index.d.ts.map +1 -0
  45. package/dist/types/components/DHIS2PivotTable/components/TableHeaders/index.d.ts +2 -0
  46. package/dist/types/components/DHIS2PivotTable/components/TableHeaders/index.d.ts.map +1 -0
  47. package/dist/types/components/DHIS2PivotTable/index.d.ts +3 -0
  48. package/dist/types/components/DHIS2PivotTable/index.d.ts.map +1 -0
  49. package/dist/types/components/DHIS2PivotTable/interfaces/index.d.ts +2 -0
  50. package/dist/types/components/DHIS2PivotTable/interfaces/index.d.ts.map +1 -0
  51. package/dist/types/components/DHIS2PivotTable/services/engine.d.ts +63 -0
  52. package/dist/types/components/DHIS2PivotTable/services/engine.d.ts.map +1 -0
  53. package/dist/types/components/DHIS2PivotTable/state/engine.d.ts +8 -0
  54. package/dist/types/components/DHIS2PivotTable/state/engine.d.ts.map +1 -0
  55. package/dist/types/components/Map/DHIS2Map.d.ts +9 -0
  56. package/dist/types/components/Map/DHIS2Map.d.ts.map +1 -0
  57. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.d.ts +10 -0
  58. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.d.ts.map +1 -0
  59. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.d.ts +9 -0
  60. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.d.ts.map +1 -0
  61. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.d.ts +2 -0
  62. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.d.ts.map +1 -0
  63. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.d.ts +2 -0
  64. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.d.ts.map +1 -0
  65. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/Name.d.ts +2 -0
  66. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/Name.d.ts.map +1 -0
  67. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.d.ts +2 -0
  68. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.d.ts.map +1 -0
  69. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.d.ts +2 -0
  70. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.d.ts.map +1 -0
  71. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.d.ts +4 -0
  72. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.d.ts.map +1 -0
  73. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/hooks/data.d.ts +8 -0
  74. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/hooks/data.d.ts.map +1 -0
  75. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/index.d.ts +3 -0
  76. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/index.d.ts.map +1 -0
  77. package/dist/types/components/Map/components/MapArea/index.d.ts +6 -0
  78. package/dist/types/components/Map/components/MapArea/index.d.ts.map +1 -0
  79. package/dist/types/components/Map/components/MapArea/interfaces/index.d.ts +31 -0
  80. package/dist/types/components/Map/components/MapArea/interfaces/index.d.ts.map +1 -0
  81. package/dist/types/components/Map/components/MapControls/components/CustomControl/index.d.ts +8 -0
  82. package/dist/types/components/Map/components/MapControls/components/CustomControl/index.d.ts.map +1 -0
  83. package/dist/types/components/Map/components/MapControls/components/DownloadControl/index.d.ts +8 -0
  84. package/dist/types/components/Map/components/MapControls/components/DownloadControl/index.d.ts.map +1 -0
  85. package/dist/types/components/Map/components/MapControls/components/FullscreenControl/index.d.ts +6 -0
  86. package/dist/types/components/Map/components/MapControls/components/FullscreenControl/index.d.ts.map +1 -0
  87. package/dist/types/components/Map/components/MapControls/index.d.ts +6 -0
  88. package/dist/types/components/Map/components/MapControls/index.d.ts.map +1 -0
  89. package/dist/types/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.d.ts +2 -0
  90. package/dist/types/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.d.ts.map +1 -0
  91. package/dist/types/components/Map/components/MapLayer/components/BoundaryLayer/index.d.ts +15 -0
  92. package/dist/types/components/Map/components/MapLayer/components/BoundaryLayer/index.d.ts.map +1 -0
  93. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.d.ts +18 -0
  94. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.d.ts.map +1 -0
  95. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.d.ts +5 -0
  96. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.d.ts.map +1 -0
  97. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.d.ts +10 -0
  98. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.d.ts.map +1 -0
  99. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/index.d.ts +4 -0
  100. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/index.d.ts.map +1 -0
  101. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.d.ts +59 -0
  102. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.d.ts.map +1 -0
  103. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.d.ts +56 -0
  104. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.d.ts.map +1 -0
  105. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.d.ts +21 -0
  106. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.d.ts.map +1 -0
  107. package/dist/types/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.d.ts +6 -0
  108. package/dist/types/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.d.ts.map +1 -0
  109. package/dist/types/components/Map/components/MapLayer/components/LegendArea/index.d.ts +9 -0
  110. package/dist/types/components/Map/components/MapLayer/components/LegendArea/index.d.ts.map +1 -0
  111. package/dist/types/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.d.ts +4 -0
  112. package/dist/types/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.d.ts.map +1 -0
  113. package/dist/types/components/Map/components/MapLayer/components/PointLayer/hooks/index.d.ts +3 -0
  114. package/dist/types/components/Map/components/MapLayer/components/PointLayer/hooks/index.d.ts.map +1 -0
  115. package/dist/types/components/Map/components/MapLayer/components/PointLayer/index.d.ts +2 -0
  116. package/dist/types/components/Map/components/MapLayer/components/PointLayer/index.d.ts.map +1 -0
  117. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.d.ts +13 -0
  118. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.d.ts.map +1 -0
  119. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.d.ts +11 -0
  120. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.d.ts.map +1 -0
  121. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.d.ts +17 -0
  122. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.d.ts.map +1 -0
  123. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.d.ts +22 -0
  124. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.d.ts.map +1 -0
  125. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.d.ts +22 -0
  126. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.d.ts.map +1 -0
  127. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.d.ts +17 -0
  128. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.d.ts.map +1 -0
  129. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.d.ts +5 -0
  130. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.d.ts.map +1 -0
  131. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.d.ts +3 -0
  132. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.d.ts.map +1 -0
  133. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/index.d.ts +5 -0
  134. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/index.d.ts.map +1 -0
  135. package/dist/types/components/Map/components/MapLayer/index.d.ts +6 -0
  136. package/dist/types/components/Map/components/MapLayer/index.d.ts.map +1 -0
  137. package/dist/types/components/Map/components/MapLayer/interfaces/index.d.ts +136 -0
  138. package/dist/types/components/Map/components/MapLayer/interfaces/index.d.ts.map +1 -0
  139. package/dist/types/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.d.ts +10 -0
  140. package/dist/types/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.d.ts.map +1 -0
  141. package/dist/types/components/Map/components/MapProvider/components/MapLayerProvider/index.d.ts +7 -0
  142. package/dist/types/components/Map/components/MapProvider/components/MapLayerProvider/index.d.ts.map +1 -0
  143. package/dist/types/components/Map/components/MapProvider/hooks/index.d.ts +16 -0
  144. package/dist/types/components/Map/components/MapProvider/hooks/index.d.ts.map +1 -0
  145. package/dist/types/components/Map/components/MapProvider/index.d.ts +3 -0
  146. package/dist/types/components/Map/components/MapProvider/index.d.ts.map +1 -0
  147. package/dist/types/components/Map/components/MapUpdater/index.d.ts +5 -0
  148. package/dist/types/components/Map/components/MapUpdater/index.d.ts.map +1 -0
  149. package/dist/types/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.d.ts +3 -0
  150. package/dist/types/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.d.ts.map +1 -0
  151. package/dist/types/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.d.ts +3 -0
  152. package/dist/types/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.d.ts.map +1 -0
  153. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.d.ts +8 -0
  154. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.d.ts.map +1 -0
  155. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.d.ts +420 -0
  156. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.d.ts.map +1 -0
  157. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.d.ts +9 -0
  158. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.d.ts.map +1 -0
  159. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.d.ts +12 -0
  160. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.d.ts.map +1 -0
  161. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.d.ts +2 -0
  162. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.d.ts.map +1 -0
  163. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.d.ts +8 -0
  164. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.d.ts.map +1 -0
  165. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.d.ts +9 -0
  166. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.d.ts.map +1 -0
  167. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/RadiusField.d.ts +2 -0
  168. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/RadiusField.d.ts.map +1 -0
  169. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/TypeField.d.ts +2 -0
  170. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/TypeField.d.ts.map +1 -0
  171. package/dist/types/components/Map/components/ThematicLayerConfiguration/index.d.ts +4 -0
  172. package/dist/types/components/Map/components/ThematicLayerConfiguration/index.d.ts.map +1 -0
  173. package/dist/types/components/Map/components/ThematicLayerConfiguration/types/index.d.ts +15 -0
  174. package/dist/types/components/Map/components/ThematicLayerConfiguration/types/index.d.ts.map +1 -0
  175. package/dist/types/components/Map/constants/colors.d.ts +422 -0
  176. package/dist/types/components/Map/constants/colors.d.ts.map +1 -0
  177. package/dist/types/components/Map/constants/legendSet.d.ts +8 -0
  178. package/dist/types/components/Map/constants/legendSet.d.ts.map +1 -0
  179. package/dist/types/components/Map/hooks/map.d.ts +10 -0
  180. package/dist/types/components/Map/hooks/map.d.ts.map +1 -0
  181. package/dist/types/components/Map/index.d.ts +6 -0
  182. package/dist/types/components/Map/index.d.ts.map +1 -0
  183. package/dist/types/components/Map/interfaces/index.d.ts +76 -0
  184. package/dist/types/components/Map/interfaces/index.d.ts.map +1 -0
  185. package/dist/types/components/Map/state/index.d.ts +21 -0
  186. package/dist/types/components/Map/state/index.d.ts.map +1 -0
  187. package/dist/types/components/Map/utils/colors.d.ts +13 -0
  188. package/dist/types/components/Map/utils/colors.d.ts.map +1 -0
  189. package/dist/types/components/Map/utils/helpers.d.ts +7 -0
  190. package/dist/types/components/Map/utils/helpers.d.ts.map +1 -0
  191. package/dist/types/components/Map/utils/map.d.ts +41 -0
  192. package/dist/types/components/Map/utils/map.d.ts.map +1 -0
  193. package/dist/types/components/SingleValueContainer/SingleValueVisualizer.d.ts +11 -0
  194. package/dist/types/components/SingleValueContainer/SingleValueVisualizer.d.ts.map +1 -0
  195. package/dist/types/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.d.ts +10 -0
  196. package/dist/types/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.d.ts.map +1 -0
  197. package/dist/types/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.d.ts +3 -0
  198. package/dist/types/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.d.ts.map +1 -0
  199. package/dist/types/components/SingleValueContainer/index.d.ts +5 -0
  200. package/dist/types/components/SingleValueContainer/index.d.ts.map +1 -0
  201. package/dist/types/components/SingleValueContainer/types/props.d.ts +18 -0
  202. package/dist/types/components/SingleValueContainer/types/props.d.ts.map +1 -0
  203. package/dist/types/components/Visualization/components/AnalyticsDataProvider/index.d.ts +11 -0
  204. package/dist/types/components/Visualization/components/AnalyticsDataProvider/index.d.ts.map +1 -0
  205. package/dist/types/components/Visualization/components/DimensionsProvider/index.d.ts +16 -0
  206. package/dist/types/components/Visualization/components/DimensionsProvider/index.d.ts.map +1 -0
  207. package/dist/types/components/Visualization/components/LayoutProvider/index.d.ts +15 -0
  208. package/dist/types/components/Visualization/components/LayoutProvider/index.d.ts.map +1 -0
  209. package/dist/types/components/Visualization/components/VisualizationDimensionSelector/index.d.ts +5 -0
  210. package/dist/types/components/Visualization/components/VisualizationDimensionSelector/index.d.ts.map +1 -0
  211. package/dist/types/components/Visualization/components/VisualizationProvider/index.d.ts +14 -0
  212. package/dist/types/components/Visualization/components/VisualizationProvider/index.d.ts.map +1 -0
  213. package/dist/types/components/Visualization/components/VisualizationSelector/index.d.ts +23 -0
  214. package/dist/types/components/Visualization/components/VisualizationSelector/index.d.ts.map +1 -0
  215. package/dist/types/components/Visualization/components/VisualizationTypeProvider/index.d.ts +15 -0
  216. package/dist/types/components/Visualization/components/VisualizationTypeProvider/index.d.ts.map +1 -0
  217. package/dist/types/components/Visualization/components/VisualizationTypeSelector/index.d.ts +2 -0
  218. package/dist/types/components/Visualization/components/VisualizationTypeSelector/index.d.ts.map +1 -0
  219. package/dist/types/components/Visualization/index.d.ts +23 -0
  220. package/dist/types/components/Visualization/index.d.ts.map +1 -0
  221. package/dist/types/index.d.ts +7 -0
  222. package/dist/types/index.d.ts.map +1 -0
  223. package/package.json +3 -3
@@ -0,0 +1,13 @@
1
+ import { COLOR_SCALES } from "../constants/colors.js";
2
+ export declare const getColorPalette: (scale: string, classes: number) => any;
3
+ export declare const getColorClasses: (palette: string) => number;
4
+ export declare const getColorScale: (palette: string) => string | undefined;
5
+ export declare const defaultColorScaleName = "YlOrBr";
6
+ export declare const defaultClasses = 5;
7
+ export declare const defaultColorScale: any;
8
+ export declare const cssColor: (color: any) => any;
9
+ export declare const getUniqueColor: (defaultColors: any) => (index: number) => any;
10
+ export declare const isDarkColor: (color: string) => boolean;
11
+ export declare const getContrastColor: (color: string) => "#fff" | "#000";
12
+ export type LegendColorScale = (typeof COLOR_SCALES)[number];
13
+ //# sourceMappingURL=colors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/utils/colors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAKtE,eAAO,MAAM,eAAe,UAAW,MAAM,WAAW,MAAM,QAE7D,CAAC;AAEF,eAAO,MAAM,eAAe,YAAa,MAAM,WAE9C,CAAC;AAGF,eAAO,MAAM,aAAa,YAAa,MAAM,uBAK5C,CAAC;AAEF,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,cAAc,IAAI,CAAC;AAChC,eAAO,MAAM,iBAAiB,KAG7B,CAAC;AAGF,eAAO,MAAM,QAAQ,UAAW,GAAG,QAQlC,CAAC;AAGF,eAAO,MAAM,cAAc,kBAAmB,GAAG,aAkBjC,MAAM,QACrB,CAAC;AAGF,eAAO,MAAM,WAAW,UAAW,MAAM,YAAsB,CAAC;AAGhE,eAAO,MAAM,gBAAgB,UAAW,MAAM,oBACT,CAAC;AACtC,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import L from "leaflet";
2
+ export declare const getLongestTextLength: (array: Array<any>, key: string | number) => any;
3
+ export declare function getIconUrl(icon: string, { baseUrl }: {
4
+ baseUrl: string;
5
+ }): string;
6
+ export declare function getIcon(url: string): L.Icon | undefined;
7
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/utils/helpers.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,SAAS,CAAC;AAExB,eAAO,MAAM,oBAAoB,UAAW,MAAM,GAAG,CAAC,OAAO,MAAM,GAAG,MAAM,QAOnE,CAAC;AAEV,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,UAExE;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,GAAG,SAAS,CAIvD"}
@@ -0,0 +1,41 @@
1
+ import type { Legend, OrgUnitSelection } from "@hisptz/dhis2-utils";
2
+ import { LeafletMouseEvent } from "leaflet";
3
+ export declare function highlightFeature(e: LeafletMouseEvent, style: any): void;
4
+ export declare function resetHighlight(e: LeafletMouseEvent, defaultStyle: any): void;
5
+ export declare function getColorFromLegendSet(legends: Legend[], value?: number): string;
6
+ export declare function getLegendCount(legend: any, data: any): number;
7
+ export declare function getOrgUnitsSelection(orgUnitSelection: OrgUnitSelection): string[];
8
+ export declare function sanitizeOrgUnits(metaData: any): any;
9
+ export declare function toGeoJson(organisationUnits: any): ({
10
+ type: string;
11
+ id: any;
12
+ geometry: {
13
+ type: string;
14
+ coordinates: any;
15
+ };
16
+ properties: {
17
+ type: string;
18
+ id: any;
19
+ name: any;
20
+ hasCoordinatesDown: any;
21
+ hasCoordinatesUp: any;
22
+ level: any;
23
+ grandParentParentGraph: string;
24
+ grandParentId: string;
25
+ parentGraph: any;
26
+ parentId: any;
27
+ parentName: any;
28
+ dimensions: any;
29
+ };
30
+ } | {
31
+ type?: undefined;
32
+ id?: undefined;
33
+ geometry?: undefined;
34
+ properties?: undefined;
35
+ })[];
36
+ export declare function sanitizeDate(startDate: string): string;
37
+ export declare function generateLegends(maxValue: number, minValue: number, { classesCount, colorClass }: {
38
+ classesCount: number;
39
+ colorClass: string;
40
+ }): Array<Legend>;
41
+ //# sourceMappingURL=map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/utils/map.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,MAAM,EAEN,gBAAgB,EAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAgB5C,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,iBAAiB,EAAE,KAAK,EAAE,GAAG,QAIhE;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,iBAAiB,EAAE,YAAY,EAAE,GAAG,QAIrE;AAED,wBAAgB,qBAAqB,CACpC,OAAO,EAAE,MAAM,EAAE,EACjB,KAAK,CAAC,EAAE,MAAM,GACZ,MAAM,CAWR;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,UAIpD;AAED,wBAAgB,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,YAyBtE;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,GAAG,OAS7C;AAED,wBAAgB,SAAS,CAAC,iBAAiB,EAAE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;KAwD/C;AAED,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAKtD;AAED,wBAAgB,eAAe,CAC9B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,EAAE,YAAY,EAAE,UAAU,EAAE,EAAE;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GACxE,KAAK,CAAC,MAAM,CAAC,CAuBf"}
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import SingleValueItem from "./components/SingleValueItem/SingleValueItem.js";
3
+ import { SingleValueVisualizerProps } from "./types/props.js";
4
+ export * from "./types/props.js";
5
+ export declare function SingleValueVisualizer({ title, singleValueItems, animationDuration, animationDelay, disableAnimation, }: SingleValueVisualizerProps): React.ReactElement;
6
+ /**
7
+ * @deprecated since `v2`. Use `SingleValueVisualizer` instead
8
+ * */
9
+ export declare const SingleValueContainer: typeof SingleValueVisualizer;
10
+ export { SingleValueItem };
11
+ //# sourceMappingURL=SingleValueVisualizer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SingleValueVisualizer.d.ts","sourceRoot":"","sources":["../../../../src/components/SingleValueContainer/SingleValueVisualizer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,eAAe,MAAM,iDAAiD,CAAC;AAE9E,OAAO,EAAe,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAE3E,cAAc,kBAAkB,CAAC;AAEjC,wBAAgB,qBAAqB,CAAC,EACrC,KAAK,EACL,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,GAChB,EAAE,0BAA0B,GAAG,KAAK,CAAC,YAAY,CA4BjD;AAED;;KAEK;AACL,eAAO,MAAM,oBAAoB,8BAAwB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { SingleValue } from "../../types/props.js";
3
+ interface SingleValueProps extends SingleValue {
4
+ globalAnimationDelay?: number;
5
+ globalAnimationDuration?: number;
6
+ disableAnimation?: boolean;
7
+ }
8
+ export default function SingleValueItem({ label, value, color, percentage, animationDuration, animationDelay, globalAnimationDelay, decimalPlaces, globalAnimationDuration, disableAnimation, }: SingleValueProps): React.ReactElement;
9
+ export {};
10
+ //# sourceMappingURL=SingleValueItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SingleValueItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,UAAU,gBAAiB,SAAQ,WAAW;IAC7C,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACvC,KAAK,EACL,KAAK,EACL,KAAK,EACL,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,uBAAuB,EACvB,gBAAgB,GAChB,EAAE,gBAAgB,GAAG,KAAK,CAAC,YAAY,CAqCvC"}
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ export default function SingleValuePercentage({ percentage, color, }: any): React.ReactElement;
3
+ //# sourceMappingURL=SingleValuePercentage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SingleValuePercentage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC7C,UAAU,EACV,KAAK,GACL,EAAE,GAAG,GAAG,KAAK,CAAC,YAAY,CAW1B"}
@@ -0,0 +1,5 @@
1
+ export * from "./SingleValueVisualizer.js";
2
+ export * from "./components/SingleValueItem/SingleValuePercentage.js";
3
+ export * from "./components/SingleValueItem/SingleValueItem.js";
4
+ export * from "./types/props.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SingleValueContainer/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uDAAuD,CAAC;AACtE,cAAc,iDAAiD,CAAC;AAChE,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,18 @@
1
+ export type SingleValueVisualizerProps = {
2
+ title: string;
3
+ singleValueItems: Array<SingleValue>;
4
+ animationDuration?: number;
5
+ animationDelay?: number;
6
+ disableAnimation?: boolean;
7
+ };
8
+ export type SingleValueContainerProps = SingleValueVisualizerProps;
9
+ export type SingleValue = {
10
+ label: string;
11
+ value: number;
12
+ percentage?: number;
13
+ decimalPlaces?: number;
14
+ color?: string;
15
+ animationDuration?: number;
16
+ animationDelay?: number;
17
+ };
18
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../../src/components/SingleValueContainer/types/props.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,0BAA0B,GAAG;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,0BAA0B,CAAC;AAEnE,MAAM,MAAM,WAAW,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { Analytics } from "@hisptz/dhis2-utils";
3
+ export interface DataProviderProps {
4
+ children: React.ReactNode;
5
+ }
6
+ export declare function useAnalyticsData(): {
7
+ loading: boolean;
8
+ analytics: Analytics;
9
+ };
10
+ export declare function AnalyticsDataProvider({ children }: DataProviderProps): import("react/jsx-runtime.js").JSX.Element;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Visualization/components/AnalyticsDataProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAsB,MAAM,qBAAqB,CAAC;AA6BpE,MAAM,WAAW,iBAAiB;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,wBAAgB,gBAAgB;;;EAE/B;AAED,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,8CAiEpE"}
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { AnalyticsDimension } from "@hisptz/dhis2-utils";
3
+ export type Dimension = "ou" | "pe" | "dx" | "co";
4
+ export type DimensionUpdater = (data: {
5
+ dimension: Dimension;
6
+ value: string[];
7
+ }) => void;
8
+ export declare const DimensionState: React.Context<AnalyticsDimension>;
9
+ export declare const DimensionUpdateState: React.Context<DimensionUpdater | undefined>;
10
+ export interface DimensionProviderProps {
11
+ children: React.ReactNode;
12
+ dimensions: AnalyticsDimension;
13
+ }
14
+ export declare function useDimensions(): [AnalyticsDimension, DimensionUpdater];
15
+ export declare function DimensionsProvider({ children, dimensions }: DimensionProviderProps): import("react/jsx-runtime").JSX.Element;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Visualization/components/DimensionsProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgD,MAAM,OAAO,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAIzD,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAElD,MAAM,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE;IAAE,SAAS,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,KAAK,IAAI,CAAA;AACxF,eAAO,MAAM,cAAc,mCAIzB,CAAA;AACF,eAAO,MAAM,oBAAoB,6CAAyD,CAAC;AAS3F,MAAM,WAAW,sBAAsB;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,EAAE,kBAAkB,CAAA;CACjC;AAED,wBAAgB,aAAa,2CAK5B;AAED,wBAAgB,kBAAkB,CAAC,EAAC,QAAQ,EAAE,UAAU,EAAC,EAAE,sBAAsB,2CAehF"}
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import { Dimension } from "../DimensionsProvider/index.js";
3
+ export interface Layout {
4
+ rows: Dimension[];
5
+ columns: Dimension[];
6
+ filters: Dimension[];
7
+ }
8
+ export interface LayoutProviderProps {
9
+ children: React.ReactNode;
10
+ defaultLayout: Layout;
11
+ }
12
+ export declare const LayoutState: React.Context<Layout | undefined>;
13
+ export declare function useLayout(): Layout[];
14
+ export declare function LayoutProvider({ defaultLayout, children, }: LayoutProviderProps): import("react/jsx-runtime.js").JSX.Element;
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Visualization/components/LayoutProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAE3D,MAAM,WAAW,MAAM;IACtB,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,OAAO,EAAE,SAAS,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,WAAW,mCAA+C,CAAC;AAExE,wBAAgB,SAAS,aAExB;AAED,wBAAgB,cAAc,CAAC,EAC9B,aAAa,EACb,QAAQ,GACR,EAAE,mBAAmB,8CAMrB"}
@@ -0,0 +1,5 @@
1
+ export declare function VisualizationDimensionSelector({ showPeriodSelector, showOrgUnitSelector, }: {
2
+ showPeriodSelector?: boolean;
3
+ showOrgUnitSelector?: boolean;
4
+ }): import("react/jsx-runtime.js").JSX.Element;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Visualization/components/VisualizationDimensionSelector/index.tsx"],"names":[],"mappings":"AASA,wBAAgB,8BAA8B,CAAC,EAC9C,kBAAkB,EAClB,mBAAmB,GACnB,EAAE;IACF,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC9B,8CAsEA"}
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { Layout } from "../LayoutProvider/index.js";
3
+ import { AnalyticsDimension } from "@hisptz/dhis2-utils";
4
+ import { VisualizationType } from "../VisualizationTypeProvider/index.js";
5
+ import { VisualizationConfig } from "../../index.js";
6
+ export interface VisualizationProviderProps {
7
+ children: React.ReactNode;
8
+ layout: Layout;
9
+ dimensions: AnalyticsDimension;
10
+ type: VisualizationType;
11
+ config: VisualizationConfig;
12
+ }
13
+ export declare function VisualizationProvider({ layout, dimensions, children, type, config, }: VisualizationProviderProps): import("react/jsx-runtime.js").JSX.Element;
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Visualization/components/VisualizationProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAkB,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGzD,OAAO,EACN,iBAAiB,EAEjB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,WAAW,0BAA0B;IAC1C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,kBAAkB,CAAC;IAC/B,IAAI,EAAE,iBAAiB,CAAC;IACxB,MAAM,EAAE,mBAAmB,CAAC;CAC5B;AAED,wBAAgB,qBAAqB,CAAC,EACrC,MAAM,EACN,UAAU,EACV,QAAQ,EACR,IAAI,EACJ,MAAM,GACN,EAAE,0BAA0B,8CAU5B"}
@@ -0,0 +1,23 @@
1
+ import { DHIS2PivotTableOptions } from "../../../DHIS2PivotTable/index.js";
2
+ import { Dimension } from "../DimensionsProvider/index.js";
3
+ import { ChartConfig } from "../../../ChartAnalytics/index.js";
4
+ import { VisualizationConfig } from "../../index.js";
5
+ import { MapProps } from "../../../Map/index.js";
6
+ import { OrgUnitSelection } from "@hisptz/dhis2-utils";
7
+ import type { PivotTableLayoutProps } from "../../../DHIS2PivotTable/components/Table/index.js";
8
+ export interface VisualizationSelectorProps {
9
+ config: VisualizationConfig;
10
+ }
11
+ export declare function getDimensionLabel(dimension: Dimension): any;
12
+ export declare function getOrgUnitSelectionFromIds(ous: string[]): OrgUnitSelection;
13
+ export declare function PivotTableRenderer({ options, }: {
14
+ options: DHIS2PivotTableOptions & PivotTableLayoutProps;
15
+ }): import("react/jsx-runtime.js").JSX.Element | null;
16
+ export declare function ChartRenderer({ options }: {
17
+ options: ChartConfig;
18
+ }): import("react/jsx-runtime.js").JSX.Element | null;
19
+ export declare function MapRenderer({ options, }: {
20
+ options: Omit<MapProps, "orgUnitSelection" | "periodSelection">;
21
+ }): import("react/jsx-runtime.js").JSX.Element;
22
+ export declare function VisualizationSelector({ config }: VisualizationSelectorProps): import("react/jsx-runtime.js").JSX.Element | null;
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Visualization/components/VisualizationSelector/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEN,sBAAsB,EACtB,MAAM,mCAAmC,CAAC;AAG3C,OAAO,EAAE,SAAS,EAAiB,MAAM,gCAAgC,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAc,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAY,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAKvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAEhG,MAAM,WAAW,0BAA0B;IAC1C,MAAM,EAAE,mBAAmB,CAAC;CAC5B;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,OAWrD;AAED,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,oBAsBvD;AAED,wBAAgB,kBAAkB,CAAC,EAClC,OAAO,GACP,EAAE;IACF,OAAO,EAAE,sBAAsB,GAAG,qBAAqB,CAAC;CACxD,qDA4BA;AAED,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,WAAW,CAAA;CAAE,qDAMlE;AAED,wBAAgB,WAAW,CAAC,EAC3B,OAAO,GACP,EAAE;IACF,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,kBAAkB,GAAG,iBAAiB,CAAC,CAAC;CAChE,8CA2CA;AAED,wBAAgB,qBAAqB,CAAC,EAAE,MAAM,EAAE,EAAE,0BAA0B,qDA6C3E"}
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import { VisualizationConfig } from "../../index.js";
3
+ export type VisualizationType = "pivotTable" | "chart" | "map";
4
+ export declare const VisualizationTypeContext: React.Context<VisualizationType>;
5
+ export declare const VisualizationConfigContext: React.Context<VisualizationConfig | undefined>;
6
+ export declare const VisualizationTypeSetter: React.Context<React.Dispatch<React.SetStateAction<VisualizationType>> | undefined>;
7
+ export interface VisualizationTypeProviderProps {
8
+ children: React.ReactNode;
9
+ defaultType: VisualizationType;
10
+ config: VisualizationConfig;
11
+ }
12
+ export declare function useVisualizationType(): [VisualizationType, React.Dispatch<React.SetStateAction<VisualizationType>>];
13
+ export declare function useVisualizationConfig(): VisualizationConfig | undefined;
14
+ export declare function VisualizationTypeProvider({ children, defaultType, config, }: VisualizationTypeProviderProps): import("react/jsx-runtime.js").JSX.Element;
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Visualization/components/VisualizationTypeProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG,OAAO,GAAG,KAAK,CAAC;AAE/D,eAAO,MAAM,wBAAwB,kCACU,CAAC;AAChD,eAAO,MAAM,0BAA0B,gDAE3B,CAAC;AACb,eAAO,MAAM,uBAAuB,oFAExB,CAAC;AAEb,MAAM,WAAW,8BAA8B;IAC9C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,EAAE,iBAAiB,CAAC;IAC/B,MAAM,EAAE,mBAAmB,CAAC;CAC5B;AAED,wBAAgB,oBAAoB,iFAQnC;AAED,wBAAgB,sBAAsB,oCAErC;AAED,wBAAgB,yBAAyB,CAAC,EACzC,QAAQ,EACR,WAAW,EACX,MAAM,GACN,EAAE,8BAA8B,8CAYhC"}
@@ -0,0 +1,2 @@
1
+ export declare function VisualizationTypeSelector(): import("react/jsx-runtime.js").JSX.Element;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Visualization/components/VisualizationTypeSelector/index.tsx"],"names":[],"mappings":"AAiCA,wBAAgB,yBAAyB,+CAkCxC"}
@@ -0,0 +1,23 @@
1
+ import { AnalyticsDimension } from "@hisptz/dhis2-utils";
2
+ import { Layout } from "./components/LayoutProvider/index.js";
3
+ import { VisualizationType } from "./components/VisualizationTypeProvider/index.js";
4
+ import { DHIS2PivotTableOptions } from "../DHIS2PivotTable/index.js";
5
+ import { ChartConfig } from "../ChartAnalytics/index.js";
6
+ import { MapProps } from "../Map/index.js";
7
+ export interface VisualizationConfig {
8
+ pivotTable?: DHIS2PivotTableOptions;
9
+ chart?: ChartConfig;
10
+ map?: Omit<MapProps, "orgUnitSelection" | "periodSelection">;
11
+ }
12
+ export interface VisualizationProps {
13
+ layout: Layout;
14
+ defaultVisualizationType: VisualizationType;
15
+ dimensions: AnalyticsDimension;
16
+ config: VisualizationConfig;
17
+ height?: number;
18
+ showToolbar?: boolean;
19
+ showPeriodSelector?: boolean;
20
+ showOrgUnitSelector?: boolean;
21
+ }
22
+ export declare function Visualization({ dimensions, layout, defaultVisualizationType, config, height, showToolbar, showOrgUnitSelector, showPeriodSelector, }: VisualizationProps): import("react/jsx-runtime.js").JSX.Element;
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Visualization/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AAIpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAK3C,MAAM,WAAW,mBAAmB;IACnC,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,GAAG,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,kBAAkB,GAAG,iBAAiB,CAAC,CAAC;CAC7D;AAED,MAAM,WAAW,kBAAkB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,wBAAwB,EAAE,iBAAiB,CAAC;IAC5C,UAAU,EAAE,kBAAkB,CAAC;IAC/B,MAAM,EAAE,mBAAmB,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC9B;AA6CD,wBAAgB,aAAa,CAAC,EAC7B,UAAU,EACV,MAAM,EACN,wBAAwB,EACxB,MAAM,EACN,MAAM,EACN,WAAW,EACX,mBAAmB,EACnB,kBAAkB,GAClB,EAAE,kBAAkB,8CA8CpB"}
@@ -0,0 +1,7 @@
1
+ export * from "./components/Map/index.js";
2
+ export * from "./components/CircularProgressDashboard/index.js";
3
+ export * from "./components/ChartAnalytics/index.js";
4
+ export * from "./components/SingleValueContainer/index.js";
5
+ export * from "./components/DHIS2PivotTable/index.js";
6
+ export * from "./components/Visualization/index.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iDAAiD,CAAC;AAChE,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,qCAAqC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hisptz/dhis2-analytics",
3
- "version": "2.0.9",
3
+ "version": "2.0.11",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -55,8 +55,8 @@
55
55
  "react-query": "^3.39.3",
56
56
  "react-spring": "^9.6.1",
57
57
  "screenfull": "^6.0.2",
58
- "@hisptz/dhis2-utils": "2.0.4",
59
- "@hisptz/dhis2-ui": "2.0.9"
58
+ "@hisptz/dhis2-ui": "2.0.11",
59
+ "@hisptz/dhis2-utils": "2.0.4"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "@dhis2/app-runtime": "^3.10.2",