@evergis/react 2.0.157 → 2.0.158
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/components/MapLegend/styled.d.ts +5 -12
- package/dist/components/MapLegend/types.d.ts +6 -0
- package/dist/core/legend/types.d.ts +1 -0
- package/dist/react.cjs.development.js +51 -34
- package/dist/react.cjs.development.js.map +1 -1
- package/dist/react.cjs.production.min.js +1 -1
- package/dist/react.cjs.production.min.js.map +1 -1
- package/dist/react.esm.js +51 -34
- package/dist/react.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import { ClassificationParameterExtended } from "../../core";
|
|
2
|
+
import { MapLegendItemProps } from "./types";
|
|
2
3
|
export declare const MapLegendControl: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
4
|
export declare const MapLegendContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
5
|
export declare const MapLegendHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
6
|
export declare const MapLegendDescriptionContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
7
|
export declare const MinimizedLegendContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
8
|
export declare const MapLegendValueDescr: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
-
export declare const MapLegendItem: import("styled-components").StyledComponent<"div", any,
|
|
9
|
-
|
|
10
|
-
parameter?: "symbol" | "height" | "width" | "strokeWidth" | "size" | "fill.color" | "fill.hatchColor" | "stroke.width" | "stroke.color" | "background.fillColor" | "background.strokeColor" | "background.strokeWidth" | "figure.fillColor" | "fillColor" | "strokeColor" | "angle" | "maskedColor" | undefined;
|
|
11
|
-
}, never>;
|
|
12
|
-
export declare const MapLegendOther: import("styled-components").StyledComponent<"div", any, {
|
|
13
|
-
value?: string | number | undefined;
|
|
14
|
-
parameter?: "symbol" | "height" | "width" | "strokeWidth" | "size" | "fill.color" | "fill.hatchColor" | "stroke.width" | "stroke.color" | "background.fillColor" | "background.strokeColor" | "background.strokeWidth" | "figure.fillColor" | "fillColor" | "strokeColor" | "angle" | "maskedColor" | undefined;
|
|
15
|
-
}, never>;
|
|
9
|
+
export declare const MapLegendItem: import("styled-components").StyledComponent<"div", any, MapLegendItemProps, never>;
|
|
10
|
+
export declare const MapLegendOther: import("styled-components").StyledComponent<"div", any, MapLegendItemProps, never>;
|
|
16
11
|
export declare const SizeMinimizedLegend: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
17
12
|
export declare const SizeMinimizedLegendSymbol: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
18
13
|
export declare const SizeMinimizedLegendLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -25,10 +20,8 @@ export declare const MapLegendItems: import("styled-components").StyledComponent
|
|
|
25
20
|
isStrokeColor?: boolean | undefined;
|
|
26
21
|
isSingle?: boolean | undefined;
|
|
27
22
|
}, never>;
|
|
23
|
+
export declare const MapLegendItemsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
28
24
|
export declare const MapLegendValues: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
29
25
|
export declare const MapLegendValuesRange: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
30
|
-
export declare const MapLegendValuesOther: import("styled-components").StyledComponent<"div", any,
|
|
31
|
-
value?: string | number | undefined;
|
|
32
|
-
parameter?: "symbol" | "height" | "width" | "strokeWidth" | "size" | "fill.color" | "fill.hatchColor" | "stroke.width" | "stroke.color" | "background.fillColor" | "background.strokeColor" | "background.strokeWidth" | "figure.fillColor" | "fillColor" | "strokeColor" | "angle" | "maskedColor" | undefined;
|
|
33
|
-
}, never>;
|
|
26
|
+
export declare const MapLegendValuesOther: import("styled-components").StyledComponent<"div", any, MapLegendItemProps, never>;
|
|
34
27
|
export declare const MapLegendExpandButton: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -12,4 +12,10 @@ export declare type MinimizedLegendProps = {
|
|
|
12
12
|
defaultValue: string;
|
|
13
13
|
values: LegendValueType[];
|
|
14
14
|
parameter: ClassificationParameterExtended;
|
|
15
|
+
hiddenLegends?: string[];
|
|
16
|
+
};
|
|
17
|
+
export declare type MapLegendItemProps = {
|
|
18
|
+
value?: string | number;
|
|
19
|
+
parameter?: ClassificationParameterExtended;
|
|
20
|
+
isHidden?: boolean;
|
|
15
21
|
};
|
|
@@ -7,6 +7,7 @@ import { CompositeSymbolType, ParameterValueWithSymbol, StyleSymbolType, Unclass
|
|
|
7
7
|
export declare type LegendValueType = {
|
|
8
8
|
title: string;
|
|
9
9
|
parameterValue: ParameterValueWithSymbol;
|
|
10
|
+
hiddenCondition?: string;
|
|
10
11
|
};
|
|
11
12
|
export declare type LegendItem = {
|
|
12
13
|
attribute?: ClassificationAttribute;
|
|
@@ -5027,7 +5027,7 @@ const Fullscreen = () => {
|
|
|
5027
5027
|
}));
|
|
5028
5028
|
};
|
|
5029
5029
|
|
|
5030
|
-
var _templateObject$6, _templateObject2$6, _templateObject3$4, _templateObject4$4, _templateObject5$4, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25;
|
|
5030
|
+
var _templateObject$6, _templateObject2$6, _templateObject3$4, _templateObject4$4, _templateObject5$4, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26;
|
|
5031
5031
|
const MapLegendControl = /*#__PURE__*/styled__default(MapControl)(_templateObject$6 || (_templateObject$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: default;\n"])));
|
|
5032
5032
|
const MapLegendContainer = /*#__PURE__*/styled__default.div(_templateObject2$6 || (_templateObject2$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: 12.5rem;\n padding-bottom: 1rem;\n box-sizing: border-box;\n\n canvas {\n height: 1.625rem;\n width: 1.625rem;\n }\n"])));
|
|
5033
5033
|
const MapLegendHeader = /*#__PURE__*/styled__default(LegendSectionHeader)(_templateObject3$4 || (_templateObject3$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-width: 15rem;\n margin-bottom: 0.25rem;\n font-weight: 500;\n"])));
|
|
@@ -5048,11 +5048,11 @@ const StrokeWidthLegendItemMixin = function StrokeWidthLegendItemMixin(value) {
|
|
|
5048
5048
|
value = 0;
|
|
5049
5049
|
}
|
|
5050
5050
|
|
|
5051
|
-
return styled.css(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n position: relative;\n background: none;\n border: none;\n display: flex;\n align-items: center;\n flex: none;\n
|
|
5051
|
+
return styled.css(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n position: relative;\n background: none;\n border: none;\n display: flex;\n align-items: center;\n flex: none;\n width: calc(100% - 2rem);\n height: ", "px;\n margin: 0 0 0.25rem 0;\n padding-left: 2rem;\n font-size: 0.75rem;\n \n :first-child, :last-child {\n height: auto;\n }\n \n :after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 0;\n width: 1.5rem;\n height: ", "px;\n margin-top: -", "px;\n background: rgb(224, 224, 224);\n }\n"])), value, value, Math.round(value / 2));
|
|
5052
5052
|
};
|
|
5053
5053
|
|
|
5054
5054
|
const StrokeColorLegendItemMixin = /*#__PURE__*/styled.css(_templateObject9$1 || (_templateObject9$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-right: 0.5rem;\n width: 1.5rem;\n"])));
|
|
5055
|
-
const MapLegendItem = /*#__PURE__*/styled__default.div(_templateObject10$1 || (_templateObject10$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n height: ", "rem;\n background: ", ";\n border: 1px rgba(48, 69, 79, 0.1) solid;\n margin-right: -1px;\n\n ", "\n\n ", "\n"])), _ref => {
|
|
5055
|
+
const MapLegendItem = /*#__PURE__*/styled__default.div(_templateObject10$1 || (_templateObject10$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n height: ", "rem;\n background: ", ";\n border: 1px rgba(48, 69, 79, 0.1) solid;\n margin-right: -1px;\n opacity: ", ";\n\n ", "\n\n ", "\n"])), _ref => {
|
|
5056
5056
|
let {
|
|
5057
5057
|
parameter
|
|
5058
5058
|
} = _ref;
|
|
@@ -5064,15 +5064,20 @@ const MapLegendItem = /*#__PURE__*/styled__default.div(_templateObject10$1 || (_
|
|
|
5064
5064
|
return typeof value === "number" ? "none" : value;
|
|
5065
5065
|
}, _ref3 => {
|
|
5066
5066
|
let {
|
|
5067
|
-
|
|
5068
|
-
parameter
|
|
5067
|
+
isHidden
|
|
5069
5068
|
} = _ref3;
|
|
5070
|
-
return
|
|
5069
|
+
return isHidden ? 0.28 : 1;
|
|
5071
5070
|
}, _ref4 => {
|
|
5072
5071
|
let {
|
|
5073
5072
|
value,
|
|
5074
5073
|
parameter
|
|
5075
5074
|
} = _ref4;
|
|
5075
|
+
return isParameterType("size", parameter) && SizeLegendItemMixin(value);
|
|
5076
|
+
}, _ref5 => {
|
|
5077
|
+
let {
|
|
5078
|
+
value,
|
|
5079
|
+
parameter
|
|
5080
|
+
} = _ref5;
|
|
5076
5081
|
return isParameterType(["strokeWidth", "stroke.width"], parameter) && StrokeWidthLegendItemMixin(value);
|
|
5077
5082
|
});
|
|
5078
5083
|
const MapLegendOther = /*#__PURE__*/styled__default(MapLegendItem)(_templateObject11$1 || (_templateObject11$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: none;\n position: relative;\n width: 1rem;\n margin-left: 0.25rem;\n border-radius: 0.125rem;\n"])));
|
|
@@ -5081,40 +5086,41 @@ const StrokeWidthLegendItemsMixin = /*#__PURE__*/styled.css(_templateObject13$1
|
|
|
5081
5086
|
const SizeMinimizedLegend = /*#__PURE__*/styled__default.div(_templateObject14$1 || (_templateObject14$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: nowrap;\n align-items: center;\n margin-top: 0.5rem;\n"])));
|
|
5082
5087
|
const SizeMinimizedLegendSymbol = /*#__PURE__*/styled__default.div(_templateObject15$1 || (_templateObject15$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 4rem;\n margin-right: 0.75rem;\n"])));
|
|
5083
5088
|
const SizeMinimizedLegendLabel = /*#__PURE__*/styled__default.div(_templateObject16$1 || (_templateObject16$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 0.75rem;\n"])));
|
|
5084
|
-
const SizeMinimizedLegendDown = /*#__PURE__*/styled__default.div(_templateObject17 || (_templateObject17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: white;\n opacity: 0.
|
|
5085
|
-
const SizeMinimizedLegendUp = /*#__PURE__*/styled__default
|
|
5089
|
+
const SizeMinimizedLegendDown = /*#__PURE__*/styled__default.div(_templateObject17 || (_templateObject17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: white;\n opacity: 0.65;\n"])));
|
|
5090
|
+
const SizeMinimizedLegendUp = /*#__PURE__*/styled__default(SizeMinimizedLegendDown)(_templateObject18 || (_templateObject18 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
5086
5091
|
const SingleSizeLegendItemsMixin = /*#__PURE__*/styled.css(_templateObject19 || (_templateObject19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 4rem;\n margin-right: 0.75rem;\n\n ", ":after {\n margin: 0 auto;\n }\n"])), MapLegendItem);
|
|
5087
|
-
const SingleLegendItemsMixin = /*#__PURE__*/styled.css(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n width: 2rem;\n margin: 0;\n ", "\n \n ", " {\n position: relative;\n top: 0;\n left: 0;\n display: flex;\n align-content: center;\n justify-content: center;\n margin: 0;\n height: auto;\n width: auto;\n\n ", "\n }\n"])),
|
|
5092
|
+
const SingleLegendItemsMixin = /*#__PURE__*/styled.css(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n width: 2rem;\n margin: 0;\n ", "\n \n ", " {\n position: relative;\n top: 0;\n left: 0;\n display: flex;\n align-content: center;\n justify-content: center;\n margin: 0;\n height: auto;\n width: auto;\n\n ", "\n }\n"])), _ref6 => {
|
|
5088
5093
|
let {
|
|
5089
5094
|
isSize
|
|
5090
|
-
} =
|
|
5095
|
+
} = _ref6;
|
|
5091
5096
|
return isSize && SingleSizeLegendItemsMixin;
|
|
5092
|
-
}, MapLegendItem,
|
|
5097
|
+
}, MapLegendItem, _ref7 => {
|
|
5093
5098
|
let {
|
|
5094
5099
|
parameter
|
|
5095
|
-
} =
|
|
5100
|
+
} = _ref7;
|
|
5096
5101
|
return isParameterType(["strokeColor", "stroke.color"], parameter) && StrokeColorLegendItemMixin;
|
|
5097
5102
|
});
|
|
5098
|
-
const MapLegendItems = /*#__PURE__*/styled__default.div(_templateObject21 || (_templateObject21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n width: 100%;\n border-radius: 0.125rem;\n\n ", ";\n ", ";\n ", ";\n"])),
|
|
5103
|
+
const MapLegendItems = /*#__PURE__*/styled__default.div(_templateObject21 || (_templateObject21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n width: 100%;\n border-radius: 0.125rem;\n\n ", ";\n ", ";\n ", ";\n"])), _ref8 => {
|
|
5099
5104
|
let {
|
|
5100
5105
|
isSize
|
|
5101
|
-
} =
|
|
5106
|
+
} = _ref8;
|
|
5102
5107
|
return isSize && SizeLegendItemsMixin;
|
|
5103
|
-
},
|
|
5108
|
+
}, _ref9 => {
|
|
5104
5109
|
let {
|
|
5105
5110
|
isStrokeWidth
|
|
5106
|
-
} =
|
|
5111
|
+
} = _ref9;
|
|
5107
5112
|
return isStrokeWidth && StrokeWidthLegendItemsMixin;
|
|
5108
|
-
},
|
|
5113
|
+
}, _ref10 => {
|
|
5109
5114
|
let {
|
|
5110
5115
|
isSingle
|
|
5111
|
-
} =
|
|
5116
|
+
} = _ref10;
|
|
5112
5117
|
return isSingle && SingleLegendItemsMixin;
|
|
5113
5118
|
});
|
|
5114
|
-
const
|
|
5115
|
-
const
|
|
5116
|
-
const
|
|
5117
|
-
const
|
|
5119
|
+
const MapLegendItemsContainer = /*#__PURE__*/styled__default.div(_templateObject22 || (_templateObject22 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n width: 100%;\n \n ", " {\n :first-child {\n border-top-left-radius: 0.125rem;\n border-bottom-left-radius: 0.125rem;\n }\n\n :last-child {\n border-top-right-radius: 0.125rem;\n border-bottom-right-radius: 0.125rem;\n }\n }\n"])), MapLegendItem);
|
|
5120
|
+
const MapLegendValues = /*#__PURE__*/styled__default.div(_templateObject23 || (_templateObject23 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n width: 100%;\n font-size: 0.75rem;\n color: rgba(48, 69, 79, 0.65);\n"])));
|
|
5121
|
+
const MapLegendValuesRange = /*#__PURE__*/styled__default.div(_templateObject24 || (_templateObject24 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n width: calc(100% - 1.25rem);\n \n div {\n flex: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n\n :first-child {\n margin-right: 0.5rem;\n }\n\n :last-child {\n margin-left: 0.5rem;\n }\n }\n"])));
|
|
5122
|
+
const MapLegendValuesOther = /*#__PURE__*/styled__default(MapLegendOther)(_templateObject25 || (_templateObject25 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 0;\n text-align: center;\n overflow: visible;\n"])));
|
|
5123
|
+
const MapLegendExpandButton = /*#__PURE__*/styled__default.div(_templateObject26 || (_templateObject26 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n margin: 0.1rem 0 0.5rem;\n font-size: 0.625rem;\n color: #1FB3AA;\n"])));
|
|
5118
5124
|
|
|
5119
5125
|
const MapLegend = _ref => {
|
|
5120
5126
|
let {
|
|
@@ -5171,14 +5177,17 @@ const MapLegendDescription = _ref => {
|
|
|
5171
5177
|
};
|
|
5172
5178
|
|
|
5173
5179
|
const getValueFromLegendTitle = (title, minOrMax) => {
|
|
5174
|
-
var _title$split;
|
|
5175
|
-
|
|
5176
5180
|
if (title.includes(" - ")) {
|
|
5177
5181
|
const result = title == null ? void 0 : title.split(" - ");
|
|
5178
5182
|
return minOrMax === "min" ? result == null ? void 0 : result[0] : result == null ? void 0 : result[1];
|
|
5179
5183
|
}
|
|
5180
5184
|
|
|
5181
|
-
|
|
5185
|
+
if (title.includes(",")) {
|
|
5186
|
+
const result = title == null ? void 0 : title.split(",");
|
|
5187
|
+
return result.join(", ");
|
|
5188
|
+
}
|
|
5189
|
+
|
|
5190
|
+
return title.split(" ").find(isNumeric) || title || "";
|
|
5182
5191
|
};
|
|
5183
5192
|
|
|
5184
5193
|
const MinimizedLegend = _ref => {
|
|
@@ -5187,7 +5196,8 @@ const MinimizedLegend = _ref => {
|
|
|
5187
5196
|
let {
|
|
5188
5197
|
values,
|
|
5189
5198
|
title,
|
|
5190
|
-
parameter
|
|
5199
|
+
parameter,
|
|
5200
|
+
hiddenLegends
|
|
5191
5201
|
} = _ref;
|
|
5192
5202
|
const currentValues = [...values];
|
|
5193
5203
|
const other = currentValues.pop();
|
|
@@ -5195,6 +5205,7 @@ const MinimizedLegend = _ref => {
|
|
|
5195
5205
|
const isStrokeWidth = isParameterType(["strokeWidth", "stroke.width"], parameter);
|
|
5196
5206
|
const titleMax = getValueFromLegendTitle((_currentValues$ = currentValues[0]) == null ? void 0 : _currentValues$.title, "max");
|
|
5197
5207
|
const titleMin = getValueFromLegendTitle((_currentValues = currentValues[currentValues.length - 1]) == null ? void 0 : _currentValues.title, "min");
|
|
5208
|
+
const checkIsHidden = React.useCallback(hiddenCondition => hiddenCondition ? hiddenLegends == null ? void 0 : hiddenLegends.some(condition => hiddenCondition.includes(condition)) : false, [hiddenLegends]);
|
|
5198
5209
|
return React__default.createElement(MinimizedLegendContainer, null, !!title && React__default.createElement(MapLegendValueDescr, null, title), isSize ? React__default.createElement(React__default.Fragment, null, React__default.createElement(SizeMinimizedLegend, null, React__default.createElement(SizeMinimizedLegendSymbol, null, React__default.createElement(MapLegendItems, {
|
|
5199
5210
|
parameter: parameter,
|
|
5200
5211
|
isSize: true
|
|
@@ -5202,14 +5213,16 @@ const MinimizedLegend = _ref => {
|
|
|
5202
5213
|
key: "" + value.title + index,
|
|
5203
5214
|
title: value.title,
|
|
5204
5215
|
value: value.parameterValue,
|
|
5205
|
-
parameter: parameter
|
|
5216
|
+
parameter: parameter,
|
|
5217
|
+
isHidden: checkIsHidden(value.hiddenCondition)
|
|
5206
5218
|
})))), React__default.createElement(SizeMinimizedLegendLabel, null, React__default.createElement(SizeMinimizedLegendDown, null, (_currentValues$2 = currentValues[0]) == null ? void 0 : _currentValues$2.title), React__default.createElement(SizeMinimizedLegendUp, null, (_currentValues2 = currentValues[currentValues.length - 1]) == null ? void 0 : _currentValues2.title))), React__default.createElement(SizeMinimizedLegend, null, React__default.createElement(SizeMinimizedLegendSymbol, null, React__default.createElement(MapLegendItems, {
|
|
5207
5219
|
parameter: parameter,
|
|
5208
5220
|
isSize: true
|
|
5209
5221
|
}, React__default.createElement(MapLegendOther, {
|
|
5210
5222
|
title: "\u0414\u0440\u0443\u0433\u043E\u0435",
|
|
5211
5223
|
value: other == null ? void 0 : other.parameterValue,
|
|
5212
|
-
parameter: parameter
|
|
5224
|
+
parameter: parameter,
|
|
5225
|
+
isHidden: checkIsHidden(other == null ? void 0 : other.hiddenCondition)
|
|
5213
5226
|
}))), React__default.createElement(SizeMinimizedLegendLabel, null, React__default.createElement(SizeMinimizedLegendUp, null, "\u0414\u0440\u0443\u0433\u043E\u0435")))) : isStrokeWidth ? React__default.createElement(MapLegendItems, {
|
|
5214
5227
|
parameter: parameter,
|
|
5215
5228
|
isStrokeWidth: true
|
|
@@ -5217,22 +5230,26 @@ const MinimizedLegend = _ref => {
|
|
|
5217
5230
|
key: "" + value.title + index,
|
|
5218
5231
|
title: value.title,
|
|
5219
5232
|
value: value.parameterValue,
|
|
5220
|
-
parameter: parameter
|
|
5233
|
+
parameter: parameter,
|
|
5234
|
+
isHidden: checkIsHidden(value.hiddenCondition)
|
|
5221
5235
|
}, (!index || index === currentValues.length - 1) && value.title)), React__default.createElement(MapLegendOther, {
|
|
5222
5236
|
title: "\u0414\u0440\u0443\u0433\u043E\u0435",
|
|
5223
5237
|
value: other == null ? void 0 : other.parameterValue,
|
|
5224
|
-
parameter: parameter
|
|
5238
|
+
parameter: parameter,
|
|
5239
|
+
isHidden: checkIsHidden(other == null ? void 0 : other.hiddenCondition)
|
|
5225
5240
|
}, "\u0414\u0440\u0443\u0433\u043E\u0435")) : React__default.createElement(MapLegendItems, {
|
|
5226
5241
|
parameter: parameter
|
|
5227
|
-
}, currentValues.map((value, index) => React__default.createElement(MapLegendItem, {
|
|
5242
|
+
}, React__default.createElement(MapLegendItemsContainer, null, currentValues.map((value, index) => React__default.createElement(MapLegendItem, {
|
|
5228
5243
|
key: "" + value.title + index,
|
|
5229
5244
|
title: value.title,
|
|
5230
5245
|
value: value.parameterValue,
|
|
5231
|
-
parameter: parameter
|
|
5232
|
-
|
|
5246
|
+
parameter: parameter,
|
|
5247
|
+
isHidden: checkIsHidden(value.hiddenCondition)
|
|
5248
|
+
}))), React__default.createElement(MapLegendOther, {
|
|
5233
5249
|
title: "\u0414\u0440\u0443\u0433\u043E\u0435",
|
|
5234
5250
|
value: other == null ? void 0 : other.parameterValue,
|
|
5235
|
-
parameter: parameter
|
|
5251
|
+
parameter: parameter,
|
|
5252
|
+
isHidden: checkIsHidden(other == null ? void 0 : other.hiddenCondition)
|
|
5236
5253
|
})), typeof (other == null ? void 0 : other.parameterValue) === "string" && (titleMax || titleMin) && React__default.createElement(MapLegendValues, null, React__default.createElement(MapLegendValuesRange, null, React__default.createElement("div", null, titleMax), React__default.createElement("div", null, titleMin)), React__default.createElement(MapLegendValuesOther, null, "-")));
|
|
5237
5254
|
};
|
|
5238
5255
|
|