@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,130 @@
|
|
|
1
|
+
export function cem_censo_2022(viewSpec: any, allViewSpecs: any, context: any): {
|
|
2
|
+
id: string;
|
|
3
|
+
path: any;
|
|
4
|
+
label: any;
|
|
5
|
+
metodology: any;
|
|
6
|
+
sourceLabel: string;
|
|
7
|
+
keywords: any[];
|
|
8
|
+
viewType: string;
|
|
9
|
+
confSchema: {
|
|
10
|
+
data: import("lodash").Omit<{
|
|
11
|
+
variableId: {
|
|
12
|
+
label: string;
|
|
13
|
+
type: string;
|
|
14
|
+
options: any;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
clearable: boolean;
|
|
17
|
+
defaultValue: any;
|
|
18
|
+
};
|
|
19
|
+
customSpatialAggregationUnit: {
|
|
20
|
+
type: string;
|
|
21
|
+
label: string;
|
|
22
|
+
helperText: string;
|
|
23
|
+
};
|
|
24
|
+
pointsDisplayMode: {
|
|
25
|
+
inactive: {
|
|
26
|
+
[x: string]: any;
|
|
27
|
+
$$resolver: symbol;
|
|
28
|
+
context?: any;
|
|
29
|
+
defaultValue?: import("@orioro/resolve").ResolutionNode | any;
|
|
30
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
31
|
+
value: any;
|
|
32
|
+
};
|
|
33
|
+
clearable: boolean;
|
|
34
|
+
type: string;
|
|
35
|
+
label: string;
|
|
36
|
+
options: {
|
|
37
|
+
path: null;
|
|
38
|
+
label: string;
|
|
39
|
+
value: string;
|
|
40
|
+
}[];
|
|
41
|
+
defaultValue: string;
|
|
42
|
+
};
|
|
43
|
+
bufferSize: {
|
|
44
|
+
type: string;
|
|
45
|
+
label: {
|
|
46
|
+
[x: string]: any;
|
|
47
|
+
$$resolver: symbol;
|
|
48
|
+
context?: any;
|
|
49
|
+
defaultValue?: import("@orioro/resolve").ResolutionNode | any;
|
|
50
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
51
|
+
value: any;
|
|
52
|
+
};
|
|
53
|
+
helperText: string;
|
|
54
|
+
min: number;
|
|
55
|
+
max: number;
|
|
56
|
+
step: number;
|
|
57
|
+
defaultValue: number;
|
|
58
|
+
inactive: {
|
|
59
|
+
[x: string]: any;
|
|
60
|
+
$$resolver: symbol;
|
|
61
|
+
context?: any;
|
|
62
|
+
defaultValue?: import("@orioro/resolve").ResolutionNode | any;
|
|
63
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
64
|
+
value: any;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
dissolveOverlappingGeometries: {
|
|
68
|
+
inactive: {
|
|
69
|
+
[x: string]: any;
|
|
70
|
+
$$resolver: symbol;
|
|
71
|
+
context?: any;
|
|
72
|
+
defaultValue?: import("@orioro/resolve").ResolutionNode | any;
|
|
73
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
74
|
+
value: any;
|
|
75
|
+
};
|
|
76
|
+
type: string;
|
|
77
|
+
label: string;
|
|
78
|
+
description: string;
|
|
79
|
+
defaultValue: boolean;
|
|
80
|
+
};
|
|
81
|
+
}, "dissolveOverlappingGeometries">;
|
|
82
|
+
style: {
|
|
83
|
+
layerOpacity: {
|
|
84
|
+
type: string;
|
|
85
|
+
label: string;
|
|
86
|
+
size: string;
|
|
87
|
+
min: number;
|
|
88
|
+
max: number;
|
|
89
|
+
step: number;
|
|
90
|
+
defaultValue: number;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
metadata: {
|
|
95
|
+
[x: string]: any;
|
|
96
|
+
$$resolver: symbol;
|
|
97
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
98
|
+
dependencies: any;
|
|
99
|
+
value: (...args: any[]) => any;
|
|
100
|
+
defaultValue?: any;
|
|
101
|
+
context?: any;
|
|
102
|
+
};
|
|
103
|
+
sources: {
|
|
104
|
+
[x: string]: any;
|
|
105
|
+
$$resolver: symbol;
|
|
106
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
107
|
+
dependencies: any;
|
|
108
|
+
value: (...args: any[]) => any;
|
|
109
|
+
defaultValue?: any;
|
|
110
|
+
context?: any;
|
|
111
|
+
};
|
|
112
|
+
layers: {
|
|
113
|
+
[x: string]: any;
|
|
114
|
+
$$resolver: symbol;
|
|
115
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
116
|
+
dependencies: any;
|
|
117
|
+
value: (...args: any[]) => any;
|
|
118
|
+
defaultValue?: any;
|
|
119
|
+
context?: any;
|
|
120
|
+
};
|
|
121
|
+
download: {
|
|
122
|
+
[x: string]: any;
|
|
123
|
+
$$resolver: symbol;
|
|
124
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
125
|
+
dependencies: any;
|
|
126
|
+
value: (...args: any[]) => any;
|
|
127
|
+
defaultValue?: any;
|
|
128
|
+
context?: any;
|
|
129
|
+
};
|
|
130
|
+
} | null;
|
|
@@ -3,10 +3,10 @@ export declare const STAGE_VALUE_KEY = "_value";
|
|
|
3
3
|
export declare const STAGE_SPECIAL_KEYS: string[];
|
|
4
4
|
export declare function resolveConfSchema(viewSpec: ViewSpec, partialView: Partial<ResolvedView>, viewResolutionContextBase: ViewResolutionContextBase): Partial<ResolvedView>;
|
|
5
5
|
export declare const resolveMetadata: (viewSpec: ViewSpec, partialViewAtStage: Pick<ResolvedView, "conf">, viewResolutionContextBase: ViewResolutionContextBase) => Promise<import("../types").ViewMetadata>;
|
|
6
|
-
export declare const resolveSources: (viewSpec: ViewSpec, partialViewAtStage: Pick<ResolvedView, "
|
|
7
|
-
export declare const resolveLayers: (viewSpec: ViewSpec, partialViewAtStage: Pick<ResolvedView, "
|
|
8
|
-
export declare const resolveControls: (viewSpec: ViewSpec, partialViewAtStage: Pick<ResolvedView, "
|
|
9
|
-
export declare const resolveDownload: (viewSpec: ViewSpec, partialViewAtStage: Pick<ResolvedView, "
|
|
6
|
+
export declare const resolveSources: (viewSpec: ViewSpec, partialViewAtStage: Pick<ResolvedView, "metadata" | "conf">, viewResolutionContextBase: ViewResolutionContextBase) => Promise<Record<string, any>>;
|
|
7
|
+
export declare const resolveLayers: (viewSpec: ViewSpec, partialViewAtStage: Pick<ResolvedView, "metadata" | "sources" | "conf">, viewResolutionContextBase: ViewResolutionContextBase) => Promise<Record<string, import("@orioro/react-maplibre-util").MapViewLayer>>;
|
|
8
|
+
export declare const resolveControls: (viewSpec: ViewSpec, partialViewAtStage: Pick<ResolvedView, "metadata" | "sources" | "layers" | "conf">, viewResolutionContextBase: ViewResolutionContextBase) => Promise<import("../types").ViewControls>;
|
|
9
|
+
export declare const resolveDownload: (viewSpec: ViewSpec, partialViewAtStage: Pick<ResolvedView, "metadata" | "sources" | "layers" | "conf">, viewResolutionContextBase: ViewResolutionContextBase) => Promise<import("../types").ViewDownload>;
|
|
10
10
|
export declare function resolveView(viewSpec: ViewSpec, viewConf: ResolvedViewConf, viewResolutionContextBase: ViewResolutionContextBase): Promise<{
|
|
11
11
|
id: string;
|
|
12
12
|
keywords: string | string[] | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResolvedView, ResolvedViewConf, ViewSpec, ViewResolutionContextBase } from '../types';
|
|
2
2
|
export declare const resolveViewMetadata: (viewSpec: ViewSpec, partialViewAtStage: Pick<ResolvedView, "conf">, viewResolutionContextBase: ViewResolutionContextBase) => Promise<import("../types").ViewMetadata>;
|
|
3
|
-
export declare const resolveViewSources: (viewSpec: ViewSpec, partialViewAtStage: Pick<ResolvedView, "
|
|
3
|
+
export declare const resolveViewSources: (viewSpec: ViewSpec, partialViewAtStage: Pick<ResolvedView, "metadata" | "conf">, viewResolutionContextBase: ViewResolutionContextBase) => Promise<Record<string, any>>;
|
|
4
4
|
export declare function resolveView(viewSpec: ViewSpec, viewConf: ResolvedViewConf, viewResolutionContextBase: ViewResolutionContextBase): Promise<{
|
|
5
5
|
id: string;
|
|
6
6
|
keywords: string | string[] | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redus/georedus-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"packageManager": "yarn@4.0.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"prepublish": "yarn build",
|
|
21
21
|
"build": "rm -rf dist && rollup --config ./rollup.config.mjs",
|
|
22
22
|
"dev": "storybook dev -p 6006",
|
|
23
|
-
"build-storybook": "storybook build"
|
|
23
|
+
"build-storybook": "storybook build",
|
|
24
|
+
"deploy-storybook": "yarn build-storybook && gh-pages -d storybook-static"
|
|
24
25
|
},
|
|
25
26
|
"peerDependencies": {
|
|
26
27
|
"@radix-ui/themes": "^3.0.1",
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
"@orioro/react-versioned-state": "^0.0.2",
|
|
35
36
|
"@radix-ui/themes": "^3.0.1",
|
|
36
37
|
"@types/geojson": "^7946.0.16",
|
|
38
|
+
"gh-pages": "^6.3.0",
|
|
37
39
|
"maplibre-gl": "^5.1.0",
|
|
38
40
|
"next": "14.1.0",
|
|
39
41
|
"react": "^18.2.0",
|
|
@@ -48,30 +50,33 @@
|
|
|
48
50
|
"@mdi/react": "^1.6.1",
|
|
49
51
|
"@orioro/cast": "^0.0.2",
|
|
50
52
|
"@orioro/get": "^0.0.2",
|
|
51
|
-
"@orioro/react-chart-util": "^0.
|
|
52
|
-
"@orioro/react-csv": "^0.0.
|
|
53
|
-
"@orioro/react-dialogs": "^0.0.
|
|
54
|
-
"@orioro/react-dir-nav": "^0.
|
|
55
|
-
"@orioro/react-maplibre-util": "^0.
|
|
56
|
-
"@orioro/react-sortable": "^0.0.
|
|
57
|
-
"@orioro/react-ui-core": "^0.0.
|
|
58
|
-
"@orioro/resolve": "^0.1.
|
|
59
|
-
"@orioro/scale-util": "^0.0.
|
|
53
|
+
"@orioro/react-chart-util": "^0.3.0",
|
|
54
|
+
"@orioro/react-csv": "^0.0.11",
|
|
55
|
+
"@orioro/react-dialogs": "^0.0.10",
|
|
56
|
+
"@orioro/react-dir-nav": "^0.2.0",
|
|
57
|
+
"@orioro/react-maplibre-util": "^0.6.0",
|
|
58
|
+
"@orioro/react-sortable": "^0.0.10",
|
|
59
|
+
"@orioro/react-ui-core": "^0.0.14",
|
|
60
|
+
"@orioro/resolve": "^0.1.9",
|
|
61
|
+
"@orioro/scale-util": "^0.0.9",
|
|
60
62
|
"@orioro/tree-model": "^0.0.2",
|
|
61
|
-
"@orioro/util": "^0.
|
|
63
|
+
"@orioro/util": "^0.14.0",
|
|
62
64
|
"@orioro/validate": "^0.0.2",
|
|
63
|
-
"@orioro/vector-tile-util": "^0.
|
|
65
|
+
"@orioro/vector-tile-util": "^0.3.0",
|
|
64
66
|
"@radix-ui/react-collapsible": "^1.1.3",
|
|
65
67
|
"@tanstack/react-query": "^5.18.0",
|
|
66
68
|
"@turf/turf": "^7.1.0",
|
|
69
|
+
"colord": "^2.9.3",
|
|
67
70
|
"comlink": "^4.4.2",
|
|
68
71
|
"d3-dsv": "^3.0.1",
|
|
72
|
+
"d3-interpolate": "^3.0.1",
|
|
69
73
|
"d3-scale-chromatic": "^3.1.0",
|
|
70
74
|
"file-saver": "^2.0.5",
|
|
71
75
|
"gdal3.js": "^2.8.1",
|
|
72
76
|
"katex": "^0.16.22",
|
|
73
77
|
"lodash": "^4.17.21",
|
|
74
78
|
"query-string": "^9.1.1",
|
|
79
|
+
"react-confetti": "^6.1.0",
|
|
75
80
|
"react-copy-to-clipboard": "^5.1.0",
|
|
76
81
|
"react-highlight-words": "^0.21.0",
|
|
77
82
|
"react-share": "^5.1.0",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export function importViewSpecsFromCsv(dialogs: any): Promise<Record<string, any>[] | typeof CANCELLED>;
|
|
2
|
-
export namespace COLLECTION_SCHEMAS {
|
|
3
|
-
export { ibge_malha_br_setor_censitario_2010 };
|
|
4
|
-
export { ibge_malha_br_setor_censitario_2022 };
|
|
5
|
-
}
|
|
6
|
-
import { CANCELLED } from '@orioro/react-ui-core';
|
|
File without changes
|