@evergis/react 2.0.48 → 2.0.52
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/hooks/LayerProps.d.ts +1 -0
- package/dist/hooks/useEvergisDynamicLayer.d.ts +1 -1
- package/dist/hooks/useLayerOpacity.d.ts +2 -0
- package/dist/react.cjs.development.js +133 -715
- 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 +133 -715
- package/dist/react.esm.js.map +1 -1
- package/package.json +4 -4
|
@@ -632,21 +632,6 @@ let ClassificationCondition = /*#__PURE__*/function () {
|
|
|
632
632
|
}
|
|
633
633
|
|
|
634
634
|
_createClass(ClassificationCondition, [{
|
|
635
|
-
key: "isUnique",
|
|
636
|
-
value: function isUnique() {
|
|
637
|
-
return this.leftExpression.operation === condition.TokenType.ArEq;
|
|
638
|
-
}
|
|
639
|
-
}, {
|
|
640
|
-
key: "isRange",
|
|
641
|
-
value: function isRange() {
|
|
642
|
-
return [condition.TokenType.ArGr, condition.TokenType.ArGre, condition.TokenType.ArLs, condition.TokenType.ArLse].includes(this.leftExpression.operation);
|
|
643
|
-
}
|
|
644
|
-
}, {
|
|
645
|
-
key: "toString",
|
|
646
|
-
value: function toString() {
|
|
647
|
-
return this.condition;
|
|
648
|
-
}
|
|
649
|
-
}, {
|
|
650
635
|
key: "attributeName",
|
|
651
636
|
get: function get() {
|
|
652
637
|
return this.leftExpression.attribute;
|
|
@@ -702,6 +687,21 @@ let ClassificationCondition = /*#__PURE__*/function () {
|
|
|
702
687
|
/* Range */
|
|
703
688
|
;
|
|
704
689
|
}
|
|
690
|
+
}, {
|
|
691
|
+
key: "isUnique",
|
|
692
|
+
value: function isUnique() {
|
|
693
|
+
return this.leftExpression.operation === condition.TokenType.ArEq;
|
|
694
|
+
}
|
|
695
|
+
}, {
|
|
696
|
+
key: "isRange",
|
|
697
|
+
value: function isRange() {
|
|
698
|
+
return [condition.TokenType.ArGr, condition.TokenType.ArGre, condition.TokenType.ArLs, condition.TokenType.ArLse].includes(this.leftExpression.operation);
|
|
699
|
+
}
|
|
700
|
+
}, {
|
|
701
|
+
key: "toString",
|
|
702
|
+
value: function toString() {
|
|
703
|
+
return this.condition;
|
|
704
|
+
}
|
|
705
705
|
}, {
|
|
706
706
|
key: "leftExpression",
|
|
707
707
|
get: function get() {
|
|
@@ -894,6 +894,11 @@ let ClassificationManager = /*#__PURE__*/function () {
|
|
|
894
894
|
}
|
|
895
895
|
|
|
896
896
|
_createClass(ClassificationManager, [{
|
|
897
|
+
key: "values",
|
|
898
|
+
get: function get() {
|
|
899
|
+
return this.classifications;
|
|
900
|
+
}
|
|
901
|
+
}, {
|
|
897
902
|
key: "find",
|
|
898
903
|
value: function find(predicate) {
|
|
899
904
|
for (const classification of this.classifications) {
|
|
@@ -935,11 +940,6 @@ let ClassificationManager = /*#__PURE__*/function () {
|
|
|
935
940
|
this.classifications.push(...getClassifications(this.style.symbol));
|
|
936
941
|
}
|
|
937
942
|
}
|
|
938
|
-
}, {
|
|
939
|
-
key: "values",
|
|
940
|
-
get: function get() {
|
|
941
|
-
return this.classifications;
|
|
942
|
-
}
|
|
943
943
|
}]);
|
|
944
944
|
|
|
945
945
|
return ClassificationManager;
|
|
@@ -1064,6 +1064,7 @@ const mergeAttributes = (attributes1, attributes2) => {
|
|
|
1064
1064
|
}) || {}));
|
|
1065
1065
|
};
|
|
1066
1066
|
|
|
1067
|
+
const _excluded = ["ignoreLabel", "label", "symbol", "raster", "children"];
|
|
1067
1068
|
const createCompositeSymbol = childSymbols => ({
|
|
1068
1069
|
type: 'compositeSymbol',
|
|
1069
1070
|
childSymbols
|
|
@@ -1101,7 +1102,7 @@ const packStyle = style => {
|
|
|
1101
1102
|
raster,
|
|
1102
1103
|
children
|
|
1103
1104
|
} = style,
|
|
1104
|
-
styleDc = _objectWithoutPropertiesLoose(style,
|
|
1105
|
+
styleDc = _objectWithoutPropertiesLoose(style, _excluded);
|
|
1105
1106
|
|
|
1106
1107
|
const childSymbols = [!ignoreLabel && label, raster].filter(Boolean);
|
|
1107
1108
|
return _extends({}, styleDc, {
|
|
@@ -1533,6 +1534,11 @@ let ArrowLineMiterRender = /*#__PURE__*/function (_LineMiterRender) {
|
|
|
1533
1534
|
}
|
|
1534
1535
|
|
|
1535
1536
|
_createClass(ArrowLineMiterRender, [{
|
|
1537
|
+
key: "usageSize",
|
|
1538
|
+
get: function get() {
|
|
1539
|
+
return this.miterSize + this.strokeWidth;
|
|
1540
|
+
}
|
|
1541
|
+
}, {
|
|
1536
1542
|
key: "createRings",
|
|
1537
1543
|
value: function createRings(_ref, xMultiplier) {
|
|
1538
1544
|
let [x, y] = _ref;
|
|
@@ -1552,11 +1558,6 @@ let ArrowLineMiterRender = /*#__PURE__*/function (_LineMiterRender) {
|
|
|
1552
1558
|
strokeWidth: this.strokeWidth
|
|
1553
1559
|
});
|
|
1554
1560
|
}
|
|
1555
|
-
}, {
|
|
1556
|
-
key: "usageSize",
|
|
1557
|
-
get: function get() {
|
|
1558
|
-
return this.miterSize + this.strokeWidth;
|
|
1559
|
-
}
|
|
1560
1561
|
}]);
|
|
1561
1562
|
|
|
1562
1563
|
return ArrowLineMiterRender;
|
|
@@ -1574,6 +1575,11 @@ let CircleLineMiterRender = /*#__PURE__*/function (_LineMiterRender) {
|
|
|
1574
1575
|
}
|
|
1575
1576
|
|
|
1576
1577
|
_createClass(CircleLineMiterRender, [{
|
|
1578
|
+
key: "usageSize",
|
|
1579
|
+
get: function get() {
|
|
1580
|
+
return this.miterSize + this.strokeWidth * 3;
|
|
1581
|
+
}
|
|
1582
|
+
}, {
|
|
1577
1583
|
key: "createRings",
|
|
1578
1584
|
value: function createRings(_ref, xMultiplier) {
|
|
1579
1585
|
let [x, y] = _ref;
|
|
@@ -1590,11 +1596,6 @@ let CircleLineMiterRender = /*#__PURE__*/function (_LineMiterRender) {
|
|
|
1590
1596
|
enclosed: true
|
|
1591
1597
|
});
|
|
1592
1598
|
}
|
|
1593
|
-
}, {
|
|
1594
|
-
key: "usageSize",
|
|
1595
|
-
get: function get() {
|
|
1596
|
-
return this.miterSize + this.strokeWidth * 3;
|
|
1597
|
-
}
|
|
1598
1599
|
}]);
|
|
1599
1600
|
|
|
1600
1601
|
return CircleLineMiterRender;
|
|
@@ -1612,6 +1613,11 @@ let SquareLineMiterRender = /*#__PURE__*/function (_LineMiterRender) {
|
|
|
1612
1613
|
}
|
|
1613
1614
|
|
|
1614
1615
|
_createClass(SquareLineMiterRender, [{
|
|
1616
|
+
key: "usageSize",
|
|
1617
|
+
get: function get() {
|
|
1618
|
+
return this.miterSize + this.strokeWidth;
|
|
1619
|
+
}
|
|
1620
|
+
}, {
|
|
1615
1621
|
key: "createRings",
|
|
1616
1622
|
value: function createRings(_ref, xMultiplier) {
|
|
1617
1623
|
let [x, y] = _ref;
|
|
@@ -1631,11 +1637,6 @@ let SquareLineMiterRender = /*#__PURE__*/function (_LineMiterRender) {
|
|
|
1631
1637
|
strokeWidth: this.strokeWidth
|
|
1632
1638
|
});
|
|
1633
1639
|
}
|
|
1634
|
-
}, {
|
|
1635
|
-
key: "usageSize",
|
|
1636
|
-
get: function get() {
|
|
1637
|
-
return this.miterSize + this.strokeWidth;
|
|
1638
|
-
}
|
|
1639
1640
|
}]);
|
|
1640
1641
|
|
|
1641
1642
|
return SquareLineMiterRender;
|
|
@@ -2323,7 +2324,7 @@ let SVGPoly = /*#__PURE__*/function (_Symbol) {
|
|
|
2323
2324
|
}
|
|
2324
2325
|
|
|
2325
2326
|
const polygon = feature.projectTo(bbox.crs);
|
|
2326
|
-
const radiusOffset = (
|
|
2327
|
+
const radiusOffset = (_this$pathStyles = this.pathStyles) != null && _this$pathStyles.radius ? ((_this$pathStyles2 = this.pathStyles) == null ? void 0 : _this$pathStyles2.radius) + ((_this$pathStyles3 = this.pathStyles) != null && _this$pathStyles3.strokeWidth ? ((_this$pathStyles4 = this.pathStyles) == null ? void 0 : _this$pathStyles4.strokeWidth) / 2 : 0) : 0;
|
|
2327
2328
|
const dx = Math.round((polygon.bbox.xMin - bbox.xMin) / resolution) - radiusOffset;
|
|
2328
2329
|
const dy = Math.round((bbox.yMax - polygon.bbox.yMax) / resolution) - radiusOffset;
|
|
2329
2330
|
this.container.style.left = dx.toString() + "px";
|
|
@@ -3171,13 +3172,26 @@ function useLayerVisibility(layer, isDisplayed) {
|
|
|
3171
3172
|
});
|
|
3172
3173
|
}
|
|
3173
3174
|
|
|
3175
|
+
function useLayerOpacity(layer, opacity) {
|
|
3176
|
+
if (opacity === void 0) {
|
|
3177
|
+
opacity = 1;
|
|
3178
|
+
}
|
|
3179
|
+
|
|
3180
|
+
useUpdate({
|
|
3181
|
+
shouldUpdate: () => layer.opacity !== opacity,
|
|
3182
|
+
onUpdate: () => layer.opacity = opacity,
|
|
3183
|
+
deps: [opacity, layer]
|
|
3184
|
+
});
|
|
3185
|
+
}
|
|
3186
|
+
|
|
3174
3187
|
function useEvergisDynamicLayer(_ref) {
|
|
3175
3188
|
let {
|
|
3176
3189
|
name,
|
|
3177
3190
|
zIndex,
|
|
3178
3191
|
style,
|
|
3179
3192
|
condition,
|
|
3180
|
-
isDisplayed
|
|
3193
|
+
isDisplayed,
|
|
3194
|
+
opacity
|
|
3181
3195
|
} = _ref;
|
|
3182
3196
|
const api$1 = useEvergisContext();
|
|
3183
3197
|
const {
|
|
@@ -3199,6 +3213,7 @@ function useEvergisDynamicLayer(_ref) {
|
|
|
3199
3213
|
}, [name, style, condition]);
|
|
3200
3214
|
useLayerOrder(layer, zIndex);
|
|
3201
3215
|
useLayerVisibility(layer, isDisplayed);
|
|
3216
|
+
useLayerOpacity(layer, opacity);
|
|
3202
3217
|
return layer;
|
|
3203
3218
|
}
|
|
3204
3219
|
|
|
@@ -3920,16 +3935,8 @@ const Symbol = (_ref) => {
|
|
|
3920
3935
|
});
|
|
3921
3936
|
};
|
|
3922
3937
|
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
_templateObject = function _templateObject() {
|
|
3927
|
-
return data;
|
|
3928
|
-
};
|
|
3929
|
-
|
|
3930
|
-
return data;
|
|
3931
|
-
}
|
|
3932
|
-
const CompoundIcon = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject(), (_ref) => {
|
|
3938
|
+
var _templateObject;
|
|
3939
|
+
const CompoundIcon = /*#__PURE__*/styled__default.div(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background: ", ";\n height: 32px;\n width: 32px;\n"])), (_ref) => {
|
|
3933
3940
|
let {
|
|
3934
3941
|
geometryType,
|
|
3935
3942
|
icons
|
|
@@ -3959,236 +3966,28 @@ const StyleSymbol = (_ref) => {
|
|
|
3959
3966
|
}) : null));
|
|
3960
3967
|
};
|
|
3961
3968
|
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
};
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
_templateObject19 = function _templateObject19() {
|
|
3986
|
-
return data;
|
|
3987
|
-
};
|
|
3988
|
-
|
|
3989
|
-
return data;
|
|
3990
|
-
}
|
|
3991
|
-
|
|
3992
|
-
function _templateObject18() {
|
|
3993
|
-
const data = _taggedTemplateLiteralLoose([""]);
|
|
3994
|
-
|
|
3995
|
-
_templateObject18 = function _templateObject18() {
|
|
3996
|
-
return data;
|
|
3997
|
-
};
|
|
3998
|
-
|
|
3999
|
-
return data;
|
|
4000
|
-
}
|
|
4001
|
-
|
|
4002
|
-
function _templateObject17() {
|
|
4003
|
-
const data = _taggedTemplateLiteralLoose([""]);
|
|
4004
|
-
|
|
4005
|
-
_templateObject17 = function _templateObject17() {
|
|
4006
|
-
return data;
|
|
4007
|
-
};
|
|
4008
|
-
|
|
4009
|
-
return data;
|
|
4010
|
-
}
|
|
4011
|
-
|
|
4012
|
-
function _templateObject16() {
|
|
4013
|
-
const data = _taggedTemplateLiteralLoose(["\n padding: 0 0.25rem;\n color: #1fb3aa;\n text-decoration: none;\n"]);
|
|
4014
|
-
|
|
4015
|
-
_templateObject16 = function _templateObject16() {
|
|
4016
|
-
return data;
|
|
4017
|
-
};
|
|
4018
|
-
|
|
4019
|
-
return data;
|
|
4020
|
-
}
|
|
4021
|
-
|
|
4022
|
-
function _templateObject15() {
|
|
4023
|
-
const data = _taggedTemplateLiteralLoose([""]);
|
|
4024
|
-
|
|
4025
|
-
_templateObject15 = function _templateObject15() {
|
|
4026
|
-
return data;
|
|
4027
|
-
};
|
|
4028
|
-
|
|
4029
|
-
return data;
|
|
4030
|
-
}
|
|
4031
|
-
|
|
4032
|
-
function _templateObject14() {
|
|
4033
|
-
const data = _taggedTemplateLiteralLoose(["\n flex-wrap: wrap;\n display: flex;\n"]);
|
|
4034
|
-
|
|
4035
|
-
_templateObject14 = function _templateObject14() {
|
|
4036
|
-
return data;
|
|
4037
|
-
};
|
|
4038
|
-
|
|
4039
|
-
return data;
|
|
4040
|
-
}
|
|
4041
|
-
|
|
4042
|
-
function _templateObject13() {
|
|
4043
|
-
const data = _taggedTemplateLiteralLoose(["\n color: #30454f;\n font-size: 0.75rem;\n margin: 0.25rem 0;\n"]);
|
|
4044
|
-
|
|
4045
|
-
_templateObject13 = function _templateObject13() {
|
|
4046
|
-
return data;
|
|
4047
|
-
};
|
|
4048
|
-
|
|
4049
|
-
return data;
|
|
4050
|
-
}
|
|
4051
|
-
|
|
4052
|
-
function _templateObject12() {
|
|
4053
|
-
const data = _taggedTemplateLiteralLoose(["\n padding-bottom: 0.5rem;\n"]);
|
|
4054
|
-
|
|
4055
|
-
_templateObject12 = function _templateObject12() {
|
|
4056
|
-
return data;
|
|
4057
|
-
};
|
|
4058
|
-
|
|
4059
|
-
return data;
|
|
4060
|
-
}
|
|
4061
|
-
|
|
4062
|
-
function _templateObject11() {
|
|
4063
|
-
const data = _taggedTemplateLiteralLoose(["\n padding: 1rem 1.5rem;\n overflow-y: scroll;\n"]);
|
|
4064
|
-
|
|
4065
|
-
_templateObject11 = function _templateObject11() {
|
|
4066
|
-
return data;
|
|
4067
|
-
};
|
|
4068
|
-
|
|
4069
|
-
return data;
|
|
4070
|
-
}
|
|
4071
|
-
|
|
4072
|
-
function _templateObject10() {
|
|
4073
|
-
const data = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n padding: 0 0.25rem;\n color: #1fb3aa;\n"]);
|
|
4074
|
-
|
|
4075
|
-
_templateObject10 = function _templateObject10() {
|
|
4076
|
-
return data;
|
|
4077
|
-
};
|
|
4078
|
-
|
|
4079
|
-
return data;
|
|
4080
|
-
}
|
|
4081
|
-
|
|
4082
|
-
function _templateObject9() {
|
|
4083
|
-
const data = _taggedTemplateLiteralLoose(["\n display: flex;\n"]);
|
|
4084
|
-
|
|
4085
|
-
_templateObject9 = function _templateObject9() {
|
|
4086
|
-
return data;
|
|
4087
|
-
};
|
|
4088
|
-
|
|
4089
|
-
return data;
|
|
4090
|
-
}
|
|
4091
|
-
|
|
4092
|
-
function _templateObject8() {
|
|
4093
|
-
const data = _taggedTemplateLiteralLoose(["\n display: flex;\n height: 2.5rem;\n padding: 0 1.5rem;\n align-items: center;\n font-size: 0.75rem;\n justify-content: space-between;\n background: linear-gradient(\n 0deg,\n rgba(161, 186, 208, 0.12),\n rgba(161, 186, 208, 0.12)\n );\n"]);
|
|
4094
|
-
|
|
4095
|
-
_templateObject8 = function _templateObject8() {
|
|
4096
|
-
return data;
|
|
4097
|
-
};
|
|
4098
|
-
|
|
4099
|
-
return data;
|
|
4100
|
-
}
|
|
4101
|
-
|
|
4102
|
-
function _templateObject7() {
|
|
4103
|
-
const data = _taggedTemplateLiteralLoose(["\n color: #30454f;\n font-size: 0.75rem;\n"]);
|
|
4104
|
-
|
|
4105
|
-
_templateObject7 = function _templateObject7() {
|
|
4106
|
-
return data;
|
|
4107
|
-
};
|
|
4108
|
-
|
|
4109
|
-
return data;
|
|
4110
|
-
}
|
|
4111
|
-
|
|
4112
|
-
function _templateObject6() {
|
|
4113
|
-
const data = _taggedTemplateLiteralLoose(["\n font-size: 1.25rem;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"]);
|
|
4114
|
-
|
|
4115
|
-
_templateObject6 = function _templateObject6() {
|
|
4116
|
-
return data;
|
|
4117
|
-
};
|
|
4118
|
-
|
|
4119
|
-
return data;
|
|
4120
|
-
}
|
|
4121
|
-
|
|
4122
|
-
function _templateObject5() {
|
|
4123
|
-
const data = _taggedTemplateLiteralLoose(["\n display: flex;\n\n ", " {\n margin: 0 0.5rem;\n }\n"]);
|
|
4124
|
-
|
|
4125
|
-
_templateObject5 = function _templateObject5() {
|
|
4126
|
-
return data;
|
|
4127
|
-
};
|
|
4128
|
-
|
|
4129
|
-
return data;
|
|
4130
|
-
}
|
|
4131
|
-
|
|
4132
|
-
function _templateObject4() {
|
|
4133
|
-
const data = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n margin: 0 0.5rem;\n width: 13.5rem;\n flex-grow: 1;\n"]);
|
|
4134
|
-
|
|
4135
|
-
_templateObject4 = function _templateObject4() {
|
|
4136
|
-
return data;
|
|
4137
|
-
};
|
|
4138
|
-
|
|
4139
|
-
return data;
|
|
4140
|
-
}
|
|
4141
|
-
|
|
4142
|
-
function _templateObject3() {
|
|
4143
|
-
const data = _taggedTemplateLiteralLoose(["\n display: flex;\n padding: 1.5rem 1.5rem 1rem;\n align-items: center;\n"]);
|
|
4144
|
-
|
|
4145
|
-
_templateObject3 = function _templateObject3() {
|
|
4146
|
-
return data;
|
|
4147
|
-
};
|
|
4148
|
-
|
|
4149
|
-
return data;
|
|
4150
|
-
}
|
|
4151
|
-
|
|
4152
|
-
function _templateObject2() {
|
|
4153
|
-
const data = _taggedTemplateLiteralLoose(["\n display: flex;\n position: sticky;\n top: 0;\n flex-direction: column;\n background: #fff;\n"]);
|
|
4154
|
-
|
|
4155
|
-
_templateObject2 = function _templateObject2() {
|
|
4156
|
-
return data;
|
|
4157
|
-
};
|
|
4158
|
-
|
|
4159
|
-
return data;
|
|
4160
|
-
}
|
|
4161
|
-
|
|
4162
|
-
function _templateObject$1() {
|
|
4163
|
-
const data = _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"]);
|
|
4164
|
-
|
|
4165
|
-
_templateObject$1 = function _templateObject() {
|
|
4166
|
-
return data;
|
|
4167
|
-
};
|
|
4168
|
-
|
|
4169
|
-
return data;
|
|
4170
|
-
}
|
|
4171
|
-
const EvergisCardContainer = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject$1(), icons.Icon);
|
|
4172
|
-
const StickyHeader = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject2());
|
|
4173
|
-
const CardHeader = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject3());
|
|
4174
|
-
const CardTitle = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject4());
|
|
4175
|
-
const CardControls = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject5(), icons.Icon);
|
|
4176
|
-
const FeatureName = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject6());
|
|
4177
|
-
const LayerName = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject7());
|
|
4178
|
-
const CardPagination = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject8());
|
|
4179
|
-
const PaginationDescription = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject9());
|
|
4180
|
-
const CurrentFeatureIndex = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject10());
|
|
4181
|
-
const CardAttributes = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject11());
|
|
4182
|
-
const AttributeContainer = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject12());
|
|
4183
|
-
const AttributeTitle = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject13());
|
|
4184
|
-
const AttributeValueContainer = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject14());
|
|
4185
|
-
const SimpleAttribute = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject15());
|
|
4186
|
-
const ValueLink = /*#__PURE__*/styled__default.a( /*#__PURE__*/_templateObject16());
|
|
4187
|
-
const StatIcon = /*#__PURE__*/styled__default(icons.EverCloudStatisticsIcon)( /*#__PURE__*/_templateObject17());
|
|
4188
|
-
const ZoomIcon = /*#__PURE__*/styled__default(icons.EverCloudZoomtoIcon)( /*#__PURE__*/_templateObject18());
|
|
4189
|
-
const CloseIcon = /*#__PURE__*/styled__default(icons.EverCloudCloseIcon)( /*#__PURE__*/_templateObject19());
|
|
4190
|
-
const PrevIcon = /*#__PURE__*/styled__default(icons.EverCloudPlayPrevIcon)( /*#__PURE__*/_templateObject20());
|
|
4191
|
-
const NextIcon = /*#__PURE__*/styled__default(icons.EverCloudPlayNextIcon)( /*#__PURE__*/_templateObject21());
|
|
3969
|
+
var _templateObject$1, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
|
|
3970
|
+
const EvergisCardContainer = /*#__PURE__*/styled__default.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"])), icons.Icon);
|
|
3971
|
+
const StickyHeader = /*#__PURE__*/styled__default.div(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n position: sticky;\n top: 0;\n flex-direction: column;\n background: #fff;\n"])));
|
|
3972
|
+
const CardHeader = /*#__PURE__*/styled__default.div(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 1.5rem 1.5rem 1rem;\n align-items: center;\n"])));
|
|
3973
|
+
const CardTitle = /*#__PURE__*/styled__default.div(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n margin: 0 0.5rem;\n width: 13.5rem;\n flex-grow: 1;\n"])));
|
|
3974
|
+
const CardControls = /*#__PURE__*/styled__default.div(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n\n ", " {\n margin: 0 0.5rem;\n }\n"])), icons.Icon);
|
|
3975
|
+
const FeatureName = /*#__PURE__*/styled__default.div(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 1.25rem;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
3976
|
+
const LayerName = /*#__PURE__*/styled__default.div(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #30454f;\n font-size: 0.75rem;\n"])));
|
|
3977
|
+
const CardPagination = /*#__PURE__*/styled__default.div(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n height: 2.5rem;\n padding: 0 1.5rem;\n align-items: center;\n font-size: 0.75rem;\n justify-content: space-between;\n background: linear-gradient(\n 0deg,\n rgba(161, 186, 208, 0.12),\n rgba(161, 186, 208, 0.12)\n );\n"])));
|
|
3978
|
+
const PaginationDescription = /*#__PURE__*/styled__default.div(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
3979
|
+
const CurrentFeatureIndex = /*#__PURE__*/styled__default.div(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n padding: 0 0.25rem;\n color: #1fb3aa;\n"])));
|
|
3980
|
+
const CardAttributes = /*#__PURE__*/styled__default.div(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 1rem 1.5rem;\n overflow-y: scroll;\n"])));
|
|
3981
|
+
const AttributeContainer = /*#__PURE__*/styled__default.div(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-bottom: 0.5rem;\n"])));
|
|
3982
|
+
const AttributeTitle = /*#__PURE__*/styled__default.div(_templateObject13 || (_templateObject13 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #30454f;\n font-size: 0.75rem;\n margin: 0.25rem 0;\n"])));
|
|
3983
|
+
const AttributeValueContainer = /*#__PURE__*/styled__default.div(_templateObject14 || (_templateObject14 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex-wrap: wrap;\n display: flex;\n"])));
|
|
3984
|
+
const SimpleAttribute = /*#__PURE__*/styled__default.div(_templateObject15 || (_templateObject15 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
3985
|
+
const ValueLink = /*#__PURE__*/styled__default.a(_templateObject16 || (_templateObject16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 0 0.25rem;\n color: #1fb3aa;\n text-decoration: none;\n"])));
|
|
3986
|
+
const StatIcon = /*#__PURE__*/styled__default(icons.EverCloudStatisticsIcon)(_templateObject17 || (_templateObject17 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
3987
|
+
const ZoomIcon = /*#__PURE__*/styled__default(icons.EverCloudZoomtoIcon)(_templateObject18 || (_templateObject18 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
3988
|
+
const CloseIcon = /*#__PURE__*/styled__default(icons.EverCloudCloseIcon)(_templateObject19 || (_templateObject19 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
3989
|
+
const PrevIcon = /*#__PURE__*/styled__default(icons.EverCloudPlayPrevIcon)(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
3990
|
+
const NextIcon = /*#__PURE__*/styled__default(icons.EverCloudPlayNextIcon)(_templateObject21 || (_templateObject21 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
4192
3991
|
|
|
4193
3992
|
const MailValue = (_ref) => {
|
|
4194
3993
|
let {
|
|
@@ -4332,13 +4131,14 @@ const StyledCard = (_ref) => {
|
|
|
4332
4131
|
})));
|
|
4333
4132
|
};
|
|
4334
4133
|
|
|
4134
|
+
const _excluded$1 = ["renderCard", "className", "children"];
|
|
4335
4135
|
const EvergisCard = (_ref) => {
|
|
4336
4136
|
let {
|
|
4337
4137
|
renderCard,
|
|
4338
4138
|
className,
|
|
4339
4139
|
children
|
|
4340
4140
|
} = _ref,
|
|
4341
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
4141
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
4342
4142
|
|
|
4343
4143
|
const {
|
|
4344
4144
|
features = []
|
|
@@ -4402,13 +4202,14 @@ const EvergisTileLayer = props => {
|
|
|
4402
4202
|
return null;
|
|
4403
4203
|
};
|
|
4404
4204
|
|
|
4205
|
+
const _excluded$2 = ["maskUrl", "zIndex", "isDisplayed"];
|
|
4405
4206
|
function useTileLayer(_ref) {
|
|
4406
4207
|
let {
|
|
4407
4208
|
maskUrl,
|
|
4408
4209
|
zIndex,
|
|
4409
4210
|
isDisplayed
|
|
4410
4211
|
} = _ref,
|
|
4411
|
-
tileLayerParams = _objectWithoutPropertiesLoose(_ref,
|
|
4212
|
+
tileLayerParams = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
4412
4213
|
|
|
4413
4214
|
const {
|
|
4414
4215
|
map
|
|
@@ -4456,60 +4257,12 @@ const EvergisSelect = (_ref) => {
|
|
|
4456
4257
|
}));
|
|
4457
4258
|
};
|
|
4458
4259
|
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
return data;
|
|
4467
|
-
}
|
|
4468
|
-
|
|
4469
|
-
function _templateObject4$1() {
|
|
4470
|
-
const data = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font-size: 0.625rem;\n padding: 0.125rem 0;\n\n ", " {\n padding-left: 0.5rem;\n }\n"]);
|
|
4471
|
-
|
|
4472
|
-
_templateObject4$1 = function _templateObject4() {
|
|
4473
|
-
return data;
|
|
4474
|
-
};
|
|
4475
|
-
|
|
4476
|
-
return data;
|
|
4477
|
-
}
|
|
4478
|
-
|
|
4479
|
-
function _templateObject3$1() {
|
|
4480
|
-
const data = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin: 0;\n"]);
|
|
4481
|
-
|
|
4482
|
-
_templateObject3$1 = function _templateObject3() {
|
|
4483
|
-
return data;
|
|
4484
|
-
};
|
|
4485
|
-
|
|
4486
|
-
return data;
|
|
4487
|
-
}
|
|
4488
|
-
|
|
4489
|
-
function _templateObject2$1() {
|
|
4490
|
-
const data = _taggedTemplateLiteralLoose([""]);
|
|
4491
|
-
|
|
4492
|
-
_templateObject2$1 = function _templateObject2() {
|
|
4493
|
-
return data;
|
|
4494
|
-
};
|
|
4495
|
-
|
|
4496
|
-
return data;
|
|
4497
|
-
}
|
|
4498
|
-
|
|
4499
|
-
function _templateObject$2() {
|
|
4500
|
-
const data = _taggedTemplateLiteralLoose(["\n background-color: #fff;\n\n canvas {\n border-radius: 0.125rem;\n }\n"]);
|
|
4501
|
-
|
|
4502
|
-
_templateObject$2 = function _templateObject() {
|
|
4503
|
-
return data;
|
|
4504
|
-
};
|
|
4505
|
-
|
|
4506
|
-
return data;
|
|
4507
|
-
}
|
|
4508
|
-
const LegendContainer = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject$2());
|
|
4509
|
-
const LegendSectionContainer = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject2$1());
|
|
4510
|
-
const LegendSymbolTitle = /*#__PURE__*/styled__default.p( /*#__PURE__*/_templateObject3$1());
|
|
4511
|
-
const LegendValueContainer = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject4$1(), LegendSymbolTitle);
|
|
4512
|
-
const LegendSectionHeader = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject5$1());
|
|
4260
|
+
var _templateObject$2, _templateObject2$1, _templateObject3$1, _templateObject4$1, _templateObject5$1;
|
|
4261
|
+
const LegendContainer = /*#__PURE__*/styled__default.div(_templateObject$2 || (_templateObject$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: #fff;\n\n canvas {\n border-radius: 0.125rem;\n }\n"])));
|
|
4262
|
+
const LegendSectionContainer = /*#__PURE__*/styled__default.div(_templateObject2$1 || (_templateObject2$1 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
4263
|
+
const LegendSymbolTitle = /*#__PURE__*/styled__default.p(_templateObject3$1 || (_templateObject3$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin: 0;\n"])));
|
|
4264
|
+
const LegendValueContainer = /*#__PURE__*/styled__default.div(_templateObject4$1 || (_templateObject4$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font-size: 0.625rem;\n padding: 0.125rem 0;\n\n ", " {\n padding-left: 0.5rem;\n }\n"])), LegendSymbolTitle);
|
|
4265
|
+
const LegendSectionHeader = /*#__PURE__*/styled__default.div(_templateObject5$1 || (_templateObject5$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 0.5rem;\n font-size: 0.75rem;\n"])));
|
|
4513
4266
|
|
|
4514
4267
|
const LegendSection = (_ref) => {
|
|
4515
4268
|
let {
|
|
@@ -4520,38 +4273,10 @@ const LegendSection = (_ref) => {
|
|
|
4520
4273
|
return React__default.createElement(LegendSectionContainer, null, React__default.createElement(LegendSectionHeader, null, renderLegendTitle ? renderLegendTitle(item) : item.title), item.values.map(children));
|
|
4521
4274
|
};
|
|
4522
4275
|
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
return data;
|
|
4528
|
-
};
|
|
4529
|
-
|
|
4530
|
-
return data;
|
|
4531
|
-
}
|
|
4532
|
-
|
|
4533
|
-
function _templateObject2$2() {
|
|
4534
|
-
const data = _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"]);
|
|
4535
|
-
|
|
4536
|
-
_templateObject2$2 = function _templateObject2() {
|
|
4537
|
-
return data;
|
|
4538
|
-
};
|
|
4539
|
-
|
|
4540
|
-
return data;
|
|
4541
|
-
}
|
|
4542
|
-
|
|
4543
|
-
function _templateObject$3() {
|
|
4544
|
-
const data = _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"]);
|
|
4545
|
-
|
|
4546
|
-
_templateObject$3 = function _templateObject() {
|
|
4547
|
-
return data;
|
|
4548
|
-
};
|
|
4549
|
-
|
|
4550
|
-
return data;
|
|
4551
|
-
}
|
|
4552
|
-
const InputContainer = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject$3());
|
|
4553
|
-
const InputField = /*#__PURE__*/styled__default.input( /*#__PURE__*/_templateObject2$2());
|
|
4554
|
-
const SearchPrefix = /*#__PURE__*/styled__default(icons.EverCloudSearchIcon)( /*#__PURE__*/_templateObject3$2());
|
|
4276
|
+
var _templateObject$3, _templateObject2$2, _templateObject3$2;
|
|
4277
|
+
const InputContainer = /*#__PURE__*/styled__default.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"])));
|
|
4278
|
+
const InputField = /*#__PURE__*/styled__default.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"])));
|
|
4279
|
+
const SearchPrefix = /*#__PURE__*/styled__default(icons.EverCloudSearchIcon)(_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"])));
|
|
4555
4280
|
|
|
4556
4281
|
const SearchInput = (_ref) => {
|
|
4557
4282
|
let {
|
|
@@ -4706,63 +4431,15 @@ const Map = (_ref) => {
|
|
|
4706
4431
|
}, children);
|
|
4707
4432
|
};
|
|
4708
4433
|
|
|
4709
|
-
|
|
4710
|
-
const data = _taggedTemplateLiteralLoose(["\n ", "\n ", "\n ", "\n ", "\n"]);
|
|
4711
|
-
|
|
4712
|
-
_templateObject5$2 = function _templateObject5() {
|
|
4713
|
-
return data;
|
|
4714
|
-
};
|
|
4715
|
-
|
|
4716
|
-
return data;
|
|
4717
|
-
}
|
|
4718
|
-
|
|
4719
|
-
function _templateObject4$2() {
|
|
4720
|
-
const data = _taggedTemplateLiteralLoose(["\n bottom: ", ";\n right: ", ";\n"]);
|
|
4721
|
-
|
|
4722
|
-
_templateObject4$2 = function _templateObject4() {
|
|
4723
|
-
return data;
|
|
4724
|
-
};
|
|
4725
|
-
|
|
4726
|
-
return data;
|
|
4727
|
-
}
|
|
4728
|
-
|
|
4729
|
-
function _templateObject3$3() {
|
|
4730
|
-
const data = _taggedTemplateLiteralLoose(["\n bottom: ", ";\n left: ", ";\n"]);
|
|
4434
|
+
var _templateObject$4, _templateObject2$3, _templateObject3$3, _templateObject4$2, _templateObject5$2;
|
|
4731
4435
|
|
|
4732
|
-
|
|
4733
|
-
return data;
|
|
4734
|
-
};
|
|
4436
|
+
const topLeft = distance => styled.css(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n top: ", ";\n left: ", ";\n"])), distance, distance);
|
|
4735
4437
|
|
|
4736
|
-
|
|
4737
|
-
}
|
|
4438
|
+
const topRight = distance => styled.css(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["\n top: ", ";\n right: ", ";\n"])), distance, distance);
|
|
4738
4439
|
|
|
4739
|
-
|
|
4740
|
-
const data = _taggedTemplateLiteralLoose(["\n top: ", ";\n right: ", ";\n"]);
|
|
4440
|
+
const bottomLeft = distance => styled.css(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteralLoose(["\n bottom: ", ";\n left: ", ";\n"])), distance, distance);
|
|
4741
4441
|
|
|
4742
|
-
|
|
4743
|
-
return data;
|
|
4744
|
-
};
|
|
4745
|
-
|
|
4746
|
-
return data;
|
|
4747
|
-
}
|
|
4748
|
-
|
|
4749
|
-
function _templateObject$4() {
|
|
4750
|
-
const data = _taggedTemplateLiteralLoose(["\n top: ", ";\n left: ", ";\n"]);
|
|
4751
|
-
|
|
4752
|
-
_templateObject$4 = function _templateObject() {
|
|
4753
|
-
return data;
|
|
4754
|
-
};
|
|
4755
|
-
|
|
4756
|
-
return data;
|
|
4757
|
-
}
|
|
4758
|
-
|
|
4759
|
-
const topLeft = distance => styled.css(_templateObject$4(), distance, distance);
|
|
4760
|
-
|
|
4761
|
-
const topRight = distance => styled.css(_templateObject2$3(), distance, distance);
|
|
4762
|
-
|
|
4763
|
-
const bottomLeft = distance => styled.css(_templateObject3$3(), distance, distance);
|
|
4764
|
-
|
|
4765
|
-
const bottomRight = distance => styled.css(_templateObject4$2(), distance, distance);
|
|
4442
|
+
const bottomRight = distance => styled.css(_templateObject4$2 || (_templateObject4$2 = _taggedTemplateLiteralLoose(["\n bottom: ", ";\n right: ", ";\n"])), distance, distance);
|
|
4766
4443
|
|
|
4767
4444
|
const placementMixin = function placementMixin(placement, distance) {
|
|
4768
4445
|
if (placement === void 0) {
|
|
@@ -4773,97 +4450,19 @@ const placementMixin = function placementMixin(placement, distance) {
|
|
|
4773
4450
|
distance = '1rem';
|
|
4774
4451
|
}
|
|
4775
4452
|
|
|
4776
|
-
return styled.css(_templateObject5$2(), placement === 'top-left' && topLeft(distance), placement === 'top-right' && topRight(distance), placement === 'bottom-left' && bottomLeft(distance), placement === 'bottom-right' && bottomRight(distance));
|
|
4453
|
+
return styled.css(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteralLoose(["\n ", "\n ", "\n ", "\n ", "\n"])), placement === 'top-left' && topLeft(distance), placement === 'top-right' && topRight(distance), placement === 'bottom-left' && bottomLeft(distance), placement === 'bottom-right' && bottomRight(distance));
|
|
4777
4454
|
};
|
|
4778
4455
|
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
};
|
|
4785
|
-
|
|
4786
|
-
return data;
|
|
4787
|
-
}
|
|
4788
|
-
|
|
4789
|
-
function _templateObject7$1() {
|
|
4790
|
-
const data = _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"]);
|
|
4791
|
-
|
|
4792
|
-
_templateObject7$1 = function _templateObject7() {
|
|
4793
|
-
return data;
|
|
4794
|
-
};
|
|
4795
|
-
|
|
4796
|
-
return data;
|
|
4797
|
-
}
|
|
4798
|
-
|
|
4799
|
-
function _templateObject6$1() {
|
|
4800
|
-
const data = _taggedTemplateLiteralLoose(["\n ", "\n"]);
|
|
4801
|
-
|
|
4802
|
-
_templateObject6$1 = function _templateObject6() {
|
|
4803
|
-
return data;
|
|
4804
|
-
};
|
|
4805
|
-
|
|
4806
|
-
return data;
|
|
4807
|
-
}
|
|
4808
|
-
|
|
4809
|
-
function _templateObject5$3() {
|
|
4810
|
-
const data = _taggedTemplateLiteralLoose(["\n ", "\n"]);
|
|
4811
|
-
|
|
4812
|
-
_templateObject5$3 = function _templateObject5() {
|
|
4813
|
-
return data;
|
|
4814
|
-
};
|
|
4815
|
-
|
|
4816
|
-
return data;
|
|
4817
|
-
}
|
|
4818
|
-
|
|
4819
|
-
function _templateObject4$3() {
|
|
4820
|
-
const data = _taggedTemplateLiteralLoose(["\n ", "\n"]);
|
|
4821
|
-
|
|
4822
|
-
_templateObject4$3 = function _templateObject4() {
|
|
4823
|
-
return data;
|
|
4824
|
-
};
|
|
4825
|
-
|
|
4826
|
-
return data;
|
|
4827
|
-
}
|
|
4828
|
-
|
|
4829
|
-
function _templateObject3$4() {
|
|
4830
|
-
const data = _taggedTemplateLiteralLoose(["\n ", "\n"]);
|
|
4831
|
-
|
|
4832
|
-
_templateObject3$4 = function _templateObject3() {
|
|
4833
|
-
return data;
|
|
4834
|
-
};
|
|
4835
|
-
|
|
4836
|
-
return data;
|
|
4837
|
-
}
|
|
4838
|
-
|
|
4839
|
-
function _templateObject2$4() {
|
|
4840
|
-
const data = _taggedTemplateLiteralLoose(["\n ", "\n"]);
|
|
4841
|
-
|
|
4842
|
-
_templateObject2$4 = function _templateObject2() {
|
|
4843
|
-
return data;
|
|
4844
|
-
};
|
|
4845
|
-
|
|
4846
|
-
return data;
|
|
4847
|
-
}
|
|
4848
|
-
|
|
4849
|
-
function _templateObject$5() {
|
|
4850
|
-
const data = _taggedTemplateLiteralLoose(["\n width: 2rem;\n height: 2rem;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n"]);
|
|
4851
|
-
|
|
4852
|
-
_templateObject$5 = function _templateObject() {
|
|
4853
|
-
return data;
|
|
4854
|
-
};
|
|
4456
|
+
var _templateObject$5, _templateObject2$4, _templateObject3$4, _templateObject4$3, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1;
|
|
4457
|
+
const mapControlBtnMixin = /*#__PURE__*/styled.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"])));
|
|
4458
|
+
const ZoomInBtn = /*#__PURE__*/styled__default(icons.EverCloudPlusIcon)(_templateObject2$4 || (_templateObject2$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
|
|
4459
|
+
const ZoomOutBtn = /*#__PURE__*/styled__default(icons.EverCloudMinusIcon)(_templateObject3$4 || (_templateObject3$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
|
|
4460
|
+
const SearchBtn = /*#__PURE__*/styled__default(icons.EverCloudSearchIcon)(_templateObject4$3 || (_templateObject4$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin); // TODO not exists in fonts
|
|
4855
4461
|
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
const
|
|
4859
|
-
const
|
|
4860
|
-
const ZoomOutBtn = /*#__PURE__*/styled__default(icons.EverCloudMinusIcon)( /*#__PURE__*/_templateObject3$4(), mapControlBtnMixin);
|
|
4861
|
-
const SearchBtn = /*#__PURE__*/styled__default(icons.EverCloudSearchIcon)( /*#__PURE__*/_templateObject4$3(), mapControlBtnMixin); // TODO not exists in fonts
|
|
4862
|
-
|
|
4863
|
-
const FullscreenBtn = /*#__PURE__*/styled__default(icons.EverCloudMaximizeIcon)( /*#__PURE__*/_templateObject5$3(), mapControlBtnMixin);
|
|
4864
|
-
const MeasureBtn = /*#__PURE__*/styled__default(icons.EverCloudMeasureLenghtIcon)( /*#__PURE__*/_templateObject6$1(), mapControlBtnMixin);
|
|
4865
|
-
const MapControl = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject7$1());
|
|
4866
|
-
const MapControls = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject8$1(), (_ref) => {
|
|
4462
|
+
const FullscreenBtn = /*#__PURE__*/styled__default(icons.EverCloudMaximizeIcon)(_templateObject5$3 || (_templateObject5$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
|
|
4463
|
+
const MeasureBtn = /*#__PURE__*/styled__default(icons.EverCloudMeasureLenghtIcon)(_templateObject6$1 || (_templateObject6$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
|
|
4464
|
+
const MapControl = /*#__PURE__*/styled__default.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"])));
|
|
4465
|
+
const MapControls = /*#__PURE__*/styled__default.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) => {
|
|
4867
4466
|
let {
|
|
4868
4467
|
vertical
|
|
4869
4468
|
} = _ref;
|
|
@@ -4908,60 +4507,12 @@ const Fullscreen = () => {
|
|
|
4908
4507
|
}));
|
|
4909
4508
|
};
|
|
4910
4509
|
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
return data;
|
|
4919
|
-
}
|
|
4920
|
-
|
|
4921
|
-
function _templateObject4$4() {
|
|
4922
|
-
const data = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"]);
|
|
4923
|
-
|
|
4924
|
-
_templateObject4$4 = function _templateObject4() {
|
|
4925
|
-
return data;
|
|
4926
|
-
};
|
|
4927
|
-
|
|
4928
|
-
return data;
|
|
4929
|
-
}
|
|
4930
|
-
|
|
4931
|
-
function _templateObject3$5() {
|
|
4932
|
-
const data = _taggedTemplateLiteralLoose(["\n margin: 0;\n"]);
|
|
4933
|
-
|
|
4934
|
-
_templateObject3$5 = function _templateObject3() {
|
|
4935
|
-
return data;
|
|
4936
|
-
};
|
|
4937
|
-
|
|
4938
|
-
return data;
|
|
4939
|
-
}
|
|
4940
|
-
|
|
4941
|
-
function _templateObject2$5() {
|
|
4942
|
-
const data = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: 16.5rem;\n height: 3.875rem;\n align-items: center;\n padding: 0.5rem;\n box-sizing: border-box;\n\n canvas {\n height: 1rem;\n width: 0.835rem;\n }\n"]);
|
|
4943
|
-
|
|
4944
|
-
_templateObject2$5 = function _templateObject2() {
|
|
4945
|
-
return data;
|
|
4946
|
-
};
|
|
4947
|
-
|
|
4948
|
-
return data;
|
|
4949
|
-
}
|
|
4950
|
-
|
|
4951
|
-
function _templateObject$6() {
|
|
4952
|
-
const data = _taggedTemplateLiteralLoose(["\n cursor: default;\n"]);
|
|
4953
|
-
|
|
4954
|
-
_templateObject$6 = function _templateObject() {
|
|
4955
|
-
return data;
|
|
4956
|
-
};
|
|
4957
|
-
|
|
4958
|
-
return data;
|
|
4959
|
-
}
|
|
4960
|
-
const MapLegendControl = /*#__PURE__*/styled__default(MapControl)( /*#__PURE__*/_templateObject$6());
|
|
4961
|
-
const MapLegendContainer = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject2$5());
|
|
4962
|
-
const MapLegendHeader = /*#__PURE__*/styled__default(LegendSectionHeader)( /*#__PURE__*/_templateObject3$5());
|
|
4963
|
-
const MapLegendSection = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject4$4());
|
|
4964
|
-
const MapLegendValueDescr = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject5$4());
|
|
4510
|
+
var _templateObject$6, _templateObject2$5, _templateObject3$5, _templateObject4$4, _templateObject5$4;
|
|
4511
|
+
const MapLegendControl = /*#__PURE__*/styled__default(MapControl)(_templateObject$6 || (_templateObject$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: default;\n"])));
|
|
4512
|
+
const MapLegendContainer = /*#__PURE__*/styled__default.div(_templateObject2$5 || (_templateObject2$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: 16.5rem;\n height: 3.875rem;\n align-items: center;\n padding: 0.5rem;\n box-sizing: border-box;\n\n canvas {\n height: 1rem;\n width: 0.835rem;\n }\n"])));
|
|
4513
|
+
const MapLegendHeader = /*#__PURE__*/styled__default(LegendSectionHeader)(_templateObject3$5 || (_templateObject3$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0;\n"])));
|
|
4514
|
+
const MapLegendSection = /*#__PURE__*/styled__default.div(_templateObject4$4 || (_templateObject4$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
|
|
4515
|
+
const MapLegendValueDescr = /*#__PURE__*/styled__default.div(_templateObject5$4 || (_templateObject5$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0.5rem;\n font-size: 0.625rem;\n opacity: 0.65;\n"])));
|
|
4965
4516
|
|
|
4966
4517
|
const MAX_SIZE$2 = 100;
|
|
4967
4518
|
const MapLegendSymbol = (_ref) => {
|
|
@@ -5521,11 +5072,12 @@ let MeasureTool = /*#__PURE__*/function (_React$Component) {
|
|
|
5521
5072
|
return MeasureTool;
|
|
5522
5073
|
}(React__default.Component);
|
|
5523
5074
|
|
|
5075
|
+
const _excluded$3 = ["isActive"];
|
|
5524
5076
|
const Measurer = (_ref) => {
|
|
5525
5077
|
let {
|
|
5526
5078
|
isActive
|
|
5527
5079
|
} = _ref,
|
|
5528
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
5080
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
5529
5081
|
|
|
5530
5082
|
const {
|
|
5531
5083
|
map,
|
|
@@ -5537,43 +5089,15 @@ const Measurer = (_ref) => {
|
|
|
5537
5089
|
}, props)) : null;
|
|
5538
5090
|
};
|
|
5539
5091
|
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
_templateObject3$6 = function _templateObject3() {
|
|
5544
|
-
return data;
|
|
5545
|
-
};
|
|
5546
|
-
|
|
5547
|
-
return data;
|
|
5548
|
-
}
|
|
5549
|
-
|
|
5550
|
-
function _templateObject2$6() {
|
|
5551
|
-
const data = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-end;\n justify-content: center;\n width: ", ";\n height: 0.25rem;\n border: 0.0625rem solid white;\n border-top: 0;\n"]);
|
|
5552
|
-
|
|
5553
|
-
_templateObject2$6 = function _templateObject2() {
|
|
5554
|
-
return data;
|
|
5555
|
-
};
|
|
5556
|
-
|
|
5557
|
-
return data;
|
|
5558
|
-
}
|
|
5559
|
-
|
|
5560
|
-
function _templateObject$7() {
|
|
5561
|
-
const data = _taggedTemplateLiteralLoose(["\n height: 2rem;\n cursor: default;\n display: flex;\n align-items: flex-end;\n padding: 0 0.5rem 0.5rem;\n box-sizing: border-box;\n"]);
|
|
5562
|
-
|
|
5563
|
-
_templateObject$7 = function _templateObject() {
|
|
5564
|
-
return data;
|
|
5565
|
-
};
|
|
5566
|
-
|
|
5567
|
-
return data;
|
|
5568
|
-
}
|
|
5569
|
-
const ScaleRulerContainer = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject$7());
|
|
5570
|
-
const ScaleRulerBlock = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject2$6(), (_ref) => {
|
|
5092
|
+
var _templateObject$7, _templateObject2$6, _templateObject3$6;
|
|
5093
|
+
const ScaleRulerContainer = /*#__PURE__*/styled__default.div(_templateObject$7 || (_templateObject$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 2rem;\n cursor: default;\n display: flex;\n align-items: flex-end;\n padding: 0 0.5rem 0.5rem;\n box-sizing: border-box;\n"])));
|
|
5094
|
+
const ScaleRulerBlock = /*#__PURE__*/styled__default.div(_templateObject2$6 || (_templateObject2$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-end;\n justify-content: center;\n width: ", ";\n height: 0.25rem;\n border: 0.0625rem solid white;\n border-top: 0;\n"])), (_ref) => {
|
|
5571
5095
|
let {
|
|
5572
5096
|
width
|
|
5573
5097
|
} = _ref;
|
|
5574
5098
|
return width + "px";
|
|
5575
5099
|
});
|
|
5576
|
-
const TextContainer = /*#__PURE__*/styled__default.div( /*#__PURE__*/
|
|
5100
|
+
const TextContainer = /*#__PURE__*/styled__default.div(_templateObject3$6 || (_templateObject3$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 2rem;\n display: flex;\n justify-content: center;\n align-items: ", ";\n width: ", ";\n color: #fff;\n font-size: 1rem;\n cursor: default;\n padding: 0 0.5rem;\n"])), (_ref2) => {
|
|
5577
5101
|
let {
|
|
5578
5102
|
alignEnd
|
|
5579
5103
|
} = _ref2;
|
|
@@ -5626,141 +5150,33 @@ const ZoomLevel = () => {
|
|
|
5626
5150
|
}, level || 0);
|
|
5627
5151
|
};
|
|
5628
5152
|
|
|
5629
|
-
|
|
5630
|
-
const data = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 999;\n display: flex;\n font-size: 0.625rem;\n color: #fff;\n background-color: rgba(28, 33, 48, 0.8);\n padding: 0.4em 0.6em;\n border-radius: 2px;\n user-select: none;\n box-sizing: border-box;\n white-space: pre;\n ", "\n ", "\n"]);
|
|
5631
|
-
|
|
5632
|
-
_templateObject11$1 = function _templateObject11() {
|
|
5633
|
-
return data;
|
|
5634
|
-
};
|
|
5635
|
-
|
|
5636
|
-
return data;
|
|
5637
|
-
}
|
|
5638
|
-
|
|
5639
|
-
function _templateObject10$1() {
|
|
5640
|
-
const data = _taggedTemplateLiteralLoose(["\n &:before {\n content: '';\n width: 0;\n height: 0;\n position: absolute;\n }\n"]);
|
|
5641
|
-
|
|
5642
|
-
_templateObject10$1 = function _templateObject10() {
|
|
5643
|
-
return data;
|
|
5644
|
-
};
|
|
5645
|
-
|
|
5646
|
-
return data;
|
|
5647
|
-
}
|
|
5648
|
-
|
|
5649
|
-
function _templateObject9$1() {
|
|
5650
|
-
const data = _taggedTemplateLiteralLoose(["\n ", "\n ", "\n ", "\n ", "\n"]);
|
|
5651
|
-
|
|
5652
|
-
_templateObject9$1 = function _templateObject9() {
|
|
5653
|
-
return data;
|
|
5654
|
-
};
|
|
5655
|
-
|
|
5656
|
-
return data;
|
|
5657
|
-
}
|
|
5658
|
-
|
|
5659
|
-
function _templateObject8$2() {
|
|
5660
|
-
const data = _taggedTemplateLiteralLoose(["\n transform: translate(-50%, 0);\n left: -50%;\n top: ", ";\n ", "\n"]);
|
|
5661
|
-
|
|
5662
|
-
_templateObject8$2 = function _templateObject8() {
|
|
5663
|
-
return data;
|
|
5664
|
-
};
|
|
5665
|
-
|
|
5666
|
-
return data;
|
|
5667
|
-
}
|
|
5668
|
-
|
|
5669
|
-
function _templateObject7$2() {
|
|
5670
|
-
const data = _taggedTemplateLiteralLoose(["\n transform: translate(0, -50%);\n top: -50%;\n right: ", ";\n ", "\n"]);
|
|
5153
|
+
var _templateObject$8, _templateObject2$7, _templateObject3$7, _templateObject4$5, _templateObject5$5, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$1, _templateObject10$1, _templateObject11$1;
|
|
5671
5154
|
|
|
5672
|
-
|
|
5673
|
-
return data;
|
|
5674
|
-
};
|
|
5675
|
-
|
|
5676
|
-
return data;
|
|
5677
|
-
}
|
|
5678
|
-
|
|
5679
|
-
function _templateObject6$2() {
|
|
5680
|
-
const data = _taggedTemplateLiteralLoose(["\n transform: translate(0, -50%);\n top: -50%;\n left: ", ";\n ", "\n"]);
|
|
5681
|
-
|
|
5682
|
-
_templateObject6$2 = function _templateObject6() {
|
|
5683
|
-
return data;
|
|
5684
|
-
};
|
|
5155
|
+
const cornerBottom = cornerSize => styled.css(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n &:before {\n left: 50%;\n transform: translate(-50%, 100%);\n bottom: 0;\n border-left: ", " solid transparent;\n border-right: ", " solid transparent;\n border-top: ", " solid rgba(28, 33, 48, 0.8);\n }\n"])), cornerSize, cornerSize, cornerSize);
|
|
5685
5156
|
|
|
5686
|
-
|
|
5687
|
-
}
|
|
5688
|
-
|
|
5689
|
-
function _templateObject5$5() {
|
|
5690
|
-
const data = _taggedTemplateLiteralLoose(["\n transform: translate(-50%, 0);\n left: -50%;\n bottom: ", ";\n ", "\n"]);
|
|
5157
|
+
const cornerLeft = cornerSize => styled.css(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n &:before {\n transform: translate(-100%, -50%);\n left: 0;\n top: 50%;\n border-top: ", " solid transparent;\n border-right: ", " solid rgba(28, 33, 48, 0.8);\n border-bottom: ", " solid transparent;\n }\n"])), cornerSize, cornerSize, cornerSize);
|
|
5691
5158
|
|
|
5692
|
-
|
|
5693
|
-
return data;
|
|
5694
|
-
};
|
|
5159
|
+
const cornerRight = cornerSize => styled.css(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteralLoose(["\n &:before {\n transform: translate(100%, -50%);\n right: 0;\n top: 50%;\n border-top: ", " solid transparent;\n border-left: ", " solid rgba(28, 33, 48, 0.8);\n border-bottom: ", " solid transparent;\n }\n"])), cornerSize, cornerSize, cornerSize);
|
|
5695
5160
|
|
|
5696
|
-
|
|
5697
|
-
}
|
|
5161
|
+
const cornerTop = cornerSize => styled.css(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n &:before {\n transform: translate(-50%, -100%);\n left: 50%;\n top: 0;\n border-left: ", " solid transparent;\n border-right: ", " solid transparent;\n border-bottom: ", " solid rgba(28, 33, 48, 0.8);\n }\n"])), cornerSize, cornerSize, cornerSize);
|
|
5698
5162
|
|
|
5699
|
-
|
|
5700
|
-
const data = _taggedTemplateLiteralLoose(["\n &:before {\n transform: translate(-50%, -100%);\n left: 50%;\n top: 0;\n border-left: ", " solid transparent;\n border-right: ", " solid transparent;\n border-bottom: ", " solid rgba(28, 33, 48, 0.8);\n }\n"]);
|
|
5163
|
+
const top = (distance, cornerSize) => styled.css(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["\n transform: translate(-50%, 0);\n left: -50%;\n bottom: ", ";\n ", "\n"])), distance, cornerSize && cornerBottom(cornerSize));
|
|
5701
5164
|
|
|
5702
|
-
|
|
5703
|
-
return data;
|
|
5704
|
-
};
|
|
5165
|
+
const right = (distance, cornerSize) => styled.css(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteralLoose(["\n transform: translate(0, -50%);\n top: -50%;\n left: ", ";\n ", "\n"])), distance, cornerSize && cornerLeft(cornerSize));
|
|
5705
5166
|
|
|
5706
|
-
|
|
5707
|
-
}
|
|
5167
|
+
const left = (distance, cornerSize) => styled.css(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n transform: translate(0, -50%);\n top: -50%;\n right: ", ";\n ", "\n"])), distance, cornerSize && cornerRight(cornerSize));
|
|
5708
5168
|
|
|
5709
|
-
|
|
5710
|
-
const data = _taggedTemplateLiteralLoose(["\n &:before {\n transform: translate(100%, -50%);\n right: 0;\n top: 50%;\n border-top: ", " solid transparent;\n border-left: ", " solid rgba(28, 33, 48, 0.8);\n border-bottom: ", " solid transparent;\n }\n"]);
|
|
5711
|
-
|
|
5712
|
-
_templateObject3$7 = function _templateObject3() {
|
|
5713
|
-
return data;
|
|
5714
|
-
};
|
|
5715
|
-
|
|
5716
|
-
return data;
|
|
5717
|
-
}
|
|
5718
|
-
|
|
5719
|
-
function _templateObject2$7() {
|
|
5720
|
-
const data = _taggedTemplateLiteralLoose(["\n &:before {\n transform: translate(-100%, -50%);\n left: 0;\n top: 50%;\n border-top: ", " solid transparent;\n border-right: ", " solid rgba(28, 33, 48, 0.8);\n border-bottom: ", " solid transparent;\n }\n"]);
|
|
5721
|
-
|
|
5722
|
-
_templateObject2$7 = function _templateObject2() {
|
|
5723
|
-
return data;
|
|
5724
|
-
};
|
|
5725
|
-
|
|
5726
|
-
return data;
|
|
5727
|
-
}
|
|
5728
|
-
|
|
5729
|
-
function _templateObject$8() {
|
|
5730
|
-
const data = _taggedTemplateLiteralLoose(["\n &:before {\n left: 50%;\n transform: translate(-50%, 100%);\n bottom: 0;\n border-left: ", " solid transparent;\n border-right: ", " solid transparent;\n border-top: ", " solid rgba(28, 33, 48, 0.8);\n }\n"]);
|
|
5731
|
-
|
|
5732
|
-
_templateObject$8 = function _templateObject() {
|
|
5733
|
-
return data;
|
|
5734
|
-
};
|
|
5735
|
-
|
|
5736
|
-
return data;
|
|
5737
|
-
}
|
|
5738
|
-
|
|
5739
|
-
const cornerBottom = cornerSize => styled.css(_templateObject$8(), cornerSize, cornerSize, cornerSize);
|
|
5740
|
-
|
|
5741
|
-
const cornerLeft = cornerSize => styled.css(_templateObject2$7(), cornerSize, cornerSize, cornerSize);
|
|
5742
|
-
|
|
5743
|
-
const cornerRight = cornerSize => styled.css(_templateObject3$7(), cornerSize, cornerSize, cornerSize);
|
|
5744
|
-
|
|
5745
|
-
const cornerTop = cornerSize => styled.css(_templateObject4$5(), cornerSize, cornerSize, cornerSize);
|
|
5746
|
-
|
|
5747
|
-
const top = (distance, cornerSize) => styled.css(_templateObject5$5(), distance, cornerSize && cornerBottom(cornerSize));
|
|
5748
|
-
|
|
5749
|
-
const right = (distance, cornerSize) => styled.css(_templateObject6$2(), distance, cornerSize && cornerLeft(cornerSize));
|
|
5750
|
-
|
|
5751
|
-
const left = (distance, cornerSize) => styled.css(_templateObject7$2(), distance, cornerSize && cornerRight(cornerSize));
|
|
5752
|
-
|
|
5753
|
-
const bottom = (distance, cornerSize) => styled.css(_templateObject8$2(), distance, cornerSize && cornerTop(cornerSize));
|
|
5169
|
+
const bottom = (distance, cornerSize) => styled.css(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n transform: translate(-50%, 0);\n left: -50%;\n top: ", ";\n ", "\n"])), distance, cornerSize && cornerTop(cornerSize));
|
|
5754
5170
|
|
|
5755
5171
|
const placementMixin$1 = function placementMixin(placement, distance, cornerSize) {
|
|
5756
5172
|
if (placement === void 0) {
|
|
5757
5173
|
placement = 'top';
|
|
5758
5174
|
}
|
|
5759
5175
|
|
|
5760
|
-
return styled.css(_templateObject9$1(), placement === 'top' && top(distance, cornerSize), placement === 'right' && right(distance, cornerSize), placement === 'left' && left(distance, cornerSize), placement === 'bottom' && bottom(distance, cornerSize));
|
|
5176
|
+
return styled.css(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n ", "\n ", "\n ", "\n ", "\n"])), placement === 'top' && top(distance, cornerSize), placement === 'right' && right(distance, cornerSize), placement === 'left' && left(distance, cornerSize), placement === 'bottom' && bottom(distance, cornerSize));
|
|
5761
5177
|
};
|
|
5762
|
-
const corner = /*#__PURE__*/styled.css( /*#__PURE__*/
|
|
5763
|
-
const TooltipComponent = /*#__PURE__*/styled__default.div( /*#__PURE__*/
|
|
5178
|
+
const corner = /*#__PURE__*/styled.css(_templateObject10$1 || (_templateObject10$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n &:before {\n content: '';\n width: 0;\n height: 0;\n position: absolute;\n }\n"])));
|
|
5179
|
+
const TooltipComponent = /*#__PURE__*/styled__default.div(_templateObject11$1 || (_templateObject11$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 999;\n display: flex;\n font-size: 0.625rem;\n color: #fff;\n background-color: rgba(28, 33, 48, 0.8);\n padding: 0.4em 0.6em;\n border-radius: 2px;\n user-select: none;\n box-sizing: border-box;\n white-space: pre;\n ", "\n ", "\n"])), (_ref) => {
|
|
5764
5180
|
let {
|
|
5765
5181
|
placement,
|
|
5766
5182
|
distance = '0.5rem',
|
|
@@ -5775,6 +5191,8 @@ const TooltipComponent = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templat
|
|
|
5775
5191
|
return withArrow && corner;
|
|
5776
5192
|
});
|
|
5777
5193
|
|
|
5194
|
+
const _excluded$4 = ["features", "map", "center", "component", "zIndex", "children", "content", "onEachFeature", "clickMode"];
|
|
5195
|
+
|
|
5778
5196
|
const {
|
|
5779
5197
|
Provider,
|
|
5780
5198
|
Consumer
|
|
@@ -5792,7 +5210,7 @@ const Tooltip = (_ref) => {
|
|
|
5792
5210
|
onEachFeature,
|
|
5793
5211
|
clickMode
|
|
5794
5212
|
} = _ref,
|
|
5795
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
5213
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
5796
5214
|
|
|
5797
5215
|
const onTooltip = useTooltip(zIndex);
|
|
5798
5216
|
React.useEffect(() => {
|