@hisptz/dhis2-analytics 1.0.6 → 1.0.8

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 (86) hide show
  1. package/build/cjs/components/ChartAnalytics/index.js +14 -5
  2. package/build/cjs/components/Map/components/MapControls/components/DownloadControl/index.js +1 -1
  3. package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js +6 -2
  4. package/build/es/components/ChartAnalytics/index.js +4 -3
  5. package/build/es/components/Map/components/MapControls/components/DownloadControl/index.js +1 -1
  6. package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js +5 -1
  7. package/build/types/components/ChartAnalytics/components/DownloadMenu/components/Menu.d.ts +8 -0
  8. package/build/types/components/ChartAnalytics/components/DownloadMenu/constants/menu.d.ts +7 -0
  9. package/build/types/components/ChartAnalytics/components/DownloadMenu/index.d.ts +9 -0
  10. package/build/types/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.d.ts +1 -0
  11. package/build/types/components/ChartAnalytics/hooks/useChart.d.ts +11 -0
  12. package/build/types/components/ChartAnalytics/index.d.ts +7 -0
  13. package/build/types/components/ChartAnalytics/models/column.d.ts +12 -0
  14. package/build/types/components/ChartAnalytics/models/index.d.ts +17 -0
  15. package/build/types/components/ChartAnalytics/models/line.d.ts +8 -0
  16. package/build/types/components/ChartAnalytics/models/multi-series.d.ts +9 -0
  17. package/build/types/components/ChartAnalytics/models/pie.d.ts +8 -0
  18. package/build/types/components/ChartAnalytics/services/export.d.ts +8 -0
  19. package/build/types/components/ChartAnalytics/types/props.d.ts +43 -0
  20. package/build/types/components/ChartAnalytics/utils/chart.d.ts +15 -0
  21. package/build/types/components/CircularProgressDashboard/index.d.ts +3 -0
  22. package/build/types/components/CircularProgressDashboard/types/props.d.ts +17 -0
  23. package/build/types/components/Map/components/EarthEngineLayerConfiguration/index.d.ts +17 -0
  24. package/build/types/components/Map/components/MapArea/index.d.ts +5 -0
  25. package/build/types/components/Map/components/MapArea/interfaces/index.d.ts +30 -0
  26. package/build/types/components/Map/components/MapControls/components/CustomControl/index.d.ts +7 -0
  27. package/build/types/components/Map/components/MapControls/components/DownloadControl/index.d.ts +8 -0
  28. package/build/types/components/Map/components/MapControls/components/FullscreenControl/index.d.ts +5 -0
  29. package/build/types/components/Map/components/MapControls/index.d.ts +6 -0
  30. package/build/types/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.d.ts +1 -0
  31. package/build/types/components/Map/components/MapLayer/components/BoundaryLayer/index.d.ts +15 -0
  32. package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.d.ts +17 -0
  33. package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.d.ts +4 -0
  34. package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.d.ts +9 -0
  35. package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/index.d.ts +4 -0
  36. package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.d.ts +58 -0
  37. package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.d.ts +1 -0
  38. package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.d.ts +55 -0
  39. package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.d.ts +20 -0
  40. package/build/types/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.d.ts +6 -0
  41. package/build/types/components/Map/components/MapLayer/components/LegendArea/index.d.ts +9 -0
  42. package/build/types/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.d.ts +3 -0
  43. package/build/types/components/Map/components/MapLayer/components/PointLayer/hooks/index.d.ts +2 -0
  44. package/build/types/components/Map/components/MapLayer/components/PointLayer/index.d.ts +2 -0
  45. package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.d.ts +13 -0
  46. package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.d.ts +10 -0
  47. package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.d.ts +16 -0
  48. package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.d.ts +12 -0
  49. package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.d.ts +21 -0
  50. package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.d.ts +12 -0
  51. package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.d.ts +5 -0
  52. package/build/types/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.d.ts +2 -0
  53. package/build/types/components/Map/components/MapLayer/components/ThematicLayer/index.d.ts +5 -0
  54. package/build/types/components/Map/components/MapLayer/index.d.ts +6 -0
  55. package/build/types/components/Map/components/MapLayer/interfaces/index.d.ts +123 -0
  56. package/build/types/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.d.ts +9 -0
  57. package/build/types/components/Map/components/MapProvider/components/MapLayerProvider/index.d.ts +6 -0
  58. package/build/types/components/Map/components/MapProvider/hooks/index.d.ts +15 -0
  59. package/build/types/components/Map/components/MapProvider/index.d.ts +3 -0
  60. package/build/types/components/Map/components/MapUpdater/index.d.ts +5 -0
  61. package/build/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.d.ts +8 -0
  62. package/build/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.d.ts +419 -0
  63. package/build/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.d.ts +9 -0
  64. package/build/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.d.ts +11 -0
  65. package/build/types/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.d.ts +2 -0
  66. package/build/types/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.d.ts +8 -0
  67. package/build/types/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.d.ts +9 -0
  68. package/build/types/components/Map/components/ThematicLayerConfiguration/index.d.ts +18 -0
  69. package/build/types/components/Map/constants/colors.d.ts +419 -0
  70. package/build/types/components/Map/constants/legendSet.d.ts +7 -0
  71. package/build/types/components/Map/hooks/map.d.ts +9 -0
  72. package/build/types/components/Map/index.d.ts +8 -0
  73. package/build/types/components/Map/interfaces/index.d.ts +65 -0
  74. package/build/types/components/Map/state/index.d.ts +20 -0
  75. package/build/types/components/Map/utils/colors.d.ts +12 -0
  76. package/build/types/components/Map/utils/helpers.d.ts +6 -0
  77. package/build/types/components/Map/utils/map.d.ts +40 -0
  78. package/build/types/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.d.ts +8 -0
  79. package/build/types/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.d.ts +2 -0
  80. package/build/types/components/SingleValueContainer/index.d.ts +5 -0
  81. package/build/types/components/SingleValueContainer/types/props.d.ts +15 -0
  82. package/build/types/dataProviders/map.d.ts +4 -0
  83. package/build/types/index.d.ts +4 -0
  84. package/package.json +7 -3
  85. package/build/cjs/index.test.js +0 -7
  86. package/build/es/index.test.js +0 -6
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export default function ThematicLayer({ layerId, index }: {
3
+ layerId: string;
4
+ index: number;
5
+ }): JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { CustomBoundaryLayer, CustomGoogleEngineLayer, CustomPointLayer, CustomThematicLayer } from "./interfaces";
3
+ export default function MapLayer({ layer, index, }: {
4
+ layer: CustomThematicLayer | CustomBoundaryLayer | CustomPointLayer | CustomGoogleEngineLayer;
5
+ index: number;
6
+ }): JSX.Element | null;
@@ -0,0 +1,123 @@
1
+ import type { Legend } from "@hisptz/dhis2-utils";
2
+ import { MapOrgUnit, PointOrgUnit } from "../../../interfaces";
3
+ import { LegendColorScale } from "../../../utils/colors";
4
+ import { EarthEngineOptions } from "../components/GoogleEngineLayer/interfaces";
5
+ import { EarthEngine } from "../components/GoogleEngineLayer/services/engine";
6
+ export type BoundaryLayerType = "basemap" | "overlay";
7
+ export type ThematicLayerType = "choropleth" | "bubble";
8
+ export declare const SUPPORTED_EARTH_ENGINE_LAYERS: string[];
9
+ export type GoogleEngineLayerType = "population" | "footprints" | "elevation" | "landCover";
10
+ export interface CustomBoundaryLayer extends CustomMapLayer {
11
+ id: string;
12
+ type: BoundaryLayerType;
13
+ enabled: boolean;
14
+ }
15
+ export interface EarthEngineLayerConfig extends CustomMapLayer {
16
+ type: GoogleEngineLayerType;
17
+ aggregations?: string[];
18
+ name?: string;
19
+ filters?: {
20
+ period: string;
21
+ };
22
+ params?: {
23
+ min: number;
24
+ max: number;
25
+ palette?: string;
26
+ };
27
+ }
28
+ export interface CustomGoogleEngineLayer extends CustomMapLayer {
29
+ type: GoogleEngineLayerType;
30
+ options: EarthEngineOptions;
31
+ aggregations?: string[];
32
+ name: string;
33
+ url: string;
34
+ engine?: EarthEngine;
35
+ }
36
+ export interface CustomPointLayer extends CustomMapLayer {
37
+ id: string;
38
+ type: "point";
39
+ label?: string;
40
+ level?: string | number;
41
+ group?: string;
42
+ style?: {
43
+ icon?: string;
44
+ groupSet?: string;
45
+ orgUnitGroups?: Array<{
46
+ name: string;
47
+ symbol: string;
48
+ }>;
49
+ };
50
+ points?: Array<PointOrgUnit>;
51
+ }
52
+ export type DataItemType = "dataElement" | "indicator" | "programIndicator";
53
+ export interface ThematicLayerDataItem {
54
+ id: string;
55
+ displayName: string;
56
+ type: DataItemType;
57
+ legendSet?: string;
58
+ legendConfig?: {
59
+ colorClass: LegendColorScale;
60
+ scale: number;
61
+ };
62
+ }
63
+ export interface ThematicLayerControl {
64
+ position: "topleft" | "topright" | "bottomleft" | "bottomright";
65
+ enabled: boolean;
66
+ }
67
+ export interface ThematicLayerData {
68
+ orgUnit: MapOrgUnit;
69
+ data?: number;
70
+ dataItem: ThematicLayerDataItem;
71
+ }
72
+ export interface ThematicLayerRawData {
73
+ orgUnit: string;
74
+ data?: number;
75
+ dataItem: string;
76
+ }
77
+ export interface CustomChoroplethLayer extends CustomMapLayer {
78
+ enabled: boolean;
79
+ name?: string;
80
+ data: ThematicLayerData[];
81
+ dataItem: ThematicLayerDataItem;
82
+ type: "choropleth";
83
+ control?: ThematicLayerControl;
84
+ legends?: Legend[];
85
+ }
86
+ export interface CustomBubbleLayer extends CustomMapLayer {
87
+ enabled: boolean;
88
+ name?: string;
89
+ data: ThematicLayerData[];
90
+ dataItem: ThematicLayerDataItem;
91
+ type: "bubble";
92
+ control?: ThematicLayerControl;
93
+ legends?: Legend[];
94
+ radius?: {
95
+ min: number;
96
+ max: number;
97
+ };
98
+ }
99
+ export type CustomThematicLayer = CustomBubbleLayer | CustomChoroplethLayer;
100
+ export interface ThematicLayerConfig {
101
+ id: string;
102
+ data?: ThematicLayerRawData[];
103
+ enabled: boolean;
104
+ name?: string;
105
+ dataItem: ThematicLayerDataItem;
106
+ type: ThematicLayerType;
107
+ control?: ThematicLayerControl;
108
+ radius?: {
109
+ min: number;
110
+ max: number;
111
+ };
112
+ }
113
+ export interface CustomMapLayer {
114
+ id: string;
115
+ type: string;
116
+ enabled: boolean;
117
+ }
118
+ export type MapLayer = CustomBoundaryLayer | ThematicLayerConfig | CustomPointLayer | CustomGoogleEngineLayer;
119
+ export interface MapLayerProps {
120
+ enabled: boolean;
121
+ type: "boundary" | "thematic" | "external" | "point" | "earthEngine";
122
+ layer: MapLayer;
123
+ }
@@ -0,0 +1,9 @@
1
+ import { CustomGoogleEngineLayer, CustomPointLayer, EarthEngineLayerConfig } from "../../../../MapLayer/interfaces";
2
+ export declare function useThematicLayers(): any;
3
+ export declare function usePointLayer(): {
4
+ loading: boolean;
5
+ sanitizeLayer: (layer: CustomPointLayer) => Promise<CustomPointLayer | undefined>;
6
+ };
7
+ export declare function useGoogleEngineLayers(): {
8
+ sanitizeLayers: (layers: EarthEngineLayerConfig[]) => Promise<CustomGoogleEngineLayer[]>;
9
+ };
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import { MapLayerConfig } from "../../../MapArea/interfaces";
3
+ export declare function MapLayersProvider({ layers, children }: {
4
+ layers: MapLayerConfig;
5
+ children: React.ReactNode;
6
+ }): JSX.Element;
@@ -0,0 +1,15 @@
1
+ export declare function useMapOrganisationUnit(): {
2
+ orgUnitSelection: import("@hisptz/dhis2-utils").OrgUnitSelection;
3
+ orgUnits?: import("../../..").MapOrgUnit[] | undefined;
4
+ };
5
+ export declare function useMapPeriods(): {
6
+ periods?: import("@hisptz/dhis2-utils").BasePeriod[] | undefined;
7
+ range?: {
8
+ start: Date;
9
+ end: Date;
10
+ } | undefined;
11
+ } | undefined;
12
+ export declare function useMapLayers(): {
13
+ layers: import("../../MapLayer/interfaces").CustomMapLayer[];
14
+ updateLayer: (id: string, updatedLayer: import("../../MapLayer/interfaces").CustomMapLayer) => void;
15
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { MapProviderProps } from "../../interfaces";
3
+ export declare function MapProvider({ children, orgUnitSelection, periodSelection }: MapProviderProps): JSX.Element | null;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { LatLngTuple } from "leaflet";
3
+ export default function MapUpdater({ bounds }: {
4
+ bounds: LatLngTuple[];
5
+ }): JSX.Element;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const ColorScale: ({ scale, bins, width, onClick }: {
3
+ scale: string;
4
+ bins: number;
5
+ width: number;
6
+ onClick: (scale: string) => void;
7
+ }) => JSX.Element;
8
+ export default ColorScale;
@@ -0,0 +1,419 @@
1
+ export declare const COLOR_PALETTES: {
2
+ YlGn: {
3
+ 3: string[];
4
+ 4: string[];
5
+ 5: string[];
6
+ 6: string[];
7
+ 7: string[];
8
+ 8: string[];
9
+ 9: string[];
10
+ };
11
+ YlGnBu: {
12
+ 3: string[];
13
+ 4: string[];
14
+ 5: string[];
15
+ 6: string[];
16
+ 7: string[];
17
+ 8: string[];
18
+ 9: string[];
19
+ };
20
+ GnBu: {
21
+ 3: string[];
22
+ 4: string[];
23
+ 5: string[];
24
+ 6: string[];
25
+ 7: string[];
26
+ 8: string[];
27
+ 9: string[];
28
+ };
29
+ BuGn: {
30
+ 3: string[];
31
+ 4: string[];
32
+ 5: string[];
33
+ 6: string[];
34
+ 7: string[];
35
+ 8: string[];
36
+ 9: string[];
37
+ };
38
+ PuBuGn: {
39
+ 3: string[];
40
+ 4: string[];
41
+ 5: string[];
42
+ 6: string[];
43
+ 7: string[];
44
+ 8: string[];
45
+ 9: string[];
46
+ };
47
+ PuBu: {
48
+ 3: string[];
49
+ 4: string[];
50
+ 5: string[];
51
+ 6: string[];
52
+ 7: string[];
53
+ 8: string[];
54
+ 9: string[];
55
+ };
56
+ BuPu: {
57
+ 3: string[];
58
+ 4: string[];
59
+ 5: string[];
60
+ 6: string[];
61
+ 7: string[];
62
+ 8: string[];
63
+ 9: string[];
64
+ };
65
+ RdPu: {
66
+ 3: string[];
67
+ 4: string[];
68
+ 5: string[];
69
+ 6: string[];
70
+ 7: string[];
71
+ 8: string[];
72
+ 9: string[];
73
+ };
74
+ PuRd: {
75
+ 3: string[];
76
+ 4: string[];
77
+ 5: string[];
78
+ 6: string[];
79
+ 7: string[];
80
+ 8: string[];
81
+ 9: string[];
82
+ };
83
+ OrRd: {
84
+ 3: string[];
85
+ 4: string[];
86
+ 5: string[];
87
+ 6: string[];
88
+ 7: string[];
89
+ 8: string[];
90
+ 9: string[];
91
+ };
92
+ YlOrRd: {
93
+ 3: string[];
94
+ 4: string[];
95
+ 5: string[];
96
+ 6: string[];
97
+ 7: string[];
98
+ 8: string[];
99
+ 9: string[];
100
+ };
101
+ YlOrBr: {
102
+ 3: string[];
103
+ 4: string[];
104
+ 5: string[];
105
+ 6: string[];
106
+ 7: string[];
107
+ 8: string[];
108
+ 9: string[];
109
+ };
110
+ Purples: {
111
+ 3: string[];
112
+ 4: string[];
113
+ 5: string[];
114
+ 6: string[];
115
+ 7: string[];
116
+ 8: string[];
117
+ 9: string[];
118
+ };
119
+ Blues: {
120
+ 3: string[];
121
+ 4: string[];
122
+ 5: string[];
123
+ 6: string[];
124
+ 7: string[];
125
+ 8: string[];
126
+ 9: string[];
127
+ };
128
+ Greens: {
129
+ 3: string[];
130
+ 4: string[];
131
+ 5: string[];
132
+ 6: string[];
133
+ 7: string[];
134
+ 8: string[];
135
+ 9: string[];
136
+ };
137
+ Oranges: {
138
+ 3: string[];
139
+ 4: string[];
140
+ 5: string[];
141
+ 6: string[];
142
+ 7: string[];
143
+ 8: string[];
144
+ 9: string[];
145
+ };
146
+ Reds: {
147
+ 3: string[];
148
+ 4: string[];
149
+ 5: string[];
150
+ 6: string[];
151
+ 7: string[];
152
+ 8: string[];
153
+ 9: string[];
154
+ };
155
+ Greys: {
156
+ 3: string[];
157
+ 4: string[];
158
+ 5: string[];
159
+ 6: string[];
160
+ 7: string[];
161
+ 8: string[];
162
+ 9: string[];
163
+ };
164
+ PuOr: {
165
+ 3: string[];
166
+ 4: string[];
167
+ 5: string[];
168
+ 6: string[];
169
+ 7: string[];
170
+ 8: string[];
171
+ 9: string[];
172
+ 10: string[];
173
+ 11: string[];
174
+ };
175
+ BrBG: {
176
+ 3: string[];
177
+ 4: string[];
178
+ 5: string[];
179
+ 6: string[];
180
+ 7: string[];
181
+ 8: string[];
182
+ 9: string[];
183
+ 10: string[];
184
+ 11: string[];
185
+ };
186
+ PRGn: {
187
+ 3: string[];
188
+ 4: string[];
189
+ 5: string[];
190
+ 6: string[];
191
+ 7: string[];
192
+ 8: string[];
193
+ 9: string[];
194
+ 10: string[];
195
+ 11: string[];
196
+ };
197
+ PiYG: {
198
+ 3: string[];
199
+ 4: string[];
200
+ 5: string[];
201
+ 6: string[];
202
+ 7: string[];
203
+ 8: string[];
204
+ 9: string[];
205
+ 10: string[];
206
+ 11: string[];
207
+ };
208
+ RdBu: {
209
+ 3: string[];
210
+ 4: string[];
211
+ 5: string[];
212
+ 6: string[];
213
+ 7: string[];
214
+ 8: string[];
215
+ 9: string[];
216
+ 10: string[];
217
+ 11: string[];
218
+ };
219
+ RdGy: {
220
+ 3: string[];
221
+ 4: string[];
222
+ 5: string[];
223
+ 6: string[];
224
+ 7: string[];
225
+ 8: string[];
226
+ 9: string[];
227
+ 10: string[];
228
+ 11: string[];
229
+ };
230
+ RdYlBu: {
231
+ 3: string[];
232
+ 4: string[];
233
+ 5: string[];
234
+ 6: string[];
235
+ 7: string[];
236
+ 8: string[];
237
+ 9: string[];
238
+ 10: string[];
239
+ 11: string[];
240
+ };
241
+ Spectral: {
242
+ 3: string[];
243
+ 4: string[];
244
+ 5: string[];
245
+ 6: string[];
246
+ 7: string[];
247
+ 8: string[];
248
+ 9: string[];
249
+ 10: string[];
250
+ 11: string[];
251
+ };
252
+ RdYlGn: {
253
+ 3: string[];
254
+ 4: string[];
255
+ 5: string[];
256
+ 6: string[];
257
+ 7: string[];
258
+ 8: string[];
259
+ 9: string[];
260
+ 10: string[];
261
+ 11: string[];
262
+ };
263
+ Accent: {
264
+ 3: string[];
265
+ 4: string[];
266
+ 5: string[];
267
+ 6: string[];
268
+ 7: string[];
269
+ 8: string[];
270
+ };
271
+ Dark2: {
272
+ 3: string[];
273
+ 4: string[];
274
+ 5: string[];
275
+ 6: string[];
276
+ 7: string[];
277
+ 8: string[];
278
+ };
279
+ Paired: {
280
+ 3: string[];
281
+ 4: string[];
282
+ 5: string[];
283
+ 6: string[];
284
+ 7: string[];
285
+ 8: string[];
286
+ 9: string[];
287
+ 10: string[];
288
+ 11: string[];
289
+ 12: string[];
290
+ };
291
+ Pastel1: {
292
+ 3: string[];
293
+ 4: string[];
294
+ 5: string[];
295
+ 6: string[];
296
+ 7: string[];
297
+ 8: string[];
298
+ 9: string[];
299
+ };
300
+ Pastel2: {
301
+ 3: string[];
302
+ 4: string[];
303
+ 5: string[];
304
+ 6: string[];
305
+ 7: string[];
306
+ 8: string[];
307
+ };
308
+ Set1: {
309
+ 3: string[];
310
+ 4: string[];
311
+ 5: string[];
312
+ 6: string[];
313
+ 7: string[];
314
+ 8: string[];
315
+ 9: string[];
316
+ };
317
+ Set2: {
318
+ 3: string[];
319
+ 4: string[];
320
+ 5: string[];
321
+ 6: string[];
322
+ 7: string[];
323
+ 8: string[];
324
+ };
325
+ Set3: {
326
+ 3: string[];
327
+ 4: string[];
328
+ 5: string[];
329
+ 6: string[];
330
+ 7: string[];
331
+ 8: string[];
332
+ 9: string[];
333
+ 10: string[];
334
+ 11: string[];
335
+ 12: string[];
336
+ };
337
+ YlOrBr_reverse: {
338
+ 3: string[];
339
+ 4: string[];
340
+ 5: string[];
341
+ 6: string[];
342
+ 7: string[];
343
+ 8: string[];
344
+ 9: string[];
345
+ };
346
+ Reds_reverse: {
347
+ 3: string[];
348
+ 4: string[];
349
+ 5: string[];
350
+ 6: string[];
351
+ 7: string[];
352
+ 8: string[];
353
+ 9: string[];
354
+ };
355
+ YlGn_reverse: {
356
+ 3: string[];
357
+ 4: string[];
358
+ 5: string[];
359
+ 6: string[];
360
+ 7: string[];
361
+ 8: string[];
362
+ 9: string[];
363
+ };
364
+ Greens_reverse: {
365
+ 3: string[];
366
+ 4: string[];
367
+ 5: string[];
368
+ 6: string[];
369
+ 7: string[];
370
+ 8: string[];
371
+ 9: string[];
372
+ };
373
+ Blues_reverse: {
374
+ 3: string[];
375
+ 4: string[];
376
+ 5: string[];
377
+ 6: string[];
378
+ 7: string[];
379
+ 8: string[];
380
+ 9: string[];
381
+ };
382
+ BuPu_reverse: {
383
+ 3: string[];
384
+ 4: string[];
385
+ 5: string[];
386
+ 6: string[];
387
+ 7: string[];
388
+ 8: string[];
389
+ 9: string[];
390
+ };
391
+ RdPu_reverse: {
392
+ 3: string[];
393
+ 4: string[];
394
+ 5: string[];
395
+ 6: string[];
396
+ 7: string[];
397
+ 8: string[];
398
+ 9: string[];
399
+ };
400
+ PuRd_reverse: {
401
+ 3: string[];
402
+ 4: string[];
403
+ 5: string[];
404
+ 6: string[];
405
+ 7: string[];
406
+ 8: string[];
407
+ 9: string[];
408
+ };
409
+ Greys_reverse: {
410
+ 3: string[];
411
+ 4: string[];
412
+ 5: string[];
413
+ 6: string[];
414
+ 7: string[];
415
+ 8: string[];
416
+ 9: string[];
417
+ };
418
+ };
419
+ export declare const qualitativeColors: string[];
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ declare const ColorScaleSelect: ({ colorClass, count, width, onChange, className, }: {
3
+ className?: string | undefined;
4
+ count: number;
5
+ width: number;
6
+ onChange: (palette: string) => void;
7
+ colorClass: string;
8
+ }) => JSX.Element;
9
+ export default ColorScaleSelect;
@@ -0,0 +1,11 @@
1
+ export declare const getColorPalette: (scale: string, classes: number) => any;
2
+ export declare const getColorScale: (palette: string) => string | undefined;
3
+ export declare const defaultColorScaleName = "YlOrBr";
4
+ export declare const defaultClasses = 5;
5
+ export declare const defaultColorScale: any;
6
+ export declare const cssColor: (color: any) => any;
7
+ export declare const getUniqueColor: (defaultColors: any) => (index: number) => any;
8
+ export declare const isDarkColor: (color: string) => boolean;
9
+ export declare const getContrastColor: (color: string) => "#fff" | "#000";
10
+ export type LegendColorScale = typeof colorScales[number];
11
+ export declare const colorScales: string[];
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function CustomLegend(): JSX.Element;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export default function IndicatorSelectorModal({ onUpdate, onClose, hide, selected, disabled, ...props }: {
3
+ onUpdate: (data: any) => void;
4
+ onClose: () => void;
5
+ hide: boolean;
6
+ selected: any;
7
+ disabled?: string[];
8
+ }): JSX.Element;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare function LegendSetSelector({ selected, onChange, error, required, ...props }: {
3
+ selected?: string;
4
+ onChange: (value: string) => void;
5
+ error?: {
6
+ message?: string;
7
+ };
8
+ required?: boolean;
9
+ }): JSX.Element;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { UseFormReturn } from "react-hook-form";
3
+ import { ThematicLayerConfig } from "../MapLayer/interfaces";
4
+ export interface ThematicLayerConfigurationProps {
5
+ exclude?: string[];
6
+ form: UseFormReturn<ThematicLayerConfig>;
7
+ [key: string]: any;
8
+ }
9
+ export declare function RadiusField(): JSX.Element;
10
+ export declare function ThematicLayerConfiguration({ exclude, form }: ThematicLayerConfigurationProps): JSX.Element;
11
+ export interface ThematicLayerConfigModalProps {
12
+ open: boolean;
13
+ config?: ThematicLayerConfig;
14
+ exclude?: string[];
15
+ onClose: () => void;
16
+ onChange: (config: ThematicLayerConfig) => void;
17
+ }
18
+ export declare function ThematicLayerConfigModal({ open, exclude, config, onClose, onChange, ...props }: ThematicLayerConfigModalProps): JSX.Element;