@redus/georedus-ui 0.10.0 → 0.11.0

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.
@@ -1,5 +1,10 @@
1
- export function fullMapStyle(): any;
2
- export function baseMapStyle(opts: any): {
1
+ export namespace dataviz {
2
+ export { fullMapStyle };
3
+ export { baseMapStyle };
4
+ export { topViews };
5
+ }
6
+ declare function fullMapStyle(): any;
7
+ declare function baseMapStyle(opts: any): {
3
8
  version: number;
4
9
  sources: {
5
10
  [k: string]: any;
@@ -8,7 +13,7 @@ export function baseMapStyle(opts: any): {
8
13
  sprite: any;
9
14
  layers: any;
10
15
  };
11
- export function topViews(opts: any): ({
16
+ declare function topViews(opts: any): ({
12
17
  id: string;
13
18
  sources: {
14
19
  "ibge_malha_br_municipio_2024.geom": {
@@ -46,8 +51,4 @@ export function topViews(opts: any): ({
46
51
  id: string;
47
52
  layers: any;
48
53
  })[];
49
- export namespace dataviz {
50
- export { fullMapStyle };
51
- export { baseMapStyle };
52
- export { topViews };
53
- }
54
+ export {};
@@ -1,5 +1,10 @@
1
- export function fullMapStyle(): any;
2
- export function baseMapStyle(): {
1
+ export namespace satellite {
2
+ export { fullMapStyle };
3
+ export { baseMapStyle };
4
+ export { topViews };
5
+ }
6
+ declare function fullMapStyle(): any;
7
+ declare function baseMapStyle(): {
3
8
  version: number;
4
9
  sources: {
5
10
  [k: string]: any;
@@ -8,7 +13,7 @@ export function baseMapStyle(): {
8
13
  sprite: any;
9
14
  layers: any;
10
15
  };
11
- export function topViews(opts: any): ({
16
+ declare function topViews(opts: any): ({
12
17
  id: string;
13
18
  sources: {
14
19
  "ibge_malha_br_municipio_2024.geom": {
@@ -46,8 +51,4 @@ export function topViews(opts: any): ({
46
51
  id: string;
47
52
  layers: any;
48
53
  })[];
49
- export namespace satellite {
50
- export { fullMapStyle };
51
- export { baseMapStyle };
52
- export { topViews };
53
- }
54
+ export {};
@@ -3,6 +3,7 @@ export function ana_br_bacias_hidrograficas(conf: any): {
3
3
  indicator_id: any;
4
4
  id: any;
5
5
  label: any;
6
+ sourceLabel: string;
6
7
  path: string;
7
8
  metadata: {};
8
9
  sources: {
@@ -6,10 +6,22 @@ export function curvatura({ RASTER_TILE_SERVER_ENDPOINT, mosaicJsonUrl }: {
6
6
  collection_id: string;
7
7
  indicator_id: string;
8
8
  id: string;
9
+ sourceLabel: string;
9
10
  label: string;
11
+ shortDescription: string;
10
12
  path: string;
13
+ metodology: import("react").JSX.Element;
11
14
  confSchema: {
12
- data: {};
15
+ data: {
16
+ curvaturaActiveClasses: {
17
+ type: string;
18
+ options: {
19
+ label: string;
20
+ value: number;
21
+ }[];
22
+ defaultValue: number[];
23
+ };
24
+ };
13
25
  };
14
26
  metadata: {};
15
27
  sources: {
@@ -36,6 +48,19 @@ export function curvatura({ RASTER_TILE_SERVER_ENDPOINT, mosaicJsonUrl }: {
36
48
  paint: {
37
49
  'raster-opacity': number;
38
50
  };
51
+ legends: {
52
+ type: string;
53
+ title: string;
54
+ items: {
55
+ [x: string]: any;
56
+ $$resolver: symbol;
57
+ $$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
58
+ dependencies: any;
59
+ value: (...args: any[]) => any;
60
+ defaultValue?: any;
61
+ context?: any;
62
+ };
63
+ }[];
39
64
  };
40
65
  };
41
66
  };
@@ -6,25 +6,20 @@ export function declividade({ RASTER_TILE_SERVER_ENDPOINT, mosaicJsonUrl }: {
6
6
  collection_id: string;
7
7
  indicator_id: string;
8
8
  id: string;
9
+ sourceLabel: string;
9
10
  label: string;
11
+ shortDescription: string;
10
12
  path: string;
13
+ metodology: import("react").JSX.Element;
11
14
  confSchema: {
12
15
  data: {
13
- declividadeRange: {
16
+ declividadeActiveClasses: {
14
17
  type: string;
15
- defaultValue: number[];
16
- step: number;
17
- min: number;
18
- max: number;
19
- label: {
20
- [x: string]: any;
21
- $$resolver: symbol;
22
- context?: any;
23
- defaultValue?: import("@orioro/resolve").ResolutionNode | any;
24
- $$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
25
- value: any;
26
- };
27
- helperText: string;
18
+ options: {
19
+ label: string;
20
+ value: string;
21
+ }[];
22
+ defaultValue: string[];
28
23
  };
29
24
  };
30
25
  };
@@ -57,10 +52,14 @@ export function declividade({ RASTER_TILE_SERVER_ENDPOINT, mosaicJsonUrl }: {
57
52
  type: string;
58
53
  title: string;
59
54
  items: {
60
- color: string;
61
- label: string;
62
- range: number[];
63
- }[];
55
+ [x: string]: any;
56
+ $$resolver: symbol;
57
+ $$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
58
+ dependencies: any;
59
+ value: (...args: any[]) => any;
60
+ defaultValue?: any;
61
+ context?: any;
62
+ };
64
63
  }[];
65
64
  };
66
65
  };
@@ -6,8 +6,11 @@ export function hand({ RASTER_TILE_SERVER_ENDPOINT, mosaicJsonUrl }: {
6
6
  collection_id: string;
7
7
  indicator_id: string;
8
8
  id: string;
9
+ sourceLabel: string;
9
10
  label: string;
11
+ shortDescription: string;
10
12
  path: string;
13
+ metodology: import("react").JSX.Element;
11
14
  confSchema: {
12
15
  data: {
13
16
  handValue: {
@@ -2,8 +2,10 @@ export function redus_mutirao_cop_2025(conf: any): {
2
2
  collection_id: string;
3
3
  indicator_id: string;
4
4
  id: string;
5
- label: string;
5
+ sourceLabel: string;
6
6
  path: string;
7
+ label: string;
8
+ shortDescription: string;
7
9
  metadata: {};
8
10
  sources: {
9
11
  "redus_mutirao_cop_2025.geom": {
@@ -63,7 +65,7 @@ export function redus_mutirao_cop_2025(conf: any): {
63
65
  unit: string;
64
66
  items: ({
65
67
  box: {
66
- children: "" | import("react").JSX.Element | null;
68
+ children: "" | React.JSX.Element | null;
67
69
  style: {
68
70
  borderRadius: string;
69
71
  borderColor: string;
@@ -76,7 +78,7 @@ export function redus_mutirao_cop_2025(conf: any): {
76
78
  icon: string;
77
79
  } | {
78
80
  box: {
79
- children: "" | import("react").JSX.Element | null;
81
+ children: "" | React.JSX.Element | null;
80
82
  style: {
81
83
  borderRadius: string;
82
84
  borderColor: string;
@@ -92,3 +94,4 @@ export function redus_mutirao_cop_2025(conf: any): {
92
94
  };
93
95
  };
94
96
  };
97
+ import React from 'react';
@@ -6,6 +6,9 @@ export function temperatura_superficie({ RASTER_TILE_SERVER_ENDPOINT, mosaicJson
6
6
  collection_id: string;
7
7
  indicator_id: string;
8
8
  id: string;
9
+ sourceLabel: string;
10
+ shortDescription: string;
11
+ metodology: import("react").JSX.Element;
9
12
  label: string;
10
13
  year: string;
11
14
  path: string;
@@ -29,6 +29,15 @@ export namespace intramun {
29
29
  type: string;
30
30
  attribution: any;
31
31
  minzoom: number;
32
+ bounds: {
33
+ [x: string]: any;
34
+ $$resolver: symbol;
35
+ $$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
36
+ dependencies: any;
37
+ value: (...args: any[]) => any;
38
+ defaultValue?: any;
39
+ context?: any;
40
+ };
32
41
  maxzoom: number;
33
42
  promoteId: string;
34
43
  tiles: {
@@ -149,11 +158,15 @@ export namespace intramun {
149
158
  }[];
150
159
  tooltip: {
151
160
  title: (string | (string | string[])[])[];
152
- entries: ((string | (string | string[])[])[] | (string | (string | string[] | {
153
- number: (string | (string | string[])[] | (string | {
154
- style: string;
155
- })[] | {}[])[];
156
- })[])[][])[];
161
+ entries: ((string | (string | string[])[])[] | ((string | string[])[] | (string | {
162
+ [x: string]: any;
163
+ $$resolver: symbol;
164
+ $$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
165
+ dependencies: any;
166
+ value: (...args: any[]) => any;
167
+ defaultValue?: any;
168
+ context?: any;
169
+ })[])[])[];
157
170
  };
158
171
  filter: {
159
172
  [x: string]: any;
@@ -7,5 +7,5 @@ export function defaultMetadata({ GLOBAL_CONTEXT, PARSED_SCHEMA }: {
7
7
  rawDataCacheUrl: string;
8
8
  rawData: Record<string, any>[];
9
9
  colorScheme: any;
10
- colorScaleStops: any[];
10
+ colorScaleStops: any;
11
11
  }>;
@@ -22,6 +22,15 @@ export function setor_censitario_sources({ GLOBAL_CONTEXT, PARSED_SCHEMA }: {
22
22
  type: string;
23
23
  attribution: any;
24
24
  minzoom: number;
25
+ bounds: {
26
+ [x: string]: any;
27
+ $$resolver: symbol;
28
+ $$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
29
+ dependencies: any;
30
+ value: (...args: any[]) => any;
31
+ defaultValue?: any;
32
+ context?: any;
33
+ };
25
34
  maxzoom: number;
26
35
  promoteId: string;
27
36
  tiles: {
@@ -58,11 +67,15 @@ export function setor_censitario_layers(opts: any): {
58
67
  }[];
59
68
  tooltip: {
60
69
  title: (string | (string | string[])[])[];
61
- entries: ((string | (string | string[])[])[] | (string | (string | string[] | {
62
- number: (string | (string | string[])[] | (string | {
63
- style: string;
64
- })[] | {}[])[];
65
- })[])[][])[];
70
+ entries: ((string | (string | string[])[])[] | ((string | string[])[] | (string | {
71
+ [x: string]: any;
72
+ $$resolver: symbol;
73
+ $$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
74
+ dependencies: any;
75
+ value: (...args: any[]) => any;
76
+ defaultValue?: any;
77
+ context?: any;
78
+ })[])[])[];
66
79
  };
67
80
  filter: {
68
81
  [x: string]: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redus/georedus-ui",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "packageManager": "yarn@4.0.2",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
@@ -46,6 +46,7 @@
46
46
  "storybook": "^8.0.0"
47
47
  },
48
48
  "dependencies": {
49
+ "@mapbox/tilebelt": "2.0.0",
49
50
  "@mdi/js": "^7.4.47",
50
51
  "@mdi/react": "^1.6.1",
51
52
  "@orioro/cast": "^0.0.2",
@@ -70,6 +71,7 @@
70
71
  "comlink": "^4.4.2",
71
72
  "d3-dsv": "^3.0.1",
72
73
  "d3-interpolate": "^3.0.1",
74
+ "d3-scale": "^4.0.2",
73
75
  "d3-scale-chromatic": "^3.1.0",
74
76
  "file-saver": "^2.0.5",
75
77
  "gdal3.js": "^2.8.1",
@@ -1 +0,0 @@
1
- export declare function useMapStyle(input: string | object, modifier?: (styleBase: Record<string, any>) => Record<string, any>): any;