@redus/georedus-ui 0.16.0 → 0.17.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 +6 -0
- package/dist/LeftPanel/LeftPanel.d.ts +2 -1
- package/dist/ViewMenu/ViewMenu.d.ts +9 -1
- package/dist/main.js +8 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const LeftPanel: React.MemoExoticComponent<typeof LeftPanelInner>;
|
|
2
|
-
declare function LeftPanelInner({ viewConfState, viewConfDispatch, viewSpecs, resolvedViews, open, onSetOpen, syncedMapsRef, mapContainerRef, header: customHeader, footer: customFooter, }: {
|
|
2
|
+
declare function LeftPanelInner({ viewConfState, viewConfDispatch, viewSpecs, resolvedViews, open, onSetOpen, syncedMapsRef, mapContainerRef, categoryIcons, header: customHeader, footer: customFooter, }: {
|
|
3
3
|
viewConfState: any;
|
|
4
4
|
viewConfDispatch: any;
|
|
5
5
|
viewSpecs: any;
|
|
@@ -8,6 +8,7 @@ declare function LeftPanelInner({ viewConfState, viewConfDispatch, viewSpecs, re
|
|
|
8
8
|
onSetOpen: any;
|
|
9
9
|
syncedMapsRef: any;
|
|
10
10
|
mapContainerRef: any;
|
|
11
|
+
categoryIcons?: undefined;
|
|
11
12
|
header?: undefined;
|
|
12
13
|
footer?: undefined;
|
|
13
14
|
}): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function ViewMenu({ viewSpecs, viewConfState, resolvedViews, onSetView, onDeactivateView, style, ...props }: {
|
|
1
|
+
export function ViewMenu({ viewSpecs, viewConfState, resolvedViews, onSetView, onDeactivateView, style, categoryIcons, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
viewSpecs: any;
|
|
4
4
|
viewConfState: any;
|
|
@@ -6,5 +6,13 @@ export function ViewMenu({ viewSpecs, viewConfState, resolvedViews, onSetView, o
|
|
|
6
6
|
onSetView: any;
|
|
7
7
|
onDeactivateView: any;
|
|
8
8
|
style: any;
|
|
9
|
+
categoryIcons?: {
|
|
10
|
+
'populacao-e-domicilios': React.JSX.Element;
|
|
11
|
+
educacao: React.JSX.Element;
|
|
12
|
+
'infraestrutura-e-servicos-urbanos': React.JSX.Element;
|
|
13
|
+
saude: React.JSX.Element;
|
|
14
|
+
'emergencias-climaticas': React.JSX.Element;
|
|
15
|
+
'divisoes-territoriais': React.JSX.Element;
|
|
16
|
+
} | undefined;
|
|
9
17
|
}): React.JSX.Element;
|
|
10
18
|
import React from 'react';
|
package/dist/main.js
CHANGED
|
@@ -8202,9 +8202,9 @@ function ViewControl(_ref8) {
|
|
|
8202
8202
|
}))));
|
|
8203
8203
|
}
|
|
8204
8204
|
|
|
8205
|
-
var _excluded$3 = ["viewSpecs", "viewConfState", "resolvedViews", "onSetView", "onDeactivateView", "style"];
|
|
8205
|
+
var _excluded$3 = ["viewSpecs", "viewConfState", "resolvedViews", "onSetView", "onDeactivateView", "style", "categoryIcons"];
|
|
8206
8206
|
var _templateObject$3, _templateObject2$1;
|
|
8207
|
-
var
|
|
8207
|
+
var CATEGORY_ICONS = {
|
|
8208
8208
|
'populacao-e-domicilios': /*#__PURE__*/React$1.createElement(Icon, {
|
|
8209
8209
|
path: mdiAccountGroup
|
|
8210
8210
|
}),
|
|
@@ -8350,6 +8350,8 @@ function ViewMenu(_ref4) {
|
|
|
8350
8350
|
onSetView = _ref4.onSetView,
|
|
8351
8351
|
onDeactivateView = _ref4.onDeactivateView,
|
|
8352
8352
|
style = _ref4.style,
|
|
8353
|
+
_ref4$categoryIcons = _ref4.categoryIcons,
|
|
8354
|
+
categoryIcons = _ref4$categoryIcons === void 0 ? CATEGORY_ICONS : _ref4$categoryIcons,
|
|
8353
8355
|
props = _objectWithoutProperties(_ref4, _excluded$3);
|
|
8354
8356
|
var viewSpecsById = useMemo(function () {
|
|
8355
8357
|
return Object.fromEntries(viewSpecs.map(function (spec) {
|
|
@@ -8385,7 +8387,7 @@ function ViewMenu(_ref4) {
|
|
|
8385
8387
|
style: {
|
|
8386
8388
|
position: 'relative'
|
|
8387
8389
|
}
|
|
8388
|
-
},
|
|
8390
|
+
}, categoryIcons[node.id] || node.id, activeViewsCount > 0 && /*#__PURE__*/React$1.createElement(ActiveCounter, null, activeViewsCount));
|
|
8389
8391
|
}
|
|
8390
8392
|
}, props))));
|
|
8391
8393
|
}
|
|
@@ -8655,6 +8657,8 @@ function LeftPanelInner(_ref) {
|
|
|
8655
8657
|
onSetOpen = _ref.onSetOpen,
|
|
8656
8658
|
syncedMapsRef = _ref.syncedMapsRef,
|
|
8657
8659
|
mapContainerRef = _ref.mapContainerRef,
|
|
8660
|
+
_ref$categoryIcons = _ref.categoryIcons,
|
|
8661
|
+
categoryIcons = _ref$categoryIcons === void 0 ? undefined : _ref$categoryIcons,
|
|
8658
8662
|
_ref$header = _ref.header,
|
|
8659
8663
|
customHeader = _ref$header === void 0 ? undefined : _ref$header,
|
|
8660
8664
|
_ref$footer = _ref.footer,
|
|
@@ -8776,6 +8780,7 @@ function LeftPanelInner(_ref) {
|
|
|
8776
8780
|
flexGrow: 1,
|
|
8777
8781
|
height: '1px'
|
|
8778
8782
|
},
|
|
8783
|
+
categoryIcons: categoryIcons,
|
|
8779
8784
|
viewSpecs: viewSpecs,
|
|
8780
8785
|
viewConfState: viewConfState,
|
|
8781
8786
|
resolvedViews: resolvedViews,
|