@evergis/react 2.0.189 → 2.0.190
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 +3 -1
- package/dist/react.cjs.development.js +38 -29
- 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 +38 -29
- package/dist/react.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/react.esm.js
CHANGED
|
@@ -5861,12 +5861,19 @@ const MaximizedLegendContainer = /*#__PURE__*/styled.div(_templateObject12$1 ||
|
|
|
5861
5861
|
return isShown ? "visible" : "hidden";
|
|
5862
5862
|
});
|
|
5863
5863
|
const MinimizedLegendContainer = /*#__PURE__*/styled(MaximizedLegendContainer)(_templateObject13$1 || (_templateObject13$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: calc(100% - 1.5rem);\n padding-right: 1.5rem;\n"])));
|
|
5864
|
-
const MapLegendSectionContainer = /*#__PURE__*/styled.div(_templateObject14$1 || (_templateObject14$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n
|
|
5865
|
-
const MapLegendSectionItems = /*#__PURE__*/styled.div(_templateObject15$1 || (_templateObject15$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n height: ", "px;\n overflow:
|
|
5864
|
+
const MapLegendSectionContainer = /*#__PURE__*/styled.div(_templateObject14$1 || (_templateObject14$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n\n :not(:last-child) {\n margin-bottom: 1rem;\n }\n"])));
|
|
5865
|
+
const MapLegendSectionItems = /*#__PURE__*/styled.div(_templateObject15$1 || (_templateObject15$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n height: ", "px;\n overflow: ", ";\n transition: height 0.5s;\n"])), _ref11 => {
|
|
5866
5866
|
let {
|
|
5867
|
-
|
|
5867
|
+
minHeight,
|
|
5868
|
+
maxHeight,
|
|
5869
|
+
isExpanded
|
|
5868
5870
|
} = _ref11;
|
|
5869
|
-
return
|
|
5871
|
+
return isExpanded ? (maxHeight || 0) + 4 : minHeight;
|
|
5872
|
+
}, _ref12 => {
|
|
5873
|
+
let {
|
|
5874
|
+
isExpanded
|
|
5875
|
+
} = _ref12;
|
|
5876
|
+
return isExpanded ? "none" : "hidden";
|
|
5870
5877
|
});
|
|
5871
5878
|
const MapLegendValueDescr = /*#__PURE__*/styled.div(_templateObject16$1 || (_templateObject16$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"])));
|
|
5872
5879
|
|
|
@@ -5883,36 +5890,36 @@ const StrokeWidthLegendItemMixin = function StrokeWidthLegendItemMixin(value) {
|
|
|
5883
5890
|
value = 0;
|
|
5884
5891
|
}
|
|
5885
5892
|
|
|
5886
|
-
return css(_templateObject18 || (_templateObject18 = _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
|
|
5893
|
+
return css(_templateObject18 || (_templateObject18 = _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));
|
|
5887
5894
|
};
|
|
5888
5895
|
|
|
5889
5896
|
const StrokeColorLegendItemMixin = /*#__PURE__*/css(_templateObject19 || (_templateObject19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-right: 0.5rem;\n width: 1.5rem;\n"])));
|
|
5890
|
-
const MapLegendItem = /*#__PURE__*/styled.div(_templateObject20 || (_templateObject20 = /*#__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"])),
|
|
5897
|
+
const MapLegendItem = /*#__PURE__*/styled.div(_templateObject20 || (_templateObject20 = /*#__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"])), _ref13 => {
|
|
5891
5898
|
let {
|
|
5892
5899
|
parameter
|
|
5893
|
-
} =
|
|
5900
|
+
} = _ref13;
|
|
5894
5901
|
return isParameterType(["strokeColor", "stroke.color"], parameter) ? 0.25 : 1;
|
|
5895
|
-
},
|
|
5902
|
+
}, _ref14 => {
|
|
5896
5903
|
let {
|
|
5897
5904
|
value
|
|
5898
|
-
} =
|
|
5905
|
+
} = _ref14;
|
|
5899
5906
|
return typeof value === "number" ? "none" : value;
|
|
5900
|
-
},
|
|
5907
|
+
}, _ref15 => {
|
|
5901
5908
|
let {
|
|
5902
5909
|
isHidden
|
|
5903
|
-
} =
|
|
5910
|
+
} = _ref15;
|
|
5904
5911
|
return isHidden ? 0.28 : 1;
|
|
5905
|
-
},
|
|
5912
|
+
}, _ref16 => {
|
|
5906
5913
|
let {
|
|
5907
5914
|
value,
|
|
5908
5915
|
parameter
|
|
5909
|
-
} =
|
|
5916
|
+
} = _ref16;
|
|
5910
5917
|
return isParameterType("size", parameter) && SizeLegendItemMixin(value);
|
|
5911
|
-
},
|
|
5918
|
+
}, _ref17 => {
|
|
5912
5919
|
let {
|
|
5913
5920
|
value,
|
|
5914
5921
|
parameter
|
|
5915
|
-
} =
|
|
5922
|
+
} = _ref17;
|
|
5916
5923
|
return isParameterType(["strokeWidth", "stroke.width"], parameter) && StrokeWidthLegendItemMixin(value);
|
|
5917
5924
|
});
|
|
5918
5925
|
const MapLegendOther = /*#__PURE__*/styled(MapLegendItem)(_templateObject21 || (_templateObject21 = /*#__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"])));
|
|
@@ -5920,40 +5927,40 @@ const SizeLegendItemsMixin = /*#__PURE__*/css(_templateObject22 || (_templateObj
|
|
|
5920
5927
|
const StrokeWidthLegendItemsMixin = /*#__PURE__*/css(_templateObject23 || (_templateObject23 = /*#__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);
|
|
5921
5928
|
const SizeMinimizedLegend = /*#__PURE__*/styled.div(_templateObject24 || (_templateObject24 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: nowrap;\n align-items: center;\n margin: 0.5rem 0 0.25rem;\n"])));
|
|
5922
5929
|
const SizeMinimizedLegendSymbol = /*#__PURE__*/styled.div(_templateObject25 || (_templateObject25 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 4rem;\n margin-right: 0.75rem;\n"])));
|
|
5923
|
-
const SizeMinimizedLegendLabel = /*#__PURE__*/styled.div(_templateObject26 || (_templateObject26 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 0.75rem;\n"])));
|
|
5930
|
+
const SizeMinimizedLegendLabel = /*#__PURE__*/styled.div(_templateObject26 || (_templateObject26 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-width: 9.75rem;\n font-size: 0.75rem;\n"])));
|
|
5924
5931
|
const SizeMinimizedLegendDown = /*#__PURE__*/styled.div(_templateObject27 || (_templateObject27 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: rgba(48, 69, 79, 0.65);\n"])));
|
|
5925
5932
|
const SizeMinimizedLegendUp = /*#__PURE__*/styled(SizeMinimizedLegendDown)(_templateObject28 || (_templateObject28 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
5926
5933
|
const SingleSizeLegendItemsMixin = /*#__PURE__*/css(_templateObject29 || (_templateObject29 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 4rem;\n margin-right: 0.75rem;\n\n ", ":after {\n margin: 0 auto;\n }\n"])), MapLegendItem);
|
|
5927
|
-
const SingleLegendItemsMixin = /*#__PURE__*/css(_templateObject30 || (_templateObject30 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n width: 2rem;\n height: auto;\n margin: 0;\n ", "\n
|
|
5934
|
+
const SingleLegendItemsMixin = /*#__PURE__*/css(_templateObject30 || (_templateObject30 = /*#__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"])), _ref18 => {
|
|
5928
5935
|
let {
|
|
5929
5936
|
isSize
|
|
5930
|
-
} =
|
|
5937
|
+
} = _ref18;
|
|
5931
5938
|
return isSize && SingleSizeLegendItemsMixin;
|
|
5932
|
-
}, MapLegendItem,
|
|
5939
|
+
}, MapLegendItem, _ref19 => {
|
|
5933
5940
|
let {
|
|
5934
5941
|
parameter
|
|
5935
|
-
} =
|
|
5942
|
+
} = _ref19;
|
|
5936
5943
|
return isParameterType(["strokeColor", "stroke.color"], parameter) && StrokeColorLegendItemMixin;
|
|
5937
5944
|
});
|
|
5938
|
-
const MapLegendItems = /*#__PURE__*/styled.div(_templateObject31 || (_templateObject31 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n width: 100%;\n border-radius: 0.125rem;\n\n ", ";\n ", ";\n ", ";\n"])),
|
|
5945
|
+
const MapLegendItems = /*#__PURE__*/styled.div(_templateObject31 || (_templateObject31 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n width: 100%;\n border-radius: 0.125rem;\n\n ", ";\n ", ";\n ", ";\n"])), _ref20 => {
|
|
5939
5946
|
let {
|
|
5940
5947
|
isSize
|
|
5941
|
-
} =
|
|
5948
|
+
} = _ref20;
|
|
5942
5949
|
return isSize && SizeLegendItemsMixin;
|
|
5943
|
-
},
|
|
5950
|
+
}, _ref21 => {
|
|
5944
5951
|
let {
|
|
5945
5952
|
isStrokeWidth
|
|
5946
|
-
} =
|
|
5953
|
+
} = _ref21;
|
|
5947
5954
|
return isStrokeWidth && StrokeWidthLegendItemsMixin;
|
|
5948
|
-
},
|
|
5955
|
+
}, _ref22 => {
|
|
5949
5956
|
let {
|
|
5950
5957
|
isSingle
|
|
5951
|
-
} =
|
|
5958
|
+
} = _ref22;
|
|
5952
5959
|
return isSingle && SingleLegendItemsMixin;
|
|
5953
5960
|
});
|
|
5954
|
-
const MapLegendItemsContainer = /*#__PURE__*/styled.div(_templateObject32 || (_templateObject32 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n width: 100%;\n
|
|
5961
|
+
const MapLegendItemsContainer = /*#__PURE__*/styled.div(_templateObject32 || (_templateObject32 = /*#__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);
|
|
5955
5962
|
const MapLegendValues = /*#__PURE__*/styled.div(_templateObject33 || (_templateObject33 = /*#__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"])));
|
|
5956
|
-
const MapLegendValuesRange = /*#__PURE__*/styled.div(_templateObject34 || (_templateObject34 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n width: calc(100% - 1.25rem);\n
|
|
5963
|
+
const MapLegendValuesRange = /*#__PURE__*/styled.div(_templateObject34 || (_templateObject34 = /*#__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"])));
|
|
5957
5964
|
const MapLegendValuesOther = /*#__PURE__*/styled(MapLegendOther)(_templateObject35 || (_templateObject35 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n border: 0;\n overflow: visible;\n"])));
|
|
5958
5965
|
const MapLegendExpandButton = /*#__PURE__*/styled.div(_templateObject36 || (_templateObject36 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n margin-top: 0.1rem;\n font-size: 0.625rem;\n color: #1FB3AA;\n"])));
|
|
5959
5966
|
|
|
@@ -6362,7 +6369,9 @@ const LegendSection = _ref => {
|
|
|
6362
6369
|
return React.createElement(MapLegendSectionContainer, null, React.createElement(MapLegendHeader, null, attribute.alias || attribute.name), React.createElement(LegendParameterDescription, {
|
|
6363
6370
|
parameter: parameter
|
|
6364
6371
|
}), React.createElement(MapLegendSectionItems, {
|
|
6365
|
-
|
|
6372
|
+
minHeight: minNode == null ? void 0 : minNode.offsetHeight,
|
|
6373
|
+
maxHeight: maxNode == null ? void 0 : maxNode.offsetHeight,
|
|
6374
|
+
isExpanded: isExpanded
|
|
6366
6375
|
}, React.createElement(MaximizedLegend, {
|
|
6367
6376
|
innerRef: maxRef,
|
|
6368
6377
|
isShown: isExpanded,
|