@opengeoweb/core 5.1.1 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/index.js +1543 -1487
  2. package/package.json +7 -7
  3. package/src/lib/components/LayerManager/AddLayersButton/AddLayersButton.d.ts +3 -4
  4. package/src/lib/components/LayerManager/AddLayersPopup/AddLayersPopup.d.ts +3 -4
  5. package/src/lib/components/LayerManager/BaseLayerRow/BaseLayerRow.d.ts +2 -3
  6. package/src/lib/components/LayerManager/LayerManager.d.ts +2 -3
  7. package/src/lib/components/LayerManager/LayerManagerConnect.d.ts +5 -6
  8. package/src/lib/components/LayerManager/useFetchServices.d.ts +4 -6
  9. package/src/lib/components/Legend/LegendConnect.d.ts +0 -1
  10. package/src/lib/components/MapDraw/MapDrawTool.stories.d.ts +1 -7
  11. package/src/lib/components/MapDraw/MapDrawToolDoubleControls.stories.d.ts +6 -0
  12. package/src/lib/components/MapDraw/MapDrawToolIntersection.stories.d.ts +11 -0
  13. package/src/lib/components/MapDraw/mapDrawUtils.d.ts +1 -0
  14. package/src/lib/components/MapDraw/storyComponents/GeoJSONTextField.d.ts +3 -0
  15. package/src/lib/components/MapDraw/useMapDrawTool.d.ts +5 -4
  16. package/src/lib/components/SyncGroups/SyncGroupList.d.ts +2 -2
  17. package/src/lib/components/SyncGroups/SyncGroupViewer.d.ts +1 -2
  18. package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTree.d.ts +2 -3
  19. package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTreeConnect.d.ts +3 -4
  20. package/src/lib/components/WMSLoader/WMSLoader.d.ts +3 -3
  21. package/src/lib/components/WMSLoader/WMSLoaderConnect.d.ts +3 -4
  22. package/src/lib/components/WMSLoader/WMSServerList/WMSServerList.d.ts +4 -4
  23. package/src/lib/index.d.ts +2 -2
  24. package/src/lib/store/coreModuleConfig.d.ts +1 -1
  25. package/src/lib/store/generic/selectors.d.ts +2 -2
  26. package/src/lib/store/generic/synchronizationGroups/selector.d.ts +19 -0
  27. package/src/lib/store/generic/synchronizationGroups/selectors.d.ts +7 -7
  28. package/src/lib/store/generic/synchronizationGroups/types.d.ts +17 -1
  29. package/src/lib/store/generic/synchronizationGroups/utils.d.ts +1 -1
  30. package/src/lib/{utils/__mocks__/getCapabilities.d.ts → store/getCapabilities/mocks/mockGetCapabilities.d.ts} +3 -3
  31. package/src/lib/store/layerSelect/selectors.d.ts +1 -1
  32. package/src/lib/store/layerSelect/types.d.ts +11 -0
  33. package/src/lib/store/mapStore/layers/selectors.d.ts +24 -24
  34. package/src/lib/store/mapStore/layers/types.d.ts +8 -8
  35. package/src/lib/store/mapStore/map/constants.d.ts +1 -0
  36. package/src/lib/store/mapStore/map/defaultLayers.d.ts +15 -0
  37. package/src/lib/store/mapStore/map/filterLayers.d.ts +10 -0
  38. package/src/lib/{components/SyncGroups/utils.d.ts → store/mapStore/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.d.ts} +1 -1
  39. package/src/lib/store/mapStore/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.spec.d.ts +1 -0
  40. package/src/lib/store/mapStore/map/selectors.d.ts +49 -49
  41. package/src/lib/store/mapStore/service/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -0
  42. package/src/lib/store/mapStore/service/selectors.d.ts +6 -6
  43. package/src/lib/store/mapStore/storeTestSettings.d.ts +10 -0
  44. package/src/lib/store/mapStore/storeTestUtils.d.ts +9 -0
  45. package/src/lib/store/types.d.ts +5 -0
  46. package/src/lib/store/ui/selectors.d.ts +9 -9
  47. package/src/lib/utils/defaultConfigurations.d.ts +2 -2
  48. package/src/lib/utils/defaultTestSettings.d.ts +2 -11
  49. package/src/lib/utils/jsonPresetFilter.d.ts +7 -15
  50. package/src/lib/utils/publicLayers.d.ts +1 -14
  51. package/src/lib/utils/publicServices.d.ts +0 -5
  52. package/src/lib/utils/testUtils.d.ts +1 -8
  53. package/src/lib/components/SyncGroups/selector.d.ts +0 -20
  54. package/src/lib/components/SyncGroups/types.d.ts +0 -17
  55. package/src/lib/components/WMSLoader/services.d.ts +0 -8
  56. package/src/lib/types/types.d.ts +0 -5
  57. package/src/lib/utils/types.d.ts +0 -5
  58. /package/src/lib/{utils → store/getCapabilities}/getCapabilities.d.ts +0 -0
  59. /package/src/lib/{utils → store/getCapabilities}/getCapabilities.spec.d.ts +0 -0
  60. /package/src/lib/{utils/__mocks__ → store/getCapabilities/mocks}/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +0 -0
  61. /package/src/lib/{utils → store/layerSelect}/localStorage.d.ts +0 -0
  62. /package/src/lib/{utils → store/layerSelect}/localStorage.spec.d.ts +0 -0
  63. /package/src/lib/{components/SyncGroups/utils.spec.d.ts → store/mapStore/map/filterLayers.spec.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "5.1.1",
3
+ "version": "5.2.1",
4
4
  "description": "GeoWeb Core library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -15,11 +15,11 @@
15
15
  "peerDependencies": {
16
16
  "@mui/material": "5.12.0",
17
17
  "@mui/system": "5.12.0",
18
- "@opengeoweb/api": "5.1.1",
19
- "@opengeoweb/form-fields": "5.1.1",
20
- "@opengeoweb/shared": "5.1.1",
21
- "@opengeoweb/theme": "5.1.1",
22
- "@opengeoweb/webmap": "5.1.1",
18
+ "@opengeoweb/api": "5.2.1",
19
+ "@opengeoweb/form-fields": "5.2.1",
20
+ "@opengeoweb/shared": "5.2.1",
21
+ "@opengeoweb/theme": "5.2.1",
22
+ "@opengeoweb/webmap": "5.2.1",
23
23
  "@redux-eggs/core": "2.2.0",
24
24
  "@redux-eggs/redux-toolkit": "2.2.0",
25
25
  "@redux-eggs/saga-extension": "2.2.0",
@@ -36,7 +36,7 @@
36
36
  "re-resizable": "6.9.9",
37
37
  "react": "18.2.0",
38
38
  "react-draggable": "4.4.5",
39
- "react-hook-form": "7.41.5",
39
+ "react-hook-form": "7.45.2",
40
40
  "react-intl": "6.4.4",
41
41
  "react-redux": "8.1.1",
42
42
  "react-resize-detector": "9.1.0",
@@ -1,9 +1,8 @@
1
1
  import * as React from 'react';
2
- import { Service } from '../../WMSLoader/services';
3
- import { layerTypes } from '../../../store';
2
+ import { layerSelectTypes, layerTypes } from '../../../store';
4
3
  interface AddLayerButtonProps {
5
- onRenderTree?: (service: Service) => React.ReactChild;
6
- preloadedServices?: Service[];
4
+ onRenderTree?: (service: layerSelectTypes.LayerSelectService) => React.ReactChild;
5
+ preloadedServices?: layerSelectTypes.LayerSelectService[];
7
6
  tooltip?: string;
8
7
  layerType?: layerTypes.LayerType;
9
8
  shouldFocus?: boolean;
@@ -1,9 +1,8 @@
1
1
  import * as React from 'react';
2
- import { layerTypes } from '../../../store';
3
- import { Service } from '../../WMSLoader/services';
2
+ import { layerSelectTypes, layerTypes } from '../../../store';
4
3
  interface AddLayerPopupProps {
5
- onRenderTree?: (service: Service) => React.ReactChild;
6
- preloadedServices?: Service[];
4
+ onRenderTree?: (service: layerSelectTypes.LayerSelectService) => React.ReactChild;
5
+ preloadedServices?: layerSelectTypes.LayerSelectService[];
7
6
  open?: boolean;
8
7
  handleClose?: () => void;
9
8
  layerType?: layerTypes.LayerType;
@@ -1,11 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import { LayerManagerCustomSettings } from '../LayerManagerUtils';
3
- import { layerTypes } from '../../../store';
4
- import { Service } from '../../WMSLoader/services';
3
+ import { layerSelectTypes, layerTypes } from '../../../store';
5
4
  interface BaseLayerRowProps {
6
5
  mapId: string;
7
6
  preloadedAvailableBaseLayers?: layerTypes.Layer[];
8
- preloadedServices?: Service[];
7
+ preloadedServices?: layerSelectTypes.LayerSelectService[];
9
8
  tooltip?: string;
10
9
  settings?: LayerManagerCustomSettings['footer'];
11
10
  }
@@ -1,8 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { HeaderSize } from '@opengeoweb/shared';
3
3
  import { layerTypes } from '../../store';
4
- import type { uiTypes } from '../../store';
5
- import { Service } from '../WMSLoader/services';
4
+ import type { layerSelectTypes, uiTypes } from '../../store';
6
5
  import { LayerManagerCustomSettings } from './LayerManagerUtils';
7
6
  import { Size } from './LayerManagerHeaderOptions';
8
7
  export declare type Position = {
@@ -13,7 +12,7 @@ export declare type Position = {
13
12
  interface LayerManagerProps {
14
13
  mapId: string;
15
14
  preloadedAvailableBaseLayers?: layerTypes.Layer[];
16
- preloadedBaseServices?: Service[];
15
+ preloadedBaseServices?: layerSelectTypes.LayerSelectService[];
17
16
  bounds?: string;
18
17
  title?: string;
19
18
  onClose: () => void;
@@ -1,12 +1,11 @@
1
1
  import * as React from 'react';
2
- import { layerTypes, uiTypes } from '../../store';
3
- import { Service } from '../WMSLoader/services';
2
+ import { layerTypes, uiTypes, layerSelectTypes } from '../../store';
4
3
  export declare const getDialogType: (mapId: any, isMultiMap: boolean, isDocked: boolean) => string;
5
4
  interface LayerManagerConnectProps {
6
5
  mapId?: string;
7
6
  preloadedAvailableBaseLayers?: layerTypes.Layer[];
8
- preloadedMapServices?: Service[];
9
- preloadedBaseServices?: Service[];
7
+ preloadedMapServices?: layerSelectTypes.LayerSelectService[];
8
+ preloadedBaseServices?: layerSelectTypes.LayerSelectService[];
10
9
  bounds?: string;
11
10
  title?: string;
12
11
  showMapIdInTitle?: boolean;
@@ -21,8 +20,8 @@ interface LayerManagerConnectProps {
21
20
  * a dialog should have the <LayerManagerMapButtonConnect/> which is used to focus the correct map and open the dialog
22
21
  *
23
22
  * Expects the following props:
24
- * @param {Service[]} preloadedMapServices preloadedMapServices: array of Service objects - contains an array of Service objects that are preloaded into in the WMS Loader for maplayers
25
- * @param {Service[]} preloadedBaseServices preloadedBaseServices: array of Service objects - contains an array of Service objects that are preloaded into in the WMS Loader fpr baselayers
23
+ * @param {layerSelectTypes.LayerSelectService[]} preloadedMapServices preloadedMapServices: array of Service objects - contains an array of Service objects that are preloaded into in the WMS Loader for maplayers
24
+ * @param {layerSelectTypes.LayerSelectService[]} preloadedBaseServices preloadedBaseServices: array of Service objects - contains an array of Service objects that are preloaded into in the WMS Loader fpr baselayers
26
25
  * @param {Layer[]} preloadedAvailableBaseLayers preloadedAvailableBaseLayers: array of Layer objects - contains an array of Layer objects (consisting solely of type baseLayer) that are available to be shown as basemaps
27
26
  * ``` <LayerManagerConnect />```
28
27
  */
@@ -1,6 +1,4 @@
1
- import { serviceTypes } from '../../store';
2
- import { NoIdService, UserAddedServices } from '../../utils/types';
3
- import { Service } from '../WMSLoader/services';
4
- export declare const getServicesToLoad: (services: NoIdService[]) => serviceTypes.InitialService[];
5
- export declare const useFetchServices: (dialogType: string, preloadedServices?: Service[] | undefined, shouldDisableFetch?: boolean) => void;
6
- export declare const mergePresetsAndUserAddedServices: (presets: Service[], userAddedServices: UserAddedServices) => NoIdService[];
1
+ import { layerSelectTypes, serviceTypes } from '../../store';
2
+ export declare const getServicesToLoad: (services: layerSelectTypes.NoIdService[]) => serviceTypes.InitialService[];
3
+ export declare const useFetchServices: (dialogType: string, preloadedServices?: layerSelectTypes.LayerSelectService[] | undefined, shouldDisableFetch?: boolean) => void;
4
+ export declare const mergePresetsAndUserAddedServices: (presets: layerSelectTypes.LayerSelectService[], userAddedServices: layerSelectTypes.UserAddedServices) => layerSelectTypes.NoIdService[];
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import { uiTypes } from '../../store';
3
- export declare const IS_LEGEND_OPEN_BY_DEFAULT = false;
4
3
  interface LegendConnectProps {
5
4
  showMapId?: boolean;
6
5
  source?: uiTypes.Source;
@@ -1,12 +1,6 @@
1
1
  import React from 'react';
2
- import { MapDrawToolOptions } from './useMapDrawTool';
3
2
  declare const _default: {
4
3
  title: string;
5
4
  };
6
5
  export default _default;
7
- export declare const MapDrawToolDemo: () => React.ReactElement;
8
- interface MapDrawToolIntersectDemoProps {
9
- mapDrawOptions: MapDrawToolOptions;
10
- }
11
- export declare const MapDrawToolIntersectDemo: React.FC<MapDrawToolIntersectDemoProps>;
12
- export declare const MapDrawToolIntersectWithShapeDemo: () => React.ReactElement;
6
+ export declare const SimpleMapdrawtool: () => React.ReactElement;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const DoubleMapControlsDemo: () => React.ReactElement;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { MapDrawToolOptions } from './useMapDrawTool';
3
+ declare const _default: {
4
+ title: string;
5
+ };
6
+ export default _default;
7
+ interface MapDrawToolIntersectDemoProps {
8
+ mapDrawOptions: MapDrawToolOptions;
9
+ }
10
+ export declare const IntersectionDemo: React.FC<MapDrawToolIntersectDemoProps>;
11
+ export declare const IntersectionWithShapeDemo: () => React.ReactElement;
@@ -53,4 +53,5 @@ export declare const intersectGeoJSONS: (a: GeoJSON.FeatureCollection, b: GeoJSO
53
53
  export declare const createInterSections: (geojson: GeoJSON.FeatureCollection, otherGeoJSON: GeoJSON.FeatureCollection, geoJSONproperties?: GeoJSON.GeoJsonProperties) => GeoJSON.FeatureCollection;
54
54
  export declare const getGeoJson: (geojson: GeoJSON.FeatureCollection, shouldAllowMultipleshapes: boolean) => GeoJSON.FeatureCollection;
55
55
  export declare const getFeatureCollection: (geoJSONFeature: GeoJSON.Feature | GeoJSON.FeatureCollection, shouldAllowMultipleshapes: boolean, geoJSONFeatureCollection?: GeoJSON.FeatureCollection) => GeoJSON.FeatureCollection;
56
+ export declare const isGeoJSONFeatureCreatedByTool: (existingJSON: GeoJSON.FeatureCollection, newGeoJSON: GeoJSON.Feature | GeoJSON.FeatureCollection) => boolean;
56
57
  export {};
@@ -1,8 +1,11 @@
1
1
  import React from 'react';
2
+ import { SxProps } from '@mui/material';
2
3
  interface GeoJSONTextFieldProps {
3
4
  geoJSON: GeoJSON.FeatureCollection;
4
5
  onChangeGeoJSON?: (geoJSON: GeoJSON.FeatureCollection) => void;
5
6
  title?: string;
7
+ sx?: SxProps;
8
+ maxRows?: number;
6
9
  }
7
10
  declare const GeoJSONTextField: React.FC<GeoJSONTextFieldProps>;
8
11
  export default GeoJSONTextField;
@@ -6,6 +6,7 @@ export declare const defaultIntersectionStyleProperties: GeoJSON.GeoJsonProperti
6
6
  export declare const emptyLineString: GeoJSON.Feature;
7
7
  export declare const emptyPoint: GeoJSON.Feature;
8
8
  export declare const emptyPolygon: GeoJSON.Feature;
9
+ export declare const emptyBox: GeoJSON.Feature;
9
10
  export declare const emptyIntersectionShape: GeoJSON.FeatureCollection;
10
11
  export declare type DrawMode = DRAWMODE | 'DELETE' | '';
11
12
  declare type DrawLayerType = 'geoJSON' | 'geoJSONIntersection' | 'geoJSONIntersectionBounds';
@@ -26,7 +27,6 @@ interface MapDrawToolProps {
26
27
  editModes: EditMode[];
27
28
  changeDrawMode: (mode: DrawMode) => void;
28
29
  isInEditMode: boolean;
29
- drawMode: string;
30
30
  setEditMode: (shouldEnable: boolean) => void;
31
31
  featureLayerIndex: number;
32
32
  setFeatureLayerIndex: (newIndex: number) => void;
@@ -35,15 +35,16 @@ interface MapDrawToolProps {
35
35
  setActiveTool: (newToolId: string) => void;
36
36
  layers: MapViewLayerProps[];
37
37
  getLayer: (layerType: DrawLayerType, layerId: string) => MapViewLayerProps;
38
+ deactivateTool: () => void;
39
+ setEditModes: (editModes: EditMode[]) => void;
38
40
  }
39
41
  export interface MapDrawToolOptions {
40
- editModes?: EditMode[];
41
42
  shouldAllowMultipleshapes?: boolean;
43
+ defaultEditModes?: EditMode[];
42
44
  defaultGeoJSON?: GeoJSON.FeatureCollection;
43
45
  defaultGeoJSONIntersection?: GeoJSON.FeatureCollection;
44
46
  defaultGeoJSONIntersectionBounds?: GeoJSON.FeatureCollection;
45
47
  defaultGeoJSONIntersectionProperties?: GeoJSON.GeoJsonProperties;
46
- defaultActiveTool?: string;
47
48
  }
48
49
  export declare const defaultPoint: {
49
50
  id: string;
@@ -100,5 +101,5 @@ export declare const defaultModes: ({
100
101
  shape: import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
101
102
  isSelectable: boolean;
102
103
  })[];
103
- export declare const useMapDrawTool: ({ editModes, shouldAllowMultipleshapes, defaultGeoJSON, defaultGeoJSONIntersection, defaultGeoJSONIntersectionBounds, defaultGeoJSONIntersectionProperties, defaultActiveTool, }: MapDrawToolOptions) => MapDrawToolProps;
104
+ export declare const useMapDrawTool: ({ defaultEditModes, shouldAllowMultipleshapes, defaultGeoJSON, defaultGeoJSONIntersection, defaultGeoJSONIntersectionBounds, defaultGeoJSONIntersectionProperties, }: MapDrawToolOptions) => MapDrawToolProps;
104
105
  export {};
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { GroupsAndSources } from './types';
2
+ import { syncGroupsTypes } from '../../store';
3
3
  interface SyncGroupProps {
4
- viewStateData: GroupsAndSources;
4
+ viewStateData: syncGroupsTypes.GroupsAndSources;
5
5
  title: string;
6
6
  handleToggle: (arg1: string, arg2?: string) => void;
7
7
  addNewGroup: (number: string) => void;
@@ -1,10 +1,9 @@
1
1
  import * as React from 'react';
2
- import { SyncGroupViewState } from './types';
3
2
  import { syncGroupsTypes } from '../../store';
4
3
  interface SyncGroupViewerProps {
5
4
  onClose: () => void;
6
5
  isOpen: boolean;
7
- syncGroupViewState: SyncGroupViewState;
6
+ syncGroupViewState: syncGroupsTypes.SyncGroupViewState;
8
7
  syncGroupAddTarget: (payload: syncGroupsTypes.SyncGroupAddTargetPayload) => void;
9
8
  syncGroupRemoveTarget: (payload: syncGroupsTypes.SyncGroupRemoveTargetPayload) => void;
10
9
  syncGroupAddGroup: (payload: syncGroupsTypes.SyncGroupAddGroupPayload) => void;
@@ -1,8 +1,7 @@
1
1
  import * as React from 'react';
2
- import { Service } from '../services';
3
- import { layerTypes } from '../../../store';
2
+ import { layerSelectTypes, layerTypes } from '../../../store';
4
3
  interface WMSLayerTreeProps {
5
- service: Service;
4
+ service: layerSelectTypes.LayerSelectService;
6
5
  onClickLayer: (serviceURL: string, layerName: string) => void;
7
6
  highlightedLayers: layerTypes.Layer[];
8
7
  }
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
- import { layerActions, layerTypes } from '../../../store';
3
- import { Service } from '../services';
2
+ import { layerActions, layerTypes, layerSelectTypes } from '../../../store';
4
3
  export interface WMSLayerTreeConnectProps {
5
- service: Service;
4
+ service: layerSelectTypes.LayerSelectService;
6
5
  addLayer?: typeof layerActions.addLayer;
7
6
  setBaseLayers?: typeof layerActions.setBaseLayers;
8
7
  addAvailableBaseLayer?: typeof layerActions.addAvailableBaseLayer;
@@ -11,7 +10,7 @@ export interface WMSLayerTreeConnectProps {
11
10
  layerType?: layerTypes.LayerType;
12
11
  }
13
12
  declare const WMSLayerTreeConnect: import("react-redux").ConnectedComponent<React.FC<WMSLayerTreeConnectProps>, {
14
- service: Service;
13
+ service: layerSelectTypes.LayerSelectService;
15
14
  mapId: string;
16
15
  layerType?: layerTypes.LayerType | undefined;
17
16
  addLayer?: import("@reduxjs/toolkit").ActionCreatorWithPayload<layerTypes.AddLayerPayload, "layerReducer/addLayer"> | undefined;
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
- import { Service } from './services';
2
+ import { layerSelectTypes } from '../../store';
3
3
  interface WMSLoaderProps {
4
4
  onClickService?: (serviceURL: string, layerName: string) => void;
5
- onRenderTree?: (service: Service) => React.ReactChild;
5
+ onRenderTree?: (service: layerSelectTypes.LayerSelectService) => React.ReactChild;
6
6
  highlightedLayers?: [];
7
- preloadedServices?: Service[];
7
+ preloadedServices?: layerSelectTypes.LayerSelectService[];
8
8
  tooltip?: string;
9
9
  }
10
10
  declare const WMSLoader: React.FC<WMSLoaderProps>;
@@ -1,9 +1,8 @@
1
1
  import * as React from 'react';
2
- import { Service } from './services';
3
- import { layerTypes } from '../../store';
2
+ import { layerSelectTypes, layerTypes } from '../../store';
4
3
  interface WMSLoaderConnectProps {
5
4
  mapId: string;
6
- preloadedServices?: Service[];
5
+ preloadedServices?: layerSelectTypes.LayerSelectService[];
7
6
  layerType?: layerTypes.LayerType;
8
7
  tooltip?: string;
9
8
  }
@@ -13,7 +12,7 @@ interface WMSLoaderConnectProps {
13
12
  *
14
13
  * Expects the following props:
15
14
  * @param {string} mapId mapId: string - Id of the map
16
- * @param {Service[]} [preloadedServices] **optional** preloadedServices: array of Service objects - contains an array of Service objects that are to be loaded as preconfigured WMS services
15
+ * @param {ServiceRefactorMe[]} [preloadedServices] **optional** preloadedServices: array of Service objects - contains an array of Service objects that are to be loaded as preconfigured WMS services
17
16
  * @example
18
17
  * ``` <WMSLoaderConnect mapId="mapid_1" preloadedServices = {preloadedServicesList} /> ```
19
18
  */
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
- import { Service } from '../services';
2
+ import { layerSelectTypes } from '../../../store';
3
3
  interface WMSServerListProps {
4
- availableServices: Service[];
5
- handleChangeService: (service: Service) => void;
6
- service: Service;
4
+ availableServices: layerSelectTypes.LayerSelectService[];
5
+ handleChangeService: (service: layerSelectTypes.LayerSelectService) => void;
6
+ service: layerSelectTypes.LayerSelectService;
7
7
  }
8
8
  declare const WMSServerList: React.FC<WMSServerListProps>;
9
9
  export default WMSServerList;
@@ -97,7 +97,7 @@ export * from './store/mapStore/utils/helpers';
97
97
  export { SyncGroupViewerConnect } from './components/SyncGroups/SyncGroupViewerConnect';
98
98
  export { SyncGroups };
99
99
  export { store } from './storybookUtils/store';
100
- export * from './types/types';
100
+ export * from './store/types';
101
101
  export { coreModuleConfig };
102
102
  export { LayerManagerConnect, LayerManagerHeaderOptions, LayerManagerDescriptionRow, LayerManagerBaseLayerRow, LayerManagerLayerContainerRow, LayerSelectConnect, LayerManagerMapButtonConnect, LayerManager, useFetchServices, };
103
103
  export { MultiDimensionSelectMapButtonsConnect, MultiMapDimensionSelectConnect, };
@@ -105,7 +105,7 @@ export * as publicLayers from './utils/publicLayers';
105
105
  export * as publicServices from './utils/publicServices';
106
106
  export * as testLayers from './utils/testLayers';
107
107
  export * from './utils/jsonPresetFilter';
108
- export * from './utils/types';
108
+ export * from './store/layerSelect/types';
109
109
  export * as defaultConfigurations from './utils/defaultConfigurations';
110
110
  export * from './components/Providers/Providers';
111
111
  export * from './components/Snackbar';
@@ -1,2 +1,2 @@
1
- declare const coreModuleConfig: (import("@redux-eggs/core").Egg<import("redux").Store<import("./mapStore").WebMapStateModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./generic/synchronizationGroups/types").SynchronizationGroupModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./ui/types").UIModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./layerSelect/types").LayerSelectModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./snackbar/types").SnackbarModuleStore, import("redux").AnyAction>>)[];
1
+ declare const coreModuleConfig: (import("@redux-eggs/core").Egg<import("redux").Store<import("./mapStore").WebMapStateModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./generic/synchronizationGroups/types").SynchronizationGroupModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./ui/types").UIModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("..").LayerSelectModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./snackbar/types").SnackbarModuleStore, import("redux").AnyAction>>)[];
2
2
  export default coreModuleConfig;
@@ -5,7 +5,7 @@ export declare const getSynchronizationGroupStore: ((state: {
5
5
  webmap?: import("../mapStore/types").WebMapState | undefined;
6
6
  services?: import("../mapStore/types").ServiceState | undefined;
7
7
  layers?: import("../mapStore/types").LayerState | undefined;
8
- layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
8
+ layerSelect?: import("../..").LayerSelectStoreType | undefined;
9
9
  }) => SynchronizationGroupState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => SynchronizationGroupState, {
10
10
  clearCache: () => void;
11
11
  }> & {
@@ -14,7 +14,7 @@ export declare const getSynchronizationGroupStore: ((state: {
14
14
  export declare const getTime: ((state: {
15
15
  sources: import("./synchronizationGroups/types").SynchronizationSources;
16
16
  groups: import("./synchronizationGroups/types").SynchronizationGroups;
17
- viewState: import("../../components/SyncGroups/types").SyncGroupViewState;
17
+ viewState: import("./synchronizationGroups/types").SyncGroupViewState;
18
18
  }, params_0: string) => string | null) & import("reselect").OutputSelectorFields<(args_0: SynchronizationSource) => string | null, {
19
19
  clearCache: () => void;
20
20
  }> & {
@@ -0,0 +1,19 @@
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,4 +1,4 @@
1
- import type { AppStore } from '../../../types/types';
1
+ import type { AppStore } from '../../types';
2
2
  import type { GenericSyncActionPayload } from '../synchronizationActions/types';
3
3
  import type { GenericActionPayload } from '../types';
4
4
  import type { SyncGroupTarget, SynchronizationGroup, SynchronizationGroupState, SynchronizationSource, SyncType } from './types';
@@ -16,7 +16,7 @@ export declare const getSynchronizationGroupState: ((state: {
16
16
  webmap?: import("../../mapStore/types").WebMapState | undefined;
17
17
  services?: import("../../mapStore/types").ServiceState | undefined;
18
18
  layers?: import("../../mapStore/types").LayerState | undefined;
19
- layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
19
+ layerSelect?: import("../../..").LayerSelectStoreType | undefined;
20
20
  }) => SynchronizationGroupState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => SynchronizationGroupState, {
21
21
  clearCache: () => void;
22
22
  }> & {
@@ -32,7 +32,7 @@ export declare const getAllTargetGroupsForSource: ((state: {
32
32
  webmap?: import("../../mapStore/types").WebMapState | undefined;
33
33
  services?: import("../../mapStore/types").ServiceState | undefined;
34
34
  layers?: import("../../mapStore/types").LayerState | undefined;
35
- layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
35
+ layerSelect?: import("../../..").LayerSelectStoreType | undefined;
36
36
  }, params_0: string) => string[]) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState, args_1: string) => string[], {
37
37
  clearCache: () => void;
38
38
  }> & {
@@ -44,8 +44,8 @@ export declare const syncGroupGetViewState: ((state: {
44
44
  webmap?: import("../../mapStore/types").WebMapState | undefined;
45
45
  services?: import("../../mapStore/types").ServiceState | undefined;
46
46
  layers?: import("../../mapStore/types").LayerState | undefined;
47
- layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
48
- }) => import("../../../components/SyncGroups/types").SyncGroupViewState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => import("../../../components/SyncGroups/types").SyncGroupViewState, {
47
+ layerSelect?: import("../../..").LayerSelectStoreType | undefined;
48
+ }) => import("./types").SyncGroupViewState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => import("./types").SyncGroupViewState, {
49
49
  clearCache: () => void;
50
50
  }> & {
51
51
  clearCache: () => void;
@@ -56,7 +56,7 @@ export declare const getSyncedMapIdsForTimeslider: ((state: {
56
56
  webmap?: import("../../mapStore/types").WebMapState | undefined;
57
57
  services?: import("../../mapStore/types").ServiceState | undefined;
58
58
  layers?: import("../../mapStore/types").LayerState | undefined;
59
- layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
59
+ layerSelect?: import("../../..").LayerSelectStoreType | undefined;
60
60
  }) => string[]) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => string[], {
61
61
  clearCache: () => void;
62
62
  }> & {
@@ -68,7 +68,7 @@ export declare const getSyncGroupTargets: ((state: {
68
68
  webmap?: import("../../mapStore/types").WebMapState | undefined;
69
69
  services?: import("../../mapStore/types").ServiceState | undefined;
70
70
  layers?: import("../../mapStore/types").LayerState | undefined;
71
- layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
71
+ layerSelect?: import("../../..").LayerSelectStoreType | undefined;
72
72
  }) => SyncGroupTarget[]) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => SyncGroupTarget[], {
73
73
  clearCache: () => void;
74
74
  }> & {
@@ -1,6 +1,22 @@
1
1
  import type { GenericActionPayload } from '../types';
2
2
  import { SYNCGROUPS_TYPE_SETBBOX, SYNCGROUPS_TYPE_SETTIME, SYNCGROUPS_TYPE_SETLAYERACTIONS } from './constants';
3
- import type { SyncGroupViewState } from '../../../components/SyncGroups/types';
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
+ }
4
20
  export interface SynchronizationGroup {
5
21
  type: SyncType;
6
22
  title?: string;
@@ -1,4 +1,4 @@
1
- import { AppStore } from '../../../types/types';
1
+ import { AppStore } from '../../types';
2
2
  import { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetBaseLayersPayload } from '../../mapStore/types';
3
3
  import { SyncLayerPayloads, LayerActionPayloadsWithLayerIds } from '../types';
4
4
  import { SyncType } from './types';
@@ -1,5 +1,5 @@
1
1
  import { LayerTree } from '@opengeoweb/webmap';
2
- import { serviceTypes } from '../../store';
2
+ import { serviceTypes } from '../../mapStore';
3
3
  export declare const MOCK_URL_WITH_CHILDREN = "https://mockUrlWithChildren.nl";
4
4
  export declare const MOCK_URL_NO_CHILDREN = "https://mockUrlNoChildren.nl";
5
5
  export declare const MOCK_URL_WITH_NO_TITLE = "https://mockUrlWithNoTitle.nl";
@@ -84,5 +84,5 @@ export declare const mockLayersDefault2: {
84
84
  path: never[];
85
85
  children: never[];
86
86
  };
87
- export declare const getLayersFromService: (url: string) => Promise<LayerTree>;
88
- export declare const getLayersFlattenedFromService: (url: string) => Promise<serviceTypes.ServiceLayer[]>;
87
+ export declare const mockGetLayersFromService: (url: string) => Promise<LayerTree>;
88
+ export declare const mockGetLayersFlattenedFromService: (url: string) => Promise<serviceTypes.ServiceLayer[]>;
@@ -1,4 +1,4 @@
1
- import type { AppStore } from '../../types/types';
1
+ import type { AppStore } from '../types';
2
2
  import { LayerSelectStoreType, ActiveServiceObject, ActiveLayerObject, ActiveServiceObjectEntities, ServicePopupObject } from './types';
3
3
  /**
4
4
  * Returns search filter string
@@ -1,5 +1,16 @@
1
1
  import { EntityState } from '@reduxjs/toolkit';
2
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
+ }
3
14
  export interface ActiveLayerObject extends ServiceLayer {
4
15
  serviceName: string;
5
16
  }