@opengeoweb/core 2.9.0 → 2.13.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 +11079 -11693
- package/index.umd.js +8694 -9271
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +1 -1
- package/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +1 -2
- 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/LayerListRow.d.ts +2 -1
- package/lib/components/Legend/LegendConnect.d.ts +1 -0
- package/lib/components/MapView/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +2 -2
- package/lib/components/MapView/MapViewConnect.MapPin.stories.d.ts +1 -0
- package/lib/components/MapView/MapViewConnect.d.ts +0 -2
- package/lib/components/Providers/Providers.d.ts +1 -1
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +1 -1
- package/lib/components/ReactMapView/ReactMapViewParseLayer.spec.d.ts +1 -0
- 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/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +2 -2
- package/lib/components/TimeSlider/TimeSliderUtils.d.ts +2 -0
- package/lib/index.d.ts +61 -10
- package/lib/store/generic/index.d.ts +14 -2
- package/lib/store/generic/sagas.d.ts +7 -7
- package/lib/store/generic/synchronizationGroups/types.d.ts +7 -0
- package/lib/store/generic/synchronizationGroups/utils.d.ts +0 -5
- package/lib/store/generic/types.d.ts +3 -1
- 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/types.d.ts +0 -31
- 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/types.d.ts +24 -72
- package/lib/store/mapStore/map/actions.d.ts +8 -0
- package/lib/store/mapStore/map/index.d.ts +2 -0
- package/lib/store/mapStore/map/reducer.d.ts +84 -12
- package/lib/store/mapStore/map/sagas.d.ts +10 -4
- package/lib/store/mapStore/map/selectors.d.ts +200 -39
- package/lib/store/mapStore/map/types.d.ts +51 -11
- package/lib/store/mapStore/map/utils.d.ts +5 -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/types.d.ts +0 -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 +7 -6
- package/lib/store/ui/types.d.ts +6 -29
- package/lib/storybookUtils/defaultStorySettings.d.ts +2 -1
- package/lib/{store.d.ts → storybookUtils/store.d.ts} +0 -0
- package/lib/utils/jsonPresetFilter.d.ts +1 -0
- package/package.json +6 -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/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 -2
- package/lib/store/mapStore/layers/actions.d.ts +0 -134
- package/lib/store/mapStore/layers/constants.d.ts +0 -17
- 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,15 +16,14 @@ export interface ConfigurableMapConnectProps {
|
|
|
16
16
|
title?: string;
|
|
17
17
|
layers: Layer[];
|
|
18
18
|
activeLayerId?: string;
|
|
19
|
-
overLayers?: Layer[];
|
|
20
19
|
bbox?: Bbox;
|
|
21
20
|
srs?: string;
|
|
22
21
|
animationPayload?: AnimationPayloadType;
|
|
23
22
|
shouldShowZoomControls?: boolean;
|
|
24
23
|
displayMapPin?: boolean;
|
|
25
24
|
showTimeSlider?: boolean;
|
|
25
|
+
disableTimeSlider?: boolean;
|
|
26
26
|
toggleTimestepAuto?: boolean;
|
|
27
|
-
setTimestep?: number;
|
|
28
27
|
displayTimeInMap?: boolean;
|
|
29
28
|
displayLayerManagerAndLegendButtonInMap?: boolean;
|
|
30
29
|
displayDimensionSelectButtonInMap?: boolean;
|
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
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
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
|
+
service: ReduxService;
|
|
6
7
|
serviceUrl: string;
|
|
7
8
|
addLayer: ({ serviceUrl, layerName }: {
|
|
8
9
|
serviceUrl: any;
|
|
@@ -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;
|
|
@@ -5,7 +5,6 @@ export interface MapViewConnectProps {
|
|
|
5
5
|
controls?: {
|
|
6
6
|
zoomControls?: boolean;
|
|
7
7
|
};
|
|
8
|
-
displayMapPin?: boolean;
|
|
9
8
|
showScaleBar?: boolean;
|
|
10
9
|
children?: React.ReactNode;
|
|
11
10
|
showLayerInfo?: boolean;
|
|
@@ -20,7 +19,6 @@ export declare const ORIGIN_REACTMAPVIEWCONNECT_ONUPDATELAYERINFO = "ORIGIN_REAC
|
|
|
20
19
|
* @param {string} mapId mapId: string - Id of the map
|
|
21
20
|
* @param {object} [controls.zoomControls] **optional** controls: object - toggle the map controls, zoomControls defaults to true
|
|
22
21
|
* @param {boolean} [displayTimeInMap] **optional** displayTimeInMap: boolean, toggles the mapTime, defaults to true
|
|
23
|
-
* @param {boolean} [displayMapPin] **optional** displayMapPin: boolean, toggle the display of pin on click, defaults to false
|
|
24
22
|
* @param {boolean} [showScaleBar] **optional** showScaleBar: boolean, toggles the scaleBar, defaults to true
|
|
25
23
|
* @example
|
|
26
24
|
* ```<MapViewConnect mapId={mapId} controls={{ zoomControls: false }} displayTimeInMap={false} showScaleBar={false}/>```
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
|
4
|
+
export declare const getCurrentDimensionValue: (dimensions: any[], name: string) => string;
|
|
5
5
|
export declare const setServiceMetadata: (wmLayer: WMLayer, mapId: string, webMapJSInstance: WMJSMap, mapProperties: MapViewProps, onUpdateLayerInformation?: (payload: UpdateLayerInfoPayload) => void) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mockGeoJSON: GeoJSON.FeatureCollection;
|
|
@@ -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;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Dimension } from '../../../../store/mapStore/types';
|
|
2
|
+
import { Dimension, MapActionOrigin } from '../../../../store/mapStore/types';
|
|
3
3
|
interface TimeStepProps {
|
|
4
4
|
timeStep: number;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
isTimestepAuto?: boolean;
|
|
7
7
|
timeDimension?: Dimension;
|
|
8
|
-
onChangeTimeStep: (scale: number) => void;
|
|
8
|
+
onChangeTimeStep: (scale: number, origin?: MapActionOrigin) => void;
|
|
9
9
|
onToggleTimestepAuto?: () => void;
|
|
10
10
|
}
|
|
11
11
|
declare const TimeStepButton: React.FC<TimeStepProps>;
|
|
@@ -5,6 +5,7 @@ import { Dimension, Layer, Scale, SpeedFactorType } from '../../store/mapStore/t
|
|
|
5
5
|
import CanvasComponent from '../CanvasComponent/CanvasComponent';
|
|
6
6
|
export declare const defaultAnimationDelayAtStart = 250;
|
|
7
7
|
export declare const defaultDelay = 1000;
|
|
8
|
+
export declare const defaultTimeStep = 5;
|
|
8
9
|
export declare const speedFactors: SpeedFactorType[];
|
|
9
10
|
export interface TimeBounds {
|
|
10
11
|
selectedTime: number;
|
|
@@ -15,6 +16,7 @@ export interface TimeBounds {
|
|
|
15
16
|
* Returns speed delay for given speedFactor. For options, see defined above in "speedFactors"
|
|
16
17
|
*/
|
|
17
18
|
export declare const getSpeedDelay: (speedFactor: SpeedFactorType) => number;
|
|
19
|
+
export declare const getSpeedFactor: (speedDelay: number) => SpeedFactorType;
|
|
18
20
|
/**
|
|
19
21
|
* Returns time bounds from the given dimension. If no time dimension given, current time is returned as default
|
|
20
22
|
*/
|
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,71 @@ 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
|
+
toggleZoomControls: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.ToggleZoomControlsPayload, string>;
|
|
51
|
+
setMapPinLocation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.MapPinLocationPayload, string>;
|
|
52
|
+
setDisableMapPin: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.DisableMapPinPayload, string>;
|
|
53
|
+
toggleMapPinIsVisible: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.ToggleMapPinIsVisiblePayload, string>;
|
|
54
|
+
setActiveMapPresetId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetActiveMapPresetPayload, string>;
|
|
55
|
+
setIsMapPresetLoading: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetIsMapPresetLoadingPayload, string>;
|
|
56
|
+
setHasMapPresetChanges: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetIsMapPresetHasChangesPayload, string>;
|
|
57
|
+
setMapPresetError: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetMapPresetErrorPayload, string>;
|
|
58
|
+
addLayer: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.AddLayerPayload, string>;
|
|
59
|
+
layerChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetLayerDimensionPayload, string>;
|
|
60
|
+
layerChangeEnabled: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetLayerEnabledPayload, string>;
|
|
61
|
+
layerChangeOpacity: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetLayerOpacityPayload, string>;
|
|
62
|
+
layerChangeStyle: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetLayerStylePayload, string>;
|
|
63
|
+
layerChangeName: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetLayerNamePayload, string>;
|
|
64
|
+
layerChangeGeojson: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetLayerGeojsonPayload, string>;
|
|
65
|
+
layerDelete: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.DeleteLayerPayload, string>;
|
|
66
|
+
layerError: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.ErrorLayerPayload, string>;
|
|
67
|
+
baseLayerDelete: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.DeleteLayerPayload, string>;
|
|
68
|
+
setLayers: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetLayersPayload, string>;
|
|
69
|
+
setBaseLayers: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetBaseLayersPayload, string>;
|
|
70
|
+
addBaseLayer: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.AddBaseLayerPayload, string>;
|
|
71
|
+
layerSetDimensions: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetLayerDimensionsPayload, string>;
|
|
72
|
+
addAvailableBaseLayer: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.AddAvailableBaseLayerPayload, string>;
|
|
73
|
+
addAvailableBaseLayers: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.AddAvailableBaseLayersPayload, string>;
|
|
74
|
+
onUpdateLayerInformation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.UpdateLayerInfoPayload, string>;
|
|
75
|
+
};
|
|
76
|
+
export { mapSelectors, mapTypes, mapUtils, layerReducer, layerActions, uiActions, uiSelectors, uiTypes, genericActions as syncGroupActions, };
|
|
26
77
|
export { synchronizationGroupConfig as synchronizationGroupModuleConfig };
|
|
27
78
|
export * from './components/ComponentsLookUp';
|
|
28
79
|
export * from './components/ConfigurableMap';
|
|
29
80
|
export * from './store/mapStore/utils/helpers';
|
|
30
81
|
export { SyncGroupViewerConnect } from './components/SyncGroups/SyncGroupViewerConnect';
|
|
31
82
|
export { SyncGroups };
|
|
32
|
-
export { store } from './store';
|
|
83
|
+
export { store } from './storybookUtils/store';
|
|
33
84
|
export * from './types/types';
|
|
34
85
|
export { coreModuleConfig };
|
|
35
86
|
export { LayerManagerConnect, LayerManagerMapButtonConnect };
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
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,14 +1,14 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
|
-
import {
|
|
3
|
-
import { layerMoveLayer, setActiveLayerId } from '../mapStore/actions';
|
|
2
|
+
import { mapActions } from '../mapStore';
|
|
4
3
|
import { setBbox, setTime } from './actions';
|
|
4
|
+
import { layerActions, LayerActions } from '../mapStore/layers/reducer';
|
|
5
5
|
export declare function setTimeSaga({ payload, }: ReturnType<typeof setTime>): SagaIterator;
|
|
6
6
|
export declare function setBBoxSaga({ payload, }: ReturnType<typeof setBbox>): SagaIterator;
|
|
7
7
|
export declare function layerActionsSaga({ payload, type, }: LayerActions): SagaIterator;
|
|
8
|
-
export declare function addLayerActionsSaga({ payload, type, }:
|
|
9
|
-
export declare function deleteLayerActionsSaga({ payload, type, }:
|
|
10
|
-
export declare function moveLayerActionsSaga({ payload, type, }: ReturnType<typeof layerMoveLayer>): SagaIterator;
|
|
11
|
-
export declare function setActiveLayerIdActionsSaga({ payload, type, }: ReturnType<typeof setActiveLayerId>): SagaIterator;
|
|
12
|
-
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;
|
|
13
13
|
export declare function rootSaga(): SagaIterator;
|
|
14
14
|
export default rootSaga;
|
|
@@ -68,3 +68,10 @@ export interface SyncGroupSetViewStatePayload {
|
|
|
68
68
|
viewState: SyncGroupViewState;
|
|
69
69
|
}
|
|
70
70
|
export declare const SyncGroupTypeList: string[];
|
|
71
|
+
export declare enum SyncGroupActionOrigin {
|
|
72
|
+
delete = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_DELETEACTION",
|
|
73
|
+
layerActions = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_LAYERACTIONS",
|
|
74
|
+
move = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_MOVEACTION",
|
|
75
|
+
add = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_ADDACTION",
|
|
76
|
+
activateLayerId = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_ACTIVELAYERIDACTION"
|
|
77
|
+
}
|
|
@@ -2,11 +2,6 @@ import { AppStore } from '../../../types/types';
|
|
|
2
2
|
import { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetBaseLayersPayload } from '../../mapStore/types';
|
|
3
3
|
import { SyncLayerPayloads, LayerActionPayloadsWithLayerIds } from '../types';
|
|
4
4
|
import { SyncType } from './types';
|
|
5
|
-
export declare const ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_DELETEACTION = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_DELETEACTION";
|
|
6
|
-
export declare const ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_LAYERACTIONS = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_LAYERACTIONS";
|
|
7
|
-
export declare const ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_MOVEACTION = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_MOVEACTION";
|
|
8
|
-
export declare const ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_ADDACTION = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_ADDACTION";
|
|
9
|
-
export declare const ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_ACTIVELAYERIDACTION = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_ACTIVELAYERIDACTION";
|
|
10
5
|
interface FoundTargets {
|
|
11
6
|
payload: SyncLayerPayloads;
|
|
12
7
|
targetId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetActiveLayerIdPayload, SetBaseLayersPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerNamePayload, SetLayerOpacityPayload, SetLayerStylePayload } from '../mapStore/types';
|
|
1
|
+
import { AddLayerPayload, DeleteLayerPayload, MapActionOrigin, MoveLayerPayload, SetActiveLayerIdPayload, SetBaseLayersPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerNamePayload, SetLayerOpacityPayload, SetLayerStylePayload } from '../mapStore/types';
|
|
2
2
|
export interface SetTimePayload {
|
|
3
3
|
sourceId: string;
|
|
4
4
|
origin: string;
|
|
@@ -13,6 +13,8 @@ export interface SetBboxPayload {
|
|
|
13
13
|
top: number;
|
|
14
14
|
};
|
|
15
15
|
srs: string;
|
|
16
|
+
origin?: MapActionOrigin | string;
|
|
17
|
+
mapId?: string;
|
|
16
18
|
}
|
|
17
19
|
export declare type GenericActionPayload = SetBboxPayload | SetTimePayload;
|
|
18
20
|
export declare type LayerActionPayloadsWithLayerIds = SetLayerOpacityPayload | SetLayerNamePayload | SetLayerEnabledPayload | SetLayerDimensionPayload | SetLayerStylePayload | SetActiveLayerIdPayload;
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { AddKeywordsAndActiveServicesPayload, DisableActiveServicePayload, EnableActiveServicePayload, EnableOnlyOneKeywordPayload, LayerSelectServiceRemovedPayload, LayerSelectStoreType, SetSearchFilterPayload, ToggleKeywordsPayload } from './types';
|
|
2
3
|
export declare const initialState: LayerSelectStoreType;
|
|
3
|
-
export declare const reducer: (
|
|
4
|
+
export declare const reducer: import("@reduxjs/toolkit").Reducer<LayerSelectStoreType, import("@reduxjs/toolkit").AnyAction>;
|
|
5
|
+
export declare const layerSelectActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
6
|
+
setSearchFilter: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<SetSearchFilterPayload>) => void;
|
|
7
|
+
addKeywordsAndActiveServices: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<AddKeywordsAndActiveServicesPayload>) => void;
|
|
8
|
+
layerSelectServiceRemoved: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<LayerSelectServiceRemovedPayload>) => void;
|
|
9
|
+
enableActiveService: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<EnableActiveServicePayload>) => void;
|
|
10
|
+
disableActiveService: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<DisableActiveServicePayload>) => void;
|
|
11
|
+
toggleKeywords: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<ToggleKeywordsPayload>) => void;
|
|
12
|
+
enableOnlyOneKeyword: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<EnableOnlyOneKeywordPayload>) => void;
|
|
13
|
+
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
|
-
import { ServiceActions,
|
|
2
|
+
import { ServiceActions, serviceActions } from '../mapStore/service/reducer';
|
|
3
3
|
export declare function newServiceAddedSaga(capturedAction: ServiceActions): SagaIterator;
|
|
4
4
|
export declare function layerSelectServiceRemovedSaga(capturedAction: ServiceActions): SagaIterator;
|
|
5
|
-
export declare function addServiceToLocalStorageSaga({ payload, }:
|
|
6
|
-
export declare function removeServiceFromLocalStorageSaga({ payload, }:
|
|
5
|
+
export declare function addServiceToLocalStorageSaga({ payload, }: ReturnType<typeof serviceActions.serviceSetLayers>): void;
|
|
6
|
+
export declare function removeServiceFromLocalStorageSaga({ payload, }: ReturnType<typeof serviceActions.mapStoreRemoveService>): void;
|
|
7
7
|
export declare function rootSaga(): SagaIterator;
|
|
8
8
|
export default rootSaga;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Action } from 'redux';
|
|
2
|
-
import { LAYER_SELECT_SET_SEARCH_FILTER, LAYER_SELECT_ENABLE_ACTIVE_SERVICE, LAYER_SELECT_DISABLE_ACTIVE_SERVICE, LAYER_SELECT_ADD_KEYWORDS_AND_ACTIVE_SERVICES, LAYER_SELECT_SERVICE_REMOVED, LAYER_SELECT_TOGGLE_KEYWORDS, LAYER_SELECT_ENABLE_ONLY_ONE_KEYWORD } from './constants';
|
|
3
1
|
export interface ActiveServiceObject {
|
|
4
2
|
serviceName?: string;
|
|
5
3
|
serviceUrl?: string;
|
|
@@ -40,55 +38,26 @@ export interface FiltersType {
|
|
|
40
38
|
export interface SetSearchFilterPayload {
|
|
41
39
|
filterText: string;
|
|
42
40
|
}
|
|
43
|
-
export interface SetSearchFilter extends Action {
|
|
44
|
-
type: typeof LAYER_SELECT_SET_SEARCH_FILTER;
|
|
45
|
-
payload: SetSearchFilterPayload;
|
|
46
|
-
}
|
|
47
41
|
export interface EnableActiveServicePayload {
|
|
48
42
|
serviceId: string;
|
|
49
43
|
keywords: string[];
|
|
50
44
|
}
|
|
51
|
-
export interface EnableActiveService extends Action {
|
|
52
|
-
type: typeof LAYER_SELECT_ENABLE_ACTIVE_SERVICE;
|
|
53
|
-
payload: EnableActiveServicePayload;
|
|
54
|
-
}
|
|
55
45
|
export interface DisableActiveServicePayload {
|
|
56
46
|
serviceId: string;
|
|
57
47
|
keywords: string[];
|
|
58
48
|
}
|
|
59
|
-
export interface DisableActiveService extends Action {
|
|
60
|
-
type: typeof LAYER_SELECT_DISABLE_ACTIVE_SERVICE;
|
|
61
|
-
payload: DisableActiveServicePayload;
|
|
62
|
-
}
|
|
63
49
|
export interface AddKeywordsAndActiveServicesPayload {
|
|
64
50
|
serviceId: string;
|
|
65
51
|
serviceName: string;
|
|
66
52
|
serviceUrl: string;
|
|
67
53
|
keywords: string[];
|
|
68
54
|
}
|
|
69
|
-
export interface AddKeywordsAndActiveServices extends Action {
|
|
70
|
-
type: typeof LAYER_SELECT_ADD_KEYWORDS_AND_ACTIVE_SERVICES;
|
|
71
|
-
payload: AddKeywordsAndActiveServicesPayload;
|
|
72
|
-
}
|
|
73
55
|
export interface LayerSelectServiceRemovedPayload {
|
|
74
56
|
serviceId: string;
|
|
75
57
|
}
|
|
76
|
-
export interface LayerSelectServiceRemoved extends Action {
|
|
77
|
-
type: typeof LAYER_SELECT_SERVICE_REMOVED;
|
|
78
|
-
payload: LayerSelectServiceRemovedPayload;
|
|
79
|
-
}
|
|
80
58
|
export interface ToggleKeywordsPayload {
|
|
81
59
|
keywords: string[];
|
|
82
60
|
}
|
|
83
|
-
export interface ToggleKeywords extends Action {
|
|
84
|
-
type: typeof LAYER_SELECT_TOGGLE_KEYWORDS;
|
|
85
|
-
payload: ToggleKeywordsPayload;
|
|
86
|
-
}
|
|
87
61
|
export interface EnableOnlyOneKeywordPayload {
|
|
88
62
|
keyword: string;
|
|
89
63
|
}
|
|
90
|
-
export interface EnableOnlyOneKeyword extends Action {
|
|
91
|
-
type: typeof LAYER_SELECT_ENABLE_ONLY_ONE_KEYWORD;
|
|
92
|
-
payload: EnableOnlyOneKeywordPayload;
|
|
93
|
-
}
|
|
94
|
-
export declare type LayerSelectActions = SetSearchFilter | AddKeywordsAndActiveServices | EnableActiveService | LayerSelectServiceRemoved | DisableActiveService | ToggleKeywords | EnableOnlyOneKeyword;
|