@evergis/react 2.0.51 → 2.0.54
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/EvergisCard/styled.d.ts +6 -7
- package/dist/components/MapControls/styled.d.ts +5 -6
- package/dist/components/SearchInput/styled.d.ts +1 -2
- package/dist/react.cjs.development.js +51 -17
- 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 +49 -15
- package/dist/react.esm.js.map +1 -1
- package/package.json +23 -20
package/dist/react.esm.js
CHANGED
|
@@ -37,7 +37,7 @@ import { GridClusterProvider } from '@evergis/sgis/es/layers/clusterProviders/Gr
|
|
|
37
37
|
import { PointEditor } from '@evergis/sgis/es/controls/PointEditor';
|
|
38
38
|
import { debounce } from '@evergis/sgis/es/utils/utils';
|
|
39
39
|
import styled, { css } from 'styled-components';
|
|
40
|
-
import { Icon
|
|
40
|
+
import { Icon } from '@evergis/ui';
|
|
41
41
|
import punycode from 'punycode';
|
|
42
42
|
import { TileLayer as TileLayer$1 } from '@evergis/sgis/es/layers/TileLayer';
|
|
43
43
|
import { PolylineControl } from '@evergis/sgis/es/controls/PolylineControl';
|
|
@@ -3964,7 +3964,7 @@ const StyleSymbol = (_ref) => {
|
|
|
3964
3964
|
}) : null));
|
|
3965
3965
|
};
|
|
3966
3966
|
|
|
3967
|
-
var _templateObject$1, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
|
|
3967
|
+
var _templateObject$1, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
|
|
3968
3968
|
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);
|
|
3969
3969
|
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"])));
|
|
3970
3970
|
const CardHeader = /*#__PURE__*/styled.div(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 1.5rem 1.5rem 1rem;\n align-items: center;\n"])));
|
|
@@ -3981,11 +3981,27 @@ const AttributeTitle = /*#__PURE__*/styled.div(_templateObject13 || (_templateOb
|
|
|
3981
3981
|
const AttributeValueContainer = /*#__PURE__*/styled.div(_templateObject14 || (_templateObject14 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex-wrap: wrap;\n display: flex;\n"])));
|
|
3982
3982
|
const SimpleAttribute = /*#__PURE__*/styled.div(_templateObject15 || (_templateObject15 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
3983
3983
|
const ValueLink = /*#__PURE__*/styled.a(_templateObject16 || (_templateObject16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 0 0.25rem;\n color: #1fb3aa;\n text-decoration: none;\n"])));
|
|
3984
|
-
const
|
|
3985
|
-
const
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3984
|
+
const featureCardIconMixin = /*#__PURE__*/css(_templateObject17 || (_templateObject17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #30454f;\n"])));
|
|
3985
|
+
const StatIcon = /*#__PURE__*/styled(Icon)(_templateObject18 || (_templateObject18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
|
|
3986
|
+
StatIcon.defaultProps = {
|
|
3987
|
+
kind: "statistics"
|
|
3988
|
+
};
|
|
3989
|
+
const ZoomIcon = /*#__PURE__*/styled(Icon)(_templateObject19 || (_templateObject19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
|
|
3990
|
+
ZoomIcon.defaultProps = {
|
|
3991
|
+
kind: "plus"
|
|
3992
|
+
};
|
|
3993
|
+
const CloseIcon = /*#__PURE__*/styled(Icon)(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
|
|
3994
|
+
CloseIcon.defaultProps = {
|
|
3995
|
+
kind: "close"
|
|
3996
|
+
};
|
|
3997
|
+
const PrevIcon = /*#__PURE__*/styled(Icon)(_templateObject21 || (_templateObject21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
|
|
3998
|
+
PrevIcon.defaultProps = {
|
|
3999
|
+
kind: "prev"
|
|
4000
|
+
};
|
|
4001
|
+
const NextIcon = /*#__PURE__*/styled(Icon)(_templateObject22 || (_templateObject22 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
|
|
4002
|
+
NextIcon.defaultProps = {
|
|
4003
|
+
kind: "next"
|
|
4004
|
+
};
|
|
3989
4005
|
|
|
3990
4006
|
const MailValue = (_ref) => {
|
|
3991
4007
|
let {
|
|
@@ -4274,7 +4290,10 @@ const LegendSection = (_ref) => {
|
|
|
4274
4290
|
var _templateObject$3, _templateObject2$2, _templateObject3$2;
|
|
4275
4291
|
const InputContainer = /*#__PURE__*/styled.div(_templateObject$3 || (_templateObject$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n border-radius: 0.125rem;\n box-sizing: border-box;\n border: 0.0625rem solid rgba(48, 69, 79, 0.12);\n margin-bottom: 0.5rem;\n"])));
|
|
4276
4292
|
const InputField = /*#__PURE__*/styled.input(_templateObject2$2 || (_templateObject2$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n border: none;\n outline: none;\n font-size: 1rem;\n line-height: 1.1875rem;\n padding: 0 0.5rem;\n background-color: transparent;\n color: rgba(48, 69, 79, 0.87);\n"])));
|
|
4277
|
-
const SearchPrefix = /*#__PURE__*/styled(
|
|
4293
|
+
const SearchPrefix = /*#__PURE__*/styled(Icon)(_templateObject3$2 || (_templateObject3$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: rgba(48, 69, 79, 0.54);\n padding: 0.25rem;\n\n &:hover {\n cursor: pointer;\n color: rgba(48, 69, 79, 0.87);\n }\n"])));
|
|
4294
|
+
SearchPrefix.defaultProps = {
|
|
4295
|
+
kind: "search"
|
|
4296
|
+
};
|
|
4278
4297
|
|
|
4279
4298
|
const SearchInput = (_ref) => {
|
|
4280
4299
|
let {
|
|
@@ -4452,13 +4471,28 @@ const placementMixin = function placementMixin(placement, distance) {
|
|
|
4452
4471
|
};
|
|
4453
4472
|
|
|
4454
4473
|
var _templateObject$5, _templateObject2$4, _templateObject3$4, _templateObject4$3, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1;
|
|
4455
|
-
const mapControlBtnMixin = /*#__PURE__*/css(_templateObject$5 || (_templateObject$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 2rem;\n height: 2rem;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n"])));
|
|
4456
|
-
const ZoomInBtn = /*#__PURE__*/styled(
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
const
|
|
4461
|
-
|
|
4474
|
+
const mapControlBtnMixin = /*#__PURE__*/css(_templateObject$5 || (_templateObject$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 2rem;\n height: 2rem;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n color: #fff;\n"])));
|
|
4475
|
+
const ZoomInBtn = /*#__PURE__*/styled(Icon)(_templateObject2$4 || (_templateObject2$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
|
|
4476
|
+
ZoomInBtn.defaultProps = {
|
|
4477
|
+
kind: "plus"
|
|
4478
|
+
};
|
|
4479
|
+
const ZoomOutBtn = /*#__PURE__*/styled(Icon)(_templateObject3$4 || (_templateObject3$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
|
|
4480
|
+
ZoomOutBtn.defaultProps = {
|
|
4481
|
+
kind: "minus"
|
|
4482
|
+
};
|
|
4483
|
+
const SearchBtn = /*#__PURE__*/styled(Icon)(_templateObject4$3 || (_templateObject4$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
|
|
4484
|
+
SearchBtn.defaultProps = {
|
|
4485
|
+
kind: "search"
|
|
4486
|
+
}; // TODO not exists in fonts
|
|
4487
|
+
|
|
4488
|
+
const FullscreenBtn = /*#__PURE__*/styled(Icon)(_templateObject5$3 || (_templateObject5$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
|
|
4489
|
+
FullscreenBtn.defaultProps = {
|
|
4490
|
+
kind: "maximize"
|
|
4491
|
+
};
|
|
4492
|
+
const MeasureBtn = /*#__PURE__*/styled(Icon)(_templateObject6$1 || (_templateObject6$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
|
|
4493
|
+
MeasureBtn.defaultProps = {
|
|
4494
|
+
kind: "measure_length"
|
|
4495
|
+
};
|
|
4462
4496
|
const MapControl = /*#__PURE__*/styled.div(_templateObject7$1 || (_templateObject7$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 0.15rem;\n background: rgba(28, 33, 48, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n color: #fff;\n font-size: 1.5rem;\n cursor: pointer;\n height: auto;\n width: auto;\n padding: 0.25rem;\n"])));
|
|
4463
4497
|
const MapControls = /*#__PURE__*/styled.div(_templateObject8$1 || (_templateObject8$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n display: flex;\n flex-direction: ", ";\n\n ", "\n\n ", " {\n margin-bottom: ", ";\n margin-right: ", ";\n flex-direction: ", ";\n }\n"])), (_ref) => {
|
|
4464
4498
|
let {
|