@opengeoweb/core 2.6.0 → 2.9.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 +6741 -7105
- package/index.umd.js +21864 -22115
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +7 -21
- package/lib/components/{ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts → ConfigurableMap/ConfigurableMapConnect.d.ts} +11 -17
- package/lib/components/{ConfigurableConnectedMap/ConfigurableConnectedMap.spec.d.ts → ConfigurableMap/ConfigurableMapConnect.spec.d.ts} +0 -0
- package/lib/components/ConfigurableMap/ConfigurableMapConnect.stories.d.ts +7 -0
- package/lib/components/ConfigurableMap/index.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.d.ts +3 -3
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +3 -3
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +1 -2
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +4 -3
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +5 -3
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +1 -3
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +3 -2
- package/lib/components/Legend/LegendConnect.d.ts +2 -0
- package/lib/components/Legend/LegendMapButtonConnect.d.ts +1 -0
- package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +1 -0
- package/lib/components/MultiMapView/HarmoniePresets/index.d.ts +0 -1
- package/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.d.ts +12 -0
- package/lib/components/{ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.spec.d.ts → MultiMapView/ModelRunInterval/ModelRunInterval.spec.d.ts} +0 -0
- package/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.stories.d.ts +4 -0
- package/lib/components/MultiMapView/ModelRunInterval/index.d.ts +1 -0
- package/lib/components/MultiMapView/MultiMapView.stories.d.ts +2 -3
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +3 -3
- package/lib/components/ReactMapView/AdagucMapDraw.d.ts +1 -1
- package/lib/components/ReactMapView/AdagucMapDrawTools.d.ts +1 -1
- package/lib/components/SyncGroups/selector.d.ts +0 -1
- package/lib/components/TimeSlider/TimeSlider.d.ts +2 -1
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +2 -1
- package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRail.d.ts +2 -1
- package/lib/components/TimeSlider/TimeSliderUtils.d.ts +1 -2
- package/lib/components/WMSLoader/WMSServerList/WMSServerList.d.ts +1 -1
- package/lib/index.d.ts +5 -4
- package/lib/store/generic/actions.d.ts +3 -4
- package/lib/store/generic/index.d.ts +2 -0
- package/lib/store/generic/sagas.d.ts +7 -6
- package/lib/store/generic/selectors.d.ts +0 -1
- package/lib/store/generic/synchronizationActions/actions.d.ts +6 -5
- package/lib/store/generic/synchronizationActions/types.d.ts +10 -23
- package/lib/store/generic/synchronizationGroups/constants.d.ts +0 -8
- package/lib/store/generic/synchronizationGroups/index.d.ts +1 -2
- package/lib/store/generic/synchronizationGroups/reducer.d.ts +25 -3
- package/lib/store/generic/synchronizationGroups/sagas.d.ts +3 -3
- package/lib/store/generic/synchronizationGroups/selectors.d.ts +0 -2
- package/lib/store/generic/synchronizationGroups/types.d.ts +1 -38
- package/lib/store/generic/types.d.ts +0 -11
- package/lib/store/layerSelect/selectors.d.ts +0 -6
- package/lib/store/layerSelect/types.d.ts +7 -4
- package/lib/store/mapStore/actions.d.ts +1 -1
- package/lib/store/mapStore/constants.d.ts +0 -1
- package/lib/store/mapStore/layers/actions.d.ts +8 -1
- package/lib/store/mapStore/layers/constants.d.ts +1 -0
- package/lib/store/mapStore/layers/reducer.d.ts +2 -2
- package/lib/store/mapStore/layers/selectors.d.ts +0 -17
- package/lib/store/mapStore/layers/types.d.ts +11 -3
- package/lib/store/mapStore/map/reducer.d.ts +12 -4
- package/lib/store/mapStore/map/sagas.d.ts +7 -5
- package/lib/store/mapStore/map/selectors.d.ts +40 -35
- package/lib/store/mapStore/map/types.d.ts +39 -96
- package/lib/store/mapStore/map/utils.d.ts +2 -1
- package/lib/store/mapStore/service/selectors.d.ts +0 -7
- package/lib/store/mapStore/service/types.d.ts +2 -0
- package/lib/store/mapStore/utils/helpers.d.ts +0 -1
- package/lib/store/ui/actions.d.ts +8 -1
- package/lib/store/ui/constants.d.ts +1 -0
- package/lib/store/ui/reducer.d.ts +2 -8
- package/lib/store/ui/selectors.d.ts +11 -8
- package/lib/store/ui/types.d.ts +13 -3
- package/lib/types/types.d.ts +1 -2
- package/lib/utils/jsonPresetFilter.d.ts +26 -7
- package/lib/utils/types.d.ts +0 -38
- package/package.json +8 -7
- package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.stories.d.ts +0 -6
- package/lib/components/ConfigurableConnectedMap/index.d.ts +0 -1
- package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +0 -22
- package/lib/components/ConfigurableMapWithSlider/index.d.ts +0 -1
- package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.d.ts +0 -9
- package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.spec.d.ts +0 -1
- package/lib/store/advancedLayerStore/actions.d.ts +0 -15
- package/lib/store/advancedLayerStore/config.d.ts +0 -4
- package/lib/store/advancedLayerStore/constants.d.ts +0 -2
- package/lib/store/advancedLayerStore/reducer.d.ts +0 -14
- package/lib/store/advancedLayerStore/reducer.spec.d.ts +0 -1
- package/lib/store/advancedLayerStore/selectors.d.ts +0 -21
- package/lib/store/advancedLayerStore/selectors.spec.d.ts +0 -1
- package/lib/store/advancedLayerStore/types.d.ts +0 -30
- package/lib/store/generic/constants.d.ts +0 -2
- package/lib/store/generic/synchronizationActions/constants.d.ts +0 -3
- package/lib/store/generic/synchronizationGroups/actions.d.ts +0 -80
- package/lib/store/mapStore/map/actions.d.ts +0 -156
- package/lib/store/mapStore/map/constants.d.ts +0 -23
|
@@ -7,12 +7,6 @@ interface CreateUIDialogElementProps {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const moveToTop: <Type>(list: Type[], element: Type) => Type[];
|
|
9
9
|
export declare const createUIDialogElement: ({ activeMapId, type, setOpen, source, }: CreateUIDialogElementProps) => UIType;
|
|
10
|
-
export declare const initialState:
|
|
11
|
-
|
|
12
|
-
dialogs: {};
|
|
13
|
-
};
|
|
14
|
-
export declare const reducer: (state: {
|
|
15
|
-
order: any[];
|
|
16
|
-
dialogs: {};
|
|
17
|
-
}, action: UIActions) => UIStoreType;
|
|
10
|
+
export declare const initialState: UIStoreType;
|
|
11
|
+
export declare const reducer: (state: UIStoreType, action: UIActions) => UIStoreType;
|
|
18
12
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppStore } from '../../types/types';
|
|
2
|
-
import {
|
|
2
|
+
import { UIType } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Gets the active map Id and wether a dialog is open or closed
|
|
5
5
|
*
|
|
@@ -17,7 +17,6 @@ export declare const getDialogDetailsByType: (store: AppStore, dialogType: strin
|
|
|
17
17
|
* @returns {boolean} returnType: boolean
|
|
18
18
|
*/
|
|
19
19
|
export declare const getisDialogOpen: ((state: {
|
|
20
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
21
20
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
22
21
|
ui?: import("./types").UIStoreType;
|
|
23
22
|
webmap?: import("../mapStore/types").WebMapState;
|
|
@@ -37,7 +36,6 @@ export declare const getisDialogOpen: ((state: {
|
|
|
37
36
|
* @returns {string} returnType: string - the active map id
|
|
38
37
|
*/
|
|
39
38
|
export declare const getDialogMapId: ((state: {
|
|
40
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
41
39
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
42
40
|
ui?: import("./types").UIStoreType;
|
|
43
41
|
webmap?: import("../mapStore/types").WebMapState;
|
|
@@ -57,14 +55,13 @@ export declare const getDialogMapId: ((state: {
|
|
|
57
55
|
* @returns {number} the higher the order number the higher the zIndex
|
|
58
56
|
*/
|
|
59
57
|
export declare const getDialogOrder: ((state: {
|
|
60
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
61
58
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
62
59
|
ui?: import("./types").UIStoreType;
|
|
63
60
|
webmap?: import("../mapStore/types").WebMapState;
|
|
64
61
|
services?: import("../mapStore/types").ServiceState;
|
|
65
62
|
layers?: import("../mapStore/types").LayerState;
|
|
66
63
|
layerSelect?: import("../layerSelect/types").LayerSelectStoreType;
|
|
67
|
-
}, params_0:
|
|
64
|
+
}, params_0: string) => number) & import("reselect").OutputSelectorFields<(args_0: number) => number & {
|
|
68
65
|
clearCache: () => void;
|
|
69
66
|
}> & {
|
|
70
67
|
clearCache: () => void;
|
|
@@ -77,20 +74,18 @@ export declare const getDialogOrder: ((state: {
|
|
|
77
74
|
* @returns {boolean}
|
|
78
75
|
*/
|
|
79
76
|
export declare const getDialogIsOrderedOnTop: ((state: {
|
|
80
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
81
77
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
82
78
|
ui?: import("./types").UIStoreType;
|
|
83
79
|
webmap?: import("../mapStore/types").WebMapState;
|
|
84
80
|
services?: import("../mapStore/types").ServiceState;
|
|
85
81
|
layers?: import("../mapStore/types").LayerState;
|
|
86
82
|
layerSelect?: import("../layerSelect/types").LayerSelectStoreType;
|
|
87
|
-
}, params_0:
|
|
83
|
+
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: boolean) => boolean & {
|
|
88
84
|
clearCache: () => void;
|
|
89
85
|
}> & {
|
|
90
86
|
clearCache: () => void;
|
|
91
87
|
};
|
|
92
88
|
export declare const getDialogSource: ((state: {
|
|
93
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
94
89
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
95
90
|
ui?: import("./types").UIStoreType;
|
|
96
91
|
webmap?: import("../mapStore/types").WebMapState;
|
|
@@ -102,3 +97,11 @@ export declare const getDialogSource: ((state: {
|
|
|
102
97
|
}> & {
|
|
103
98
|
clearCache: () => void;
|
|
104
99
|
};
|
|
100
|
+
/**
|
|
101
|
+
* Get the active window that should receive keyboard shortcuts
|
|
102
|
+
*
|
|
103
|
+
* Example: getActiveWindowId(store)
|
|
104
|
+
* @param {object} store store object from which the window state will be extracted
|
|
105
|
+
* @returns {string} active window id
|
|
106
|
+
*/
|
|
107
|
+
export declare const getActiveWindowId: (store: AppStore) => string;
|
package/lib/store/ui/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Action } from 'redux';
|
|
2
|
-
import { UI_SET_ACTIVE_MAPID_FOR_DIALOG, UI_REGISTER_DIALOG, UI_TOGGLE_DIALOG, UI_UNREGISTER_DIALOG, UI_ORDER_DIALOG } from './constants';
|
|
3
|
-
|
|
2
|
+
import { UI_SET_ACTIVE_MAPID_FOR_DIALOG, UI_REGISTER_DIALOG, UI_TOGGLE_DIALOG, UI_UNREGISTER_DIALOG, UI_ORDER_DIALOG, UI_SET_ACTIVE_WINDOW_ID } from './constants';
|
|
3
|
+
declare type LegendDialogType = string;
|
|
4
|
+
export declare type DialogType = 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter' | 'timeSeriesManager' | 'timeSeriesSelect' | 'syncGroups' | LegendDialogType;
|
|
4
5
|
export declare type Source = 'app' | 'module';
|
|
5
6
|
export interface UIType {
|
|
6
7
|
type: DialogType;
|
|
@@ -11,6 +12,7 @@ export interface UIType {
|
|
|
11
12
|
export interface UIStoreType {
|
|
12
13
|
order: DialogType[];
|
|
13
14
|
dialogs: Partial<Record<DialogType, UIType>>;
|
|
15
|
+
activeWindowId?: string;
|
|
14
16
|
}
|
|
15
17
|
export interface UIModuleState {
|
|
16
18
|
ui?: UIStoreType;
|
|
@@ -57,4 +59,12 @@ export interface UIOrderDialog extends Action {
|
|
|
57
59
|
type: typeof UI_ORDER_DIALOG;
|
|
58
60
|
payload: UIOrderDialogPayload;
|
|
59
61
|
}
|
|
60
|
-
export
|
|
62
|
+
export interface SetActiveWindowIdPayload {
|
|
63
|
+
activeWindowId: string;
|
|
64
|
+
}
|
|
65
|
+
export interface SetActiveWindowId extends Action {
|
|
66
|
+
type: typeof UI_SET_ACTIVE_WINDOW_ID;
|
|
67
|
+
payload: SetActiveWindowIdPayload;
|
|
68
|
+
}
|
|
69
|
+
export declare type UIActions = SetActiveMapIdForDialog | UIRegisterDialog | UIUnRegisterDialog | UIToggleDialog | UIOrderDialog | SetActiveWindowId;
|
|
70
|
+
export {};
|
package/lib/types/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { WebMapStateModuleState } from '../store/mapStore/types';
|
|
2
|
-
import { AdvancedLayerStoreModuleState } from '../store/advancedLayerStore/types';
|
|
3
2
|
import { SynchronizationGroupModuleState } from '../store/generic/synchronizationGroups/types';
|
|
4
3
|
import { UIModuleState } from '../store/ui/types';
|
|
5
4
|
import { LayerSelectModuleState } from '../store/layerSelect/types';
|
|
6
|
-
export interface AppStore extends
|
|
5
|
+
export interface AppStore extends SynchronizationGroupModuleState, UIModuleState, WebMapStateModuleState, LayerSelectModuleState {
|
|
7
6
|
}
|
|
@@ -1,11 +1,30 @@
|
|
|
1
1
|
import { Service } from '../components/WMSLoader/services';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { Layer } from '../store/mapStore/types';
|
|
3
|
+
interface FilteredMapPresets {
|
|
4
|
+
services?: Service[];
|
|
5
|
+
baseServices?: Service[];
|
|
6
|
+
baseLayers: Layer[];
|
|
7
|
+
mapLayers: Layer[];
|
|
8
|
+
}
|
|
9
|
+
export interface InitialAppPresetProps {
|
|
10
|
+
presetType?: string;
|
|
11
|
+
presetId?: string;
|
|
12
|
+
presetName?: string;
|
|
13
|
+
services?: Service[];
|
|
14
|
+
baseServices?: Service[];
|
|
15
|
+
layers?: Layer[];
|
|
16
|
+
baseLayers?: Layer[];
|
|
17
|
+
}
|
|
18
|
+
export interface InitialAppPreset {
|
|
19
|
+
preset: InitialAppPresetProps;
|
|
20
|
+
}
|
|
4
21
|
export declare const filterBaseLayers: (presetArray: unknown[]) => Layer[];
|
|
5
22
|
export declare const filterMapLayers: (presetArray: unknown[]) => Layer[];
|
|
23
|
+
export declare const filterLayers: (layers?: Layer[]) => {
|
|
24
|
+
mapLayers: Layer[];
|
|
25
|
+
baseLayers: Layer[];
|
|
26
|
+
};
|
|
6
27
|
export declare const filterServices: (presetArray: Service[]) => Service[];
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export
|
|
10
|
-
export declare const filterMapPresets: (presets: MapPresets) => FilteredMapPresets;
|
|
11
|
-
export declare const getInitialPresets: (mapPresets: MapPresets, defaultInitialPresets: MapPresets) => FilteredMapPresets;
|
|
28
|
+
export declare const filterMapPresets: (presets: InitialAppPreset) => FilteredMapPresets;
|
|
29
|
+
export declare const getInitialPresets: (mapPreset: InitialAppPreset, defaultInitialPresets: InitialAppPreset) => InitialAppPresetProps;
|
|
30
|
+
export {};
|
package/lib/utils/types.d.ts
CHANGED
|
@@ -1,42 +1,4 @@
|
|
|
1
1
|
import { Service } from '../components/WMSLoader/services';
|
|
2
|
-
import { Bbox, Dimension, Layer } from '../store/mapStore/types';
|
|
3
|
-
export interface PresetLayer {
|
|
4
|
-
id?: string;
|
|
5
|
-
mapId?: string;
|
|
6
|
-
service?: string;
|
|
7
|
-
name?: string;
|
|
8
|
-
format?: string;
|
|
9
|
-
enabled?: string;
|
|
10
|
-
style?: string;
|
|
11
|
-
dimensions?: Dimension[];
|
|
12
|
-
opacity?: number;
|
|
13
|
-
type?: string;
|
|
14
|
-
layerType?: string;
|
|
15
|
-
status?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface MapPreset {
|
|
18
|
-
presetType?: string;
|
|
19
|
-
presetId?: string;
|
|
20
|
-
presetName?: string;
|
|
21
|
-
srs?: string;
|
|
22
|
-
bbox?: Bbox;
|
|
23
|
-
services?: Service[];
|
|
24
|
-
baseServices?: Service[];
|
|
25
|
-
layers?: PresetLayer[];
|
|
26
|
-
activeLayerId?: string;
|
|
27
|
-
}
|
|
28
|
-
export interface MapPresets {
|
|
29
|
-
preset: MapPreset;
|
|
30
|
-
}
|
|
31
|
-
export interface LayerDimension {
|
|
32
|
-
dimension?: Dimension;
|
|
33
|
-
layerId?: string;
|
|
34
|
-
}
|
|
35
|
-
export interface FilteredMapPresets extends MapPreset {
|
|
36
|
-
baseLayers?: Layer[];
|
|
37
|
-
mapLayers?: Layer[];
|
|
38
|
-
layerDimensions?: LayerDimension[];
|
|
39
|
-
}
|
|
40
2
|
export interface UserAddedServices {
|
|
41
3
|
[id: string]: Service;
|
|
42
4
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,33 +13,34 @@
|
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^17.0.2",
|
|
16
|
-
"@opengeoweb/theme": "2.
|
|
16
|
+
"@opengeoweb/theme": "2.9.0",
|
|
17
17
|
"@mui/material": "^5.2.8",
|
|
18
18
|
"@mui/styles": "^5.2.3",
|
|
19
19
|
"@mui/icons-material": "^5.2.5",
|
|
20
|
-
"react-redux": "7.2.2",
|
|
21
20
|
"moment": "^2.29.0",
|
|
21
|
+
"react-redux": "7.2.2",
|
|
22
22
|
"react-intl": "^5.17.5",
|
|
23
|
-
"@opengeoweb/shared": "2.
|
|
23
|
+
"@opengeoweb/shared": "2.9.0",
|
|
24
24
|
"react-draggable": "^4.4.3",
|
|
25
25
|
"re-resizable": "^6.9.0",
|
|
26
26
|
"lodash": "^4.17.20",
|
|
27
|
-
"@opengeoweb/form-fields": "2.
|
|
27
|
+
"@opengeoweb/form-fields": "2.9.0",
|
|
28
28
|
"react-hook-form": "^6.12.1",
|
|
29
29
|
"moment-timezone": "^0.5.31",
|
|
30
30
|
"@mui/lab": "^5.0.0-alpha.64",
|
|
31
31
|
"axios": "^0.25.0",
|
|
32
|
-
"@opengeoweb/webmap": "2.
|
|
32
|
+
"@opengeoweb/webmap": "2.9.0",
|
|
33
33
|
"throttle-debounce": "^3.0.1",
|
|
34
34
|
"proj4": "^2.6.2",
|
|
35
35
|
"react-sortablejs": "^6.0.0",
|
|
36
|
+
"immer": "^9.0.15",
|
|
36
37
|
"redux-dynamic-modules": "^5.2.0",
|
|
37
38
|
"redux": "^4.0.4",
|
|
38
|
-
"immer": "^9.0.6",
|
|
39
39
|
"lodash.clonedeep": "^4.5.0",
|
|
40
40
|
"@turf/turf": "^5.1.6",
|
|
41
41
|
"reselect": "^4.1.5",
|
|
42
42
|
"redux-dynamic-modules-saga": "^5.2.0",
|
|
43
|
+
"@reduxjs/toolkit": "^1.8.3",
|
|
43
44
|
"redux-saga": "^1.1.3"
|
|
44
45
|
}
|
|
45
46
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ConfigurableConnectedMap';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Bbox, Layer } from '../../store/mapStore/types';
|
|
3
|
-
import { AnimationPayloadType } from '../ConfigurableConnectedMap';
|
|
4
|
-
export interface ConfigurableMapWithSliderConnectProps {
|
|
5
|
-
id?: string;
|
|
6
|
-
activeLayerId?: string;
|
|
7
|
-
shouldAutoUpdate?: boolean;
|
|
8
|
-
shouldAnimate?: boolean;
|
|
9
|
-
title?: string;
|
|
10
|
-
layers: Layer[];
|
|
11
|
-
baseLayer?: Layer;
|
|
12
|
-
overLayers?: Layer[];
|
|
13
|
-
bbox?: Bbox;
|
|
14
|
-
srs?: string;
|
|
15
|
-
shouldShowZoomControls?: boolean;
|
|
16
|
-
animationPayload?: AnimationPayloadType;
|
|
17
|
-
displayMapPin?: boolean;
|
|
18
|
-
showTimeSlider?: boolean;
|
|
19
|
-
toggleTimestepAuto?: boolean;
|
|
20
|
-
setTimestep?: number;
|
|
21
|
-
}
|
|
22
|
-
export declare const ConfigurableMapWithSliderConnect: React.FC<ConfigurableMapWithSliderConnectProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ConfigurableMapWithSliderConnect';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Layer } from '../../../store/mapStore/types';
|
|
3
|
-
import { MultiMapPreset } from '../MultiMapViewConnect';
|
|
4
|
-
export declare const makeMapPreset: (timeIncrement: number, uniqueId: string, referenceTime: string, layers: Layer[], syncGroupsIds: string[], displayLayerManagerButtonInMap: boolean, displayDimensionSelectButtonInMap: boolean) => MultiMapPreset;
|
|
5
|
-
export interface InitialHarmRefTimeProps {
|
|
6
|
-
layers?: Layer[];
|
|
7
|
-
syncGroupsIds: string[];
|
|
8
|
-
}
|
|
9
|
-
export declare const HarmRefTimePreset: React.FC<InitialHarmRefTimeProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AdvancedLayerStoreActions, SetTimeResolutionPayload, SetTimeValuePayload } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Sets time start, end, value and resolution if passed in (timeResolution must be in seconds)
|
|
4
|
-
*
|
|
5
|
-
* Example: setTimeResolution ({ timeStart: momentValue, timeEnd: momentValue, timeValue: momentValue, timeResolution: 300 });
|
|
6
|
-
* @param {object} payload object with: timeStart?: Moment, timeEnd?: Moment, timeValue?: Moment, timeResolution?: number->(in seconds);
|
|
7
|
-
*/
|
|
8
|
-
export declare const setTimeResolution: (payload: SetTimeResolutionPayload) => AdvancedLayerStoreActions;
|
|
9
|
-
/**
|
|
10
|
-
* Sets time value
|
|
11
|
-
*
|
|
12
|
-
* Example: setTimeValue ({ timeValue: value });
|
|
13
|
-
* @param {object} payload Object with timeValue: Moment;
|
|
14
|
-
*/
|
|
15
|
-
export declare const setTimeValue: (payload: SetTimeValuePayload) => AdvancedLayerStoreActions;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AdvancedLayerStoreState, AdvancedLayerStoreActions } from './types';
|
|
2
|
-
import { LayerActions, MapActions } from '../mapStore/types';
|
|
3
|
-
export declare const initialState: {
|
|
4
|
-
timeResolution: number;
|
|
5
|
-
timeStart: any;
|
|
6
|
-
timeEnd: any;
|
|
7
|
-
timeValue: any;
|
|
8
|
-
};
|
|
9
|
-
export declare const reducer: (state: {
|
|
10
|
-
timeResolution: number;
|
|
11
|
-
timeStart: any;
|
|
12
|
-
timeEnd: any;
|
|
13
|
-
timeValue: any;
|
|
14
|
-
}, action: AdvancedLayerStoreActions | LayerActions | MapActions) => AdvancedLayerStoreState;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AdvancedLayerStoreState } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Extracts the state of the advancedLayerStore from the store
|
|
4
|
-
*
|
|
5
|
-
* Example: advancedLayerStore = getAdvancedLayerStore(store);
|
|
6
|
-
* @param {object} store store: object - object from which the advancedLayerStore state will be extracted
|
|
7
|
-
* @returns {object} returnType: object - advancedLayerStore state part of the store
|
|
8
|
-
*/
|
|
9
|
-
export declare const getAdvancedLayerStore: ((state: {
|
|
10
|
-
advancedLayerStore?: AdvancedLayerStoreState;
|
|
11
|
-
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
12
|
-
ui?: import("../ui/types").UIStoreType;
|
|
13
|
-
webmap?: import("../mapStore/types").WebMapState;
|
|
14
|
-
services?: import("../mapStore/types").ServiceState;
|
|
15
|
-
layers?: import("../mapStore/types").LayerState;
|
|
16
|
-
layerSelect?: import("../layerSelect/types").LayerSelectStoreType;
|
|
17
|
-
}) => AdvancedLayerStoreState) & import("reselect").OutputSelectorFields<(args_0: AdvancedLayerStoreState) => AdvancedLayerStoreState & {
|
|
18
|
-
clearCache: () => void;
|
|
19
|
-
}> & {
|
|
20
|
-
clearCache: () => void;
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Moment } from 'moment';
|
|
2
|
-
import { Action } from 'redux';
|
|
3
|
-
import { ADVANCED_LAYER_STORE_SET_TIMERESOLUTION, ADVANCED_LAYER_STORE_SET_TIMEVALUE } from './constants';
|
|
4
|
-
export interface AdvancedLayerStoreState {
|
|
5
|
-
timeResolution: number;
|
|
6
|
-
timeStart: string;
|
|
7
|
-
timeEnd: string;
|
|
8
|
-
timeValue: string;
|
|
9
|
-
}
|
|
10
|
-
export interface AdvancedLayerStoreModuleState {
|
|
11
|
-
advancedLayerStore?: AdvancedLayerStoreState;
|
|
12
|
-
}
|
|
13
|
-
export interface SetTimeResolutionPayload {
|
|
14
|
-
timeStart?: Moment;
|
|
15
|
-
timeEnd?: Moment;
|
|
16
|
-
timeValue?: Moment;
|
|
17
|
-
timeResolution?: number;
|
|
18
|
-
}
|
|
19
|
-
export interface SetTimeResolution extends Action {
|
|
20
|
-
type: typeof ADVANCED_LAYER_STORE_SET_TIMERESOLUTION;
|
|
21
|
-
payload: SetTimeResolutionPayload;
|
|
22
|
-
}
|
|
23
|
-
export interface SetTimeValuePayload {
|
|
24
|
-
timeValue: Moment;
|
|
25
|
-
}
|
|
26
|
-
export interface SetTimeValue extends Action {
|
|
27
|
-
type: typeof ADVANCED_LAYER_STORE_SET_TIMEVALUE;
|
|
28
|
-
payload: SetTimeValuePayload;
|
|
29
|
-
}
|
|
30
|
-
export declare type AdvancedLayerStoreActions = SetTimeResolution | SetTimeValue;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { SyncGroupAddGroupPayload, SyncGroupAddTargetPayload, SyncGroupLinkTargetPayload, SyncGroupRemoveGroupPayload, SyncGroupRemoveSourcePayload, SyncGroupRemoveTargetPayload, SyncGroupsAddSourcePayload, SynchronizationGroupActions, SyncGroupSetViewStatePayload } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Add a source component to the sources list.
|
|
4
|
-
*
|
|
5
|
-
* @param payload: SyncGroupsAddSourcePayload;
|
|
6
|
-
* {
|
|
7
|
-
* id: string; // The id of the source ;
|
|
8
|
-
* type: SyncType[]; // The types of this source
|
|
9
|
-
* defaultPayload?: GenericActionPayload; // Optional default value of this source
|
|
10
|
-
* }
|
|
11
|
-
*/
|
|
12
|
-
export declare const syncGroupAddSource: (payload: SyncGroupsAddSourcePayload) => SynchronizationGroupActions;
|
|
13
|
-
/**
|
|
14
|
-
* Remove a source from the sources list. Besides removing it from the sources list, the reducer will also remove the source from the synchronization groups.
|
|
15
|
-
*
|
|
16
|
-
* @param payload SyncGroupRemoveSourcePayload;
|
|
17
|
-
* {
|
|
18
|
-
* id: string; // The source id to remove
|
|
19
|
-
* }
|
|
20
|
-
*/
|
|
21
|
-
export declare const syncGroupRemoveSource: (payload: SyncGroupRemoveSourcePayload) => SynchronizationGroupActions;
|
|
22
|
-
/**
|
|
23
|
-
* Add a target (which should be in the sources list) to this synchronization group.
|
|
24
|
-
* The source will get the value set according to the other targets in the group. T
|
|
25
|
-
* The value is set via a secondary action (via saga's) to allow the other reducers (not part of SyncGroups) to process the new value
|
|
26
|
-
*
|
|
27
|
-
* @param payload: SyncGroupAddTargetPayload;
|
|
28
|
-
* {
|
|
29
|
-
* id: string; // SyncGroup Id to add the target to.
|
|
30
|
-
* targetId: string; // TargetId of the target
|
|
31
|
-
* linked?: boolean; // Whether it should be linked to the group or not, if not set it is always linked (true)
|
|
32
|
-
* }
|
|
33
|
-
*/
|
|
34
|
-
export declare const syncGroupAddTarget: (payload: SyncGroupAddTargetPayload) => SynchronizationGroupActions;
|
|
35
|
-
/**
|
|
36
|
-
* Remove a target from the group
|
|
37
|
-
* @param payload: SyncGroupRemoveTargetPayload;
|
|
38
|
-
* {
|
|
39
|
-
* id: string; // SyncGroup Id to remove target from;
|
|
40
|
-
* targetId: string; // Target id to remove
|
|
41
|
-
* }
|
|
42
|
-
*/
|
|
43
|
-
export declare const syncGroupRemoveTarget: (payload: SyncGroupRemoveTargetPayload) => SynchronizationGroupActions;
|
|
44
|
-
/**
|
|
45
|
-
* Toggle linking of a target in this group.
|
|
46
|
-
* When linking is set to enabled, the value of the group is given to this target via an extra action (via saga's)
|
|
47
|
-
*
|
|
48
|
-
* @param payload: SyncGroupLinkTargetPayload;
|
|
49
|
-
* {
|
|
50
|
-
* linked: boolean; // Target is linked or not in this group
|
|
51
|
-
* id: string; // SyncGroup Id
|
|
52
|
-
* targetId: string; // The targetId to set linked for
|
|
53
|
-
* }
|
|
54
|
-
*/
|
|
55
|
-
export declare const syncGroupLinkTarget: (payload: SyncGroupLinkTargetPayload) => SynchronizationGroupActions;
|
|
56
|
-
/**
|
|
57
|
-
* Add a synchronization group
|
|
58
|
-
*
|
|
59
|
-
* @param payload: syncGroupAddGroupPayload;
|
|
60
|
-
* {
|
|
61
|
-
* id: string; // Syncgroup id
|
|
62
|
-
* title: string; // Title for sync group
|
|
63
|
-
* type: SyncType[]; // SyncGroup type
|
|
64
|
-
* }
|
|
65
|
-
*/
|
|
66
|
-
export declare const syncGroupAddGroup: (payload: SyncGroupAddGroupPayload) => SynchronizationGroupActions;
|
|
67
|
-
/**
|
|
68
|
-
* Remove a synchronization group
|
|
69
|
-
*
|
|
70
|
-
* @param payload: syncGroupRemoveGroupPayload;
|
|
71
|
-
* {
|
|
72
|
-
* id: string; // Syncgroup id
|
|
73
|
-
* }
|
|
74
|
-
*/
|
|
75
|
-
export declare const syncGroupRemoveGroup: (payload: SyncGroupRemoveGroupPayload) => SynchronizationGroupActions;
|
|
76
|
-
/**
|
|
77
|
-
* Clear syncGroups
|
|
78
|
-
*/
|
|
79
|
-
export declare const syncGroupClear: () => SynchronizationGroupActions;
|
|
80
|
-
export declare const syncGroupSetViewState: (payload: SyncGroupSetViewStatePayload) => SynchronizationGroupActions;
|