@opengeoweb/core 2.1.2 → 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.
Files changed (103) hide show
  1. package/{core.esm.js → index.esm.js} +2293 -869
  2. package/{core.umd.js → index.umd.js} +2498 -948
  3. package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts +1 -0
  4. package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +1 -0
  5. package/lib/components/CustomSwitch/CustomSwitch.d.ts +1 -1
  6. package/lib/components/CustomSwitch/CustomSwitch.stories.d.ts +4 -0
  7. package/lib/components/LayerManager/LayerContainerRow/LayerManagerButton.d.ts +1 -1
  8. package/lib/components/LayerManager/LayerManagerUtils.d.ts +2 -2
  9. package/lib/components/LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButtonConnect.d.ts +8 -0
  10. package/lib/components/LayerManager/LayerSelect/KeywordFilterButton/{KeywordFilterButton.spec.d.ts → KeywordFilterButtonConnect.spec.d.ts} +0 -0
  11. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +12 -6
  12. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.stories.d.ts +13 -0
  13. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +5 -1
  14. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +1 -1
  15. package/lib/components/{Mapcontrols/MapControlButton.spec.d.ts → LayerManager/LayerSelect/KeywordFilterResults/keywordFilterResultsConnect.spec.d.ts} +0 -0
  16. package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +12 -0
  17. package/lib/components/{Mapcontrols/MapControls.spec.d.ts → LayerManager/LayerSelect/LayerList/LayerList.spec.d.ts} +0 -0
  18. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.d.ts +6 -0
  19. package/lib/components/{Mapcontrols/ZoomControls.spec.d.ts → LayerManager/LayerSelect/LayerList/LayerListConnect.spec.d.ts} +0 -0
  20. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +3 -0
  21. package/lib/components/{Mapcontrols/ZoomControlsConnect.spec.d.ts → LayerManager/LayerSelect/LayerList/LayerListUtils.spec.d.ts} +0 -0
  22. package/lib/components/LayerManager/LayerSelect/SearchField/SearchField.d.ts +5 -1
  23. package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldButtonContainer.d.ts +8 -0
  24. package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldButtonContainer.spec.d.ts +1 -0
  25. package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldConnect.d.ts +3 -0
  26. package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldConnect.spec.d.ts +1 -0
  27. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +2 -0
  28. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +9 -0
  29. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.spec.d.ts +1 -0
  30. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +2 -0
  31. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +6 -0
  32. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.spec.d.ts +1 -0
  33. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +13 -0
  34. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +3 -0
  35. package/lib/components/LayerManager/tooltipContainerStyles.d.ts +1 -1
  36. package/lib/components/Legend/LegendConnect.d.ts +3 -0
  37. package/lib/components/Legend/LegendDialog.d.ts +2 -0
  38. package/lib/components/Legend/LegendMapButtonConnect.d.ts +2 -0
  39. package/lib/components/{Mapcontrols → MapControls}/MapControlButton.d.ts +1 -1
  40. package/lib/components/MapControls/MapControlButton.spec.d.ts +1 -0
  41. package/lib/components/{Mapcontrols → MapControls}/MapControls.d.ts +0 -0
  42. package/lib/components/MapControls/MapControls.spec.d.ts +1 -0
  43. package/lib/components/{Mapcontrols → MapControls}/ZoomControls.d.ts +0 -0
  44. package/lib/components/MapControls/ZoomControls.spec.d.ts +1 -0
  45. package/lib/components/{Mapcontrols → MapControls}/ZoomControlsConnect.d.ts +0 -0
  46. package/lib/components/MapControls/ZoomControlsConnect.spec.d.ts +1 -0
  47. package/lib/components/{Mapcontrols → MapControls}/index.d.ts +0 -0
  48. package/lib/components/MapView/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +7 -0
  49. package/lib/components/MapView/MapViewConnect.SelectorTest.stories.d.ts +2 -0
  50. package/lib/components/MapView/MapViewConnect.d.ts +2 -0
  51. package/lib/components/MapView/MapViewConnect.stories.d.ts +1 -0
  52. package/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.d.ts +2 -0
  53. package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +2 -0
  54. package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectConfig.d.ts +1 -1
  55. package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.d.ts +2 -0
  56. package/lib/components/MultiMapView/MultiMapView.stories.d.ts +2 -0
  57. package/lib/components/MultiMapView/MultiMapView10x10.stories.d.ts +2 -0
  58. package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +1 -1
  59. package/lib/components/Providers/Providers.d.ts +1 -1
  60. package/lib/components/ReactMapView/ReactMapView.d.ts +3 -8
  61. package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
  62. package/lib/components/ReactMapView/types.d.ts +2 -8
  63. package/lib/components/SyncGroups/selector.d.ts +13 -2
  64. package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegendRenderFunctions.d.ts +1 -1
  65. package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRailRenderFunctions.d.ts +1 -1
  66. package/lib/components/TimeSlider/TimeSliderUtils.d.ts +1 -1
  67. package/lib/components/ToggleIconButton/ToggleIconButton.d.ts +6 -3
  68. package/lib/components/TooltipSelect/TooltipSelect.d.ts +2 -2
  69. package/lib/index.d.ts +2 -2
  70. package/lib/store/advancedLayerStore/selectors.d.ts +13 -2
  71. package/lib/store/coreModuleConfig.d.ts +1 -1
  72. package/lib/store/generic/selectors.d.ts +21 -3
  73. package/lib/store/generic/synchronizationGroups/selectors.d.ts +13 -1
  74. package/lib/store/layerSelect/actions.d.ts +17 -1
  75. package/lib/store/layerSelect/config.d.ts +2 -2
  76. package/lib/store/layerSelect/constants.d.ts +4 -0
  77. package/lib/store/layerSelect/sagas.d.ts +5 -0
  78. package/lib/store/layerSelect/sagas.spec.d.ts +1 -0
  79. package/lib/store/layerSelect/selectors.d.ts +81 -2
  80. package/lib/store/layerSelect/types.d.ts +57 -6
  81. package/lib/store/mapStore/layers/actions.d.ts +2 -8
  82. package/lib/store/mapStore/layers/constants.d.ts +1 -1
  83. package/lib/store/mapStore/layers/selectors.d.ts +208 -25
  84. package/lib/store/mapStore/layers/types.d.ts +34 -21
  85. package/lib/store/mapStore/map/sagas.d.ts +2 -2
  86. package/lib/store/mapStore/map/selectors.d.ts +427 -33
  87. package/lib/store/mapStore/service/selectors.d.ts +106 -13
  88. package/lib/store/mapStore/service/types.d.ts +7 -2
  89. package/lib/store/mapStore/utils/helpers.d.ts +0 -1
  90. package/lib/store/ui/actions.d.ts +2 -2
  91. package/lib/store/ui/selectors.d.ts +65 -5
  92. package/lib/store/ui/types.d.ts +2 -1
  93. package/lib/storybookUtils/HelperComponents.d.ts +1 -1
  94. package/lib/storybookUtils/storyComponents/MapDrawGeoJSON.d.ts +5 -5
  95. package/lib/storybookUtils/storyComponents/MapDrawGeoJSONStyles.d.ts +2 -1
  96. package/lib/utils/defaultTestSettings.d.ts +27 -6
  97. package/lib/utils/getCapabilities.d.ts +2 -2
  98. package/lib/utils/testUtils.d.ts +2 -2
  99. package/package.json +14 -15
  100. package/lib/components/LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButton.d.ts +0 -3
  101. package/lib/components/LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButton.stories.d.ts +0 -7
  102. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsConnect.stories.d.ts +0 -7
  103. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/mockServices.d.ts +0 -42
@@ -1,9 +1,12 @@
1
1
  import * as React from 'react';
2
- import { ToggleButtonProps } from '@material-ui/lab';
3
- export declare const useButtonStyles: (props: ToggleIconButtonProps) => import("@material-ui/styles").ClassNameMap<"button">;
4
- export interface ToggleIconButtonProps extends ToggleButtonProps {
2
+ import { ToggleButtonProps } from '@mui/material';
3
+ export declare const useButtonStyles: (props: {
4
+ width: number;
5
+ }) => import("@mui/styles").ClassNameMap<"button">;
6
+ export interface ToggleIconButtonProps extends Omit<ToggleButtonProps, 'value'> {
5
7
  active?: boolean;
6
8
  width?: number;
9
+ value?: unknown;
7
10
  }
8
11
  declare const ToggleIconButton: React.FC<ToggleIconButtonProps>;
9
12
  export default ToggleIconButton;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { SelectProps } from '@material-ui/core';
3
- export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"select">;
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/Mapcontrols';
21
+ export { ZoomControls, ZoomControlConnect } from './components/MapControls';
22
22
  export { TimeSliderConnect } from './components/TimeSlider';
23
- export { MapControls } from './components/Mapcontrols';
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: import("reselect").OutputSelector<AppStore, AdvancedLayerStoreState, (res: AdvancedLayerStoreState) => AdvancedLayerStoreState>;
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,2 +1,2 @@
1
- declare const coreModuleConfig: (import("redux-dynamic-modules-saga").ISagaModule<import("./mapStore/types").WebMapStateModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./generic/synchronizationGroups/types").SynchronizationGroupModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./ui/types").UIModuleState> | import("redux-dynamic-modules-core").IModule<import("./layerSelect/types").LayerSelectModuleState>)[];
1
+ declare const coreModuleConfig: (import("redux-dynamic-modules-saga").ISagaModule<import("./mapStore/types").WebMapStateModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./generic/synchronizationGroups/types").SynchronizationGroupModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./ui/types").UIModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./layerSelect/types").LayerSelectModuleState>)[];
2
2
  export default coreModuleConfig;
@@ -1,4 +1,22 @@
1
- import { AppStore } from '../../types/types';
2
1
  import { SynchronizationGroupState, SynchronizationSource } from './synchronizationGroups/types';
3
- export declare const getSynchronizationGroupStore: import("reselect").OutputSelector<AppStore, SynchronizationGroupState, (res: SynchronizationGroupState) => SynchronizationGroupState>;
4
- export declare const getTime: import("reselect").OutputParametricSelector<SynchronizationGroupState, string, string, (res: SynchronizationSource) => string>;
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: import("reselect").OutputSelector<AppStore, any[] | SynchronizationGroupState, (res: SynchronizationGroupState) => any[] | SynchronizationGroupState>;
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 } from './types';
1
+ import { LayerSelectActions, SetSearchFilterPayload, DisableActiveServicePayload, EnableActiveServicePayload, AddKeywordsAndActiveServicesPayload, UpdateKeywordsPayload } from './types';
2
2
  /**
3
3
  * Sets the given text to the searchFilter
4
4
  *
@@ -6,3 +6,19 @@ import { LayerSelectActions, SetSearchFilterPayload } from './types';
6
6
  * @param {string} payload { filterText: string }
7
7
  */
8
8
  export declare const setSearchFilter: (payload: SetSearchFilterPayload) => LayerSelectActions;
9
+ /**
10
+ * Activates given service in the activeServices array
11
+ *
12
+ * Example: enableActiveService({ serviceId: 'service-1' })
13
+ * @param {string} payload { serviceId: string }
14
+ */
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 updateKeywords: (payload: UpdateKeywordsPayload) => LayerSelectActions;
@@ -1,4 +1,4 @@
1
- import { IModule } from 'redux-dynamic-modules';
1
+ import { ISagaModule } from 'redux-dynamic-modules-saga';
2
2
  import { LayerSelectModuleState } from './types';
3
- declare const layerSelectConfig: IModule<LayerSelectModuleState>;
3
+ declare const layerSelectConfig: ISagaModule<LayerSelectModuleState>;
4
4
  export default layerSelectConfig;
@@ -1 +1,5 @@
1
1
  export declare const LAYER_SELECT_SET_SEARCH_FILTER = "LAYER_SELECT_SET_SEARCH_FILTER";
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_UPDATE_KEYWORDS = "LAYER_SELECT_UPDATE_KEYWORDS";
@@ -0,0 +1,5 @@
1
+ import { SagaIterator } from 'redux-saga';
2
+ import { ServiceActions } from '../mapStore/types';
3
+ export declare function newServiceAddedSaga(capturedAction: ServiceActions): SagaIterator;
4
+ export declare function rootSaga(): SagaIterator;
5
+ export default rootSaga;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1,81 @@
1
- import { AppStore } from '../../types/types';
2
- export declare const getSearchFilter: (store: AppStore) => string;
1
+ import { KeywordObject, LayerSelectStoreType, ActiveServices } from './types';
2
+ /**
3
+ * Returns search filter string
4
+ *
5
+ * Example getSearchFilter(store);
6
+ * @param {object} store store: object - store object
7
+ * @returns {array} returnType: string
8
+ */
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
+ };
22
+ /**
23
+ * Returns active services array
24
+ *
25
+ * Example getActiveServices(store);
26
+ * @param {object} store store: object - store object
27
+ * @returns {array} returnType: array of active services
28
+ */
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
+ };
42
+ /**
43
+ * Returns all ids of enabled services
44
+ *
45
+ * Example getEnabledServiceIds(store);
46
+ * @param {object} store store: object - store object
47
+ * @returns {array} returnType: array of service ids that are enabled
48
+ */
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
+ };
62
+ /**
63
+ * Returns all keywords
64
+ *
65
+ * Example getKeywords(store);
66
+ * @param {object} store store: object - store object
67
+ * @returns {array} returnType: array of keyword objects
68
+ */
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,34 @@
1
1
  import { Action } from 'redux';
2
- import { LAYER_SELECT_SET_SEARCH_FILTER } from './constants';
3
- export interface FiltersType {
4
- searchFilter: string;
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[];
5
7
  }
6
- export interface LayerSelectStoreType {
7
- filters: FiltersType;
8
+ export interface ActiveServices {
9
+ [key: string]: ActiveServiceObject;
10
+ }
11
+ export interface ActiveServiceType {
12
+ byId: ActiveServices;
13
+ allIds: string[];
14
+ }
15
+ export interface KeywordObject {
16
+ id: string;
17
+ amount: number;
18
+ amountVisible: number;
19
+ checked: boolean;
8
20
  }
9
21
  export interface LayerSelectModuleState {
10
22
  layerSelect?: LayerSelectStoreType;
11
23
  }
24
+ export interface LayerSelectStoreType {
25
+ filters: FiltersType;
26
+ }
27
+ export interface FiltersType {
28
+ searchFilter: string;
29
+ activeServices: ActiveServiceType;
30
+ keywords: KeywordObject[];
31
+ }
12
32
  export interface SetSearchFilterPayload {
13
33
  filterText: string;
14
34
  }
@@ -16,4 +36,35 @@ export interface SetSearchFilter extends Action {
16
36
  type: typeof LAYER_SELECT_SET_SEARCH_FILTER;
17
37
  payload: SetSearchFilterPayload;
18
38
  }
19
- export declare type LayerSelectActions = SetSearchFilter;
39
+ export interface EnableActiveServicePayload {
40
+ serviceUrl: string;
41
+ keywords: string[];
42
+ }
43
+ export interface EnableActiveService extends Action {
44
+ type: typeof LAYER_SELECT_ENABLE_ACTIVE_SERVICE;
45
+ payload: EnableActiveServicePayload;
46
+ }
47
+ export interface DisableActiveServicePayload {
48
+ serviceUrl: string;
49
+ keywords: string[];
50
+ }
51
+ export interface DisableActiveService extends Action {
52
+ type: typeof LAYER_SELECT_DISABLE_ACTIVE_SERVICE;
53
+ payload: DisableActiveServicePayload;
54
+ }
55
+ export interface AddKeywordsAndActiveServicesPayload {
56
+ serviceUrl: string;
57
+ keywords: string[];
58
+ }
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;
69
+ }
70
+ export declare type LayerSelectActions = SetSearchFilter | AddKeywordsAndActiveServices | EnableActiveService | DisableActiveService | DisableActiveService | UpdateKeywords;
@@ -1,4 +1,4 @@
1
- import { SetLayerOpacityPayload, SetLayerEnabledPayload, SetLayerDimensionPayload, SetLayerNamePayload, SetLayerStylePayload, LayerActions, AddLayerPayload, DeleteLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, ErrorLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetLayerDimensionsPayload, SetLayerStylesPayload } from './types';
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";