@opengeoweb/core 2.8.0 → 2.12.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 +5537 -6976
- package/index.umd.js +21136 -22477
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +1 -1
- package/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +3 -4
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +2 -2
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DragHandle/DragHandle.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayerConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelectConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStylesConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerManager.d.ts +2 -0
- package/lib/components/LayerManager/LayerManager.stories.d.ts +9 -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 +5 -4
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +1 -2
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +3 -2
- 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/MapView/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +2 -2
- package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +1 -0
- package/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.d.ts +2 -1
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +2 -2
- package/lib/components/Providers/Providers.d.ts +1 -1
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +0 -1
- package/lib/components/SyncGroups/selector.d.ts +0 -1
- package/lib/components/TimeSlider/TimeSlider.d.ts +2 -0
- package/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButtonConnect.d.ts +1 -1
- package/lib/index.d.ts +59 -10
- package/lib/store/generic/actions.d.ts +3 -4
- package/lib/store/generic/index.d.ts +14 -0
- package/lib/store/generic/sagas.d.ts +10 -9
- 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 +8 -38
- package/lib/store/generic/synchronizationGroups/utils.d.ts +0 -5
- package/lib/store/generic/types.d.ts +3 -12
- package/lib/store/index.d.ts +4 -0
- package/lib/store/layerSelect/index.d.ts +2 -0
- package/lib/store/layerSelect/reducer.d.ts +12 -2
- package/lib/store/layerSelect/sagas.d.ts +3 -3
- package/lib/store/layerSelect/selectors.d.ts +0 -6
- package/lib/store/layerSelect/types.d.ts +7 -35
- package/lib/store/mapStore/index.d.ts +3 -0
- package/lib/store/mapStore/layers/index.d.ts +2 -0
- package/lib/store/mapStore/layers/reducer.d.ts +42 -4
- package/lib/store/mapStore/layers/selectors.d.ts +0 -17
- package/lib/store/mapStore/layers/types.d.ts +24 -72
- package/lib/store/mapStore/map/actions.d.ts +6 -170
- package/lib/store/mapStore/map/index.d.ts +2 -0
- package/lib/store/mapStore/map/reducer.d.ts +79 -4
- package/lib/store/mapStore/map/sagas.d.ts +13 -8
- package/lib/store/mapStore/map/selectors.d.ts +102 -39
- package/lib/store/mapStore/map/types.d.ts +35 -121
- package/lib/store/mapStore/map/utils.d.ts +3 -3
- package/lib/store/mapStore/service/index.d.ts +2 -0
- package/lib/store/mapStore/service/reducer.d.ts +9 -4
- package/lib/store/mapStore/service/selectors.d.ts +0 -7
- package/lib/store/mapStore/service/types.d.ts +2 -12
- package/lib/store/mapStore/utils/helpers.d.ts +0 -1
- package/lib/store/ui/index.d.ts +2 -0
- package/lib/store/ui/reducer.d.ts +19 -2
- package/lib/store/ui/selectors.d.ts +3 -8
- package/lib/store/ui/types.d.ts +3 -28
- package/lib/storybookUtils/defaultStorySettings.d.ts +2 -1
- package/lib/{store.d.ts → storybookUtils/store.d.ts} +0 -0
- package/lib/types/types.d.ts +1 -2
- package/lib/utils/jsonPresetFilter.d.ts +5 -0
- package/package.json +7 -9
- package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButton.d.ts +0 -9
- package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButton.spec.d.ts +0 -1
- package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButtonConnect.d.ts +0 -15
- package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButtonConnect.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/layerSelect/actions.d.ts +0 -26
- package/lib/store/layerSelect/constants.d.ts +0 -7
- package/lib/store/mapStore/actions.d.ts +0 -3
- package/lib/store/mapStore/constants.d.ts +0 -3
- package/lib/store/mapStore/layers/actions.d.ts +0 -134
- package/lib/store/mapStore/layers/constants.d.ts +0 -17
- package/lib/store/mapStore/map/constants.d.ts +0 -26
- package/lib/store/mapStore/selectors.d.ts +0 -3
- package/lib/store/mapStore/service/actions.d.ts +0 -15
- package/lib/store/mapStore/service/constants.d.ts +0 -2
- package/lib/store/ui/actions.d.ts +0 -43
- package/lib/store/ui/constants.d.ts +0 -6
|
@@ -16,18 +16,17 @@ export interface ConfigurableMapConnectProps {
|
|
|
16
16
|
title?: string;
|
|
17
17
|
layers: Layer[];
|
|
18
18
|
activeLayerId?: string;
|
|
19
|
-
baseLayer?: Layer;
|
|
20
|
-
overLayers?: Layer[];
|
|
21
19
|
bbox?: Bbox;
|
|
22
20
|
srs?: string;
|
|
23
21
|
animationPayload?: AnimationPayloadType;
|
|
24
22
|
shouldShowZoomControls?: boolean;
|
|
25
23
|
displayMapPin?: boolean;
|
|
26
24
|
showTimeSlider?: boolean;
|
|
25
|
+
disableTimeSlider?: boolean;
|
|
27
26
|
toggleTimestepAuto?: boolean;
|
|
28
|
-
setTimestep?: number;
|
|
29
27
|
displayTimeInMap?: boolean;
|
|
30
|
-
|
|
28
|
+
displayLayerManagerAndLegendButtonInMap?: boolean;
|
|
31
29
|
displayDimensionSelectButtonInMap?: boolean;
|
|
30
|
+
multiLegend?: boolean;
|
|
32
31
|
}
|
|
33
32
|
export declare const ConfigurableMapConnect: React.FC<ConfigurableMapConnectProps>;
|
package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Dimension } from '../../../../../store/mapStore/types';
|
|
2
|
+
import { Dimension, LayerActionOrigin } from '../../../../../store/mapStore/types';
|
|
3
3
|
interface DimensionSelectProps {
|
|
4
4
|
layerId: string;
|
|
5
5
|
layerDimensions?: Dimension[];
|
|
6
|
-
onLayerChangeDimension: (dimensionName: string, dimensionValue: string) => void;
|
|
6
|
+
onLayerChangeDimension: (dimensionName: string, dimensionValue: string, origin?: LayerActionOrigin.layerManager) => void;
|
|
7
7
|
isEnabled?: boolean;
|
|
8
8
|
}
|
|
9
9
|
declare const DimensionSelect: React.FC<DimensionSelectProps>;
|
|
@@ -4,6 +4,6 @@ interface DragHandleProps {
|
|
|
4
4
|
index?: number;
|
|
5
5
|
hideTooltip?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const TOOLTIP_TITLE = "Drag
|
|
7
|
+
export declare const TOOLTIP_TITLE = "Drag";
|
|
8
8
|
declare const DragHandle: React.FC<DragHandleProps>;
|
|
9
9
|
export default DragHandle;
|
|
@@ -17,6 +17,8 @@ interface LayerManagerProps {
|
|
|
17
17
|
layerSelect?: boolean;
|
|
18
18
|
showAddLayersTooltip?: boolean;
|
|
19
19
|
leftComponent?: React.ReactNode;
|
|
20
|
+
isLoading?: boolean;
|
|
21
|
+
error?: string;
|
|
20
22
|
}
|
|
21
23
|
declare const LayerManager: React.FC<LayerManagerProps>;
|
|
22
24
|
export default LayerManager;
|
|
@@ -7,3 +7,12 @@ export declare const LayerManagerDarkTheme: {
|
|
|
7
7
|
(): React.ReactElement;
|
|
8
8
|
storyName: string;
|
|
9
9
|
};
|
|
10
|
+
export declare const LayerManagerLoadingState: () => React.ReactElement;
|
|
11
|
+
export declare const LayerManagerWithErrorLight: {
|
|
12
|
+
(): React.ReactElement;
|
|
13
|
+
storyName: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const LayerManagerWithErrorDark: {
|
|
16
|
+
(): React.ReactElement;
|
|
17
|
+
storyName: string;
|
|
18
|
+
};
|
|
@@ -3,9 +3,9 @@ import { ReduxLayer } from '../../../../store/mapStore/layers/types';
|
|
|
3
3
|
interface LayerAddRemoveButtonProps {
|
|
4
4
|
layer: ReduxLayer;
|
|
5
5
|
layerIndex: number;
|
|
6
|
-
|
|
7
|
-
addLayer: ({
|
|
8
|
-
|
|
6
|
+
serviceUrl: string;
|
|
7
|
+
addLayer: ({ serviceUrl, layerName }: {
|
|
8
|
+
serviceUrl: any;
|
|
9
9
|
layerName: any;
|
|
10
10
|
}) => void;
|
|
11
11
|
deleteLayer: ({ layerId, layerIndex }: {
|
|
@@ -5,8 +5,8 @@ interface LayerListProps {
|
|
|
5
5
|
services: Services;
|
|
6
6
|
serviceIds: string[];
|
|
7
7
|
layerSelectHeight: number;
|
|
8
|
-
addLayer: ({
|
|
9
|
-
|
|
8
|
+
addLayer: ({ serviceUrl, layerName }: {
|
|
9
|
+
serviceUrl: any;
|
|
10
10
|
layerName: any;
|
|
11
11
|
}) => void;
|
|
12
12
|
deleteLayer: ({ layerId, layerIndex }: {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ReduxLayer, ServiceLayer } from '../../../../store/mapStore/types';
|
|
2
|
+
import { ReduxLayer, ServiceLayer, ReduxService } from '../../../../store/mapStore/types';
|
|
3
3
|
interface LayerListRowProps {
|
|
4
4
|
layer: ServiceLayer;
|
|
5
5
|
layerIndex: number;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
service: ReduxService;
|
|
7
|
+
serviceUrl: string;
|
|
8
|
+
addLayer: ({ serviceUrl, layerName }: {
|
|
9
|
+
serviceUrl: any;
|
|
9
10
|
layerName: any;
|
|
10
11
|
}) => void;
|
|
11
12
|
deleteLayer: ({ layerId, layerIndex }: {
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getMapStoreServiceFromLayerSelectServiceId: (services: Services, serviceId: string) => ReduxService;
|
|
1
|
+
import { ServiceLayer, Services } from '../../../../store/mapStore/service/types';
|
|
3
2
|
export declare const filterLayersFromService: (serviceId: string, services: Services, keywordIds: string[], allKeywordsActive: boolean, searchString: string) => ServiceLayer[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ActiveServiceObject } from '../../../../store/layerSelect/types';
|
|
3
3
|
interface ServiceChipProps {
|
|
4
4
|
all?: boolean;
|
|
5
|
-
service?:
|
|
5
|
+
service?: ActiveServiceObject;
|
|
6
6
|
isSelected?: boolean;
|
|
7
7
|
isDisabled?: boolean;
|
|
8
8
|
toggleChip?: (service: string) => void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ActiveServiceObject } from '../../../../store/layerSelect/types';
|
|
3
3
|
interface ServiceChipConnectProps {
|
|
4
4
|
all?: boolean;
|
|
5
|
-
|
|
5
|
+
serviceId?: string;
|
|
6
|
+
service?: ActiveServiceObject;
|
|
6
7
|
isSelected?: boolean;
|
|
7
8
|
isDisabled?: boolean;
|
|
8
9
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Services } from '../../../../store/mapStore/types';
|
|
3
2
|
import { ActiveServiceObject } from '../../../../store/layerSelect/types';
|
|
4
3
|
interface ServiceListProps {
|
|
5
4
|
layerSelectWidth?: number;
|
|
6
|
-
|
|
7
|
-
activeServices: ActiveServiceObject;
|
|
5
|
+
activeServices: Record<string, ActiveServiceObject>;
|
|
8
6
|
}
|
|
9
7
|
declare const ServiceList: React.FC<ServiceListProps>;
|
|
10
8
|
export default ServiceList;
|
package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReduxLayer } from '../../../../store/mapStore/layers/types';
|
|
3
|
+
import { ActiveServiceObject } from '../../../../store/layerSelect/types';
|
|
3
4
|
interface ServiceOptionsDialogProps {
|
|
4
|
-
services: Record<string,
|
|
5
|
-
mapStoreRemoveService?: (
|
|
5
|
+
services: Record<string, ActiveServiceObject>;
|
|
6
|
+
mapStoreRemoveService?: (serviceId: string, serviceUrl: string) => void;
|
|
6
7
|
layers?: ReduxLayer[];
|
|
7
8
|
}
|
|
8
9
|
declare const ServiceOptionsDialog: React.FC<ServiceOptionsDialogProps>;
|
|
@@ -3,6 +3,8 @@ import { Source } from '../../store/ui/types';
|
|
|
3
3
|
interface LegendConnectProps {
|
|
4
4
|
showMapId?: boolean;
|
|
5
5
|
source?: Source;
|
|
6
|
+
mapId?: string;
|
|
7
|
+
multiLegend?: boolean;
|
|
6
8
|
}
|
|
7
9
|
/**
|
|
8
10
|
* Legend component connected to the store displaying a legend for every layer shown on the active map Id
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { layerActions } from '../../store';
|
|
3
3
|
import { Layer } from '../../store/mapStore/types';
|
|
4
4
|
export interface LayerChangeOpacityInputProps {
|
|
5
5
|
mapId: string;
|
|
6
|
-
layerChangeOpacity: typeof
|
|
6
|
+
layerChangeOpacity: typeof layerActions.layerChangeOpacity;
|
|
7
7
|
layers: Layer[];
|
|
8
8
|
}
|
|
9
9
|
export declare const LayerChangeEnableOpacityAction: () => React.ReactElement;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Layer } from '../../../store/mapStore/types';
|
|
3
3
|
import { MultiMapPreset } from '../MultiMapViewConnect';
|
|
4
|
-
export declare const makeMapPreset: (timeIncrement: number, uniqueId: string, referenceTime: string, layers: Layer[], syncGroupsIds: string[],
|
|
4
|
+
export declare const makeMapPreset: (timeIncrement: number, uniqueId: string, referenceTime: string, layers: Layer[], syncGroupsIds: string[], displayLayerManagerAndLegendButtonInMap: boolean, displayDimensionSelectButtonInMap: boolean) => MultiMapPreset;
|
|
5
5
|
export interface ModelRunIntervalProps {
|
|
6
6
|
layers?: Layer[];
|
|
7
7
|
syncGroupsIds: string[];
|
|
8
8
|
interval?: number;
|
|
9
9
|
startTimeIncrement?: number;
|
|
10
|
+
multiLegend?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export declare const ModelRunInterval: React.FC<ModelRunIntervalProps>;
|
|
@@ -6,11 +6,10 @@ export interface MultiMapPreset {
|
|
|
6
6
|
title?: string;
|
|
7
7
|
layers: Layer[];
|
|
8
8
|
activeLayerId?: string;
|
|
9
|
-
baseLayer?: Layer;
|
|
10
9
|
bbox?: Bbox;
|
|
11
10
|
srs?: string;
|
|
12
11
|
displayTimeInMap?: boolean;
|
|
13
|
-
|
|
12
|
+
displayLayerManagerAndLegendButtonInMap?: boolean;
|
|
14
13
|
displayDimensionSelectButtonInMap?: boolean;
|
|
15
14
|
syncGroupsIds?: string[];
|
|
16
15
|
}
|
|
@@ -22,5 +21,6 @@ export interface MultiMapViewProps {
|
|
|
22
21
|
syncTime?: boolean;
|
|
23
22
|
showTimeSlider?: boolean;
|
|
24
23
|
showZoomControls?: boolean;
|
|
24
|
+
multiLegend?: boolean;
|
|
25
25
|
}
|
|
26
26
|
export declare const MultiMapViewConnect: React.FC<MultiMapViewProps>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { WMLayer, WMJSMap } from '@opengeoweb/webmap';
|
|
2
2
|
import { UpdateLayerInfoPayload } from '../../store/mapStore/types';
|
|
3
3
|
import { MapViewProps } from '../MapView/types';
|
|
4
|
-
export declare const ORIGIN_REACTMAPVIEWPARSELAYER = "ReactMapViewParseLayer";
|
|
5
4
|
export declare const setServiceMetadata: (wmLayer: WMLayer, mapId: string, webMapJSInstance: WMJSMap, mapProperties: MapViewProps, onUpdateLayerInformation?: (payload: UpdateLayerInfoPayload) => void) => void;
|
|
@@ -7,7 +7,6 @@ export declare const groupTypes: {
|
|
|
7
7
|
}[];
|
|
8
8
|
export declare const createSyncGroupViewState: (groups: SynchronizationGroups, sources: SynchronizationSources) => SyncGroupViewState;
|
|
9
9
|
export declare const createSyncGroupViewStateSelector: ((state: {
|
|
10
|
-
advancedLayerStore?: import("../../store/advancedLayerStore/types").AdvancedLayerStoreState;
|
|
11
10
|
syncronizationGroupStore?: import("../../store/generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
12
11
|
ui?: import("../../store/ui/types").UIStoreType;
|
|
13
12
|
webmap?: import("../../store/mapStore/types").WebMapState;
|
|
@@ -5,6 +5,8 @@ export interface TimeSliderProps {
|
|
|
5
5
|
scaleSlider?: React.ReactChild;
|
|
6
6
|
legend?: React.ReactChild;
|
|
7
7
|
mapIsActive?: boolean;
|
|
8
|
+
onToggleTimeSlider?: (isVisible: boolean) => void;
|
|
9
|
+
isVisible?: boolean;
|
|
8
10
|
}
|
|
9
11
|
declare const TimeSlider: React.FC<TimeSliderProps>;
|
|
10
12
|
export default TimeSlider;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as mapSelectors from './store/mapStore/selectors';
|
|
1
|
+
import { mapSelectors, uiActions, uiSelectors, layerActions, genericActions } from './store';
|
|
3
2
|
import * as mapTypes from './store/mapStore/types';
|
|
4
|
-
import * as mapConstants from './store/mapStore/constants';
|
|
5
3
|
import * as mapUtils from './store/mapStore/map/utils';
|
|
6
|
-
import * as uiActions from './store/ui/actions';
|
|
7
|
-
import * as uiSelectors from './store/ui/selectors';
|
|
8
4
|
import * as uiTypes from './store/ui/types';
|
|
9
|
-
import
|
|
10
|
-
import * as layerReducer from './store/mapStore/layers/reducer';
|
|
11
|
-
import * as layerActions from './store/mapStore/layers/actions';
|
|
5
|
+
import { reducer as layerReducer } from './store/mapStore/layers/reducer';
|
|
12
6
|
import synchronizationGroupConfig from './store/generic/config';
|
|
13
7
|
import * as SyncGroups from './store/generic/synchronizationGroups';
|
|
14
8
|
import coreModuleConfig from './store/coreModuleConfig';
|
|
@@ -22,14 +16,69 @@ export { LegendConnect, Legend, LegendMapButtonConnect, } from './components/Leg
|
|
|
22
16
|
export { ZoomControls, ZoomControlConnect } from './components/MapControls';
|
|
23
17
|
export { TimeSliderConnect } from './components/TimeSlider';
|
|
24
18
|
export { MapControls } from './components/MapControls';
|
|
25
|
-
export
|
|
19
|
+
export declare const mapActions: {
|
|
20
|
+
serviceSetLayers: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetLayersForServicePayload, string>;
|
|
21
|
+
mapStoreRemoveService: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.MapStoreRemoveServicePayload, string>;
|
|
22
|
+
setMapPreset: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetMapPresetPayload, string>;
|
|
23
|
+
mapChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetMapDimensionPayload, string>;
|
|
24
|
+
registerMap: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
25
|
+
mapId: string;
|
|
26
|
+
}, string>;
|
|
27
|
+
unregisterMap: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
28
|
+
mapId: string;
|
|
29
|
+
}, string>;
|
|
30
|
+
setBbox: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetBboxPayload, string>;
|
|
31
|
+
mapUpdateAllMapDimensions: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.UpdateAllMapDimensionsPayload, string>;
|
|
32
|
+
mapStartAnimation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetMapAnimationStartPayload, string>;
|
|
33
|
+
mapStopAnimation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetMapAnimationStopPayload, string>;
|
|
34
|
+
setTimeSliderScale: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetTimeSliderScalePayload, string>;
|
|
35
|
+
setTimeStep: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetTimeStepPayload, string>;
|
|
36
|
+
setAnimationStartTime: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetAnimationStartTimePayload, string>;
|
|
37
|
+
setAnimationEndTime: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetAnimationEndTimePayload, string>;
|
|
38
|
+
setSelectedFeature: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetSelectedFeaturePayload, string>;
|
|
39
|
+
setAnimationDelay: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetAnimationDelayPayload, string>;
|
|
40
|
+
setAnimationInterval: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetAnimationIntervalPayload, string>;
|
|
41
|
+
layerMoveLayer: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.MoveLayerPayload, string>;
|
|
42
|
+
setActiveLayerId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetActiveLayerIdPayload, string>;
|
|
43
|
+
setTimeSliderCenterTime: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetTimeSliderCenterTimePayload, string>;
|
|
44
|
+
setTimeSliderSecondsPerPx: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetTimeSliderSecondsPerPxPayload, string>;
|
|
45
|
+
setTimeSliderDataScaleToSecondsPerPx: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetTimeSliderDataScaleToSecondsPerPxPayload, string>;
|
|
46
|
+
toggleAutoUpdate: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.ToggleAutoUpdatePayload, string>;
|
|
47
|
+
toggleTimestepAuto: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.ToggleTimestepAutoPayload, string>;
|
|
48
|
+
toggleTimeSliderHover: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.ToggleTimeSliderHoverPayload, string>;
|
|
49
|
+
toggleTimeSliderIsVisible: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.ToggleTimeSliderIsVisiblePayload, string>;
|
|
50
|
+
setMapPinLocation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.MapPinLocationPayload, string>;
|
|
51
|
+
setDisableMapPin: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.DisableMapPinPayload, string>;
|
|
52
|
+
setActiveMapPresetId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetActiveMapPresetPayload, string>;
|
|
53
|
+
setIsMapPresetLoading: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetIsMapPresetLoadingPayload, string>;
|
|
54
|
+
setHasMapPresetChanges: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetIsMapPresetHasChangesPayload, string>;
|
|
55
|
+
setMapPresetError: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetMapPresetErrorPayload, string>;
|
|
56
|
+
addLayer: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.AddLayerPayload, string>;
|
|
57
|
+
layerChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetLayerDimensionPayload, string>;
|
|
58
|
+
layerChangeEnabled: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetLayerEnabledPayload, string>;
|
|
59
|
+
layerChangeOpacity: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetLayerOpacityPayload, string>;
|
|
60
|
+
layerChangeStyle: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetLayerStylePayload, string>;
|
|
61
|
+
layerChangeName: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetLayerNamePayload, string>;
|
|
62
|
+
layerChangeGeojson: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetLayerGeojsonPayload, string>;
|
|
63
|
+
layerDelete: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.DeleteLayerPayload, string>;
|
|
64
|
+
layerError: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.ErrorLayerPayload, string>;
|
|
65
|
+
baseLayerDelete: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.DeleteLayerPayload, string>;
|
|
66
|
+
setLayers: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetLayersPayload, string>;
|
|
67
|
+
setBaseLayers: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetBaseLayersPayload, string>;
|
|
68
|
+
addBaseLayer: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.AddBaseLayerPayload, string>;
|
|
69
|
+
layerSetDimensions: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetLayerDimensionsPayload, string>;
|
|
70
|
+
addAvailableBaseLayer: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.AddAvailableBaseLayerPayload, string>;
|
|
71
|
+
addAvailableBaseLayers: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.AddAvailableBaseLayersPayload, string>;
|
|
72
|
+
onUpdateLayerInformation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.UpdateLayerInfoPayload, string>;
|
|
73
|
+
};
|
|
74
|
+
export { mapSelectors, mapTypes, mapUtils, layerReducer, layerActions, uiActions, uiSelectors, uiTypes, genericActions as syncGroupActions, };
|
|
26
75
|
export { synchronizationGroupConfig as synchronizationGroupModuleConfig };
|
|
27
76
|
export * from './components/ComponentsLookUp';
|
|
28
77
|
export * from './components/ConfigurableMap';
|
|
29
78
|
export * from './store/mapStore/utils/helpers';
|
|
30
79
|
export { SyncGroupViewerConnect } from './components/SyncGroups/SyncGroupViewerConnect';
|
|
31
80
|
export { SyncGroups };
|
|
32
|
-
export { store } from './store';
|
|
81
|
+
export { store } from './storybookUtils/store';
|
|
33
82
|
export * from './types/types';
|
|
34
83
|
export { coreModuleConfig };
|
|
35
84
|
export { LayerManagerConnect, LayerManagerMapButtonConnect };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SetTimePayload, SetBboxPayload
|
|
1
|
+
import { SetTimePayload, SetBboxPayload } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Generic action to set the time.
|
|
4
4
|
*
|
|
@@ -8,7 +8,7 @@ import { SetTimePayload, SetBboxPayload, SetTime, SetBbox } from './types';
|
|
|
8
8
|
* value: string; // ISO 8601 string time value like "2010-10-01T00:00:00Z"
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
|
-
export declare const setTime: (
|
|
11
|
+
export declare const setTime: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetTimePayload, string>;
|
|
12
12
|
/**
|
|
13
13
|
* Generic action to set the bounding box.
|
|
14
14
|
*
|
|
@@ -25,5 +25,4 @@ export declare const setTime: (payload: SetTimePayload) => SetTime;
|
|
|
25
25
|
* srs: string; // Projection string according to EPSG, e.g. (EPSG:3857 == Mercator)
|
|
26
26
|
* }
|
|
27
27
|
*/
|
|
28
|
-
export declare const setBbox: (
|
|
29
|
-
export * from './synchronizationGroups/actions';
|
|
28
|
+
export declare const setBbox: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetBboxPayload, string>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const genericActions: {
|
|
2
|
+
setTime: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./types").SetTimePayload, string>;
|
|
3
|
+
setBbox: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./types").SetBboxPayload, string>;
|
|
4
|
+
syncGroupAddSource: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./synchronizationGroups/types").SyncGroupsAddSourcePayload, string>;
|
|
5
|
+
syncGroupRemoveSource: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./synchronizationGroups/types").SyncGroupRemoveSourcePayload, string>;
|
|
6
|
+
syncGroupAddTarget: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./synchronizationGroups/types").SyncGroupAddTargetPayload, string>;
|
|
7
|
+
syncGroupRemoveTarget: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./synchronizationGroups/types").SyncGroupRemoveTargetPayload, string>;
|
|
8
|
+
syncGroupLinkTarget: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./synchronizationGroups/types").SyncGroupLinkTargetPayload, string>;
|
|
9
|
+
syncGroupAddGroup: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./synchronizationGroups/types").SyncGroupAddGroupPayload, string>;
|
|
10
|
+
syncGroupRemoveGroup: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./synchronizationGroups/types").SyncGroupRemoveGroupPayload, string>;
|
|
11
|
+
syncGroupClear: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
12
|
+
syncGroupSetViewState: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./synchronizationGroups/types").SyncGroupSetViewStatePayload, string>;
|
|
13
|
+
};
|
|
14
|
+
export * as genericSelectors from './selectors';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export declare function
|
|
2
|
+
import { mapActions } from '../mapStore';
|
|
3
|
+
import { setBbox, setTime } from './actions';
|
|
4
|
+
import { layerActions, LayerActions } from '../mapStore/layers/reducer';
|
|
5
|
+
export declare function setTimeSaga({ payload, }: ReturnType<typeof setTime>): SagaIterator;
|
|
6
|
+
export declare function setBBoxSaga({ payload, }: ReturnType<typeof setBbox>): SagaIterator;
|
|
6
7
|
export declare function layerActionsSaga({ payload, type, }: LayerActions): SagaIterator;
|
|
7
|
-
export declare function addLayerActionsSaga({ payload, type, }:
|
|
8
|
-
export declare function deleteLayerActionsSaga({ payload, type, }:
|
|
9
|
-
export declare function moveLayerActionsSaga({ payload, type, }:
|
|
10
|
-
export declare function setActiveLayerIdActionsSaga({ payload, type, }:
|
|
11
|
-
export declare function mapBaseLayerActionsSaga({ payload, type, }:
|
|
8
|
+
export declare function addLayerActionsSaga({ payload, type, }: ReturnType<typeof layerActions.addLayer>): SagaIterator;
|
|
9
|
+
export declare function deleteLayerActionsSaga({ payload, type, }: ReturnType<typeof layerActions.layerDelete>): SagaIterator;
|
|
10
|
+
export declare function moveLayerActionsSaga({ payload, type, }: ReturnType<typeof mapActions.layerMoveLayer>): SagaIterator;
|
|
11
|
+
export declare function setActiveLayerIdActionsSaga({ payload, type, }: ReturnType<typeof mapActions.setActiveLayerId>): SagaIterator;
|
|
12
|
+
export declare function mapBaseLayerActionsSaga({ payload, type, }: ReturnType<typeof layerActions.setBaseLayers>): SagaIterator;
|
|
12
13
|
export declare function rootSaga(): SagaIterator;
|
|
13
14
|
export default rootSaga;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SynchronizationGroupState, SynchronizationSource } from './synchronizationGroups/types';
|
|
2
2
|
export declare const getSynchronizationGroupStore: ((state: {
|
|
3
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
4
3
|
syncronizationGroupStore?: SynchronizationGroupState;
|
|
5
4
|
ui?: import("../ui/types").UIStoreType;
|
|
6
5
|
webmap?: import("../mapStore/types").WebMapState;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SetBboxPayload, SetTimePayload, SyncLayerPayloads } from '../types';
|
|
2
|
+
import type { SetBboxSyncActionPayload, SetBboxSyncPayload, SetLayerActionsSyncPayload, SetTimeSyncActionPayload, SetTimeSyncPayload } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* These actions are fired by the generic/saga.ts, based on generic actions and the synchronizationGroup state.
|
|
5
5
|
*
|
|
6
6
|
* These actions should not be used by components directly. Components should only use the generic actions.
|
|
7
7
|
*/
|
|
8
|
-
export declare const setTimeSync: (payload: SetTimePayload, targets: SetTimeSyncPayload[], groups: string[]
|
|
9
|
-
export declare const setBboxSync: (payload: SetBboxPayload, targets: SetBboxSyncPayload[], groups: string[]
|
|
10
|
-
export declare const setLayerActionSync: (payload: SyncLayerPayloads, targets: SyncLayerPayloads[], type: string
|
|
8
|
+
export declare const setTimeSync: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: SetTimePayload, targets: SetTimeSyncPayload[], groups: string[]], SetTimeSyncActionPayload, "GENERIC_SYNC_SETTIME", never, never>;
|
|
9
|
+
export declare const setBboxSync: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: SetBboxPayload, targets: SetBboxSyncPayload[], groups: string[]], SetBboxSyncActionPayload, "GENERIC_SYNC_SETBBOX", never, never>;
|
|
10
|
+
export declare const setLayerActionSync: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: SyncLayerPayloads, targets: SyncLayerPayloads[], type: string], SetLayerActionsSyncPayload, "GENERIC_SYNC_SETLAYERACTIONS", never, never>;
|
|
11
|
+
export declare type GenericSyncActions = ReturnType<typeof setTimeSync> | ReturnType<typeof setBboxSync> | ReturnType<typeof setLayerActionSync>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { SetBbox, SetTime, SyncLayerPayloads } from '../types';
|
|
1
|
+
import { setBbox, setTime } from '../actions';
|
|
2
|
+
import { SyncLayerPayloads } from '../types';
|
|
4
3
|
export interface SetTimeSyncPayload {
|
|
5
4
|
targetId: string;
|
|
6
5
|
value: string;
|
|
@@ -22,26 +21,14 @@ export interface SetLayerActionsSyncPayload {
|
|
|
22
21
|
};
|
|
23
22
|
targets: SyncLayerPayloads[];
|
|
24
23
|
}
|
|
25
|
-
export interface
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
groups: string[];
|
|
30
|
-
targets: SetTimeSyncPayload[];
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export interface SetBboxSync extends Action {
|
|
34
|
-
type: typeof GENERIC_SYNC_SETBBOX;
|
|
35
|
-
payload: {
|
|
36
|
-
source: SetBbox;
|
|
37
|
-
groups: string[];
|
|
38
|
-
targets: SetBboxSyncPayload[];
|
|
39
|
-
};
|
|
24
|
+
export interface SetTimeSyncActionPayload {
|
|
25
|
+
source: ReturnType<typeof setTime>;
|
|
26
|
+
groups: string[];
|
|
27
|
+
targets: SetTimeSyncPayload[];
|
|
40
28
|
}
|
|
41
|
-
export interface
|
|
42
|
-
|
|
43
|
-
|
|
29
|
+
export interface SetBboxSyncActionPayload {
|
|
30
|
+
source: ReturnType<typeof setBbox>;
|
|
31
|
+
groups: string[];
|
|
32
|
+
targets: SetBboxSyncPayload[];
|
|
44
33
|
}
|
|
45
34
|
export declare type GenericSyncActionPayload = SetBboxSyncPayload | SetTimeSyncPayload | SetLayerActionsSyncPayload;
|
|
46
|
-
export declare type GenericSyncActionPayloads = SetBboxSyncPayload[] | SetTimeSyncPayload[];
|
|
47
|
-
export declare type GenericSyncActions = SetTimeSync | SetBboxSync | SetLayerActionsSync;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
export declare const SYNCGROUPS_ADD_SOURCE = "SYNCGROUPS_ADD_SOURCE";
|
|
2
|
-
export declare const SYNCGROUPS_REMOVE_SOURCE = "SYNCGROUPS_REMOVE_SOURCE";
|
|
3
|
-
export declare const SYNCGROUPS_TOGGLE_LINK_TARGET = "SYNCGROUPS_TOGGLE_LINK_TARGET";
|
|
4
|
-
export declare const SYNCGROUPS_ADD_TARGET = "SYNCGROUPS_ADD_TARGET";
|
|
5
|
-
export declare const SYNCGROUPS_REMOVE_TARGET = "SYNCGROUPS_REMOVE_TARGET";
|
|
6
|
-
export declare const SYNCGROUPS_ADD_GROUP = "SYNCGROUPS_ADD_GROUP";
|
|
7
|
-
export declare const SYNCGROUPS_REMOVE_GROUP = "SYNCGROUPS_REMOVE_GROUP";
|
|
8
|
-
export declare const SYNCGROUPS_CLEAR = "SYNCGROUPS_CLEAR";
|
|
9
1
|
export declare const SYNCGROUPS_TYPE_SETTIME = "SYNCGROUPS_TYPE_SETTIME";
|
|
10
2
|
export declare const SYNCGROUPS_TYPE_SETBBOX = "SYNCGROUPS_TYPE_SETBBOX";
|
|
11
3
|
export declare const SYNCGROUPS_TYPE_SETLAYERACTIONS = "SYNCGROUPS_TYPE_SETLAYERACTIONS";
|