@opengeoweb/core 2.1.3 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{core.esm.js → index.esm.js} +2892 -1531
- package/{core.umd.js → index.umd.js} +3191 -1781
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +3 -3
- package/lib/components/CustomSwitch/CustomSwitch.d.ts +1 -1
- package/lib/components/CustomSwitch/CustomSwitch.stories.d.ts +4 -0
- package/lib/components/CustomToggleButton/CustomToggleButton.d.ts +9 -0
- package/lib/components/{Mapcontrols/MapControlButton.spec.d.ts → CustomToggleButton/CustomToggleButton.spec.d.ts} +0 -0
- package/lib/components/CustomToggleButton/CustomToggleButton.stories.d.ts +13 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerManagerButton.d.ts +1 -1
- package/lib/components/LayerManager/LayerManagerUtils.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +1 -2
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +4 -5
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +6 -0
- package/lib/components/{Mapcontrols/MapControls.spec.d.ts → LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.d.ts +3 -0
- package/lib/components/{Mapcontrols/ZoomControls.spec.d.ts → LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.spec.d.ts} +0 -0
- package/lib/components/{Mapcontrols/ZoomControlsConnect.spec.d.ts → LayerManager/LayerSelect/KeywordFilterResults/keywordFilterResultsConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +2 -0
- package/lib/components/{ToggleIconButton/ToggleIconButton.spec.d.ts → LayerManager/LayerSelect/LayerList/LayerListUtils.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +9 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +4 -1
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.d.ts +10 -0
- package/lib/components/LayerManager/tooltipContainerStyles.d.ts +1 -1
- package/lib/components/{Mapcontrols → MapControls}/MapControlButton.d.ts +3 -3
- package/lib/components/MapControls/MapControlButton.spec.d.ts +1 -0
- package/lib/components/{Mapcontrols → MapControls}/MapControls.d.ts +0 -0
- package/lib/components/MapControls/MapControls.spec.d.ts +1 -0
- package/lib/components/{Mapcontrols → MapControls}/ZoomControls.d.ts +0 -0
- package/lib/components/MapControls/ZoomControls.spec.d.ts +1 -0
- package/lib/components/{Mapcontrols → MapControls}/ZoomControlsConnect.d.ts +0 -0
- package/lib/components/MapControls/ZoomControlsConnect.spec.d.ts +1 -0
- package/lib/components/{Mapcontrols → MapControls}/index.d.ts +0 -0
- package/lib/components/MapView/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +7 -0
- package/lib/components/MapView/MapViewConnect.SelectorTest.stories.d.ts +2 -0
- package/lib/components/MapView/MapViewConnect.d.ts +2 -0
- package/lib/components/MapView/MapViewConnect.stories.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectConfig.d.ts +1 -1
- package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.d.ts +2 -2
- package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +4 -4
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +3 -2
- package/lib/components/MultiMapView/storyUtils/mapPresets.d.ts +81 -0
- package/lib/components/Providers/Providers.d.ts +1 -1
- package/lib/components/ReactMapView/ReactMapView.d.ts +3 -7
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
- package/lib/components/ReactMapView/types.d.ts +2 -7
- package/lib/components/SyncGroups/selector.d.ts +13 -2
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegendRenderFunctions.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRailRenderFunctions.d.ts +1 -1
- package/lib/components/ToolButton/ToolButton.d.ts +12 -0
- package/lib/components/ToolButton/ToolButton.spec.d.ts +1 -0
- package/lib/components/{ToggleIconButton/ToggleIconButton.stories.d.ts → ToolButton/ToolButton.stories.d.ts} +2 -2
- package/lib/components/ToolButton/index.d.ts +1 -0
- package/lib/components/TooltipSelect/TooltipSelect.d.ts +2 -2
- package/lib/index.d.ts +4 -2
- package/lib/store/advancedLayerStore/selectors.d.ts +13 -2
- package/lib/store/generic/selectors.d.ts +21 -3
- package/lib/store/generic/synchronizationGroups/selectors.d.ts +13 -1
- package/lib/store/generic/synchronizationGroups/types.d.ts +1 -0
- package/lib/store/layerSelect/actions.d.ts +16 -5
- package/lib/store/layerSelect/constants.d.ts +6 -1
- package/lib/store/layerSelect/sagas.d.ts +1 -0
- package/lib/store/layerSelect/selectors.d.ts +130 -3
- package/lib/store/layerSelect/types.d.ts +73 -17
- package/lib/store/mapStore/layers/actions.d.ts +2 -8
- package/lib/store/mapStore/layers/constants.d.ts +1 -1
- package/lib/store/mapStore/layers/selectors.d.ts +222 -27
- package/lib/store/mapStore/layers/types.d.ts +34 -21
- package/lib/store/mapStore/map/sagas.d.ts +2 -2
- package/lib/store/mapStore/map/selectors.d.ts +459 -53
- package/lib/store/mapStore/service/actions.d.ts +8 -1
- package/lib/store/mapStore/service/constants.d.ts +1 -0
- package/lib/store/mapStore/service/selectors.d.ts +137 -8
- package/lib/store/mapStore/service/types.d.ts +14 -3
- package/lib/store/mapStore/utils/helpers.d.ts +0 -1
- package/lib/store/ui/selectors.d.ts +67 -7
- package/lib/store/utils.d.ts +6 -0
- package/lib/storybookUtils/HelperComponents.d.ts +1 -1
- package/lib/storybookUtils/storyComponents/MapDrawGeoJSON.d.ts +5 -5
- package/lib/storybookUtils/storyComponents/MapDrawGeoJSONStyles.d.ts +2 -1
- package/lib/utils/defaultConfigurations.d.ts +3 -21
- package/lib/utils/defaultTestSettings.d.ts +18 -6
- package/lib/utils/getCapabilities.d.ts +3 -2
- package/lib/utils/jsonPresetFilter.d.ts +10 -0
- package/lib/utils/jsonPresetFilter.spec.d.ts +1 -0
- package/lib/utils/types.d.ts +52 -0
- package/package.json +14 -15
- package/lib/components/ToggleIconButton/ToggleIconButton.d.ts +0 -9
- package/lib/components/ToggleIconButton/index.d.ts +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Theme } from '@material
|
|
1
|
+
import { Theme } from '@mui/material';
|
|
2
2
|
import { Scale } from '../../../store/mapStore/types';
|
|
3
3
|
export declare const renderTimeSliderRailWithNeedle: (ctx: CanvasRenderingContext2D, theme: Theme, width: number, height: number, centerTime: number, selected: number, secondsPerPx: number, scale: Scale, animationStart?: number, animationEnd?: number, dataStartTime?: number, dataEndTime?: number, currentTime?: number) => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Theme, SxProps } from '@mui/material';
|
|
3
|
+
import { CustomToggleButtonProps } from '../CustomToggleButton/CustomToggleButton';
|
|
4
|
+
export interface ToolButtonProps extends CustomToggleButtonProps {
|
|
5
|
+
active?: boolean;
|
|
6
|
+
width?: string;
|
|
7
|
+
height?: string;
|
|
8
|
+
value?: unknown;
|
|
9
|
+
sx?: SxProps<Theme>;
|
|
10
|
+
}
|
|
11
|
+
declare const ToolButton: React.FC<ToolButtonProps>;
|
|
12
|
+
export default ToolButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,11 +3,11 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const ToolButtonLight: {
|
|
7
7
|
(): React.ReactElement;
|
|
8
8
|
storyName: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const ToolButtonDark: {
|
|
11
11
|
(): React.ReactElement;
|
|
12
12
|
storyName: string;
|
|
13
13
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ToolButton } from './ToolButton';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SelectProps } from '@material
|
|
3
|
-
export declare const useStyles: (props?: any) => import("@
|
|
2
|
+
import { SelectProps } from '@mui/material';
|
|
3
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"select">;
|
|
4
4
|
declare type ListELement = {
|
|
5
5
|
value: string;
|
|
6
6
|
};
|
package/lib/index.d.ts
CHANGED
|
@@ -18,9 +18,9 @@ export * from './components/MultiMapView/HarmoniePresets';
|
|
|
18
18
|
export { MapViewConnect, MapView, MapViewLayer } from './components/MapView';
|
|
19
19
|
export { ReactMapView, ReactMapViewLayer } from './components/ReactMapView';
|
|
20
20
|
export { LegendConnect, Legend, LegendMapButtonConnect, } from './components/Legend';
|
|
21
|
-
export { ZoomControls, ZoomControlConnect } from './components/
|
|
21
|
+
export { ZoomControls, ZoomControlConnect } from './components/MapControls';
|
|
22
22
|
export { TimeSliderConnect } from './components/TimeSlider';
|
|
23
|
-
export { MapControls } from './components/
|
|
23
|
+
export { MapControls } from './components/MapControls';
|
|
24
24
|
export { mapActions, mapSelectors, mapTypes, mapConstants, mapUtils, layerReducer, uiActions, uiTypes, syncGroupActions, };
|
|
25
25
|
export { synchronizationGroupConfig as synchronizationGroupModuleConfig };
|
|
26
26
|
export * from './components/ComponentsLookUp';
|
|
@@ -38,5 +38,7 @@ export { MultiDimensionSelectMapButtonsConnect, MultiMapDimensionSelectConnect,
|
|
|
38
38
|
export * as publicLayers from './utils/publicLayers';
|
|
39
39
|
export * as publicServices from './utils/publicServices';
|
|
40
40
|
export * as testLayers from './utils/testLayers';
|
|
41
|
+
export * from './utils/jsonPresetFilter';
|
|
42
|
+
export * from './utils/types';
|
|
41
43
|
export * as defaultConfigurations from './utils/defaultConfigurations';
|
|
42
44
|
export * from './components/Providers/Providers';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AppStore } from '../../types/types';
|
|
2
1
|
import { AdvancedLayerStoreState } from './types';
|
|
3
2
|
/**
|
|
4
3
|
* Extracts the state of the advancedLayerStore from the store
|
|
@@ -7,4 +6,16 @@ import { AdvancedLayerStoreState } from './types';
|
|
|
7
6
|
* @param {object} store store: object - object from which the advancedLayerStore state will be extracted
|
|
8
7
|
* @returns {object} returnType: object - advancedLayerStore state part of the store
|
|
9
8
|
*/
|
|
10
|
-
export declare const getAdvancedLayerStore:
|
|
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,4 +1,22 @@
|
|
|
1
|
-
import { AppStore } from '../../types/types';
|
|
2
1
|
import { SynchronizationGroupState, SynchronizationSource } from './synchronizationGroups/types';
|
|
3
|
-
export declare const getSynchronizationGroupStore:
|
|
4
|
-
|
|
2
|
+
export declare const getSynchronizationGroupStore: ((state: {
|
|
3
|
+
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
4
|
+
syncronizationGroupStore?: SynchronizationGroupState;
|
|
5
|
+
ui?: import("../ui/types").UIStoreType;
|
|
6
|
+
webmap?: import("../mapStore/types").WebMapState;
|
|
7
|
+
services?: import("../mapStore/types").ServiceState;
|
|
8
|
+
layers?: import("../mapStore/types").LayerState;
|
|
9
|
+
layerSelect?: import("../layerSelect/types").LayerSelectStoreType;
|
|
10
|
+
}) => SynchronizationGroupState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => SynchronizationGroupState & {
|
|
11
|
+
clearCache: () => void;
|
|
12
|
+
}> & {
|
|
13
|
+
clearCache: () => void;
|
|
14
|
+
};
|
|
15
|
+
export declare const getTime: ((state: {
|
|
16
|
+
sources: import("./synchronizationGroups/types").SynchronizationSources;
|
|
17
|
+
groups: import("./synchronizationGroups/types").SynchronizationGroups;
|
|
18
|
+
}, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: SynchronizationSource) => string & {
|
|
19
|
+
clearCache: () => void;
|
|
20
|
+
}> & {
|
|
21
|
+
clearCache: () => void;
|
|
22
|
+
};
|
|
@@ -10,7 +10,19 @@ export declare const syncGroupStore: (store: AppStore) => SynchronizationGroupSt
|
|
|
10
10
|
* @param {object} store store: object - Store object
|
|
11
11
|
* @returns {object} returnType: SynchronizationGroupState
|
|
12
12
|
*/
|
|
13
|
-
export declare const getSynchronizationGroupState:
|
|
13
|
+
export declare const getSynchronizationGroupState: ((state: {
|
|
14
|
+
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
15
|
+
syncronizationGroupStore?: SynchronizationGroupState;
|
|
16
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
17
|
+
webmap?: import("../../mapStore/types").WebMapState;
|
|
18
|
+
services?: import("../../mapStore/types").ServiceState;
|
|
19
|
+
layers?: import("../../mapStore/types").LayerState;
|
|
20
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
21
|
+
}) => any[] | SynchronizationGroupState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => (any[] | SynchronizationGroupState) & {
|
|
22
|
+
clearCache: () => void;
|
|
23
|
+
}> & {
|
|
24
|
+
clearCache: () => void;
|
|
25
|
+
};
|
|
14
26
|
export declare const getSynchronizationGroup: (state: AppStore, id: string) => SynchronizationGroup;
|
|
15
27
|
export declare const getSynchronizationGroupSource: (state: AppStore, id: string) => SynchronizationSource;
|
|
16
28
|
export declare const getTargets: (state: AppStore, payload: GenericActionPayload, actionType: SyncType) => SetBboxSyncPayload[] | SetTimeSyncPayload[];
|
|
@@ -94,4 +94,5 @@ export interface SyncGroupRemoveGroup extends Action {
|
|
|
94
94
|
export interface SyncGroupClear extends Action {
|
|
95
95
|
type: typeof SYNCGROUPS_CLEAR;
|
|
96
96
|
}
|
|
97
|
+
export declare const SyncGroupTypeList: string[];
|
|
97
98
|
export declare type SynchronizationGroupActions = SyncGroupsAddSource | SyncGroupsRemoveSource | SyncGroupAddTarget | SyncGroupRemoveTarget | SyncGroupLinkTarget | SyncGroupAddGroup | SyncGroupRemoveGroup | SyncGroupClear;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LayerSelectActions, SetSearchFilterPayload, DisableActiveServicePayload, EnableActiveServicePayload, AddKeywordsAndActiveServicesPayload, LayerSelectServiceRemovedPayload, ToggleKeywordsPayload, EnableOnlyOneKeywordPayload } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Sets the given text to the searchFilter
|
|
4
4
|
*
|
|
@@ -7,9 +7,20 @@ import { AddNewKeywordsPayload, LayerSelectActions, SetSearchFilterPayload } fro
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const setSearchFilter: (payload: SetSearchFilterPayload) => LayerSelectActions;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Activates given service in the activeServices array
|
|
11
11
|
*
|
|
12
|
-
* Example:
|
|
13
|
-
* @param {string
|
|
12
|
+
* Example: enableActiveService({ serviceId: 'service-1' })
|
|
13
|
+
* @param {string} payload { serviceId: string }
|
|
14
14
|
*/
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const enableActiveService: (payload: EnableActiveServicePayload) => LayerSelectActions;
|
|
16
|
+
/**
|
|
17
|
+
* Disables given service in the activeServices array
|
|
18
|
+
*
|
|
19
|
+
* Example: disableActiveService({ serviceId: 'service-1' })
|
|
20
|
+
* @param {string} payload { serviceId: string }
|
|
21
|
+
*/
|
|
22
|
+
export declare const disableActiveService: (payload: DisableActiveServicePayload) => LayerSelectActions;
|
|
23
|
+
export declare const addKeywordsAndActiveServices: (payload: AddKeywordsAndActiveServicesPayload) => LayerSelectActions;
|
|
24
|
+
export declare const layerSelectServiceRemoved: (payload: LayerSelectServiceRemovedPayload) => LayerSelectActions;
|
|
25
|
+
export declare const toggleKeywords: (payload: ToggleKeywordsPayload) => LayerSelectActions;
|
|
26
|
+
export declare const enableOnlyOneKeyword: (payload: EnableOnlyOneKeywordPayload) => LayerSelectActions;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
export declare const LAYER_SELECT_SET_SEARCH_FILTER = "LAYER_SELECT_SET_SEARCH_FILTER";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const LAYER_SELECT_DISABLE_ACTIVE_SERVICE = "LAYER_SELECT_DISABLE_ACTIVE_SERVICE";
|
|
3
|
+
export declare const LAYER_SELECT_ENABLE_ACTIVE_SERVICE = "LAYER_SELECT_ENABLE_ACTIVE_SERVICE";
|
|
4
|
+
export declare const LAYER_SELECT_ADD_KEYWORDS_AND_ACTIVE_SERVICES = "LAYER_SELECT_ADD_KEYWORDS_AND_ACTIVE_SERVICES";
|
|
5
|
+
export declare const LAYER_SELECT_SERVICE_REMOVED = "LAYER_SELECT_SERVICE_REMOVED";
|
|
6
|
+
export declare const LAYER_SELECT_TOGGLE_KEYWORDS = "LAYER_SELECT_TOGGLE_KEYWORDS";
|
|
7
|
+
export declare const LAYER_SELECT_ENABLE_ONLY_ONE_KEYWORD = "LAYER_SELECT_ENABLE_ONLY_ONE_KEYWORD";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
2
|
import { ServiceActions } from '../mapStore/types';
|
|
3
3
|
export declare function newServiceAddedSaga(capturedAction: ServiceActions): SagaIterator;
|
|
4
|
+
export declare function layerSelectServiceRemovedSaga(capturedAction: ServiceActions): SagaIterator;
|
|
4
5
|
export declare function rootSaga(): SagaIterator;
|
|
5
6
|
export default rootSaga;
|
|
@@ -1,4 +1,131 @@
|
|
|
1
1
|
import { AppStore } from '../../types/types';
|
|
2
|
-
import { LayerSelectStoreType } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { LayerSelectStoreType, ActiveServices, KeywordObject } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Returns search filter string
|
|
5
|
+
*
|
|
6
|
+
* Example getSearchFilter(store);
|
|
7
|
+
* @param {object} store store: object - store object
|
|
8
|
+
* @returns {array} returnType: string
|
|
9
|
+
*/
|
|
10
|
+
export declare const getSearchFilter: ((state: {
|
|
11
|
+
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
12
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
13
|
+
ui?: import("../ui/types").UIStoreType;
|
|
14
|
+
webmap?: import("../mapStore/types").WebMapState;
|
|
15
|
+
services?: import("../mapStore/types").ServiceState;
|
|
16
|
+
layers?: import("../mapStore/types").LayerState;
|
|
17
|
+
layerSelect?: LayerSelectStoreType;
|
|
18
|
+
}) => string) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => string & {
|
|
19
|
+
clearCache: () => void;
|
|
20
|
+
}> & {
|
|
21
|
+
clearCache: () => void;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Returns active services array
|
|
25
|
+
*
|
|
26
|
+
* Example getActiveServices(store);
|
|
27
|
+
* @param {object} store store: object - store object
|
|
28
|
+
* @returns {object} returnType: object of active services
|
|
29
|
+
*/
|
|
30
|
+
export declare const getActiveServices: ((state: {
|
|
31
|
+
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
32
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
33
|
+
ui?: import("../ui/types").UIStoreType;
|
|
34
|
+
webmap?: import("../mapStore/types").WebMapState;
|
|
35
|
+
services?: import("../mapStore/types").ServiceState;
|
|
36
|
+
layers?: import("../mapStore/types").LayerState;
|
|
37
|
+
layerSelect?: LayerSelectStoreType;
|
|
38
|
+
}) => ActiveServices) & import("reselect").OutputSelectorFields<((args_0: LayerSelectStoreType) => ActiveServices) & {
|
|
39
|
+
clearCache: () => void;
|
|
40
|
+
}> & {
|
|
41
|
+
clearCache: () => void;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Returns all ids of enabled services
|
|
45
|
+
*
|
|
46
|
+
* Example getEnabledServiceIds(store);
|
|
47
|
+
* @param {object} store store: object - store object
|
|
48
|
+
* @returns {array} returnType: array of service ids that are enabled
|
|
49
|
+
*/
|
|
50
|
+
export declare const getEnabledServiceIds: ((state: {
|
|
51
|
+
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
52
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
53
|
+
ui?: import("../ui/types").UIStoreType;
|
|
54
|
+
webmap?: import("../mapStore/types").WebMapState;
|
|
55
|
+
services?: import("../mapStore/types").ServiceState;
|
|
56
|
+
layers?: import("../mapStore/types").LayerState;
|
|
57
|
+
layerSelect?: LayerSelectStoreType;
|
|
58
|
+
}) => string[]) & import("reselect").OutputSelectorFields<((args_0: LayerSelectStoreType) => string[]) & {
|
|
59
|
+
clearCache: () => void;
|
|
60
|
+
}> & {
|
|
61
|
+
clearCache: () => void;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Returns all ids of checked keywords
|
|
65
|
+
*
|
|
66
|
+
* Example getCheckedKeywordIds(store);
|
|
67
|
+
* @param {object} store store: object - store object
|
|
68
|
+
* @returns {array} returnType: array of keyword ids that are checked
|
|
69
|
+
*/
|
|
70
|
+
export declare const getCheckedKeywordIds: ((state: {
|
|
71
|
+
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
72
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
73
|
+
ui?: import("../ui/types").UIStoreType;
|
|
74
|
+
webmap?: import("../mapStore/types").WebMapState;
|
|
75
|
+
services?: import("../mapStore/types").ServiceState;
|
|
76
|
+
layers?: import("../mapStore/types").LayerState;
|
|
77
|
+
layerSelect?: LayerSelectStoreType;
|
|
78
|
+
}) => string[]) & import("reselect").OutputSelectorFields<((args_0: LayerSelectStoreType) => string[]) & {
|
|
79
|
+
clearCache: () => void;
|
|
80
|
+
}> & {
|
|
81
|
+
clearCache: () => void;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Returns ids of all keywords
|
|
85
|
+
*
|
|
86
|
+
* Example getAllKeywordIds(store);
|
|
87
|
+
* @param {object} store store: object - store object
|
|
88
|
+
* @returns {array} returnType: array of all keyword ids
|
|
89
|
+
*/
|
|
90
|
+
export declare const getAllKeywordIds: ((state: {
|
|
91
|
+
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
92
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
93
|
+
ui?: import("../ui/types").UIStoreType;
|
|
94
|
+
webmap?: import("../mapStore/types").WebMapState;
|
|
95
|
+
services?: import("../mapStore/types").ServiceState;
|
|
96
|
+
layers?: import("../mapStore/types").LayerState;
|
|
97
|
+
layerSelect?: LayerSelectStoreType;
|
|
98
|
+
}) => string[]) & import("reselect").OutputSelectorFields<((args_0: LayerSelectStoreType) => string[]) & {
|
|
99
|
+
clearCache: () => void;
|
|
100
|
+
}> & {
|
|
101
|
+
clearCache: () => void;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Returns if all keywords are checked
|
|
105
|
+
*
|
|
106
|
+
* Example isAllKeywordsChecked(store);
|
|
107
|
+
* @param {object} store store: object - store object
|
|
108
|
+
* @returns {array} returnType: boolean if all keywords are checked
|
|
109
|
+
*/
|
|
110
|
+
export declare const isAllKeywordsChecked: ((state: {
|
|
111
|
+
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
112
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
113
|
+
ui?: import("../ui/types").UIStoreType;
|
|
114
|
+
webmap?: import("../mapStore/types").WebMapState;
|
|
115
|
+
services?: import("../mapStore/types").ServiceState;
|
|
116
|
+
layers?: import("../mapStore/types").LayerState;
|
|
117
|
+
layerSelect?: LayerSelectStoreType;
|
|
118
|
+
}) => boolean) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => boolean & {
|
|
119
|
+
clearCache: () => void;
|
|
120
|
+
}> & {
|
|
121
|
+
clearCache: () => void;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Gets a KeywordObject by its id
|
|
125
|
+
*
|
|
126
|
+
* Example: keywordObject = getKeywordObjectById(store, 'keywordId')
|
|
127
|
+
* @param {object} store object from which the keyword state will be extracted
|
|
128
|
+
* @param {string} keywordId Id of the keyword
|
|
129
|
+
* @returns {object} object containing keyword information (id, amount, amountVisible, checked)
|
|
130
|
+
*/
|
|
131
|
+
export declare const getKeywordObjectById: (store: AppStore, keywordId: string) => KeywordObject;
|
|
@@ -1,22 +1,41 @@
|
|
|
1
1
|
import { Action } from 'redux';
|
|
2
|
-
import {
|
|
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
|
+
export interface ActiveServiceObject {
|
|
4
|
+
id?: string;
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
keywordsPerService?: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface ActiveServices {
|
|
9
|
+
[key: string]: ActiveServiceObject;
|
|
10
|
+
}
|
|
11
|
+
export interface ActiveServiceType {
|
|
12
|
+
byId: ActiveServices;
|
|
13
|
+
allIds: string[];
|
|
14
|
+
}
|
|
3
15
|
export interface KeywordObject {
|
|
4
|
-
id
|
|
5
|
-
amount
|
|
6
|
-
amountVisible
|
|
7
|
-
checked
|
|
16
|
+
id?: string;
|
|
17
|
+
amount?: number;
|
|
18
|
+
amountVisible?: number;
|
|
19
|
+
checked?: boolean;
|
|
8
20
|
}
|
|
9
|
-
export interface
|
|
10
|
-
|
|
11
|
-
keywords: KeywordObject[];
|
|
12
|
-
addedServices: string[];
|
|
21
|
+
export interface Keywords {
|
|
22
|
+
[key: string]: KeywordObject;
|
|
13
23
|
}
|
|
14
|
-
export interface
|
|
15
|
-
|
|
24
|
+
export interface KeywordType {
|
|
25
|
+
byId: Keywords;
|
|
26
|
+
allIds: string[];
|
|
16
27
|
}
|
|
17
28
|
export interface LayerSelectModuleState {
|
|
18
29
|
layerSelect?: LayerSelectStoreType;
|
|
19
30
|
}
|
|
31
|
+
export interface LayerSelectStoreType {
|
|
32
|
+
filters: FiltersType;
|
|
33
|
+
}
|
|
34
|
+
export interface FiltersType {
|
|
35
|
+
searchFilter: string;
|
|
36
|
+
activeServices: ActiveServiceType;
|
|
37
|
+
keywords: KeywordType;
|
|
38
|
+
}
|
|
20
39
|
export interface SetSearchFilterPayload {
|
|
21
40
|
filterText: string;
|
|
22
41
|
}
|
|
@@ -24,12 +43,49 @@ export interface SetSearchFilter extends Action {
|
|
|
24
43
|
type: typeof LAYER_SELECT_SET_SEARCH_FILTER;
|
|
25
44
|
payload: SetSearchFilterPayload;
|
|
26
45
|
}
|
|
27
|
-
export interface
|
|
28
|
-
|
|
46
|
+
export interface EnableActiveServicePayload {
|
|
47
|
+
serviceUrl: string;
|
|
29
48
|
keywords: string[];
|
|
30
49
|
}
|
|
31
|
-
export interface
|
|
32
|
-
type: typeof
|
|
33
|
-
payload:
|
|
50
|
+
export interface EnableActiveService extends Action {
|
|
51
|
+
type: typeof LAYER_SELECT_ENABLE_ACTIVE_SERVICE;
|
|
52
|
+
payload: EnableActiveServicePayload;
|
|
53
|
+
}
|
|
54
|
+
export interface DisableActiveServicePayload {
|
|
55
|
+
serviceUrl: string;
|
|
56
|
+
keywords: string[];
|
|
57
|
+
}
|
|
58
|
+
export interface DisableActiveService extends Action {
|
|
59
|
+
type: typeof LAYER_SELECT_DISABLE_ACTIVE_SERVICE;
|
|
60
|
+
payload: DisableActiveServicePayload;
|
|
61
|
+
}
|
|
62
|
+
export interface AddKeywordsAndActiveServicesPayload {
|
|
63
|
+
serviceUrl: string;
|
|
64
|
+
keywords: string[];
|
|
65
|
+
}
|
|
66
|
+
export interface AddKeywordsAndActiveServices extends Action {
|
|
67
|
+
type: typeof LAYER_SELECT_ADD_KEYWORDS_AND_ACTIVE_SERVICES;
|
|
68
|
+
payload: AddKeywordsAndActiveServicesPayload;
|
|
69
|
+
}
|
|
70
|
+
export interface LayerSelectServiceRemovedPayload {
|
|
71
|
+
serviceUrl: string;
|
|
72
|
+
}
|
|
73
|
+
export interface LayerSelectServiceRemoved extends Action {
|
|
74
|
+
type: typeof LAYER_SELECT_SERVICE_REMOVED;
|
|
75
|
+
payload: LayerSelectServiceRemovedPayload;
|
|
76
|
+
}
|
|
77
|
+
export interface ToggleKeywordsPayload {
|
|
78
|
+
keywords: string[];
|
|
79
|
+
}
|
|
80
|
+
export interface ToggleKeywords extends Action {
|
|
81
|
+
type: typeof LAYER_SELECT_TOGGLE_KEYWORDS;
|
|
82
|
+
payload: ToggleKeywordsPayload;
|
|
83
|
+
}
|
|
84
|
+
export interface EnableOnlyOneKeywordPayload {
|
|
85
|
+
keyword: string;
|
|
86
|
+
}
|
|
87
|
+
export interface EnableOnlyOneKeyword extends Action {
|
|
88
|
+
type: typeof LAYER_SELECT_ENABLE_ONLY_ONE_KEYWORD;
|
|
89
|
+
payload: EnableOnlyOneKeywordPayload;
|
|
34
90
|
}
|
|
35
|
-
export declare type LayerSelectActions = SetSearchFilter |
|
|
91
|
+
export declare type LayerSelectActions = SetSearchFilter | AddKeywordsAndActiveServices | EnableActiveService | LayerSelectServiceRemoved | DisableActiveService | ToggleKeywords | EnableOnlyOneKeyword;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SetLayerOpacityPayload, SetLayerEnabledPayload, SetLayerDimensionPayload, SetLayerNamePayload, SetLayerStylePayload, LayerActions, AddLayerPayload, DeleteLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, ErrorLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetLayerDimensionsPayload,
|
|
1
|
+
import { SetLayerOpacityPayload, SetLayerEnabledPayload, SetLayerDimensionPayload, SetLayerNamePayload, SetLayerStylePayload, LayerActions, AddLayerPayload, DeleteLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, ErrorLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetLayerDimensionsPayload, UpdateLayerInfoPayload } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Set the layers for a map. Erases all previous layers.
|
|
4
4
|
* The following action types are triggered after the getCapabilities are parsed:
|
|
@@ -72,13 +72,6 @@ export declare const layerChangeDimension: (payload: SetLayerDimensionPayload) =
|
|
|
72
72
|
* @param {object} payload Object with layerId: string, dimensions: [Dimension], origin?: string
|
|
73
73
|
*/
|
|
74
74
|
export declare const layerSetDimensions: (payload: SetLayerDimensionsPayload) => LayerActions;
|
|
75
|
-
/**
|
|
76
|
-
* Action layerSetStyles is used automatically after calling the setLayers action. Contents is based on WMS GetCapabilities
|
|
77
|
-
*
|
|
78
|
-
* Example: layerSetStyles({service: someService, name: 'layerName', styles: styleArray})
|
|
79
|
-
* @param {object} payload consisting of service: string, name: string, styles: Style[]
|
|
80
|
-
*/
|
|
81
|
-
export declare const layerSetStyles: (payload: SetLayerStylesPayload) => LayerActions;
|
|
82
75
|
/**
|
|
83
76
|
* Changes the name of the layer
|
|
84
77
|
*
|
|
@@ -131,3 +124,4 @@ export declare const addAvailableBaseLayer: (payload: AddAvailableBaseLayerPaylo
|
|
|
131
124
|
* @param {object} payload Object with a layer
|
|
132
125
|
*/
|
|
133
126
|
export declare const addAvailableBaseLayers: (payload: AddAvailableBaseLayersPayload) => LayerActions;
|
|
127
|
+
export declare const onUpdateLayerInformation: (payload: UpdateLayerInfoPayload) => LayerActions;
|
|
@@ -3,7 +3,6 @@ export declare const WEBMAP_LAYER_CHANGE_NAME = "WEBMAP_LAYER_CHANGE_NAME";
|
|
|
3
3
|
export declare const WEBMAP_LAYER_CHANGE_STYLE = "WEBMAP_LAYER_CHANGE_STYLE";
|
|
4
4
|
export declare const WEBMAP_LAYER_CHANGE_DIMENSION = "WEBMAP_LAYER_CHANGE_DIMENSION";
|
|
5
5
|
export declare const WEBMAP_LAYER_SET_DIMENSIONS = "WEBMAP_LAYER_SET_DIMENSIONS";
|
|
6
|
-
export declare const WEBMAP_LAYER_SET_STYLES = "WEBMAP_LAYER_SET_STYLES";
|
|
7
6
|
export declare const WEBMAP_LAYER_CHANGE_ENABLED = "WEBMAP_LAYER_CHANGE_ENABLED";
|
|
8
7
|
export declare const WEBMAP_LAYER_DELETE = "WEBMAP_LAYER_DELETE";
|
|
9
8
|
export declare const WEBMAP_LAYER_ERROR = "WEBMAP_LAYER_ERROR";
|
|
@@ -14,3 +13,4 @@ export declare const WEBMAP_SET_BASELAYERS = "WEBMAP_SET_BASELAYERS";
|
|
|
14
13
|
export declare const WEBMAP_ADD_BASELAYER = "WEBMAP_ADD_BASELAYER";
|
|
15
14
|
export declare const WEBMAP_ADD_AVAILABLE_BASELAYER = "WEBMAP_ADD_AVAILABLE_BASELAYER";
|
|
16
15
|
export declare const WEBMAP_ADD_AVAILABLE_BASELAYERS = "WEBMAP_ADD_AVAILABLE_BASELAYERS";
|
|
16
|
+
export declare const WEBMAP_UPDATE_LAYER_INFO = "WEBMAP_UPDATE_LAYER_INFO";
|