@redus/georedus-ui 0.13.0 → 0.14.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/dist/main.js CHANGED
@@ -21,7 +21,7 @@ import styled, { keyframes } from 'styled-components';
21
21
  import { colord } from 'colord';
22
22
  import { Heading, Portal, Badge, Tabs, Tooltip, IconButton, Theme, Text, Popover, Dialog } from '@radix-ui/themes';
23
23
  import { mdiSprout, mdiTree, mdiCurrencyUsd, mdiAccountMultipleOutline, mdiScaleBalance, mdiHelpCircleOutline, mdiDownload, mdiDotsVertical, mdiOpacity, mdiFilterVariant, mdiBookOpenVariant, mdiMap, mdiEarth, mdiHospitalBox, mdiHomeCity, mdiSchool, mdiAccountGroup, mdiContentCopy, mdiLinkVariant, mdiChevronLeft, mdiShareVariantOutline, mdiForumOutline, mdiDragVertical, mdiLayers, mdiClose, mdiHospital } from '@mdi/js';
24
- import Icon$1, { Icon } from '@mdi/react';
24
+ import { Icon } from '@mdi/react';
25
25
  import Confetti from 'react-confetti';
26
26
  import { nodeIdFromPath } from '@orioro/tree-model';
27
27
  import { makeDirNav } from '@orioro/react-dir-nav';
@@ -3460,6 +3460,7 @@ function zoomSensitiveLinearSizes(_a) {
3460
3460
  // - middle from data layers
3461
3461
  // - top from basemaps topViews
3462
3462
  //
3463
+ var Z_BASE_UNINDEXED = null;
3463
3464
  //
3464
3465
  // Fot all layers that require overlaying over
3465
3466
  // the base above, we've got 3 levels:
@@ -3473,6 +3474,7 @@ function zoomSensitiveLinearSizes(_a) {
3473
3474
  //
3474
3475
  var Z_OVERLAY_BASE_1000 = 1000;
3475
3476
  var Z_OVERLAY_MIDDLE_2000 = 2000;
3477
+ var Z_OVERLAY_TOP_3000 = 3000;
3476
3478
 
3477
3479
  function influenceAreaConf(_a) {
3478
3480
  var _b = _a === void 0 ? {} : _a,
@@ -7785,6 +7787,10 @@ var index = /*#__PURE__*/Object.freeze({
7785
7787
  __proto__: null,
7786
7788
  STAGE_SPECIAL_KEYS: STAGE_SPECIAL_KEYS,
7787
7789
  STAGE_VALUE_KEY: STAGE_VALUE_KEY,
7790
+ Z_BASE_UNINDEXED: Z_BASE_UNINDEXED,
7791
+ Z_OVERLAY_BASE_1000: Z_OVERLAY_BASE_1000,
7792
+ Z_OVERLAY_MIDDLE_2000: Z_OVERLAY_MIDDLE_2000,
7793
+ Z_OVERLAY_TOP_3000: Z_OVERLAY_TOP_3000,
7788
7794
  ana_br_bacias_hidrograficas: ana_br_bacias_hidrograficas,
7789
7795
  br_divisao_territorial: br_divisao_territorial,
7790
7796
  br_divisao_territorial_views: br_divisao_territorial_views,
@@ -8158,7 +8164,7 @@ function ViewControl(_ref8) {
8158
8164
  }, viewSpec.sourceLabel), viewSpec.shortDescription && /*#__PURE__*/React$1.createElement(Flex, {
8159
8165
  direction: "row",
8160
8166
  gap: "2"
8161
- }, /*#__PURE__*/React$1.createElement(Icon$1, {
8167
+ }, /*#__PURE__*/React$1.createElement(Icon, {
8162
8168
  style: {
8163
8169
  flexShrink: 0,
8164
8170
  color: 'var(--gray-9)'
@@ -11291,7 +11297,11 @@ function GeoReDUSInner(_ref2) {
11291
11297
  var globalState = _ref2.state,
11292
11298
  onSetGlobalState = _ref2.onSetState,
11293
11299
  api = _ref2.api,
11294
- viewSpecs = _ref2.viewSpecs;
11300
+ viewSpecs = _ref2.viewSpecs,
11301
+ _ref2$children = _ref2.children,
11302
+ children = _ref2$children === void 0 ? null : _ref2$children,
11303
+ _ref2$mapProps = _ref2.mapProps,
11304
+ mapProps = _ref2$mapProps === void 0 ? {} : _ref2$mapProps;
11295
11305
  var METADATA_API_ENDPOINT = api.METADATA_API_ENDPOINT,
11296
11306
  VECTOR_TILE_SERVER_ENDPOINT = api.VECTOR_TILE_SERVER_ENDPOINT;
11297
11307
 
@@ -11686,7 +11696,7 @@ function GeoReDUSInner(_ref2) {
11686
11696
  size: "1",
11687
11697
  value: regional,
11688
11698
  onSetValue: setRegional
11689
- })))), /*#__PURE__*/React$1.createElement(SyncedMaps, {
11699
+ })))), /*#__PURE__*/React$1.createElement(SyncedMaps, _extends({
11690
11700
  maxPitch: 80,
11691
11701
  onZoomEnd: function onZoomEnd(e) {
11692
11702
  var _e$viewState;
@@ -11746,7 +11756,8 @@ function GeoReDUSInner(_ref2) {
11746
11756
  setPrefetchZoomDelta: 0,
11747
11757
  mapStyle: BASE_MAP_STYLE[baseMapStyle],
11748
11758
  sky: SKY_STYLE,
11749
- tooltip: getTooltip,
11759
+ tooltip: getTooltip
11760
+ }, mapProps, {
11750
11761
  maps: resolvedLayout.map(function (_ref6, index) {
11751
11762
  var id = _ref6.id,
11752
11763
  views = _ref6.views,
@@ -11844,10 +11855,10 @@ function GeoReDUSInner(_ref2) {
11844
11855
  })))) : null, /*#__PURE__*/React$1.createElement(TerrainControl, {
11845
11856
  demSourceUrl: DEM_SOURCE_URL,
11846
11857
  demSourceEncoding: DEM_SOURCE_ENCODING
11847
- }))
11858
+ }), mapProps.children || null)
11848
11859
  };
11849
11860
  })
11850
- }, (viewsLoading || tilesLoading) && /*#__PURE__*/React$1.createElement(LoadingIndicator, {
11861
+ }), (viewsLoading || tilesLoading) && /*#__PURE__*/React$1.createElement(LoadingIndicator, {
11851
11862
  style: {
11852
11863
  position: 'fixed',
11853
11864
  bottom: '40px',
@@ -11858,7 +11869,7 @@ function GeoReDUSInner(_ref2) {
11858
11869
  size: 20
11859
11870
  },
11860
11871
  message: null
11861
- })));
11872
+ })), children);
11862
11873
  }
11863
11874
  var GeoReDUSRootContainer = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n * {\n box-sizing: border-box;\n }\n"])));
11864
11875
  function GeoReDUS(props) {
@@ -2,3 +2,4 @@ export * from './presets';
2
2
  export * from './resolveViewSpecs';
3
3
  export * from './resolveView';
4
4
  export * from './development';
5
+ export * from './zIndexes';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redus/georedus-ui",
3
- "version": "0.13.0",
3
+ "version": "0.14.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": "^0.3.0",
54
+ "@orioro/react-chart-util": "workspace:^",
55
55
  "@orioro/react-csv": "^0.0.11",
56
56
  "@orioro/react-dialogs": "^0.0.10",
57
- "@orioro/react-dir-nav": "^0.2.0",
58
- "@orioro/react-maplibre-util": "^0.6.0",
57
+ "@orioro/react-dir-nav": "workspace:^",
58
+ "@orioro/react-maplibre-util": "workspace:^",
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": "^0.3.0",
66
+ "@orioro/vector-tile-util": "workspace:^",
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
+ }
package/CHANGELOG.md DELETED
@@ -1,261 +0,0 @@
1
- # @orioro/template-react
2
-
3
- ## 0.13.0
4
-
5
- ### Minor Changes
6
-
7
- - add cop logo to mutirao
8
-
9
- ## 0.12.0
10
-
11
- ### Minor Changes
12
-
13
- - add bacias hidrograficas and fix import issues
14
-
15
- ## 0.11.0
16
-
17
- ### Minor Changes
18
-
19
- - implement detailed legends for climate datasets
20
-
21
- ## 0.10.1
22
-
23
- ### Patch Changes
24
-
25
- - fix missing react global import at redus_mutirao_cop_2025.jsx
26
-
27
- ## 0.10.0
28
-
29
- ### Minor Changes
30
-
31
- - expose viewSpecs api (unstable)
32
-
33
- ## 0.9.0
34
-
35
- ### Minor Changes
36
-
37
- - update all dependencies and multiple internal deps
38
-
39
- ### Patch Changes
40
-
41
- - Updated dependencies
42
- - @orioro/react-maplibre-util@0.6.0
43
- - @orioro/react-chart-util@0.3.0
44
- - @orioro/vector-tile-util@0.3.0
45
- - @orioro/react-dir-nav@0.2.0
46
-
47
- ## 0.8.10
48
-
49
- ### Patch Changes
50
-
51
- - Updated dependencies
52
- - @orioro/react-maplibre-util@0.5.3
53
-
54
- ## 0.8.9
55
-
56
- ### Patch Changes
57
-
58
- - fix issue related to impossibility of loading localhost layers due to synthetic json inability to handle colons (:)
59
- - Updated dependencies
60
- - @orioro/vector-tile-util@0.2.1
61
-
62
- ## 0.8.8
63
-
64
- ### Patch Changes
65
-
66
- - add missing react import
67
-
68
- ## 0.8.7
69
-
70
- ### Patch Changes
71
-
72
- - fix share button bar and add questions & suggestions button
73
-
74
- ## 0.8.6
75
-
76
- ### Patch Changes
77
-
78
- - update dev metadata api url
79
-
80
- ## 0.8.5
81
-
82
- ### Patch Changes
83
-
84
- - Updated dependencies
85
- - @orioro/react-maplibre-util@0.5.2
86
-
87
- ## 0.8.4
88
-
89
- ### Patch Changes
90
-
91
- - Updated dependencies
92
- - @orioro/react-maplibre-util@0.5.1
93
-
94
- ## 0.8.3
95
-
96
- ### Patch Changes
97
-
98
- - Updated dependencies
99
- - @orioro/react-maplibre-util@0.5.0
100
-
101
- ## 0.8.2
102
-
103
- ### Patch Changes
104
-
105
- - apply bounds to censo 2010 and 2022 sources
106
-
107
- ## 0.8.1
108
-
109
- ### Patch Changes
110
-
111
- - fix municipio maxzoom
112
-
113
- ## 0.8.0
114
-
115
- ### Minor Changes
116
-
117
- - integrate vtx protocol into censo data
118
-
119
- ### Patch Changes
120
-
121
- - Updated dependencies
122
- - @orioro/vector-tile-util@0.2.0
123
-
124
- ## 0.7.0
125
-
126
- ### Minor Changes
127
-
128
- - implement proof of concept support for places layer
129
-
130
- ## 0.6.2
131
-
132
- ### Patch Changes
133
-
134
- - fix: fix viewSpecs loading
135
-
136
- ## 0.6.1
137
-
138
- ### Patch Changes
139
-
140
- - removes distinctions from rms (regiões metropolitanas) viewspecs
141
-
142
- ## 0.6.0
143
-
144
- ### Minor Changes
145
-
146
- - enable 2022_variaveis_abr_25
147
-
148
- ## 0.5.0
149
-
150
- ### Minor Changes
151
-
152
- - implement proof-of-concept of hover interaction on legend
153
-
154
- ### Patch Changes
155
-
156
- - Updated dependencies
157
- - @orioro/react-maplibre-util@0.4.0
158
- - @orioro/react-chart-util@0.2.0
159
-
160
- ## 0.4.0
161
-
162
- ### Minor Changes
163
-
164
- - add influence area to saude
165
-
166
- ## 0.3.2
167
-
168
- ### Patch Changes
169
-
170
- - fix peerDependencies
171
- - Updated dependencies
172
- - @orioro/react-maplibre-util@0.3.2
173
-
174
- ## 0.3.1
175
-
176
- ### Patch Changes
177
-
178
- - Updated dependencies
179
- - @orioro/react-maplibre-util@0.3.1
180
-
181
- ## 0.3.0
182
-
183
- ### Minor Changes
184
-
185
- - better support for 3d, refactor view resolution framework
186
-
187
- ### Patch Changes
188
-
189
- - Updated dependencies
190
- - @orioro/react-maplibre-util@0.3.0
191
-
192
- ## 0.2.0
193
-
194
- ### Minor Changes
195
-
196
- - implement 3D maps
197
-
198
- ### Patch Changes
199
-
200
- - Updated dependencies
201
- - @orioro/react-maplibre-util@0.2.0
202
-
203
- ## 0.1.7
204
-
205
- ### Patch Changes
206
-
207
- - add tslib to peerDependencies
208
-
209
- ## 0.1.6
210
-
211
- ### Patch Changes
212
-
213
- - 239abbb: update dependencies
214
-
215
- ## 0.1.5
216
-
217
- ### Patch Changes
218
-
219
- - fix: ensure Icon from @mdi/react is imported as named imp
220
-
221
- ## 0.1.4
222
-
223
- ### Patch Changes
224
-
225
- - list @orioro/react-ui-core as peerDependency instead of direct dependency
226
-
227
- ## 0.1.3
228
-
229
- ### Patch Changes
230
-
231
- - fix issue related to missing react import and strict react version
232
-
233
- ## 0.1.2
234
-
235
- ### Patch Changes
236
-
237
- - fix worker bundle
238
-
239
- ## 0.1.1
240
-
241
- ### Patch Changes
242
-
243
- - fix worker file bundling and exposure
244
-
245
- ## 0.1.0
246
-
247
- ### Minor Changes
248
-
249
- - move georedus-related packages to isolated repo
250
-
251
- ## 0.0.2
252
-
253
- ### Patch Changes
254
-
255
- - fix changeset release with yarn
256
-
257
- ## 0.0.1
258
-
259
- ### Patch Changes
260
-
261
- - f26720d: Initialize package version control using changeset