@opengeoweb/core 5.2.0 → 6.0.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 (239) hide show
  1. package/index.js +19316 -27100
  2. package/package.json +8 -9
  3. package/src/lib/components/CanvasComponent/CanvasComponent.d.ts +8 -8
  4. package/src/lib/components/ComponentsLookUp/componentsLookUp.d.ts +1 -1
  5. package/src/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +3 -2
  6. package/src/lib/components/ConfigurableMap/ConfigurableMapConnect.stories.d.ts +1 -0
  7. package/src/lib/components/FeatureInfo/GetFeatureInfoButtonConnect.d.ts +1 -1
  8. package/src/lib/components/FeatureInfo/GetFeatureInfoDialog.d.ts +1 -1
  9. package/src/lib/components/FeatureInfo/utils.d.ts +1 -1
  10. package/src/lib/components/LayerManager/AddLayersButton/AddLayersButton.d.ts +1 -1
  11. package/src/lib/components/LayerManager/AddLayersPopup/AddLayersPopup.d.ts +1 -1
  12. package/src/lib/components/LayerManager/BaseLayerRow/BaseLayerRow.d.ts +1 -1
  13. package/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayers.d.ts +1 -1
  14. package/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayersConnect.d.ts +1 -1
  15. package/src/lib/components/LayerManager/DescriptionRow/DescriptionRow.d.ts +1 -1
  16. package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/CustomDimensionSelect/CustomDimensionSelectConnect.d.ts +9 -0
  17. package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +9 -1
  18. package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectConnect.d.ts +10 -1
  19. package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +2 -2
  20. package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.d.ts +1 -1
  21. package/src/lib/components/LayerManager/LayerManager.d.ts +2 -2
  22. package/src/lib/components/LayerManager/LayerManagerConnect.d.ts +1 -1
  23. package/src/lib/components/LayerManager/LayerManagerMapButtonConnect.d.ts +1 -1
  24. package/src/lib/components/LayerManager/LayerManagerUtils.d.ts +20 -6
  25. package/src/lib/components/LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButtonConnect.d.ts +1 -1
  26. package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +1 -1
  27. package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +1 -1
  28. package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +1 -1
  29. package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoButtonConnect.d.ts +1 -1
  30. package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.d.ts +1 -1
  31. package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoLegend.d.ts +1 -1
  32. package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.d.ts +1 -1
  33. package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.d.ts +1 -1
  34. package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +1 -1
  35. package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +1 -1
  36. package/src/lib/components/LayerManager/LayerSelect/LayerSelect.d.ts +1 -1
  37. package/src/lib/components/LayerManager/LayerSelect/LayerSelectButtonConnect.d.ts +1 -1
  38. package/src/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +1 -1
  39. package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +1 -1
  40. package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +1 -1
  41. package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +1 -1
  42. package/src/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +1 -1
  43. package/src/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +1 -1
  44. package/src/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupDialogConnect.d.ts +1 -1
  45. package/src/lib/components/LayerManager/LayerSelect/ServicePopup/utils.d.ts +1 -1
  46. package/src/lib/components/LayerManager/useFetchServices.d.ts +1 -1
  47. package/src/lib/components/Legend/Legend.d.ts +1 -1
  48. package/src/lib/components/Legend/LegendConnect.d.ts +1 -1
  49. package/src/lib/components/Legend/LegendDialog.d.ts +1 -1
  50. package/src/lib/components/Legend/LegendLayout.d.ts +1 -1
  51. package/src/lib/components/Legend/LegendMapButtonConnect.d.ts +1 -1
  52. package/src/lib/components/MapDraw/DrawingTool/DrawingTool.d.ts +31 -0
  53. package/src/lib/components/MapDraw/DrawingTool/DrawingTool.stories.d.ts +25 -0
  54. package/src/lib/components/MapDraw/DrawingTool/DrawingToolConnect.d.ts +14 -0
  55. package/src/lib/components/MapDraw/DrawingTool/DrawingToolConnect.stories.d.ts +25 -0
  56. package/src/lib/components/MapDraw/DrawingTool/DrawingToolMapButtonConnect.d.ts +8 -0
  57. package/src/lib/components/MapDraw/DrawingToolForm/DrawingToolForm.d.ts +14 -0
  58. package/src/lib/components/MapDraw/DrawingToolForm/DrawingToolFormConnect.d.ts +2 -0
  59. package/src/lib/components/MapDraw/MapDraw.d.ts +7 -8
  60. package/src/lib/components/MapDraw/MapDrawContext.d.ts +11 -0
  61. package/src/lib/components/MapDraw/MapDrawContext.stories.d.ts +6 -0
  62. package/src/lib/components/MapDraw/MapDrawTool.stories.d.ts +7 -1
  63. package/src/lib/components/MapDraw/index.d.ts +3 -2
  64. package/src/lib/components/MapDraw/mapDrawUtils.d.ts +1 -1
  65. package/src/lib/components/MapDraw/useMapDrawTool.d.ts +3 -1
  66. package/src/lib/components/MapTime/MapTime.d.ts +1 -1
  67. package/src/lib/components/MapView/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +1 -1
  68. package/src/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.d.ts +1 -1
  69. package/src/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +1 -1
  70. package/src/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.d.ts +1 -1
  71. package/src/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +1 -1
  72. package/src/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.d.ts +1 -1
  73. package/src/lib/components/MultiMapView/MultiMapViewConnect.d.ts +1 -1
  74. package/src/lib/components/MultiMapView/storyUtils/mapPresets.d.ts +10 -10
  75. package/src/lib/components/ReactMapView/ReactMapView.d.ts +2 -4
  76. package/src/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
  77. package/src/lib/components/ReactMapView/types.d.ts +1 -1
  78. package/src/lib/components/ReactMapView/utils.d.ts +1 -1
  79. package/src/lib/components/SyncGroups/SimpleTimeSliderConnect.d.ts +4 -4
  80. package/src/lib/components/SyncGroups/SyncGroupList.d.ts +1 -1
  81. package/src/lib/components/SyncGroups/SyncGroupViewer.d.ts +1 -1
  82. package/src/lib/components/TimeSlider/TimeSliderButtons/AnimationLengthButton/AnimationLengthButton.d.ts +1 -1
  83. package/src/lib/components/TimeSlider/TimeSliderButtons/AutoUpdateButton/AutoUpdateButtonConnect.d.ts +3 -3
  84. package/src/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +5 -5
  85. package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.d.ts +3 -3
  86. package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSpanButton/TimeSpanButton.d.ts +6 -4
  87. package/src/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +1 -1
  88. package/src/lib/components/TimeSlider/TimeSliderConnect.d.ts +1 -0
  89. package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBox.d.ts +1 -2
  90. package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBoxConnect.d.ts +4 -4
  91. package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBoxRenderFunctions.d.ts +1 -2
  92. package/src/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +0 -2
  93. package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawBackground.d.ts +1 -1
  94. package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawTimeScale.d.ts +1 -1
  95. package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawTimeSliderLegend.d.ts +1 -2
  96. package/src/lib/components/TimeSlider/constants.d.ts +1 -1
  97. package/src/lib/components/TimeSlider/timeSliderUtils.d.ts +2 -2
  98. package/src/lib/components/TimeSliderLite/TimeSliderLite.d.ts +1 -1
  99. package/src/lib/components/TimeSliderLite/TimeSliderLiteBackground/TimeSliderDraggableNeedle.d.ts +2 -1
  100. package/src/lib/components/TimeSliderLite/TimeSliderLiteBackground/TimeSliderLiteBackground.d.ts +1 -1
  101. package/src/lib/components/TimeSliderLite/TimeSliderLiteBackground/TimeSliderLiteBackgroundSvg.d.ts +1 -1
  102. package/src/lib/components/TimeSliderLite/TimeSliderLiteConnect.d.ts +7 -0
  103. package/src/lib/components/TimeSliderLite/timeSliderLiteUtils.d.ts +5 -1
  104. package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTree.d.ts +1 -1
  105. package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTreeConnect.d.ts +1 -1
  106. package/src/lib/components/WMSLoader/WMSLoader.d.ts +1 -1
  107. package/src/lib/components/WMSLoader/WMSLoaderConnect.d.ts +1 -1
  108. package/src/lib/components/WMSLoader/WMSServerList/WMSServerList.d.ts +1 -1
  109. package/src/lib/hooks/useSetupDialog/useSetupDialog.d.ts +1 -1
  110. package/src/lib/index.d.ts +4 -92
  111. package/src/lib/storybookUtils/HelperComponents.d.ts +1 -1
  112. package/src/lib/storybookUtils/defaultStorySettings.d.ts +1 -2
  113. package/src/lib/utils/defaultConfigurations.d.ts +3 -3
  114. package/src/lib/utils/defaultTestSettings.d.ts +4 -4
  115. package/src/lib/utils/jsonPresetFilter.d.ts +2 -3
  116. package/src/lib/utils/publicLayers.d.ts +2 -2
  117. package/src/lib/utils/testLayers.d.ts +1 -1
  118. package/src/lib/utils/testUtils.d.ts +2 -2
  119. package/src/lib/store/app/config.d.ts +0 -5
  120. package/src/lib/store/app/index.d.ts +0 -1
  121. package/src/lib/store/app/reducer.d.ts +0 -15
  122. package/src/lib/store/app/types.d.ts +0 -6
  123. package/src/lib/store/coreModuleConfig.d.ts +0 -2
  124. package/src/lib/store/generic/actions.d.ts +0 -28
  125. package/src/lib/store/generic/config.d.ts +0 -5
  126. package/src/lib/store/generic/index.d.ts +0 -16
  127. package/src/lib/store/generic/sagas.d.ts +0 -14
  128. package/src/lib/store/generic/selectors.d.ts +0 -22
  129. package/src/lib/store/generic/synchronizationActions/actions.d.ts +0 -11
  130. package/src/lib/store/generic/synchronizationActions/types.d.ts +0 -34
  131. package/src/lib/store/generic/synchronizationGroups/__mocks__/mockState.d.ts +0 -2
  132. package/src/lib/store/generic/synchronizationGroups/constants.d.ts +0 -4
  133. package/src/lib/store/generic/synchronizationGroups/index.d.ts +0 -5
  134. package/src/lib/store/generic/synchronizationGroups/reducer.d.ts +0 -26
  135. package/src/lib/store/generic/synchronizationGroups/sagas.d.ts +0 -8
  136. package/src/lib/store/generic/synchronizationGroups/selector.d.ts +0 -19
  137. package/src/lib/store/generic/synchronizationGroups/selectors.d.ts +0 -76
  138. package/src/lib/store/generic/synchronizationGroups/types.d.ts +0 -98
  139. package/src/lib/store/generic/synchronizationGroups/utils.d.ts +0 -76
  140. package/src/lib/store/generic/types.d.ts +0 -22
  141. package/src/lib/store/generic/utils.d.ts +0 -9
  142. package/src/lib/store/generic/utils.spec.d.ts +0 -1
  143. package/src/lib/store/index.d.ts +0 -7
  144. package/src/lib/store/layerSelect/config.d.ts +0 -5
  145. package/src/lib/store/layerSelect/index.d.ts +0 -3
  146. package/src/lib/store/layerSelect/localStorage.d.ts +0 -3
  147. package/src/lib/store/layerSelect/localStorage.spec.d.ts +0 -1
  148. package/src/lib/store/layerSelect/reducer.d.ts +0 -21
  149. package/src/lib/store/layerSelect/reducer.spec.d.ts +0 -1
  150. package/src/lib/store/layerSelect/sagas.d.ts +0 -10
  151. package/src/lib/store/layerSelect/sagas.spec.d.ts +0 -1
  152. package/src/lib/store/layerSelect/selectors.d.ts +0 -165
  153. package/src/lib/store/layerSelect/selectors.spec.d.ts +0 -1
  154. package/src/lib/store/layerSelect/types.d.ts +0 -95
  155. package/src/lib/store/layerSelect/utils.d.ts +0 -6
  156. package/src/lib/store/layerSelect/utils.spec.d.ts +0 -1
  157. package/src/lib/store/mapStore/config.d.ts +0 -5
  158. package/src/lib/store/mapStore/index.d.ts +0 -5
  159. package/src/lib/store/mapStore/layers/index.d.ts +0 -3
  160. package/src/lib/store/mapStore/layers/reducer.d.ts +0 -56
  161. package/src/lib/store/mapStore/layers/reducer.spec.d.ts +0 -1
  162. package/src/lib/store/mapStore/layers/selectors.d.ts +0 -443
  163. package/src/lib/store/mapStore/layers/selectors.spec.d.ts +0 -1
  164. package/src/lib/store/mapStore/layers/types.d.ts +0 -165
  165. package/src/lib/store/mapStore/layers/utils.d.ts +0 -12
  166. package/src/lib/store/mapStore/layers/utils.spec.d.ts +0 -1
  167. package/src/lib/store/mapStore/map/actions.d.ts +0 -8
  168. package/src/lib/store/mapStore/map/constants.d.ts +0 -5
  169. package/src/lib/store/mapStore/map/defaultLayers.d.ts +0 -15
  170. package/src/lib/store/mapStore/map/enums.d.ts +0 -37
  171. package/src/lib/store/mapStore/map/filterLayers.d.ts +0 -10
  172. package/src/lib/store/mapStore/map/filterLayers.spec.d.ts +0 -1
  173. package/src/lib/store/mapStore/map/index.d.ts +0 -7
  174. package/src/lib/store/mapStore/map/reducer.d.ts +0 -96
  175. package/src/lib/store/mapStore/map/reducer.spec.d.ts +0 -1
  176. package/src/lib/store/mapStore/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.d.ts +0 -7
  177. package/src/lib/store/mapStore/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.spec.d.ts +0 -1
  178. package/src/lib/store/mapStore/map/sagas.d.ts +0 -24
  179. package/src/lib/store/mapStore/map/sagas.spec.d.ts +0 -1
  180. package/src/lib/store/mapStore/map/selectors.d.ts +0 -983
  181. package/src/lib/store/mapStore/map/selectors.spec.d.ts +0 -1
  182. package/src/lib/store/mapStore/map/types.d.ts +0 -236
  183. package/src/lib/store/mapStore/map/utils.d.ts +0 -98
  184. package/src/lib/store/mapStore/map/utils.spec.d.ts +0 -1
  185. package/src/lib/store/mapStore/service/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +0 -2
  186. package/src/lib/store/mapStore/service/index.d.ts +0 -3
  187. package/src/lib/store/mapStore/service/reducer.d.ts +0 -11
  188. package/src/lib/store/mapStore/service/reducer.spec.d.ts +0 -1
  189. package/src/lib/store/mapStore/service/sagas.d.ts +0 -7
  190. package/src/lib/store/mapStore/service/sagas.spec.d.ts +0 -1
  191. package/src/lib/store/mapStore/service/selectors.d.ts +0 -121
  192. package/src/lib/store/mapStore/service/selectors.spec.d.ts +0 -1
  193. package/src/lib/store/mapStore/service/types.d.ts +0 -49
  194. package/src/lib/store/mapStore/storeTestSettings.d.ts +0 -8
  195. package/src/lib/store/mapStore/storeTestUtils.d.ts +0 -9
  196. package/src/lib/store/mapStore/types.d.ts +0 -11
  197. package/src/lib/store/mapStore/utils/helpers.d.ts +0 -68
  198. package/src/lib/store/mapStore/utils/helpers.spec.d.ts +0 -1
  199. package/src/lib/store/mapStore/utils/index.d.ts +0 -1
  200. package/src/lib/store/mapStore/utils/tilesettings.d.ts +0 -335
  201. package/src/lib/store/router/config.d.ts +0 -5
  202. package/src/lib/store/router/index.d.ts +0 -1
  203. package/src/lib/store/router/reducer.d.ts +0 -9
  204. package/src/lib/store/router/reducer.spec.d.ts +0 -1
  205. package/src/lib/store/router/sagas.d.ts +0 -5
  206. package/src/lib/store/router/sagas.spec.d.ts +0 -1
  207. package/src/lib/store/router/types.d.ts +0 -8
  208. package/src/lib/store/router/utils.d.ts +0 -3
  209. package/src/lib/store/snackbar/config.d.ts +0 -5
  210. package/src/lib/store/snackbar/index.d.ts +0 -3
  211. package/src/lib/store/snackbar/reducer.d.ts +0 -11
  212. package/src/lib/store/snackbar/reducer.spec.d.ts +0 -1
  213. package/src/lib/store/snackbar/sagas.d.ts +0 -5
  214. package/src/lib/store/snackbar/sagas.spec.d.ts +0 -1
  215. package/src/lib/store/snackbar/selectors.d.ts +0 -10
  216. package/src/lib/store/snackbar/selectors.spec.d.ts +0 -1
  217. package/src/lib/store/snackbar/types.d.ts +0 -15
  218. package/src/lib/store/types.d.ts +0 -5
  219. package/src/lib/store/ui/config.d.ts +0 -5
  220. package/src/lib/store/ui/index.d.ts +0 -3
  221. package/src/lib/store/ui/reducer.d.ts +0 -35
  222. package/src/lib/store/ui/reducer.spec.d.ts +0 -1
  223. package/src/lib/store/ui/sagas.d.ts +0 -5
  224. package/src/lib/store/ui/sagas.test.d.ts +0 -1
  225. package/src/lib/store/ui/selectors.d.ts +0 -144
  226. package/src/lib/store/ui/selectors.spec.d.ts +0 -1
  227. package/src/lib/store/ui/types.d.ts +0 -77
  228. package/src/lib/store/utils.d.ts +0 -8
  229. package/src/lib/utils/__mocks__/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +0 -2
  230. package/src/lib/utils/__mocks__/getCapabilities.d.ts +0 -88
  231. package/src/lib/utils/getCapabilities.d.ts +0 -18
  232. package/src/lib/utils/getCapabilities.spec.d.ts +0 -1
  233. /package/src/lib/{store/app/reducer.spec.d.ts → components/LayerManager/LayerContainerRow/LayerRow/CustomDimensionSelect/CustomDimensionSelectConnect.spec.d.ts} +0 -0
  234. /package/src/lib/{store/generic/sagas.spec.d.ts → components/MapDraw/DrawingTool/DrawingTool.spec.d.ts} +0 -0
  235. /package/src/lib/{store/generic/selectors.spec.d.ts → components/MapDraw/DrawingTool/DrawingToolConnect.spec.d.ts} +0 -0
  236. /package/src/lib/{store/generic/synchronizationGroups/reducer.spec.d.ts → components/MapDraw/DrawingTool/DrawingToolMapButtonConnect.spec.d.ts} +0 -0
  237. /package/src/lib/{store/generic/synchronizationGroups/sagas.spec.d.ts → components/MapDraw/DrawingToolForm/DrawingToolForm.spec.d.ts} +0 -0
  238. /package/src/lib/{store/generic/synchronizationGroups/selectors.spec.d.ts → components/MapDraw/DrawingToolForm/DrawingToolFormConnect.spec.d.ts} +0 -0
  239. /package/src/lib/{store/generic/synchronizationGroups/utils.spec.d.ts → components/MapDraw/MapDrawContext.spec.d.ts} +0 -0
@@ -1,8 +0,0 @@
1
- import { SagaIterator } from 'redux-saga';
2
- import * as synchronizationGroupActions from './reducer';
3
- export declare function updateSourceValueWhenLinkingComponentToGroupSaga(groupId: string, targetToUpdate: string): SagaIterator;
4
- export declare function addGroupTargetSaga({ payload, }: ReturnType<typeof synchronizationGroupActions.syncGroupAddTarget>): SagaIterator;
5
- export declare function linkGroupTargetSaga({ payload, }: ReturnType<typeof synchronizationGroupActions.syncGroupLinkTarget>): SagaIterator;
6
- export declare function updateViewStateSaga(): SagaIterator;
7
- declare function rootSaga(): SagaIterator;
8
- export default rootSaga;
@@ -1,19 +0,0 @@
1
- import { SyncGroupViewState, SynchronizationGroups, SynchronizationSources, SyncType } from './types';
2
- export declare const groupTypes: {
3
- title: string;
4
- syncType: SyncType;
5
- groupType: string;
6
- }[];
7
- export declare const createSyncGroupViewState: (groups: SynchronizationGroups, sources: SynchronizationSources) => SyncGroupViewState;
8
- export declare const createSyncGroupViewStateSelector: ((state: {
9
- syncronizationGroupStore?: import("./types").SynchronizationGroupState | undefined;
10
- ui?: import("../../ui/types").UIStoreType | undefined;
11
- webmap?: import("../../mapStore/types").WebMapState | undefined;
12
- services?: import("../../mapStore/types").ServiceState | undefined;
13
- layers?: import("../../mapStore/types").LayerState | undefined;
14
- layerSelect?: import("../../..").LayerSelectStoreType | undefined;
15
- }) => SyncGroupViewState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroups, args_1: SynchronizationSources) => SyncGroupViewState, {
16
- clearCache: () => void;
17
- }> & {
18
- clearCache: () => void;
19
- };
@@ -1,76 +0,0 @@
1
- import type { AppStore } from '../../types';
2
- import type { GenericSyncActionPayload } from '../synchronizationActions/types';
3
- import type { GenericActionPayload } from '../types';
4
- import type { SyncGroupTarget, SynchronizationGroup, SynchronizationGroupState, SynchronizationSource, SyncType } from './types';
5
- export declare const syncGroupStore: (store: AppStore) => SynchronizationGroupState;
6
- /**
7
- * Gets synchronization group state
8
- *
9
- * Example: synchronizationGroupState = getSynchronizationGroupState(store)
10
- * @param {object} store store: object - Store object
11
- * @returns {object} returnType: SynchronizationGroupState
12
- */
13
- export declare const getSynchronizationGroupState: ((state: {
14
- syncronizationGroupStore?: SynchronizationGroupState | undefined;
15
- ui?: import("../../ui/types").UIStoreType | undefined;
16
- webmap?: import("../../mapStore/types").WebMapState | undefined;
17
- services?: import("../../mapStore/types").ServiceState | undefined;
18
- layers?: import("../../mapStore/types").LayerState | undefined;
19
- layerSelect?: import("../../..").LayerSelectStoreType | undefined;
20
- }) => SynchronizationGroupState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => SynchronizationGroupState, {
21
- clearCache: () => void;
22
- }> & {
23
- clearCache: () => void;
24
- };
25
- export declare const getSynchronizationGroup: (state: AppStore, id: string) => SynchronizationGroup;
26
- export declare const getSynchronizationGroupSource: (state: AppStore, id: string) => SynchronizationSource;
27
- export declare const getTargets: (state: AppStore, payload: GenericActionPayload, actionType: SyncType) => GenericSyncActionPayload[];
28
- export declare const getTargetGroups: (state: AppStore, payload: GenericActionPayload, actionType: SyncType) => string[];
29
- export declare const getAllTargetGroupsForSource: ((state: {
30
- syncronizationGroupStore?: SynchronizationGroupState | undefined;
31
- ui?: import("../../ui/types").UIStoreType | undefined;
32
- webmap?: import("../../mapStore/types").WebMapState | undefined;
33
- services?: import("../../mapStore/types").ServiceState | undefined;
34
- layers?: import("../../mapStore/types").LayerState | undefined;
35
- layerSelect?: import("../../..").LayerSelectStoreType | undefined;
36
- }, params_0: string) => string[]) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState, args_1: string) => string[], {
37
- clearCache: () => void;
38
- }> & {
39
- clearCache: () => void;
40
- };
41
- export declare const syncGroupGetViewState: ((state: {
42
- syncronizationGroupStore?: SynchronizationGroupState | undefined;
43
- ui?: import("../../ui/types").UIStoreType | undefined;
44
- webmap?: import("../../mapStore/types").WebMapState | undefined;
45
- services?: import("../../mapStore/types").ServiceState | undefined;
46
- layers?: import("../../mapStore/types").LayerState | undefined;
47
- layerSelect?: import("../../..").LayerSelectStoreType | undefined;
48
- }) => import("./types").SyncGroupViewState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => import("./types").SyncGroupViewState, {
49
- clearCache: () => void;
50
- }> & {
51
- clearCache: () => void;
52
- };
53
- export declare const getSyncedMapIdsForTimeslider: ((state: {
54
- syncronizationGroupStore?: SynchronizationGroupState | undefined;
55
- ui?: import("../../ui/types").UIStoreType | undefined;
56
- webmap?: import("../../mapStore/types").WebMapState | undefined;
57
- services?: import("../../mapStore/types").ServiceState | undefined;
58
- layers?: import("../../mapStore/types").LayerState | undefined;
59
- layerSelect?: import("../../..").LayerSelectStoreType | undefined;
60
- }) => string[]) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => string[], {
61
- clearCache: () => void;
62
- }> & {
63
- clearCache: () => void;
64
- };
65
- export declare const getSyncGroupTargets: ((state: {
66
- syncronizationGroupStore?: SynchronizationGroupState | undefined;
67
- ui?: import("../../ui/types").UIStoreType | undefined;
68
- webmap?: import("../../mapStore/types").WebMapState | undefined;
69
- services?: import("../../mapStore/types").ServiceState | undefined;
70
- layers?: import("../../mapStore/types").LayerState | undefined;
71
- layerSelect?: import("../../..").LayerSelectStoreType | undefined;
72
- }) => SyncGroupTarget[]) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => SyncGroupTarget[], {
73
- clearCache: () => void;
74
- }> & {
75
- clearCache: () => void;
76
- };
@@ -1,98 +0,0 @@
1
- import type { GenericActionPayload } from '../types';
2
- import { SYNCGROUPS_TYPE_SETBBOX, SYNCGROUPS_TYPE_SETTIME, SYNCGROUPS_TYPE_SETLAYERACTIONS } from './constants';
3
- export interface Group {
4
- id: string;
5
- selected: string[];
6
- }
7
- export interface SourceById {
8
- id: string;
9
- name: string;
10
- }
11
- export interface GroupsAndSources {
12
- groups: Group[];
13
- sourcesById: SourceById[];
14
- }
15
- export interface SyncGroupViewState {
16
- timeslider: GroupsAndSources;
17
- zoompane: GroupsAndSources;
18
- level: GroupsAndSources;
19
- }
20
- export interface SynchronizationGroup {
21
- type: SyncType;
22
- title?: string;
23
- payloadByType: SynchronizationSourcePayLoadByType;
24
- targets: {
25
- byId: Record<string, {
26
- linked: boolean;
27
- }>;
28
- allIds: string[];
29
- };
30
- }
31
- declare type Origin = 'user' | 'system';
32
- export declare type SynchronizationSourcePayLoadByType = Record<string, GenericActionPayload>;
33
- export interface SynchronizationSource {
34
- types: SyncType[];
35
- payloadByType: SynchronizationSourcePayLoadByType;
36
- }
37
- export interface SynchronizationSources {
38
- byId: Record<string, SynchronizationSource>;
39
- allIds: string[];
40
- }
41
- export interface SynchronizationGroups {
42
- byId: Record<string, SynchronizationGroup>;
43
- allIds: string[];
44
- }
45
- export interface SynchronizationGroupState {
46
- sources: SynchronizationSources;
47
- groups: SynchronizationGroups;
48
- viewState: SyncGroupViewState;
49
- }
50
- export interface SynchronizationGroupModuleState {
51
- syncronizationGroupStore?: SynchronizationGroupState;
52
- }
53
- export declare type SyncType = typeof SYNCGROUPS_TYPE_SETBBOX | typeof SYNCGROUPS_TYPE_SETTIME | typeof SYNCGROUPS_TYPE_SETLAYERACTIONS;
54
- export interface SyncGroupsAddSourcePayload {
55
- id: string;
56
- type: SyncType[];
57
- defaultPayload?: GenericActionPayload;
58
- }
59
- export interface SyncGroupRemoveSourcePayload {
60
- id: string;
61
- }
62
- export interface SyncGroupTarget {
63
- groupId: string;
64
- targetId: string;
65
- linked?: boolean;
66
- }
67
- export interface SyncGroupAddTargetPayload extends SyncGroupTarget {
68
- origin?: Origin;
69
- }
70
- export interface SyncGroupRemoveTargetPayload {
71
- groupId: string;
72
- targetId: string;
73
- origin?: Origin;
74
- }
75
- export interface SyncGroupLinkTargetPayload extends SyncGroupTarget {
76
- linked: boolean;
77
- }
78
- export interface SyncGroupAddGroupPayload {
79
- groupId: string;
80
- title: string;
81
- type: SyncType;
82
- origin?: Origin;
83
- }
84
- export interface SyncGroupRemoveGroupPayload {
85
- groupId: string;
86
- }
87
- export interface SyncGroupSetViewStatePayload {
88
- viewState: SyncGroupViewState;
89
- }
90
- export declare const SyncGroupTypeList: string[];
91
- export declare enum SyncGroupActionOrigin {
92
- delete = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_DELETEACTION",
93
- layerActions = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_LAYERACTIONS",
94
- move = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_MOVEACTION",
95
- add = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_ADDACTION",
96
- activateLayerId = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_ACTIVELAYERIDACTION"
97
- }
98
- export {};
@@ -1,76 +0,0 @@
1
- import { AppStore } from '../../types';
2
- import { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetBaseLayersPayload } from '../../mapStore/types';
3
- import { SyncLayerPayloads, LayerActionPayloadsWithLayerIds } from '../types';
4
- import { SyncType } from './types';
5
- interface FoundTargets {
6
- payload: SyncLayerPayloads;
7
- targetId: string;
8
- layerId: string;
9
- }
10
- /**
11
- * Tries to find the layerId's in the other map based on the payload of the action. It works for all layer actions.
12
- * @param state
13
- * @param mapId
14
- * @param targetMapId
15
- * @param payload
16
- * @returns
17
- */
18
- export declare const getTargetLayerIdFromPayload: (state: AppStore, mapId: string, targetMapId: string, payload: SyncLayerPayloads) => string;
19
- /**
20
- * Local helper function used by getLayerDeleteActionsTargets, getLayerActionsTargets, getAddLayerActionsTargets, getTargetLayerIdFromPayload to find the targets
21
- * @param state
22
- * @param payload
23
- * @param actionType
24
- * @param sourceMapId
25
- * @returns The found targets
26
- */
27
- export declare const findTargets: (state: AppStore, payload: SyncLayerPayloads, actionType: SyncType, sourceMapId: string) => FoundTargets[];
28
- /**
29
- * These targets are found for layer actions that work with a layerId like: SetLayerName, SetLayerEnabled, SetLayerOpacity, SetLayerDimension and SetLayerStyle
30
- * @param state
31
- * @param payload
32
- * @param actionType
33
- * @returns
34
- */
35
- export declare const getLayerActionsTargets: (state: AppStore, payload: LayerActionPayloadsWithLayerIds, actionType: SyncType) => LayerActionPayloadsWithLayerIds[];
36
- /**
37
- * These targets are found for the layer/map action AddLayer. AddLayer does not have a layerId (because it's new)
38
- * @param state
39
- * @param payload
40
- * @param actionType
41
- * @returns
42
- */
43
- export declare const getAddLayerActionsTargets: (state: AppStore, payload: AddLayerPayload, actionType: SyncType) => AddLayerPayload[];
44
- /**
45
- * These targets are found for the layer/map action DeleteLayer. The layer is already gone, so there is no layerId anymore. Using layerIndex instead.
46
- * @param state
47
- * @param payload
48
- * @param actionType
49
- * @returns
50
- */
51
- export declare const getLayerDeleteActionsTargets: (state: AppStore, payload: DeleteLayerPayload, actionType: SyncType) => DeleteLayerPayload[];
52
- /**
53
- * These targets are found for the layer/map action MoveLayer. Here layers are referenced by newIndex and oldIndex.
54
- * @param state
55
- * @param payload
56
- * @param actionType
57
- * @returns
58
- */
59
- export declare const getLayerMoveActionsTargets: (state: AppStore, payload: MoveLayerPayload, actionType: SyncType) => MoveLayerPayload[];
60
- /**
61
- * These targets are found for the layer/map action SetActiveLayerId. It needs both a target mapId and layerId
62
- * @param state
63
- * @param payload
64
- * @param actionType
65
- * @returns
66
- */
67
- export declare const getSetActiveLayerIdActionsTargets: (state: AppStore, payload: LayerActionPayloadsWithLayerIds, actionType: SyncType) => LayerActionPayloadsWithLayerIds[];
68
- /**
69
- * These targets are found for baselayer actions that work with a mapId like: setBaseLayers
70
- * @param state
71
- * @param payload
72
- * @param actionType
73
- * @returns
74
- */
75
- export declare const getMapBaseLayerActionsTargets: (state: AppStore, payload: SetBaseLayersPayload, actionType: SyncType) => SetBaseLayersPayload[];
76
- export {};
@@ -1,22 +0,0 @@
1
- import { MapActionOrigin } from '../mapStore/map/enums';
2
- import { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetAutoLayerIdPayload, SetBaseLayersPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerNamePayload, SetLayerOpacityPayload, SetLayerStylePayload } from '../mapStore/types';
3
- export interface SetTimePayload {
4
- sourceId: string;
5
- origin: string;
6
- value: string;
7
- }
8
- export interface SetBboxPayload {
9
- sourceId: string;
10
- bbox: {
11
- left: number;
12
- bottom: number;
13
- right: number;
14
- top: number;
15
- };
16
- srs: string;
17
- origin?: MapActionOrigin | string;
18
- mapId?: string;
19
- }
20
- export declare type GenericActionPayload = SetBboxPayload | SetTimePayload;
21
- export declare type LayerActionPayloadsWithLayerIds = SetLayerOpacityPayload | SetLayerNamePayload | SetLayerEnabledPayload | SetLayerDimensionPayload | SetLayerStylePayload | SetAutoLayerIdPayload;
22
- export declare type SyncLayerPayloads = LayerActionPayloadsWithLayerIds | AddLayerPayload | MoveLayerPayload | DeleteLayerPayload | SetBaseLayersPayload;
@@ -1,9 +0,0 @@
1
- /**
2
- * The removeInPlace() method modifies an array in place, by removing elements that pass the test implemented by the provided function.
3
- *
4
- * NOTE: This should only be used on draft properties as provided by the immer produce library, as modifying elements in place is bad practice on non draft variables.
5
- *
6
- * @param inDraftArray The draft array to filter, will be modified in place.
7
- * @param condition Function to check each element in the array
8
- */
9
- export declare const removeInPlace: <T>(inDraftArray: T[], condition: (c: T) => boolean) => void;
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- export * from './mapStore';
2
- export * from './layerSelect';
3
- export * from './ui';
4
- export * from './generic';
5
- export * from './snackbar';
6
- export * from './router';
7
- export * from './app';
@@ -1,5 +0,0 @@
1
- import { Egg } from '@redux-eggs/core';
2
- import { Store } from '@reduxjs/toolkit';
3
- import { LayerSelectModuleState } from './types';
4
- declare const layerSelectConfig: Egg<Store<LayerSelectModuleState>>;
5
- export default layerSelectConfig;
@@ -1,3 +0,0 @@
1
- export { layerSelectActions } from './reducer';
2
- export * as layerSelectSelectors from './selectors';
3
- export * as layerSelectTypes from './types';
@@ -1,3 +0,0 @@
1
- import { UserAddedServices } from './types';
2
- export declare const getUserAddedServices: () => UserAddedServices;
3
- export declare const setUserAddedServices: (services: UserAddedServices) => void;
@@ -1 +0,0 @@
1
- export {};
@@ -1,21 +0,0 @@
1
- import { PayloadAction, Draft } from '@reduxjs/toolkit';
2
- import { uiTypes } from '../ui';
3
- import { DisableActiveServicePayload, EnableActiveServicePayload, EnableOnlyOneKeywordPayload, LayerSelectRemoveServicePayload, LayerSelectStoreType, SetAllServicesEnabledPayload, SetActiveLayerInfoPayload, SetSearchFilterPayload, ToggleKeywordsPayload, Filter, ActiveServiceObject, ToggleServicePopupPayload, ServicePopupObject } from './types';
4
- export declare const layerSelectFilterAdapter: import("@reduxjs/toolkit").EntityAdapter<Filter>;
5
- export declare const layerSelectActiveServicesAdapter: import("@reduxjs/toolkit").EntityAdapter<ActiveServiceObject>;
6
- export declare const initialServicePopupState: ServicePopupObject;
7
- export declare const initialState: LayerSelectStoreType;
8
- export declare const reducer: import("redux").Reducer<LayerSelectStoreType, import("redux").AnyAction>;
9
- export declare const layerSelectActions: import("@reduxjs/toolkit").CaseReducerActions<{
10
- setSearchFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<SetSearchFilterPayload>) => void;
11
- setAllServicesEnabled: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<SetAllServicesEnabledPayload>) => void;
12
- closeServicePopupOpen: (draft: Draft<LayerSelectStoreType>) => void;
13
- toggleServicePopup: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<ToggleServicePopupPayload>) => void;
14
- layerSelectRemoveService: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<LayerSelectRemoveServicePayload>) => void;
15
- enableActiveService: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<EnableActiveServicePayload>) => void;
16
- disableActiveService: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<DisableActiveServicePayload>) => void;
17
- toggleFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<ToggleKeywordsPayload>) => void;
18
- enableOnlyOneFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<EnableOnlyOneKeywordPayload>) => void;
19
- setActiveLayerInfo: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<SetActiveLayerInfoPayload>) => void;
20
- }, uiTypes.DialogTypes.LayerSelect>;
21
- export declare type LayerSelectActions = ReturnType<typeof layerSelectActions.setSearchFilter> | ReturnType<typeof layerSelectActions.layerSelectRemoveService> | ReturnType<typeof layerSelectActions.enableActiveService> | ReturnType<typeof layerSelectActions.disableActiveService> | ReturnType<typeof layerSelectActions.toggleFilter> | ReturnType<typeof layerSelectActions.enableOnlyOneFilter> | ReturnType<typeof layerSelectActions.setActiveLayerInfo>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- import { SagaIterator } from 'redux-saga';
2
- import { serviceActions } from '../mapStore/service/reducer';
3
- import { layerSelectActions, LayerSelectActions } from './reducer';
4
- import { uiActions } from '../ui';
5
- export declare function layerSelectCloseInfoDialogSaga({ type, payload, }: ReturnType<typeof uiActions.setToggleOpenDialog | typeof uiActions.setActiveMapIdForDialog | typeof layerSelectActions.disableActiveService | typeof layerSelectActions.toggleFilter | typeof layerSelectActions.setSearchFilter>): SagaIterator;
6
- export declare function layerSelectRemoveServiceSaga(capturedAction: LayerSelectActions): SagaIterator;
7
- export declare function addServiceToLocalStorageSaga({ payload, }: ReturnType<typeof serviceActions.serviceSetLayers>): void;
8
- export declare function removeServiceFromLocalStorageSaga({ payload, }: ReturnType<typeof serviceActions.mapStoreRemoveService>): void;
9
- export declare function rootSaga(): SagaIterator;
10
- export default rootSaga;
@@ -1 +0,0 @@
1
- export {};
@@ -1,165 +0,0 @@
1
- import type { AppStore } from '../types';
2
- import { LayerSelectStoreType, ActiveServiceObject, ActiveLayerObject, ActiveServiceObjectEntities, ServicePopupObject } 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
- syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
12
- ui?: import("../ui/types").UIStoreType | undefined;
13
- webmap?: import("../mapStore/types").WebMapState | undefined;
14
- services?: import("../mapStore/types").ServiceState | undefined;
15
- layers?: import("../mapStore/types").LayerState | undefined;
16
- layerSelect?: LayerSelectStoreType | undefined;
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 {ActiveServiceObjectEntities} returnType: ActiveServiceObjectEntitiesobject of active services
28
- */
29
- export declare const getActiveServices: (store: AppStore) => ActiveServiceObjectEntities;
30
- /**
31
- * Returns active services by id
32
- *
33
- * Example getActiveServices(store, 'server-id');
34
- * @param {object} store store: object - store object
35
- * @param {serverId} serverId serverId: string - active server id
36
- * @returns {object} returnType: object of active service
37
- */
38
- export declare const getActiveServiceById: (store: AppStore, serviceId: string) => ActiveServiceObject;
39
- /**
40
- * Returns all ids of enabled services
41
- *
42
- * Example getEnabledServiceIds(store);
43
- * @param {object} store store: object - store object
44
- * @returns {array} returnType: array of service ids that are enabled
45
- */
46
- export declare const getEnabledServiceIds: ((state: {
47
- syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
48
- ui?: import("../ui/types").UIStoreType | undefined;
49
- webmap?: import("../mapStore/types").WebMapState | undefined;
50
- services?: import("../mapStore/types").ServiceState | undefined;
51
- layers?: import("../mapStore/types").LayerState | undefined;
52
- layerSelect?: LayerSelectStoreType | undefined;
53
- }) => string[]) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => string[], {
54
- clearCache: () => void;
55
- }> & {
56
- clearCache: () => void;
57
- };
58
- /**
59
- * Returns all ids of checked keywords
60
- *
61
- * Example getCheckedKeywordIds(store);
62
- * @param {object} store store: object - store object
63
- * @returns {array} returnType: array of keyword ids that are checked
64
- */
65
- export declare const getCheckedFilterIds: ((state: {
66
- syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
67
- ui?: import("../ui/types").UIStoreType | undefined;
68
- webmap?: import("../mapStore/types").WebMapState | undefined;
69
- services?: import("../mapStore/types").ServiceState | undefined;
70
- layers?: import("../mapStore/types").LayerState | undefined;
71
- layerSelect?: LayerSelectStoreType | undefined;
72
- }) => string[]) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => string[], {
73
- clearCache: () => void;
74
- }> & {
75
- clearCache: () => void;
76
- };
77
- /**
78
- * Returns ids of all keywords
79
- *
80
- * Example getAllKeywordIds(store);
81
- * @param {object} store store: object - store object
82
- * @returns {array} returnType: array of all keyword ids
83
- */
84
- export declare const getAllFilterIds: (store: AppStore) => string[];
85
- /**
86
- * Returns all filters
87
- *
88
- * Example getAllFilters(store);
89
- * @param {object} store store: object - store object
90
- * @returns {array} returnType: array of all filters
91
- */
92
- export declare const getAllFilters: (state: AppStore) => import("./types").Filter[];
93
- /**
94
- * Returns if all keywords are checked
95
- *
96
- * Example isAllKeywordsChecked(store);
97
- * @param {object} store store: object - store object
98
- * @returns {array} returnType: boolean if all keywords are checked
99
- */
100
- export declare const isAllFiltersChecked: ((state: {
101
- syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
102
- ui?: import("../ui/types").UIStoreType | undefined;
103
- webmap?: import("../mapStore/types").WebMapState | undefined;
104
- services?: import("../mapStore/types").ServiceState | undefined;
105
- layers?: import("../mapStore/types").LayerState | undefined;
106
- layerSelect?: LayerSelectStoreType | undefined;
107
- }) => boolean) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => boolean, {
108
- clearCache: () => void;
109
- }> & {
110
- clearCache: () => void;
111
- };
112
- /**
113
- * Gets a KeywordObject by its id
114
- *
115
- * Example: keywordObject = getKeywordObjectById(store, 'keywordId')
116
- * @param {object} store object from which the keyword state will be extracted
117
- * @param {string} filterId Id of the keyword
118
- * @returns {object} object containing keyword information (id, amount, amountVisible, checked)
119
- */
120
- export declare const getFilterById: (state: AppStore, id: import("@reduxjs/toolkit").EntityId) => import("./types").Filter | undefined;
121
- /**
122
- * Returns the active layer info
123
- *
124
- * Example getActiveLayerInfo(store);
125
- * @param {object} store store: object - store object
126
- * @returns {object} returnType: ActiveLayerObject
127
- */
128
- export declare const getActiveLayerInfo: ((state: {
129
- syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
130
- ui?: import("../ui/types").UIStoreType | undefined;
131
- webmap?: import("../mapStore/types").WebMapState | undefined;
132
- services?: import("../mapStore/types").ServiceState | undefined;
133
- layers?: import("../mapStore/types").LayerState | undefined;
134
- layerSelect?: LayerSelectStoreType | undefined;
135
- }) => ActiveLayerObject) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => ActiveLayerObject, {
136
- clearCache: () => void;
137
- }> & {
138
- clearCache: () => void;
139
- };
140
- /**
141
- * Returns a filtered active layer object based on the given filter settings
142
- * Example: layerSelectSelectors.getFilteredLayers(store, filteredSettings);
143
- * @param {object} store store: object - object from which the service state will be extracted
144
- * @returns {array} returnType: ActiveLayerObject - an array of all filtered activelayers
145
- */
146
- export declare const getFilteredLayers: ((state: {
147
- syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
148
- ui?: import("../ui/types").UIStoreType | undefined;
149
- webmap?: import("../mapStore/types").WebMapState | undefined;
150
- services?: import("../mapStore/types").ServiceState | undefined;
151
- layers?: import("../mapStore/types").LayerState | undefined;
152
- layerSelect?: LayerSelectStoreType | undefined;
153
- }) => ActiveLayerObject[]) & import("reselect").OutputSelectorFields<(args_0: string[], args_1: import("../mapStore/types").Services, args_2: string[], args_3: boolean, args_4: string) => ActiveLayerObject[], {
154
- clearCache: () => void;
155
- }> & {
156
- clearCache: () => void;
157
- };
158
- /**
159
- * Returns service popup details
160
- *
161
- * Example getActiveServices(store, 'server-id');
162
- * @param {object} store store: object - store object
163
- * @returns {object} returnType: object of active service
164
- */
165
- export declare const getServicePopupDetails: (store: AppStore) => ServicePopupObject;
@@ -1 +0,0 @@
1
- export {};
@@ -1,95 +0,0 @@
1
- import { EntityState } from '@reduxjs/toolkit';
2
- import type { ServiceLayer, ServiceScope } from '../mapStore/types';
3
- export declare type NoIdService = Omit<LayerSelectService, 'id'>;
4
- export interface UserAddedServices {
5
- [url: string]: NoIdService;
6
- }
7
- export interface LayerSelectService {
8
- name: string;
9
- url: string;
10
- id: string;
11
- scope?: ServiceScope;
12
- abstract?: string;
13
- }
14
- export interface ActiveLayerObject extends ServiceLayer {
15
- serviceName: string;
16
- }
17
- export interface ActiveServiceObject {
18
- serviceId?: string;
19
- serviceName?: string;
20
- serviceUrl?: string;
21
- abstract?: string;
22
- enabled?: boolean;
23
- filterIds?: string[];
24
- scope?: ServiceScope;
25
- isLoading?: boolean;
26
- }
27
- export declare enum FilterType {
28
- Keyword = "keywords",
29
- Group = "groups"
30
- }
31
- export interface Filter {
32
- id: string;
33
- name: string;
34
- amount?: number;
35
- amountVisible?: number;
36
- checked?: boolean;
37
- type: FilterType;
38
- }
39
- export declare type ActiveServiceObjectEntities = Record<string, ActiveServiceObject>;
40
- export declare type Filters = EntityState<Filter>;
41
- export declare type ActiveServiceType = EntityState<ActiveServiceObject>;
42
- export interface FiltersType {
43
- searchFilter: string;
44
- activeServices: ActiveServiceType;
45
- filters: Filters;
46
- }
47
- export declare type PopupVariant = 'edit' | 'add' | 'save' | 'show';
48
- export interface ServicePopupObject {
49
- isOpen: boolean;
50
- variant: PopupVariant;
51
- url?: string;
52
- serviceId?: string;
53
- }
54
- export interface LayerSelectStoreType {
55
- filters: FiltersType;
56
- allServicesEnabled: boolean;
57
- activeLayerInfo: ActiveLayerObject;
58
- servicePopup: ServicePopupObject;
59
- }
60
- export interface LayerSelectModuleState {
61
- layerSelect?: LayerSelectStoreType;
62
- }
63
- export interface SetSearchFilterPayload {
64
- filterText: string;
65
- }
66
- export interface SetAllServicesEnabledPayload {
67
- allServicesEnabled: boolean;
68
- }
69
- export interface ToggleServicePopupPayload {
70
- url?: string;
71
- variant: PopupVariant;
72
- serviceId?: string;
73
- isOpen: boolean;
74
- }
75
- export interface EnableActiveServicePayload {
76
- serviceId: string;
77
- filters: string[];
78
- }
79
- export interface DisableActiveServicePayload {
80
- serviceId: string;
81
- filters: string[];
82
- }
83
- export interface LayerSelectRemoveServicePayload {
84
- serviceId: string;
85
- serviceUrl?: string;
86
- }
87
- export interface ToggleKeywordsPayload {
88
- filterIds: string[];
89
- }
90
- export interface EnableOnlyOneKeywordPayload {
91
- filterId: string;
92
- }
93
- export interface SetActiveLayerInfoPayload {
94
- layer: ActiveLayerObject;
95
- }
@@ -1,6 +0,0 @@
1
- import { EntityAdapter, Draft } from '@reduxjs/toolkit';
2
- import { Filter, FilterType, LayerSelectStoreType } from './types';
3
- import { serviceTypes } from '../mapStore';
4
- export declare const getFilterId: (filterType: FilterType, filterName: string) => string;
5
- export declare const produceFilters: (filterNames: string[], filterType: FilterType, draft: Draft<LayerSelectStoreType>, layerSelectFilterAdapter: EntityAdapter<Filter>) => void;
6
- export declare const filterLayersFromService: (serviceId: string, services: serviceTypes.Services, filterIds: string[], allFiltersActive: boolean, searchString: string) => serviceTypes.ServiceLayer[];