@redus/georedus-ui 0.19.2 → 0.19.3
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 +11 -0
- package/dist/main.js +223 -13
- package/dist/viewSpecs/development/index.d.ts +1 -0
- package/dist/viewSpecs/development/piloto_mobilidade_stops.d.ts +103 -0
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @orioro/template-react
|
|
2
2
|
|
|
3
|
+
## 0.19.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- update dependency versions
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @orioro/react-maplibre-util@0.7.1
|
|
10
|
+
- @orioro/react-chart-util@0.3.1
|
|
11
|
+
- @orioro/vector-tile-util@0.3.1
|
|
12
|
+
- @orioro/react-dir-nav@0.2.1
|
|
13
|
+
|
|
3
14
|
## 0.19.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { get, isPlainObject, pick, omit, set, uniqBy, groupBy, uniq } from 'lodash';
|
|
1
|
+
import { get, isPlainObject, pick, omit, set, uniqBy, groupBy, sortBy, uniq } from 'lodash';
|
|
2
2
|
import { slugify, dataJoin, interpolate } from '@orioro/util';
|
|
3
3
|
import { makeResolve, $$literal, withExpressionResolvers, expressions, ALL_EXPR, fetchExpr, resolve, resolveAsync } from '@orioro/resolve';
|
|
4
4
|
import { __assign, __spreadArray, __awaiter, __generator, __makeTemplateObject } from 'tslib';
|
|
@@ -3631,12 +3631,12 @@ function influenceAreaLayers(_a) {
|
|
|
3631
3631
|
};
|
|
3632
3632
|
}
|
|
3633
3633
|
|
|
3634
|
-
var _excluded$
|
|
3634
|
+
var _excluded$9 = ["version"];
|
|
3635
3635
|
function tableVectorSource(context, tableId) {
|
|
3636
3636
|
var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
3637
3637
|
_ref$version = _ref.version,
|
|
3638
3638
|
version = _ref$version === void 0 ? '1' : _ref$version,
|
|
3639
|
-
override = _objectWithoutProperties(_ref, _excluded$
|
|
3639
|
+
override = _objectWithoutProperties(_ref, _excluded$9);
|
|
3640
3640
|
var VECTOR_TILE_SERVER_ENDPOINT = context.VECTOR_TILE_SERVER_ENDPOINT;
|
|
3641
3641
|
return _objectSpread2({
|
|
3642
3642
|
type: 'vector',
|
|
@@ -6315,7 +6315,7 @@ function cem_saude_2024(viewSpec, allViewSpecs, context) {
|
|
|
6315
6315
|
}));
|
|
6316
6316
|
}
|
|
6317
6317
|
|
|
6318
|
-
var _excluded$
|
|
6318
|
+
var _excluded$8 = ["label", "color", "line", "fill", "tiles", "source_layer", "sources", "layers"];
|
|
6319
6319
|
function _parseTiles$2(tiles, context) {
|
|
6320
6320
|
tiles = Array.isArray(tiles) ? tiles : typeof tiles === 'string' ? [tiles] : null;
|
|
6321
6321
|
if (!tiles) {
|
|
@@ -6338,7 +6338,7 @@ function vector_polygon(_ref, allViewSpecs, context) {
|
|
|
6338
6338
|
sources = _ref$sources === void 0 ? {} : _ref$sources,
|
|
6339
6339
|
_ref$layers = _ref.layers,
|
|
6340
6340
|
layers = _ref$layers === void 0 ? {} : _ref$layers,
|
|
6341
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6341
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
6342
6342
|
if (!source_layer) {
|
|
6343
6343
|
throw new Error('source_layer must be defined');
|
|
6344
6344
|
}
|
|
@@ -6392,7 +6392,7 @@ function vector_polygon(_ref, allViewSpecs, context) {
|
|
|
6392
6392
|
});
|
|
6393
6393
|
}
|
|
6394
6394
|
|
|
6395
|
-
var _excluded$
|
|
6395
|
+
var _excluded$7 = ["line", "color", "tiles", "source_layer", "sources", "layers"];
|
|
6396
6396
|
function _parseTiles$1(tiles, context) {
|
|
6397
6397
|
tiles = Array.isArray(tiles) ? tiles : typeof tiles === 'string' ? [tiles] : null;
|
|
6398
6398
|
if (!tiles) {
|
|
@@ -6412,7 +6412,7 @@ function vector_line(_ref, allViewSpecs, context) {
|
|
|
6412
6412
|
sources = _ref$sources === void 0 ? {} : _ref$sources,
|
|
6413
6413
|
_ref$layers = _ref.layers,
|
|
6414
6414
|
layers = _ref$layers === void 0 ? {} : _ref$layers,
|
|
6415
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6415
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
6416
6416
|
if (!source_layer) {
|
|
6417
6417
|
throw new Error('source_layer must be defined');
|
|
6418
6418
|
}
|
|
@@ -6449,7 +6449,7 @@ function vector_line(_ref, allViewSpecs, context) {
|
|
|
6449
6449
|
});
|
|
6450
6450
|
}
|
|
6451
6451
|
|
|
6452
|
-
var _excluded$
|
|
6452
|
+
var _excluded$6 = ["circle", "color", "tiles", "source_layer", "sources", "layers"];
|
|
6453
6453
|
function _parseTiles(tiles, context) {
|
|
6454
6454
|
tiles = Array.isArray(tiles) ? tiles : typeof tiles === 'string' ? [tiles] : null;
|
|
6455
6455
|
if (!tiles) {
|
|
@@ -6469,7 +6469,7 @@ function vector_circle(_ref, allViewSpecs, context) {
|
|
|
6469
6469
|
sources = _ref$sources === void 0 ? {} : _ref$sources,
|
|
6470
6470
|
_ref$layers = _ref.layers,
|
|
6471
6471
|
layers = _ref$layers === void 0 ? {} : _ref$layers,
|
|
6472
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6472
|
+
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
6473
6473
|
if (!source_layer) {
|
|
6474
6474
|
throw new Error('source_layer must be defined');
|
|
6475
6475
|
}
|
|
@@ -8051,6 +8051,217 @@ function temperatura_superficie(_ref7) {
|
|
|
8051
8051
|
}));
|
|
8052
8052
|
}
|
|
8053
8053
|
|
|
8054
|
+
var _excluded$5 = ["circle", "color", "tiles", "source_layer", "sources", "layers", "VECTOR_TILE_SERVER_ENDPOINT", "METADATA_API_ENDPOINT"],
|
|
8055
|
+
_excluded2$1 = ["geom"];
|
|
8056
|
+
var ISOCHRONE_COLORS = [{
|
|
8057
|
+
value: 15,
|
|
8058
|
+
label: '15 min',
|
|
8059
|
+
color: '#2ECC71'
|
|
8060
|
+
}, {
|
|
8061
|
+
value: 30,
|
|
8062
|
+
label: '30 min',
|
|
8063
|
+
color: '#F1C40F'
|
|
8064
|
+
}, {
|
|
8065
|
+
value: 45,
|
|
8066
|
+
label: '45 min',
|
|
8067
|
+
color: '#E67E22'
|
|
8068
|
+
}, {
|
|
8069
|
+
value: 60,
|
|
8070
|
+
label: '60 min',
|
|
8071
|
+
color: '#E74C3C'
|
|
8072
|
+
}];
|
|
8073
|
+
function piloto_mobilidade_stops(_ref) {
|
|
8074
|
+
var _ref$circle = _ref.circle,
|
|
8075
|
+
circle = _ref$circle === void 0 ? {} : _ref$circle,
|
|
8076
|
+
color = _ref.color,
|
|
8077
|
+
tiles = _ref.tiles,
|
|
8078
|
+
source_layer = _ref.source_layer,
|
|
8079
|
+
_ref$sources = _ref.sources,
|
|
8080
|
+
sources = _ref$sources === void 0 ? {} : _ref$sources,
|
|
8081
|
+
_ref$layers = _ref.layers,
|
|
8082
|
+
layers = _ref$layers === void 0 ? {} : _ref$layers;
|
|
8083
|
+
_ref.VECTOR_TILE_SERVER_ENDPOINT;
|
|
8084
|
+
var METADATA_API_ENDPOINT = _ref.METADATA_API_ENDPOINT,
|
|
8085
|
+
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
8086
|
+
if (!source_layer) {
|
|
8087
|
+
throw new Error('source_layer must be defined');
|
|
8088
|
+
}
|
|
8089
|
+
return _objectSpread2(_objectSpread2({}, props), {}, {
|
|
8090
|
+
// confSchema: {
|
|
8091
|
+
// data: {
|
|
8092
|
+
// isocrona_origem_stop_id: {
|
|
8093
|
+
// label: 'ID do ponto de ônibus analisado',
|
|
8094
|
+
// type: 'text',
|
|
8095
|
+
// },
|
|
8096
|
+
// },
|
|
8097
|
+
// },
|
|
8098
|
+
metadata: {
|
|
8099
|
+
isocrona_origem_polygons_geojson: resolveAsync.fn(/*#__PURE__*/function () {
|
|
8100
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(context) {
|
|
8101
|
+
var _context$view;
|
|
8102
|
+
var stop_id, isocrona_origem_polygons;
|
|
8103
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8104
|
+
while (1) switch (_context.prev = _context.next) {
|
|
8105
|
+
case 0:
|
|
8106
|
+
stop_id = context === null || context === void 0 || (_context$view = context.view) === null || _context$view === void 0 || (_context$view = _context$view.conf) === null || _context$view === void 0 || (_context$view = _context$view.data) === null || _context$view === void 0 ? void 0 : _context$view.isocrona_origem_stop_id;
|
|
8107
|
+
if (stop_id) {
|
|
8108
|
+
_context.next = 3;
|
|
8109
|
+
break;
|
|
8110
|
+
}
|
|
8111
|
+
return _context.abrupt("return", null);
|
|
8112
|
+
case 3:
|
|
8113
|
+
_context.next = 5;
|
|
8114
|
+
return fetch("".concat(METADATA_API_ENDPOINT, "/fnp_piloto_mobilidade_2026_isocronas_origem?id=eq.").concat(stop_id)).then(function (res) {
|
|
8115
|
+
return res.json();
|
|
8116
|
+
});
|
|
8117
|
+
case 5:
|
|
8118
|
+
isocrona_origem_polygons = _context.sent;
|
|
8119
|
+
return _context.abrupt("return", {
|
|
8120
|
+
type: 'FeatureCollection',
|
|
8121
|
+
features: sortBy(isocrona_origem_polygons, 'isochrone').reverse().map(function (_ref3) {
|
|
8122
|
+
var geom = _ref3.geom,
|
|
8123
|
+
properties = _objectWithoutProperties(_ref3, _excluded2$1);
|
|
8124
|
+
return {
|
|
8125
|
+
type: 'Feature',
|
|
8126
|
+
properties: properties,
|
|
8127
|
+
geometry: geom
|
|
8128
|
+
};
|
|
8129
|
+
})
|
|
8130
|
+
});
|
|
8131
|
+
case 7:
|
|
8132
|
+
case "end":
|
|
8133
|
+
return _context.stop();
|
|
8134
|
+
}
|
|
8135
|
+
}, _callee);
|
|
8136
|
+
}));
|
|
8137
|
+
return function (_x) {
|
|
8138
|
+
return _ref2.apply(this, arguments);
|
|
8139
|
+
};
|
|
8140
|
+
}())
|
|
8141
|
+
},
|
|
8142
|
+
sources: _objectSpread2({
|
|
8143
|
+
main: {
|
|
8144
|
+
promoteId: 'id',
|
|
8145
|
+
type: 'vector',
|
|
8146
|
+
tiles: tiles
|
|
8147
|
+
},
|
|
8148
|
+
isocrona_origem_polygons: resolve.fn(function (context) {
|
|
8149
|
+
var _context$view2;
|
|
8150
|
+
var isocrona_origem_polygons_geojson = context === null || context === void 0 || (_context$view2 = context.view) === null || _context$view2 === void 0 || (_context$view2 = _context$view2.metadata) === null || _context$view2 === void 0 ? void 0 : _context$view2.isocrona_origem_polygons_geojson;
|
|
8151
|
+
if (!isocrona_origem_polygons_geojson) {
|
|
8152
|
+
return null;
|
|
8153
|
+
}
|
|
8154
|
+
return {
|
|
8155
|
+
type: 'geojson',
|
|
8156
|
+
data: isocrona_origem_polygons_geojson
|
|
8157
|
+
};
|
|
8158
|
+
})
|
|
8159
|
+
}, sources),
|
|
8160
|
+
layers: _objectSpread2(_defineProperty(_defineProperty({}, "main_circle", _objectSpread2(_objectSpread2({
|
|
8161
|
+
zIndex: Z_OVERLAY_TOP_3000,
|
|
8162
|
+
source: 'main',
|
|
8163
|
+
'source-layer': source_layer,
|
|
8164
|
+
type: 'circle'
|
|
8165
|
+
}, circle), {}, {
|
|
8166
|
+
filter: resolve.fn(function (context) {
|
|
8167
|
+
var _context$view3;
|
|
8168
|
+
var isocrona_origem_stop_id = context === null || context === void 0 || (_context$view3 = context.view) === null || _context$view3 === void 0 || (_context$view3 = _context$view3.conf) === null || _context$view3 === void 0 || (_context$view3 = _context$view3.data) === null || _context$view3 === void 0 ? void 0 : _context$view3.isocrona_origem_stop_id;
|
|
8169
|
+
return isocrona_origem_stop_id ? ['==', ['get', 'stop_id'], isocrona_origem_stop_id] : ['all'];
|
|
8170
|
+
}),
|
|
8171
|
+
paint: resolve.fn(function (context) {
|
|
8172
|
+
var _context$view4;
|
|
8173
|
+
var PAINT_BASE = {
|
|
8174
|
+
'circle-color': color,
|
|
8175
|
+
'circle-stroke-color': '#000000',
|
|
8176
|
+
'circle-radius': 6
|
|
8177
|
+
};
|
|
8178
|
+
var isocrona_origem_stop_id = context === null || context === void 0 || (_context$view4 = context.view) === null || _context$view4 === void 0 || (_context$view4 = _context$view4.conf) === null || _context$view4 === void 0 || (_context$view4 = _context$view4.data) === null || _context$view4 === void 0 ? void 0 : _context$view4.isocrona_origem_stop_id;
|
|
8179
|
+
return isocrona_origem_stop_id ? _objectSpread2(_objectSpread2({}, PAINT_BASE), {}, {
|
|
8180
|
+
'circle-stroke-width': 3,
|
|
8181
|
+
'circle-radius': 10
|
|
8182
|
+
// 'circle-color': 'red',
|
|
8183
|
+
}) : _objectSpread2(_objectSpread2({}, PAINT_BASE), {}, {
|
|
8184
|
+
'circle-radius': 4,
|
|
8185
|
+
'circle-stroke-width': 1,
|
|
8186
|
+
'circle-stroke-opacity': ['interpolate', ['linear'], ['zoom'], 12, 0, 16, 0.8],
|
|
8187
|
+
'circle-opacity': ['interpolate', ['linear'], ['zoom'], 10, 0.2, 16, 0.9]
|
|
8188
|
+
});
|
|
8189
|
+
}),
|
|
8190
|
+
onClick: resolve.fn(function (ctx) {
|
|
8191
|
+
return function (e) {
|
|
8192
|
+
var _ctx$view;
|
|
8193
|
+
var isocrona_origem_stop_id = ctx === null || ctx === void 0 || (_ctx$view = ctx.view) === null || _ctx$view === void 0 || (_ctx$view = _ctx$view.conf) === null || _ctx$view === void 0 || (_ctx$view = _ctx$view.data) === null || _ctx$view === void 0 ? void 0 : _ctx$view.isocrona_origem_stop_id;
|
|
8194
|
+
ctx.app.viewConfDispatch({
|
|
8195
|
+
type: 'SET_VIEW',
|
|
8196
|
+
payload: {
|
|
8197
|
+
viewConf: _objectSpread2(_objectSpread2({}, ctx.view.conf), {}, {
|
|
8198
|
+
data: _objectSpread2(_objectSpread2({}, ctx.view.conf), {}, {
|
|
8199
|
+
isocrona_origem_stop_id: isocrona_origem_stop_id ? null : e.properties.stop_id
|
|
8200
|
+
})
|
|
8201
|
+
})
|
|
8202
|
+
}
|
|
8203
|
+
});
|
|
8204
|
+
};
|
|
8205
|
+
}),
|
|
8206
|
+
tooltip: {
|
|
8207
|
+
title: ['$literal', resolve.fn(function (ctx) {
|
|
8208
|
+
var _ctx$feature;
|
|
8209
|
+
return ctx === null || ctx === void 0 || (_ctx$feature = ctx.feature) === null || _ctx$feature === void 0 || (_ctx$feature = _ctx$feature.properties) === null || _ctx$feature === void 0 ? void 0 : _ctx$feature.stop_name;
|
|
8210
|
+
})],
|
|
8211
|
+
entries: ['$literal', resolve.fn(function (ctx) {
|
|
8212
|
+
var _ctx$feature2;
|
|
8213
|
+
console.log(ctx.feature.properties);
|
|
8214
|
+
return _typeof((_ctx$feature2 = ctx.feature) === null || _ctx$feature2 === void 0 ? void 0 : _ctx$feature2.properties) === 'object' ? Object.entries({
|
|
8215
|
+
Linhas: ctx.feature.properties.routes ? JSON.parse(ctx.feature.properties.routes).join(', ') : null,
|
|
8216
|
+
ID: ctx.feature.properties.stop_id
|
|
8217
|
+
}) : [];
|
|
8218
|
+
})]
|
|
8219
|
+
}
|
|
8220
|
+
})), "isocrona_origem_polygons", resolve.fn(function (context) {
|
|
8221
|
+
var _context$view5;
|
|
8222
|
+
var isocrona_origem_polygons_geojson = context === null || context === void 0 || (_context$view5 = context.view) === null || _context$view5 === void 0 || (_context$view5 = _context$view5.metadata) === null || _context$view5 === void 0 ? void 0 : _context$view5.isocrona_origem_polygons_geojson;
|
|
8223
|
+
if (!isocrona_origem_polygons_geojson) {
|
|
8224
|
+
return null;
|
|
8225
|
+
}
|
|
8226
|
+
return {
|
|
8227
|
+
source: 'isocrona_origem_polygons',
|
|
8228
|
+
type: 'fill',
|
|
8229
|
+
paint: {
|
|
8230
|
+
'fill-opacity': 1,
|
|
8231
|
+
'fill-color': ['match', ['get', 'isochrone']].concat(_toConsumableArray(ISOCHRONE_COLORS.flatMap(function (item) {
|
|
8232
|
+
return [item.value, item.color];
|
|
8233
|
+
})), ['#CCCCCC' // fallback
|
|
8234
|
+
])
|
|
8235
|
+
},
|
|
8236
|
+
// tooltip: {
|
|
8237
|
+
// title: [
|
|
8238
|
+
// '$literal',
|
|
8239
|
+
// resolve.fn((ctx) => {
|
|
8240
|
+
// return ctx?.feature?.properties?.name
|
|
8241
|
+
// }),
|
|
8242
|
+
// ],
|
|
8243
|
+
// entries: [
|
|
8244
|
+
// '$literal',
|
|
8245
|
+
// resolve.fn((ctx) => {
|
|
8246
|
+
// return typeof ctx.feature?.properties === 'object'
|
|
8247
|
+
// ? Object.entries({
|
|
8248
|
+
// 'Tempo de deslocamento':
|
|
8249
|
+
// ctx.feature.properties.isochrone + ' min',
|
|
8250
|
+
// })
|
|
8251
|
+
// : []
|
|
8252
|
+
// }),
|
|
8253
|
+
// ],
|
|
8254
|
+
// },
|
|
8255
|
+
legends: [{
|
|
8256
|
+
type: 'CategoricalLegend',
|
|
8257
|
+
title: 'Tempo de deslocamento',
|
|
8258
|
+
items: ISOCHRONE_COLORS
|
|
8259
|
+
}]
|
|
8260
|
+
};
|
|
8261
|
+
})), layers)
|
|
8262
|
+
});
|
|
8263
|
+
}
|
|
8264
|
+
|
|
8054
8265
|
var index = /*#__PURE__*/Object.freeze({
|
|
8055
8266
|
__proto__: null,
|
|
8056
8267
|
STAGE_SPECIAL_KEYS: STAGE_SPECIAL_KEYS,
|
|
@@ -8071,6 +8282,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
8071
8282
|
fetchViewSpecs: fetchViewSpecs,
|
|
8072
8283
|
hand: hand,
|
|
8073
8284
|
overture_places_poc: overture_places_poc,
|
|
8285
|
+
piloto_mobilidade_stops: piloto_mobilidade_stops,
|
|
8074
8286
|
redus_mutirao_cop_2025: redus_mutirao_cop_2025,
|
|
8075
8287
|
resolveConfSchema: resolveConfSchema,
|
|
8076
8288
|
resolveControls: resolveControls,
|
|
@@ -11706,6 +11918,7 @@ function GeoReDUSInner(_ref2) {
|
|
|
11706
11918
|
return {
|
|
11707
11919
|
municipioId: municipioId,
|
|
11708
11920
|
baseMapStyle: baseMapStyle,
|
|
11921
|
+
viewConfDispatch: viewConfDispatch,
|
|
11709
11922
|
//
|
|
11710
11923
|
// Pass only zoomLevel instead of zoom itself
|
|
11711
11924
|
// in order for views not recompute on every zoom change
|
|
@@ -11714,7 +11927,7 @@ function GeoReDUSInner(_ref2) {
|
|
|
11714
11927
|
regional: regional,
|
|
11715
11928
|
mapBounds: mapBounds
|
|
11716
11929
|
};
|
|
11717
|
-
}, [municipioId, baseMapStyle, zoomLevel, regional, mapBounds]);
|
|
11930
|
+
}, [municipioId, baseMapStyle, viewConfDispatch, zoomLevel, regional, mapBounds]);
|
|
11718
11931
|
var _useViews = useViews({
|
|
11719
11932
|
viewSpecs: viewSpecsQuery.data,
|
|
11720
11933
|
viewConfState: viewConfState,
|
|
@@ -12158,9 +12371,6 @@ function GeoReDUSInner(_ref2) {
|
|
|
12158
12371
|
right: '20px',
|
|
12159
12372
|
zIndex: 20
|
|
12160
12373
|
},
|
|
12161
|
-
spinnerProps: {
|
|
12162
|
-
size: 20
|
|
12163
|
-
},
|
|
12164
12374
|
message: null
|
|
12165
12375
|
})), children);
|
|
12166
12376
|
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export function piloto_mobilidade_stops({ circle, color, tiles, source_layer, sources, layers, VECTOR_TILE_SERVER_ENDPOINT, METADATA_API_ENDPOINT, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
circle?: {} | undefined;
|
|
4
|
+
color: any;
|
|
5
|
+
tiles: any;
|
|
6
|
+
source_layer: any;
|
|
7
|
+
sources?: {} | undefined;
|
|
8
|
+
layers?: {} | undefined;
|
|
9
|
+
VECTOR_TILE_SERVER_ENDPOINT: any;
|
|
10
|
+
METADATA_API_ENDPOINT: any;
|
|
11
|
+
}): {
|
|
12
|
+
metadata: {
|
|
13
|
+
isocrona_origem_polygons_geojson: {
|
|
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
|
+
};
|
|
23
|
+
sources: {
|
|
24
|
+
main: {
|
|
25
|
+
promoteId: string;
|
|
26
|
+
type: string;
|
|
27
|
+
tiles: any;
|
|
28
|
+
};
|
|
29
|
+
isocrona_origem_polygons: {
|
|
30
|
+
[x: string]: any;
|
|
31
|
+
$$resolver: symbol;
|
|
32
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
33
|
+
dependencies: any;
|
|
34
|
+
value: (...args: any[]) => any;
|
|
35
|
+
defaultValue?: any;
|
|
36
|
+
context?: any;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
layers: {
|
|
40
|
+
main_circle: {
|
|
41
|
+
filter: {
|
|
42
|
+
[x: string]: any;
|
|
43
|
+
$$resolver: symbol;
|
|
44
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
45
|
+
dependencies: any;
|
|
46
|
+
value: (...args: any[]) => any;
|
|
47
|
+
defaultValue?: any;
|
|
48
|
+
context?: any;
|
|
49
|
+
};
|
|
50
|
+
paint: {
|
|
51
|
+
[x: string]: any;
|
|
52
|
+
$$resolver: symbol;
|
|
53
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
54
|
+
dependencies: any;
|
|
55
|
+
value: (...args: any[]) => any;
|
|
56
|
+
defaultValue?: any;
|
|
57
|
+
context?: any;
|
|
58
|
+
};
|
|
59
|
+
onClick: {
|
|
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
|
+
};
|
|
68
|
+
tooltip: {
|
|
69
|
+
title: (string | {
|
|
70
|
+
[x: string]: any;
|
|
71
|
+
$$resolver: symbol;
|
|
72
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
73
|
+
dependencies: any;
|
|
74
|
+
value: (...args: any[]) => any;
|
|
75
|
+
defaultValue?: any;
|
|
76
|
+
context?: any;
|
|
77
|
+
})[];
|
|
78
|
+
entries: (string | {
|
|
79
|
+
[x: string]: any;
|
|
80
|
+
$$resolver: symbol;
|
|
81
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
82
|
+
dependencies: any;
|
|
83
|
+
value: (...args: any[]) => any;
|
|
84
|
+
defaultValue?: any;
|
|
85
|
+
context?: any;
|
|
86
|
+
})[];
|
|
87
|
+
};
|
|
88
|
+
zIndex: number;
|
|
89
|
+
source: string;
|
|
90
|
+
'source-layer': any;
|
|
91
|
+
type: string;
|
|
92
|
+
};
|
|
93
|
+
isocrona_origem_polygons: {
|
|
94
|
+
[x: string]: any;
|
|
95
|
+
$$resolver: symbol;
|
|
96
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
97
|
+
dependencies: any;
|
|
98
|
+
value: (...args: any[]) => any;
|
|
99
|
+
defaultValue?: any;
|
|
100
|
+
context?: any;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redus/georedus-ui",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.3",
|
|
4
4
|
"packageManager": "yarn@4.0.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react-map-gl": "^8.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@orioro/dev": "^0.0.
|
|
34
|
+
"@orioro/dev": "^0.0.6",
|
|
35
35
|
"@orioro/react-versioned-state": "^0.0.2",
|
|
36
36
|
"@radix-ui/themes": "^3.0.1",
|
|
37
37
|
"@types/geojson": "^7946.0.16",
|
|
@@ -49,21 +49,21 @@
|
|
|
49
49
|
"@mapbox/tilebelt": "2.0.0",
|
|
50
50
|
"@mdi/js": "^7.4.47",
|
|
51
51
|
"@mdi/react": "^1.6.1",
|
|
52
|
-
"@orioro/cast": "^0.0.
|
|
53
|
-
"@orioro/get": "^0.0.
|
|
54
|
-
"@orioro/react-chart-util": "^0.3.
|
|
55
|
-
"@orioro/react-csv": "^0.0.
|
|
56
|
-
"@orioro/react-dialogs": "^0.
|
|
57
|
-
"@orioro/react-dir-nav": "^0.2.
|
|
58
|
-
"@orioro/react-maplibre-util": "^0.7.
|
|
59
|
-
"@orioro/react-sortable": "^0.0.
|
|
60
|
-
"@orioro/react-ui-core": "^0.0.
|
|
61
|
-
"@orioro/resolve": "^0.1.
|
|
62
|
-
"@orioro/scale-util": "^0.0.
|
|
63
|
-
"@orioro/tree-model": "^0.0.
|
|
64
|
-
"@orioro/util": "^0.
|
|
65
|
-
"@orioro/validate": "^0.0.
|
|
66
|
-
"@orioro/vector-tile-util": "^0.3.
|
|
52
|
+
"@orioro/cast": "^0.0.12",
|
|
53
|
+
"@orioro/get": "^0.0.12",
|
|
54
|
+
"@orioro/react-chart-util": "^0.3.1",
|
|
55
|
+
"@orioro/react-csv": "^0.0.17",
|
|
56
|
+
"@orioro/react-dialogs": "^0.1.5",
|
|
57
|
+
"@orioro/react-dir-nav": "^0.2.1",
|
|
58
|
+
"@orioro/react-maplibre-util": "^0.7.1",
|
|
59
|
+
"@orioro/react-sortable": "^0.0.16",
|
|
60
|
+
"@orioro/react-ui-core": "^0.0.20",
|
|
61
|
+
"@orioro/resolve": "^0.1.12",
|
|
62
|
+
"@orioro/scale-util": "^0.0.12",
|
|
63
|
+
"@orioro/tree-model": "^0.0.10",
|
|
64
|
+
"@orioro/util": "^0.16.0",
|
|
65
|
+
"@orioro/validate": "^0.0.10",
|
|
66
|
+
"@orioro/vector-tile-util": "^0.3.1",
|
|
67
67
|
"@radix-ui/react-collapsible": "^1.1.3",
|
|
68
68
|
"@tanstack/react-query": "^5.18.0",
|
|
69
69
|
"@turf/turf": "^7.1.0",
|