@hisptz/dhis2-analytics 2.0.1 → 2.0.2

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 (99) hide show
  1. package/dist/components/Map/DHIS2Map.js +1 -0
  2. package/dist/components/Map/DHIS2Map.js.map +1 -1
  3. package/dist/components/Map/DHIS2Map.stories.js +35 -13
  4. package/dist/components/Map/DHIS2Map.stories.js.map +1 -1
  5. package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.js +17 -7
  6. package/dist/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.js.map +1 -1
  7. package/dist/components/Map/components/MapLayer/components/BoundaryLayer/index.js +8 -2
  8. package/dist/components/Map/components/MapLayer/components/BoundaryLayer/index.js.map +1 -1
  9. package/dist/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.js +16 -4
  10. package/dist/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.js.map +1 -1
  11. package/dist/components/Map/components/MapLayer/components/LegendArea/index.js +18 -7
  12. package/dist/components/Map/components/MapLayer/components/LegendArea/index.js.map +1 -1
  13. package/dist/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.js +16 -3
  14. package/dist/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.js.map +1 -1
  15. package/dist/components/Map/components/MapLayer/components/PointLayer/index.js +16 -1
  16. package/dist/components/Map/components/MapLayer/components/PointLayer/index.js.map +1 -1
  17. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.js +10 -2
  18. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.js.map +1 -1
  19. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.js +1 -1
  20. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.js.map +1 -1
  21. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.js +10 -2
  22. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.js.map +1 -1
  23. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.js +4 -2
  24. package/dist/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.js.map +1 -1
  25. package/dist/components/Map/components/MapLayer/components/ThematicLayer/index.js +12 -1
  26. package/dist/components/Map/components/MapLayer/components/ThematicLayer/index.js.map +1 -1
  27. package/dist/components/Map/components/MapLayer/interfaces/index.js.map +1 -1
  28. package/dist/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.js +0 -1
  29. package/dist/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.js.map +1 -1
  30. package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.js +6 -3
  31. package/dist/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.js.map +1 -1
  32. package/dist/components/Map/constants/colors.js +1613 -152
  33. package/dist/components/Map/constants/colors.js.map +1 -1
  34. package/dist/components/Map/utils/colors.js +1 -35
  35. package/dist/components/Map/utils/colors.js.map +1 -1
  36. package/dist/components/Visualization/components/AnalyticsDataProvider/index.js +0 -3
  37. package/dist/components/Visualization/components/AnalyticsDataProvider/index.js.map +1 -1
  38. package/dist/esm/components/Map/DHIS2Map.js +1 -0
  39. package/dist/esm/components/Map/DHIS2Map.js.map +1 -1
  40. package/dist/esm/components/Map/DHIS2Map.stories.js +35 -13
  41. package/dist/esm/components/Map/DHIS2Map.stories.js.map +1 -1
  42. package/dist/esm/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.js +17 -7
  43. package/dist/esm/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.js.map +1 -1
  44. package/dist/esm/components/Map/components/MapLayer/components/BoundaryLayer/index.js +8 -2
  45. package/dist/esm/components/Map/components/MapLayer/components/BoundaryLayer/index.js.map +1 -1
  46. package/dist/esm/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.js +16 -4
  47. package/dist/esm/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.js.map +1 -1
  48. package/dist/esm/components/Map/components/MapLayer/components/LegendArea/index.js +18 -7
  49. package/dist/esm/components/Map/components/MapLayer/components/LegendArea/index.js.map +1 -1
  50. package/dist/esm/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.js +15 -3
  51. package/dist/esm/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.js.map +1 -1
  52. package/dist/esm/components/Map/components/MapLayer/components/PointLayer/index.js +16 -1
  53. package/dist/esm/components/Map/components/MapLayer/components/PointLayer/index.js.map +1 -1
  54. package/dist/esm/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.js +10 -2
  55. package/dist/esm/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.js.map +1 -1
  56. package/dist/esm/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.js +1 -1
  57. package/dist/esm/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.js.map +1 -1
  58. package/dist/esm/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.js +10 -2
  59. package/dist/esm/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.js.map +1 -1
  60. package/dist/esm/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.js +4 -2
  61. package/dist/esm/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.js.map +1 -1
  62. package/dist/esm/components/Map/components/MapLayer/components/ThematicLayer/index.js +12 -1
  63. package/dist/esm/components/Map/components/MapLayer/components/ThematicLayer/index.js.map +1 -1
  64. package/dist/esm/components/Map/components/MapLayer/interfaces/index.js.map +1 -1
  65. package/dist/esm/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.js +0 -1
  66. package/dist/esm/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.js.map +1 -1
  67. package/dist/esm/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.js +6 -3
  68. package/dist/esm/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.js.map +1 -1
  69. package/dist/esm/components/Map/constants/colors.js +1613 -153
  70. package/dist/esm/components/Map/constants/colors.js.map +1 -1
  71. package/dist/esm/components/Map/utils/colors.js +3 -36
  72. package/dist/esm/components/Map/utils/colors.js.map +1 -1
  73. package/dist/esm/components/Visualization/components/AnalyticsDataProvider/index.js +0 -3
  74. package/dist/esm/components/Visualization/components/AnalyticsDataProvider/index.js.map +1 -1
  75. package/dist/types/components/Map/DHIS2Map.d.ts.map +1 -1
  76. package/dist/types/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.d.ts.map +1 -1
  77. package/dist/types/components/Map/components/MapLayer/components/BoundaryLayer/index.d.ts.map +1 -1
  78. package/dist/types/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.d.ts.map +1 -1
  79. package/dist/types/components/Map/components/MapLayer/components/LegendArea/index.d.ts.map +1 -1
  80. package/dist/types/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.d.ts.map +1 -1
  81. package/dist/types/components/Map/components/MapLayer/components/PointLayer/index.d.ts.map +1 -1
  82. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.d.ts +12 -2
  83. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.d.ts.map +1 -1
  84. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.d.ts +11 -6
  85. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.d.ts.map +1 -1
  86. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.d.ts.map +1 -1
  87. package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/index.d.ts.map +1 -1
  88. package/dist/types/components/Map/components/MapLayer/interfaces/index.d.ts +12 -0
  89. package/dist/types/components/Map/components/MapLayer/interfaces/index.d.ts.map +1 -1
  90. package/dist/types/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.d.ts.map +1 -1
  91. package/dist/types/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.d.ts.map +1 -1
  92. package/dist/types/components/Map/constants/colors.d.ts +2 -0
  93. package/dist/types/components/Map/constants/colors.d.ts.map +1 -1
  94. package/dist/types/components/Map/interfaces/index.d.ts +9 -0
  95. package/dist/types/components/Map/interfaces/index.d.ts.map +1 -1
  96. package/dist/types/components/Map/utils/colors.d.ts +2 -2
  97. package/dist/types/components/Map/utils/colors.d.ts.map +1 -1
  98. package/dist/types/components/Visualization/components/AnalyticsDataProvider/index.d.ts.map +1 -1
  99. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAMnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAUxE,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAClC,IAAI,EACJ,OAAO,GACP,EAAE;IACF,IAAI,EAAE;QACL,OAAO,EAAE,UAAU,CAAC;QACpB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,qBAAqB,CAAC;KAChC,CAAC;IACF,OAAO,EAAE,MAAM,EAAE,CAAC;CAClB,8CAsBA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAMnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAS3E,UAAU,SAAS;IAClB,OAAO,EAAE,UAAU,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,qBAAqB,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAClC,IAAI,EACJ,OAAO,EACP,mBAAmB,EACnB,YAAY,GACZ,EAAE;IACF,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,mBAAmB,CAAC,EAAE,wBAAwB,CAAC;IAC/C,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,iBAAiB,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CAC/D,8CA4BA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACrC,IAAI,EAAE,UAAU,GAChB,EAAE;IACF,IAAI,EAAE,iBAAiB,CAAC;CACxB,8CAsBA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACrC,IAAI,EAAE,UAAU,GAChB,EAAE;IACF,IAAI,EAAE,iBAAiB,CAAC;CACxB,8CA0BA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Map/components/MapLayer/components/ThematicLayer/index.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACrC,OAAO,EACP,KAAK,GACL,EAAE;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACd,qDA8CA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Map/components/MapLayer/components/ThematicLayer/index.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACrC,OAAO,EACP,KAAK,GACL,EAAE;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACd,qDAyDA"}
@@ -3,6 +3,7 @@ import { MapOrgUnit, PointOrgUnit } from "../../../interfaces/index.js";
3
3
  import { LegendColorScale } from "../../../utils/colors.js";
4
4
  import { EarthEngineOptions } from "../components/GoogleEngineLayer/interfaces/index.js";
5
5
  import { EarthEngine } from "../components/GoogleEngineLayer/services/engine.js";
6
+ import type { LeafletEventHandlerFnMap, LeafletMouseEvent } from "leaflet";
6
7
  export type BoundaryLayerType = "basemap" | "overlay";
7
8
  export type ThematicLayerType = "choropleth" | "bubble";
8
9
  export declare const SUPPORTED_EARTH_ENGINE_LAYERS: string[];
@@ -82,6 +83,7 @@ export interface CustomChoroplethLayer extends CustomMapLayer {
82
83
  type: "choropleth";
83
84
  control?: ThematicLayerControl;
84
85
  legends?: Legend[];
86
+ customEventHandlers?: LeafletEventHandlerFnMap;
85
87
  }
86
88
  export interface CustomBubbleLayer extends CustomMapLayer {
87
89
  enabled: boolean;
@@ -97,6 +99,11 @@ export interface CustomBubbleLayer extends CustomMapLayer {
97
99
  };
98
100
  }
99
101
  export type CustomThematicLayer = CustomBubbleLayer | CustomChoroplethLayer;
102
+ interface LayerData {
103
+ orgUnit: MapOrgUnit;
104
+ data?: number;
105
+ dataItem?: ThematicLayerDataItem;
106
+ }
100
107
  export interface ThematicLayerConfig {
101
108
  id: string;
102
109
  data?: ThematicLayerRawData[];
@@ -105,6 +112,8 @@ export interface ThematicLayerConfig {
105
112
  dataItem: ThematicLayerDataItem;
106
113
  type: ThematicLayerType;
107
114
  control?: ThematicLayerControl;
115
+ customEventHandlers?: LeafletEventHandlerFnMap;
116
+ onLayerClick?: (e: LeafletMouseEvent, data: LayerData) => void;
108
117
  radius?: {
109
118
  min: number;
110
119
  max: number;
@@ -114,6 +123,8 @@ export interface CustomMapLayer {
114
123
  id: string;
115
124
  type: string;
116
125
  enabled: boolean;
126
+ customEventHandlers?: LeafletEventHandlerFnMap;
127
+ onLayerClick?: (e: LeafletMouseEvent, data: LayerData) => void;
117
128
  }
118
129
  export type MapLayer = CustomBoundaryLayer | ThematicLayerConfig | CustomPointLayer | CustomGoogleEngineLayer;
119
130
  export interface MapLayerProps {
@@ -121,4 +132,5 @@ export interface MapLayerProps {
121
132
  type: "boundary" | "thematic" | "external" | "point" | "earthEngine";
122
133
  layer: MapLayer;
123
134
  }
135
+ export {};
124
136
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/components/MapLayer/interfaces/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,SAAS,CAAC;AACtD,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG,QAAQ,CAAC;AAExD,eAAO,MAAM,6BAA6B,UAKzC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAC9B,Y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C,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE;QACR,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACZ,CAAC;CACF;AAED,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,GAAG,qBAAqB,CAAC;AAE5E,MAAM,WAAW,mBAAmB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,qBAAqB,CAAC;IAChC,IAAI,EAAE,iBAAiB,CAAC;IACxB,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,MAAM,CAAC,EAAE;QACR,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACZ,CAAC;CACF;AAED,MAAM,WAAW,cAAc;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,MAAM,QAAQ,GACjB,mBAAmB,GACnB,mBAAmB,GACnB,gBAAgB,GAChB,uBAAuB,CAAC;AAE3B,MAAM,WAAW,aAAa;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,aAAa,CAAC;IACrE,KAAK,EAAE,QAAQ,CAAC;CAChB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/components/MapLayer/interfaces/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAA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AAI,EAAE,SAAS,KAAK,IAAI,CAAC;IAC/D,MAAM,CAAC,EAAE;QACR,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACZ,CAAC;CACF;AAED,MAAM,WAAW,cAAc;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,mBAAmB,CAAC,EAAE,wBAAwB,CAAC;IAC/C,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,iBAAiB,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CAC/D;AAED,MAAM,MAAM,QAAQ,GACjB,mBAAmB,GACnB,mBAAmB,GACnB,gBAAgB,GAChB,uBAAuB,CAAC;AAE3B,MAAM,WAAW,aAAa;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,aAAa,CAAC;IACrE,KAAK,EAAE,QAAQ,CAAC;CAChB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,EACN,uBAAuB,EACvB,gBAAgB,EAEhB,sBAAsB,EAEtB,MAAM,iCAAiC,CAAC;AAiFzC,wBAAgB,iBAAiB,IAAI,GAAG,CAgLvC;AAED,wBAAgB,aAAa;;2BAoDnB,gBAAgB,KACrB,QAAQ,gBAAgB,GAAG,SAAS,CAAC;EA+DzC;AAED,wBAAgB,qBAAqB;6BAwB1B,sBAAsB,EAAE,KAC9B,QAAQ,uBAAuB,EAAE,CAAC;EA0DtC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,EACN,uBAAuB,EACvB,gBAAgB,EAEhB,sBAAsB,EAEtB,MAAM,iCAAiC,CAAC;AAiFzC,wBAAgB,iBAAiB,IAAI,GAAG,CA8KvC;AAED,wBAAgB,aAAa;;2BAoDnB,gBAAgB,KACrB,QAAQ,gBAAgB,GAAG,SAAS,CAAC;EA+DzC;AAED,wBAAgB,qBAAqB;6BAwB1B,sBAAsB,EAAE,KAC9B,QAAQ,uBAAuB,EAAE,CAAC;EA0DtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ThematicLayerConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AAInE,wBAAgB,0BAA0B,CAAC,EAC1C,OAAO,EACP,IAAI,GACJ,EAAE,+BAA+B,8CAyJjC"}
1
+ {"version":3,"file":"ThematicLayerConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AAInE,wBAAgB,0BAA0B,CAAC,EAC1C,OAAO,EACP,IAAI,GACJ,EAAE,+BAA+B,8CA4JjC"}
@@ -416,5 +416,7 @@ export declare const COLOR_PALETTES: {
416
416
  9: string[];
417
417
  };
418
418
  };
419
+ export type COLOR_CLASS = keyof typeof COLOR_PALETTES;
419
420
  export declare const qualitativeColors: string[];
421
+ export declare const COLOR_SCALES: string[];
420
422
  //# sourceMappingURL=colors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/constants/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAia1B,CAAC;AAGF,eAAO,MAAM,iBAAiB,UAa7B,CAAC"}
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/constants/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAozD1B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,cAAc,CAAC;AAGtD,eAAO,MAAM,iBAAiB,UAa7B,CAAC;AACF,eAAO,MAAM,YAAY,UAgCxB,CAAC"}
@@ -3,6 +3,7 @@ import React from "react";
3
3
  import type { MapContainerProps } from "react-leaflet";
4
4
  import { MapControls, MapLegendConfig } from "../components/MapArea/interfaces/index.js";
5
5
  import { EarthEngineLayerConfig, ThematicLayerConfig } from "../components/MapLayer/interfaces/index.js";
6
+ import type { LeafletEventHandlerFnMap, LeafletMouseEvent } from "leaflet";
6
7
  export interface MapProviderProps {
7
8
  children: React.ReactNode;
8
9
  orgUnitSelection: OrgUnitSelection;
@@ -26,9 +27,17 @@ export interface MapProps {
26
27
  icon?: string;
27
28
  groupSet?: string;
28
29
  };
30
+ customEventHandlers?: LeafletEventHandlerFnMap;
31
+ onLayerClick?: (e: LeafletMouseEvent, data: {
32
+ orgUnit: MapOrgUnit;
33
+ }) => void;
29
34
  };
30
35
  boundaryLayer?: {
31
36
  enabled: boolean;
37
+ customEventHandlers?: LeafletEventHandlerFnMap;
38
+ onLayerClick?: (e: LeafletMouseEvent, data: {
39
+ orgUnit: MapOrgUnit;
40
+ }) => void;
32
41
  };
33
42
  controls?: MapControls[];
34
43
  legends?: MapLegendConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/interfaces/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EACN,WAAW,EACX,eAAe,EACf,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACN,sBAAsB,EACtB,mBAAmB,EACnB,MAAM,4CAA4C,CAAC;AAEpD,MAAM,WAAW,gBAAgB;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,eAAe,CAAC,EAAE;QACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,KAAK,CAAC,EAAE;YAAE,KAAK,EAAE,IAAI,CAAC;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,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,EAAE;QACL,IAAI,EAAE,QAAQ,GAAG,WAAW,CAAC;QAC7B,IAAI,EAAE,MAAM,CAAC;KACb,CAAC;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/interfaces/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EACN,WAAW,EACX,eAAe,EACf,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACN,sBAAsB,EACtB,mBAAmB,EACnB,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE3E,MAAM,WAAW,gBAAgB;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,eAAe,CAAC,EAAE;QACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,KAAK,CAAC,EAAE;YAAE,KAAK,EAAE,IAAI,CAAC;YAAC,GAAG,EAAE,IAAI,CAAA;SAAE,CAAC;KACnC,CAAC;CACF;AAED,MAAM,WAAW,QAAQ;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,UAAU,CAAC,EAAE;QACZ,OAAO,EAAE,OAAO,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACxB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE;YACP,IAAI,CAAC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,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,EAAE;QACL,IAAI,EAAE,QAAQ,GAAG,WAAW,CAAC;QAC7B,IAAI,EAAE,MAAM,CAAC;KACb,CAAC;CACF"}
@@ -1,3 +1,4 @@
1
+ import { COLOR_SCALES } from "../constants/colors.js";
1
2
  export declare const getColorPalette: (scale: string, classes: number) => any;
2
3
  export declare const getColorClasses: (palette: string) => number;
3
4
  export declare const getColorScale: (palette: string) => string | undefined;
@@ -8,6 +9,5 @@ export declare const cssColor: (color: any) => any;
8
9
  export declare const getUniqueColor: (defaultColors: any) => (index: number) => any;
9
10
  export declare const isDarkColor: (color: string) => boolean;
10
11
  export declare const getContrastColor: (color: string) => "#fff" | "#000";
11
- export type LegendColorScale = (typeof colorScales)[number];
12
- export declare const colorScales: string[];
12
+ export type LegendColorScale = (typeof COLOR_SCALES)[number];
13
13
  //# sourceMappingURL=colors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/utils/colors.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe,UAAW,MAAM,WAAW,MAAM,QAE7D,CAAC;AAEF,eAAO,MAAM,eAAe,YAAa,MAAM,WAE9C,CAAC;AAGF,eAAO,MAAM,aAAa,YAAa,MAAM,uBAK5C,CAAC;AAEF,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,cAAc,IAAI,CAAC;AAChC,eAAO,MAAM,iBAAiB,KAG7B,CAAC;AAGF,eAAO,MAAM,QAAQ,UAAW,GAAG,QAQlC,CAAC;AAGF,eAAO,MAAM,cAAc,kBAAmB,GAAG,aAkBjC,MAAM,QACrB,CAAC;AAGF,eAAO,MAAM,WAAW,UAAW,MAAM,YAAsB,CAAC;AAGhE,eAAO,MAAM,gBAAgB,UAAW,MAAM,oBACT,CAAC;AACtC,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAC5D,eAAO,MAAM,WAAW,UAgCvB,CAAC"}
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/utils/colors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAKtE,eAAO,MAAM,eAAe,UAAW,MAAM,WAAW,MAAM,QAE7D,CAAC;AAEF,eAAO,MAAM,eAAe,YAAa,MAAM,WAE9C,CAAC;AAGF,eAAO,MAAM,aAAa,YAAa,MAAM,uBAK5C,CAAC;AAEF,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,cAAc,IAAI,CAAC;AAChC,eAAO,MAAM,iBAAiB,KAG7B,CAAC;AAGF,eAAO,MAAM,QAAQ,UAAW,GAAG,QAQlC,CAAC;AAGF,eAAO,MAAM,cAAc,kBAAmB,GAAG,aAkBjC,MAAM,QACrB,CAAC;AAGF,eAAO,MAAM,WAAW,UAAW,MAAM,YAAsB,CAAC;AAGhE,eAAO,MAAM,gBAAgB,UAAW,MAAM,oBACT,CAAC;AACtC,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Visualization/components/AnalyticsDataProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAsB,MAAM,qBAAqB,CAAC;AA6BpE,MAAM,WAAW,iBAAiB;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,wBAAgB,gBAAgB;;;EAE/B;AAED,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,8CAqEpE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Visualization/components/AnalyticsDataProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAsB,MAAM,qBAAqB,CAAC;AA6BpE,MAAM,WAAW,iBAAiB;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,wBAAgB,gBAAgB;;;EAE/B;AAED,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,8CAiEpE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hisptz/dhis2-analytics",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -36,8 +36,8 @@
36
36
  "tsup": "^8.0.1",
37
37
  "typescript": "^5.3.3",
38
38
  "usehooks-ts": "^2.9.2",
39
- "@repo/eslint-config": "0.0.0",
40
- "@repo/typescript-config": "0.0.0"
39
+ "@repo/typescript-config": "0.0.0",
40
+ "@repo/eslint-config": "0.0.0"
41
41
  },
42
42
  "dependencies": {
43
43
  "@react-leaflet/core": "^2.1.0",
@@ -55,8 +55,8 @@
55
55
  "react-query": "^3.39.3",
56
56
  "react-spring": "^9.6.1",
57
57
  "screenfull": "^6.0.2",
58
- "@hisptz/dhis2-utils": "2.0.1",
59
- "@hisptz/dhis2-ui": "2.0.1"
58
+ "@hisptz/dhis2-ui": "2.0.2",
59
+ "@hisptz/dhis2-utils": "2.0.2"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "@dhis2/app-runtime": "^3.10.2",