@opengeoweb/core 6.1.1 → 7.0.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.
Files changed (31) hide show
  1. package/index.esm.js +239 -1314
  2. package/package.json +8 -9
  3. package/src/lib/components/Legend/index.d.ts +0 -1
  4. package/src/lib/components/MapControls/index.d.ts +0 -3
  5. package/src/lib/components/MapDraw/DrawingTool/index.d.ts +1 -0
  6. package/src/lib/components/MapDraw/DrawingTool/useAreaDrawDialogAction.d.ts +10 -0
  7. package/src/lib/components/MapDraw/DrawingToolForm/DrawingToolForm.d.ts +2 -1
  8. package/src/lib/components/MapView/index.d.ts +0 -1
  9. package/src/lib/index.d.ts +1 -5
  10. package/src/lib/components/Legend/LegendDialog.d.ts +0 -14
  11. package/src/lib/components/MapControls/MapControlButton.d.ts +0 -10
  12. package/src/lib/components/MapControls/MapControlButton.spec.d.ts +0 -1
  13. package/src/lib/components/MapControls/MapControls.d.ts +0 -7
  14. package/src/lib/components/MapControls/MapControls.spec.d.ts +0 -1
  15. package/src/lib/components/MapControls/ZoomControls.d.ts +0 -8
  16. package/src/lib/components/MapControls/ZoomControls.spec.d.ts +0 -1
  17. package/src/lib/components/MapTime/MapTime.d.ts +0 -11
  18. package/src/lib/components/MapTime/MapTime.spec.d.ts +0 -1
  19. package/src/lib/components/MapView/MapView.Error.stories.d.ts +0 -14
  20. package/src/lib/components/MapView/MapView.MapPin.stories.d.ts +0 -10
  21. package/src/lib/components/MapView/MapView.Passive.stories.d.ts +0 -10
  22. package/src/lib/components/MapView/MapView.RadarAnimation.stories.d.ts +0 -10
  23. package/src/lib/components/MapView/MapView.RadarData.stories.d.ts +0 -10
  24. package/src/lib/components/MapView/MapView.SetProjectionBBox.stories.d.ts +0 -10
  25. package/src/lib/components/MapView/MapView.SetProjectionBBoxLocalState.stories.d.ts +0 -10
  26. package/src/lib/components/MapView/MapView.ShowLayerInfo.stories.d.ts +0 -10
  27. package/src/lib/components/MapView/MapView.d.ts +0 -4
  28. package/src/lib/components/MapView/MapView.spec.d.ts +0 -1
  29. package/src/lib/utils/publicLayers.d.ts +0 -310
  30. package/src/lib/utils/publicServices.d.ts +0 -95
  31. /package/src/lib/components/{Legend/LegendDialog.spec.d.ts → MapDraw/DrawingTool/useAreaDrawDialogAction.spec.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "6.1.1",
3
+ "version": "7.0.0",
4
4
  "description": "GeoWeb Core library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,13 +14,13 @@
14
14
  "peerDependencies": {
15
15
  "@mui/material": "5.12.0",
16
16
  "@mui/system": "5.14.8",
17
- "@opengeoweb/api": "6.1.1",
18
- "@opengeoweb/form-fields": "6.1.1",
19
- "@opengeoweb/shared": "6.1.1",
20
- "@opengeoweb/store": "6.1.1",
21
- "@opengeoweb/theme": "6.1.1",
22
- "@opengeoweb/webmap": "6.1.1",
23
- "@opengeoweb/webmap-react": "6.1.1",
17
+ "@opengeoweb/api": "7.0.0",
18
+ "@opengeoweb/form-fields": "7.0.0",
19
+ "@opengeoweb/shared": "7.0.0",
20
+ "@opengeoweb/store": "7.0.0",
21
+ "@opengeoweb/theme": "7.0.0",
22
+ "@opengeoweb/webmap": "7.0.0",
23
+ "@opengeoweb/webmap-react": "7.0.0",
24
24
  "@redux-eggs/redux-toolkit": "2.2.0",
25
25
  "@redux-eggs/saga-extension": "2.2.0",
26
26
  "@reduxjs/toolkit": "1.9.5",
@@ -37,7 +37,6 @@
37
37
  "react-hook-form": "7.46.1",
38
38
  "react-i18next": "13.2.2",
39
39
  "react-redux": "8.1.2",
40
- "react-resize-detector": "9.1.0",
41
40
  "react-router-dom": "6.15.0",
42
41
  "react-sortablejs": "6.1.4",
43
42
  "react-window": "1.8.9",
@@ -1,3 +1,2 @@
1
- export { default as LegendDialog } from './LegendDialog';
2
1
  export { default as LegendConnect } from './LegendConnect';
3
2
  export { default as LegendMapButtonConnect } from './LegendMapButtonConnect';
@@ -1,4 +1 @@
1
- export { default as ZoomControls } from './ZoomControls';
2
1
  export { default as ZoomControlConnect } from './ZoomControlsConnect';
3
- export { default as MapControlButton } from './MapControlButton';
4
- export { default as MapControls } from './MapControls';
@@ -1,2 +1,3 @@
1
1
  export { default as DrawingToolMapButtonConnect } from './DrawingToolMapButtonConnect';
2
2
  export { default as DrawingToolConnect } from './DrawingToolConnect';
3
+ export { useAreaDrawDialogAction } from './useAreaDrawDialogAction';
@@ -0,0 +1,10 @@
1
+ import { uiTypes } from '@opengeoweb/store';
2
+ export declare const useAreaDrawDialogAction: ({ mapId, source, }: {
3
+ mapId: string;
4
+ source?: uiTypes.Source | undefined;
5
+ }) => {
6
+ openDrawDialog: () => void;
7
+ closeDrawDialog: () => void;
8
+ openAreaDialog: () => void;
9
+ closeAreaDialog: () => void;
10
+ };
@@ -1,7 +1,8 @@
1
1
  import * as React from 'react';
2
2
  export declare const opacityOptions: number[];
3
3
  export declare const getAreaName: (areaName: string) => string;
4
- export declare const SAVE_AREA_BUTTON = "Save area";
4
+ export declare const SAVE_AREA_BUTTON = "Save new area";
5
+ export declare const UPDATE_AREA_BUTTON = "Update area";
5
6
  export declare const INPUT_AREA = "Area name";
6
7
  export declare const INPUT_OPACITY = "Opacity";
7
8
  export declare const DRAW_EXIT_MODE_MESSAGE = "press ESC to exit draw mode";
@@ -1,2 +1 @@
1
1
  export { default as MapViewConnect } from './MapViewConnect';
2
- export { default as MapView } from './MapView';
@@ -8,16 +8,12 @@ export * from './hooks';
8
8
  export * from './components/MultiMapView/MultiMapViewConnect';
9
9
  export * from './components/MultiMapView/HarmoniePresets';
10
10
  export * from './components/MapView';
11
- export { MapControlButton } from './components/MapControls';
12
11
  export { LegendConnect, LegendMapButtonConnect } from './components/Legend';
13
- export { ZoomControls, ZoomControlConnect } from './components/MapControls';
12
+ export { ZoomControlConnect } from './components/MapControls';
14
13
  export { TimeSlider, TimeSliderConnect, TimeSliderButtonsConnect, TimeSliderOptionsMenuButtonConnect, TimeSliderPlayButtonConnect, TimeSliderBackwardForwardStepButtonConnect, timeSliderUtils, } from './components/TimeSlider';
15
14
  export { TimeSliderLite, TimeSliderLiteOptionsMenu, TimeSliderLiteConnect, } from './components/TimeSliderLite';
16
- export { MapControls } from './components/MapControls';
17
15
  export { LayerManagerConnect, LayerManagerHeaderOptions, LayerManagerDescriptionRow, LayerManagerBaseLayerRow, LayerManagerLayerContainerRow, LayerSelectConnect, LayerManagerMapButtonConnect, LayerManager, useFetchServices, };
18
16
  export { MultiDimensionSelectMapButtonsConnect, MultiMapDimensionSelectConnect, };
19
- export * as publicLayers from './utils/publicLayers';
20
- export * as publicServices from './utils/publicServices';
21
17
  export * as testLayers from './utils/testLayers';
22
18
  export * from './utils/jsonPresetFilter';
23
19
  export * as defaultConfigurations from './utils/defaultConfigurations';
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import { layerTypes, uiTypes } from '@opengeoweb/store';
3
- interface LegendDialogProps {
4
- layers: layerTypes.Layer[];
5
- isOpen: boolean;
6
- onClose: () => void;
7
- onMouseDown?: () => void;
8
- mapId: string;
9
- showMapId?: boolean;
10
- order?: number;
11
- source?: uiTypes.Source;
12
- }
13
- declare const LegendDialog: React.FC<LegendDialogProps>;
14
- export default LegendDialog;
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import { TooltipProps } from '@mui/material';
3
- import { CustomIconProps } from '@opengeoweb/shared';
4
- interface MapControlButtonProps extends CustomIconProps {
5
- isActive?: boolean;
6
- placement?: TooltipProps['placement'];
7
- children: React.ReactNode;
8
- }
9
- declare const MapControlButton: React.FC<MapControlButtonProps>;
10
- export default MapControlButton;
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- interface MapControlsProps {
3
- children: React.ReactNode;
4
- style?: React.CSSProperties;
5
- }
6
- declare const MapControls: React.FC<MapControlsProps>;
7
- export default MapControls;
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- interface ZoomControlsProps {
3
- onZoomIn: () => void;
4
- onZoomOut: () => void;
5
- onZoomReset: () => void;
6
- }
7
- declare const ZoomControls: React.FC<ZoomControlsProps>;
8
- export default ZoomControls;
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- import { mapTypes } from '@opengeoweb/store';
3
- export declare const getTimeDimension: (dimensions: mapTypes.Dimension[]) => mapTypes.Dimension;
4
- export declare const formatTime: (time: string, timeFormat: string) => string;
5
- interface MapeTimeProps {
6
- dimensions: mapTypes.Dimension[];
7
- timeFormat?: string;
8
- }
9
- export declare const defaultTimeFormat = "EEE dd MMM yyyy HH:mm 'UTC'";
10
- declare const MapTime: React.FC<MapeTimeProps>;
11
- export default MapTime;
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./types").MapViewProps>;
5
- };
6
- export default _default;
7
- export declare const MapError: {
8
- (): React.ReactElement;
9
- storyName: string;
10
- };
11
- export declare const MapWithDuplicateLayerIdsError: {
12
- (): React.ReactElement;
13
- storyName: string;
14
- };
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./types").MapViewProps>;
5
- };
6
- export default _default;
7
- export declare const SetMapPin: {
8
- (): React.ReactElement;
9
- storyName: string;
10
- };
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./types").MapViewProps>;
5
- };
6
- export default _default;
7
- export declare const PassiveMap: {
8
- (): React.ReactElement;
9
- storyName: string;
10
- };
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./types").MapViewProps>;
5
- };
6
- export default _default;
7
- export declare const RadarAnimation: {
8
- (): React.ReactElement;
9
- storyName: string;
10
- };
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./types").MapViewProps>;
5
- };
6
- export default _default;
7
- export declare const MapViewRadar: {
8
- (): React.ReactElement;
9
- storyName: string;
10
- };
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./types").MapViewProps>;
5
- };
6
- export default _default;
7
- export declare const SetProjectionBBox: {
8
- (): React.ReactElement;
9
- storyName: string;
10
- };
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./types").MapViewProps>;
5
- };
6
- export default _default;
7
- export declare const SetProjectionBBoxLocalState: {
8
- (): React.ReactElement;
9
- storyName: string;
10
- };
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./types").MapViewProps>;
5
- };
6
- export default _default;
7
- export declare const MapWithShowLayerInfoEnabled: {
8
- (): React.ReactElement;
9
- storyName: string;
10
- };
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- import { MapViewProps } from './types';
3
- declare const MapView: React.FC<MapViewProps>;
4
- export default MapView;
@@ -1 +0,0 @@
1
- export {};
@@ -1,310 +0,0 @@
1
- import { defaultLayers } from '@opengeoweb/store';
2
- import { LayerType } from '@opengeoweb/webmap';
3
- export { defaultLayers };
4
- export declare const baseLayer: {
5
- name: string;
6
- title: string;
7
- type: string;
8
- layerType: LayerType;
9
- enabled: boolean;
10
- id: string;
11
- };
12
- export declare const baseLayerOpenStreetMapNL: {
13
- id: string;
14
- name: string;
15
- type: string;
16
- layerType: LayerType;
17
- enabled: boolean;
18
- };
19
- export declare const baseLayerArcGisCanvas: {
20
- service: string;
21
- id: string;
22
- name: string;
23
- type: string;
24
- enabled: boolean;
25
- layerType: LayerType;
26
- };
27
- export declare const baseLayerWorldMap: {
28
- id: string;
29
- name: string;
30
- type: string;
31
- layerType: LayerType;
32
- enabled: boolean;
33
- };
34
- export declare const baseLayerHeiGit: {
35
- service: string;
36
- id: string;
37
- name: string;
38
- layerType: LayerType;
39
- };
40
- export declare const msgCppLayer: {
41
- service: string;
42
- name: string;
43
- format: string;
44
- enabled: boolean;
45
- style: string;
46
- id: string;
47
- layerType: LayerType;
48
- };
49
- export declare const veiligheidsRegiosGebiedsIndelingenLabels: {
50
- service: string;
51
- name: string;
52
- style: string;
53
- enabled: boolean;
54
- layerType: LayerType;
55
- };
56
- export declare const veiligheidsRegiosGebiedsIndelingen: {
57
- service: string;
58
- name: string;
59
- style: string;
60
- enabled: boolean;
61
- layerType: LayerType;
62
- };
63
- export declare const radarLayer: {
64
- service: string;
65
- name: string;
66
- format: string;
67
- enabled: boolean;
68
- style: string;
69
- id: string;
70
- layerType: LayerType;
71
- };
72
- export declare const radarLayerWithError: {
73
- service: string;
74
- name: string;
75
- format: string;
76
- enabled: boolean;
77
- style: string;
78
- id: string;
79
- layerType: LayerType;
80
- };
81
- export declare const obsAirTemperature: {
82
- service: string;
83
- name: string;
84
- id: string;
85
- layerType: LayerType;
86
- };
87
- export declare const obsWind: {
88
- service: string;
89
- name: string;
90
- id: string;
91
- layerType: LayerType;
92
- };
93
- export declare const obsAirPressureAtSeaLevel: {
94
- service: string;
95
- name: string;
96
- id: string;
97
- layerType: LayerType;
98
- };
99
- export declare const obsRelativeHumidity: {
100
- service: string;
101
- name: string;
102
- id: string;
103
- layerType: LayerType;
104
- };
105
- export declare const obsGlobalSolarRadiation: {
106
- service: string;
107
- name: string;
108
- id: string;
109
- layerType: LayerType;
110
- };
111
- export declare const obsPrecipitationIntensityPWS: {
112
- service: string;
113
- name: string;
114
- id: string;
115
- layerType: LayerType;
116
- };
117
- export declare const harmonieRelativeHumidityPl: {
118
- service: string;
119
- name: string;
120
- id: string;
121
- layerType: LayerType;
122
- enabled: boolean;
123
- };
124
- export declare const harmonieWindPl: {
125
- service: string;
126
- name: string;
127
- id: string;
128
- layerType: LayerType;
129
- enabled: boolean;
130
- };
131
- export declare const harmonieAirTemperature: {
132
- service: string;
133
- name: string;
134
- id: string;
135
- layerType: LayerType;
136
- enabled: boolean;
137
- };
138
- export declare const harmoniePrecipitation: {
139
- service: string;
140
- name: string;
141
- id: string;
142
- layerType: LayerType;
143
- enabled: boolean;
144
- };
145
- export declare const harmoniePressure: {
146
- service: string;
147
- name: string;
148
- id: string;
149
- layerType: LayerType;
150
- enabled: boolean;
151
- };
152
- export declare const harmonieWindFlags: {
153
- service: string;
154
- name: string;
155
- enabled: boolean;
156
- id: string;
157
- layerType: LayerType;
158
- };
159
- export declare const klimaatAtlasTG3: {
160
- service: string;
161
- name: string;
162
- enabled: boolean;
163
- id: string;
164
- layerType: LayerType;
165
- };
166
- export declare const dwdWarningLayer: {
167
- service: string;
168
- name: string;
169
- format: string;
170
- enabled: boolean;
171
- id: string;
172
- layerType: LayerType;
173
- };
174
- export declare const dwdRadarLayer: {
175
- service: string;
176
- name: string;
177
- format: string;
178
- enabled: boolean;
179
- id: string;
180
- layerType: LayerType;
181
- };
182
- export declare const dwdObservationsWetterLayer: {
183
- service: string;
184
- name: string;
185
- style: string;
186
- format: string;
187
- enabled: boolean;
188
- id: string;
189
- layerType: LayerType;
190
- };
191
- export declare const dwdObservationsWetterLayerWithHeader: {
192
- service: string;
193
- name: string;
194
- style: string;
195
- format: string;
196
- enabled: boolean;
197
- id: string;
198
- layerType: LayerType;
199
- headers: {
200
- name: string;
201
- value: string;
202
- }[];
203
- };
204
- export declare const dwdObservationsWindLayer: {
205
- service: string;
206
- name: string;
207
- style: string;
208
- format: string;
209
- enabled: boolean;
210
- id: string;
211
- layerType: LayerType;
212
- };
213
- export declare const FMITemp: {
214
- service: string;
215
- name: string;
216
- format: string;
217
- enabled: boolean;
218
- id: string;
219
- layerType: LayerType;
220
- };
221
- export declare const MetNoTemp: {
222
- service: string;
223
- name: string;
224
- format: string;
225
- enabled: boolean;
226
- id: string;
227
- layerType: LayerType;
228
- };
229
- export declare const metNorwayWind1: {
230
- service: string;
231
- name: string;
232
- format: string;
233
- enabled: boolean;
234
- id: string;
235
- layerType: LayerType;
236
- };
237
- export declare const metNorwayWind2: {
238
- service: string;
239
- name: string;
240
- format: string;
241
- enabled: boolean;
242
- id: string;
243
- layerType: LayerType;
244
- };
245
- export declare const metNorwayWind3: {
246
- service: string;
247
- name: string;
248
- format: string;
249
- enabled: boolean;
250
- id: string;
251
- layerType: LayerType;
252
- };
253
- export declare const metNorwayLatestT: {
254
- service: string;
255
- name: string;
256
- format: string;
257
- enabled: boolean;
258
- id: string;
259
- layerType: LayerType;
260
- };
261
- export declare const metNorwaySalinaty: {
262
- service: string;
263
- name: string;
264
- format: string;
265
- enabled: boolean;
266
- id: string;
267
- layerType: LayerType;
268
- };
269
- export declare const msgFesEUMETSAT: {
270
- service: string;
271
- name: string;
272
- enabled: boolean;
273
- id: string;
274
- layerType: LayerType;
275
- };
276
- export declare const msgNaturalenhncdEUMETSAT: {
277
- service: string;
278
- name: string;
279
- enabled: boolean;
280
- id: string;
281
- layerType: LayerType;
282
- };
283
- export declare const msgAshEUMETSAT: {
284
- service: string;
285
- name: string;
286
- enabled: boolean;
287
- id: string;
288
- layerType: LayerType;
289
- };
290
- export declare const msgCthEUMETSAT: {
291
- service: string;
292
- name: string;
293
- enabled: boolean;
294
- id: string;
295
- layerType: LayerType;
296
- };
297
- export declare const msgFogEUMETSAT: {
298
- service: string;
299
- name: string;
300
- enabled: boolean;
301
- id: string;
302
- layerType: LayerType;
303
- };
304
- export declare const msgNaturalEUMETSAT: {
305
- service: string;
306
- name: string;
307
- enabled: boolean;
308
- id: string;
309
- layerType: LayerType;
310
- };
@@ -1,95 +0,0 @@
1
- export declare const DWD: {
2
- name: string;
3
- url: string;
4
- id: string;
5
- };
6
- export declare const nationaalgeoregister: {
7
- name: string;
8
- url: string;
9
- id: string;
10
- };
11
- export declare const KNMImsgcpp: {
12
- name: string;
13
- url: string;
14
- id: string;
15
- };
16
- export declare const HeiGit: {
17
- name: string;
18
- url: string;
19
- id: string;
20
- };
21
- export declare const ArcGisCanvas: {
22
- name: string;
23
- url: string;
24
- id: string;
25
- };
26
- export declare const KNMIgeoservicesRadar: {
27
- name: string;
28
- url: string;
29
- id: string;
30
- };
31
- export declare const KNMIgeoservicesObs: {
32
- name: string;
33
- url: string;
34
- id: string;
35
- };
36
- export declare const KNMIgeoservicesKlimaatAtlas: {
37
- name: string;
38
- url: string;
39
- id: string;
40
- };
41
- export declare const KNMIgeoservicesHarmonie: {
42
- name: string;
43
- url: string;
44
- id: string;
45
- };
46
- export declare const KNMIgeoservicesHarmonieMLService: {
47
- name: string;
48
- url: string;
49
- id: string;
50
- };
51
- export declare const MetNorwayService: {
52
- name: string;
53
- url: string;
54
- id: string;
55
- };
56
- export declare const FMIopenwms: {
57
- name: string;
58
- url: string;
59
- id: string;
60
- };
61
- export declare const DWDObservations: {
62
- name: string;
63
- url: string;
64
- id: string;
65
- };
66
- export declare const DWDWarnings: {
67
- name: string;
68
- url: string;
69
- id: string;
70
- };
71
- export declare const DWDWXProdukt: {
72
- name: string;
73
- url: string;
74
- id: string;
75
- };
76
- export declare const EUMETSAT: {
77
- name: string;
78
- url: string;
79
- id: string;
80
- };
81
- export declare const eumetviewEUMETSAT: {
82
- name: string;
83
- url: string;
84
- id: string;
85
- };
86
- export declare const ECMWFPublicService: {
87
- name: string;
88
- url: string;
89
- id: string;
90
- };
91
- export declare const MeteoCanada: {
92
- name: string;
93
- url: string;
94
- id: string;
95
- };