@opengeoweb/core 4.9.1 → 4.11.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 +252 -152
- package/index.umd.js +254 -154
- package/lib/components/CanvasComponent/CanvasComponentDynamic.stories.d.ts +4 -0
- package/lib/components/CanvasComponent/CanvasComponentStatic.stories.d.ts +4 -0
- package/lib/components/LanguageSelect/DemoLanguages.stories.d.ts +4 -0
- package/lib/components/LanguageSelect/Languages.stories.d.ts +5 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayer.d.ts +3 -5
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DragHandle/DragHandle.d.ts +1 -0
- package/lib/components/LayerManager/LayerManager.stories.d.ts +4 -0
- package/lib/components/LayerManager/LayerManagerConnect.stories.d.ts +4 -0
- package/lib/components/LayerManager/LayerManagerHeaderOptions.d.ts +4 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelect.stories.d.ts +4 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.stories.d.ts +4 -0
- package/lib/components/Legend/Legend.stories.d.ts +4 -0
- package/lib/components/Legend/LegendConnect.stories.d.ts +4 -0
- package/lib/components/MapView/MapView.Error.stories.d.ts +5 -0
- package/lib/components/MapView/MapView.MapPin.stories.d.ts +5 -0
- package/lib/components/MapView/MapView.Passive.stories.d.ts +5 -0
- package/lib/components/MapView/MapView.RadarAnimation.stories.d.ts +5 -0
- package/lib/components/MapView/MapView.RadarData.stories.d.ts +5 -0
- package/lib/components/MapView/MapView.SetProjectionBBox.stories.d.ts +5 -0
- package/lib/components/MapView/MapView.SetProjectionBBoxLocalState.stories.d.ts +5 -0
- package/lib/components/MapView/MapView.ShowLayerInfo.stories.d.ts +5 -0
- package/lib/components/MapView/MapViewConnect.DoubleMap.stories.d.ts +5 -0
- package/lib/components/MapView/MapViewConnect.Errors.stories.d.ts +5 -0
- package/lib/components/MapView/MapViewConnect.FeatureLayers.stories.d.ts +5 -0
- package/lib/components/MapView/MapViewConnect.InitialBBoxAndWithout.stories.d.ts +5 -0
- package/lib/components/MapView/MapViewConnect.LayerActions.stories.d.ts +5 -0
- package/lib/components/MapView/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +5 -0
- package/lib/components/MapView/MapViewConnect.MapModuleOverDefaultMap.stories.d.ts +5 -0
- package/lib/components/MapView/MapViewConnect.MapPin.stories.d.ts +5 -0
- package/lib/components/MapView/MapViewConnect.SelectorTest.stories.d.ts +6 -0
- package/lib/components/MapView/MapViewConnect.SetBaseLayers.stories.d.ts +5 -0
- package/lib/components/MapView/MapViewConnect.ToggleControls.stories.d.ts +5 -0
- package/lib/components/MapWarning/MapWarningProperties.d.ts +1 -1
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.stories.d.ts +4 -0
- package/lib/components/MultiMapDimensionSelect/EnsembleDimensionExample.stories.d.ts +4 -0
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectConnect.stories.d.ts +4 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelect.stories.d.ts +4 -0
- package/lib/components/SyncGroups/SyncGroups.SyncMany.stories.d.ts +4 -0
- package/lib/components/SyncGroups/SyncGroups.SyncMaps.stories.d.ts +4 -0
- package/lib/components/TimeSlider/TimeSliderButtons/AnimationLengthButton/AnimationLengthButton.d.ts +2 -2
- package/lib/components/TimeSlider/TimeSliderButtons/BackwardForwardStepButton/BackwardForwardStepButtonConnect.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.stories.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButtonConnect.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButton.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButtonConnect.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.d.ts +3 -2
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.stories.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +2 -1
- package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.stories.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderClock/TimeSliderClock.stories.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBox.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBoxConnect.d.ts +2 -0
- package/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBoxRenderFunctions.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderLegend/{TimeSliderLegendUtils.d.ts → timeSliderLegendUtils.d.ts} +0 -0
- package/lib/components/TimeSlider/TimeSliderLegend/{TimeSliderLegenedUtils.spec.d.ts → timeSliderLegenedUtils.spec.d.ts} +0 -0
- package/lib/components/TimeSlider/index.d.ts +1 -1
- package/lib/components/TimeSlider/{TimeSliderUtils.d.ts → timeSliderUtils.d.ts} +7 -1
- package/lib/components/TimeSlider/{TimeSliderUtils.spec.d.ts → timeSliderUtils.spec.d.ts} +0 -0
- package/lib/utils/defaultTestSettings.d.ts +2 -1
- package/package.json +7 -7
- package/lib/components/CanvasComponent/CanvasComponentStories.stories.d.ts +0 -6
- package/lib/components/LanguageSelect/LanguageSelectStories.stories.d.ts +0 -6
- package/lib/components/LayerManager/LayerManagerStories.stories.d.ts +0 -6
- package/lib/components/LayerManager/LayerSelect/LayerSelectStories.stories.d.ts +0 -6
- package/lib/components/Legend/LegendStories.stories.d.ts +0 -6
- package/lib/components/MapView/MapView.stories.d.ts +0 -14
- package/lib/components/MapView/MapViewConnect.stories.d.ts +0 -17
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelect.stories.d.ts +0 -8
- package/lib/components/SyncGroups/SyncGroups.stories.d.ts +0 -6
package/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayer.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
interface ActivateLayerProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
isEnabled?: boolean;
|
|
7
|
-
id?: string;
|
|
3
|
+
onChange: (isActive: boolean) => void;
|
|
4
|
+
isActive: boolean;
|
|
5
|
+
isEnabled: boolean;
|
|
8
6
|
}
|
|
9
7
|
declare const ActivateLayer: React.FC<ActivateLayerProps>;
|
|
10
8
|
export default ActivateLayer;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
2
6
|
export declare const SimpleLegend: () => React.ReactElement;
|
|
3
7
|
export declare const SimpleLegendWithMultiDimensions: () => React.ReactElement;
|
|
4
8
|
export declare const SimpleLegendWithoutDimensionsOrGraphic: () => React.ReactElement;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
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;
|
|
2
7
|
export declare const SetProjectionBBoxLocalState: {
|
|
3
8
|
(): React.ReactElement;
|
|
4
9
|
storyName: string;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
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;
|
|
2
7
|
export declare const MapWithShowLayerInfoEnabled: {
|
|
3
8
|
(): React.ReactElement;
|
|
4
9
|
storyName: string;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { layerActions } from '../../store';
|
|
3
3
|
import { Layer } from '../../store/mapStore/types';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.FC<import("./MapViewConnect").MapViewConnectProps>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
4
9
|
export interface LayerChangeOpacityInputProps {
|
|
5
10
|
mapId: string;
|
|
6
11
|
layerChangeOpacity?: typeof layerActions.layerChangeOpacity;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: React.FC<import("./MapViewConnect").MapViewConnectProps>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
2
7
|
export declare const SetMapPinAction: {
|
|
3
8
|
(): React.ReactElement;
|
|
4
9
|
storyName: string;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { MapViewConnectProps } from './MapViewConnect';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.FC<MapViewConnectProps>;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
2
8
|
export declare const SelectorTests: () => React.ReactElement;
|
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
interface WarningListProps {
|
|
3
3
|
selectedFeatureProperties: {
|
|
4
4
|
identifier?: string;
|
|
5
|
-
areaDesc?: string;
|
|
6
5
|
severity?: string;
|
|
7
6
|
certainty?: string;
|
|
8
7
|
onset?: string;
|
|
@@ -13,6 +12,7 @@ interface WarningListProps {
|
|
|
13
12
|
parentSize?: number;
|
|
14
13
|
}
|
|
15
14
|
interface Language {
|
|
15
|
+
areaDesc: string;
|
|
16
16
|
language: string;
|
|
17
17
|
event: string;
|
|
18
18
|
senderName: string;
|
package/lib/components/TimeSlider/TimeSliderButtons/AnimationLengthButton/AnimationLengthButton.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { AnimationLength } from '../../../../store/mapStore/types';
|
|
2
3
|
export declare const title = "Animation";
|
|
3
4
|
interface AnimationLengthButtonProps {
|
|
4
5
|
disabled?: boolean;
|
|
5
6
|
animationLength?: AnimationLength;
|
|
6
|
-
animationLengthInMinutes?: number;
|
|
7
7
|
onChangeAnimationLength: (length: number) => void;
|
|
8
8
|
}
|
|
9
|
-
declare const AnimationLengthButton: ({ disabled, animationLength,
|
|
9
|
+
declare const AnimationLengthButton: ({ disabled, animationLength, onChangeAnimationLength, }: AnimationLengthButtonProps) => JSX.Element;
|
|
10
10
|
export default AnimationLengthButton;
|
|
@@ -15,6 +15,7 @@ export interface TimeSliderMenuProps {
|
|
|
15
15
|
handleAutoClick?: () => void;
|
|
16
16
|
isAutoSelected?: boolean;
|
|
17
17
|
onChangeMouseWheel?: (element: Mark) => void;
|
|
18
|
-
|
|
18
|
+
displayVariableDuration?: boolean;
|
|
19
|
+
layerHasTimeStep?: boolean;
|
|
19
20
|
}
|
|
20
|
-
export declare const TimeSliderMenu: ({ marks, value, isOpenByDefault, handleMenuItemClick, isDisabled, handleAutoClick, isAutoSelected, title, icon, onChangeMouseWheel,
|
|
21
|
+
export declare const TimeSliderMenu: ({ marks, value, isOpenByDefault, handleMenuItemClick, isDisabled, handleAutoClick, isAutoSelected, title, icon, onChangeMouseWheel, displayVariableDuration, layerHasTimeStep, }: TimeSliderMenuProps) => JSX.Element;
|
|
@@ -2,13 +2,14 @@ import * as React from 'react';
|
|
|
2
2
|
import { Dimension, MapActionOrigin } from '../../../../store/mapStore/types';
|
|
3
3
|
export declare const timeStepTitle = "Time step";
|
|
4
4
|
export interface TimeStepButtonProps {
|
|
5
|
-
timeStep
|
|
5
|
+
timeStep?: number;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
isTimestepAuto: boolean;
|
|
8
8
|
timeDimension?: Dimension;
|
|
9
9
|
onChangeTimeStep: (scale: number, origin?: MapActionOrigin) => void;
|
|
10
10
|
onToggleTimestepAuto?: () => void;
|
|
11
11
|
isOpenByDefault?: boolean;
|
|
12
|
+
timeStepFromLayer?: number;
|
|
12
13
|
}
|
|
13
14
|
declare const TimeStepButton: React.FC<TimeStepButtonProps>;
|
|
14
15
|
export default TimeStepButton;
|
|
@@ -9,6 +9,7 @@ export interface TimeSliderCurrentTimeBoxProps {
|
|
|
9
9
|
dataEndTime?: number;
|
|
10
10
|
timeStep?: number;
|
|
11
11
|
unfilteredSelectedTime: number;
|
|
12
|
+
isAutoUpdating?: boolean;
|
|
12
13
|
setUnfilteredSelectedTime: (unfliteredSelectedTime: number) => void;
|
|
13
14
|
onSetNewDate?: (newDate: string) => void;
|
|
14
15
|
}
|
package/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBoxConnect.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ interface TimeSliderCurrentTimeBoxConnectComponentProps {
|
|
|
11
11
|
secondsPerPx?: number;
|
|
12
12
|
scale?: Scale;
|
|
13
13
|
isAnimating?: boolean;
|
|
14
|
+
isAutoUpdating?: boolean;
|
|
14
15
|
unfilteredSelectedTime?: number;
|
|
15
16
|
setTimeSliderUnfilteredSelectedTime?: typeof mapActions.setTimeSliderUnfilteredSelectedTime;
|
|
16
17
|
stopMapAnimation?: typeof mapActions.mapStopAnimation;
|
|
@@ -26,6 +27,7 @@ declare const TimeSliderCurrentTimeBoxConnect: import("react-redux").ConnectedCo
|
|
|
26
27
|
secondsPerPx?: number | undefined;
|
|
27
28
|
scale?: Scale | undefined;
|
|
28
29
|
isAnimating?: boolean | undefined;
|
|
30
|
+
isAutoUpdating?: boolean | undefined;
|
|
29
31
|
unfilteredSelectedTime?: number | undefined;
|
|
30
32
|
setTimeSliderUnfilteredSelectedTime?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").SetTimeSliderUnfilteredSelectedTimePayload, string> | undefined;
|
|
31
33
|
stopMapAnimation?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").SetMapAnimationStopPayload, string> | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Theme } from '@mui/material';
|
|
2
2
|
import { Scale } from '../../../store/mapStore/types';
|
|
3
|
-
export declare const renderTimeSliderCurrentTimeBox: (ctx: CanvasRenderingContext2D, theme: Theme, width: number, height: number, centerTime: number, selected: number, secondsPerPx: number, scale: Scale) => void;
|
|
3
|
+
export declare const renderTimeSliderCurrentTimeBox: (ctx: CanvasRenderingContext2D, theme: Theme, width: number, height: number, centerTime: number, selected: number, secondsPerPx: number, scale: Scale, isAutoUpdating: boolean) => void;
|
|
File without changes
|
|
File without changes
|
|
@@ -118,6 +118,12 @@ export declare enum TimeInMinutes {
|
|
|
118
118
|
YEAR = 525600,
|
|
119
119
|
MONTH = 43800,
|
|
120
120
|
DAY = 1440,
|
|
121
|
-
HOUR = 60
|
|
121
|
+
HOUR = 60,
|
|
122
|
+
MINUTE = 1
|
|
122
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @param minutes
|
|
127
|
+
* @returns the two highest values in the format yr(s) mo(s) d h m
|
|
128
|
+
*/
|
|
123
129
|
export declare const minutesToDescribedDuration: (minutes: number) => string;
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LayerOptions, Style, WMLayer } from '@opengeoweb/webmap';
|
|
1
|
+
import { CoordinateReferenceSystem, LayerOptions, Style, WMLayer } from '@opengeoweb/webmap';
|
|
2
2
|
import { Service } from '../components/WMSLoader/services';
|
|
3
3
|
import { ActiveLayerObject } from '../store/layerSelect/types';
|
|
4
4
|
import { Layer, LayerType, Services } from '../store/mapStore/types';
|
|
@@ -43,6 +43,7 @@ export declare const defaultReduxLayerRadarKNMI: {
|
|
|
43
43
|
export declare const WmdefaultReduxLayerRadarKNMI: WMLayer;
|
|
44
44
|
export declare const makeGeoservicesRadarLayer: () => WMLayer;
|
|
45
45
|
export declare const styleListForRADNL25PCPCMLayer: Style[];
|
|
46
|
+
export declare const crsListForRADNL25PCPCMLayer: CoordinateReferenceSystem[];
|
|
46
47
|
export declare const styleListForRADNLOPERR25PCPRRL3KNMILayer: Style[];
|
|
47
48
|
export declare const defaultReduxServices: Services;
|
|
48
49
|
export declare const defaultReduxActiveLayers: ActiveLayerObject[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.11.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^17.0.2",
|
|
16
|
-
"@opengeoweb/shared": "4.
|
|
16
|
+
"@opengeoweb/shared": "4.11.0",
|
|
17
17
|
"@mui/material": "^5.10.8",
|
|
18
|
-
"@opengeoweb/theme": "4.
|
|
18
|
+
"@opengeoweb/theme": "4.11.0",
|
|
19
19
|
"react-draggable": "^4.4.5",
|
|
20
20
|
"re-resizable": "^6.9.0",
|
|
21
21
|
"@redux-eggs/core": "^2.2.0",
|
|
22
22
|
"react-redux": "^8.0.4",
|
|
23
|
-
"@opengeoweb/form-fields": "4.
|
|
23
|
+
"@opengeoweb/form-fields": "4.11.0",
|
|
24
24
|
"react-hook-form": "^7.41.5",
|
|
25
25
|
"moment": "^2.29.0",
|
|
26
26
|
"moment-timezone": "^0.5.31",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"lodash": "^4.17.20",
|
|
29
29
|
"axios": "^0.25.0",
|
|
30
30
|
"date-fns": "^2.29.3",
|
|
31
|
-
"@opengeoweb/webmap": "4.
|
|
31
|
+
"@opengeoweb/webmap": "4.11.0",
|
|
32
32
|
"throttle-debounce": "^3.0.1",
|
|
33
33
|
"proj4": "^2.6.2",
|
|
34
|
-
"@opengeoweb/api": "4.
|
|
34
|
+
"@opengeoweb/api": "4.11.0",
|
|
35
35
|
"react-intl": "^5.17.5",
|
|
36
36
|
"react-sortablejs": "^6.1.4",
|
|
37
37
|
"sortablejs": "^1.15.0",
|
|
38
|
-
"react-window": "^1.8.7",
|
|
39
38
|
"immer": "^9.0.15",
|
|
39
|
+
"react-window": "^1.8.7",
|
|
40
40
|
"@reduxjs/toolkit": "^1.8.3",
|
|
41
41
|
"lodash.clonedeep": "^4.5.0",
|
|
42
42
|
"@turf/turf": "^5.1.6",
|