@opengeoweb/core 4.18.0 → 4.19.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 +524 -385
- package/index.umd.js +466 -329
- package/lib/components/LayerManager/BaseLayerRow/BaseLayerRow.d.ts +2 -0
- package/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayers.d.ts +2 -0
- package/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayersConnect.d.ts +2 -0
- package/lib/components/LayerManager/DescriptionRow/DescriptionRow.d.ts +2 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayer.d.ts +8 -2
- package/lib/components/LayerManager/LayerManager.d.ts +2 -0
- package/lib/components/LayerManager/LayerManagerUtils.d.ts +30 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectButtonConnect.d.ts +2 -0
- package/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +8 -2
- package/lib/index.d.ts +8 -0
- package/lib/store/generic/synchronizationGroups/types.d.ts +1 -1
- package/lib/store/mapStore/map/reducer.d.ts +22 -0
- package/lib/store/mapStore/map/sagas.d.ts +2 -1
- package/lib/store/router/utils.d.ts +1 -1
- package/package.json +11 -10
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { LayerManagerCustomSettings } from '../LayerManagerUtils';
|
|
2
3
|
import { Layer } from '../../../store/mapStore/types';
|
|
3
4
|
import { Service } from '../../WMSLoader/services';
|
|
4
5
|
interface BaseLayerRowProps {
|
|
@@ -6,6 +7,7 @@ interface BaseLayerRowProps {
|
|
|
6
7
|
preloadedAvailableBaseLayers?: Layer[];
|
|
7
8
|
preloadedServices?: Service[];
|
|
8
9
|
tooltip?: string;
|
|
10
|
+
settings?: LayerManagerCustomSettings['footer'];
|
|
9
11
|
}
|
|
10
12
|
declare const BaseLayerRow: React.FC<BaseLayerRowProps>;
|
|
11
13
|
export default BaseLayerRow;
|
|
@@ -4,6 +4,8 @@ interface BaseLayersProps {
|
|
|
4
4
|
selectedBaseLayers: Layer[];
|
|
5
5
|
availableBaseLayers: Layer[];
|
|
6
6
|
onChangeBaseLayers: (name: string) => void;
|
|
7
|
+
icon?: React.ElementType;
|
|
8
|
+
tooltipPrefix?: string;
|
|
7
9
|
}
|
|
8
10
|
declare const BaseLayers: React.FC<BaseLayersProps>;
|
|
9
11
|
export default BaseLayers;
|
|
@@ -6,6 +6,8 @@ export declare const areAvailableBaseLayersSame: (availableBaseLayerList: Layer[
|
|
|
6
6
|
interface BaseLayersConnectProps {
|
|
7
7
|
mapId: string;
|
|
8
8
|
preloadedAvailableBaseLayers: Layer[];
|
|
9
|
+
tooltipPrefix?: string;
|
|
10
|
+
icon?: React.ElementType;
|
|
9
11
|
}
|
|
10
12
|
declare const BaseLayersConnect: React.FC<BaseLayersConnectProps>;
|
|
11
13
|
/**
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Source } from '../../../store/ui/types';
|
|
3
|
+
import { LayerManagerCustomSettings } from '../LayerManagerUtils';
|
|
3
4
|
interface DescriptionRowProps {
|
|
4
5
|
mapId: string;
|
|
5
6
|
mapPresetsModule?: React.ReactElement;
|
|
6
7
|
source?: Source;
|
|
8
|
+
settings?: LayerManagerCustomSettings['header'];
|
|
7
9
|
}
|
|
8
10
|
declare const DescriptionRow: React.FC<DescriptionRowProps>;
|
|
9
11
|
export default DescriptionRow;
|
package/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayer.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
export declare enum AutoOptions {
|
|
3
|
+
BOTH = "Auto both",
|
|
4
|
+
NONE = "Auto none",
|
|
5
|
+
TIMESTEP = "Auto-timestep",
|
|
6
|
+
UPDATE = "Auto-update"
|
|
7
|
+
}
|
|
2
8
|
interface ActivateLayerProps {
|
|
3
|
-
onChange: (
|
|
4
|
-
isActive: boolean;
|
|
9
|
+
onChange: (autoOption: AutoOptions) => void;
|
|
5
10
|
isEnabled: boolean;
|
|
11
|
+
current: AutoOptions;
|
|
6
12
|
}
|
|
7
13
|
declare const ActivateLayer: React.FC<ActivateLayerProps>;
|
|
8
14
|
export default ActivateLayer;
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { Layer } from '../../store/mapStore/types';
|
|
3
3
|
import { Source } from '../../store/ui/types';
|
|
4
4
|
import { Service } from '../WMSLoader/services';
|
|
5
|
+
import { LayerManagerCustomSettings } from './LayerManagerUtils';
|
|
5
6
|
import { Size } from './LayerManagerHeaderOptions';
|
|
6
7
|
export declare type Position = {
|
|
7
8
|
top: number;
|
|
@@ -27,6 +28,7 @@ interface LayerManagerProps {
|
|
|
27
28
|
size?: Size;
|
|
28
29
|
startPosition?: Position;
|
|
29
30
|
setFocused?: (focused: boolean) => void;
|
|
31
|
+
settings?: LayerManagerCustomSettings;
|
|
30
32
|
}
|
|
31
33
|
export declare const calculateStartSize: (minSize: Size, prefSize: Size, startPosition: Position) => Size;
|
|
32
34
|
declare const LayerManager: React.FC<LayerManagerProps>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { DockedLayerManagerSize } from '../../store/mapStore/types';
|
|
2
3
|
import { Size } from './LayerManagerHeaderOptions';
|
|
3
4
|
export declare const columnClasses: {
|
|
@@ -152,3 +153,32 @@ export declare const layerManagerStyle: {
|
|
|
152
153
|
};
|
|
153
154
|
};
|
|
154
155
|
export declare const returnCorrectSize: (sizeResult: DockedLayerManagerSize | undefined) => Size;
|
|
156
|
+
export interface LayerManagerCustomSettings {
|
|
157
|
+
header?: {
|
|
158
|
+
addLayer?: {
|
|
159
|
+
tooltipTitle?: string;
|
|
160
|
+
icon?: React.ReactNode;
|
|
161
|
+
};
|
|
162
|
+
layerName?: {
|
|
163
|
+
title: string;
|
|
164
|
+
};
|
|
165
|
+
layerStyle?: {
|
|
166
|
+
title: string;
|
|
167
|
+
};
|
|
168
|
+
opacity?: {
|
|
169
|
+
title: string;
|
|
170
|
+
};
|
|
171
|
+
dimensions?: {
|
|
172
|
+
title: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
footer?: {
|
|
176
|
+
baseLayerRow?: {
|
|
177
|
+
title?: string;
|
|
178
|
+
};
|
|
179
|
+
baseLayerDropdown?: {
|
|
180
|
+
tooltipPrefix?: string;
|
|
181
|
+
icon?: React.ElementType;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
}
|
|
@@ -3,6 +3,8 @@ import { Source } from '../../../store/ui/types';
|
|
|
3
3
|
interface LayerSelectButtonConnectProps {
|
|
4
4
|
mapId: string;
|
|
5
5
|
source?: Source;
|
|
6
|
+
tooltipTitle?: string;
|
|
7
|
+
icon?: React.ReactNode;
|
|
6
8
|
}
|
|
7
9
|
declare const LayerSelectButtonConnect: React.FC<LayerSelectButtonConnectProps>;
|
|
8
10
|
export default LayerSelectButtonConnect;
|
|
@@ -11,7 +11,10 @@ export interface PlayButtonConnectProps {
|
|
|
11
11
|
mapStartAnimation?: typeof mapActions.mapStartAnimation;
|
|
12
12
|
mapStopAnimation?: typeof mapActions.mapStopAnimation;
|
|
13
13
|
timeStep?: number;
|
|
14
|
-
linkedMapAnimationInfo?:
|
|
14
|
+
linkedMapAnimationInfo?: {
|
|
15
|
+
isAnimating: boolean;
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
15
18
|
}
|
|
16
19
|
declare const connectRedux: import("react-redux").InferableComponentEnhancerWithProps<{
|
|
17
20
|
animationStartTime: string | undefined;
|
|
@@ -35,7 +38,10 @@ declare const PlayButtonConnect: import("react-redux").ConnectedComponent<({ map
|
|
|
35
38
|
mapStartAnimation?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../../store/mapStore/types").SetMapAnimationStartPayload, string> | undefined;
|
|
36
39
|
mapStopAnimation?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../../store/mapStore/types").SetMapAnimationStopPayload, string> | undefined;
|
|
37
40
|
timeStep?: number | undefined;
|
|
38
|
-
linkedMapAnimationInfo?:
|
|
41
|
+
linkedMapAnimationInfo?: {
|
|
42
|
+
isAnimating: boolean;
|
|
43
|
+
id: string;
|
|
44
|
+
} | undefined;
|
|
39
45
|
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
40
46
|
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
41
47
|
}>;
|
package/lib/index.d.ts
CHANGED
|
@@ -41,6 +41,14 @@ export declare const mapActions: {
|
|
|
41
41
|
setAnimationDelay: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetAnimationDelayPayload, string>;
|
|
42
42
|
layerMoveLayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.MoveLayerPayload, string>;
|
|
43
43
|
setAutoLayerId: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetAutoLayerIdPayload, string>;
|
|
44
|
+
setAutoTimestepLayerId: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
45
|
+
mapId: string;
|
|
46
|
+
autoTimestepLayerId: string | undefined;
|
|
47
|
+
}, string>;
|
|
48
|
+
setAutoUpdateLayerId: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
49
|
+
mapId: string;
|
|
50
|
+
autoUpdateLayerId: string | undefined;
|
|
51
|
+
}, string>;
|
|
44
52
|
setTimeSliderCenterTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetTimeSliderCenterTimePayload, string>;
|
|
45
53
|
setTimeSliderUnfilteredSelectedTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetTimeSliderUnfilteredSelectedTimePayload, string>;
|
|
46
54
|
setTimeSliderSecondsPerPx: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetTimeSliderSecondsPerPxPayload, string>;
|
|
@@ -46,7 +46,6 @@ export interface SyncGroupAddTargetPayload {
|
|
|
46
46
|
groupId: string;
|
|
47
47
|
targetId: string;
|
|
48
48
|
linked?: boolean;
|
|
49
|
-
origin?: 'user' | 'system';
|
|
50
49
|
}
|
|
51
50
|
export interface SyncGroupRemoveTargetPayload {
|
|
52
51
|
groupId: string;
|
|
@@ -61,6 +60,7 @@ export interface SyncGroupAddGroupPayload {
|
|
|
61
60
|
groupId: string;
|
|
62
61
|
title: string;
|
|
63
62
|
type: SyncType;
|
|
63
|
+
origin?: 'user' | 'system';
|
|
64
64
|
}
|
|
65
65
|
export interface SyncGroupRemoveGroupPayload {
|
|
66
66
|
groupId: string;
|
|
@@ -33,6 +33,20 @@ export declare const slice: import("@reduxjs/toolkit").Slice<WebMapState, {
|
|
|
33
33
|
setAnimationDelay: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetAnimationDelayPayload>) => void;
|
|
34
34
|
layerMoveLayer: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<MoveLayerPayload>) => void;
|
|
35
35
|
setAutoLayerId: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetAutoLayerIdPayload>) => void;
|
|
36
|
+
setAutoTimestepLayerId: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: {
|
|
37
|
+
payload: {
|
|
38
|
+
mapId: string;
|
|
39
|
+
autoTimestepLayerId: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
type: string;
|
|
42
|
+
}) => void;
|
|
43
|
+
setAutoUpdateLayerId: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: {
|
|
44
|
+
payload: {
|
|
45
|
+
mapId: string;
|
|
46
|
+
autoUpdateLayerId: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
type: string;
|
|
49
|
+
}) => void;
|
|
36
50
|
setTimeSliderCenterTime: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetTimeSliderCenterTimePayload>) => void;
|
|
37
51
|
setTimeSliderUnfilteredSelectedTime: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetTimeSliderUnfilteredSelectedTimePayload>) => void;
|
|
38
52
|
setTimeSliderSecondsPerPx: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetTimeSliderSecondsPerPxPayload>) => void;
|
|
@@ -68,6 +82,14 @@ export declare const mapActions: {
|
|
|
68
82
|
setAnimationDelay: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetAnimationDelayPayload, string>;
|
|
69
83
|
layerMoveLayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<MoveLayerPayload, string>;
|
|
70
84
|
setAutoLayerId: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetAutoLayerIdPayload, string>;
|
|
85
|
+
setAutoTimestepLayerId: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
86
|
+
mapId: string;
|
|
87
|
+
autoTimestepLayerId: string | undefined;
|
|
88
|
+
}, string>;
|
|
89
|
+
setAutoUpdateLayerId: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
90
|
+
mapId: string;
|
|
91
|
+
autoUpdateLayerId: string | undefined;
|
|
92
|
+
}, string>;
|
|
71
93
|
setTimeSliderCenterTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderCenterTimePayload, string>;
|
|
72
94
|
setTimeSliderUnfilteredSelectedTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderUnfilteredSelectedTimePayload, string>;
|
|
73
95
|
setTimeSliderSecondsPerPx: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderSecondsPerPxPayload, string>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
2
|
import { Moment } from 'moment';
|
|
3
|
+
import { AnimationList } from '@opengeoweb/webmap';
|
|
3
4
|
import { mapActions } from '.';
|
|
4
5
|
import { layerActions } from '../layers';
|
|
5
6
|
import { Layer } from '../layers/types';
|
|
@@ -9,7 +10,7 @@ export declare const generateTimeList: (start: Moment, end: Moment, interval: nu
|
|
|
9
10
|
}[];
|
|
10
11
|
export declare const getAnimationEndTime: (animationEndTime: string) => string;
|
|
11
12
|
export declare const isAnimationEndTimeValid: (animationEndTime: string) => boolean;
|
|
12
|
-
export declare function updateMapDraw(mapId: string, draw:
|
|
13
|
+
export declare function updateMapDraw(mapId: string, draw: string | AnimationList[] | undefined): void;
|
|
13
14
|
export declare function startAnimationSaga({ payload, }: ReturnType<typeof mapActions.mapStartAnimation>): Generator;
|
|
14
15
|
export declare function stopAnimationSaga({ payload, }: ReturnType<typeof mapActions.mapStopAnimation>): Generator;
|
|
15
16
|
export declare function deleteLayerSaga({ payload, }: ReturnType<typeof layerActions.layerDelete>): SagaIterator;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.19.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,9 +13,10 @@
|
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^18.2.0",
|
|
16
|
-
"@opengeoweb/shared": "4.
|
|
17
|
-
"@mui/material": "^5.
|
|
18
|
-
"@opengeoweb/theme": "4.
|
|
16
|
+
"@opengeoweb/shared": "4.19.0",
|
|
17
|
+
"@mui/material": "^5.12.0",
|
|
18
|
+
"@opengeoweb/theme": "4.19.0",
|
|
19
|
+
"@mui/x-date-pickers": "^6.2.1",
|
|
19
20
|
"react-draggable": "^4.4.5",
|
|
20
21
|
"re-resizable": "^6.9.0",
|
|
21
22
|
"@redux-eggs/core": "^2.2.0",
|
|
@@ -24,24 +25,24 @@
|
|
|
24
25
|
"axios": "^0.25.0",
|
|
25
26
|
"date-fns": "^2.29.3",
|
|
26
27
|
"moment": "^2.29.0",
|
|
27
|
-
"@opengeoweb/webmap": "4.
|
|
28
|
+
"@opengeoweb/webmap": "4.19.0",
|
|
28
29
|
"throttle-debounce": "^3.0.1",
|
|
29
30
|
"proj4": "^2.6.2",
|
|
30
|
-
"@opengeoweb/api": "4.
|
|
31
|
+
"@opengeoweb/api": "4.19.0",
|
|
31
32
|
"react-intl": "^5.17.5",
|
|
32
33
|
"react-sortablejs": "^6.1.4",
|
|
33
34
|
"sortablejs": "^1.15.0",
|
|
34
35
|
"immer": "^9.0.15",
|
|
36
|
+
"@reduxjs/toolkit": "^1.8.3",
|
|
35
37
|
"react-window": "^1.8.7",
|
|
36
|
-
"@opengeoweb/form-fields": "4.
|
|
38
|
+
"@opengeoweb/form-fields": "4.19.0",
|
|
37
39
|
"react-hook-form": "^7.41.5",
|
|
38
40
|
"moment-timezone": "^0.5.31",
|
|
39
|
-
"
|
|
40
|
-
"@reduxjs/toolkit": "^1.8.3",
|
|
41
|
+
"react-resize-detector": "^9.1.0",
|
|
41
42
|
"lodash.clonedeep": "^4.5.0",
|
|
42
43
|
"@turf/turf": "^5.1.6",
|
|
43
44
|
"react-router-dom": "^6.4.2",
|
|
44
|
-
"@mui/system": "^5.
|
|
45
|
+
"@mui/system": "^5.12.0",
|
|
45
46
|
"redux-saga": "^1.2.1",
|
|
46
47
|
"@redux-eggs/redux-toolkit": "^2.2.0",
|
|
47
48
|
"@redux-eggs/saga-extension": "^2.2.0"
|