@redus/georedus-ui 0.8.8 → 0.9.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.
- package/CHANGELOG.md +29 -0
- package/dist/index.d.ts +2 -0
- package/dist/main.js +6400 -3896
- package/dist/viewSpecs/basemaps/dataviz/index.d.ts +53 -0
- package/dist/viewSpecs/basemaps/index.d.ts +2 -0
- package/dist/viewSpecs/basemaps/satellite/index.d.ts +53 -0
- package/dist/viewSpecs/basemaps/util/br_municipios/index.d.ts +39 -0
- package/dist/viewSpecs/basemaps/util/maptiler/index.d.ts +20 -0
- package/dist/viewSpecs/basemaps/util/maptiler/maptiler-dataviz-map-style.d.ts +2044 -0
- package/dist/viewSpecs/basemaps/util/maptiler/maptiler-satellite-map-style.d.ts +588 -0
- package/dist/viewSpecs/development/overture_places_poc.d.ts +32 -0
- package/dist/viewSpecs/presets/cem_censo/2010_2022/buildings/index.d.ts +65 -0
- package/dist/viewSpecs/presets/cem_censo/2010_2022/chartUtil.d.ts +26 -0
- package/dist/viewSpecs/presets/cem_censo/2010_2022/confSchema.d.ts +87 -0
- package/dist/viewSpecs/presets/cem_censo/2010_2022/customGeoJSON/index.d.ts +93 -0
- package/dist/viewSpecs/presets/cem_censo/2010_2022/dataUtil.d.ts +13 -0
- package/dist/viewSpecs/presets/cem_censo/2010_2022/download.d.ts +11 -0
- package/dist/viewSpecs/presets/{cem_censo_2010_2022 → cem_censo/2010_2022}/index.d.ts +5 -117
- package/dist/viewSpecs/presets/cem_censo/2010_2022/metadata.d.ts +67 -0
- package/dist/viewSpecs/presets/cem_censo/2010_2022/parseSchema.d.ts +13 -0
- package/dist/viewSpecs/presets/cem_censo/2010_2022/setor_censitario/index.d.ts +71 -0
- package/dist/viewSpecs/presets/cem_censo/2022/choropleth/constants.d.ts +2 -0
- package/dist/viewSpecs/presets/cem_censo/2022/choropleth/index.d.ts +31 -0
- package/dist/viewSpecs/presets/cem_censo/2022/choropleth/intrabr/index.d.ts +35 -0
- package/dist/viewSpecs/presets/cem_censo/2022/choropleth/intrabr/metadata.d.ts +12 -0
- package/dist/viewSpecs/presets/cem_censo/2022/choropleth/intrabr/municipio.d.ts +34 -0
- package/dist/viewSpecs/presets/cem_censo/2022/choropleth/intramun/buildings.d.ts +51 -0
- package/dist/viewSpecs/presets/cem_censo/2022/choropleth/intramun/customGeoJson.d.ts +104 -0
- package/dist/viewSpecs/presets/cem_censo/2022/choropleth/intramun/index.d.ts +205 -0
- package/dist/viewSpecs/presets/cem_censo/2022/choropleth/intramun/metadata/defaultMetadata.d.ts +11 -0
- package/dist/viewSpecs/presets/cem_censo/2022/choropleth/intramun/metadata/index.d.ts +10 -0
- package/dist/viewSpecs/presets/cem_censo/2022/choropleth/intramun/metadata/util.d.ts +1 -0
- package/dist/viewSpecs/presets/cem_censo/2022/choropleth/intramun/setor_censitario.d.ts +112 -0
- package/dist/viewSpecs/presets/cem_censo/2022/choropleth/intrauf/index.d.ts +36 -0
- package/dist/viewSpecs/presets/cem_censo/2022/choropleth/intrauf/metadata.d.ts +12 -0
- package/dist/viewSpecs/presets/cem_censo/2022/choropleth/intrauf/municipio.d.ts +35 -0
- package/dist/viewSpecs/presets/cem_censo/2022/index.d.ts +130 -0
- package/dist/viewSpecs/presets/index.d.ts +2 -1
- package/dist/viewSpecs/resolveView/resolveView.d.ts +4 -4
- package/dist/viewSpecs/resolveView/tmp_resolveView.future.d.ts +1 -1
- package/dist/viewSpecs/zIndexes.d.ts +4 -0
- package/package.json +18 -13
- package/dist/DevControls/importViewSpecsFromCsv/index.d.ts +0 -6
- /package/dist/GeoReDUS/{useMapStyle.d.ts → _useMapStyle.d.ts} +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export function chartUtil(viewSpec: any, allViewSpecs: any, context: any): {
|
|
2
|
+
NUMBER_FMT: (string | (string | string[])[] | (string | {
|
|
3
|
+
style: string;
|
|
4
|
+
})[] | {}[])[];
|
|
5
|
+
_color_scheme: any;
|
|
6
|
+
_legends: {
|
|
7
|
+
type: string;
|
|
8
|
+
title: (string | string[])[];
|
|
9
|
+
unit: (string | string[])[];
|
|
10
|
+
steps: (string | (string | (string | string[])[])[])[];
|
|
11
|
+
format: {
|
|
12
|
+
number: (string | (string | string[])[] | (string | {
|
|
13
|
+
style: string;
|
|
14
|
+
})[] | {}[])[];
|
|
15
|
+
below: string;
|
|
16
|
+
above: (string | (string | string[])[] | null)[];
|
|
17
|
+
};
|
|
18
|
+
__filterFeaturesForStep: (stepInfo: any, features: any) => any;
|
|
19
|
+
}[];
|
|
20
|
+
_variableValueTooltipEntry: (string | (string | (string | (string | string[])[])[] | {
|
|
21
|
+
number: (string | (string | string[])[] | (string | {
|
|
22
|
+
style: string;
|
|
23
|
+
})[] | {}[])[];
|
|
24
|
+
})[])[][];
|
|
25
|
+
};
|
|
26
|
+
export const INSUFFICIENT_DATA_COLOR: "red";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export function confSchema(viewSpec: any, allViewSpecs: any, context: any, { PARSED_SCHEMA }: {
|
|
2
|
+
PARSED_SCHEMA: any;
|
|
3
|
+
}): {
|
|
4
|
+
data: {
|
|
5
|
+
variableId: {
|
|
6
|
+
label: string;
|
|
7
|
+
type: string;
|
|
8
|
+
options: any;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
clearable: boolean;
|
|
11
|
+
defaultValue: any;
|
|
12
|
+
};
|
|
13
|
+
customSpatialAggregationUnit: {
|
|
14
|
+
type: string;
|
|
15
|
+
label: string;
|
|
16
|
+
helperText: string;
|
|
17
|
+
};
|
|
18
|
+
pointsDisplayMode: {
|
|
19
|
+
inactive: {
|
|
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
|
+
clearable: boolean;
|
|
28
|
+
type: string;
|
|
29
|
+
label: string;
|
|
30
|
+
options: {
|
|
31
|
+
path: null;
|
|
32
|
+
label: string;
|
|
33
|
+
value: string;
|
|
34
|
+
}[];
|
|
35
|
+
defaultValue: string;
|
|
36
|
+
};
|
|
37
|
+
bufferSize: {
|
|
38
|
+
type: string;
|
|
39
|
+
label: {
|
|
40
|
+
[x: string]: any;
|
|
41
|
+
$$resolver: symbol;
|
|
42
|
+
context?: any;
|
|
43
|
+
defaultValue?: import("@orioro/resolve").ResolutionNode | any;
|
|
44
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
45
|
+
value: any;
|
|
46
|
+
};
|
|
47
|
+
helperText: string;
|
|
48
|
+
min: number;
|
|
49
|
+
max: number;
|
|
50
|
+
step: number;
|
|
51
|
+
defaultValue: number;
|
|
52
|
+
inactive: {
|
|
53
|
+
[x: string]: any;
|
|
54
|
+
$$resolver: symbol;
|
|
55
|
+
context?: any;
|
|
56
|
+
defaultValue?: import("@orioro/resolve").ResolutionNode | any;
|
|
57
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
58
|
+
value: any;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
dissolveOverlappingGeometries: {
|
|
62
|
+
inactive: {
|
|
63
|
+
[x: string]: any;
|
|
64
|
+
$$resolver: symbol;
|
|
65
|
+
context?: any;
|
|
66
|
+
defaultValue?: import("@orioro/resolve").ResolutionNode | any;
|
|
67
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
68
|
+
value: any;
|
|
69
|
+
};
|
|
70
|
+
type: string;
|
|
71
|
+
label: string;
|
|
72
|
+
description: string;
|
|
73
|
+
defaultValue: boolean;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
style: {
|
|
77
|
+
layerOpacity: {
|
|
78
|
+
type: string;
|
|
79
|
+
label: string;
|
|
80
|
+
size: string;
|
|
81
|
+
min: number;
|
|
82
|
+
max: number;
|
|
83
|
+
step: number;
|
|
84
|
+
defaultValue: number;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export function customGeoJSON(viewSpec: any, allViewSpecs: any, context: any, { CHART_UTIL }: {
|
|
2
|
+
CHART_UTIL: any;
|
|
3
|
+
}): {
|
|
4
|
+
sources: {
|
|
5
|
+
customGeoJSON_Points: (string | {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
$$resolver: symbol;
|
|
8
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
9
|
+
dependencies: any;
|
|
10
|
+
value: (...args: any[]) => any;
|
|
11
|
+
defaultValue?: any;
|
|
12
|
+
context?: any;
|
|
13
|
+
} | (string | string[])[][] | null)[];
|
|
14
|
+
customGeoJSON_LineStrings: (string | {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
$$resolver: symbol;
|
|
17
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
18
|
+
dependencies: any;
|
|
19
|
+
value: (...args: any[]) => any;
|
|
20
|
+
defaultValue?: any;
|
|
21
|
+
context?: any;
|
|
22
|
+
} | (string | string[])[][] | null)[];
|
|
23
|
+
customGeoJSON_Areas: (string | {
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
$$resolver: symbol;
|
|
26
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
27
|
+
dependencies: any;
|
|
28
|
+
value: (...args: any[]) => any;
|
|
29
|
+
defaultValue?: any;
|
|
30
|
+
context?: any;
|
|
31
|
+
} | (string | string[])[][] | null)[];
|
|
32
|
+
};
|
|
33
|
+
layers: {
|
|
34
|
+
customGeoJSON_Areas_fill: {
|
|
35
|
+
hidden: (string | string[])[];
|
|
36
|
+
source: string;
|
|
37
|
+
type: string;
|
|
38
|
+
legends: any;
|
|
39
|
+
tooltip: {
|
|
40
|
+
title: (string | (string | (string | (string | (string | string[])[])[])[])[])[];
|
|
41
|
+
entries: any[];
|
|
42
|
+
};
|
|
43
|
+
paint: {
|
|
44
|
+
'fill-color': (string | (string | string[])[] | (string | (string | (string | number | (string | string[])[])[])[][])[])[];
|
|
45
|
+
'fill-opacity': string[];
|
|
46
|
+
'fill-outline-color': string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
customGeoJSON_Areas_line: {
|
|
50
|
+
hidden: (string | string[])[];
|
|
51
|
+
source: string;
|
|
52
|
+
type: string;
|
|
53
|
+
paint: {
|
|
54
|
+
'line-color': any;
|
|
55
|
+
'line-width': number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
customGeoJSON_LineStrings_line: {
|
|
59
|
+
hidden: (string | string[])[];
|
|
60
|
+
source: string;
|
|
61
|
+
type: string;
|
|
62
|
+
paint: {
|
|
63
|
+
'line-color': any;
|
|
64
|
+
'line-width': number;
|
|
65
|
+
};
|
|
66
|
+
tooltip: {
|
|
67
|
+
title: (string | (string | (string | (string | (string | string[])[])[])[])[])[];
|
|
68
|
+
entries: (string | (string | string[])[])[];
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
customGeoJSON_Points_circle: {
|
|
72
|
+
hidden: (string | (string | (string | string[])[])[])[];
|
|
73
|
+
source: string;
|
|
74
|
+
type: string;
|
|
75
|
+
paint: {
|
|
76
|
+
'circle-opacity': number;
|
|
77
|
+
'circle-radius': number;
|
|
78
|
+
'circle-stroke-width': number;
|
|
79
|
+
'circle-stroke-color': string;
|
|
80
|
+
'circle-color': string;
|
|
81
|
+
};
|
|
82
|
+
tooltip: {
|
|
83
|
+
title: (string | (string | (string | (string | (string | string[])[])[])[])[])[];
|
|
84
|
+
entries: (string | (string | string[])[])[];
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
customGeoJSON_Points_heatmap: {
|
|
88
|
+
hidden: (string | (string | (string | string[])[])[])[];
|
|
89
|
+
source: string;
|
|
90
|
+
type: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function dataUtil(viewSpec: any, allViewSpecs: any, context: any, { PARSED_SCHEMA }: {
|
|
2
|
+
PARSED_SCHEMA: any;
|
|
3
|
+
}): {
|
|
4
|
+
_resolveDataUrl: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
$$resolver: symbol;
|
|
7
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
8
|
+
dependencies: any;
|
|
9
|
+
value: (...args: any[]) => any;
|
|
10
|
+
defaultValue?: any;
|
|
11
|
+
context?: any;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function download(viewSpec: any, allViewSpecs: any, context: any, { PARSED_SCHEMA }: {
|
|
2
|
+
PARSED_SCHEMA: any;
|
|
3
|
+
}): {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
$$resolver: symbol;
|
|
6
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
7
|
+
dependencies: any;
|
|
8
|
+
value: (...args: any[]) => any;
|
|
9
|
+
defaultValue?: any;
|
|
10
|
+
context?: any;
|
|
11
|
+
};
|
|
@@ -4,18 +4,14 @@ export function cem_censo_2010_2022(viewSpec: any, allViewSpecs: any, context: a
|
|
|
4
4
|
label: any;
|
|
5
5
|
metodology: any;
|
|
6
6
|
sourceLabel: string;
|
|
7
|
-
viewType: string;
|
|
8
7
|
keywords: any[];
|
|
8
|
+
viewType: string;
|
|
9
9
|
confSchema: {
|
|
10
10
|
data: {
|
|
11
11
|
variableId: {
|
|
12
12
|
label: string;
|
|
13
13
|
type: string;
|
|
14
|
-
options:
|
|
15
|
-
path: any;
|
|
16
|
-
label: any;
|
|
17
|
-
value: any;
|
|
18
|
-
}[];
|
|
14
|
+
options: any;
|
|
19
15
|
placeholder: string;
|
|
20
16
|
clearable: boolean;
|
|
21
17
|
defaultValue: any;
|
|
@@ -107,15 +103,7 @@ export function cem_censo_2010_2022(viewSpec: any, allViewSpecs: any, context: a
|
|
|
107
103
|
context?: any;
|
|
108
104
|
} | null)[];
|
|
109
105
|
} | (string | {
|
|
110
|
-
variableValues: (string | (string |
|
|
111
|
-
[x: string]: any;
|
|
112
|
-
$$resolver: symbol;
|
|
113
|
-
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
114
|
-
dependencies: any;
|
|
115
|
-
value: (...args: any[]) => any;
|
|
116
|
-
defaultValue?: any;
|
|
117
|
-
context?: any;
|
|
118
|
-
})[])[] | (string | {
|
|
106
|
+
variableValues: (string | (string | any[])[] | (string | {
|
|
119
107
|
href: any;
|
|
120
108
|
pathname: string;
|
|
121
109
|
method?: undefined;
|
|
@@ -158,89 +146,6 @@ export function cem_censo_2010_2022(viewSpec: any, allViewSpecs: any, context: a
|
|
|
158
146
|
})[])[];
|
|
159
147
|
};
|
|
160
148
|
sources: {
|
|
161
|
-
[x: string]: {
|
|
162
|
-
bounds: {
|
|
163
|
-
[x: string]: any;
|
|
164
|
-
$$resolver: symbol;
|
|
165
|
-
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
166
|
-
dependencies: any;
|
|
167
|
-
value: (...args: any[]) => any;
|
|
168
|
-
defaultValue?: any;
|
|
169
|
-
context?: any;
|
|
170
|
-
};
|
|
171
|
-
type: string;
|
|
172
|
-
tiles: string[];
|
|
173
|
-
minzoom: number;
|
|
174
|
-
maxzoom: number;
|
|
175
|
-
} | {
|
|
176
|
-
bounds: {
|
|
177
|
-
[x: string]: any;
|
|
178
|
-
$$resolver: symbol;
|
|
179
|
-
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
180
|
-
dependencies: any;
|
|
181
|
-
value: (...args: any[]) => any;
|
|
182
|
-
defaultValue?: any;
|
|
183
|
-
context?: any;
|
|
184
|
-
};
|
|
185
|
-
type: string;
|
|
186
|
-
tiles: string[];
|
|
187
|
-
} | (string | {
|
|
188
|
-
[x: string]: any;
|
|
189
|
-
$$resolver: symbol;
|
|
190
|
-
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
191
|
-
dependencies: any;
|
|
192
|
-
value: (...args: any[]) => any;
|
|
193
|
-
defaultValue?: any;
|
|
194
|
-
context?: any;
|
|
195
|
-
} | (string | string[])[][] | null)[] | {
|
|
196
|
-
type: string;
|
|
197
|
-
attribution: string;
|
|
198
|
-
minzoom: number;
|
|
199
|
-
maxzoom: number;
|
|
200
|
-
promoteId: string;
|
|
201
|
-
bounds: {
|
|
202
|
-
[x: string]: any;
|
|
203
|
-
$$resolver: symbol;
|
|
204
|
-
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
205
|
-
dependencies: any;
|
|
206
|
-
value: (...args: any[]) => any;
|
|
207
|
-
defaultValue?: any;
|
|
208
|
-
context?: any;
|
|
209
|
-
};
|
|
210
|
-
tiles: {
|
|
211
|
-
[x: string]: any;
|
|
212
|
-
$$resolver: symbol;
|
|
213
|
-
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
214
|
-
dependencies: any;
|
|
215
|
-
value: (...args: any[]) => any;
|
|
216
|
-
defaultValue?: any;
|
|
217
|
-
context?: any;
|
|
218
|
-
}[];
|
|
219
|
-
} | {
|
|
220
|
-
type: string;
|
|
221
|
-
attribution: string;
|
|
222
|
-
minzoom: number;
|
|
223
|
-
maxzoom: number;
|
|
224
|
-
bounds: {
|
|
225
|
-
[x: string]: any;
|
|
226
|
-
$$resolver: symbol;
|
|
227
|
-
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
228
|
-
dependencies: any;
|
|
229
|
-
value: (...args: any[]) => any;
|
|
230
|
-
defaultValue?: any;
|
|
231
|
-
context?: any;
|
|
232
|
-
};
|
|
233
|
-
tiles: {
|
|
234
|
-
[x: string]: any;
|
|
235
|
-
$$resolver: symbol;
|
|
236
|
-
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
237
|
-
dependencies: any;
|
|
238
|
-
value: (...args: any[]) => any;
|
|
239
|
-
defaultValue?: any;
|
|
240
|
-
context?: any;
|
|
241
|
-
}[];
|
|
242
|
-
promoteId?: undefined;
|
|
243
|
-
};
|
|
244
149
|
customGeoJSON_Points: (string | {
|
|
245
150
|
[x: string]: any;
|
|
246
151
|
$$resolver: symbol;
|
|
@@ -274,27 +179,10 @@ export function cem_censo_2010_2022(viewSpec: any, allViewSpecs: any, context: a
|
|
|
274
179
|
hidden: (string | string[])[];
|
|
275
180
|
source: string;
|
|
276
181
|
type: string;
|
|
277
|
-
legends:
|
|
278
|
-
type: string;
|
|
279
|
-
title: (string | string[])[];
|
|
280
|
-
unit: (string | string[])[];
|
|
281
|
-
steps: (string | (string | (string | string[])[])[])[];
|
|
282
|
-
format: {
|
|
283
|
-
number: (string | (string | string[])[] | (string | {
|
|
284
|
-
style: string;
|
|
285
|
-
})[] | {}[])[];
|
|
286
|
-
below: string;
|
|
287
|
-
above: (string | (string | string[])[] | null)[];
|
|
288
|
-
};
|
|
289
|
-
__filterFeaturesForStep: (stepInfo: any, features: any) => any;
|
|
290
|
-
}[];
|
|
182
|
+
legends: any;
|
|
291
183
|
tooltip: {
|
|
292
184
|
title: (string | (string | (string | (string | (string | string[])[])[])[])[])[];
|
|
293
|
-
entries:
|
|
294
|
-
number: (string | (string | string[])[] | (string | {
|
|
295
|
-
style: string;
|
|
296
|
-
})[] | {}[])[];
|
|
297
|
-
})[])[][][];
|
|
185
|
+
entries: any[];
|
|
298
186
|
};
|
|
299
187
|
paint: {
|
|
300
188
|
'fill-color': (string | (string | string[])[] | (string | (string | (string | number | (string | string[])[])[])[][])[])[];
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export function metadata(viewSpec: any, allViewSpecs: any, context: any, { PARSED_SCHEMA, DATA_UTIL, CHART_UTIL }: {
|
|
2
|
+
PARSED_SCHEMA: any;
|
|
3
|
+
DATA_UTIL: any;
|
|
4
|
+
CHART_UTIL: any;
|
|
5
|
+
}): {
|
|
6
|
+
_value: (string | {
|
|
7
|
+
customGeoJSON: (string | (string | string[])[] | {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
$$resolver: symbol;
|
|
10
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
11
|
+
dependencies: any;
|
|
12
|
+
value: (...args: any[]) => any;
|
|
13
|
+
defaultValue?: any;
|
|
14
|
+
context?: any;
|
|
15
|
+
} | null)[];
|
|
16
|
+
} | (string | {
|
|
17
|
+
variableValues: (string | (string | any[])[] | (string | {
|
|
18
|
+
href: any;
|
|
19
|
+
pathname: string;
|
|
20
|
+
method?: undefined;
|
|
21
|
+
headers?: undefined;
|
|
22
|
+
body?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
method: string;
|
|
25
|
+
headers: {
|
|
26
|
+
'Content-Type': string;
|
|
27
|
+
};
|
|
28
|
+
body: {
|
|
29
|
+
geometries: (string | string[])[];
|
|
30
|
+
view: string;
|
|
31
|
+
agg_column: string[];
|
|
32
|
+
agg_type: (string | (string | string[])[])[];
|
|
33
|
+
};
|
|
34
|
+
href?: undefined;
|
|
35
|
+
pathname?: undefined;
|
|
36
|
+
})[])[];
|
|
37
|
+
municipioData: (string | (string | {
|
|
38
|
+
[x: string]: any;
|
|
39
|
+
$$resolver: symbol;
|
|
40
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
41
|
+
dependencies: any;
|
|
42
|
+
value: (...args: any[]) => any;
|
|
43
|
+
defaultValue?: any;
|
|
44
|
+
context?: any;
|
|
45
|
+
})[])[];
|
|
46
|
+
labels?: undefined;
|
|
47
|
+
measureUnits?: undefined;
|
|
48
|
+
customGeoJSON?: undefined;
|
|
49
|
+
colorScaleStops?: undefined;
|
|
50
|
+
} | {
|
|
51
|
+
labels: any;
|
|
52
|
+
measureUnits: any;
|
|
53
|
+
variableValues: string[];
|
|
54
|
+
municipioData: string[];
|
|
55
|
+
customGeoJSON: string[];
|
|
56
|
+
colorScaleStops: any[];
|
|
57
|
+
})[])[];
|
|
58
|
+
};
|
|
59
|
+
export const _resolveSourceBounds: {
|
|
60
|
+
[x: string]: any;
|
|
61
|
+
$$resolver: symbol;
|
|
62
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
63
|
+
dependencies: any;
|
|
64
|
+
value: (...args: any[]) => any;
|
|
65
|
+
defaultValue?: any;
|
|
66
|
+
context?: any;
|
|
67
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function parseSchema(viewSpec: any, allViewSpecs: any, context: any): {
|
|
2
|
+
viewId: string;
|
|
3
|
+
path: any;
|
|
4
|
+
label: any;
|
|
5
|
+
metodology: any;
|
|
6
|
+
keywords: any[];
|
|
7
|
+
year: any;
|
|
8
|
+
variants: any[];
|
|
9
|
+
variantsByVariableId: any;
|
|
10
|
+
labels: any;
|
|
11
|
+
measureUnits: any;
|
|
12
|
+
sourceLabel: string;
|
|
13
|
+
} | null;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export function setor_censitario(viewSpec: any, allViewSpecs: any, context: any, { PARSED_SCHEMA, DATA_UTIL, CHART_UTIL }: {
|
|
2
|
+
PARSED_SCHEMA: any;
|
|
3
|
+
DATA_UTIL: any;
|
|
4
|
+
CHART_UTIL: any;
|
|
5
|
+
}): {
|
|
6
|
+
sources: {
|
|
7
|
+
[x: string]: {
|
|
8
|
+
type: string;
|
|
9
|
+
attribution: any;
|
|
10
|
+
minzoom: number;
|
|
11
|
+
maxzoom: number;
|
|
12
|
+
promoteId: string;
|
|
13
|
+
bounds: {
|
|
14
|
+
[x: string]: any;
|
|
15
|
+
$$resolver: symbol;
|
|
16
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
17
|
+
dependencies: any;
|
|
18
|
+
value: (...args: any[]) => any;
|
|
19
|
+
defaultValue?: any;
|
|
20
|
+
context?: any;
|
|
21
|
+
};
|
|
22
|
+
tiles: {
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
$$resolver: symbol;
|
|
25
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
26
|
+
dependencies: any;
|
|
27
|
+
value: (...args: any[]) => any;
|
|
28
|
+
defaultValue?: any;
|
|
29
|
+
context?: any;
|
|
30
|
+
}[];
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
layers: {
|
|
34
|
+
[x: string]: {
|
|
35
|
+
hidden: (string | (string | string[])[])[];
|
|
36
|
+
interactive: boolean;
|
|
37
|
+
legends: any;
|
|
38
|
+
tooltip: {
|
|
39
|
+
title: null;
|
|
40
|
+
entries: any[];
|
|
41
|
+
};
|
|
42
|
+
source: string;
|
|
43
|
+
'source-layer': string;
|
|
44
|
+
type: string;
|
|
45
|
+
paint: {
|
|
46
|
+
'fill-color': (string | (string | (string | number | (string | string[])[])[])[][])[];
|
|
47
|
+
'fill-opacity': (string | number | (string | number | (string | boolean | string[])[])[])[];
|
|
48
|
+
'fill-outline-color': string;
|
|
49
|
+
"line-color"?: undefined;
|
|
50
|
+
"line-width"?: undefined;
|
|
51
|
+
"line-opacity"?: undefined;
|
|
52
|
+
};
|
|
53
|
+
} | {
|
|
54
|
+
hidden: (string | (string | string[])[])[];
|
|
55
|
+
source: string;
|
|
56
|
+
'source-layer': string;
|
|
57
|
+
type: string;
|
|
58
|
+
interactive: boolean;
|
|
59
|
+
paint: {
|
|
60
|
+
'line-color': any;
|
|
61
|
+
'line-width': (string | number | (string | number | (string | boolean | string[])[])[])[];
|
|
62
|
+
'line-opacity': (string | number | (string | boolean | string[])[])[];
|
|
63
|
+
"fill-color"?: undefined;
|
|
64
|
+
"fill-opacity"?: undefined;
|
|
65
|
+
'fill-outline-color'?: undefined;
|
|
66
|
+
};
|
|
67
|
+
legends?: undefined;
|
|
68
|
+
tooltip?: undefined;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export function choropleth(opts: any): {
|
|
2
|
+
moduleId: string;
|
|
3
|
+
metadata: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
$$resolver: symbol;
|
|
6
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
7
|
+
dependencies: any;
|
|
8
|
+
value: (...args: any[]) => any;
|
|
9
|
+
defaultValue?: any;
|
|
10
|
+
context?: any;
|
|
11
|
+
};
|
|
12
|
+
sources: {
|
|
13
|
+
[x: string]: any;
|
|
14
|
+
$$resolver: symbol;
|
|
15
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
16
|
+
dependencies: any;
|
|
17
|
+
value: (...args: any[]) => any;
|
|
18
|
+
defaultValue?: any;
|
|
19
|
+
context?: any;
|
|
20
|
+
};
|
|
21
|
+
layers: {
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
$$resolver: symbol;
|
|
24
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
25
|
+
dependencies: any;
|
|
26
|
+
value: (...args: any[]) => any;
|
|
27
|
+
defaultValue?: any;
|
|
28
|
+
context?: any;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export * from "./constants";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export namespace intrabr {
|
|
2
|
+
export { metadata };
|
|
3
|
+
export function sources(opts: any): {
|
|
4
|
+
"ibge_malha_br_municipio_2024.geom": {
|
|
5
|
+
type: string;
|
|
6
|
+
attribution: any;
|
|
7
|
+
bounds: string[];
|
|
8
|
+
promoteId: string;
|
|
9
|
+
tiles: {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
$$resolver: symbol;
|
|
12
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
13
|
+
dependencies: any;
|
|
14
|
+
value: (...args: any[]) => any;
|
|
15
|
+
defaultValue?: any;
|
|
16
|
+
context?: any;
|
|
17
|
+
}[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export function layers(opts: any): {
|
|
21
|
+
"ibge_malha_br_municipio_2024.geom_fill": {
|
|
22
|
+
hidden: (string | (string | string[])[])[];
|
|
23
|
+
interactive: boolean;
|
|
24
|
+
source: string;
|
|
25
|
+
'source-layer': string;
|
|
26
|
+
type: string;
|
|
27
|
+
paint: {
|
|
28
|
+
'fill-color': (string | (string | (string | number | (string | string[])[])[])[][])[];
|
|
29
|
+
'fill-opacity': (string | number | (string | boolean | string[])[])[];
|
|
30
|
+
'fill-outline-color': string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
import { metadata } from './metadata';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function metadata({ GLOBAL_CONTEXT, PARSED_SCHEMA }: {
|
|
2
|
+
GLOBAL_CONTEXT: any;
|
|
3
|
+
PARSED_SCHEMA: any;
|
|
4
|
+
}): {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
$$resolver: symbol;
|
|
7
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
8
|
+
dependencies: any;
|
|
9
|
+
value: (...args: any[]) => any;
|
|
10
|
+
defaultValue?: any;
|
|
11
|
+
context?: any;
|
|
12
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export function municipio_sources({ GLOBAL_CONTEXT, PARSED_SCHEMA }: {
|
|
2
|
+
GLOBAL_CONTEXT: any;
|
|
3
|
+
PARSED_SCHEMA: any;
|
|
4
|
+
}): {
|
|
5
|
+
"ibge_malha_br_municipio_2024.geom": {
|
|
6
|
+
type: string;
|
|
7
|
+
attribution: any;
|
|
8
|
+
bounds: string[];
|
|
9
|
+
promoteId: string;
|
|
10
|
+
tiles: {
|
|
11
|
+
[x: string]: any;
|
|
12
|
+
$$resolver: symbol;
|
|
13
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
14
|
+
dependencies: any;
|
|
15
|
+
value: (...args: any[]) => any;
|
|
16
|
+
defaultValue?: any;
|
|
17
|
+
context?: any;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export function municipio_layers(): {
|
|
22
|
+
"ibge_malha_br_municipio_2024.geom_fill": {
|
|
23
|
+
hidden: (string | (string | string[])[])[];
|
|
24
|
+
interactive: boolean;
|
|
25
|
+
source: string;
|
|
26
|
+
'source-layer': string;
|
|
27
|
+
type: string;
|
|
28
|
+
paint: {
|
|
29
|
+
'fill-color': (string | (string | (string | number | (string | string[])[])[])[][])[];
|
|
30
|
+
'fill-opacity': (string | number | (string | boolean | string[])[])[];
|
|
31
|
+
'fill-outline-color': string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|