@hisptz/dhis2-analytics 2.0.0-alpha.0 → 2.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (616) hide show
  1. package/dist/components/ChartAnalytics/ChartAnalytics.stories.js +20 -43
  2. package/dist/components/ChartAnalytics/DHIS2Chart.js +17 -43
  3. package/dist/components/ChartAnalytics/DHIS2Chart.js.map +1 -1
  4. package/dist/components/ChartAnalytics/components/DownloadMenu/components/Menu.js +14 -16
  5. package/dist/components/ChartAnalytics/components/DownloadMenu/components/Menu.js.map +1 -1
  6. package/dist/components/ChartAnalytics/components/DownloadMenu/constants/menu.js +8 -14
  7. package/dist/components/ChartAnalytics/components/DownloadMenu/index.js +19 -21
  8. package/dist/components/ChartAnalytics/components/DownloadMenu/index.js.map +1 -1
  9. package/dist/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.js +0 -1
  10. package/dist/components/ChartAnalytics/hooks/useChart.js +11 -13
  11. package/dist/components/ChartAnalytics/hooks/useChart.js.map +1 -1
  12. package/dist/components/ChartAnalytics/index.js +1 -12
  13. package/dist/components/ChartAnalytics/index.js.map +1 -1
  14. package/dist/components/ChartAnalytics/models/bar.js +3 -6
  15. package/dist/components/ChartAnalytics/models/bar.js.map +1 -1
  16. package/dist/components/ChartAnalytics/models/column.js +6 -9
  17. package/dist/components/ChartAnalytics/models/column.js.map +1 -1
  18. package/dist/components/ChartAnalytics/models/index.js +1 -6
  19. package/dist/components/ChartAnalytics/models/index.js.map +1 -1
  20. package/dist/components/ChartAnalytics/models/line.js +6 -8
  21. package/dist/components/ChartAnalytics/models/line.js.map +1 -1
  22. package/dist/components/ChartAnalytics/models/multi-series.js +26 -15
  23. package/dist/components/ChartAnalytics/models/multi-series.js.map +1 -1
  24. package/dist/components/ChartAnalytics/models/pie.js +8 -8
  25. package/dist/components/ChartAnalytics/models/pie.js.map +1 -1
  26. package/dist/components/ChartAnalytics/services/export.js +7 -20
  27. package/dist/components/ChartAnalytics/services/export.js.map +1 -1
  28. package/dist/components/ChartAnalytics/styles/custom-highchart.css +40 -0
  29. package/dist/components/ChartAnalytics/styles/custom-highchart.css.map +1 -0
  30. package/dist/components/ChartAnalytics/types/props.js +0 -1
  31. package/dist/components/ChartAnalytics/utils/chart.js +24 -31
  32. package/dist/components/ChartAnalytics/utils/chart.js.map +1 -1
  33. package/dist/components/CircularProgressDashboard/CircularProgressIndicator.js +14 -23
  34. package/dist/components/CircularProgressDashboard/CircularProgressIndicator.js.map +1 -1
  35. package/dist/components/CircularProgressDashboard/CircularProgressIndicator.stories.js +3 -10
  36. package/dist/components/CircularProgressDashboard/index.js +2 -19
  37. package/dist/components/CircularProgressDashboard/index.js.map +1 -1
  38. package/dist/components/CircularProgressDashboard/types/props.js +0 -1
  39. package/dist/components/DHIS2PivotTable/DHIS2PivotTable.js +13 -15
  40. package/dist/components/DHIS2PivotTable/DHIS2PivotTable.js.map +1 -1
  41. package/dist/components/DHIS2PivotTable/DHIS2PivotTable.stories.js +5 -14
  42. package/dist/components/DHIS2PivotTable/components/Table/index.js +4 -6
  43. package/dist/components/DHIS2PivotTable/components/TableBody/index.js +30 -36
  44. package/dist/components/DHIS2PivotTable/components/TableBody/index.js.map +1 -1
  45. package/dist/components/DHIS2PivotTable/components/TableHeaders/index.js +27 -33
  46. package/dist/components/DHIS2PivotTable/components/TableHeaders/index.js.map +1 -1
  47. package/dist/components/DHIS2PivotTable/index.js +2 -19
  48. package/dist/components/DHIS2PivotTable/index.js.map +1 -1
  49. package/dist/components/DHIS2PivotTable/interfaces/index.js +0 -1
  50. package/dist/components/DHIS2PivotTable/services/engine.js +10 -18
  51. package/dist/components/DHIS2PivotTable/services/engine.js.map +1 -1
  52. package/dist/components/DHIS2PivotTable/state/engine.js +6 -9
  53. package/dist/components/DHIS2PivotTable/state/engine.js.map +1 -1
  54. package/dist/components/Map/DHIS2Map.js +13 -20
  55. package/dist/components/Map/DHIS2Map.js.map +1 -1
  56. package/dist/components/Map/DHIS2Map.stories.js +3 -17
  57. package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.js +15 -21
  58. package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.js.map +1 -1
  59. package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.stories.js +10 -15
  60. package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.js +16 -18
  61. package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.js.map +1 -1
  62. package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.stories.js +7 -12
  63. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.js +24 -30
  64. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.js.map +1 -1
  65. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.js +42 -49
  66. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.js.map +1 -1
  67. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/Name.js +16 -22
  68. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/Name.js.map +1 -1
  69. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.js +26 -32
  70. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.js.map +1 -1
  71. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.js +10 -16
  72. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.js.map +1 -1
  73. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.js +21 -27
  74. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.js.map +1 -1
  75. package/dist/components/Map/components/EarthEngineLayerConfiguration/hooks/data.js +16 -19
  76. package/dist/components/Map/components/EarthEngineLayerConfiguration/hooks/data.js.map +1 -1
  77. package/dist/components/Map/components/EarthEngineLayerConfiguration/index.js +2 -19
  78. package/dist/components/Map/components/EarthEngineLayerConfiguration/index.js.map +1 -1
  79. package/dist/components/Map/components/MapArea/index.js +60 -54
  80. package/dist/components/Map/components/MapArea/index.js.map +1 -1
  81. package/dist/components/Map/components/MapArea/interfaces/index.js +0 -1
  82. package/dist/components/Map/components/MapControls/components/CustomControl/index.js +3 -5
  83. package/dist/components/Map/components/MapControls/components/DownloadControl/index.js +8 -14
  84. package/dist/components/Map/components/MapControls/components/FullscreenControl/index.js +7 -9
  85. package/dist/components/Map/components/MapControls/index.js +22 -17
  86. package/dist/components/Map/components/MapControls/index.js.map +1 -1
  87. package/dist/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.js +3 -5
  88. package/dist/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.js.map +1 -1
  89. package/dist/components/Map/components/MapLayer/components/BoundaryLayer/index.js +21 -31
  90. package/dist/components/Map/components/MapLayer/components/BoundaryLayer/index.js.map +1 -1
  91. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.js +59 -34
  92. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.js.map +1 -1
  93. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.js +99 -89
  94. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.js.map +1 -1
  95. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.js +9 -14
  96. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.js.map +1 -1
  97. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/index.js +62 -69
  98. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/index.js.map +1 -1
  99. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.js +0 -1
  100. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js +31466 -0
  101. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js.map +1 -0
  102. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.js +43 -43
  103. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.js.map +1 -1
  104. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.js +34 -31
  105. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.js.map +1 -1
  106. package/dist/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.js +6 -8
  107. package/dist/components/Map/components/MapLayer/components/LegendArea/index.js +46 -57
  108. package/dist/components/Map/components/MapLayer/components/LegendArea/index.js.map +1 -1
  109. package/dist/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.js +38 -30
  110. package/dist/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.js.map +1 -1
  111. package/dist/components/Map/components/MapLayer/components/PointLayer/hooks/index.js +5 -7
  112. package/dist/components/Map/components/MapLayer/components/PointLayer/hooks/index.js.map +1 -1
  113. package/dist/components/Map/components/MapLayer/components/PointLayer/index.js +21 -28
  114. package/dist/components/Map/components/MapLayer/components/PointLayer/index.js.map +1 -1
  115. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.js +39 -13
  116. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.js.map +1 -1
  117. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.js +40 -32
  118. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.js.map +1 -1
  119. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.js +13 -20
  120. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.js.map +1 -1
  121. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.js +17 -23
  122. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.js.map +1 -1
  123. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.js +30 -25
  124. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.js.map +1 -1
  125. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.js +17 -20
  126. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.js.map +1 -1
  127. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.js +15 -21
  128. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.js.map +1 -1
  129. package/dist/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.js +6 -8
  130. package/dist/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.js.map +1 -1
  131. package/dist/components/Map/components/MapLayer/components/ThematicLayer/index.js +16 -24
  132. package/dist/components/Map/components/MapLayer/components/ThematicLayer/index.js.map +1 -1
  133. package/dist/components/Map/components/MapLayer/components/ThematicLayer/styles/legends.css +56 -0
  134. package/dist/components/Map/components/MapLayer/components/ThematicLayer/styles/legends.css.map +1 -0
  135. package/dist/components/Map/components/MapLayer/index.js +10 -18
  136. package/dist/components/Map/components/MapLayer/index.js.map +1 -1
  137. package/dist/components/Map/components/MapLayer/interfaces/index.js +7 -4
  138. package/dist/components/Map/components/MapLayer/interfaces/index.js.map +1 -1
  139. package/dist/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.js +59 -63
  140. package/dist/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.js.map +1 -1
  141. package/dist/components/Map/components/MapProvider/components/MapLayerProvider/index.js +30 -36
  142. package/dist/components/Map/components/MapProvider/components/MapLayerProvider/index.js.map +1 -1
  143. package/dist/components/Map/components/MapProvider/hooks/index.js +6 -10
  144. package/dist/components/Map/components/MapProvider/hooks/index.js.map +1 -1
  145. package/dist/components/Map/components/MapProvider/index.js +25 -31
  146. package/dist/components/Map/components/MapProvider/index.js.map +1 -1
  147. package/dist/components/Map/components/MapUpdater/index.js +5 -7
  148. package/dist/components/Map/components/MapUpdater/index.js.map +1 -1
  149. package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.js +15 -21
  150. package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.js.map +1 -1
  151. package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.stories.js +5 -10
  152. package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.js +53 -60
  153. package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.js.map +1 -1
  154. package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.stories.js +7 -12
  155. package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.js +21 -15
  156. package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.js.map +1 -1
  157. package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.js +1 -4
  158. package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.js +22 -30
  159. package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.js.map +1 -1
  160. package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.js +18 -21
  161. package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.js.map +1 -1
  162. package/dist/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.js +23 -30
  163. package/dist/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.js.map +1 -1
  164. package/dist/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.js +16 -22
  165. package/dist/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.js +16 -22
  166. package/dist/components/Map/components/ThematicLayerConfiguration/components/RadiusField.js +16 -22
  167. package/dist/components/Map/components/ThematicLayerConfiguration/components/TypeField.js +18 -24
  168. package/dist/components/Map/components/ThematicLayerConfiguration/index.js +3 -26
  169. package/dist/components/Map/components/ThematicLayerConfiguration/index.js.map +1 -1
  170. package/dist/components/Map/components/ThematicLayerConfiguration/types/index.js +0 -1
  171. package/dist/components/Map/constants/colors.js +1 -4
  172. package/dist/components/Map/constants/legendSet.js +1 -3
  173. package/dist/components/Map/hooks/map.js +17 -21
  174. package/dist/components/Map/hooks/map.js.map +1 -1
  175. package/dist/components/Map/index.js +5 -40
  176. package/dist/components/Map/index.js.map +1 -1
  177. package/dist/components/Map/interfaces/index.js +0 -1
  178. package/dist/components/Map/state/index.js +5 -9
  179. package/dist/components/Map/state/index.js.map +1 -1
  180. package/dist/components/Map/utils/colors.js +18 -22
  181. package/dist/components/Map/utils/colors.js.map +1 -1
  182. package/dist/components/Map/utils/helpers.js +3 -11
  183. package/dist/components/Map/utils/map.js +25 -24
  184. package/dist/components/Map/utils/map.js.map +1 -1
  185. package/dist/components/SingleValueContainer/SingleValueContainer.stories.js +3 -11
  186. package/dist/components/SingleValueContainer/SingleValueVisualizer.js +17 -35
  187. package/dist/components/SingleValueContainer/SingleValueVisualizer.js.map +1 -1
  188. package/dist/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.js +14 -21
  189. package/dist/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.js.map +1 -1
  190. package/dist/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.js +7 -13
  191. package/dist/components/SingleValueContainer/index.js +3 -19
  192. package/dist/components/SingleValueContainer/index.js.map +1 -1
  193. package/dist/components/SingleValueContainer/types/props.js +0 -1
  194. package/dist/components/Visualization/components/AnalyticsDataProvider/index.js +50 -26
  195. package/dist/components/Visualization/components/AnalyticsDataProvider/index.js.map +1 -1
  196. package/dist/components/Visualization/components/DimensionsProvider/index.js +13 -18
  197. package/dist/components/Visualization/components/LayoutProvider/index.js +11 -14
  198. package/dist/components/Visualization/components/LayoutProvider/index.js.map +1 -1
  199. package/dist/components/Visualization/components/VisualizationDimensionSelector/index.js +30 -36
  200. package/dist/components/Visualization/components/VisualizationDimensionSelector/index.js.map +1 -1
  201. package/dist/components/Visualization/components/VisualizationProvider/index.js +14 -10
  202. package/dist/components/Visualization/components/VisualizationProvider/index.js.map +1 -1
  203. package/dist/components/Visualization/components/VisualizationSelector/index.js +46 -57
  204. package/dist/components/Visualization/components/VisualizationSelector/index.js.map +1 -1
  205. package/dist/components/Visualization/components/VisualizationTypeProvider/index.js +16 -19
  206. package/dist/components/Visualization/components/VisualizationTypeProvider/index.js.map +1 -1
  207. package/dist/components/Visualization/components/VisualizationTypeSelector/index.js +37 -27
  208. package/dist/components/Visualization/components/VisualizationTypeSelector/index.js.map +1 -1
  209. package/dist/components/Visualization/index.js +27 -33
  210. package/dist/components/Visualization/index.js.map +1 -1
  211. package/dist/index.js +6 -47
  212. package/dist/index.js.map +1 -1
  213. package/dist/types/components/ChartAnalytics/DHIS2Chart.d.ts +4 -4
  214. package/dist/types/components/ChartAnalytics/DHIS2Chart.d.ts.map +1 -1
  215. package/dist/types/components/ChartAnalytics/components/DownloadMenu/components/Menu.d.ts +2 -2
  216. package/dist/types/components/ChartAnalytics/components/DownloadMenu/components/Menu.d.ts.map +1 -1
  217. package/dist/types/components/ChartAnalytics/components/DownloadMenu/index.d.ts +2 -2
  218. package/dist/types/components/ChartAnalytics/components/DownloadMenu/index.d.ts.map +1 -1
  219. package/dist/types/components/ChartAnalytics/hooks/useChart.d.ts +1 -1
  220. package/dist/types/components/ChartAnalytics/hooks/useChart.d.ts.map +1 -1
  221. package/dist/types/components/ChartAnalytics/index.d.ts +1 -1
  222. package/dist/types/components/ChartAnalytics/index.d.ts.map +1 -1
  223. package/dist/types/components/ChartAnalytics/models/bar.d.ts +1 -1
  224. package/dist/types/components/ChartAnalytics/models/bar.d.ts.map +1 -1
  225. package/dist/types/components/ChartAnalytics/models/column.d.ts +1 -1
  226. package/dist/types/components/ChartAnalytics/models/column.d.ts.map +1 -1
  227. package/dist/types/components/ChartAnalytics/models/index.d.ts +1 -1
  228. package/dist/types/components/ChartAnalytics/models/index.d.ts.map +1 -1
  229. package/dist/types/components/ChartAnalytics/models/line.d.ts +1 -1
  230. package/dist/types/components/ChartAnalytics/models/line.d.ts.map +1 -1
  231. package/dist/types/components/ChartAnalytics/models/multi-series.d.ts +1 -1
  232. package/dist/types/components/ChartAnalytics/models/multi-series.d.ts.map +1 -1
  233. package/dist/types/components/ChartAnalytics/models/pie.d.ts +1 -1
  234. package/dist/types/components/ChartAnalytics/models/pie.d.ts.map +1 -1
  235. package/dist/types/components/ChartAnalytics/services/export.d.ts.map +1 -1
  236. package/dist/types/components/ChartAnalytics/utils/chart.d.ts +2 -2
  237. package/dist/types/components/ChartAnalytics/utils/chart.d.ts.map +1 -1
  238. package/dist/types/components/CircularProgressDashboard/CircularProgressIndicator.d.ts +2 -2
  239. package/dist/types/components/CircularProgressDashboard/CircularProgressIndicator.d.ts.map +1 -1
  240. package/dist/types/components/CircularProgressDashboard/index.d.ts +2 -2
  241. package/dist/types/components/CircularProgressDashboard/index.d.ts.map +1 -1
  242. package/dist/types/components/DHIS2PivotTable/DHIS2PivotTable.d.ts +2 -2
  243. package/dist/types/components/DHIS2PivotTable/DHIS2PivotTable.d.ts.map +1 -1
  244. package/dist/types/components/DHIS2PivotTable/components/TableHeaders/index.d.ts +1 -1
  245. package/dist/types/components/DHIS2PivotTable/components/TableHeaders/index.d.ts.map +1 -1
  246. package/dist/types/components/DHIS2PivotTable/index.d.ts +2 -2
  247. package/dist/types/components/DHIS2PivotTable/index.d.ts.map +1 -1
  248. package/dist/types/components/DHIS2PivotTable/services/engine.d.ts +1 -1
  249. package/dist/types/components/DHIS2PivotTable/services/engine.d.ts.map +1 -1
  250. package/dist/types/components/DHIS2PivotTable/state/engine.d.ts +2 -2
  251. package/dist/types/components/DHIS2PivotTable/state/engine.d.ts.map +1 -1
  252. package/dist/types/components/Map/DHIS2Map.d.ts +1 -1
  253. package/dist/types/components/Map/DHIS2Map.d.ts.map +1 -1
  254. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.d.ts +2 -2
  255. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.d.ts.map +1 -1
  256. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.d.ts +1 -1
  257. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.d.ts.map +1 -1
  258. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.d.ts +1 -1
  259. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.d.ts.map +1 -1
  260. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/Name.d.ts +1 -1
  261. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/Name.d.ts.map +1 -1
  262. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.d.ts +1 -1
  263. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.d.ts.map +1 -1
  264. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.d.ts +1 -1
  265. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.d.ts.map +1 -1
  266. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.d.ts +1 -1
  267. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.d.ts.map +1 -1
  268. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/hooks/data.d.ts +1 -1
  269. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/hooks/data.d.ts.map +1 -1
  270. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/index.d.ts +2 -2
  271. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/index.d.ts.map +1 -1
  272. package/dist/types/components/Map/components/MapArea/index.d.ts +1 -1
  273. package/dist/types/components/Map/components/MapArea/index.d.ts.map +1 -1
  274. package/dist/types/components/Map/components/MapControls/index.d.ts +2 -2
  275. package/dist/types/components/Map/components/MapControls/index.d.ts.map +1 -1
  276. package/dist/types/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.d.ts +1 -1
  277. package/dist/types/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.d.ts.map +1 -1
  278. package/dist/types/components/Map/components/MapLayer/components/BoundaryLayer/index.d.ts +2 -2
  279. package/dist/types/components/Map/components/MapLayer/components/BoundaryLayer/index.d.ts.map +1 -1
  280. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.d.ts +2 -2
  281. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.d.ts.map +1 -1
  282. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.d.ts +1 -1
  283. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.d.ts.map +1 -1
  284. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.d.ts +2 -2
  285. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.d.ts.map +1 -1
  286. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/index.d.ts +1 -1
  287. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/index.d.ts.map +1 -1
  288. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.d.ts +1 -1
  289. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.d.ts.map +1 -1
  290. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.d.ts +2 -2
  291. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.d.ts.map +1 -1
  292. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.d.ts +2 -2
  293. package/dist/types/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.d.ts.map +1 -1
  294. package/dist/types/components/Map/components/MapLayer/components/LegendArea/index.d.ts +3 -3
  295. package/dist/types/components/Map/components/MapLayer/components/LegendArea/index.d.ts.map +1 -1
  296. package/dist/types/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.d.ts.map +1 -1
  297. package/dist/types/components/Map/components/MapLayer/components/PointLayer/hooks/index.d.ts +1 -1
  298. package/dist/types/components/Map/components/MapLayer/components/PointLayer/hooks/index.d.ts.map +1 -1
  299. package/dist/types/components/Map/components/MapLayer/components/PointLayer/index.d.ts +1 -1
  300. package/dist/types/components/Map/components/MapLayer/components/PointLayer/index.d.ts.map +1 -1
  301. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.d.ts +1 -1
  302. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.d.ts.map +1 -1
  303. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.d.ts +2 -2
  304. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.d.ts.map +1 -1
  305. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.d.ts +1 -1
  306. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.d.ts.map +1 -1
  307. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.d.ts +2 -2
  308. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.d.ts.map +1 -1
  309. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.d.ts +1 -1
  310. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.d.ts.map +1 -1
  311. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.d.ts +4 -4
  312. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.d.ts.map +1 -1
  313. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.d.ts +2 -2
  314. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.d.ts.map +1 -1
  315. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.d.ts +1 -1
  316. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.d.ts.map +1 -1
  317. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/index.d.ts +1 -1
  318. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/index.d.ts.map +1 -1
  319. package/dist/types/components/Map/components/MapLayer/index.d.ts +2 -2
  320. package/dist/types/components/Map/components/MapLayer/index.d.ts.map +1 -1
  321. package/dist/types/components/Map/components/MapLayer/interfaces/index.d.ts +4 -4
  322. package/dist/types/components/Map/components/MapLayer/interfaces/index.d.ts.map +1 -1
  323. package/dist/types/components/Map/components/MapProvider/components/MapLayerProvider/index.d.ts +2 -2
  324. package/dist/types/components/Map/components/MapProvider/components/MapLayerProvider/index.d.ts.map +1 -1
  325. package/dist/types/components/Map/components/MapProvider/hooks/index.d.ts +3 -3
  326. package/dist/types/components/Map/components/MapProvider/index.d.ts +2 -2
  327. package/dist/types/components/Map/components/MapProvider/index.d.ts.map +1 -1
  328. package/dist/types/components/Map/components/MapUpdater/index.d.ts +1 -1
  329. package/dist/types/components/Map/components/MapUpdater/index.d.ts.map +1 -1
  330. package/dist/types/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.d.ts +2 -2
  331. package/dist/types/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.d.ts.map +1 -1
  332. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.d.ts +1 -1
  333. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.d.ts.map +1 -1
  334. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.d.ts +1 -1
  335. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.d.ts.map +1 -1
  336. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.d.ts +1 -1
  337. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.d.ts.map +1 -1
  338. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.d.ts +1 -1
  339. package/dist/types/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.d.ts.map +1 -1
  340. package/dist/types/components/Map/components/ThematicLayerConfiguration/index.d.ts +3 -3
  341. package/dist/types/components/Map/components/ThematicLayerConfiguration/index.d.ts.map +1 -1
  342. package/dist/types/components/Map/hooks/map.d.ts.map +1 -1
  343. package/dist/types/components/Map/index.d.ts +5 -5
  344. package/dist/types/components/Map/index.d.ts.map +1 -1
  345. package/dist/types/components/Map/interfaces/index.d.ts +2 -2
  346. package/dist/types/components/Map/interfaces/index.d.ts.map +1 -1
  347. package/dist/types/components/Map/state/index.d.ts +2 -2
  348. package/dist/types/components/Map/state/index.d.ts.map +1 -1
  349. package/dist/types/components/Map/utils/colors.d.ts +1 -1
  350. package/dist/types/components/Map/utils/colors.d.ts.map +1 -1
  351. package/dist/types/components/Map/utils/map.d.ts.map +1 -1
  352. package/dist/types/components/SingleValueContainer/SingleValueVisualizer.d.ts +3 -3
  353. package/dist/types/components/SingleValueContainer/SingleValueVisualizer.d.ts.map +1 -1
  354. package/dist/types/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.d.ts +1 -1
  355. package/dist/types/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.d.ts.map +1 -1
  356. package/dist/types/components/SingleValueContainer/index.d.ts +3 -2
  357. package/dist/types/components/SingleValueContainer/index.d.ts.map +1 -1
  358. package/dist/types/components/Visualization/components/AnalyticsDataProvider/index.d.ts +1 -1
  359. package/dist/types/components/Visualization/components/AnalyticsDataProvider/index.d.ts.map +1 -1
  360. package/dist/types/components/Visualization/components/LayoutProvider/index.d.ts +2 -2
  361. package/dist/types/components/Visualization/components/LayoutProvider/index.d.ts.map +1 -1
  362. package/dist/types/components/Visualization/components/VisualizationDimensionSelector/index.d.ts +1 -1
  363. package/dist/types/components/Visualization/components/VisualizationDimensionSelector/index.d.ts.map +1 -1
  364. package/dist/types/components/Visualization/components/VisualizationProvider/index.d.ts +4 -4
  365. package/dist/types/components/Visualization/components/VisualizationProvider/index.d.ts.map +1 -1
  366. package/dist/types/components/Visualization/components/VisualizationSelector/index.d.ts +10 -10
  367. package/dist/types/components/Visualization/components/VisualizationSelector/index.d.ts.map +1 -1
  368. package/dist/types/components/Visualization/components/VisualizationTypeProvider/index.d.ts +2 -2
  369. package/dist/types/components/Visualization/components/VisualizationTypeProvider/index.d.ts.map +1 -1
  370. package/dist/types/components/Visualization/components/VisualizationTypeSelector/index.d.ts +1 -1
  371. package/dist/types/components/Visualization/components/VisualizationTypeSelector/index.d.ts.map +1 -1
  372. package/dist/types/components/Visualization/index.d.ts +6 -6
  373. package/dist/types/components/Visualization/index.d.ts.map +1 -1
  374. package/dist/types/index.d.ts +6 -6
  375. package/dist/types/index.d.ts.map +1 -1
  376. package/package.json +5 -4
  377. package/dist/components/ChartAnalytics/ChartAnalytics.stories.mjs +0 -254
  378. package/dist/components/ChartAnalytics/ChartAnalytics.stories.mjs.map +0 -1
  379. package/dist/components/ChartAnalytics/DHIS2Chart.mjs +0 -36
  380. package/dist/components/ChartAnalytics/DHIS2Chart.mjs.map +0 -1
  381. package/dist/components/ChartAnalytics/components/DownloadMenu/components/Menu.mjs +0 -52
  382. package/dist/components/ChartAnalytics/components/DownloadMenu/components/Menu.mjs.map +0 -1
  383. package/dist/components/ChartAnalytics/components/DownloadMenu/constants/menu.mjs +0 -42
  384. package/dist/components/ChartAnalytics/components/DownloadMenu/constants/menu.mjs.map +0 -1
  385. package/dist/components/ChartAnalytics/components/DownloadMenu/index.mjs +0 -65
  386. package/dist/components/ChartAnalytics/components/DownloadMenu/index.mjs.map +0 -1
  387. package/dist/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.mjs +0 -3
  388. package/dist/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.mjs.map +0 -1
  389. package/dist/components/ChartAnalytics/hooks/useChart.mjs +0 -43
  390. package/dist/components/ChartAnalytics/hooks/useChart.mjs.map +0 -1
  391. package/dist/components/ChartAnalytics/index.mjs +0 -3
  392. package/dist/components/ChartAnalytics/index.mjs.map +0 -1
  393. package/dist/components/ChartAnalytics/models/bar.mjs +0 -21
  394. package/dist/components/ChartAnalytics/models/bar.mjs.map +0 -1
  395. package/dist/components/ChartAnalytics/models/column.mjs +0 -48
  396. package/dist/components/ChartAnalytics/models/column.mjs.map +0 -1
  397. package/dist/components/ChartAnalytics/models/index.mjs +0 -117
  398. package/dist/components/ChartAnalytics/models/index.mjs.map +0 -1
  399. package/dist/components/ChartAnalytics/models/line.mjs +0 -31
  400. package/dist/components/ChartAnalytics/models/line.mjs.map +0 -1
  401. package/dist/components/ChartAnalytics/models/multi-series.mjs +0 -99
  402. package/dist/components/ChartAnalytics/models/multi-series.mjs.map +0 -1
  403. package/dist/components/ChartAnalytics/models/pie.mjs +0 -51
  404. package/dist/components/ChartAnalytics/models/pie.mjs.map +0 -1
  405. package/dist/components/ChartAnalytics/services/export.mjs +0 -35
  406. package/dist/components/ChartAnalytics/services/export.mjs.map +0 -1
  407. package/dist/components/ChartAnalytics/types/props.mjs +0 -3
  408. package/dist/components/ChartAnalytics/types/props.mjs.map +0 -1
  409. package/dist/components/ChartAnalytics/utils/chart.mjs +0 -130
  410. package/dist/components/ChartAnalytics/utils/chart.mjs.map +0 -1
  411. package/dist/components/CircularProgressDashboard/CircularProgressIndicator.mjs +0 -66
  412. package/dist/components/CircularProgressDashboard/CircularProgressIndicator.mjs.map +0 -1
  413. package/dist/components/CircularProgressDashboard/CircularProgressIndicator.stories.mjs +0 -42
  414. package/dist/components/CircularProgressDashboard/CircularProgressIndicator.stories.mjs.map +0 -1
  415. package/dist/components/CircularProgressDashboard/index.mjs +0 -4
  416. package/dist/components/CircularProgressDashboard/index.mjs.map +0 -1
  417. package/dist/components/CircularProgressDashboard/types/props.mjs +0 -3
  418. package/dist/components/CircularProgressDashboard/types/props.mjs.map +0 -1
  419. package/dist/components/DHIS2PivotTable/DHIS2PivotTable.mjs +0 -26
  420. package/dist/components/DHIS2PivotTable/DHIS2PivotTable.mjs.map +0 -1
  421. package/dist/components/DHIS2PivotTable/DHIS2PivotTable.stories.mjs +0 -30
  422. package/dist/components/DHIS2PivotTable/DHIS2PivotTable.stories.mjs.map +0 -1
  423. package/dist/components/DHIS2PivotTable/components/Table/index.mjs +0 -10
  424. package/dist/components/DHIS2PivotTable/components/Table/index.mjs.map +0 -1
  425. package/dist/components/DHIS2PivotTable/components/TableBody/index.mjs +0 -106
  426. package/dist/components/DHIS2PivotTable/components/TableBody/index.mjs.map +0 -1
  427. package/dist/components/DHIS2PivotTable/components/TableHeaders/index.mjs +0 -94
  428. package/dist/components/DHIS2PivotTable/components/TableHeaders/index.mjs.map +0 -1
  429. package/dist/components/DHIS2PivotTable/index.mjs +0 -4
  430. package/dist/components/DHIS2PivotTable/index.mjs.map +0 -1
  431. package/dist/components/DHIS2PivotTable/interfaces/index.mjs +0 -3
  432. package/dist/components/DHIS2PivotTable/interfaces/index.mjs.map +0 -1
  433. package/dist/components/DHIS2PivotTable/services/engine.mjs +0 -93
  434. package/dist/components/DHIS2PivotTable/services/engine.mjs.map +0 -1
  435. package/dist/components/DHIS2PivotTable/state/engine.mjs +0 -17
  436. package/dist/components/DHIS2PivotTable/state/engine.mjs.map +0 -1
  437. package/dist/components/Map/DHIS2Map.mjs +0 -65
  438. package/dist/components/Map/DHIS2Map.mjs.map +0 -1
  439. package/dist/components/Map/DHIS2Map.stories.mjs +0 -366
  440. package/dist/components/Map/DHIS2Map.stories.mjs.map +0 -1
  441. package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.mjs +0 -41
  442. package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.mjs.map +0 -1
  443. package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.stories.mjs +0 -34
  444. package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.stories.mjs.map +0 -1
  445. package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.mjs +0 -26
  446. package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.mjs.map +0 -1
  447. package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.stories.mjs +0 -21
  448. package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.stories.mjs.map +0 -1
  449. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.mjs +0 -67
  450. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/AggregationSelector.mjs.map +0 -1
  451. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.mjs +0 -134
  452. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.mjs.map +0 -1
  453. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/Name.mjs +0 -44
  454. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/Name.mjs.map +0 -1
  455. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.mjs +0 -67
  456. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.mjs.map +0 -1
  457. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.mjs +0 -24
  458. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.mjs.map +0 -1
  459. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.mjs +0 -67
  460. package/dist/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.mjs.map +0 -1
  461. package/dist/components/Map/components/EarthEngineLayerConfiguration/hooks/data.mjs +0 -45
  462. package/dist/components/Map/components/EarthEngineLayerConfiguration/hooks/data.mjs.map +0 -1
  463. package/dist/components/Map/components/EarthEngineLayerConfiguration/index.mjs +0 -4
  464. package/dist/components/Map/components/EarthEngineLayerConfiguration/index.mjs.map +0 -1
  465. package/dist/components/Map/components/MapArea/index.mjs +0 -85
  466. package/dist/components/Map/components/MapArea/index.mjs.map +0 -1
  467. package/dist/components/Map/components/MapArea/interfaces/index.mjs +0 -3
  468. package/dist/components/Map/components/MapArea/interfaces/index.mjs.map +0 -1
  469. package/dist/components/Map/components/MapControls/components/CustomControl/index.mjs +0 -16
  470. package/dist/components/Map/components/MapControls/components/CustomControl/index.mjs.map +0 -1
  471. package/dist/components/Map/components/MapControls/components/DownloadControl/index.mjs +0 -15
  472. package/dist/components/Map/components/MapControls/components/DownloadControl/index.mjs.map +0 -1
  473. package/dist/components/Map/components/MapControls/components/FullscreenControl/index.mjs +0 -13
  474. package/dist/components/Map/components/MapControls/components/FullscreenControl/index.mjs.map +0 -1
  475. package/dist/components/Map/components/MapControls/index.mjs +0 -23
  476. package/dist/components/Map/components/MapControls/index.mjs.map +0 -1
  477. package/dist/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.mjs +0 -10
  478. package/dist/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.mjs.map +0 -1
  479. package/dist/components/Map/components/MapLayer/components/BoundaryLayer/index.mjs +0 -52
  480. package/dist/components/Map/components/MapLayer/components/BoundaryLayer/index.mjs.map +0 -1
  481. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.mjs +0 -65
  482. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.mjs.map +0 -1
  483. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.mjs +0 -439
  484. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.mjs.map +0 -1
  485. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.mjs +0 -32
  486. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.mjs.map +0 -1
  487. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/index.mjs +0 -197
  488. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/index.mjs.map +0 -1
  489. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.mjs +0 -3
  490. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.mjs.map +0 -1
  491. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.mjs +0 -359
  492. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.mjs.map +0 -1
  493. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.mjs +0 -82
  494. package/dist/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.mjs.map +0 -1
  495. package/dist/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.mjs +0 -17
  496. package/dist/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.mjs.map +0 -1
  497. package/dist/components/Map/components/MapLayer/components/LegendArea/index.mjs +0 -179
  498. package/dist/components/Map/components/MapLayer/components/LegendArea/index.mjs.map +0 -1
  499. package/dist/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.mjs +0 -78
  500. package/dist/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.mjs.map +0 -1
  501. package/dist/components/Map/components/MapLayer/components/PointLayer/hooks/index.mjs +0 -11
  502. package/dist/components/Map/components/MapLayer/components/PointLayer/hooks/index.mjs.map +0 -1
  503. package/dist/components/Map/components/MapLayer/components/PointLayer/index.mjs +0 -48
  504. package/dist/components/Map/components/MapLayer/components/PointLayer/index.mjs.map +0 -1
  505. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.mjs +0 -36
  506. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.mjs.map +0 -1
  507. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.mjs +0 -111
  508. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.mjs.map +0 -1
  509. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.mjs +0 -41
  510. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.mjs.map +0 -1
  511. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.mjs +0 -50
  512. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.mjs.map +0 -1
  513. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.mjs +0 -42
  514. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.mjs.map +0 -1
  515. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.mjs +0 -37
  516. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.mjs.map +0 -1
  517. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.mjs +0 -40
  518. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.mjs.map +0 -1
  519. package/dist/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.mjs +0 -12
  520. package/dist/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.mjs.map +0 -1
  521. package/dist/components/Map/components/MapLayer/components/ThematicLayer/index.mjs +0 -55
  522. package/dist/components/Map/components/MapLayer/components/ThematicLayer/index.mjs.map +0 -1
  523. package/dist/components/Map/components/MapLayer/index.mjs +0 -32
  524. package/dist/components/Map/components/MapLayer/index.mjs.map +0 -1
  525. package/dist/components/Map/components/MapLayer/interfaces/index.mjs +0 -5
  526. package/dist/components/Map/components/MapLayer/interfaces/index.mjs.map +0 -1
  527. package/dist/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.mjs +0 -405
  528. package/dist/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.mjs.map +0 -1
  529. package/dist/components/Map/components/MapProvider/components/MapLayerProvider/index.mjs +0 -115
  530. package/dist/components/Map/components/MapProvider/components/MapLayerProvider/index.mjs.map +0 -1
  531. package/dist/components/Map/components/MapProvider/hooks/index.mjs +0 -16
  532. package/dist/components/Map/components/MapProvider/hooks/index.mjs.map +0 -1
  533. package/dist/components/Map/components/MapProvider/index.mjs +0 -95
  534. package/dist/components/Map/components/MapProvider/index.mjs.map +0 -1
  535. package/dist/components/Map/components/MapUpdater/index.mjs +0 -11
  536. package/dist/components/Map/components/MapUpdater/index.mjs.map +0 -1
  537. package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.mjs +0 -41
  538. package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.mjs.map +0 -1
  539. package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.stories.mjs +0 -24
  540. package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.stories.mjs.map +0 -1
  541. package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.mjs +0 -174
  542. package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.mjs.map +0 -1
  543. package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.stories.mjs +0 -21
  544. package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.stories.mjs.map +0 -1
  545. package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.mjs +0 -24
  546. package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.mjs.map +0 -1
  547. package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.mjs +0 -436
  548. package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.mjs.map +0 -1
  549. package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.mjs +0 -71
  550. package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.mjs.map +0 -1
  551. package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.mjs +0 -74
  552. package/dist/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.mjs.map +0 -1
  553. package/dist/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.mjs +0 -57
  554. package/dist/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.mjs.map +0 -1
  555. package/dist/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.mjs +0 -44
  556. package/dist/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.mjs.map +0 -1
  557. package/dist/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.mjs +0 -60
  558. package/dist/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.mjs.map +0 -1
  559. package/dist/components/Map/components/ThematicLayerConfiguration/components/RadiusField.mjs +0 -54
  560. package/dist/components/Map/components/ThematicLayerConfiguration/components/RadiusField.mjs.map +0 -1
  561. package/dist/components/Map/components/ThematicLayerConfiguration/components/TypeField.mjs +0 -63
  562. package/dist/components/Map/components/ThematicLayerConfiguration/components/TypeField.mjs.map +0 -1
  563. package/dist/components/Map/components/ThematicLayerConfiguration/index.mjs +0 -5
  564. package/dist/components/Map/components/ThematicLayerConfiguration/index.mjs.map +0 -1
  565. package/dist/components/Map/components/ThematicLayerConfiguration/types/index.mjs +0 -3
  566. package/dist/components/Map/components/ThematicLayerConfiguration/types/index.mjs.map +0 -1
  567. package/dist/components/Map/constants/colors.mjs +0 -436
  568. package/dist/components/Map/constants/colors.mjs.map +0 -1
  569. package/dist/components/Map/constants/legendSet.mjs +0 -23
  570. package/dist/components/Map/constants/legendSet.mjs.map +0 -1
  571. package/dist/components/Map/hooks/map.mjs +0 -44
  572. package/dist/components/Map/hooks/map.mjs.map +0 -1
  573. package/dist/components/Map/index.mjs +0 -7
  574. package/dist/components/Map/index.mjs.map +0 -1
  575. package/dist/components/Map/interfaces/index.mjs +0 -3
  576. package/dist/components/Map/interfaces/index.mjs.map +0 -1
  577. package/dist/components/Map/state/index.mjs +0 -18
  578. package/dist/components/Map/state/index.mjs.map +0 -1
  579. package/dist/components/Map/utils/colors.mjs +0 -77
  580. package/dist/components/Map/utils/colors.mjs.map +0 -1
  581. package/dist/components/Map/utils/helpers.mjs +0 -18
  582. package/dist/components/Map/utils/helpers.mjs.map +0 -1
  583. package/dist/components/Map/utils/map.mjs +0 -127
  584. package/dist/components/Map/utils/map.mjs.map +0 -1
  585. package/dist/components/SingleValueContainer/SingleValueContainer.stories.mjs +0 -145
  586. package/dist/components/SingleValueContainer/SingleValueContainer.stories.mjs.map +0 -1
  587. package/dist/components/SingleValueContainer/SingleValueVisualizer.mjs +0 -44
  588. package/dist/components/SingleValueContainer/SingleValueVisualizer.mjs.map +0 -1
  589. package/dist/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.mjs +0 -49
  590. package/dist/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.mjs.map +0 -1
  591. package/dist/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.mjs +0 -22
  592. package/dist/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.mjs.map +0 -1
  593. package/dist/components/SingleValueContainer/index.mjs +0 -4
  594. package/dist/components/SingleValueContainer/index.mjs.map +0 -1
  595. package/dist/components/SingleValueContainer/types/props.mjs +0 -3
  596. package/dist/components/SingleValueContainer/types/props.mjs.map +0 -1
  597. package/dist/components/Visualization/components/AnalyticsDataProvider/index.mjs +0 -67
  598. package/dist/components/Visualization/components/AnalyticsDataProvider/index.mjs.map +0 -1
  599. package/dist/components/Visualization/components/DimensionsProvider/index.mjs +0 -35
  600. package/dist/components/Visualization/components/DimensionsProvider/index.mjs.map +0 -1
  601. package/dist/components/Visualization/components/LayoutProvider/index.mjs +0 -17
  602. package/dist/components/Visualization/components/LayoutProvider/index.mjs.map +0 -1
  603. package/dist/components/Visualization/components/VisualizationDimensionSelector/index.mjs +0 -85
  604. package/dist/components/Visualization/components/VisualizationDimensionSelector/index.mjs.map +0 -1
  605. package/dist/components/Visualization/components/VisualizationProvider/index.mjs +0 -13
  606. package/dist/components/Visualization/components/VisualizationProvider/index.mjs.map +0 -1
  607. package/dist/components/Visualization/components/VisualizationSelector/index.mjs +0 -167
  608. package/dist/components/Visualization/components/VisualizationSelector/index.mjs.map +0 -1
  609. package/dist/components/Visualization/components/VisualizationTypeProvider/index.mjs +0 -23
  610. package/dist/components/Visualization/components/VisualizationTypeProvider/index.mjs.map +0 -1
  611. package/dist/components/Visualization/components/VisualizationTypeSelector/index.mjs +0 -39
  612. package/dist/components/Visualization/components/VisualizationTypeSelector/index.mjs.map +0 -1
  613. package/dist/components/Visualization/index.mjs +0 -113
  614. package/dist/components/Visualization/index.mjs.map +0 -1
  615. package/dist/index.mjs +0 -8
  616. package/dist/index.mjs.map +0 -1
@@ -1,134 +0,0 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { Controller } from 'react-hook-form';
3
- import { InputField, SingleSelectField, SingleSelectOption, Field } from '@dhis2/ui';
4
- import i18n from '@dhis2/d2-i18n';
5
- import { getColorClasses, getColorScale, defaultClasses, defaultColorScaleName, getColorPalette } from '../../../utils/colors';
6
- import ColorScaleSelect from '../../ThematicLayerConfiguration/components/ColorScaleSelect';
7
-
8
- function ColorConfig() {
9
- return /* @__PURE__ */ jsxs("div", { className: "column gap-16", children: [
10
- /* @__PURE__ */ jsxs("div", { className: "row gap-8", children: [
11
- /* @__PURE__ */ jsx(
12
- Controller,
13
- {
14
- render: ({ field, fieldState }) => /* @__PURE__ */ jsx(
15
- InputField,
16
- {
17
- ...field,
18
- error: Boolean(fieldState.error),
19
- validationText: fieldState.error?.message,
20
- value: field.value?.toString(),
21
- onChange: ({ value }) => {
22
- if (!value)
23
- return;
24
- field.onChange(parseInt(value));
25
- },
26
- label: i18n.t("Min"),
27
- type: "number"
28
- }
29
- ),
30
- name: "params.min"
31
- }
32
- ),
33
- /* @__PURE__ */ jsx(
34
- Controller,
35
- {
36
- render: ({ field, fieldState }) => /* @__PURE__ */ jsx(
37
- InputField,
38
- {
39
- ...field,
40
- error: Boolean(fieldState.error),
41
- validationText: fieldState.error?.message,
42
- value: field.value?.toString(),
43
- onChange: ({ value }) => {
44
- if (!value)
45
- return;
46
- field.onChange(parseInt(value));
47
- },
48
- label: i18n.t("Max"),
49
- type: "number"
50
- }
51
- ),
52
- name: "params.max"
53
- }
54
- ),
55
- /* @__PURE__ */ jsx(
56
- Controller,
57
- {
58
- name: "params.palette",
59
- render: ({ field, fieldState }) => {
60
- const palette = field.value;
61
- const scale = getColorClasses(palette);
62
- const colorClass = getColorScale(palette ?? "");
63
- const onChange = ({
64
- selected
65
- }) => {
66
- const palette2 = getColorPalette(
67
- colorClass,
68
- parseInt(selected)
69
- )?.join(",");
70
- field.onChange(palette2);
71
- };
72
- return /* @__PURE__ */ jsx(
73
- SingleSelectField,
74
- {
75
- validationText: fieldState.error?.message,
76
- error: Boolean(fieldState.error),
77
- selected: scale?.toString() ?? defaultClasses.toString(),
78
- label: i18n.t("Steps"),
79
- onChange,
80
- children: [3, 4, 5, 6, 7, 8, 9].map((value) => /* @__PURE__ */ jsx(
81
- SingleSelectOption,
82
- {
83
- label: `${value}`,
84
- value: value?.toString()
85
- },
86
- `${value}-classes-option`
87
- ))
88
- }
89
- );
90
- }
91
- }
92
- )
93
- ] }),
94
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
95
- Controller,
96
- {
97
- name: "params.palette",
98
- render: ({ field, fieldState }) => {
99
- const palette = field.value;
100
- const scale = getColorClasses(palette);
101
- const colorClass = getColorScale(palette ?? "");
102
- const onChange = (colorClass2) => {
103
- const palette2 = getColorPalette(
104
- colorClass2,
105
- scale
106
- )?.join(",");
107
- field.onChange(palette2);
108
- };
109
- return /* @__PURE__ */ jsx(
110
- Field,
111
- {
112
- error: Boolean(fieldState.error),
113
- validationText: fieldState.error?.message,
114
- label: i18n.t("Colors"),
115
- children: /* @__PURE__ */ jsx(
116
- ColorScaleSelect,
117
- {
118
- count: scale ?? defaultClasses,
119
- colorClass: colorClass ?? defaultColorScaleName,
120
- width: 300,
121
- onChange
122
- }
123
- )
124
- }
125
- );
126
- }
127
- }
128
- ) })
129
- ] });
130
- }
131
-
132
- export { ColorConfig };
133
- //# sourceMappingURL=out.js.map
134
- //# sourceMappingURL=ColorConfig.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../src/components/Map/components/EarthEngineLayerConfiguration/components/ColorConfig.tsx"],"names":["palette","colorClass"],"mappings":"AAqBG,SAGG,KAHH;AArBH,SAAS,kBAAkB;AAC3B;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACM;AACP,OAAO,UAAU;AACjB;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACM;AACP,OAAO,sBAAsB;AAGtB,SAAS,cAAc;AAC7B,SACC,qBAAC,SAAI,WAAU,iBACd;AAAA,yBAAC,SAAI,WAAU,aACd;AAAA;AAAA,QAAC;AAAA;AAAA,UACA,QAAQ,CAAC,EAAE,OAAO,WAAW,MAC5B;AAAA,YAAC;AAAA;AAAA,cACC,GAAG;AAAA,cACJ,OAAO,QAAQ,WAAW,KAAK;AAAA,cAC/B,gBAAgB,WAAW,OAAO;AAAA,cAClC,OAAO,MAAM,OAAO,SAAS;AAAA,cAC7B,UAAU,CAAC,EAAE,MAAM,MAA0B;AAC5C,oBAAI,CAAC;AAAO;AACZ,sBAAM,SAAS,SAAS,KAAK,CAAC;AAAA,cAC/B;AAAA,cACA,OAAO,KAAK,EAAE,KAAK;AAAA,cACnB,MAAK;AAAA;AAAA,UACN;AAAA,UAED,MAAM;AAAA;AAAA,MACP;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACA,QAAQ,CAAC,EAAE,OAAO,WAAW,MAC5B;AAAA,YAAC;AAAA;AAAA,cACC,GAAG;AAAA,cACJ,OAAO,QAAQ,WAAW,KAAK;AAAA,cAC/B,gBAAgB,WAAW,OAAO;AAAA,cAClC,OAAO,MAAM,OAAO,SAAS;AAAA,cAC7B,UAAU,CAAC,EAAE,MAAM,MAA0B;AAC5C,oBAAI,CAAC;AAAO;AACZ,sBAAM,SAAS,SAAS,KAAK,CAAC;AAAA,cAC/B;AAAA,cACA,OAAO,KAAK,EAAE,KAAK;AAAA,cACnB,MAAK;AAAA;AAAA,UACN;AAAA,UAED,MAAM;AAAA;AAAA,MACP;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACA,MAAK;AAAA,UACL,QAAQ,CAAC,EAAE,OAAO,WAAW,MAAM;AAClC,kBAAM,UAAU,MAAM;AACtB,kBAAM,QAAQ,gBAAgB,OAAO;AACrC,kBAAM,aAAa,cAAc,WAAW,EAAE;AAE9C,kBAAM,WAAW,CAAC;AAAA,cACjB;AAAA,YACD,MAEM;AACL,oBAAMA,WAAU;AAAA,gBACf;AAAA,gBACA,SAAS,QAAQ;AAAA,cAClB,GAAG,KAAK,GAAG;AACX,oBAAM,SAASA,QAAO;AAAA,YACvB;AAEA,mBACC;AAAA,cAAC;AAAA;AAAA,gBACA,gBAAgB,WAAW,OAAO;AAAA,gBAClC,OAAO,QAAQ,WAAW,KAAK;AAAA,gBAC/B,UACC,OAAO,SAAS,KAChB,eAAe,SAAS;AAAA,gBAEzB,OAAO,KAAK,EAAE,OAAO;AAAA,gBACrB;AAAA,gBAEC,WAAC,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,EAAE,IAAI,CAAC,UAC3B;AAAA,kBAAC;AAAA;AAAA,oBAEA,OAAO,GAAG,KAAK;AAAA,oBACf,OAAO,OAAO,SAAS;AAAA;AAAA,kBAFlB,GAAG,KAAK;AAAA,gBAGd,CACA;AAAA;AAAA,YACF;AAAA,UAEF;AAAA;AAAA,MACD;AAAA,OACD;AAAA,IACA,oBAAC,SACA;AAAA,MAAC;AAAA;AAAA,QACA,MAAK;AAAA,QACL,QAAQ,CAAC,EAAE,OAAO,WAAW,MAAM;AAClC,gBAAM,UAAU,MAAM;AACtB,gBAAM,QAAQ,gBAAgB,OAAO;AACrC,gBAAM,aAAa,cAAc,WAAW,EAAE;AAE9C,gBAAM,WAAW,CAACC,gBAAuB;AACxC,kBAAMD,WAAU;AAAA,cACfC;AAAA,cACA;AAAA,YACD,GAAG,KAAK,GAAG;AACX,kBAAM,SAASD,QAAO;AAAA,UACvB;AAEA,iBACC;AAAA,YAAC;AAAA;AAAA,cACA,OAAO,QAAQ,WAAW,KAAK;AAAA,cAC/B,gBAAgB,WAAW,OAAO;AAAA,cAClC,OAAO,KAAK,EAAE,QAAQ;AAAA,cAEtB;AAAA,gBAAC;AAAA;AAAA,kBACA,OAAO,SAAS;AAAA,kBAChB,YACC,cAAc;AAAA,kBAEf,OAAO;AAAA,kBACP;AAAA;AAAA,cACD;AAAA;AAAA,UACD;AAAA,QAEF;AAAA;AAAA,IACD,GACD;AAAA,KACD;AAEF","sourcesContent":["import { Controller } from \"react-hook-form\";\nimport {\n\tField,\n\tInputField,\n\tSingleSelectField,\n\tSingleSelectOption,\n} from \"@dhis2/ui\";\nimport i18n from \"@dhis2/d2-i18n\";\nimport {\n\tdefaultClasses,\n\tdefaultColorScaleName,\n\tgetColorClasses,\n\tgetColorPalette,\n\tgetColorScale,\n} from \"../../../utils/colors\";\nimport ColorScaleSelect from \"../../ThematicLayerConfiguration/components/ColorScaleSelect\";\nimport React from \"react\";\n\nexport function ColorConfig() {\n\treturn (\n\t\t<div className=\"column gap-16\">\n\t\t\t<div className=\"row gap-8\">\n\t\t\t\t<Controller\n\t\t\t\t\trender={({ field, fieldState }) => (\n\t\t\t\t\t\t<InputField\n\t\t\t\t\t\t\t{...field}\n\t\t\t\t\t\t\terror={Boolean(fieldState.error)}\n\t\t\t\t\t\t\tvalidationText={fieldState.error?.message}\n\t\t\t\t\t\t\tvalue={field.value?.toString()}\n\t\t\t\t\t\t\tonChange={({ value }: { value?: string }) => {\n\t\t\t\t\t\t\t\tif (!value) return;\n\t\t\t\t\t\t\t\tfield.onChange(parseInt(value));\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tlabel={i18n.t(\"Min\")}\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t\tname={\"params.min\"}\n\t\t\t\t/>\n\t\t\t\t<Controller\n\t\t\t\t\trender={({ field, fieldState }) => (\n\t\t\t\t\t\t<InputField\n\t\t\t\t\t\t\t{...field}\n\t\t\t\t\t\t\terror={Boolean(fieldState.error)}\n\t\t\t\t\t\t\tvalidationText={fieldState.error?.message}\n\t\t\t\t\t\t\tvalue={field.value?.toString()}\n\t\t\t\t\t\t\tonChange={({ value }: { value?: string }) => {\n\t\t\t\t\t\t\t\tif (!value) return;\n\t\t\t\t\t\t\t\tfield.onChange(parseInt(value));\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tlabel={i18n.t(\"Max\")}\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t\tname={\"params.max\"}\n\t\t\t\t/>\n\t\t\t\t<Controller\n\t\t\t\t\tname=\"params.palette\"\n\t\t\t\t\trender={({ field, fieldState }) => {\n\t\t\t\t\t\tconst palette = field.value;\n\t\t\t\t\t\tconst scale = getColorClasses(palette);\n\t\t\t\t\t\tconst colorClass = getColorScale(palette ?? \"\");\n\n\t\t\t\t\t\tconst onChange = ({\n\t\t\t\t\t\t\tselected,\n\t\t\t\t\t\t}: {\n\t\t\t\t\t\t\tselected: string;\n\t\t\t\t\t\t}) => {\n\t\t\t\t\t\t\tconst palette = getColorPalette(\n\t\t\t\t\t\t\t\tcolorClass as string,\n\t\t\t\t\t\t\t\tparseInt(selected),\n\t\t\t\t\t\t\t)?.join(\",\");\n\t\t\t\t\t\t\tfield.onChange(palette);\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<SingleSelectField\n\t\t\t\t\t\t\t\tvalidationText={fieldState.error?.message}\n\t\t\t\t\t\t\t\terror={Boolean(fieldState.error)}\n\t\t\t\t\t\t\t\tselected={\n\t\t\t\t\t\t\t\t\tscale?.toString() ??\n\t\t\t\t\t\t\t\t\tdefaultClasses.toString()\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tlabel={i18n.t(\"Steps\")}\n\t\t\t\t\t\t\t\tonChange={onChange}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{[3, 4, 5, 6, 7, 8, 9].map((value) => (\n\t\t\t\t\t\t\t\t\t<SingleSelectOption\n\t\t\t\t\t\t\t\t\t\tkey={`${value}-classes-option`}\n\t\t\t\t\t\t\t\t\t\tlabel={`${value}`}\n\t\t\t\t\t\t\t\t\t\tvalue={value?.toString()}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t</SingleSelectField>\n\t\t\t\t\t\t);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t<div>\n\t\t\t\t<Controller\n\t\t\t\t\tname=\"params.palette\"\n\t\t\t\t\trender={({ field, fieldState }) => {\n\t\t\t\t\t\tconst palette = field.value;\n\t\t\t\t\t\tconst scale = getColorClasses(palette);\n\t\t\t\t\t\tconst colorClass = getColorScale(palette ?? \"\");\n\n\t\t\t\t\t\tconst onChange = (colorClass: string) => {\n\t\t\t\t\t\t\tconst palette = getColorPalette(\n\t\t\t\t\t\t\t\tcolorClass,\n\t\t\t\t\t\t\t\tscale,\n\t\t\t\t\t\t\t)?.join(\",\");\n\t\t\t\t\t\t\tfield.onChange(palette);\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<Field\n\t\t\t\t\t\t\t\terror={Boolean(fieldState.error)}\n\t\t\t\t\t\t\t\tvalidationText={fieldState.error?.message}\n\t\t\t\t\t\t\t\tlabel={i18n.t(\"Colors\")}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<ColorScaleSelect\n\t\t\t\t\t\t\t\t\tcount={scale ?? defaultClasses}\n\t\t\t\t\t\t\t\t\tcolorClass={\n\t\t\t\t\t\t\t\t\t\tcolorClass ?? defaultColorScaleName\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\twidth={300}\n\t\t\t\t\t\t\t\t\tonChange={onChange}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</Field>\n\t\t\t\t\t\t);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n"]}
@@ -1,44 +0,0 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { useFormContext, Controller } from 'react-hook-form';
3
- import { useEffect } from 'react';
4
- import i18n from '@dhis2/d2-i18n';
5
- import { InputField } from '@dhis2/ui';
6
- import { useType } from '../hooks/data';
7
-
8
- function Name() {
9
- const config = useType();
10
- const { setValue } = useFormContext();
11
- useEffect(() => {
12
- setValue("name", config?.name);
13
- setValue("id", config?.id);
14
- }, [config]);
15
- return /* @__PURE__ */ jsx(
16
- Controller,
17
- {
18
- name: "name",
19
- rules: {
20
- required: i18n.t("Name is required")
21
- },
22
- render: ({ field, fieldState }) => /* @__PURE__ */ jsx(
23
- InputField,
24
- {
25
- label: i18n.t("Layer name"),
26
- type: "text",
27
- required: true,
28
- error: Boolean(fieldState.error),
29
- validationText: fieldState.error?.message,
30
- onChange: ({ value }) => {
31
- if (!value)
32
- return;
33
- field.onChange(value);
34
- },
35
- value: field.value
36
- }
37
- )
38
- }
39
- );
40
- }
41
-
42
- export { Name };
43
- //# sourceMappingURL=out.js.map
44
- //# sourceMappingURL=Name.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../src/components/Map/components/EarthEngineLayerConfiguration/components/Name.tsx"],"names":[],"mappings":"AAqBI;AArBJ,SAAS,YAAY,sBAAsB;AAC3C,SAAgB,iBAAiB;AACjC,OAAO,UAAU;AACjB,SAAS,kBAAkB;AAC3B,SAAS,eAAe;AAEjB,SAAS,OAAO;AACtB,QAAM,SAAS,QAAQ;AACvB,QAAM,EAAE,SAAS,IAAI,eAAe;AACpC,YAAU,MAAM;AACf,aAAS,QAAQ,QAAQ,IAAI;AAC7B,aAAS,MAAM,QAAQ,EAAE;AAAA,EAC1B,GAAG,CAAC,MAAM,CAAC;AAEX,SACC;AAAA,IAAC;AAAA;AAAA,MACA,MAAK;AAAA,MACL,OAAO;AAAA,QACN,UAAU,KAAK,EAAE,kBAAkB;AAAA,MACpC;AAAA,MACA,QAAQ,CAAC,EAAE,OAAO,WAAW,MAC5B;AAAA,QAAC;AAAA;AAAA,UACA,OAAO,KAAK,EAAE,YAAY;AAAA,UAC1B,MAAK;AAAA,UACL,UAAQ;AAAA,UACR,OAAO,QAAQ,WAAW,KAAK;AAAA,UAC/B,gBAAgB,WAAW,OAAO;AAAA,UAClC,UAAU,CAAC,EAAE,MAAM,MAA0B;AAC5C,gBAAI,CAAC;AAAO;AACZ,kBAAM,SAAS,KAAK;AAAA,UACrB;AAAA,UACA,OAAO,MAAM;AAAA;AAAA,MACd;AAAA;AAAA,EAEF;AAEF","sourcesContent":["import { Controller, useFormContext } from \"react-hook-form\";\nimport React, { useEffect } from \"react\";\nimport i18n from \"@dhis2/d2-i18n\";\nimport { InputField } from \"@dhis2/ui\";\nimport { useType } from \"../hooks/data\";\n\nexport function Name() {\n\tconst config = useType();\n\tconst { setValue } = useFormContext();\n\tuseEffect(() => {\n\t\tsetValue(\"name\", config?.name);\n\t\tsetValue(\"id\", config?.id);\n\t}, [config]);\n\n\treturn (\n\t\t<Controller\n\t\t\tname=\"name\"\n\t\t\trules={{\n\t\t\t\trequired: i18n.t(\"Name is required\"),\n\t\t\t}}\n\t\t\trender={({ field, fieldState }) => (\n\t\t\t\t<InputField\n\t\t\t\t\tlabel={i18n.t(\"Layer name\")}\n\t\t\t\t\ttype=\"text\"\n\t\t\t\t\trequired\n\t\t\t\t\terror={Boolean(fieldState.error)}\n\t\t\t\t\tvalidationText={fieldState.error?.message}\n\t\t\t\t\tonChange={({ value }: { value?: string }) => {\n\t\t\t\t\t\tif (!value) return;\n\t\t\t\t\t\tfield.onChange(value);\n\t\t\t\t\t}}\n\t\t\t\t\tvalue={field.value}\n\t\t\t\t/>\n\t\t\t)}\n\t\t/>\n\t);\n}\n"]}
@@ -1,67 +0,0 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
2
- import { useFormContext, Controller } from 'react-hook-form';
3
- import { useEffect } from 'react';
4
- import { isEmpty, head } from 'lodash';
5
- import { Center, SingleSelectField, SingleSelectOption, CircularLoader } from '@dhis2/ui';
6
- import i18n from '@dhis2/d2-i18n';
7
- import { useType, useDatasetInfo } from '../hooks/data';
8
-
9
- function PeriodSelector() {
10
- const config = useType();
11
- const { setValue, getValues } = useFormContext();
12
- const filters = config?.filters ?? [];
13
- const hasPeriodFilter = filters.includes("period");
14
- const { loading, error, periods } = useDatasetInfo(hasPeriodFilter, config);
15
- const initialPeriod = getValues("filters.period");
16
- useEffect(() => {
17
- if (!isEmpty(periods) && !initialPeriod) {
18
- setValue("filters.period", head(periods));
19
- }
20
- }, [periods]);
21
- if (!hasPeriodFilter) {
22
- return null;
23
- }
24
- if (error) {
25
- return /* @__PURE__ */ jsx("div", { style: { minWidth: "100%", minHeight: 100 }, children: /* @__PURE__ */ jsx(Center, { children: /* @__PURE__ */ jsx("p", { children: error?.message ?? error?.toString() }) }) });
26
- }
27
- return /* @__PURE__ */ jsx(
28
- Controller,
29
- {
30
- name: "filters.period",
31
- rules: {
32
- required: i18n.t("Period is required")
33
- },
34
- render: ({ field, fieldState }) => /* @__PURE__ */ jsxs("div", { style: { gap: 4 }, className: "row align-items-center", children: [
35
- /* @__PURE__ */ jsx("div", { style: { flex: 1 }, children: /* @__PURE__ */ jsx(
36
- SingleSelectField,
37
- {
38
- helpText: i18n.t(
39
- "Available periods are set by the source data"
40
- ),
41
- loading,
42
- filterable: true,
43
- label: i18n.t("Period"),
44
- required: true,
45
- error: Boolean(fieldState.error),
46
- validationText: fieldState.error?.message,
47
- onChange: ({ selected }) => field.onChange(parseInt(selected)),
48
- selected: periods?.includes(field.value) ? field.value?.toString() : void 0,
49
- children: periods?.map((period) => /* @__PURE__ */ jsx(
50
- SingleSelectOption,
51
- {
52
- value: period.toString(),
53
- label: period.toString()
54
- },
55
- `${period}-option`
56
- ))
57
- }
58
- ) }),
59
- loading && /* @__PURE__ */ jsx(CircularLoader, { extrasmall: true })
60
- ] })
61
- }
62
- );
63
- }
64
-
65
- export { PeriodSelector };
66
- //# sourceMappingURL=out.js.map
67
- //# sourceMappingURL=PeriodSelector.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../src/components/Map/components/EarthEngineLayerConfiguration/components/PeriodSelector.tsx"],"names":[],"mappings":"AAkCK,cAaD,YAbC;AAlCL,SAAS,YAAY,sBAAsB;AAC3C,SAAgB,iBAAiB;AACjC,SAAS,MAAM,eAAe;AAC9B;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACM;AACP,OAAO,UAAU;AACjB,SAAS,gBAAgB,eAAe;AAEjC,SAAS,iBAAiB;AAChC,QAAM,SAAS,QAAQ;AACvB,QAAM,EAAE,UAAU,UAAU,IAAI,eAAe;AAC/C,QAAM,UAAU,QAAQ,WAAW,CAAC;AACpC,QAAM,kBAAkB,QAAQ,SAAS,QAAQ;AACjD,QAAM,EAAE,SAAS,OAAO,QAAQ,IAAI,eAAe,iBAAiB,MAAM;AAC1E,QAAM,gBAAgB,UAAU,gBAAgB;AAEhD,YAAU,MAAM;AACf,QAAI,CAAC,QAAQ,OAAO,KAAK,CAAC,eAAe;AACxC,eAAS,kBAAkB,KAAK,OAAO,CAAC;AAAA,IACzC;AAAA,EACD,GAAG,CAAC,OAAO,CAAC;AAEZ,MAAI,CAAC,iBAAiB;AACrB,WAAO;AAAA,EACR;AAEA,MAAI,OAAO;AACV,WACC,oBAAC,SAAI,OAAO,EAAE,UAAU,QAAQ,WAAW,IAAI,GAC9C,8BAAC,UACA,8BAAC,OAAG,iBAAO,WAAW,OAAO,SAAS,GAAE,GACzC,GACD;AAAA,EAEF;AAEA,SACC;AAAA,IAAC;AAAA;AAAA,MACA,MAAK;AAAA,MACL,OAAO;AAAA,QACN,UAAU,KAAK,EAAE,oBAAoB;AAAA,MACtC;AAAA,MACA,QAAQ,CAAC,EAAE,OAAO,WAAW,MAC5B,qBAAC,SAAI,OAAO,EAAE,KAAK,EAAE,GAAG,WAAU,0BACjC;AAAA,4BAAC,SAAI,OAAO,EAAE,MAAM,EAAE,GACrB;AAAA,UAAC;AAAA;AAAA,YACA,UAAU,KAAK;AAAA,cACd;AAAA,YACD;AAAA,YACA;AAAA,YACA,YAAU;AAAA,YACV,OAAO,KAAK,EAAE,QAAQ;AAAA,YACtB,UAAQ;AAAA,YACR,OAAO,QAAQ,WAAW,KAAK;AAAA,YAC/B,gBAAgB,WAAW,OAAO;AAAA,YAClC,UAAU,CAAC,EAAE,SAAS,MACrB,MAAM,SAAS,SAAS,QAAQ,CAAC;AAAA,YAElC,UACC,SAAS,SAAS,MAAM,KAAK,IAC1B,MAAM,OAAO,SAAS,IACtB;AAAA,YAGH,mBAAS,IAAI,CAAC,WACd;AAAA,cAAC;AAAA;AAAA,gBAEA,OAAO,OAAO,SAAS;AAAA,gBACvB,OAAO,OAAO,SAAS;AAAA;AAAA,cAFlB,GAAG,MAAM;AAAA,YAGf,CACA;AAAA;AAAA,QACF,GACD;AAAA,QACC,WAAW,oBAAC,kBAAe,YAAU,MAAC;AAAA,SACxC;AAAA;AAAA,EAEF;AAEF","sourcesContent":["import { Controller, useFormContext } from \"react-hook-form\";\nimport React, { useEffect } from \"react\";\nimport { head, isEmpty } from \"lodash\";\nimport {\n\tCenter,\n\tCircularLoader,\n\tSingleSelectField,\n\tSingleSelectOption,\n} from \"@dhis2/ui\";\nimport i18n from \"@dhis2/d2-i18n\";\nimport { useDatasetInfo, useType } from \"../hooks/data\";\n\nexport function PeriodSelector() {\n\tconst config = useType();\n\tconst { setValue, getValues } = useFormContext();\n\tconst filters = config?.filters ?? [];\n\tconst hasPeriodFilter = filters.includes(\"period\");\n\tconst { loading, error, periods } = useDatasetInfo(hasPeriodFilter, config);\n\tconst initialPeriod = getValues(\"filters.period\");\n\n\tuseEffect(() => {\n\t\tif (!isEmpty(periods) && !initialPeriod) {\n\t\t\tsetValue(\"filters.period\", head(periods));\n\t\t}\n\t}, [periods]);\n\n\tif (!hasPeriodFilter) {\n\t\treturn null;\n\t}\n\n\tif (error) {\n\t\treturn (\n\t\t\t<div style={{ minWidth: \"100%\", minHeight: 100 }}>\n\t\t\t\t<Center>\n\t\t\t\t\t<p>{error?.message ?? error?.toString()}</p>\n\t\t\t\t</Center>\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<Controller\n\t\t\tname=\"filters.period\"\n\t\t\trules={{\n\t\t\t\trequired: i18n.t(\"Period is required\"),\n\t\t\t}}\n\t\t\trender={({ field, fieldState }) => (\n\t\t\t\t<div style={{ gap: 4 }} className=\"row align-items-center\">\n\t\t\t\t\t<div style={{ flex: 1 }}>\n\t\t\t\t\t\t<SingleSelectField\n\t\t\t\t\t\t\thelpText={i18n.t(\n\t\t\t\t\t\t\t\t\"Available periods are set by the source data\",\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\tloading={loading}\n\t\t\t\t\t\t\tfilterable\n\t\t\t\t\t\t\tlabel={i18n.t(\"Period\")}\n\t\t\t\t\t\t\trequired\n\t\t\t\t\t\t\terror={Boolean(fieldState.error)}\n\t\t\t\t\t\t\tvalidationText={fieldState.error?.message}\n\t\t\t\t\t\t\tonChange={({ selected }: { selected: string }) =>\n\t\t\t\t\t\t\t\tfield.onChange(parseInt(selected))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tselected={\n\t\t\t\t\t\t\t\tperiods?.includes(field.value)\n\t\t\t\t\t\t\t\t\t? field.value?.toString()\n\t\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{periods?.map((period: number) => (\n\t\t\t\t\t\t\t\t<SingleSelectOption\n\t\t\t\t\t\t\t\t\tkey={`${period}-option`}\n\t\t\t\t\t\t\t\t\tvalue={period.toString()}\n\t\t\t\t\t\t\t\t\tlabel={period.toString()}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</SingleSelectField>\n\t\t\t\t\t</div>\n\t\t\t\t\t{loading && <CircularLoader extrasmall />}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t/>\n\t);\n}\n"]}
@@ -1,24 +0,0 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
2
- import i18n from '@dhis2/d2-i18n';
3
- import { ColorConfig } from './ColorConfig';
4
- import { useType } from '../hooks/data';
5
-
6
- function StylesConfig() {
7
- const config = useType();
8
- const hasParams = Boolean(config?.params);
9
- if (!hasParams) {
10
- return null;
11
- }
12
- return /* @__PURE__ */ jsx("div", { style: { minWidth: 200, minHeight: 100 }, className: "row gap-16", children: /* @__PURE__ */ jsxs("div", { className: "column", children: [
13
- /* @__PURE__ */ jsxs("p", { children: [
14
- i18n.t("Unit"),
15
- ": ",
16
- config?.unit
17
- ] }),
18
- /* @__PURE__ */ jsx(ColorConfig, {})
19
- ] }) });
20
- }
21
-
22
- export { StylesConfig };
23
- //# sourceMappingURL=out.js.map
24
- //# sourceMappingURL=StylesConfig.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../src/components/Map/components/EarthEngineLayerConfiguration/components/StylesConfig.tsx"],"names":[],"mappings":"AAgBI,SAGA,KAHA;AAhBJ,OAAO,UAAU;AACjB,SAAS,mBAAmB;AAE5B,SAAS,eAAe;AAEjB,SAAS,eAAe;AAC9B,QAAM,SAAS,QAAQ;AACvB,QAAM,YAAY,QAAQ,QAAQ,MAAM;AAExC,MAAI,CAAC,WAAW;AACf,WAAO;AAAA,EACR;AAEA,SACC,oBAAC,SAAI,OAAO,EAAE,UAAU,KAAK,WAAW,IAAI,GAAG,WAAU,cACxD,+BAAC,SAAI,WAAU,UACd;AAAA,yBAAC,OACC;AAAA,WAAK,EAAE,MAAM;AAAA,MAAE;AAAA,MAAG,QAAQ;AAAA,OAC5B;AAAA,IACA,oBAAC,eAAY;AAAA,KACd,GACD;AAEF","sourcesContent":["import i18n from \"@dhis2/d2-i18n\";\nimport { ColorConfig } from \"./ColorConfig\";\nimport React from \"react\";\nimport { useType } from \"../hooks/data\";\n\nexport function StylesConfig() {\n\tconst config = useType();\n\tconst hasParams = Boolean(config?.params);\n\n\tif (!hasParams) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<div style={{ minWidth: 200, minHeight: 100 }} className=\"row gap-16\">\n\t\t\t<div className=\"column\">\n\t\t\t\t<p>\n\t\t\t\t\t{i18n.t(\"Unit\")}: {config?.unit}\n\t\t\t\t</p>\n\t\t\t\t<ColorConfig />\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n"]}
@@ -1,67 +0,0 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { filter, find } from 'lodash';
3
- import { EARTH_ENGINE_LAYERS, SUPPORTED_EARTH_ENGINE_LAYERS } from '../../MapLayer/components/GoogleEngineLayer/constants';
4
- import { useFormContext, Controller } from 'react-hook-form';
5
- import i18n from '@dhis2/d2-i18n';
6
- import { SingleSelectField, SingleSelectOption } from '@dhis2/ui';
7
-
8
- function TypeField({ excluded }) {
9
- const supportedLayers = filter(
10
- EARTH_ENGINE_LAYERS,
11
- ({ id }) => SUPPORTED_EARTH_ENGINE_LAYERS.includes(id) && !(excluded?.includes(id) ?? false)
12
- );
13
- const { setValue } = useFormContext();
14
- const setConfigDefaults = (selected) => {
15
- const config = find(supportedLayers, ["id", selected]);
16
- if (!config)
17
- return;
18
- if (config?.defaultAggregations) {
19
- setValue("aggregations", config?.defaultAggregations);
20
- } else {
21
- setValue("aggregations", void 0);
22
- }
23
- if (config?.params) {
24
- const { max, min, palette } = config.params;
25
- setValue("params.max", max);
26
- setValue("params.min", min);
27
- setValue("params.palette", palette);
28
- } else {
29
- setValue("params", void 0);
30
- }
31
- };
32
- return /* @__PURE__ */ jsx(
33
- Controller,
34
- {
35
- name: "type",
36
- rules: {
37
- required: i18n.t("Type is required")
38
- },
39
- render: ({ field, fieldState }) => /* @__PURE__ */ jsx(
40
- SingleSelectField,
41
- {
42
- label: i18n.t("Layer type"),
43
- required: true,
44
- error: Boolean(fieldState.error),
45
- validationText: fieldState.error?.message,
46
- onChange: ({ selected }) => {
47
- setConfigDefaults(selected);
48
- field.onChange(selected);
49
- },
50
- selected: Boolean(find(supportedLayers, "id", field.value)) ? field.value : void 0,
51
- children: supportedLayers?.map((layer) => /* @__PURE__ */ jsx(
52
- SingleSelectOption,
53
- {
54
- value: layer.id,
55
- label: layer.name
56
- },
57
- `${layer.id}-option`
58
- ))
59
- }
60
- )
61
- }
62
- );
63
- }
64
-
65
- export { TypeField };
66
- //# sourceMappingURL=out.js.map
67
- //# sourceMappingURL=TypeField.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../src/components/Map/components/EarthEngineLayerConfiguration/components/TypeField.tsx"],"names":[],"mappings":"AA6DM;AA7DN,SAAS,QAAQ,YAAY;AAC7B;AAAA,EACC;AAAA,EACA;AAAA,OACM;AACP,SAAS,YAAY,sBAAsB;AAC3C,OAAO,UAAU;AACjB,SAAS,mBAAmB,0BAA0B;AAG/C,SAAS,UAAU,EAAE,SAAS,GAA4B;AAChE,QAAM,kBAAkB;AAAA,IACvB;AAAA,IACA,CAAC,EAAE,GAAG,MACL,8BAA8B,SAAS,EAAE,KACzC,EAAE,UAAU,SAAS,EAAE,KAAK;AAAA,EAC9B;AACA,QAAM,EAAE,SAAS,IAAI,eAAe;AACpC,QAAM,oBAAoB,CAAC,aAAqB;AAC/C,UAAM,SAAS,KAAK,iBAAiB,CAAC,MAAM,QAAQ,CAAC;AACrD,QAAI,CAAC;AAAQ;AAEb,QAAI,QAAQ,qBAAqB;AAChC,eAAS,gBAAgB,QAAQ,mBAAmB;AAAA,IACrD,OAAO;AACN,eAAS,gBAAgB,MAAS;AAAA,IACnC;AAEA,QAAI,QAAQ,QAAQ;AACnB,YAAM,EAAE,KAAK,KAAK,QAAQ,IAAI,OAAO;AACrC,eAAS,cAAc,GAAG;AAC1B,eAAS,cAAc,GAAG;AAC1B,eAAS,kBAAkB,OAAO;AAAA,IACnC,OAAO;AACN,eAAS,UAAU,MAAS;AAAA,IAC7B;AAAA,EACD;AAEA,SACC;AAAA,IAAC;AAAA;AAAA,MACA,MAAK;AAAA,MACL,OAAO;AAAA,QACN,UAAU,KAAK,EAAE,kBAAkB;AAAA,MACpC;AAAA,MACA,QAAQ,CAAC,EAAE,OAAO,WAAW,MAC5B;AAAA,QAAC;AAAA;AAAA,UACA,OAAO,KAAK,EAAE,YAAY;AAAA,UAC1B,UAAQ;AAAA,UACR,OAAO,QAAQ,WAAW,KAAK;AAAA,UAC/B,gBAAgB,WAAW,OAAO;AAAA,UAClC,UAAU,CAAC,EAAE,SAAS,MAA4B;AACjD,8BAAkB,QAAQ;AAC1B,kBAAM,SAAS,QAAQ;AAAA,UACxB;AAAA,UACA,UACC,QAAQ,KAAK,iBAAiB,MAAM,MAAM,KAAK,CAAC,IAC7C,MAAM,QACN;AAAA,UAGH,2BAAiB,IAAI,CAAC,UACtB;AAAA,YAAC;AAAA;AAAA,cAEA,OAAO,MAAM;AAAA,cACb,OAAO,MAAM;AAAA;AAAA,YAFR,GAAG,MAAM,EAAE;AAAA,UAGjB,CACA;AAAA;AAAA,MACF;AAAA;AAAA,EAEF;AAEF","sourcesContent":["import { filter, find } from \"lodash\";\nimport {\n\tEARTH_ENGINE_LAYERS,\n\tSUPPORTED_EARTH_ENGINE_LAYERS,\n} from \"../../MapLayer/components/GoogleEngineLayer/constants\";\nimport { Controller, useFormContext } from \"react-hook-form\";\nimport i18n from \"@dhis2/d2-i18n\";\nimport { SingleSelectField, SingleSelectOption } from \"@dhis2/ui\";\nimport React from \"react\";\n\nexport function TypeField({ excluded }: { excluded?: string[] }) {\n\tconst supportedLayers = filter(\n\t\tEARTH_ENGINE_LAYERS,\n\t\t({ id }) =>\n\t\t\tSUPPORTED_EARTH_ENGINE_LAYERS.includes(id) &&\n\t\t\t!(excluded?.includes(id) ?? false),\n\t);\n\tconst { setValue } = useFormContext();\n\tconst setConfigDefaults = (selected: string) => {\n\t\tconst config = find(supportedLayers, [\"id\", selected]);\n\t\tif (!config) return;\n\n\t\tif (config?.defaultAggregations) {\n\t\t\tsetValue(\"aggregations\", config?.defaultAggregations);\n\t\t} else {\n\t\t\tsetValue(\"aggregations\", undefined);\n\t\t}\n\n\t\tif (config?.params) {\n\t\t\tconst { max, min, palette } = config.params;\n\t\t\tsetValue(\"params.max\", max);\n\t\t\tsetValue(\"params.min\", min);\n\t\t\tsetValue(\"params.palette\", palette);\n\t\t} else {\n\t\t\tsetValue(\"params\", undefined);\n\t\t}\n\t};\n\n\treturn (\n\t\t<Controller\n\t\t\tname=\"type\"\n\t\t\trules={{\n\t\t\t\trequired: i18n.t(\"Type is required\"),\n\t\t\t}}\n\t\t\trender={({ field, fieldState }) => (\n\t\t\t\t<SingleSelectField\n\t\t\t\t\tlabel={i18n.t(\"Layer type\")}\n\t\t\t\t\trequired\n\t\t\t\t\terror={Boolean(fieldState.error)}\n\t\t\t\t\tvalidationText={fieldState.error?.message}\n\t\t\t\t\tonChange={({ selected }: { selected: string }) => {\n\t\t\t\t\t\tsetConfigDefaults(selected);\n\t\t\t\t\t\tfield.onChange(selected);\n\t\t\t\t\t}}\n\t\t\t\t\tselected={\n\t\t\t\t\t\tBoolean(find(supportedLayers, \"id\", field.value))\n\t\t\t\t\t\t\t? field.value\n\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t}\n\t\t\t\t>\n\t\t\t\t\t{supportedLayers?.map((layer) => (\n\t\t\t\t\t\t<SingleSelectOption\n\t\t\t\t\t\t\tkey={`${layer.id}-option`}\n\t\t\t\t\t\t\tvalue={layer.id}\n\t\t\t\t\t\t\tlabel={layer.name}\n\t\t\t\t\t\t/>\n\t\t\t\t\t))}\n\t\t\t\t</SingleSelectField>\n\t\t\t)}\n\t\t/>\n\t);\n}\n"]}
@@ -1,45 +0,0 @@
1
- import { useGoogleEngineToken } from '../../MapLayer/components/GoogleEngineLayer/hooks';
2
- import { EarthEngine } from '../../MapLayer/components/GoogleEngineLayer/services/engine';
3
- import { useQuery } from 'react-query';
4
- import { useMemo } from 'react';
5
- import { useWatch } from 'react-hook-form';
6
- import { find } from 'lodash';
7
- import { EARTH_ENGINE_LAYERS } from '../../MapLayer/components/GoogleEngineLayer/constants';
8
-
9
- function useDatasetInfo(shouldRun, config) {
10
- const { refresh } = useGoogleEngineToken();
11
- async function getInfo() {
12
- if (config) {
13
- const tokenData = await refresh();
14
- await EarthEngine.setToken(tokenData.token, refresh);
15
- const engine = new EarthEngine({
16
- options: config
17
- });
18
- return engine.getPeriod();
19
- }
20
- }
21
- const { data, error, isLoading } = useQuery([config], getInfo);
22
- const periods = useMemo(() => {
23
- const features = data?.features;
24
- return features?.map((feature) => {
25
- return new Date(
26
- feature?.properties["system:time_start"]
27
- )?.getFullYear();
28
- });
29
- }, [data]);
30
- return {
31
- loading: isLoading,
32
- error,
33
- periods
34
- };
35
- }
36
- function useType() {
37
- const type = useWatch({
38
- name: "type"
39
- });
40
- return find(EARTH_ENGINE_LAYERS, ["id", type]);
41
- }
42
-
43
- export { useDatasetInfo, useType };
44
- //# sourceMappingURL=out.js.map
45
- //# sourceMappingURL=data.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../src/components/Map/components/EarthEngineLayerConfiguration/hooks/data.ts"],"names":[],"mappings":"AACA,SAAS,4BAA4B;AACrC,SAAS,mBAAmB;AAC5B,SAAS,gBAAgB;AACzB,SAAS,eAAe;AACxB,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,2BAA2B;AAE7B,SAAS,eACf,WACA,QACC;AACD,QAAM,EAAE,QAAQ,IAAI,qBAAqB;AAEzC,iBAAe,UAAU;AACxB,QAAI,QAAQ;AACX,YAAM,YAAY,MAAM,QAAQ;AAChC,YAAM,YAAY,SAAS,UAAU,OAAO,OAAO;AACnD,YAAM,SAAS,IAAI,YAAY;AAAA,QAC9B,SAAS;AAAA,MACV,CAAC;AACD,aAAO,OAAO,UAAU;AAAA,IACzB;AAAA,EACD;AAEA,QAAM,EAAE,MAAM,OAAO,UAAU,IAAI,SAAS,CAAC,MAAM,GAAG,OAAO;AAE7D,QAAM,UAAU,QAAQ,MAAM;AAC7B,UAAM,WAAY,MAAc;AAChC,WAAO,UAAU,IAAI,CAAC,YAAiB;AACtC,aAAO,IAAI;AAAA,QACV,SAAS,WAAW,mBAAmB;AAAA,MACxC,GAAG,YAAY;AAAA,IAChB,CAAC;AAAA,EACF,GAAG,CAAC,IAAI,CAAC;AAET,SAAO;AAAA,IACN,SAAS;AAAA,IACT;AAAA,IACA;AAAA,EACD;AACD;AAEO,SAAS,UAAU;AACzB,QAAM,OAAO,SAAS;AAAA,IACrB,MAAM;AAAA,EACP,CAAC;AACD,SAAO,KAAK,qBAAqB,CAAC,MAAM,IAAI,CAAC;AAC9C","sourcesContent":["import { EarthEngineOptions } from \"../../MapLayer/components/GoogleEngineLayer/interfaces\";\nimport { useGoogleEngineToken } from \"../../MapLayer/components/GoogleEngineLayer/hooks\";\nimport { EarthEngine } from \"../../MapLayer/components/GoogleEngineLayer/services/engine\";\nimport { useQuery } from \"react-query\";\nimport { useMemo } from \"react\";\nimport { useWatch } from \"react-hook-form\";\nimport { find } from \"lodash\";\nimport { EARTH_ENGINE_LAYERS } from \"../../MapLayer/components/GoogleEngineLayer/constants\";\n\nexport function useDatasetInfo(\n\tshouldRun: boolean,\n\tconfig?: EarthEngineOptions,\n) {\n\tconst { refresh } = useGoogleEngineToken();\n\n\tasync function getInfo() {\n\t\tif (config) {\n\t\t\tconst tokenData = await refresh();\n\t\t\tawait EarthEngine.setToken(tokenData.token, refresh);\n\t\t\tconst engine = new EarthEngine({\n\t\t\t\toptions: config,\n\t\t\t});\n\t\t\treturn engine.getPeriod();\n\t\t}\n\t}\n\n\tconst { data, error, isLoading } = useQuery([config], getInfo);\n\n\tconst periods = useMemo(() => {\n\t\tconst features = (data as any)?.features;\n\t\treturn features?.map((feature: any) => {\n\t\t\treturn new Date(\n\t\t\t\tfeature?.properties[\"system:time_start\"],\n\t\t\t)?.getFullYear();\n\t\t});\n\t}, [data]);\n\n\treturn {\n\t\tloading: isLoading,\n\t\terror: error as any,\n\t\tperiods,\n\t};\n}\n\nexport function useType() {\n\tconst type = useWatch({\n\t\tname: \"type\",\n\t});\n\treturn find(EARTH_ENGINE_LAYERS, [\"id\", type]);\n}\n"]}
@@ -1,4 +0,0 @@
1
- export * from './EarthEngineLayerConfigModal';
2
- export * from './EarthEngineLayerConfiguration';
3
- //# sourceMappingURL=out.js.map
4
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/components/Map/components/EarthEngineLayerConfiguration/index.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,cAAc","sourcesContent":["export * from \"./EarthEngineLayerConfigModal\";\nexport * from \"./EarthEngineLayerConfiguration\";\n"]}
@@ -1,85 +0,0 @@
1
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import { uid } from '@hisptz/dhis2-utils';
3
- import { isEmpty } from 'lodash';
4
- import { forwardRef, useRef } from 'react';
5
- import { MapContainer, TileLayer, LayersControl } from 'react-leaflet';
6
- import { useMapBounds } from '../../hooks/map';
7
- import MapControl from '../MapControls';
8
- import MapLayer from '../MapLayer';
9
- import LegendArea from '../MapLayer/components/LegendArea';
10
- import { MapLayersProvider } from '../MapProvider/components/MapLayerProvider';
11
- import { useMapLayers } from '../MapProvider/hooks';
12
- import MapUpdater from '../MapUpdater';
13
-
14
- function MapLayerArea({
15
- id,
16
- base,
17
- controls,
18
- legends
19
- }) {
20
- const { layers } = useMapLayers();
21
- return /* @__PURE__ */ jsxs(Fragment, { children: [
22
- /* @__PURE__ */ jsx(
23
- TileLayer,
24
- {
25
- id,
26
- attribution: base?.attribution ?? '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> | &copy; <a href="https://carto.com/attribution">CARTO</a>',
27
- url: base?.url ?? "https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"
28
- }
29
- ),
30
- controls?.map((control) => /* @__PURE__ */ jsx(
31
- MapControl,
32
- {
33
- mapId: id,
34
- ...control
35
- },
36
- `${control.type}-control`
37
- )),
38
- !isEmpty(layers) && /* @__PURE__ */ jsx(LayersControl, { hideSingleBase: true, position: "topleft", children: layers.map(
39
- (layer, index) => /* @__PURE__ */ jsx(
40
- MapLayer,
41
- {
42
- layer,
43
- index
44
- },
45
- layer.id
46
- )
47
- ) }),
48
- !isEmpty(layers) && /* @__PURE__ */ jsx(
49
- LegendArea,
50
- {
51
- legends,
52
- layers,
53
- position: "topright"
54
- }
55
- )
56
- ] });
57
- }
58
- const MapArea = ({ base, controls, mapOptions, key, legends, layers }, ref) => {
59
- const { center, bounds } = useMapBounds();
60
- const { current: id } = useRef(uid());
61
- return /* @__PURE__ */ jsx("div", { id: `${id}-"map-container`, style: { height: "100%", width: "100%" }, children: /* @__PURE__ */ jsxs(
62
- MapContainer,
63
- {
64
- attributionControl: true,
65
- ref,
66
- id,
67
- center,
68
- bounceAtZoomLimits: true,
69
- bounds,
70
- style: { height: "100%", width: "100%", minHeight: 500 },
71
- trackResize: true,
72
- ...mapOptions,
73
- children: [
74
- /* @__PURE__ */ jsx(MapUpdater, { bounds }),
75
- /* @__PURE__ */ jsx(MapLayersProvider, { layers, children: /* @__PURE__ */ jsx(MapLayerArea, { base, id, controls, legends }) })
76
- ]
77
- },
78
- key
79
- ) });
80
- };
81
- var MapArea_default = forwardRef(MapArea);
82
-
83
- export { MapArea_default as default };
84
- //# sourceMappingURL=out.js.map
85
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/components/Map/components/MapArea/index.tsx"],"names":[],"mappings":"AAgCE,mBACC,KADD;AAhCF,SAAS,WAAW;AAEpB,SAAS,eAAe;AACxB,SAAgB,YAAY,cAAc;AAC1C,SAAS,eAAe,cAAc,iBAAiB;AACvD,SAAS,oBAAoB;AAC7B,OAAO,gBAAgB;AACvB,OAAO,cAAc;AACrB,OAAO,gBAAgB;AAEvB,SAAS,yBAAyB;AAClC,SAAS,oBAAoB;AAE7B,OAAO,gBAAgB;AAEvB,SAAS,aAAa;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,GAQG;AACF,QAAM,EAAE,OAAO,IAAI,aAAa;AAEhC,SACC,iCACC;AAAA;AAAA,MAAC;AAAA;AAAA,QACA;AAAA,QACA,aACC,MAAM,eACN;AAAA,QAED,KACC,MAAM,OACN;AAAA;AAAA,IAEF;AAAA,IACC,UAAU,IAAI,CAAC,YACf;AAAA,MAAC;AAAA;AAAA,QACA,OAAO;AAAA,QAEN,GAAG;AAAA;AAAA,MADC,GAAG,QAAQ,IAAI;AAAA,IAErB,CACA;AAAA,IACA,CAAC,QAAQ,MAAM,KACf,oBAAC,iBAAc,gBAAc,MAAC,UAAU,WACrC,iBAAiC;AAAA,MAClC,CAAC,OAA4B,UAC5B;AAAA,QAAC;AAAA;AAAA,UAEA;AAAA,UACA;AAAA;AAAA,QAFK,MAAM;AAAA,MAGZ;AAAA,IAEF,GACD;AAAA,IAEA,CAAC,QAAQ,MAAM,KACf;AAAA,MAAC;AAAA;AAAA,QACA;AAAA,QACA;AAAA,QACA,UAAU;AAAA;AAAA,IACX;AAAA,KAEF;AAEF;AAEA,MAAM,UAAU,CAAC,EAAE,MAAM,UAAU,YAAY,KAAK,SAAS,OAAO,GAAiB,QAA2C;AAC9H,QAAM,EAAE,QAAQ,OAAO,IAAI,aAAa;AACxC,QAAM,EAAE,SAAS,GAAG,IAAI,OAAe,IAAI,CAAC;AAE5C,SACE,oBAAC,SAAI,IAAI,GAAG,EAAE,mBAAmB,OAAO,EAAE,QAAQ,QAAQ,OAAO,OAAO,GACtE;AAAA,IAAC;AAAA;AAAA,MACC,oBAAkB;AAAA,MAClB;AAAA,MACA;AAAA,MACA;AAAA,MACA,oBAAkB;AAAA,MAClB;AAAA,MACA,OAAO,EAAE,QAAQ,QAAQ,OAAO,QAAQ,WAAW,IAAI;AAAA,MAEvD,aAAW;AAAA,MACV,GAAG;AAAA,MACJ;AAAA,4BAAC,cAAW,QAAgB;AAAA,QAC5B,oBAAC,qBAAkB,QACjB,8BAAC,gBAAa,MAAY,IAAQ,UAAoB,SAAkB,GAC1E;AAAA;AAAA;AAAA,IANK;AAAA,EAOP,GACF;AAEJ;AAEA,IAAO,kBAAQ,WAAW,OAAO","sourcesContent":["import { uid } from \"@hisptz/dhis2-utils\";\nimport { Map as LeafletMap } from \"leaflet\";\nimport { isEmpty } from \"lodash\";\nimport React, { forwardRef, useRef } from \"react\";\nimport { LayersControl, MapContainer, TileLayer } from \"react-leaflet\";\nimport { useMapBounds } from \"../../hooks/map\";\nimport MapControl from \"../MapControls\";\nimport MapLayer from \"../MapLayer\";\nimport LegendArea from \"../MapLayer/components/LegendArea\";\nimport { CustomThematicLayer } from \"../MapLayer/interfaces\";\nimport { MapLayersProvider } from \"../MapProvider/components/MapLayerProvider\";\nimport { useMapLayers } from \"../MapProvider/hooks\";\nimport { MapAreaProps, MapControls, MapLegendConfig } from \"./interfaces\";\nimport MapUpdater from \"../MapUpdater\";\n\nfunction MapLayerArea({\n\tid,\n\tbase,\n\tcontrols,\n\tlegends,\n}: {\n\tid: string;\n\tbase?: {\n\t\turl: string;\n\t\tattribution: string;\n\t};\n\tcontrols?: MapControls[];\n\tlegends?: MapLegendConfig;\n}) {\n\tconst { layers } = useMapLayers();\n\n\treturn (\n\t\t<>\n\t\t\t<TileLayer\n\t\t\t\tid={id}\n\t\t\t\tattribution={\n\t\t\t\t\tbase?.attribution ??\n\t\t\t\t\t'&copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> | &copy; <a href=\"https://carto.com/attribution\">CARTO</a>'\n\t\t\t\t}\n\t\t\t\turl={\n\t\t\t\t\tbase?.url ??\n\t\t\t\t\t\"https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png\"\n\t\t\t\t}\n\t\t\t/>\n\t\t\t{controls?.map((control) => (\n\t\t\t\t<MapControl\n\t\t\t\t\tmapId={id}\n\t\t\t\t\tkey={`${control.type}-control`}\n\t\t\t\t\t{...control}\n\t\t\t\t/>\n\t\t\t))}\n\t\t\t{!isEmpty(layers) && (\n\t\t\t\t<LayersControl hideSingleBase position={\"topleft\"}>\n\t\t\t\t\t{(layers as CustomThematicLayer[]).map(\n\t\t\t\t\t\t(layer: CustomThematicLayer, index) => (\n\t\t\t\t\t\t\t<MapLayer\n\t\t\t\t\t\t\t\tkey={layer.id}\n\t\t\t\t\t\t\t\tlayer={layer}\n\t\t\t\t\t\t\t\tindex={index}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t),\n\t\t\t\t\t)}\n\t\t\t\t</LayersControl>\n\t\t\t)}\n\t\t\t{!isEmpty(layers) && (\n\t\t\t\t<LegendArea\n\t\t\t\t\tlegends={legends}\n\t\t\t\t\tlayers={layers as CustomThematicLayer[]}\n\t\t\t\t\tposition={\"topright\"}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</>\n\t);\n}\n\nconst MapArea = ({ base, controls, mapOptions, key, legends, layers }: MapAreaProps, ref: React.Ref<LeafletMap> | undefined) => {\n const { center, bounds } = useMapBounds();\n const { current: id } = useRef<string>(uid());\n\n return (\n <div id={`${id}-\"map-container`} style={{ height: \"100%\", width: \"100%\" }}>\n <MapContainer\n attributionControl\n ref={ref}\n id={id}\n center={center}\n bounceAtZoomLimits\n bounds={bounds}\n style={{ height: \"100%\", width: \"100%\", minHeight: 500 }}\n key={key}\n trackResize\n {...mapOptions}>\n <MapUpdater bounds={bounds} />\n <MapLayersProvider layers={layers}>\n <MapLayerArea base={base} id={id} controls={controls} legends={legends} />\n </MapLayersProvider>\n </MapContainer>\n </div>\n );\n};\n\nexport default forwardRef(MapArea);\n"]}
@@ -1,3 +0,0 @@
1
-
2
- //# sourceMappingURL=out.js.map
3
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- import { jsx } from 'react/jsx-runtime';
2
-
3
- const POSITION_CLASSES = {
4
- bottomleft: "leaflet-bottom leaflet-left",
5
- bottomright: "leaflet-bottom leaflet-right",
6
- topleft: "leaflet-top leaflet-left",
7
- topright: "leaflet-top leaflet-right"
8
- };
9
- function CustomControl({ children, position, ...options }) {
10
- const positionClass = position && POSITION_CLASSES[position] || POSITION_CLASSES.topright;
11
- return /* @__PURE__ */ jsx("div", { ...options, className: `${positionClass}`, children: /* @__PURE__ */ jsx("div", { style: { overflow: "hidden", border: "none" }, className: "leaflet-control leaflet-bar", children }) });
12
- }
13
-
14
- export { CustomControl };
15
- //# sourceMappingURL=out.js.map
16
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../../src/components/Map/components/MapControls/components/CustomControl/index.tsx"],"names":[],"mappings":"AAkBM;AAfN,MAAM,mBAAmB;AAAA,EACxB,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,SAAS;AAAA,EACT,UAAU;AACX;AAMO,SAAS,cAAc,EAAE,UAAU,UAAU,GAAG,QAAQ,GAAyB;AACtF,QAAM,gBAAiB,YAAY,iBAAiB,QAAQ,KAAM,iBAAiB;AACnF,SACE,oBAAC,SAAK,GAAG,SAAS,WAAW,GAAG,aAAa,IAC3C,8BAAC,SAAI,OAAO,EAAE,UAAU,UAAU,QAAQ,OAAO,GAAG,WAAU,+BAC3D,UACH,GACF;AAEJ","sourcesContent":["import { ControlOptions } from \"leaflet\";\nimport React from \"react\";\n\nconst POSITION_CLASSES = {\n\tbottomleft: \"leaflet-bottom leaflet-left\",\n\tbottomright: \"leaflet-bottom leaflet-right\",\n\ttopleft: \"leaflet-top leaflet-left\",\n\ttopright: \"leaflet-top leaflet-right\",\n};\n\ninterface CustomControlOptions extends ControlOptions {\n children: React.ReactNode;\n}\n\nexport function CustomControl({ children, position, ...options }: CustomControlOptions) {\n const positionClass = (position && POSITION_CLASSES[position]) || POSITION_CLASSES.topright;\n return (\n <div {...options} className={`${positionClass}`}>\n <div style={{ overflow: \"hidden\", border: \"none\" }} className=\"leaflet-control leaflet-bar\">\n {children}\n </div>\n </div>\n );\n}\n"]}
@@ -1,15 +0,0 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { createControlComponent } from '@react-leaflet/core';
3
- import L from 'leaflet';
4
- import 'leaflet-easyprint';
5
-
6
- const DownloadControlComponent = createControlComponent((props) => {
7
- return L.easyPrint(props);
8
- });
9
- function DownloadControl({ options, position, mapId }) {
10
- return /* @__PURE__ */ jsx(DownloadControlComponent, { ...{ ...options, position } });
11
- }
12
-
13
- export { DownloadControl as default };
14
- //# sourceMappingURL=out.js.map
15
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../../src/components/Map/components/MapControls/components/DownloadControl/index.tsx"],"names":[],"mappings":"AASS;AATT,SAAS,8BAA8B;AACvC,OAAO,OAA4B;AACnC,OAAO;AAGP,MAAM,2BAA2B,uBAAuB,CAAC,UAAU;AAClE,SAAQ,EAAU,UAAU,KAAK;AAClC,CAAC;AACc,SAAR,gBAAiC,EAAE,SAAS,UAAU,MAAM,GAA+D;AAChI,SAAO,oBAAC,4BAA0B,GAAG,EAAE,GAAG,SAAS,SAAS,GAAG;AACjE","sourcesContent":["import { createControlComponent } from \"@react-leaflet/core\";\nimport L, { ControlPosition } from \"leaflet\";\nimport \"leaflet-easyprint\";\nimport React from \"react\";\n\nconst DownloadControlComponent = createControlComponent((props) => {\n\treturn (L as any).easyPrint(props);\n});\nexport default function DownloadControl({ options, position, mapId }: { options: any; position: ControlPosition; mapId: string }) {\n return <DownloadControlComponent {...{ ...options, position }} />;\n}\n"]}
@@ -1,13 +0,0 @@
1
- import { createControlComponent } from '@react-leaflet/core';
2
- import { control } from 'leaflet';
3
- import 'leaflet.fullscreen';
4
- import 'leaflet.fullscreen/Control.FullScreen.css';
5
-
6
- const FullscreenControl = createControlComponent(
7
- (props) => control.fullscreen(props)
8
- );
9
- var FullscreenControl_default = FullscreenControl;
10
-
11
- export { FullscreenControl_default as default };
12
- //# sourceMappingURL=out.js.map
13
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../../src/components/Map/components/MapControls/components/FullscreenControl/index.tsx"],"names":[],"mappings":"AAAA,SAAS,8BAA8B;AACvC,SAAS,eAAe;AACxB,OAAO;AACP,OAAO;AAEP,MAAM,oBAAoB;AAAA,EAAuB,CAAC,UAChD,QAAgB,WAAW,KAAK;AAClC;AACA,IAAO,4BAAQ","sourcesContent":["import { createControlComponent } from \"@react-leaflet/core\";\nimport { control } from \"leaflet\";\nimport \"leaflet.fullscreen\";\nimport \"leaflet.fullscreen/Control.FullScreen.css\";\n\nconst FullscreenControl = createControlComponent((props) =>\n\t(control as any).fullscreen(props),\n);\nexport default FullscreenControl;\n"]}