@evergis/react 2.0.142 → 2.0.143

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/react.esm.js CHANGED
@@ -5,6 +5,7 @@ import { Api, AttributeType, unique, GeometryType, EvergisDynamicLayer as Evergi
5
5
  import { Map as Map$1, BboxChangeEvent, BboxChangeEndEvent } from '@evergis/sgis/es/Map';
6
6
  import { DomPainter, MapResize } from '@evergis/sgis/es/painters/DomPainter/DomPainter';
7
7
  import { FeatureLayer as FeatureLayer$1 } from '@evergis/sgis/es/layers/FeatureLayer';
8
+ import { Icon, IconButton, EverCloudStatisticsIcon, EverCloudZoomtoIcon, EverCloudCloseIcon, EverCloudSearchIcon } from '@evergis/icons';
8
9
  import { ConditionInterpreter, TokenType, ConditionEvaluator } from '@evergis/condition';
9
10
  import { MultiPoint } from '@evergis/sgis/es/features/MultiPoint';
10
11
  import { Polyline } from '@evergis/sgis/es/features/Polyline';
@@ -42,7 +43,6 @@ import { GridClusterProvider } from '@evergis/sgis/es/layers/clusterProviders/Gr
42
43
  import { PointEditor } from '@evergis/sgis/es/controls/PointEditor';
43
44
  import { debounce } from '@evergis/sgis/es/utils/utils';
44
45
  import styled, { css } from 'styled-components';
45
- import { Icon, EverCloudSearchIcon } from '@evergis/icons';
46
46
  import punycode from 'punycode';
47
47
  import { TileLayer as TileLayer$1 } from '@evergis/sgis/es/layers/TileLayer';
48
48
 
@@ -4435,7 +4435,7 @@ const StyleSymbol = _ref => {
4435
4435
  }) : null));
4436
4436
  };
4437
4437
 
4438
- var _templateObject$1, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
4438
+ var _templateObject$1, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
4439
4439
  const EvergisCardContainer = /*#__PURE__*/styled.div(_templateObject$1 || (_templateObject$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n top: 2.25rem;\n right: 0.5rem;\n width: 22.5rem;\n margin-bottom: 1rem;\n max-height: 90%;\n min-height: 1rem;\n background: #fff;\n border-radius: 4px;\n z-index: 1;\n\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n overflow: initial;\n box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.15);\n\n ", " {\n color: rgba(0, 0, 0, 0.65);\n cursor: pointer;\n user-select: none;\n\n &:hover {\n color: #1fb3aa;\n }\n }\n"])), Icon);
4440
4440
  const StickyHeader = /*#__PURE__*/styled.div(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n position: sticky;\n top: 0;\n flex-direction: column;\n background: #fff;\n"])));
4441
4441
  const CardHeader = /*#__PURE__*/styled.div(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 1.5rem 1.5rem 1rem;\n align-items: center;\n"])));
@@ -4453,7 +4453,6 @@ const AttributeValueContainer = /*#__PURE__*/styled.div(_templateObject14 || (_t
4453
4453
  const SimpleAttribute = /*#__PURE__*/styled.div(_templateObject15 || (_templateObject15 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
4454
4454
  const ValueLink = /*#__PURE__*/styled.a(_templateObject16 || (_templateObject16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 0 0.25rem;\n color: #1fb3aa;\n text-decoration: none;\n"])));
4455
4455
  const featureCardIconMixin = /*#__PURE__*/css(_templateObject17 || (_templateObject17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #30454f;\n"])));
4456
- const StatIcon = /*#__PURE__*/styled(Icon)(_templateObject18 || (_templateObject18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
4457
4456
  const ZoomIcon = /*#__PURE__*/styled(Icon)(_templateObject19 || (_templateObject19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
4458
4457
  const CloseIcon = /*#__PURE__*/styled(Icon)(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
4459
4458
  const PrevIcon = /*#__PURE__*/styled(Icon)(_templateObject21 || (_templateObject21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
@@ -4581,16 +4580,13 @@ const StyledCard = _ref => {
4581
4580
  symbol: feature.symbol || {}
4582
4581
  }), React.createElement(CardTitle, null, React.createElement(FeatureName, {
4583
4582
  title: feature.displayName || ''
4584
- }, feature.displayName), React.createElement(LayerName, null, feature.layerAlias)), React.createElement(CardControls, null, onStatistics && React.createElement(StatIcon, {
4585
- kind: "statistics",
4583
+ }, feature.displayName), React.createElement(LayerName, null, feature.layerAlias)), React.createElement(CardControls, null, onStatistics && React.createElement(IconButton, {
4586
4584
  onClick: () => onStatistics(feature)
4587
- }), !hideZoom && React.createElement(ZoomIcon, {
4588
- kind: "zoom_to",
4585
+ }, React.createElement(EverCloudStatisticsIcon, null)), !hideZoom && React.createElement(IconButton, {
4589
4586
  onClick: zoom
4590
- }), React.createElement(CloseIcon, {
4591
- kind: "close",
4587
+ }, React.createElement(EverCloudZoomtoIcon, null)), React.createElement(IconButton, {
4592
4588
  onClick: reset
4593
- }))), features.length > 1 ? React.createElement(CardPagination, null, React.createElement(PrevIcon, {
4589
+ }, React.createElement(EverCloudCloseIcon, null)))), features.length > 1 ? React.createElement(CardPagination, null, React.createElement(PrevIcon, {
4594
4590
  kind: "prev",
4595
4591
  onClick: prev
4596
4592
  }), React.createElement(PaginationDescription, null, React.createElement(CurrentFeatureIndex, {