@opengeoweb/core 2.1.4 → 2.2.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 +358 -305
- package/index.umd.js +361 -301
- package/lib/components/CustomSwitch/CustomSwitch.stories.d.ts +4 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +2 -1
- package/lib/components/{Mapcontrols/MapControlButton.spec.d.ts → LayerManager/LayerSelect/KeywordFilterResults/keywordFilterResultsConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +3 -0
- package/lib/components/{Mapcontrols/MapControls.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/{Mapcontrols → MapControls}/MapControlButton.d.ts +0 -0
- package/lib/components/{Mapcontrols/ZoomControls.spec.d.ts → MapControls/MapControlButton.spec.d.ts} +0 -0
- package/lib/components/{Mapcontrols → MapControls}/MapControls.d.ts +0 -0
- package/lib/components/{Mapcontrols/ZoomControlsConnect.spec.d.ts → MapControls/MapControls.spec.d.ts} +0 -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.SelectorTest.stories.d.ts +2 -0
- package/lib/components/MapView/MapViewConnect.stories.d.ts +1 -0
- package/lib/components/SyncGroups/selector.d.ts +13 -2
- package/lib/index.d.ts +2 -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/layerSelect/actions.d.ts +3 -9
- package/lib/store/layerSelect/constants.d.ts +2 -2
- package/lib/store/layerSelect/sagas.d.ts +1 -2
- package/lib/store/layerSelect/selectors.d.ts +53 -6
- package/lib/store/layerSelect/types.d.ts +35 -26
- package/lib/store/mapStore/layers/selectors.d.ts +208 -16
- package/lib/store/mapStore/map/selectors.d.ts +427 -33
- package/lib/store/mapStore/service/selectors.d.ts +78 -7
- package/lib/store/mapStore/service/types.d.ts +1 -1
- package/lib/store/mapStore/utils/helpers.d.ts +0 -1
- package/lib/store/ui/selectors.d.ts +65 -5
- package/lib/utils/defaultTestSettings.d.ts +7 -7
- package/lib/utils/getCapabilities.d.ts +2 -2
- package/package.json +6 -6
package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { KeywordObject } from '../../../../store/layerSelect/types';
|
|
3
3
|
import { Source } from '../../../../store/ui/types';
|
|
4
4
|
interface KeywordFilterResultsProps {
|
|
5
|
-
|
|
5
|
+
keywordObjects: KeywordObject[];
|
|
6
6
|
mapId: string;
|
|
7
7
|
bounds?: string;
|
|
8
8
|
showTitle?: boolean;
|
|
@@ -11,6 +11,7 @@ interface KeywordFilterResultsProps {
|
|
|
11
11
|
isOpen: boolean;
|
|
12
12
|
order?: number;
|
|
13
13
|
source?: Source;
|
|
14
|
+
updateKeywords: (keywords: KeywordObject[]) => void;
|
|
14
15
|
}
|
|
15
16
|
declare const KeywordFilterResults: React.FC<KeywordFilterResultsProps>;
|
|
16
17
|
export default KeywordFilterResults;
|
|
File without changes
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Services } from '../../../../store/mapStore/service/types';
|
|
3
|
+
import { KeywordObject } from '../../../../store/layerSelect/types';
|
|
3
4
|
interface LayerListProps {
|
|
4
5
|
services: Services;
|
|
5
6
|
serviceIds: string[];
|
|
6
7
|
layerSelectHeight: number;
|
|
7
8
|
searchString: string;
|
|
9
|
+
keywords: KeywordObject[];
|
|
8
10
|
}
|
|
9
11
|
declare const LayerList: React.FC<LayerListProps>;
|
|
10
12
|
export default LayerList;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ServiceLayer, Services } from '../../../../store/mapStore/service/types';
|
|
2
|
+
import { KeywordObject } from '../../../../store/layerSelect/types';
|
|
3
|
+
export declare const filterLayersFromService: (serviceId: string, services: Services, keywords: KeywordObject[], searchString: string) => ServiceLayer[];
|
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Service } from '../../../../store/mapStore/types';
|
|
3
|
-
import {
|
|
3
|
+
import { ActiveServiceObject } from '../../../../store/layerSelect/types';
|
|
4
4
|
interface ServiceListProps {
|
|
5
5
|
layerSelectWidth?: number;
|
|
6
6
|
services: Service[];
|
|
7
|
-
activeServices:
|
|
7
|
+
activeServices: ActiveServiceObject;
|
|
8
8
|
}
|
|
9
9
|
declare const ServiceList: React.FC<ServiceListProps>;
|
|
10
10
|
export default ServiceList;
|
|
File without changes
|
package/lib/components/{Mapcontrols/ZoomControls.spec.d.ts → MapControls/MapControlButton.spec.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -9,6 +9,7 @@ export * from './MapViewConnect.SetBaseLayers.stories';
|
|
|
9
9
|
export * from './MapViewConnect.ToggleControls.stories';
|
|
10
10
|
export * from './MapViewConnect.FeatureLayers.stories';
|
|
11
11
|
export * from './MapViewConnect.MapPin.stories';
|
|
12
|
+
export * from './MapViewConnect.SelectorTest.stories';
|
|
12
13
|
declare const _default: {
|
|
13
14
|
title: string;
|
|
14
15
|
component: import("react").FC<import("./MapViewConnect").MapViewConnectProps>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AppStore } from '../../types/types';
|
|
2
1
|
import { SynchronizationGroupState, SyncType } from '../../store/generic/synchronizationGroups/types';
|
|
3
2
|
import { SyncGroupViewState } from './types';
|
|
4
3
|
export declare const groupTypes: {
|
|
@@ -7,4 +6,16 @@ export declare const groupTypes: {
|
|
|
7
6
|
groupType: string;
|
|
8
7
|
}[];
|
|
9
8
|
export declare const createSyncGroupViewState: (syncState: SynchronizationGroupState) => SyncGroupViewState;
|
|
10
|
-
export declare const createSyncGroupViewStateSelector:
|
|
9
|
+
export declare const createSyncGroupViewStateSelector: ((state: {
|
|
10
|
+
advancedLayerStore?: import("../../store/advancedLayerStore/types").AdvancedLayerStoreState;
|
|
11
|
+
syncronizationGroupStore?: SynchronizationGroupState;
|
|
12
|
+
ui?: import("../../store/ui/types").UIStoreType;
|
|
13
|
+
webmap?: import("../../store/mapStore/types").WebMapState;
|
|
14
|
+
services?: import("../../store/mapStore/types").ServiceState;
|
|
15
|
+
layers?: import("../../store/mapStore/types").LayerState;
|
|
16
|
+
layerSelect?: import("../../store/layerSelect/types").LayerSelectStoreType;
|
|
17
|
+
}) => SyncGroupViewState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => SyncGroupViewState & {
|
|
18
|
+
clearCache: () => void;
|
|
19
|
+
}> & {
|
|
20
|
+
clearCache: () => void;
|
|
21
|
+
};
|
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';
|
|
@@ -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[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LayerSelectActions, SetSearchFilterPayload,
|
|
1
|
+
import { LayerSelectActions, SetSearchFilterPayload, DisableActiveServicePayload, EnableActiveServicePayload, AddKeywordsAndActiveServicesPayload, UpdateKeywordsPayload } 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,5 @@ 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 updateKeywords: (payload: UpdateKeywordsPayload) => LayerSelectActions;
|
|
@@ -1,5 +1,5 @@
|
|
|
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_UPDATE_KEYWORDS = "LAYER_SELECT_UPDATE_KEYWORDS";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
2
|
import { ServiceActions } from '../mapStore/types';
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function newServiceAddedSagaUpdateActiveServices(): SagaIterator;
|
|
3
|
+
export declare function newServiceAddedSaga(capturedAction: ServiceActions): SagaIterator;
|
|
5
4
|
export declare function rootSaga(): SagaIterator;
|
|
6
5
|
export default rootSaga;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { KeywordObject, LayerSelectStoreType, ServiceObject } from './types';
|
|
1
|
+
import { KeywordObject, LayerSelectStoreType, ActiveServices } from './types';
|
|
3
2
|
/**
|
|
4
3
|
* Returns search filter string
|
|
5
4
|
*
|
|
@@ -7,7 +6,19 @@ import { KeywordObject, LayerSelectStoreType, ServiceObject } from './types';
|
|
|
7
6
|
* @param {object} store store: object - store object
|
|
8
7
|
* @returns {array} returnType: string
|
|
9
8
|
*/
|
|
10
|
-
export declare const getSearchFilter:
|
|
9
|
+
export declare const getSearchFilter: ((state: {
|
|
10
|
+
advancedLayerStore?: import("../advancedLayerStore/types").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?: LayerSelectStoreType;
|
|
17
|
+
}) => string) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => string & {
|
|
18
|
+
clearCache: () => void;
|
|
19
|
+
}> & {
|
|
20
|
+
clearCache: () => void;
|
|
21
|
+
};
|
|
11
22
|
/**
|
|
12
23
|
* Returns active services array
|
|
13
24
|
*
|
|
@@ -15,7 +26,19 @@ export declare const getSearchFilter: import("reselect").OutputSelector<AppStore
|
|
|
15
26
|
* @param {object} store store: object - store object
|
|
16
27
|
* @returns {array} returnType: array of active services
|
|
17
28
|
*/
|
|
18
|
-
export declare const getActiveServices:
|
|
29
|
+
export declare const getActiveServices: ((state: {
|
|
30
|
+
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
31
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
32
|
+
ui?: import("../ui/types").UIStoreType;
|
|
33
|
+
webmap?: import("../mapStore/types").WebMapState;
|
|
34
|
+
services?: import("../mapStore/types").ServiceState;
|
|
35
|
+
layers?: import("../mapStore/types").LayerState;
|
|
36
|
+
layerSelect?: LayerSelectStoreType;
|
|
37
|
+
}) => ActiveServices) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => ActiveServices & {
|
|
38
|
+
clearCache: () => void;
|
|
39
|
+
}> & {
|
|
40
|
+
clearCache: () => void;
|
|
41
|
+
};
|
|
19
42
|
/**
|
|
20
43
|
* Returns all ids of enabled services
|
|
21
44
|
*
|
|
@@ -23,7 +46,19 @@ export declare const getActiveServices: import("reselect").OutputSelector<AppSto
|
|
|
23
46
|
* @param {object} store store: object - store object
|
|
24
47
|
* @returns {array} returnType: array of service ids that are enabled
|
|
25
48
|
*/
|
|
26
|
-
export declare const getEnabledServiceIds:
|
|
49
|
+
export declare const getEnabledServiceIds: ((state: {
|
|
50
|
+
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
51
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
52
|
+
ui?: import("../ui/types").UIStoreType;
|
|
53
|
+
webmap?: import("../mapStore/types").WebMapState;
|
|
54
|
+
services?: import("../mapStore/types").ServiceState;
|
|
55
|
+
layers?: import("../mapStore/types").LayerState;
|
|
56
|
+
layerSelect?: LayerSelectStoreType;
|
|
57
|
+
}) => string[]) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => string[] & {
|
|
58
|
+
clearCache: () => void;
|
|
59
|
+
}> & {
|
|
60
|
+
clearCache: () => void;
|
|
61
|
+
};
|
|
27
62
|
/**
|
|
28
63
|
* Returns all keywords
|
|
29
64
|
*
|
|
@@ -31,4 +66,16 @@ export declare const getEnabledServiceIds: import("reselect").OutputSelector<App
|
|
|
31
66
|
* @param {object} store store: object - store object
|
|
32
67
|
* @returns {array} returnType: array of keyword objects
|
|
33
68
|
*/
|
|
34
|
-
export declare const getKeywords:
|
|
69
|
+
export declare const getKeywords: ((state: {
|
|
70
|
+
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
71
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
72
|
+
ui?: import("../ui/types").UIStoreType;
|
|
73
|
+
webmap?: import("../mapStore/types").WebMapState;
|
|
74
|
+
services?: import("../mapStore/types").ServiceState;
|
|
75
|
+
layers?: import("../mapStore/types").LayerState;
|
|
76
|
+
layerSelect?: LayerSelectStoreType;
|
|
77
|
+
}) => KeywordObject[]) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => KeywordObject[] & {
|
|
78
|
+
clearCache: () => void;
|
|
79
|
+
}> & {
|
|
80
|
+
clearCache: () => void;
|
|
81
|
+
};
|
|
@@ -1,14 +1,16 @@
|
|
|
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_UPDATE_KEYWORDS } 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
16
|
id: string;
|
|
@@ -16,11 +18,16 @@ export interface KeywordObject {
|
|
|
16
18
|
amountVisible: number;
|
|
17
19
|
checked: boolean;
|
|
18
20
|
}
|
|
21
|
+
export interface LayerSelectModuleState {
|
|
22
|
+
layerSelect?: LayerSelectStoreType;
|
|
23
|
+
}
|
|
19
24
|
export interface LayerSelectStoreType {
|
|
20
25
|
filters: FiltersType;
|
|
21
26
|
}
|
|
22
|
-
export interface
|
|
23
|
-
|
|
27
|
+
export interface FiltersType {
|
|
28
|
+
searchFilter: string;
|
|
29
|
+
activeServices: ActiveServiceType;
|
|
30
|
+
keywords: KeywordObject[];
|
|
24
31
|
}
|
|
25
32
|
export interface SetSearchFilterPayload {
|
|
26
33
|
filterText: string;
|
|
@@ -29,33 +36,35 @@ export interface SetSearchFilter extends Action {
|
|
|
29
36
|
type: typeof LAYER_SELECT_SET_SEARCH_FILTER;
|
|
30
37
|
payload: SetSearchFilterPayload;
|
|
31
38
|
}
|
|
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
39
|
export interface EnableActiveServicePayload {
|
|
40
|
-
|
|
40
|
+
serviceUrl: string;
|
|
41
|
+
keywords: string[];
|
|
41
42
|
}
|
|
42
43
|
export interface EnableActiveService extends Action {
|
|
43
44
|
type: typeof LAYER_SELECT_ENABLE_ACTIVE_SERVICE;
|
|
44
45
|
payload: EnableActiveServicePayload;
|
|
45
46
|
}
|
|
46
47
|
export interface DisableActiveServicePayload {
|
|
47
|
-
|
|
48
|
+
serviceUrl: string;
|
|
49
|
+
keywords: string[];
|
|
48
50
|
}
|
|
49
51
|
export interface DisableActiveService extends Action {
|
|
50
52
|
type: typeof LAYER_SELECT_DISABLE_ACTIVE_SERVICE;
|
|
51
53
|
payload: DisableActiveServicePayload;
|
|
52
54
|
}
|
|
53
|
-
export interface
|
|
54
|
-
|
|
55
|
+
export interface AddKeywordsAndActiveServicesPayload {
|
|
56
|
+
serviceUrl: string;
|
|
55
57
|
keywords: string[];
|
|
56
58
|
}
|
|
57
|
-
export interface
|
|
58
|
-
type: typeof
|
|
59
|
-
payload:
|
|
59
|
+
export interface AddKeywordsAndActiveServices extends Action {
|
|
60
|
+
type: typeof LAYER_SELECT_ADD_KEYWORDS_AND_ACTIVE_SERVICES;
|
|
61
|
+
payload: AddKeywordsAndActiveServicesPayload;
|
|
62
|
+
}
|
|
63
|
+
export interface UpdateKeywordsPayload {
|
|
64
|
+
keywords: KeywordObject[];
|
|
65
|
+
}
|
|
66
|
+
export interface UpdateKeywords extends Action {
|
|
67
|
+
type: typeof LAYER_SELECT_UPDATE_KEYWORDS;
|
|
68
|
+
payload: UpdateKeywordsPayload;
|
|
60
69
|
}
|
|
61
|
-
export declare type LayerSelectActions = SetSearchFilter |
|
|
70
|
+
export declare type LayerSelectActions = SetSearchFilter | AddKeywordsAndActiveServices | EnableActiveService | DisableActiveService | DisableActiveService | UpdateKeywords;
|