@redus/georedus-ui 0.14.0 → 0.15.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 +285 -0
- package/dist/main.js +17 -11
- package/package.json +6 -6
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
# @orioro/template-react
|
|
2
|
+
|
|
3
|
+
## 0.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- expose SyncedMaps mouse event handlers and add svgImages to GeoReDUS
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @orioro/react-maplibre-util@0.7.0
|
|
13
|
+
- @orioro/react-chart-util@0.3.0
|
|
14
|
+
|
|
15
|
+
## 0.14.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- expose children and mapProps
|
|
20
|
+
|
|
21
|
+
## 0.13.1
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- fix icon import issue
|
|
26
|
+
|
|
27
|
+
## 0.13.0
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- add cop logo to mutirao
|
|
32
|
+
|
|
33
|
+
## 0.12.0
|
|
34
|
+
|
|
35
|
+
### Minor Changes
|
|
36
|
+
|
|
37
|
+
- add bacias hidrograficas and fix import issues
|
|
38
|
+
|
|
39
|
+
## 0.11.0
|
|
40
|
+
|
|
41
|
+
### Minor Changes
|
|
42
|
+
|
|
43
|
+
- implement detailed legends for climate datasets
|
|
44
|
+
|
|
45
|
+
## 0.10.1
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- fix missing react global import at redus_mutirao_cop_2025.jsx
|
|
50
|
+
|
|
51
|
+
## 0.10.0
|
|
52
|
+
|
|
53
|
+
### Minor Changes
|
|
54
|
+
|
|
55
|
+
- expose viewSpecs api (unstable)
|
|
56
|
+
|
|
57
|
+
## 0.9.0
|
|
58
|
+
|
|
59
|
+
### Minor Changes
|
|
60
|
+
|
|
61
|
+
- update all dependencies and multiple internal deps
|
|
62
|
+
|
|
63
|
+
### Patch Changes
|
|
64
|
+
|
|
65
|
+
- Updated dependencies
|
|
66
|
+
- @orioro/react-maplibre-util@0.6.0
|
|
67
|
+
- @orioro/react-chart-util@0.3.0
|
|
68
|
+
- @orioro/vector-tile-util@0.3.0
|
|
69
|
+
- @orioro/react-dir-nav@0.2.0
|
|
70
|
+
|
|
71
|
+
## 0.8.10
|
|
72
|
+
|
|
73
|
+
### Patch Changes
|
|
74
|
+
|
|
75
|
+
- Updated dependencies
|
|
76
|
+
- @orioro/react-maplibre-util@0.5.3
|
|
77
|
+
|
|
78
|
+
## 0.8.9
|
|
79
|
+
|
|
80
|
+
### Patch Changes
|
|
81
|
+
|
|
82
|
+
- fix issue related to impossibility of loading localhost layers due to synthetic json inability to handle colons (:)
|
|
83
|
+
- Updated dependencies
|
|
84
|
+
- @orioro/vector-tile-util@0.2.1
|
|
85
|
+
|
|
86
|
+
## 0.8.8
|
|
87
|
+
|
|
88
|
+
### Patch Changes
|
|
89
|
+
|
|
90
|
+
- add missing react import
|
|
91
|
+
|
|
92
|
+
## 0.8.7
|
|
93
|
+
|
|
94
|
+
### Patch Changes
|
|
95
|
+
|
|
96
|
+
- fix share button bar and add questions & suggestions button
|
|
97
|
+
|
|
98
|
+
## 0.8.6
|
|
99
|
+
|
|
100
|
+
### Patch Changes
|
|
101
|
+
|
|
102
|
+
- update dev metadata api url
|
|
103
|
+
|
|
104
|
+
## 0.8.5
|
|
105
|
+
|
|
106
|
+
### Patch Changes
|
|
107
|
+
|
|
108
|
+
- Updated dependencies
|
|
109
|
+
- @orioro/react-maplibre-util@0.5.2
|
|
110
|
+
|
|
111
|
+
## 0.8.4
|
|
112
|
+
|
|
113
|
+
### Patch Changes
|
|
114
|
+
|
|
115
|
+
- Updated dependencies
|
|
116
|
+
- @orioro/react-maplibre-util@0.5.1
|
|
117
|
+
|
|
118
|
+
## 0.8.3
|
|
119
|
+
|
|
120
|
+
### Patch Changes
|
|
121
|
+
|
|
122
|
+
- Updated dependencies
|
|
123
|
+
- @orioro/react-maplibre-util@0.5.0
|
|
124
|
+
|
|
125
|
+
## 0.8.2
|
|
126
|
+
|
|
127
|
+
### Patch Changes
|
|
128
|
+
|
|
129
|
+
- apply bounds to censo 2010 and 2022 sources
|
|
130
|
+
|
|
131
|
+
## 0.8.1
|
|
132
|
+
|
|
133
|
+
### Patch Changes
|
|
134
|
+
|
|
135
|
+
- fix municipio maxzoom
|
|
136
|
+
|
|
137
|
+
## 0.8.0
|
|
138
|
+
|
|
139
|
+
### Minor Changes
|
|
140
|
+
|
|
141
|
+
- integrate vtx protocol into censo data
|
|
142
|
+
|
|
143
|
+
### Patch Changes
|
|
144
|
+
|
|
145
|
+
- Updated dependencies
|
|
146
|
+
- @orioro/vector-tile-util@0.2.0
|
|
147
|
+
|
|
148
|
+
## 0.7.0
|
|
149
|
+
|
|
150
|
+
### Minor Changes
|
|
151
|
+
|
|
152
|
+
- implement proof of concept support for places layer
|
|
153
|
+
|
|
154
|
+
## 0.6.2
|
|
155
|
+
|
|
156
|
+
### Patch Changes
|
|
157
|
+
|
|
158
|
+
- fix: fix viewSpecs loading
|
|
159
|
+
|
|
160
|
+
## 0.6.1
|
|
161
|
+
|
|
162
|
+
### Patch Changes
|
|
163
|
+
|
|
164
|
+
- removes distinctions from rms (regiões metropolitanas) viewspecs
|
|
165
|
+
|
|
166
|
+
## 0.6.0
|
|
167
|
+
|
|
168
|
+
### Minor Changes
|
|
169
|
+
|
|
170
|
+
- enable 2022_variaveis_abr_25
|
|
171
|
+
|
|
172
|
+
## 0.5.0
|
|
173
|
+
|
|
174
|
+
### Minor Changes
|
|
175
|
+
|
|
176
|
+
- implement proof-of-concept of hover interaction on legend
|
|
177
|
+
|
|
178
|
+
### Patch Changes
|
|
179
|
+
|
|
180
|
+
- Updated dependencies
|
|
181
|
+
- @orioro/react-maplibre-util@0.4.0
|
|
182
|
+
- @orioro/react-chart-util@0.2.0
|
|
183
|
+
|
|
184
|
+
## 0.4.0
|
|
185
|
+
|
|
186
|
+
### Minor Changes
|
|
187
|
+
|
|
188
|
+
- add influence area to saude
|
|
189
|
+
|
|
190
|
+
## 0.3.2
|
|
191
|
+
|
|
192
|
+
### Patch Changes
|
|
193
|
+
|
|
194
|
+
- fix peerDependencies
|
|
195
|
+
- Updated dependencies
|
|
196
|
+
- @orioro/react-maplibre-util@0.3.2
|
|
197
|
+
|
|
198
|
+
## 0.3.1
|
|
199
|
+
|
|
200
|
+
### Patch Changes
|
|
201
|
+
|
|
202
|
+
- Updated dependencies
|
|
203
|
+
- @orioro/react-maplibre-util@0.3.1
|
|
204
|
+
|
|
205
|
+
## 0.3.0
|
|
206
|
+
|
|
207
|
+
### Minor Changes
|
|
208
|
+
|
|
209
|
+
- better support for 3d, refactor view resolution framework
|
|
210
|
+
|
|
211
|
+
### Patch Changes
|
|
212
|
+
|
|
213
|
+
- Updated dependencies
|
|
214
|
+
- @orioro/react-maplibre-util@0.3.0
|
|
215
|
+
|
|
216
|
+
## 0.2.0
|
|
217
|
+
|
|
218
|
+
### Minor Changes
|
|
219
|
+
|
|
220
|
+
- implement 3D maps
|
|
221
|
+
|
|
222
|
+
### Patch Changes
|
|
223
|
+
|
|
224
|
+
- Updated dependencies
|
|
225
|
+
- @orioro/react-maplibre-util@0.2.0
|
|
226
|
+
|
|
227
|
+
## 0.1.7
|
|
228
|
+
|
|
229
|
+
### Patch Changes
|
|
230
|
+
|
|
231
|
+
- add tslib to peerDependencies
|
|
232
|
+
|
|
233
|
+
## 0.1.6
|
|
234
|
+
|
|
235
|
+
### Patch Changes
|
|
236
|
+
|
|
237
|
+
- 239abbb: update dependencies
|
|
238
|
+
|
|
239
|
+
## 0.1.5
|
|
240
|
+
|
|
241
|
+
### Patch Changes
|
|
242
|
+
|
|
243
|
+
- fix: ensure Icon from @mdi/react is imported as named imp
|
|
244
|
+
|
|
245
|
+
## 0.1.4
|
|
246
|
+
|
|
247
|
+
### Patch Changes
|
|
248
|
+
|
|
249
|
+
- list @orioro/react-ui-core as peerDependency instead of direct dependency
|
|
250
|
+
|
|
251
|
+
## 0.1.3
|
|
252
|
+
|
|
253
|
+
### Patch Changes
|
|
254
|
+
|
|
255
|
+
- fix issue related to missing react import and strict react version
|
|
256
|
+
|
|
257
|
+
## 0.1.2
|
|
258
|
+
|
|
259
|
+
### Patch Changes
|
|
260
|
+
|
|
261
|
+
- fix worker bundle
|
|
262
|
+
|
|
263
|
+
## 0.1.1
|
|
264
|
+
|
|
265
|
+
### Patch Changes
|
|
266
|
+
|
|
267
|
+
- fix worker file bundling and exposure
|
|
268
|
+
|
|
269
|
+
## 0.1.0
|
|
270
|
+
|
|
271
|
+
### Minor Changes
|
|
272
|
+
|
|
273
|
+
- move georedus-related packages to isolated repo
|
|
274
|
+
|
|
275
|
+
## 0.0.2
|
|
276
|
+
|
|
277
|
+
### Patch Changes
|
|
278
|
+
|
|
279
|
+
- fix changeset release with yarn
|
|
280
|
+
|
|
281
|
+
## 0.0.1
|
|
282
|
+
|
|
283
|
+
### Patch Changes
|
|
284
|
+
|
|
285
|
+
- f26720d: Initialize package version control using changeset
|
package/dist/main.js
CHANGED
|
@@ -15,7 +15,7 @@ import { buffer } from '@turf/turf';
|
|
|
15
15
|
import { scaleQuantile } from 'd3-scale';
|
|
16
16
|
import { csvParse } from 'd3-dsv';
|
|
17
17
|
import { strAutoCast } from '@orioro/cast';
|
|
18
|
-
import { fmtLayerAbsoluteId, waves_1,
|
|
18
|
+
import { fmtLayerAbsoluteId, waves_1, makeSyncedMaps, LayeredMap, svgImageGenerator, SVG_PATTERNS, useMapRegistry, useTilesLoading, HoverTooltip, layeredMapOnClickHandler, DynamicImages, ControlContainer, InspectControl, MapWindow, TerrainControl, fitGeometry } from '@orioro/react-maplibre-util';
|
|
19
19
|
import React$1, { useState, useMemo, useCallback, useContext, createContext, useReducer, useEffect, useRef } from 'react';
|
|
20
20
|
import styled, { keyframes } from 'styled-components';
|
|
21
21
|
import { colord } from 'colord';
|
|
@@ -11100,15 +11100,6 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
|
11100
11100
|
// Sets up vtx:// protocol
|
|
11101
11101
|
//
|
|
11102
11102
|
vtxSetup();
|
|
11103
|
-
var MAP_SVG_IMAGE_GENERATOR = svgImageGenerator(_objectSpread2({
|
|
11104
|
-
mdiTree: mdiTree,
|
|
11105
|
-
mdiSprout: mdiSprout,
|
|
11106
|
-
mdiCurrencyUsd: mdiCurrencyUsd,
|
|
11107
|
-
mdiScaleBalance: mdiScaleBalance,
|
|
11108
|
-
mdiAccountMultipleOutline: mdiAccountMultipleOutline,
|
|
11109
|
-
mdiSchool: mdiSchool,
|
|
11110
|
-
mdiHospital: mdiHospital
|
|
11111
|
-
}, SVG_PATTERNS));
|
|
11112
11103
|
var LegendContainer = styled(Flex)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n box-shadow:\n rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,\n rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;\n background-color: white;\n border-radius: 4px;\n"])));
|
|
11113
11104
|
|
|
11114
11105
|
//
|
|
@@ -11293,6 +11284,8 @@ function HoverLegend(_ref) {
|
|
|
11293
11284
|
}, []);
|
|
11294
11285
|
return /*#__PURE__*/React$1.createElement(Legend, _extends({}, legendProps, legendProps.type === 'SequentialColorLegend' ? SEQUENTIAL_COLOR_LEGEND_PROPS : {}));
|
|
11295
11286
|
}
|
|
11287
|
+
var DEFAULT_MAP_PROPS = {};
|
|
11288
|
+
var DEFAULT_SVG_IMAGES = {};
|
|
11296
11289
|
function GeoReDUSInner(_ref2) {
|
|
11297
11290
|
var globalState = _ref2.state,
|
|
11298
11291
|
onSetGlobalState = _ref2.onSetState,
|
|
@@ -11301,7 +11294,20 @@ function GeoReDUSInner(_ref2) {
|
|
|
11301
11294
|
_ref2$children = _ref2.children,
|
|
11302
11295
|
children = _ref2$children === void 0 ? null : _ref2$children,
|
|
11303
11296
|
_ref2$mapProps = _ref2.mapProps,
|
|
11304
|
-
mapProps = _ref2$mapProps === void 0 ?
|
|
11297
|
+
mapProps = _ref2$mapProps === void 0 ? DEFAULT_MAP_PROPS : _ref2$mapProps,
|
|
11298
|
+
_ref2$svgImages = _ref2.svgImages,
|
|
11299
|
+
svgImages = _ref2$svgImages === void 0 ? DEFAULT_SVG_IMAGES : _ref2$svgImages;
|
|
11300
|
+
var MAP_SVG_IMAGE_GENERATOR = useMemo(function () {
|
|
11301
|
+
return svgImageGenerator(_objectSpread2(_objectSpread2({
|
|
11302
|
+
mdiTree: mdiTree,
|
|
11303
|
+
mdiSprout: mdiSprout,
|
|
11304
|
+
mdiCurrencyUsd: mdiCurrencyUsd,
|
|
11305
|
+
mdiScaleBalance: mdiScaleBalance,
|
|
11306
|
+
mdiAccountMultipleOutline: mdiAccountMultipleOutline,
|
|
11307
|
+
mdiSchool: mdiSchool,
|
|
11308
|
+
mdiHospital: mdiHospital
|
|
11309
|
+
}, SVG_PATTERNS), svgImages));
|
|
11310
|
+
}, [svgImages]);
|
|
11305
11311
|
var METADATA_API_ENDPOINT = api.METADATA_API_ENDPOINT,
|
|
11306
11312
|
VECTOR_TILE_SERVER_ENDPOINT = api.VECTOR_TILE_SERVER_ENDPOINT;
|
|
11307
11313
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redus/georedus-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"packageManager": "yarn@4.0.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"@mdi/react": "^1.6.1",
|
|
52
52
|
"@orioro/cast": "^0.0.2",
|
|
53
53
|
"@orioro/get": "^0.0.2",
|
|
54
|
-
"@orioro/react-chart-util": "
|
|
54
|
+
"@orioro/react-chart-util": "^0.3.0",
|
|
55
55
|
"@orioro/react-csv": "^0.0.11",
|
|
56
56
|
"@orioro/react-dialogs": "^0.0.10",
|
|
57
|
-
"@orioro/react-dir-nav": "
|
|
58
|
-
"@orioro/react-maplibre-util": "
|
|
57
|
+
"@orioro/react-dir-nav": "^0.2.0",
|
|
58
|
+
"@orioro/react-maplibre-util": "^0.7.0",
|
|
59
59
|
"@orioro/react-sortable": "^0.0.10",
|
|
60
60
|
"@orioro/react-ui-core": "^0.0.14",
|
|
61
61
|
"@orioro/resolve": "^0.1.9",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@orioro/tree-model": "^0.0.2",
|
|
64
64
|
"@orioro/util": "^0.14.0",
|
|
65
65
|
"@orioro/validate": "^0.0.2",
|
|
66
|
-
"@orioro/vector-tile-util": "
|
|
66
|
+
"@orioro/vector-tile-util": "^0.3.0",
|
|
67
67
|
"@radix-ui/react-collapsible": "^1.1.3",
|
|
68
68
|
"@tanstack/react-query": "^5.18.0",
|
|
69
69
|
"@turf/turf": "^7.1.0",
|
|
@@ -88,4 +88,4 @@
|
|
|
88
88
|
"styled-components": "^6.1.8",
|
|
89
89
|
"tslib": "^2.8.1"
|
|
90
90
|
}
|
|
91
|
-
}
|
|
91
|
+
}
|