@opengeoweb/webmap-react 9.16.0 → 9.17.0
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/index.esm.js +51 -107
- package/package.json +1 -1
- package/src/lib/components/LayerInfo/LayerInfoDialog.stories.d.ts +2 -2
- package/src/lib/components/MapDimensionSelect/DimensionSelectDialog.stories.d.ts +6 -6
- package/src/lib/utils/i18n.d.ts +3 -0
- package/src/lib/storyshots/Storyshots.spec.d.ts +0 -1
package/index.esm.js
CHANGED
|
@@ -2,8 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
3
3
|
import { legendImageStore, WMImageEventType, webmapUtils, getLegendGraphicURLForLayer, LayerType, getWMJSMapById, debugLogger, DebugType, WMLayer, registerWMLayer, WMBBOX, getWMLayerById, WMJSMap, tilesettings } from '@opengeoweb/webmap';
|
|
4
4
|
import { CustomTooltip, CanvasComponent, ToolContainerDraggable, dateUtils, CustomIconButton } from '@opengeoweb/shared';
|
|
5
|
-
import { useTranslation } from 'react-i18next';
|
|
6
5
|
import 'i18next';
|
|
6
|
+
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { Paper, Box, Typography, Grid, TextField, FormControl, InputLabel, Select, MenuItem, Icon as Icon$1, FormLabel, Switch, styled, Slider } from '@mui/material';
|
|
8
8
|
import _, { cloneDeep } from 'lodash';
|
|
9
9
|
import proj4 from 'proj4';
|
|
@@ -24,19 +24,6 @@ var en = {
|
|
|
24
24
|
"webmap-react-expires": "Expires:",
|
|
25
25
|
"webmap-react-sender": "Sender:",
|
|
26
26
|
"webmap-react-identifier": "Identifier:",
|
|
27
|
-
"webmap-react-h5": "Query features along buffered line using WFS and CQL",
|
|
28
|
-
"webmap-react-wfs": "WFS JSON URL:",
|
|
29
|
-
"webmap-react-cql": "CQL expression:",
|
|
30
|
-
"webmap-react-delete": "Delete",
|
|
31
|
-
"webmap-react-feature-type": "Feature type",
|
|
32
|
-
"webmap-react-feature-number": "Feature number",
|
|
33
|
-
"webmap-react-intersection-shapes": "Intersection shapes",
|
|
34
|
-
"webmap-react-features": "Features",
|
|
35
|
-
"webmap-react-url": "URL:",
|
|
36
|
-
"webmap-react-get-feature-info-result": "GetFeatureInfo result:",
|
|
37
|
-
"webmap-react-view": "View",
|
|
38
|
-
"webmap-react-edit": "Edit",
|
|
39
|
-
"webmap-react-esc": "press ESC to exit draw mode",
|
|
40
27
|
"webmap-react-no-layers": "No layers",
|
|
41
28
|
"webmap-react-legend": "Legend",
|
|
42
29
|
"webmap-react-title": "Title",
|
|
@@ -52,7 +39,7 @@ var en = {
|
|
|
52
39
|
"webmap-react-zoom-in": "Zoom in",
|
|
53
40
|
"webmap-react-zoom-out": "Zoom out",
|
|
54
41
|
"webmap-react-show": "Show",
|
|
55
|
-
"webmap-react-click-
|
|
42
|
+
"webmap-react-click-disconnect": "Click to disconnect layer",
|
|
56
43
|
"webmap-react-click-connect": "Click to connect layer",
|
|
57
44
|
"webmap-react-layer-info": "Layer Info"
|
|
58
45
|
};
|
|
@@ -63,17 +50,6 @@ var fi = {
|
|
|
63
50
|
"webmap-react-expires": "ei käännetty",
|
|
64
51
|
"webmap-react-sender": "ei käännetty",
|
|
65
52
|
"webmap-react-identifier": "ei käännetty",
|
|
66
|
-
"webmap-react-h5": "ei käännetty",
|
|
67
|
-
"webmap-react-wfs": "ei käännetty",
|
|
68
|
-
"webmap-react-cql": "ei käännetty",
|
|
69
|
-
"webmap-react-delete": "ei käännetty",
|
|
70
|
-
"webmap-react-feature-type": "ei käännetty",
|
|
71
|
-
"webmap-react-feature-number": "ei käännetty",
|
|
72
|
-
"webmap-react-intersection-shapes": "ei käännetty",
|
|
73
|
-
"webmap-react-get-feature-info-result": "ei käännetty",
|
|
74
|
-
"webmap-react-view": "ei käännetty",
|
|
75
|
-
"webmap-react-edit": "ei käännetty",
|
|
76
|
-
"webmap-react-esc": "ei käännetty",
|
|
77
53
|
"webmap-react-no-layers": "ei käännetty",
|
|
78
54
|
"webmap-react-legend": "ei käännetty",
|
|
79
55
|
"webmap-react-title": "ei käännetty",
|
|
@@ -89,83 +65,61 @@ var fi = {
|
|
|
89
65
|
"webmap-react-zoom-in": "ei käännetty",
|
|
90
66
|
"webmap-react-zoom-out": "ei käännetty",
|
|
91
67
|
"webmap-react-show": "ei käännetty",
|
|
92
|
-
"webmap-react-click-
|
|
68
|
+
"webmap-react-click-disconnect": "ei käännetty",
|
|
93
69
|
"webmap-react-click-connect": "ei käännetty",
|
|
94
70
|
"webmap-react-layer-info": "ei käännetty"
|
|
95
71
|
};
|
|
96
72
|
var no = {
|
|
97
|
-
"webmap-react-event": "
|
|
73
|
+
"webmap-react-event": "hendelse:",
|
|
98
74
|
"webmap-react-sent": "Sendt:",
|
|
99
75
|
"webmap-react-utc": "UTC",
|
|
100
76
|
"webmap-react-expires": "Utgår:",
|
|
101
77
|
"webmap-react-sender": "Avsender:",
|
|
102
|
-
"webmap-react-identifier": "
|
|
103
|
-
"webmap-react-h5": "ikke oversatt",
|
|
104
|
-
"webmap-react-wfs": "ikke oversatt",
|
|
105
|
-
"webmap-react-cql": "ikke oversatt",
|
|
106
|
-
"webmap-react-delete": "Slett",
|
|
107
|
-
"webmap-react-feature-type": "Feature type",
|
|
108
|
-
"webmap-react-feature-number": "Feature nummer",
|
|
109
|
-
"webmap-react-intersection-shapes": "ikke oversatt",
|
|
110
|
-
"webmap-react-get-feature-info-result": "GetFeatureInfo resultat:",
|
|
111
|
-
"webmap-react-view": "View",
|
|
112
|
-
"webmap-react-edit": "Endre",
|
|
113
|
-
"webmap-react-esc": "trykk ESC for å avslutte tegnemodus",
|
|
78
|
+
"webmap-react-identifier": "Identifikator:",
|
|
114
79
|
"webmap-react-no-layers": "Ingen lag",
|
|
115
80
|
"webmap-react-legend": "Legende",
|
|
116
81
|
"webmap-react-title": "Tittel",
|
|
117
82
|
"webmap-react-name": "Navn",
|
|
118
83
|
"webmap-react-service": "Service",
|
|
119
|
-
"webmap-react-abstract": "
|
|
84
|
+
"webmap-react-abstract": "Abstrakt",
|
|
120
85
|
"webmap-react-dimensions": "Dimensjoner",
|
|
121
|
-
"webmap-react-styles": "
|
|
122
|
-
"webmap-react-bounding-box": "
|
|
86
|
+
"webmap-react-styles": "Stiler",
|
|
87
|
+
"webmap-react-bounding-box": "Avgrensningsboks",
|
|
123
88
|
"webmap-react-groups": "Grupper",
|
|
124
89
|
"webmap-react-keywords": "Stikkord",
|
|
125
|
-
"webmap-react-zoom-reset": "
|
|
90
|
+
"webmap-react-zoom-reset": "Tilbakestill zoom",
|
|
126
91
|
"webmap-react-zoom-in": "Zoom inn",
|
|
127
92
|
"webmap-react-zoom-out": "Zoom ut",
|
|
128
93
|
"webmap-react-show": "Vis",
|
|
129
|
-
"webmap-react-click-
|
|
94
|
+
"webmap-react-click-disconnect": "Trykk for å avkoble lag",
|
|
130
95
|
"webmap-react-click-connect": "Trykk for å koble lag",
|
|
131
96
|
"webmap-react-layer-info": "Laginformasjon"
|
|
132
97
|
};
|
|
133
98
|
var nl = {
|
|
134
|
-
"webmap-react-event": "
|
|
135
|
-
"webmap-react-sent": "
|
|
136
|
-
"webmap-react-utc": "
|
|
137
|
-
"webmap-react-expires": "
|
|
138
|
-
"webmap-react-sender": "
|
|
139
|
-
"
|
|
140
|
-
"webmap-react-
|
|
141
|
-
"webmap-react-
|
|
142
|
-
"webmap-react-
|
|
143
|
-
"webmap-react-
|
|
144
|
-
"webmap-react-
|
|
145
|
-
"webmap-react-
|
|
146
|
-
"webmap-react-
|
|
147
|
-
"webmap-react-
|
|
148
|
-
"webmap-react-
|
|
149
|
-
"webmap-react-
|
|
150
|
-
"webmap-react-
|
|
151
|
-
"webmap-react-
|
|
152
|
-
"webmap-react-
|
|
153
|
-
"webmap-react-
|
|
154
|
-
"webmap-react-
|
|
155
|
-
"webmap-react-
|
|
156
|
-
"webmap-react-
|
|
157
|
-
"webmap-react-
|
|
158
|
-
"webmap-react-styles": "niet vertaald",
|
|
159
|
-
"webmap-react-bounding-box": "niet vertaald",
|
|
160
|
-
"webmap-react-groups": "niet vertaald",
|
|
161
|
-
"webmap-react-keywords": "niet vertaald",
|
|
162
|
-
"webmap-react-zoom-reset": "niet vertaald",
|
|
163
|
-
"webmap-react-zoom-in": "niet vertaald",
|
|
164
|
-
"webmap-react-zoom-out": "niet vertaald",
|
|
165
|
-
"webmap-react-show": "niet vertaald",
|
|
166
|
-
"webmap-react-click-diconnect": "niet vertaald",
|
|
167
|
-
"webmap-react-click-connect": "niet vertaald",
|
|
168
|
-
"webmap-react-layer-info": "niet vertaald"
|
|
99
|
+
"webmap-react-event": "event:",
|
|
100
|
+
"webmap-react-sent": "Verzonden:",
|
|
101
|
+
"webmap-react-utc": "UTC",
|
|
102
|
+
"webmap-react-expires": "Verloopt:",
|
|
103
|
+
"webmap-react-sender": "Afzender:",
|
|
104
|
+
"webmap-react-identifier": "Id:",
|
|
105
|
+
"webmap-react-no-layers": "Geen lagen",
|
|
106
|
+
"webmap-react-legend": "Legenda",
|
|
107
|
+
"webmap-react-title": "Titel",
|
|
108
|
+
"webmap-react-name": "Naam",
|
|
109
|
+
"webmap-react-service": "Service",
|
|
110
|
+
"webmap-react-abstract": "Abstract",
|
|
111
|
+
"webmap-react-dimensions": "Dimensies",
|
|
112
|
+
"webmap-react-styles": "Stijlen",
|
|
113
|
+
"webmap-react-bounding-box": "Begrenzend kader",
|
|
114
|
+
"webmap-react-groups": "Groepen",
|
|
115
|
+
"webmap-react-keywords": "Trefwoorden",
|
|
116
|
+
"webmap-react-zoom-reset": "Reset zoom",
|
|
117
|
+
"webmap-react-zoom-in": "Zoom in",
|
|
118
|
+
"webmap-react-zoom-out": "Zoom uit",
|
|
119
|
+
"webmap-react-show": "Open",
|
|
120
|
+
"webmap-react-click-disconnect": "Klik om laag los te koppelen",
|
|
121
|
+
"webmap-react-click-connect": "Klik om laag te koppelen",
|
|
122
|
+
"webmap-react-layer-info": "Laag Informatie"
|
|
169
123
|
};
|
|
170
124
|
var webmapReactTranslations = {
|
|
171
125
|
en: en,
|
|
@@ -1738,6 +1692,7 @@ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
|
1738
1692
|
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
1739
1693
|
* */
|
|
1740
1694
|
const WEBMAP_REACT_NAMESPACE = 'webmapreact';
|
|
1695
|
+
const useWebmapReactTranslation = () => useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
1741
1696
|
|
|
1742
1697
|
var DESCRIPTORS$4 = descriptors;
|
|
1743
1698
|
var uncurryThis$f = functionUncurryThis;
|
|
@@ -1911,7 +1866,7 @@ const Legend = ({
|
|
|
1911
1866
|
let imageHeight;
|
|
1912
1867
|
const {
|
|
1913
1868
|
t
|
|
1914
|
-
} =
|
|
1869
|
+
} = useWebmapReactTranslation();
|
|
1915
1870
|
const legendPrefix = t('webmap-react-legend');
|
|
1916
1871
|
/* Register callback to legendImagestore to trigger rerender when image is loaded. */
|
|
1917
1872
|
useEffect(() => {
|
|
@@ -2020,7 +1975,7 @@ const LegendDialog = ({
|
|
|
2020
1975
|
}) => {
|
|
2021
1976
|
const {
|
|
2022
1977
|
t
|
|
2023
|
-
} =
|
|
1978
|
+
} = useWebmapReactTranslation();
|
|
2024
1979
|
return /*#__PURE__*/React.createElement(ToolContainerDraggable, {
|
|
2025
1980
|
startPosition: {
|
|
2026
1981
|
right: 20,
|
|
@@ -4866,9 +4821,6 @@ const FeatureLayers = ({
|
|
|
4866
4821
|
activeFeatureLayerIndex,
|
|
4867
4822
|
getToolIcon
|
|
4868
4823
|
}) => {
|
|
4869
|
-
const {
|
|
4870
|
-
t
|
|
4871
|
-
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
4872
4824
|
const featureLayerList = geojson ? Array.from(Array(geojson.features.length).keys()).map(index => {
|
|
4873
4825
|
var _a;
|
|
4874
4826
|
return {
|
|
@@ -4888,7 +4840,7 @@ const FeatureLayers = ({
|
|
|
4888
4840
|
}
|
|
4889
4841
|
}, /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
4890
4842
|
id: "demo-feature-number"
|
|
4891
|
-
},
|
|
4843
|
+
}, "Features"), /*#__PURE__*/React__default.createElement(Select, {
|
|
4892
4844
|
labelId: "demo-feature-type",
|
|
4893
4845
|
value: (featureLayerList.length ? activeFeatureLayerIndex : '').toString(),
|
|
4894
4846
|
onChange: event => {
|
|
@@ -4933,19 +4885,16 @@ const EditModeButton = ({
|
|
|
4933
4885
|
drawMode,
|
|
4934
4886
|
onToggleEditMode
|
|
4935
4887
|
}) => {
|
|
4936
|
-
const {
|
|
4937
|
-
t
|
|
4938
|
-
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
4939
4888
|
return /*#__PURE__*/React__default.createElement(Grid, {
|
|
4940
4889
|
item: true,
|
|
4941
4890
|
xs: 12
|
|
4942
4891
|
}, /*#__PURE__*/React__default.createElement(CustomTooltip, {
|
|
4943
4892
|
title: "Switch mode"
|
|
4944
|
-
}, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(FormLabel, null,
|
|
4893
|
+
}, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(FormLabel, null, "View"), /*#__PURE__*/React__default.createElement(Switch, {
|
|
4945
4894
|
"data-testid": "switchMode",
|
|
4946
4895
|
checked: isInEditMode,
|
|
4947
4896
|
onClick: () => onToggleEditMode(!isInEditMode)
|
|
4948
|
-
}), /*#__PURE__*/React__default.createElement(FormLabel, null,
|
|
4897
|
+
}), /*#__PURE__*/React__default.createElement(FormLabel, null, "Edit"), drawMode && ( /*#__PURE__*/React__default.createElement(Typography, {
|
|
4949
4898
|
component: "span",
|
|
4950
4899
|
sx: {
|
|
4951
4900
|
display: 'inline-block',
|
|
@@ -4954,7 +4903,7 @@ const EditModeButton = ({
|
|
|
4954
4903
|
position: 'relative',
|
|
4955
4904
|
fontSize: 14
|
|
4956
4905
|
}
|
|
4957
|
-
},
|
|
4906
|
+
}, "press ESC to exit draw mode")))));
|
|
4958
4907
|
};
|
|
4959
4908
|
|
|
4960
4909
|
/* *
|
|
@@ -5460,9 +5409,6 @@ const IntersectionSelect = ({
|
|
|
5460
5409
|
isDisabled: _isDisabled = false
|
|
5461
5410
|
}) => {
|
|
5462
5411
|
const [activeIntersection, setActiveIntersection] = React__default.useState(0);
|
|
5463
|
-
const {
|
|
5464
|
-
t
|
|
5465
|
-
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
5466
5412
|
return /*#__PURE__*/React__default.createElement(Grid, {
|
|
5467
5413
|
item: true,
|
|
5468
5414
|
sm: 12
|
|
@@ -5473,7 +5419,7 @@ const IntersectionSelect = ({
|
|
|
5473
5419
|
}
|
|
5474
5420
|
}, /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
5475
5421
|
id: "demo-intersection"
|
|
5476
|
-
},
|
|
5422
|
+
}, "Intersection shapes"), /*#__PURE__*/React__default.createElement(Select, {
|
|
5477
5423
|
labelId: "demo-intersection",
|
|
5478
5424
|
value: activeIntersection.toString(),
|
|
5479
5425
|
onChange: event => {
|
|
@@ -8970,7 +8916,7 @@ const ZoomControls = ({
|
|
|
8970
8916
|
}) => {
|
|
8971
8917
|
const {
|
|
8972
8918
|
t
|
|
8973
|
-
} =
|
|
8919
|
+
} = useWebmapReactTranslation();
|
|
8974
8920
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MapControlButton, {
|
|
8975
8921
|
title: t('webmap-react-zoom-reset'),
|
|
8976
8922
|
"data-testid": "zoom-reset",
|
|
@@ -9418,7 +9364,7 @@ const MapWarningProperties = ({
|
|
|
9418
9364
|
const newWidth = parentSize ? parentSize - 100 : 350;
|
|
9419
9365
|
const {
|
|
9420
9366
|
t
|
|
9421
|
-
} =
|
|
9367
|
+
} = useWebmapReactTranslation();
|
|
9422
9368
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
9423
9369
|
style: {
|
|
9424
9370
|
position: 'fixed',
|
|
@@ -9445,9 +9391,9 @@ const MapWarningProperties = ({
|
|
|
9445
9391
|
"data-testid": "map-warning-properties-row"
|
|
9446
9392
|
}, t('webmap-react-event'), ' ', selectedFeatureProperties.languages && selectedFeatureProperties.languages[language].event)), selectedFeatureProperties.onset && ( /*#__PURE__*/React__default.createElement("pre", {
|
|
9447
9393
|
"data-testid": "map-warning-properties-row"
|
|
9448
|
-
}, t('webmap-react-sent'), ' ', dateUtils.dateToString(dateUtils.utc(selectedFeatureProperties.onset),
|
|
9394
|
+
}, t('webmap-react-sent'), ' ', dateUtils.dateToString(dateUtils.utc(selectedFeatureProperties.onset), dateUtils.DATE_FORMAT_NAME_OF_MONTH), ' ', t('webmap-react-utc'))), selectedFeatureProperties.expires && ( /*#__PURE__*/React__default.createElement("pre", {
|
|
9449
9395
|
"data-testid": "map-warning-properties-row"
|
|
9450
|
-
}, t('webmap-react-expires'), ' ', dateUtils.dateToString(dateUtils.utc(selectedFeatureProperties.expires),
|
|
9396
|
+
}, t('webmap-react-expires'), ' ', dateUtils.dateToString(dateUtils.utc(selectedFeatureProperties.expires), dateUtils.DATE_FORMAT_NAME_OF_MONTH), ' ', t('webmap-react-utc'))), selectedFeatureProperties.languages && selectedFeatureProperties.languages[language].senderName && ( /*#__PURE__*/React__default.createElement("pre", {
|
|
9451
9397
|
"data-testid": "map-warning-properties-row"
|
|
9452
9398
|
}, t('webmap-react-sender'), ' ', selectedFeatureProperties.languages && selectedFeatureProperties.languages[language].senderName)), selectedFeatureProperties.identifier && ( /*#__PURE__*/React__default.createElement("pre", {
|
|
9453
9399
|
"data-testid": "map-warning-properties-row"
|
|
@@ -9526,7 +9472,7 @@ const DimensionSelectButton = ({
|
|
|
9526
9472
|
}) => {
|
|
9527
9473
|
const {
|
|
9528
9474
|
t
|
|
9529
|
-
} =
|
|
9475
|
+
} = useWebmapReactTranslation();
|
|
9530
9476
|
const showPrefix = t('webmap-react-show');
|
|
9531
9477
|
const dimConfig = dimensionConfig.find(cnf => cnf.name === dimension);
|
|
9532
9478
|
const Icon = getDimensionIcon$1(dimConfig && dimConfig.iconType || 'IconLevels');
|
|
@@ -9717,7 +9663,7 @@ const MapDimensionSelect = ({
|
|
|
9717
9663
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
9718
9664
|
const {
|
|
9719
9665
|
t
|
|
9720
|
-
} =
|
|
9666
|
+
} = useWebmapReactTranslation();
|
|
9721
9667
|
const tooltipTitle = isLayerDimensionSynced ? t('webmap-react-click-disconnect') : t('webmap-react-click-connect');
|
|
9722
9668
|
return /*#__PURE__*/React.createElement(Grid, {
|
|
9723
9669
|
key: layerId,
|
|
@@ -9850,7 +9796,7 @@ const LayerInfoLegend = ({
|
|
|
9850
9796
|
}) => {
|
|
9851
9797
|
const {
|
|
9852
9798
|
t
|
|
9853
|
-
} =
|
|
9799
|
+
} = useWebmapReactTranslation();
|
|
9854
9800
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
9855
9801
|
variant: "subtitle2",
|
|
9856
9802
|
sx: textStyleWithMargin
|
|
@@ -10403,7 +10349,7 @@ const LayerInfoDialog = ({
|
|
|
10403
10349
|
const dimensions = getDimensionsList(layer.dimensions);
|
|
10404
10350
|
const {
|
|
10405
10351
|
t
|
|
10406
|
-
} =
|
|
10352
|
+
} = useWebmapReactTranslation();
|
|
10407
10353
|
return /*#__PURE__*/React__default.createElement(ToolContainerDraggable, {
|
|
10408
10354
|
onClose: onClose,
|
|
10409
10355
|
startSize: {
|
|
@@ -10442,9 +10388,7 @@ const LayerInfoDialog = ({
|
|
|
10442
10388
|
label: t('webmap-react-styles'),
|
|
10443
10389
|
value: styles
|
|
10444
10390
|
}), /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10445
|
-
label: t('webmap-react-bounding-box',
|
|
10446
|
-
ns: WEBMAP_REACT_NAMESPACE
|
|
10447
|
-
}),
|
|
10391
|
+
label: t('webmap-react-bounding-box'),
|
|
10448
10392
|
value: bbox
|
|
10449
10393
|
}), /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10450
10394
|
label: t('webmap-react-groups'),
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ declare const _default: {
|
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const LayerInfoDialogLight: {
|
|
7
7
|
(): React.ReactElement;
|
|
8
|
-
|
|
8
|
+
tags: string[];
|
|
9
9
|
parameters: {
|
|
10
10
|
zeplinLink: {
|
|
11
11
|
name: string;
|
|
@@ -15,7 +15,7 @@ export declare const LayerInfoDialogLight: {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const LayerInfoDialogDark: {
|
|
17
17
|
(): React.ReactElement;
|
|
18
|
-
|
|
18
|
+
tags: string[];
|
|
19
19
|
parameters: {
|
|
20
20
|
zeplinLink: {
|
|
21
21
|
name: string;
|
|
@@ -5,25 +5,25 @@ declare const _default: {
|
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const DimensionSelectElevationLight: {
|
|
7
7
|
(): React.ReactElement;
|
|
8
|
-
|
|
8
|
+
tags: string[];
|
|
9
9
|
};
|
|
10
10
|
export declare const DimensionSelectElevationDark: {
|
|
11
11
|
(): React.ReactElement;
|
|
12
|
-
|
|
12
|
+
tags: string[];
|
|
13
13
|
};
|
|
14
14
|
export declare const DimensionSelectEnsembleMemberLight: {
|
|
15
15
|
(): React.ReactElement;
|
|
16
|
-
|
|
16
|
+
tags: string[];
|
|
17
17
|
};
|
|
18
18
|
export declare const DimensionSelectEnsembleMemberDark: {
|
|
19
19
|
(): React.ReactElement;
|
|
20
|
-
|
|
20
|
+
tags: string[];
|
|
21
21
|
};
|
|
22
22
|
export declare const DimensionSelectInvalidSyncLight: {
|
|
23
23
|
(): React.ReactElement;
|
|
24
|
-
|
|
24
|
+
tags: string[];
|
|
25
25
|
};
|
|
26
26
|
export declare const DimensionSelectInvalidSyncDark: {
|
|
27
27
|
(): React.ReactElement;
|
|
28
|
-
|
|
28
|
+
tags: string[];
|
|
29
29
|
};
|
package/src/lib/utils/i18n.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
import i18n from 'i18next';
|
|
2
|
+
import { UseTranslationResponse } from 'react-i18next';
|
|
1
3
|
export declare const WEBMAP_REACT_NAMESPACE = "webmapreact";
|
|
2
4
|
export declare const initWebmapReactTestI18n: () => void;
|
|
5
|
+
export declare const useWebmapReactTranslation: () => UseTranslationResponse<typeof WEBMAP_REACT_NAMESPACE, typeof i18n>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|