@opengeoweb/core 4.5.0 → 4.6.1
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 +1220 -391
- package/index.umd.js +1227 -362
- package/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +1 -0
- package/lib/components/FeatureInfo/GetFeatureInfoButtonConnect.d.ts +8 -0
- package/lib/components/FeatureInfo/GetFeatureInfoButtonConnect.spec.d.ts +1 -0
- package/lib/components/FeatureInfo/GetFeatureInfoConnect.d.ts +8 -0
- package/lib/components/FeatureInfo/GetFeatureInfoConnect.spec.d.ts +1 -0
- package/lib/components/FeatureInfo/GetFeatureInfoDialog.d.ts +16 -0
- package/lib/components/FeatureInfo/GetFeatureInfoDialog.spec.d.ts +1 -0
- package/lib/components/FeatureInfo/index.d.ts +3 -0
- package/lib/components/FeatureInfo/utils.d.ts +17 -0
- package/lib/components/FeatureInfo/utils.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/ServicePopup/utils.d.ts +3 -3
- package/lib/components/MapWarning/MapWarningProperties.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSlider.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/AnimationLengthButton/AnimationLengthButton.d.ts +9 -0
- package/lib/components/TimeSlider/TimeSliderButtons/AnimationLengthButton/AnimationLengthButton.spec.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/AnimationLengthButton/AnimationLengthButtonConnect.d.ts +6 -0
- package/lib/components/TimeSlider/TimeSliderButtons/AnimationLengthButton/AnimationLengthButtonConnect.spec.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenu.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.d.ts +6 -0
- package/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBox.d.ts +3 -2
- package/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBoxConnect.d.ts +4 -0
- package/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBoxMouseEvents.d.ts +2 -2
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +3 -0
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegendConnect.d.ts +4 -0
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegendUtils.d.ts +1 -0
- package/lib/hooks/useSetupDialog/useSetupDialog.d.ts +2 -0
- package/lib/index.d.ts +1 -3
- package/lib/store/layerSelect/reducer.d.ts +3 -1
- package/lib/store/layerSelect/selectors.d.ts +6 -39
- package/lib/store/layerSelect/types.d.ts +12 -20
- package/lib/store/layerSelect/utils.d.ts +5 -0
- package/lib/store/layerSelect/utils.spec.d.ts +1 -0
- package/lib/store/mapStore/map/reducer.d.ts +4 -8
- package/lib/store/mapStore/map/selectors.d.ts +21 -40
- package/lib/store/mapStore/map/types.d.ts +15 -14
- package/lib/store/ui/reducer.d.ts +5 -1
- package/lib/store/ui/selectors.d.ts +24 -0
- package/lib/store/ui/types.d.ts +12 -1
- package/lib/utils/testUtils.d.ts +1 -0
- package/package.json +10 -9
|
@@ -483,6 +483,27 @@ export declare const getMapTimeSliderCenterTime: ((state: {
|
|
|
483
483
|
}> & {
|
|
484
484
|
clearCache: () => void;
|
|
485
485
|
};
|
|
486
|
+
/**
|
|
487
|
+
* Returns the unflitered selected time of time slider
|
|
488
|
+
* This is not used to set the selected time itself, which is controlled by TimeBounds where values are rounded.
|
|
489
|
+
*
|
|
490
|
+
* Example: selectedTime = getTimeSliderUnfliteredSelectedTime(store, 'mapid_1')
|
|
491
|
+
* @param {object} store store: object - store object
|
|
492
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
493
|
+
* @returns {number} returnType: number - unfiltered selected time as a unix timestamp
|
|
494
|
+
*/
|
|
495
|
+
export declare const getTimeSliderUnfilteredSelectedTime: ((state: {
|
|
496
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
497
|
+
ui?: UIStoreType | undefined;
|
|
498
|
+
webmap?: WebMapState | undefined;
|
|
499
|
+
services?: import("../types").ServiceState | undefined;
|
|
500
|
+
layers?: import("../types").LayerState | undefined;
|
|
501
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
502
|
+
}, params_0: string) => number | null | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => number & {
|
|
503
|
+
clearCache: () => void;
|
|
504
|
+
}> & {
|
|
505
|
+
clearCache: () => void;
|
|
506
|
+
};
|
|
486
507
|
/**
|
|
487
508
|
* Returns the number of seconds per pixel on the time slider
|
|
488
509
|
*
|
|
@@ -866,26 +887,6 @@ export declare const getMapPreset: ((state: {
|
|
|
866
887
|
}> & {
|
|
867
888
|
clearCache: () => void;
|
|
868
889
|
};
|
|
869
|
-
/**
|
|
870
|
-
* Returns the loading state of the map preset
|
|
871
|
-
*
|
|
872
|
-
* Example getIsMapPresetLoading(store, mapId);
|
|
873
|
-
* @param {object} store store: object - store object
|
|
874
|
-
* @param {string} mapId mapId: string - Id of the map
|
|
875
|
-
* @returns {boolean} returnType: boolean
|
|
876
|
-
*/
|
|
877
|
-
export declare const getIsMapPresetLoading: ((state: {
|
|
878
|
-
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
879
|
-
ui?: UIStoreType | undefined;
|
|
880
|
-
webmap?: WebMapState | undefined;
|
|
881
|
-
services?: import("../types").ServiceState | undefined;
|
|
882
|
-
layers?: import("../types").LayerState | undefined;
|
|
883
|
-
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
884
|
-
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
|
|
885
|
-
clearCache: () => void;
|
|
886
|
-
}> & {
|
|
887
|
-
clearCache: () => void;
|
|
888
|
-
};
|
|
889
890
|
/**
|
|
890
891
|
* Returns the has changes state of the map preset
|
|
891
892
|
*
|
|
@@ -906,26 +907,6 @@ export declare const getHasMapPresetChanges: ((state: {
|
|
|
906
907
|
}> & {
|
|
907
908
|
clearCache: () => void;
|
|
908
909
|
};
|
|
909
|
-
/**
|
|
910
|
-
* Returns the error state of the map preset
|
|
911
|
-
*
|
|
912
|
-
* Example getMapPresetError(store, mapId);
|
|
913
|
-
* @param {object} store store: object - store object
|
|
914
|
-
* @param {string} mapId mapId: string - Id of the map
|
|
915
|
-
* @returns {Error} returnType: string
|
|
916
|
-
*/
|
|
917
|
-
export declare const getMapPresetError: ((state: {
|
|
918
|
-
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
919
|
-
ui?: UIStoreType | undefined;
|
|
920
|
-
webmap?: WebMapState | undefined;
|
|
921
|
-
services?: import("../types").ServiceState | undefined;
|
|
922
|
-
layers?: import("../types").LayerState | undefined;
|
|
923
|
-
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
924
|
-
}, params_0: string) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => string & {
|
|
925
|
-
clearCache: () => void;
|
|
926
|
-
}> & {
|
|
927
|
-
clearCache: () => void;
|
|
928
|
-
};
|
|
929
910
|
/**
|
|
930
911
|
* Returns whether the docked layer manager is open
|
|
931
912
|
*
|
|
@@ -32,6 +32,7 @@ export interface WebMap {
|
|
|
32
32
|
timeStep?: number;
|
|
33
33
|
animationDelay?: number;
|
|
34
34
|
timeSliderCenterTime?: number;
|
|
35
|
+
timeSliderUnfilteredSelectedTime?: number;
|
|
35
36
|
timeSliderSecondsPerPx?: number;
|
|
36
37
|
timeSliderDataScaleToSecondsPerPx?: number;
|
|
37
38
|
isTimestepAuto?: boolean;
|
|
@@ -43,9 +44,7 @@ export interface WebMap {
|
|
|
43
44
|
displayMapPin?: boolean;
|
|
44
45
|
selectedFeatureIndex?: number;
|
|
45
46
|
activeMapPresetId?: string;
|
|
46
|
-
isMapPresetLoading?: boolean;
|
|
47
47
|
hasMapPresetChanges?: boolean;
|
|
48
|
-
mapPresetError?: string;
|
|
49
48
|
legendId?: string;
|
|
50
49
|
dockedLayerManager: DockedLayerManager;
|
|
51
50
|
}
|
|
@@ -74,6 +73,16 @@ export declare enum Scale {
|
|
|
74
73
|
Year = 7,
|
|
75
74
|
DataScale = 8
|
|
76
75
|
}
|
|
76
|
+
export declare enum AnimationLength {
|
|
77
|
+
Minutes15 = 15,
|
|
78
|
+
Minutes30 = 30,
|
|
79
|
+
Hours1 = 60,
|
|
80
|
+
Hours2 = 120,
|
|
81
|
+
Hours3 = 180,
|
|
82
|
+
Hours6 = 360,
|
|
83
|
+
Hours12 = 720,
|
|
84
|
+
Hours24 = 1440
|
|
85
|
+
}
|
|
77
86
|
export declare type SpeedFactorType = 0.1 | 0.2 | 0.5 | 1 | 2 | 4 | 8 | 16;
|
|
78
87
|
export interface AnimationPayloadType {
|
|
79
88
|
duration?: number;
|
|
@@ -173,10 +182,6 @@ export interface SetAnimationEndTimePayload {
|
|
|
173
182
|
mapId: string;
|
|
174
183
|
animationEndTime: string;
|
|
175
184
|
}
|
|
176
|
-
export interface SetAnimationIntervalPayload {
|
|
177
|
-
mapId: string;
|
|
178
|
-
interval: number;
|
|
179
|
-
}
|
|
180
185
|
export interface ToggleTimestepAutoPayload {
|
|
181
186
|
mapId: string;
|
|
182
187
|
timestepAuto: boolean;
|
|
@@ -195,6 +200,10 @@ export interface SetTimeSliderCenterTimePayload {
|
|
|
195
200
|
mapId: string;
|
|
196
201
|
timeSliderCenterTime: number;
|
|
197
202
|
}
|
|
203
|
+
export interface SetTimeSliderUnfilteredSelectedTimePayload {
|
|
204
|
+
mapId: string;
|
|
205
|
+
timeSliderUnfilteredSelectedTime: number;
|
|
206
|
+
}
|
|
198
207
|
export interface SetTimeSliderSecondsPerPxPayload {
|
|
199
208
|
mapId: string;
|
|
200
209
|
timeSliderSecondsPerPx: number;
|
|
@@ -231,18 +240,10 @@ export interface SetActiveMapPresetPayload {
|
|
|
231
240
|
mapId: string;
|
|
232
241
|
presetId: string;
|
|
233
242
|
}
|
|
234
|
-
export interface SetIsMapPresetLoadingPayload {
|
|
235
|
-
mapId: string;
|
|
236
|
-
isLoading: boolean;
|
|
237
|
-
}
|
|
238
243
|
export interface SetIsMapPresetHasChangesPayload {
|
|
239
244
|
mapId: string;
|
|
240
245
|
hasChanges: boolean;
|
|
241
246
|
}
|
|
242
|
-
export interface SetMapPresetErrorPayload {
|
|
243
|
-
mapId: string;
|
|
244
|
-
error: string;
|
|
245
|
-
}
|
|
246
247
|
export interface ToggleDockedLayerManagedPayload {
|
|
247
248
|
mapId: string;
|
|
248
249
|
openDockedLayerManager: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { DialogType, SetActiveMapIdForDialogPayload, SetActiveWindowIdPayload, Source, UIOrderDialogPayload, UIRegisterDialogPayload, UIStoreType, UIToggleDialogPayload, UIType, UIUnRegisterDialogPayload } from './types';
|
|
2
|
+
import { DialogType, SetActiveMapIdForDialogPayload, SetActiveWindowIdPayload, Source, UIOrderDialogPayload, UIRegisterDialogPayload, UISetErrorPayload, UIStoreType, UIToggleDialogPayload, UIToggleIsLoadingPayload, UIType, UIUnRegisterDialogPayload } from './types';
|
|
3
3
|
interface CreateUIDialogElementProps {
|
|
4
4
|
activeMapId: string;
|
|
5
5
|
type: DialogType;
|
|
@@ -16,6 +16,8 @@ export declare const slice: import("@reduxjs/toolkit").Slice<UIStoreType, {
|
|
|
16
16
|
setToggleOpenDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIToggleDialogPayload>) => void;
|
|
17
17
|
orderDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIOrderDialogPayload>) => void;
|
|
18
18
|
setActiveWindowId: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
|
|
19
|
+
toggleIsLoadingDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIToggleIsLoadingPayload>) => void;
|
|
20
|
+
setErrorDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UISetErrorPayload>) => void;
|
|
19
21
|
}, "uiReducer">;
|
|
20
22
|
export declare const reducer: import("redux").Reducer<UIStoreType, import("redux").AnyAction>;
|
|
21
23
|
export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
@@ -25,5 +27,7 @@ export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
25
27
|
setToggleOpenDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIToggleDialogPayload>) => void;
|
|
26
28
|
orderDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIOrderDialogPayload>) => void;
|
|
27
29
|
setActiveWindowId: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
|
|
30
|
+
toggleIsLoadingDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIToggleIsLoadingPayload>) => void;
|
|
31
|
+
setErrorDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UISetErrorPayload>) => void;
|
|
28
32
|
}>;
|
|
29
33
|
export {};
|
|
@@ -106,3 +106,27 @@ export declare const getDialogSource: ((state: {
|
|
|
106
106
|
* @returns {string} active window id
|
|
107
107
|
*/
|
|
108
108
|
export declare const getActiveWindowId: (store: AppStore) => string;
|
|
109
|
+
export declare const getDialogIsLoading: ((state: {
|
|
110
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
111
|
+
ui?: UIStoreType | undefined;
|
|
112
|
+
webmap?: import("../mapStore/types").WebMapState | undefined;
|
|
113
|
+
services?: import("../mapStore/types").ServiceState | undefined;
|
|
114
|
+
layers?: import("../mapStore/types").LayerState | undefined;
|
|
115
|
+
layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
|
|
116
|
+
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean & {
|
|
117
|
+
clearCache: () => void;
|
|
118
|
+
}> & {
|
|
119
|
+
clearCache: () => void;
|
|
120
|
+
};
|
|
121
|
+
export declare const getDialogError: ((state: {
|
|
122
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
123
|
+
ui?: UIStoreType | undefined;
|
|
124
|
+
webmap?: import("../mapStore/types").WebMapState | undefined;
|
|
125
|
+
services?: import("../mapStore/types").ServiceState | undefined;
|
|
126
|
+
layers?: import("../mapStore/types").LayerState | undefined;
|
|
127
|
+
layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
|
|
128
|
+
}, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: UIType) => string & {
|
|
129
|
+
clearCache: () => void;
|
|
130
|
+
}> & {
|
|
131
|
+
clearCache: () => void;
|
|
132
|
+
};
|
package/lib/store/ui/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MapActionOrigin } from '../mapStore/types';
|
|
2
2
|
declare type LegendDialogType = string;
|
|
3
|
+
declare type GetFeatureInfoDialogType = string;
|
|
3
4
|
export declare enum DialogTypes {
|
|
4
5
|
LayerInfo = "layerInfo",
|
|
5
6
|
SyncGroups = "syncGroups",
|
|
@@ -11,13 +12,15 @@ export declare enum DialogTypes {
|
|
|
11
12
|
LayerManager = "layerManager",
|
|
12
13
|
LayerSelect = "layerSelect"
|
|
13
14
|
}
|
|
14
|
-
export declare type DialogType = DialogTypes | LegendDialogType;
|
|
15
|
+
export declare type DialogType = DialogTypes | LegendDialogType | GetFeatureInfoDialogType;
|
|
15
16
|
export declare type Source = 'app' | 'module';
|
|
16
17
|
export interface UIType {
|
|
17
18
|
type: DialogType;
|
|
18
19
|
activeMapId: string;
|
|
19
20
|
isOpen: boolean;
|
|
20
21
|
source?: Source;
|
|
22
|
+
isLoading?: boolean;
|
|
23
|
+
error?: string;
|
|
21
24
|
}
|
|
22
25
|
export interface UIStoreType {
|
|
23
26
|
order: DialogType[];
|
|
@@ -55,4 +58,12 @@ export interface UIOrderDialogPayload {
|
|
|
55
58
|
export interface SetActiveWindowIdPayload {
|
|
56
59
|
activeWindowId: string;
|
|
57
60
|
}
|
|
61
|
+
export interface UIToggleIsLoadingPayload {
|
|
62
|
+
type: DialogType;
|
|
63
|
+
isLoading: boolean;
|
|
64
|
+
}
|
|
65
|
+
export interface UISetErrorPayload {
|
|
66
|
+
type: DialogType;
|
|
67
|
+
error: string;
|
|
68
|
+
}
|
|
58
69
|
export {};
|
package/lib/utils/testUtils.d.ts
CHANGED
|
@@ -10,4 +10,5 @@ export declare const mockStateMapWithDimensions: (layer: Layer, mapId: string) =
|
|
|
10
10
|
export declare const mockStateMapWithDimensionsWithoutLayers: (mapId: string) => WebMapStateModuleState;
|
|
11
11
|
export declare const mockStateMapWithTimeSliderScaleWithoutLayers: (mapId: string, timeSliderScale: Scale) => WebMapStateModuleState;
|
|
12
12
|
export declare const mockStateMapWithTimeStepWithoutLayers: (mapId: string, timeStep: number) => WebMapStateModuleState;
|
|
13
|
+
export declare const mockStateMapWithAnimationStartWithoutLayers: (mapId: string, animationStartTime: string) => WebMapStateModuleState;
|
|
13
14
|
export declare const mockStateMapWithAnimationDelayWithoutLayers: (mapId: string) => WebMapStateModuleState;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.1",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,24 +13,25 @@
|
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^17.0.2",
|
|
16
|
-
"@opengeoweb/theme": "4.
|
|
16
|
+
"@opengeoweb/theme": "4.6.1",
|
|
17
17
|
"@mui/material": "^5.10.8",
|
|
18
18
|
"moment": "^2.29.0",
|
|
19
19
|
"react-redux": "^8.0.4",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
20
|
+
"@opengeoweb/webmap": "4.6.1",
|
|
21
|
+
"throttle-debounce": "^3.0.1",
|
|
22
|
+
"proj4": "^2.6.2",
|
|
23
|
+
"axios": "^0.25.0",
|
|
24
|
+
"@opengeoweb/api": "4.6.1",
|
|
25
|
+
"@opengeoweb/shared": "4.6.1",
|
|
22
26
|
"react-draggable": "^4.4.5",
|
|
23
27
|
"re-resizable": "^6.9.0",
|
|
24
28
|
"@redux-eggs/core": "^2.2.0",
|
|
25
|
-
"@opengeoweb/form-fields": "4.
|
|
29
|
+
"@opengeoweb/form-fields": "4.6.1",
|
|
26
30
|
"react-hook-form": "^6.12.1",
|
|
27
31
|
"moment-timezone": "^0.5.31",
|
|
28
32
|
"@mui/x-date-pickers": "^5.0.4",
|
|
29
33
|
"lodash": "^4.17.20",
|
|
30
|
-
"
|
|
31
|
-
"@opengeoweb/webmap": "4.5.0",
|
|
32
|
-
"throttle-debounce": "^3.0.1",
|
|
33
|
-
"proj4": "^2.6.2",
|
|
34
|
+
"react-intl": "^5.17.5",
|
|
34
35
|
"react-sortablejs": "^6.1.4",
|
|
35
36
|
"sortablejs": "^1.15.0",
|
|
36
37
|
"react-window": "^1.8.7",
|