@evergis/react 2.0.167 → 2.0.168

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.
@@ -1,5 +1,7 @@
1
1
  export * from './LegendSection';
2
2
  export * from './LegendSymbolRenderer';
3
+ export * from './LegendParameterDescription';
3
4
  export * from './MaximizedLegend';
5
+ export * from './MinimizedLegend';
4
6
  export * from './SvgSymbol';
5
7
  export * from './SymbolByType';
@@ -5629,7 +5629,7 @@ const MapLegendContainer = /*#__PURE__*/styled__default.div(_templateObject8$2 |
5629
5629
  const MapLegendHeader = /*#__PURE__*/styled__default.div(_templateObject9$1 || (_templateObject9$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-width: 15rem;\n margin-bottom: 0.25rem;\n font-weight: 500;\n"])));
5630
5630
  const MapLegendDescriptionContainer = /*#__PURE__*/styled__default.div(_templateObject10$1 || (_templateObject10$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 0.5rem;\n font-weight: 400;\n font-size: 0.625rem;\n color: rgba(255, 255, 255, 0.65);\n"])));
5631
5631
  const MinimizedLegendContainer = /*#__PURE__*/styled__default.div(_templateObject11$1 || (_templateObject11$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: calc(100% - 1.5rem);\n padding-right: 1.5rem;\n"])));
5632
- const MapLegendSectionContainer = /*#__PURE__*/styled__default.div(_templateObject12$1 || (_templateObject12$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n :not(:last-child) {\n margin-bottom: 1rem;\n }\n"])));
5632
+ const MapLegendSectionContainer = /*#__PURE__*/styled__default.div(_templateObject12$1 || (_templateObject12$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n \n :not(:last-child) {\n margin-bottom: 1rem;\n }\n"])));
5633
5633
  const MapLegendValueDescr = /*#__PURE__*/styled__default.div(_templateObject13$1 || (_templateObject13$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) {
@@ -6109,6 +6109,16 @@ const LegendSection = _ref => {
6109
6109
  }, t(isExpanded ? "toggleMenu" : "Развернуть")));
6110
6110
  };
6111
6111
 
6112
+ const LegendParameterDescription = _ref => {
6113
+ let {
6114
+ parameter
6115
+ } = _ref;
6116
+ const isSize = isParameterType("size", parameter);
6117
+ const isStrokeWidth = isParameterType(["strokeWidth", "stroke.width"], parameter);
6118
+ const isStrokeColor = isParameterType(["strokeColor", "stroke.color"], parameter);
6119
+ return React__default.createElement(MapLegendDescriptionContainer, null, isStrokeWidth || isStrokeColor ? isStrokeWidth ? "Толщина обводки" : "Цвет обводки" : isSize ? "Размер знака" : "Цвет символа");
6120
+ };
6121
+
6112
6122
  const Legend = _ref => {
6113
6123
  let {
6114
6124
  layerInfo
@@ -6120,6 +6130,7 @@ const Legend = _ref => {
6120
6130
 
6121
6131
  const attributeName = getAttributeNameFromCondition((_classified$param$val = classified[param].values[0]) == null ? void 0 : _classified$param$val.condition);
6122
6132
  return React__default.createElement(LegendSection, {
6133
+ key: index,
6123
6134
  symbol: (_layerInfo$style = layerInfo.style) == null ? void 0 : _layerInfo$style.symbol,
6124
6135
  attributeType: getAttributeType(layerInfo, attributeName),
6125
6136
  attributeName: attributeName,
@@ -6592,6 +6603,7 @@ exports.ItemSeparator = ItemSeparator;
6592
6603
  exports.ItemText = ItemText;
6593
6604
  exports.LabelSymbol = LabelSymbol;
6594
6605
  exports.Legend = Legend;
6606
+ exports.LegendParameterDescription = LegendParameterDescription;
6595
6607
  exports.LegendProvider = LegendProvider;
6596
6608
  exports.LegendSection = LegendSection;
6597
6609
  exports.LegendSymbolRenderer = LegendSymbolRenderer;
@@ -6618,6 +6630,7 @@ exports.MaximizedLegend = MaximizedLegend;
6618
6630
  exports.Measure = Measure;
6619
6631
  exports.MeasureTool = MeasureTool;
6620
6632
  exports.Measurer = Measurer;
6633
+ exports.MinimizedLegend = MinimizedLegend;
6621
6634
  exports.MinimizedLegendContainer = MinimizedLegendContainer;
6622
6635
  exports.NO_CONTENT_VALUE = NO_CONTENT_VALUE;
6623
6636
  exports.Noop = Noop;