@opengeoweb/core 2.1.4 → 2.3.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 +2864 -1816
- package/index.umd.js +2900 -1818
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +3 -3
- package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts +2 -0
- package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +3 -0
- package/lib/components/CustomSwitch/CustomSwitch.stories.d.ts +4 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerManagerButton.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButton.d.ts +0 -2
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/styles.d.ts +1 -0
- 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/MapControlButton.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/MapControls.spec.d.ts → LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.spec.d.ts} +0 -0
- package/lib/components/{Mapcontrols/ZoomControls.spec.d.ts → LayerManager/LayerSelect/KeywordFilterResults/keywordFilterResultsConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.d.ts +18 -0
- package/lib/components/{Mapcontrols/ZoomControlsConnect.spec.d.ts → LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +12 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.d.ts +1 -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/ServiceList.d.ts +2 -2
- 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/{Mapcontrols → MapControls}/MapControlButton.d.ts +2 -2
- 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.DisableMapPin.stories.d.ts +5 -0
- package/lib/components/MapView/MapViewConnect.SelectorTest.stories.d.ts +2 -0
- package/lib/components/MapView/MapViewConnect.stories.d.ts +2 -0
- 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 +2 -1
- package/lib/components/MultiMapView/storyUtils/mapPresets.d.ts +81 -0
- package/lib/components/ReactMapView/types.d.ts +1 -0
- package/lib/components/SyncGroups/selector.d.ts +13 -2
- package/lib/components/TooltipSelect/TooltipSelect.d.ts +1 -0
- package/lib/index.d.ts +8 -3
- 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 +5 -9
- package/lib/store/layerSelect/constants.d.ts +4 -2
- package/lib/store/layerSelect/sagas.d.ts +2 -2
- package/lib/store/layerSelect/selectors.d.ts +106 -9
- package/lib/store/layerSelect/types.d.ts +60 -30
- package/lib/store/mapStore/layers/selectors.d.ts +222 -18
- package/lib/store/mapStore/map/actions.d.ts +8 -1
- package/lib/store/mapStore/map/constants.d.ts +1 -0
- package/lib/store/mapStore/map/selectors.d.ts +481 -54
- package/lib/store/mapStore/map/types.d.ts +11 -2
- 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 +107 -8
- package/lib/store/mapStore/service/types.d.ts +10 -3
- package/lib/store/mapStore/utils/helpers.d.ts +0 -1
- package/lib/store/ui/selectors.d.ts +67 -7
- package/lib/store/ui/types.d.ts +1 -1
- package/lib/store/utils.d.ts +6 -0
- package/lib/utils/defaultConfigurations.d.ts +3 -21
- package/lib/utils/defaultTestSettings.d.ts +7 -7
- 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 +43 -0
- package/package.json +6 -6
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuItemButton.d.ts +0 -8
- package/lib/components/ToggleIconButton/ToggleIconButton.d.ts +0 -12
- package/lib/components/ToggleIconButton/ToggleIconButton.stories.d.ts +0 -13
- package/lib/components/ToggleIconButton/index.d.ts +0 -1
|
@@ -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 { LayerSelectActions, SetSearchFilterPayload,
|
|
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
|
*
|
|
@@ -6,13 +6,6 @@ import { LayerSelectActions, SetSearchFilterPayload, SetActiveServicesPayload, A
|
|
|
6
6
|
* @param {string} payload { filterText: string }
|
|
7
7
|
*/
|
|
8
8
|
export declare const setSearchFilter: (payload: SetSearchFilterPayload) => LayerSelectActions;
|
|
9
|
-
/**
|
|
10
|
-
* Sets the given array of string as active services
|
|
11
|
-
*
|
|
12
|
-
* Example: setActiveServices({ activeServices: ['service-1', 'service-2'] })
|
|
13
|
-
* @param {string} payload { activeServices: string[] }
|
|
14
|
-
*/
|
|
15
|
-
export declare const setActiveServices: (payload: SetActiveServicesPayload) => LayerSelectActions;
|
|
16
9
|
/**
|
|
17
10
|
* Activates given service in the activeServices array
|
|
18
11
|
*
|
|
@@ -27,4 +20,7 @@ export declare const enableActiveService: (payload: EnableActiveServicePayload)
|
|
|
27
20
|
* @param {string} payload { serviceId: string }
|
|
28
21
|
*/
|
|
29
22
|
export declare const disableActiveService: (payload: DisableActiveServicePayload) => LayerSelectActions;
|
|
30
|
-
export declare const
|
|
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,5 +1,7 @@
|
|
|
1
1
|
export declare const LAYER_SELECT_SET_SEARCH_FILTER = "LAYER_SELECT_SET_SEARCH_FILTER";
|
|
2
|
-
export declare const LAYER_SELECT_SET_ACTIVE_SERVICES = "LAYER_SELECT_SET_ACTIVE_SERVICES";
|
|
3
2
|
export declare const LAYER_SELECT_DISABLE_ACTIVE_SERVICE = "LAYER_SELECT_DISABLE_ACTIVE_SERVICE";
|
|
4
3
|
export declare const LAYER_SELECT_ENABLE_ACTIVE_SERVICE = "LAYER_SELECT_ENABLE_ACTIVE_SERVICE";
|
|
5
|
-
export declare const
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
2
|
import { ServiceActions } from '../mapStore/types';
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function
|
|
3
|
+
export declare function newServiceAddedSaga(capturedAction: ServiceActions): SagaIterator;
|
|
4
|
+
export declare function layerSelectServiceRemovedSaga(capturedAction: ServiceActions): SagaIterator;
|
|
5
5
|
export declare function rootSaga(): SagaIterator;
|
|
6
6
|
export default rootSaga;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppStore } from '../../types/types';
|
|
2
|
-
import {
|
|
2
|
+
import { LayerSelectStoreType, ActiveServices, KeywordObject } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Returns search filter string
|
|
5
5
|
*
|
|
@@ -7,15 +7,39 @@ import { KeywordObject, LayerSelectStoreType, ServiceObject } from './types';
|
|
|
7
7
|
* @param {object} store store: object - store object
|
|
8
8
|
* @returns {array} returnType: string
|
|
9
9
|
*/
|
|
10
|
-
export declare const getSearchFilter:
|
|
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
|
+
};
|
|
11
23
|
/**
|
|
12
24
|
* Returns active services array
|
|
13
25
|
*
|
|
14
26
|
* Example getActiveServices(store);
|
|
15
27
|
* @param {object} store store: object - store object
|
|
16
|
-
* @returns {
|
|
28
|
+
* @returns {object} returnType: object of active services
|
|
17
29
|
*/
|
|
18
|
-
export declare const getActiveServices:
|
|
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
|
+
};
|
|
19
43
|
/**
|
|
20
44
|
* Returns all ids of enabled services
|
|
21
45
|
*
|
|
@@ -23,12 +47,85 @@ export declare const getActiveServices: import("reselect").OutputSelector<AppSto
|
|
|
23
47
|
* @param {object} store store: object - store object
|
|
24
48
|
* @returns {array} returnType: array of service ids that are enabled
|
|
25
49
|
*/
|
|
26
|
-
export declare const getEnabledServiceIds:
|
|
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
|
+
};
|
|
27
63
|
/**
|
|
28
|
-
* Returns all keywords
|
|
64
|
+
* Returns all ids of checked keywords
|
|
29
65
|
*
|
|
30
|
-
* Example
|
|
66
|
+
* Example getCheckedKeywordIds(store);
|
|
31
67
|
* @param {object} store store: object - store object
|
|
32
|
-
* @returns {array} returnType: array of keyword
|
|
68
|
+
* @returns {array} returnType: array of keyword ids that are checked
|
|
33
69
|
*/
|
|
34
|
-
export declare const
|
|
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,27 +1,41 @@
|
|
|
1
1
|
import { Action } from 'redux';
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
4
|
-
id
|
|
5
|
-
enabled
|
|
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[];
|
|
6
7
|
}
|
|
7
|
-
export interface
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
export interface ActiveServices {
|
|
9
|
+
[key: string]: ActiveServiceObject;
|
|
10
|
+
}
|
|
11
|
+
export interface ActiveServiceType {
|
|
12
|
+
byId: ActiveServices;
|
|
13
|
+
allIds: string[];
|
|
12
14
|
}
|
|
13
15
|
export interface KeywordObject {
|
|
14
|
-
id
|
|
15
|
-
amount
|
|
16
|
-
amountVisible
|
|
17
|
-
checked
|
|
16
|
+
id?: string;
|
|
17
|
+
amount?: number;
|
|
18
|
+
amountVisible?: number;
|
|
19
|
+
checked?: boolean;
|
|
18
20
|
}
|
|
19
|
-
export interface
|
|
20
|
-
|
|
21
|
+
export interface Keywords {
|
|
22
|
+
[key: string]: KeywordObject;
|
|
23
|
+
}
|
|
24
|
+
export interface KeywordType {
|
|
25
|
+
byId: Keywords;
|
|
26
|
+
allIds: string[];
|
|
21
27
|
}
|
|
22
28
|
export interface LayerSelectModuleState {
|
|
23
29
|
layerSelect?: LayerSelectStoreType;
|
|
24
30
|
}
|
|
31
|
+
export interface LayerSelectStoreType {
|
|
32
|
+
filters: FiltersType;
|
|
33
|
+
}
|
|
34
|
+
export interface FiltersType {
|
|
35
|
+
searchFilter: string;
|
|
36
|
+
activeServices: ActiveServiceType;
|
|
37
|
+
keywords: KeywordType;
|
|
38
|
+
}
|
|
25
39
|
export interface SetSearchFilterPayload {
|
|
26
40
|
filterText: string;
|
|
27
41
|
}
|
|
@@ -29,33 +43,49 @@ export interface SetSearchFilter extends Action {
|
|
|
29
43
|
type: typeof LAYER_SELECT_SET_SEARCH_FILTER;
|
|
30
44
|
payload: SetSearchFilterPayload;
|
|
31
45
|
}
|
|
32
|
-
export interface SetActiveServicesPayload {
|
|
33
|
-
activeServices: string[];
|
|
34
|
-
}
|
|
35
|
-
export interface SetActiveServices extends Action {
|
|
36
|
-
type: typeof LAYER_SELECT_SET_ACTIVE_SERVICES;
|
|
37
|
-
payload: SetActiveServicesPayload;
|
|
38
|
-
}
|
|
39
46
|
export interface EnableActiveServicePayload {
|
|
40
|
-
|
|
47
|
+
serviceUrl: string;
|
|
48
|
+
keywords: string[];
|
|
41
49
|
}
|
|
42
50
|
export interface EnableActiveService extends Action {
|
|
43
51
|
type: typeof LAYER_SELECT_ENABLE_ACTIVE_SERVICE;
|
|
44
52
|
payload: EnableActiveServicePayload;
|
|
45
53
|
}
|
|
46
54
|
export interface DisableActiveServicePayload {
|
|
47
|
-
|
|
55
|
+
serviceUrl: string;
|
|
56
|
+
keywords: string[];
|
|
48
57
|
}
|
|
49
58
|
export interface DisableActiveService extends Action {
|
|
50
59
|
type: typeof LAYER_SELECT_DISABLE_ACTIVE_SERVICE;
|
|
51
60
|
payload: DisableActiveServicePayload;
|
|
52
61
|
}
|
|
53
|
-
export interface
|
|
54
|
-
|
|
62
|
+
export interface AddKeywordsAndActiveServicesPayload {
|
|
63
|
+
serviceUrl: string;
|
|
55
64
|
keywords: string[];
|
|
56
65
|
}
|
|
57
|
-
export interface
|
|
58
|
-
type: typeof
|
|
59
|
-
payload:
|
|
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;
|
|
60
90
|
}
|
|
61
|
-
export declare type LayerSelectActions = SetSearchFilter |
|
|
91
|
+
export declare type LayerSelectActions = SetSearchFilter | AddKeywordsAndActiveServices | EnableActiveService | LayerSelectServiceRemoved | DisableActiveService | ToggleKeywords | EnableOnlyOneKeyword;
|