@evergis/react 2.0.170 → 2.0.172
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/Legend/styled.d.ts +5 -1
- package/dist/react.cjs.development.js +40 -39
- 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 +40 -40
- package/dist/react.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ClassificationParameterExtended } from "../../core";
|
|
3
3
|
import { MapLegendItemProps } from "./types";
|
|
4
|
+
export declare const MapLegendDescription: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
5
|
export declare const ItemText: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
6
|
export declare const ItemSeparator: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
7
|
export declare const SymbolContainer: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
7
|
-
export declare const ClassifiedItem: import("styled-components").StyledComponent<"
|
|
8
|
+
export declare const ClassifiedItem: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
+
isHidden?: boolean | undefined;
|
|
10
|
+
isClusterFillColor?: boolean | undefined;
|
|
11
|
+
}, never>;
|
|
8
12
|
export declare const SymbolButton: import("styled-components").StyledComponent<"span", any, {
|
|
9
13
|
onClick?: ((event: import("react").MouseEvent<HTMLSpanElement, MouseEvent>) => void) | null | undefined;
|
|
10
14
|
}, never>;
|
|
@@ -56,7 +56,6 @@ var styled__default = _interopDefault(styled);
|
|
|
56
56
|
var punycode = _interopDefault(require('punycode'));
|
|
57
57
|
var TileLayer$1 = require('@evergis/sgis/es/layers/TileLayer');
|
|
58
58
|
var reactI18next = require('react-i18next');
|
|
59
|
-
var ui = require('@evergis/ui');
|
|
60
59
|
var svg_js = require('@svgdotjs/svg.js');
|
|
61
60
|
var Color = require('@evergis/color/es/Color');
|
|
62
61
|
|
|
@@ -5578,18 +5577,19 @@ const Fullscreen = () => {
|
|
|
5578
5577
|
}));
|
|
5579
5578
|
};
|
|
5580
5579
|
|
|
5581
|
-
var _templateObject$4, _templateObject2$4, _templateObject3$3, _templateObject4$3, _templateObject5$3, _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, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33;
|
|
5582
|
-
const
|
|
5580
|
+
var _templateObject$4, _templateObject2$4, _templateObject3$3, _templateObject4$3, _templateObject5$3, _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, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34;
|
|
5581
|
+
const MapLegendDescription = /*#__PURE__*/styled__default.div(_templateObject$4 || (_templateObject$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 0.75rem;\n"])));
|
|
5582
|
+
const ItemText = /*#__PURE__*/styled__default.div(_templateObject2$4 || (_templateObject2$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-width: calc(100% - 2rem);\n font: ", ";\n"])), _ref => {
|
|
5583
5583
|
let {
|
|
5584
5584
|
theme: {
|
|
5585
5585
|
fonts
|
|
5586
5586
|
}
|
|
5587
5587
|
} = _ref;
|
|
5588
5588
|
return fonts.description;
|
|
5589
|
-
}
|
|
5590
|
-
const ItemSeparator = /*#__PURE__*/styled__default.div(
|
|
5591
|
-
const SymbolContainer = /*#__PURE__*/styled__default("span")(
|
|
5592
|
-
const ClassifiedItem = /*#__PURE__*/styled__default
|
|
5589
|
+
});
|
|
5590
|
+
const ItemSeparator = /*#__PURE__*/styled__default.div(_templateObject3$3 || (_templateObject3$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n :after {\n content: \"-\";\n margin: 0 0.5rem;\n font-size: 0.75rem;\n }\n"])));
|
|
5591
|
+
const SymbolContainer = /*#__PURE__*/styled__default("span")(_templateObject4$3 || (_templateObject4$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n min-width: 16px;\n margin-right: 0.5rem;\n"])));
|
|
5592
|
+
const ClassifiedItem = /*#__PURE__*/styled__default.div(_templateObject5$3 || (_templateObject5$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n /* cursor: ", ";\n pointer-events: ", ";*/\n\n :not(:last-of-type) {\n margin-bottom: 0.25rem;\n }\n\n ", ", ", " {\n transition: opacity 150ms;\n }\n\n ", " {\n opacity: ", ";\n }\n\n ", " {\n opacity: ", ";\n }\n\n /* :hover {\n ", ", ", " {\n opacity: 1;\n }\n }*/\n"])), _ref2 => {
|
|
5593
5593
|
let {
|
|
5594
5594
|
isClusterFillColor
|
|
5595
5595
|
} = _ref2;
|
|
@@ -5599,7 +5599,7 @@ const ClassifiedItem = /*#__PURE__*/styled__default(ui.Flex)(_templateObject4$3
|
|
|
5599
5599
|
isClusterFillColor
|
|
5600
5600
|
} = _ref3;
|
|
5601
5601
|
return isClusterFillColor ? "none" : "auto";
|
|
5602
|
-
}, ItemText, SymbolContainer,
|
|
5602
|
+
}, ItemText, SymbolContainer, ItemText, _ref4 => {
|
|
5603
5603
|
let {
|
|
5604
5604
|
isHidden
|
|
5605
5605
|
} = _ref4;
|
|
@@ -5610,7 +5610,7 @@ const ClassifiedItem = /*#__PURE__*/styled__default(ui.Flex)(_templateObject4$3
|
|
|
5610
5610
|
} = _ref5;
|
|
5611
5611
|
return isHidden ? 0.28 : 1;
|
|
5612
5612
|
}, ItemText, SymbolContainer);
|
|
5613
|
-
const SymbolButtonWithClick = /*#__PURE__*/styled.css(
|
|
5613
|
+
const SymbolButtonWithClick = /*#__PURE__*/styled.css(_templateObject6$2 || (_templateObject6$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 3.875rem;\n height: 3.875rem;\n cursor: pointer;\n\n &:hover {\n background-color: ", ";\n }\n"])), _ref6 => {
|
|
5614
5614
|
let {
|
|
5615
5615
|
theme: {
|
|
5616
5616
|
palette
|
|
@@ -5618,26 +5618,26 @@ const SymbolButtonWithClick = /*#__PURE__*/styled.css(_templateObject5$3 || (_te
|
|
|
5618
5618
|
} = _ref6;
|
|
5619
5619
|
return palette.elementDeep;
|
|
5620
5620
|
});
|
|
5621
|
-
const SymbolButton = /*#__PURE__*/styled__default.span(
|
|
5621
|
+
const SymbolButton = /*#__PURE__*/styled__default.span(_templateObject7$2 || (_templateObject7$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background-color 150ms;\n ", ";\n\n svg {\n max-width: 4rem;\n max-height: 4rem;\n }\n"])), _ref7 => {
|
|
5622
5622
|
let {
|
|
5623
5623
|
onClick
|
|
5624
5624
|
} = _ref7;
|
|
5625
5625
|
return !!onClick && SymbolButtonWithClick;
|
|
5626
5626
|
});
|
|
5627
|
-
const MapLegendControl = /*#__PURE__*/styled__default(MapControl)(
|
|
5628
|
-
const MapLegendContainer = /*#__PURE__*/styled__default.div(
|
|
5629
|
-
const MapLegendHeader = /*#__PURE__*/styled__default.div(
|
|
5630
|
-
const MapLegendDescriptionContainer = /*#__PURE__*/styled__default.div(
|
|
5631
|
-
const MinimizedLegendContainer = /*#__PURE__*/styled__default.div(
|
|
5632
|
-
const MapLegendSectionContainer = /*#__PURE__*/styled__default.div(
|
|
5633
|
-
const MapLegendValueDescr = /*#__PURE__*/styled__default.div(
|
|
5627
|
+
const MapLegendControl = /*#__PURE__*/styled__default(MapControl)(_templateObject8$2 || (_templateObject8$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: default;\n"])));
|
|
5628
|
+
const MapLegendContainer = /*#__PURE__*/styled__default.div(_templateObject9$1 || (_templateObject9$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: 100%;\n padding-bottom: 1rem;\n box-sizing: border-box;\n\n canvas {\n height: 1.625rem;\n width: 1.625rem;\n }\n"])));
|
|
5629
|
+
const MapLegendHeader = /*#__PURE__*/styled__default.div(_templateObject10$1 || (_templateObject10$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-width: 15rem;\n margin-bottom: 0.25rem;\n font-size: 0.75rem;\n font-weight: bold;\n"])));
|
|
5630
|
+
const MapLegendDescriptionContainer = /*#__PURE__*/styled__default.div(_templateObject11$1 || (_templateObject11$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 0.5rem;\n font-weight: 400;\n font-size: 0.625rem;\n color: rgba(48, 69, 79, 0.65);\n"])));
|
|
5631
|
+
const MinimizedLegendContainer = /*#__PURE__*/styled__default.div(_templateObject12$1 || (_templateObject12$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: calc(100% - 1.5rem);\n padding-right: 1.5rem;\n"])));
|
|
5632
|
+
const MapLegendSectionContainer = /*#__PURE__*/styled__default.div(_templateObject13$1 || (_templateObject13$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n \n :not(:last-child) {\n margin-bottom: 1rem;\n }\n"])));
|
|
5633
|
+
const MapLegendValueDescr = /*#__PURE__*/styled__default.div(_templateObject14$1 || (_templateObject14$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n min-height: 1rem;\n margin-bottom: 0.25rem;\n font-size: 0.75rem;\n font-weight: 600;\n line-height: 1rem;\n"])));
|
|
5634
5634
|
|
|
5635
5635
|
const SizeLegendItemMixin = function SizeLegendItemMixin(value) {
|
|
5636
5636
|
if (value === void 0) {
|
|
5637
5637
|
value = 0;
|
|
5638
5638
|
}
|
|
5639
5639
|
|
|
5640
|
-
return styled.css(
|
|
5640
|
+
return styled.css(_templateObject15$1 || (_templateObject15$1 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 50%;\n flex: none;\n height: inherit;\n width: inherit;\n margin: 0 auto;\n background: none;\n border: none;\n\n :after {\n content: \"\";\n display: flex;\n border: 1px rgba(48, 69, 79, 0.28) solid;\n border-radius: 50%;\n margin: 0 0 0 -", "px;\n width: ", "px;\n height: ", "px;\n }\n"])), value / 2, value, value);
|
|
5641
5641
|
};
|
|
5642
5642
|
|
|
5643
5643
|
const StrokeWidthLegendItemMixin = function StrokeWidthLegendItemMixin(value) {
|
|
@@ -5645,11 +5645,11 @@ const StrokeWidthLegendItemMixin = function StrokeWidthLegendItemMixin(value) {
|
|
|
5645
5645
|
value = 0;
|
|
5646
5646
|
}
|
|
5647
5647
|
|
|
5648
|
-
return styled.css(
|
|
5648
|
+
return styled.css(_templateObject16$1 || (_templateObject16$1 = _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));
|
|
5649
5649
|
};
|
|
5650
5650
|
|
|
5651
|
-
const StrokeColorLegendItemMixin = /*#__PURE__*/styled.css(
|
|
5652
|
-
const MapLegendItem = /*#__PURE__*/styled__default.div(
|
|
5651
|
+
const StrokeColorLegendItemMixin = /*#__PURE__*/styled.css(_templateObject17 || (_templateObject17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-right: 0.5rem;\n width: 1.5rem;\n"])));
|
|
5652
|
+
const MapLegendItem = /*#__PURE__*/styled__default.div(_templateObject18 || (_templateObject18 = /*#__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 color: rgba(48, 69, 79, 0.65);\n opacity: ", ";\n\n ", "\n\n ", "\n"])), _ref8 => {
|
|
5653
5653
|
let {
|
|
5654
5654
|
parameter
|
|
5655
5655
|
} = _ref8;
|
|
@@ -5677,16 +5677,16 @@ const MapLegendItem = /*#__PURE__*/styled__default.div(_templateObject17 || (_te
|
|
|
5677
5677
|
} = _ref12;
|
|
5678
5678
|
return isParameterType(["strokeWidth", "stroke.width"], parameter) && StrokeWidthLegendItemMixin(value);
|
|
5679
5679
|
});
|
|
5680
|
-
const MapLegendOther = /*#__PURE__*/styled__default(MapLegendItem)(
|
|
5681
|
-
const SizeLegendItemsMixin = /*#__PURE__*/styled.css(
|
|
5682
|
-
const StrokeWidthLegendItemsMixin = /*#__PURE__*/styled.css(
|
|
5683
|
-
const SizeMinimizedLegend = /*#__PURE__*/styled__default.div(
|
|
5684
|
-
const SizeMinimizedLegendSymbol = /*#__PURE__*/styled__default.div(
|
|
5685
|
-
const SizeMinimizedLegendLabel = /*#__PURE__*/styled__default.div(
|
|
5686
|
-
const SizeMinimizedLegendDown = /*#__PURE__*/styled__default.div(
|
|
5687
|
-
const SizeMinimizedLegendUp = /*#__PURE__*/styled__default(SizeMinimizedLegendDown)(
|
|
5688
|
-
const SingleSizeLegendItemsMixin = /*#__PURE__*/styled.css(
|
|
5689
|
-
const SingleLegendItemsMixin = /*#__PURE__*/styled.css(
|
|
5680
|
+
const MapLegendOther = /*#__PURE__*/styled__default(MapLegendItem)(_templateObject19 || (_templateObject19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n flex: none;\n position: relative;\n width: 1rem;\n margin-left: 0.25rem;\n border-radius: 0.125rem;\n"])));
|
|
5681
|
+
const SizeLegendItemsMixin = /*#__PURE__*/styled.css(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n width: 2rem;\n height: 2rem;\n margin: 0 auto;\n\n ", " {\n width: auto;\n margin-left: 0;\n }\n"])), MapLegendOther);
|
|
5682
|
+
const StrokeWidthLegendItemsMixin = /*#__PURE__*/styled.css(_templateObject21 || (_templateObject21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n flex-direction: column;\n width: auto;\n\n ", " {\n width: calc(100% - 2rem);\n margin-left: 0;\n }\n"])), MapLegendOther);
|
|
5683
|
+
const SizeMinimizedLegend = /*#__PURE__*/styled__default.div(_templateObject22 || (_templateObject22 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: nowrap;\n align-items: center;\n margin: 0.5rem 0 0.25rem;\n"])));
|
|
5684
|
+
const SizeMinimizedLegendSymbol = /*#__PURE__*/styled__default.div(_templateObject23 || (_templateObject23 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 4rem;\n margin-right: 0.75rem;\n"])));
|
|
5685
|
+
const SizeMinimizedLegendLabel = /*#__PURE__*/styled__default.div(_templateObject24 || (_templateObject24 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 0.75rem;\n"])));
|
|
5686
|
+
const SizeMinimizedLegendDown = /*#__PURE__*/styled__default.div(_templateObject25 || (_templateObject25 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: rgba(48, 69, 79, 0.65);\n"])));
|
|
5687
|
+
const SizeMinimizedLegendUp = /*#__PURE__*/styled__default(SizeMinimizedLegendDown)(_templateObject26 || (_templateObject26 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
5688
|
+
const SingleSizeLegendItemsMixin = /*#__PURE__*/styled.css(_templateObject27 || (_templateObject27 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 4rem;\n margin-right: 0.75rem;\n\n ", ":after {\n margin: 0 auto;\n }\n"])), MapLegendItem);
|
|
5689
|
+
const SingleLegendItemsMixin = /*#__PURE__*/styled.css(_templateObject28 || (_templateObject28 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n width: 2rem;\n height: auto;\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"])), _ref13 => {
|
|
5690
5690
|
let {
|
|
5691
5691
|
isSize
|
|
5692
5692
|
} = _ref13;
|
|
@@ -5697,7 +5697,7 @@ const SingleLegendItemsMixin = /*#__PURE__*/styled.css(_templateObject27 || (_te
|
|
|
5697
5697
|
} = _ref14;
|
|
5698
5698
|
return isParameterType(["strokeColor", "stroke.color"], parameter) && StrokeColorLegendItemMixin;
|
|
5699
5699
|
});
|
|
5700
|
-
const MapLegendItems = /*#__PURE__*/styled__default.div(
|
|
5700
|
+
const MapLegendItems = /*#__PURE__*/styled__default.div(_templateObject29 || (_templateObject29 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n width: 100%;\n border-radius: 0.125rem;\n\n ", ";\n ", ";\n ", ";\n"])), _ref15 => {
|
|
5701
5701
|
let {
|
|
5702
5702
|
isSize
|
|
5703
5703
|
} = _ref15;
|
|
@@ -5713,11 +5713,11 @@ const MapLegendItems = /*#__PURE__*/styled__default.div(_templateObject28 || (_t
|
|
|
5713
5713
|
} = _ref17;
|
|
5714
5714
|
return isSingle && SingleLegendItemsMixin;
|
|
5715
5715
|
});
|
|
5716
|
-
const MapLegendItemsContainer = /*#__PURE__*/styled__default.div(
|
|
5717
|
-
const MapLegendValues = /*#__PURE__*/styled__default.div(
|
|
5718
|
-
const MapLegendValuesRange = /*#__PURE__*/styled__default.div(
|
|
5719
|
-
const MapLegendValuesOther = /*#__PURE__*/styled__default(MapLegendOther)(
|
|
5720
|
-
const MapLegendExpandButton = /*#__PURE__*/styled__default.div(
|
|
5716
|
+
const MapLegendItemsContainer = /*#__PURE__*/styled__default.div(_templateObject30 || (_templateObject30 = /*#__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);
|
|
5717
|
+
const MapLegendValues = /*#__PURE__*/styled__default.div(_templateObject31 || (_templateObject31 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n width: 100%;\n margin-top: 0.5rem;\n font-size: 0.75rem;\n color: rgba(48, 69, 79, 0.65);\n"])));
|
|
5718
|
+
const MapLegendValuesRange = /*#__PURE__*/styled__default.div(_templateObject32 || (_templateObject32 = /*#__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 text-align: right;\n }\n }\n"])));
|
|
5719
|
+
const MapLegendValuesOther = /*#__PURE__*/styled__default(MapLegendOther)(_templateObject33 || (_templateObject33 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n border: 0;\n overflow: visible;\n"])));
|
|
5720
|
+
const MapLegendExpandButton = /*#__PURE__*/styled__default.div(_templateObject34 || (_templateObject34 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n margin-top: 0.1rem;\n font-size: 0.625rem;\n color: #1FB3AA;\n"])));
|
|
5721
5721
|
|
|
5722
5722
|
const getValueFromLegendTitle = (title, minOrMax) => {
|
|
5723
5723
|
if (title.includes(" - ")) {
|
|
@@ -6020,7 +6020,7 @@ const MaximizedLegend = _ref => {
|
|
|
6020
6020
|
key: index
|
|
6021
6021
|
}, React__default.createElement(ItemText, {
|
|
6022
6022
|
title: column
|
|
6023
|
-
}, dateTime[0], React__default.createElement(
|
|
6023
|
+
}, dateTime[0], React__default.createElement(MapLegendDescription, null, dateTime[1])), index === 0 && React__default.createElement(ItemSeparator, null));
|
|
6024
6024
|
}, []);
|
|
6025
6025
|
const renderItemText = React.useCallback((title, index) => {
|
|
6026
6026
|
if (!title) {
|
|
@@ -6100,7 +6100,7 @@ const LegendSection = _ref => {
|
|
|
6100
6100
|
const {
|
|
6101
6101
|
t
|
|
6102
6102
|
} = reactI18next.useTranslation("common");
|
|
6103
|
-
const [isExpanded, toggleExpanded] =
|
|
6103
|
+
const [isExpanded, toggleExpanded] = useToggle();
|
|
6104
6104
|
return React__default.createElement(MapLegendSectionContainer, null, React__default.createElement(MapLegendHeader, null, attributeTitle), React__default.createElement(LegendParameterDescription, {
|
|
6105
6105
|
parameter: param
|
|
6106
6106
|
}), isExpanded ? React__default.createElement(MaximizedLegend, {
|
|
@@ -6622,6 +6622,7 @@ exports.MapControl = MapControl;
|
|
|
6622
6622
|
exports.MapControls = MapControls;
|
|
6623
6623
|
exports.MapLegendContainer = MapLegendContainer;
|
|
6624
6624
|
exports.MapLegendControl = MapLegendControl;
|
|
6625
|
+
exports.MapLegendDescription = MapLegendDescription;
|
|
6625
6626
|
exports.MapLegendDescriptionContainer = MapLegendDescriptionContainer;
|
|
6626
6627
|
exports.MapLegendExpandButton = MapLegendExpandButton;
|
|
6627
6628
|
exports.MapLegendHeader = MapLegendHeader;
|