@opengeoweb/store 10.1.0 → 11.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 (46) hide show
  1. package/index.esm.js +1337 -1358
  2. package/package.json +3 -2
  3. package/src/store/drawingTool/index.d.ts +2 -3
  4. package/src/store/generic/hooks.d.ts +1 -1
  5. package/src/store/generic/index.d.ts +15 -15
  6. package/src/store/generic/listener.d.ts +1 -1
  7. package/src/store/generic/selectors.d.ts +2 -2
  8. package/src/store/generic/{synchronizationGroups → syncGroups}/index.d.ts +2 -1
  9. package/src/store/generic/{synchronizationGroups → syncGroups}/reducer.d.ts +2 -2
  10. package/src/store/generic/{synchronizationGroups → syncGroups}/types.d.ts +6 -7
  11. package/src/store/index.d.ts +1 -2
  12. package/src/store/map/index.d.ts +0 -1
  13. package/src/store/map/layer/index.d.ts +1 -1
  14. package/src/store/map/layer/reducer.d.ts +1 -2
  15. package/src/store/map/layer/selectors.d.ts +12 -0
  16. package/src/store/map/layer/types.d.ts +2 -2
  17. package/src/store/map/map/index.d.ts +1 -1
  18. package/src/store/map/map/reducer.d.ts +1 -1
  19. package/src/store/map/map/selectors.d.ts +1 -1
  20. package/src/store/map/map/types.d.ts +3 -0
  21. package/src/store/map/service/index.d.ts +1 -1
  22. package/src/store/map/service/reducer.d.ts +1 -2
  23. package/src/store/map/service/types.d.ts +4 -4
  24. package/src/store/router/index.d.ts +1 -2
  25. package/src/store/router/reducer.d.ts +1 -2
  26. package/src/store/store.d.ts +18 -0
  27. package/src/store/types.d.ts +1 -1
  28. package/src/store/ui/index.d.ts +2 -1
  29. package/src/store/ui/reducer.d.ts +1 -2
  30. package/src/store/coreModuleConfig.d.ts +0 -9
  31. package/src/store/drawingTool/config.d.ts +0 -7
  32. package/src/store/generic/config.d.ts +0 -9
  33. package/src/store/map/config.d.ts +0 -8
  34. package/src/store/router/config.d.ts +0 -7
  35. package/src/store/ui/config.d.ts +0 -5
  36. package/src/store/utils/testUtils.d.ts +0 -3
  37. /package/src/store/generic/{synchronizationGroups → syncGroups}/__mocks__/mockState.d.ts +0 -0
  38. /package/src/store/generic/{synchronizationGroups → syncGroups}/constants.d.ts +0 -0
  39. /package/src/store/generic/{synchronizationGroups → syncGroups}/listener.d.ts +0 -0
  40. /package/src/store/generic/{synchronizationGroups → syncGroups}/listener.spec.d.ts +0 -0
  41. /package/src/store/generic/{synchronizationGroups → syncGroups}/reducer.spec.d.ts +0 -0
  42. /package/src/store/generic/{synchronizationGroups → syncGroups}/selector.d.ts +0 -0
  43. /package/src/store/generic/{synchronizationGroups → syncGroups}/selectors.d.ts +0 -0
  44. /package/src/store/generic/{synchronizationGroups → syncGroups}/selectors.spec.d.ts +0 -0
  45. /package/src/store/generic/{synchronizationGroups → syncGroups}/utils.d.ts +0 -0
  46. /package/src/store/generic/{synchronizationGroups → syncGroups}/utils.spec.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/store",
3
- "version": "10.1.0",
3
+ "version": "11.0.0",
4
4
  "description": "GeoWeb Store library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -17,7 +17,8 @@
17
17
  "lodash": "^4.17.21",
18
18
  "@opengeoweb/metronome": "*",
19
19
  "@opengeoweb/timeslider": "*",
20
- "react-router-dom": "^6.23.1"
20
+ "react-router-dom": "^6.23.1",
21
+ "@turf/turf": "^7.2.0"
21
22
  },
22
23
  "peerDependencies": {
23
24
  "react": "18"
@@ -1,5 +1,4 @@
1
- export * as drawtoolSelectors from './selectors';
2
- export * from './config';
1
+ export { drawingToolActions, drawingToolReducer } from './reducer';
2
+ export * as drawingToolSelectors from './selectors';
3
3
  export type { DrawToolItem, DrawtoolModuleStore } from './reducer';
4
4
  export * from './utils';
5
- export { drawingToolActions, drawingToolReducer } from './reducer';
@@ -1,2 +1,2 @@
1
- import { PotentialData } from './synchronizationGroups/types';
1
+ import { PotentialData } from './syncGroups/types';
2
2
  export declare const useUpdateSharedData: (data: PotentialData, panelId?: string) => PotentialData;
@@ -1,24 +1,24 @@
1
1
  export declare const genericActions: {
2
- initialSyncState: import("./synchronizationGroups/types").SynchronizationGroupState;
2
+ initialSyncState: import("./syncGroups/types").SynchronizationGroupState;
3
3
  setTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetTimePayload, string>;
4
4
  setBbox: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetBboxPayload, string>;
5
- setLinkedMap: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./synchronizationGroups/types").SetLinkedMap, "synchronizationGroupsReducer/setLinkedMap">;
6
- updateLinkedMap: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./synchronizationGroups/types").UpdateLinkedMap, "synchronizationGroupsReducer/updateLinkedMap">;
7
- addSharedData: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./synchronizationGroups/types").AddSharedData, "synchronizationGroupsReducer/addSharedData">;
8
- deleteSharedData: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./synchronizationGroups/types").DeleteSharedData, "synchronizationGroupsReducer/deleteSharedData">;
9
- syncGroupAddSource: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./synchronizationGroups/types").SyncGroupsAddSourcePayload, "synchronizationGroupsReducer/syncGroupAddSource">;
10
- syncGroupRemoveSource: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./synchronizationGroups/types").SyncGroupRemoveSourcePayload, "synchronizationGroupsReducer/syncGroupRemoveSource">;
11
- syncGroupAddTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./synchronizationGroups/types").SyncGroupAddTargetPayload, "synchronizationGroupsReducer/syncGroupAddTarget">;
12
- syncGroupRemoveTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./synchronizationGroups/types").SyncGroupRemoveTargetPayload, "synchronizationGroupsReducer/syncGroupRemoveTarget">;
13
- syncGroupLinkTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./synchronizationGroups/types").SyncGroupLinkTargetPayload, "synchronizationGroupsReducer/syncGroupLinkTarget">;
14
- syncGroupAddGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./synchronizationGroups/types").SyncGroupAddGroupPayload, "synchronizationGroupsReducer/syncGroupAddGroup">;
15
- syncGroupRemoveGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./synchronizationGroups/types").SyncGroupRemoveGroupPayload, "synchronizationGroupsReducer/syncGroupRemoveGroup">;
5
+ setLinkedMap: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SetLinkedMap, "synchronizationGroupsReducer/setLinkedMap">;
6
+ updateLinkedMap: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").UpdateLinkedMap, "synchronizationGroupsReducer/updateLinkedMap">;
7
+ addSharedData: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").AddSharedData, "synchronizationGroupsReducer/addSharedData">;
8
+ deleteSharedData: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").DeleteSharedData, "synchronizationGroupsReducer/deleteSharedData">;
9
+ syncGroupAddSource: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SyncGroupsAddSourcePayload, "synchronizationGroupsReducer/syncGroupAddSource">;
10
+ syncGroupRemoveSource: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SyncGroupRemoveSourcePayload, "synchronizationGroupsReducer/syncGroupRemoveSource">;
11
+ syncGroupAddTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SyncGroupAddTargetPayload, "synchronizationGroupsReducer/syncGroupAddTarget">;
12
+ syncGroupRemoveTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SyncGroupRemoveTargetPayload, "synchronizationGroupsReducer/syncGroupRemoveTarget">;
13
+ syncGroupLinkTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SyncGroupLinkTargetPayload, "synchronizationGroupsReducer/syncGroupLinkTarget">;
14
+ syncGroupAddGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SyncGroupAddGroupPayload, "synchronizationGroupsReducer/syncGroupAddGroup">;
15
+ syncGroupRemoveGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SyncGroupRemoveGroupPayload, "synchronizationGroupsReducer/syncGroupRemoveGroup">;
16
16
  syncGroupClear: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"synchronizationGroupsReducer/syncGroupClear">;
17
- syncGroupSetViewState: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./synchronizationGroups/types").SyncGroupSetViewStatePayload, "synchronizationGroupsReducer/syncGroupSetViewState">;
18
- syncGroupToggleIsTimeScrollingEnabled: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./synchronizationGroups/types").SyncGroupToggleIsTimeScrollingEnabled, "synchronizationGroupsReducer/syncGroupToggleIsTimeScrollingEnabled">;
17
+ syncGroupSetViewState: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SyncGroupSetViewStatePayload, "synchronizationGroupsReducer/syncGroupSetViewState">;
18
+ syncGroupToggleIsTimeScrollingEnabled: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SyncGroupToggleIsTimeScrollingEnabled, "synchronizationGroupsReducer/syncGroupToggleIsTimeScrollingEnabled">;
19
19
  };
20
20
  export * as genericSelectors from './selectors';
21
21
  export * from './hooks';
22
- export * from './synchronizationGroups';
22
+ export * from './syncGroups';
23
23
  export * as genericTypes from './types';
24
24
  export * from './loadingIndicator';
@@ -1,2 +1,2 @@
1
- import { SynchronizationGroupModuleState } from './synchronizationGroups/types';
1
+ import { SynchronizationGroupModuleState } from './syncGroups/types';
2
2
  export declare const genericListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<SynchronizationGroupModuleState, import("@reduxjs/toolkit").ThunkDispatch<SynchronizationGroupModuleState, unknown, import("redux").AnyAction>, unknown>;
@@ -1,5 +1,5 @@
1
1
  import type { CoreAppStore } from '../types';
2
- import type { LinkedState, SynchronizationGroupState, SynchronizationSource } from './synchronizationGroups/types';
2
+ import type { LinkedState, SynchronizationGroupState, SynchronizationSource } from './syncGroups/types';
3
3
  export declare const getSynchronizationGroupStore: ((state: CoreAppStore) => SynchronizationGroupState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => SynchronizationGroupState, {
4
4
  clearCache: () => void;
5
5
  }> & {
@@ -16,7 +16,7 @@ export declare const getLinkedMaps: ((state: any, panelId: string) => string[])
16
16
  clearCache: () => void;
17
17
  };
18
18
  export declare const getLinkedFeatureProviders: (linkedState: LinkedState, mapId: string) => string[];
19
- export declare const selectSharedData: ((state: any, panelId: string) => import("./synchronizationGroups/types").PotentialData) & import("reselect").OutputSelectorFields<(args_0: LinkedState, args_1: string) => import("./synchronizationGroups/types").PotentialData, {
19
+ export declare const selectSharedData: ((state: any, panelId: string) => import("./syncGroups/types").PotentialData) & import("reselect").OutputSelectorFields<(args_0: LinkedState, args_1: string) => import("./syncGroups/types").PotentialData, {
20
20
  clearCache: () => void;
21
21
  }> & {
22
22
  clearCache: () => void;
@@ -1,8 +1,9 @@
1
1
  import { syncGroupsListener } from './listener';
2
2
  export { syncGroupsListener };
3
- export { actions as syncGroupsActions, initialState, reducer as syncGroupsReducer, } from './reducer';
3
+ export { syncGroupsActions, initialState, syncGroupsReducer } from './reducer';
4
4
  export * as syncConstants from './constants';
5
5
  export * as types from './types';
6
+ export type { SynchronizationGroupModuleState } from './types';
6
7
  export * as syncGroupsSelectors from './selectors';
7
8
  export * as syncGroupsTypes from './types';
8
9
  export * as syncGroupsSelector from './selector';
@@ -29,7 +29,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<SynchronizationGrou
29
29
  syncGroupToggleIsTimeScrollingEnabled: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupToggleIsTimeScrollingEnabled>) => void;
30
30
  }, "synchronizationGroupsReducer">;
31
31
  export declare const syncGroupAddGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupAddGroupPayload, "synchronizationGroupsReducer/syncGroupAddGroup">, syncGroupAddSource: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupsAddSourcePayload, "synchronizationGroupsReducer/syncGroupAddSource">, syncGroupAddTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupAddTargetPayload, "synchronizationGroupsReducer/syncGroupAddTarget">, syncGroupClear: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"synchronizationGroupsReducer/syncGroupClear">, syncGroupLinkTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupLinkTargetPayload, "synchronizationGroupsReducer/syncGroupLinkTarget">, syncGroupRemoveGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupRemoveGroupPayload, "synchronizationGroupsReducer/syncGroupRemoveGroup">, syncGroupRemoveSource: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupRemoveSourcePayload, "synchronizationGroupsReducer/syncGroupRemoveSource">, syncGroupRemoveTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupRemoveTargetPayload, "synchronizationGroupsReducer/syncGroupRemoveTarget">, syncGroupSetViewState: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupSetViewStatePayload, "synchronizationGroupsReducer/syncGroupSetViewState">;
32
- export declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
32
+ export declare const syncGroupsReducer: import("redux").Reducer<SynchronizationGroupState>, syncGroupsActions: import("@reduxjs/toolkit").CaseReducerActions<{
33
33
  /** Sets the links map.
34
34
  * This is used to override the links when changing workspaces.
35
35
  * @param draft sync state
@@ -55,4 +55,4 @@ export declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
55
55
  syncGroupClear: () => SynchronizationGroupState;
56
56
  syncGroupSetViewState: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupSetViewStatePayload>) => void;
57
57
  syncGroupToggleIsTimeScrollingEnabled: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupToggleIsTimeScrollingEnabled>) => void;
58
- }, "synchronizationGroupsReducer">, reducer: import("redux").Reducer<SynchronizationGroupState>;
58
+ }, "synchronizationGroupsReducer">;
@@ -1,6 +1,7 @@
1
+ import { SystemScope } from '@opengeoweb/shared';
1
2
  import { LoadingIndicatorModuleState } from '../loadingIndicator/types';
2
3
  import type { GenericActionPayload } from '../types';
3
- import { SYNCGROUPS_TYPE_SETBBOX, SYNCGROUPS_TYPE_SETTIME, SYNCGROUPS_TYPE_SETLAYERACTIONS } from './constants';
4
+ import { SYNCGROUPS_TYPE_SETBBOX, SYNCGROUPS_TYPE_SETLAYERACTIONS, SYNCGROUPS_TYPE_SETTIME } from './constants';
4
5
  export interface Group {
5
6
  id: string;
6
7
  selected: string[];
@@ -47,7 +48,6 @@ export interface LinkedState {
47
48
  links: Record<string, string[]>;
48
49
  sharedData: Record<string, PotentialData>;
49
50
  }
50
- type Origin = 'user' | 'system';
51
51
  export type SynchronizationSourcePayLoadByType = Record<string, GenericActionPayload>;
52
52
  export interface SynchronizationSource {
53
53
  types: SyncType[];
@@ -88,12 +88,12 @@ export interface SyncGroupTarget {
88
88
  [key: string]: unknown;
89
89
  }
90
90
  export interface SyncGroupAddTargetPayload extends SyncGroupTarget {
91
- origin?: Origin;
91
+ origin?: SystemScope;
92
92
  }
93
93
  export interface SyncGroupRemoveTargetPayload {
94
94
  groupId: string;
95
95
  targetId: string;
96
- origin?: Origin;
96
+ origin?: SystemScope;
97
97
  }
98
98
  export interface SyncGroupLinkTargetPayload extends SyncGroupTarget {
99
99
  linked: boolean;
@@ -102,7 +102,7 @@ export interface SyncGroupAddGroupPayload {
102
102
  groupId: string;
103
103
  title: string;
104
104
  type: SyncType;
105
- origin?: Origin;
105
+ origin?: SystemScope;
106
106
  }
107
107
  export interface SyncGroupRemoveGroupPayload {
108
108
  groupId: string;
@@ -112,7 +112,7 @@ export interface SyncGroupSetViewStatePayload {
112
112
  }
113
113
  export interface SyncGroupToggleIsTimeScrollingEnabled {
114
114
  isTimeScrollingEnabled: boolean;
115
- origin?: Origin;
115
+ origin?: SystemScope;
116
116
  }
117
117
  export declare const SyncGroupTypeList: string[];
118
118
  export declare enum SyncGroupActionOrigin {
@@ -136,4 +136,3 @@ export interface AddSharedData {
136
136
  export interface DeleteSharedData {
137
137
  panelId: string;
138
138
  }
139
- export {};
@@ -12,8 +12,7 @@ export * from './router';
12
12
  export * from './drawingTool';
13
13
  export * from './types';
14
14
  export * as storeTestUtils from './map/storeTestUtils';
15
- export * from './coreModuleConfig';
16
15
  export * from './generic/linking';
17
16
  export * as storeUtils from './utils';
18
17
  export * from './utils';
19
- export { uiModuleConfig } from './ui/config';
18
+ export * from './store';
@@ -3,4 +3,3 @@ export * from './map';
3
3
  export * from './layer';
4
4
  export type { WebMapStateModuleState, MapPreset, MapPresetInitialProps, } from './types';
5
5
  export * as storeTestSettings from './storeTestSettings';
6
- export * from './config';
@@ -1,4 +1,4 @@
1
- export { layerActions, reducer as layerReducer } from './reducer';
1
+ export { layerActions, layerReducer } from './reducer';
2
2
  export type { LayerActions } from './reducer';
3
3
  export * as layerSelectors from './selectors';
4
4
  export * as layerTypes from './types';
@@ -43,8 +43,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
43
43
  showLayerInfo: (draft: Draft<LayerState>, action: PayloadAction<ShowLayerInfoPayload>) => void;
44
44
  hideLayerInfo: (draft: Draft<LayerState>) => void;
45
45
  }, "layerReducer">;
46
- export declare const reducer: import("redux").Reducer<LayerState>;
47
- export declare const layerActions: import("@reduxjs/toolkit").CaseReducerActions<{
46
+ export declare const layerReducer: import("redux").Reducer<LayerState>, layerActions: import("@reduxjs/toolkit").CaseReducerActions<{
48
47
  addLayer: (draft: Draft<LayerState>, action: PayloadAction<AddLayerPayload>) => void;
49
48
  duplicateMapLayer: (draft: Draft<LayerState>, action: PayloadAction<DuplicateMapLayerPayload>) => void;
50
49
  layerChangeDimension: (draft: Draft<LayerState>, action: PayloadAction<SetLayerDimensionPayload>) => void;
@@ -14,6 +14,18 @@ export declare const getLayerById: ((state: any, layerId: any) => ReduxLayer | u
14
14
  }> & {
15
15
  clearCache: () => void;
16
16
  };
17
+ /**
18
+ * Determines if layer is present
19
+ *
20
+ * @param {object} store store: object - store object
21
+ * @param {string} layerId layerId: string - Id of the layer
22
+ * @returns {boolean} returnType:boolean - true if layer is present
23
+ */
24
+ export declare const getIsLayerPresent: ((state: any, layerId: any) => boolean) & import("reselect").OutputSelectorFields<(args_0: ReduxLayer | undefined) => boolean, {
25
+ clearCache: () => void;
26
+ }> & {
27
+ clearCache: () => void;
28
+ };
17
29
  /**
18
30
  * Gets a layer from the layers part of the store by its Id, but without the time dimension. (All other dimensions are still included)
19
31
  *
@@ -3,7 +3,7 @@ import { FeatureCollection } from 'geojson';
3
3
  import { LayerFoundation } from '@opengeoweb/webmap';
4
4
  import { UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
5
5
  import type { Dimension } from '../map/types';
6
- import type { SyncGroupActionOrigin } from '../../generic/synchronizationGroups/types';
6
+ import type { SyncGroupActionOrigin } from '../../generic/syncGroups/types';
7
7
  import { uiTypes } from '../../ui';
8
8
  export declare enum LayerStatus {
9
9
  default = "default",
@@ -129,7 +129,7 @@ export interface SetAvailableBaseLayersPayload extends AddAvailableBaseLayersPay
129
129
  mapId: string;
130
130
  }
131
131
  export interface ErrorLayerPayload extends LayerPayload {
132
- error: Error;
132
+ error: string;
133
133
  }
134
134
  export interface UpdateLayerInfo extends Action {
135
135
  type: `layerReducer/onUpdateLayerInformation`;
@@ -17,7 +17,7 @@ export declare const mapUtils: {
17
17
  parseTimeDimToISO8601Interval: (timeInterval: string | undefined) => mapTypes.ISO8601Interval[];
18
18
  };
19
19
  export { mapTypes };
20
- export { mapActions, reducer as webmapReducer } from './reducer';
20
+ export { mapActions, mapReducer } from './reducer';
21
21
  export * as mapSelectors from './selectors';
22
22
  export * as mapEnums from './enums';
23
23
  export * from './constants';
@@ -108,4 +108,4 @@ export declare const mapActions: {
108
108
  }, "mapReducer/setMapPresetError">;
109
109
  setDefaultMapSettings: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetDefaultMapSettingsPayload, "mapReducer/setDefaultMapSettings">;
110
110
  };
111
- export declare const reducer: import("redux").Reducer<WebMapState>;
111
+ export declare const mapReducer: import("redux").Reducer<WebMapState>;
@@ -659,7 +659,7 @@ export declare const getLegendId: ((state: CoreAppStore, mapId: string) => strin
659
659
  * @param {string} mapId mapId: string - Id of the map
660
660
  * @returns {MapPreset} returnType: MapPreset
661
661
  */
662
- export declare const getMapPreset: ((state: CoreAppStore & uiTypes.UIModuleState, mapId: string) => MapPreset) & import("reselect").OutputSelectorFields<(args_0: ReduxLayer[], args_1: ReduxLayer[], args_2: ReduxLayer[], args_3: Bbox, args_4: string, args_5: string | undefined, args_6: string | undefined, args_7: string | undefined, args_8: boolean, args_9: boolean, args_10: boolean | undefined, args_11: boolean | undefined, args_12: boolean | undefined, args_13: number, args_14: number | undefined, args_15: string | undefined, args_16: string | undefined, args_17: boolean | undefined, args_18: string | undefined, args_19: uiTypes.UIStoreType) => MapPreset, {
662
+ export declare const getMapPreset: ((state: CoreAppStore & uiTypes.UIModuleState, mapId: string) => MapPreset) & import("reselect").OutputSelectorFields<(args_0: ReduxLayer[], args_1: ReduxLayer[], args_2: ReduxLayer[], args_3: Bbox, args_4: string, args_5: string | undefined, args_6: string | undefined, args_7: string | undefined, args_8: boolean, args_9: boolean, args_10: boolean | undefined, args_11: boolean | undefined, args_12: boolean | undefined, args_13: number, args_14: number | undefined, args_15: string | undefined, args_16: string | undefined, args_17: number | undefined, args_18: boolean | undefined, args_19: boolean | undefined, args_20: string | undefined, args_21: uiTypes.UIStoreType) => MapPreset, {
663
663
  clearCache: () => void;
664
664
  }> & {
665
665
  clearCache: () => void;
@@ -106,6 +106,8 @@ export interface MapPreset {
106
106
  shouldShowDockedLayerManager?: boolean;
107
107
  dockedLayerManagerSize?: DockedLayerManagerSize;
108
108
  selectedMapIds?: string[];
109
+ timeSliderSpan?: number;
110
+ toggleTimeSpanAuto?: boolean;
109
111
  }
110
112
  export interface MapPresetInitialProps {
111
113
  mapPreset: MapPreset;
@@ -153,6 +155,7 @@ export interface SetEndTimeOverriding {
153
155
  export interface SetTimeSliderSpanPayload {
154
156
  mapId: string;
155
157
  timeSliderSpan: number;
158
+ origin?: MapActionOrigin;
156
159
  }
157
160
  export interface SetTimeStepPayload {
158
161
  mapId: string;
@@ -1,4 +1,4 @@
1
- export { serviceActions, reducer as serviceReducer } from './reducer';
1
+ export { serviceActions, serviceReducer } from './reducer';
2
2
  export * as serviceSelectors from './selectors';
3
3
  export * as serviceTypes from './types';
4
4
  export * from './localStorage';
@@ -2,8 +2,7 @@ import { PayloadAction, Draft } from '@reduxjs/toolkit';
2
2
  import { FetchInitialServicesPayload, MapStoreRemoveServicePayload, ServiceState, SetLayersForServicePayload } from './types';
3
3
  import { layerActions } from '../layer/reducer';
4
4
  export declare const initialState: ServiceState;
5
- export declare const reducer: import("redux").Reducer<ServiceState>;
6
- export declare const serviceActions: import("@reduxjs/toolkit").CaseReducerActions<{
5
+ export declare const serviceReducer: import("redux").Reducer<ServiceState>, serviceActions: import("@reduxjs/toolkit").CaseReducerActions<{
7
6
  serviceSetLayers: (draft: Draft<ServiceState>, action: PayloadAction<SetLayersForServicePayload>) => void;
8
7
  mapStoreRemoveService: (draft: Draft<ServiceState>, action: PayloadAction<MapStoreRemoveServicePayload>) => void;
9
8
  fetchInitialServices: (draft: Draft<ServiceState>, action: PayloadAction<FetchInitialServicesPayload>) => void;
@@ -1,22 +1,22 @@
1
+ import { SystemScope } from '@opengeoweb/shared';
1
2
  import { LayerProps } from '@opengeoweb/webmap';
2
3
  export interface InitialService {
3
4
  id: string;
4
5
  name: string;
5
6
  url: string;
6
- scope?: ServiceScope;
7
+ scope?: SystemScope;
7
8
  abstract?: string;
8
9
  }
9
10
  export type NoIdService = Omit<InitialService, 'id'>;
10
11
  export type UserAddedServices = Record<string, NoIdService>;
11
12
  export type Services = Record<string, ReduxService>;
12
- export type ServiceScope = 'user' | 'system';
13
13
  export interface ReduxService {
14
14
  id?: string;
15
15
  name?: string;
16
16
  serviceUrl?: string;
17
17
  active?: boolean;
18
18
  layers?: ServiceLayer[];
19
- scope?: ServiceScope;
19
+ scope?: SystemScope;
20
20
  }
21
21
  /**
22
22
  Used in the services object of webmap to keep a list of available layers in the service
@@ -32,7 +32,7 @@ export interface SetLayersForServicePayload {
32
32
  serviceUrl: string;
33
33
  abstract?: string;
34
34
  layers: ServiceLayer[];
35
- scope: ServiceScope;
35
+ scope: SystemScope;
36
36
  isUpdating?: boolean;
37
37
  }
38
38
  export interface MapStoreRemoveServicePayload {
@@ -1,3 +1,2 @@
1
- export { routerActions, reducer as routerReducer } from './reducer';
1
+ export { routerActions, routerReducer } from './reducer';
2
2
  export * as routerUtils from './utils';
3
- export * from './config';
@@ -2,8 +2,7 @@ import { Draft } from 'immer';
2
2
  import { PayloadAction } from '@reduxjs/toolkit';
3
3
  import { NavigateToUrlPayload } from './types';
4
4
  export declare const initialState: {};
5
- export declare const reducer: import("redux").Reducer<{}>;
6
- export declare const routerActions: import("@reduxjs/toolkit").CaseReducerActions<{
5
+ export declare const routerReducer: import("redux").Reducer<{}>, routerActions: import("@reduxjs/toolkit").CaseReducerActions<{
7
6
  navigateToUrl: (draft: Draft<unknown>, action: PayloadAction<NavigateToUrlPayload>) => void;
8
7
  }, "router">;
9
8
  export type RouterActions = ReturnType<typeof routerActions.navigateToUrl>;
@@ -0,0 +1,18 @@
1
+ import { ToolkitStore } from '@reduxjs/toolkit/dist/configureStore';
2
+ import { WebMapStateModuleState } from './map';
3
+ import { SynchronizationGroupModuleState } from './generic/syncGroups/types';
4
+ import { LoadingIndicatorModuleState } from './generic/loadingIndicator/types';
5
+ import { UIModuleState } from './ui/types';
6
+ import { DrawtoolModuleStore } from './drawingTool/reducer';
7
+ export declare const storeReducerMap: {
8
+ webmap: import("redux").Reducer<import("./map/types").WebMapState>;
9
+ services: import("redux").Reducer<import("./map/types").ServiceState>;
10
+ layers: import("redux").Reducer<import("./map/types").LayerState>;
11
+ syncGroups: import("redux").Reducer<import("./generic/syncGroups/types").SynchronizationGroupState>;
12
+ loadingIndicator: import("redux").Reducer<import("@reduxjs/toolkit").EntityState<import("./generic/loadingIndicator/types").LoadingIndicatorType>>;
13
+ ui: import("redux").Reducer<import("./ui/types").UIStoreType>;
14
+ drawingtools: import("redux").Reducer<import("./drawingTool/reducer").DrawingToolState>;
15
+ router: import("redux").Reducer<{}>;
16
+ };
17
+ export declare const storeMiddlewares: (import("@reduxjs/toolkit").ListenerMiddleware<import("./types").CoreAppStore, import("@reduxjs/toolkit").ThunkDispatch<import("./types").CoreAppStore, unknown, import("redux").AnyAction>, unknown> | import("@reduxjs/toolkit").ListenerMiddleware<import("./router/types").RouterModuleStore, import("@reduxjs/toolkit").ThunkDispatch<import("./router/types").RouterModuleStore, unknown, import("redux").AnyAction>, unknown>)[];
18
+ export declare const createMockStore: (mockState?: WebMapStateModuleState | SynchronizationGroupModuleState | LoadingIndicatorModuleState | UIModuleState | DrawtoolModuleStore) => ToolkitStore;
@@ -1,5 +1,5 @@
1
1
  import type { WebMapStateModuleState } from './map/types';
2
- import type { SynchronizationGroupModuleState } from './generic/synchronizationGroups/types';
2
+ import type { SynchronizationGroupModuleState } from './generic/syncGroups/types';
3
3
  import type { uiTypes } from '.';
4
4
  import type { DrawtoolModuleStore } from './drawingTool';
5
5
  import type { LoadingIndicatorModuleState } from './generic/loadingIndicator/types';
@@ -1,4 +1,5 @@
1
- export { uiActions, reducer as uiReducer } from './reducer';
1
+ export { uiActions, uiReducer } from './reducer';
2
2
  export * as uiSelectors from './selectors';
3
3
  export * as uiTypes from './types';
4
4
  export { useSetupDialog } from './useSetupDialog';
5
+ export type { UIModuleState } from './types';
@@ -20,8 +20,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<UIStoreType, {
20
20
  toggleIsLoadingDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleIsLoadingPayload>) => void;
21
21
  setErrorDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UISetErrorPayload>) => void;
22
22
  }, "uiReducer">;
23
- export declare const reducer: import("redux").Reducer<UIStoreType>;
24
- export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
23
+ export declare const uiReducer: import("redux").Reducer<UIStoreType>, uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
25
24
  registerDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIRegisterDialogPayload>) => void;
26
25
  unregisterDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIUnRegisterDialogPayload>) => void;
27
26
  setActiveMapIdForDialog: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveMapIdForDialogPayload>) => void;
@@ -1,9 +0,0 @@
1
- import { ListenerMiddleware, ReducersMapObject } from '@reduxjs/toolkit';
2
- export declare const coreModuleConfig: ({
3
- reducersMap: ReducersMapObject<Required<import("./map").WebMapStateModuleState>, import("redux").Action<any>>;
4
- middlewares: ListenerMiddleware[];
5
- } | {
6
- reducersMap: ReducersMapObject<any, import("redux").Action<any>>;
7
- })[];
8
- export declare const coreModuleReducersMap: ReducersMapObject;
9
- export declare const coreModuleMiddlewares: ListenerMiddleware[];
@@ -1,7 +0,0 @@
1
- import { ListenerMiddleware, ReducersMapObject } from '@reduxjs/toolkit';
2
- export declare const drawtoolReducersMap: ReducersMapObject;
3
- export declare const drawtoolMiddlewares: ListenerMiddleware[];
4
- export declare const drawtoolModuleConfig: {
5
- reducersMap: ReducersMapObject<any, import("redux").Action<any>>;
6
- middlewares: ListenerMiddleware[];
7
- };
@@ -1,9 +0,0 @@
1
- import { ListenerMiddleware, ReducersMapObject } from '@reduxjs/toolkit';
2
- export declare const synchronizationGroupReducersMap: ReducersMapObject;
3
- export declare const synchronizationGroupMiddlewares: ListenerMiddleware[];
4
- declare const synchronizationGroupConfig: {
5
- id: string;
6
- reducersMap: ReducersMapObject<any, import("redux").Action<any>>;
7
- middlewares: ListenerMiddleware[];
8
- };
9
- export default synchronizationGroupConfig;
@@ -1,8 +0,0 @@
1
- import { ListenerMiddleware, ReducersMapObject } from '@reduxjs/toolkit';
2
- import { WebMapStateModuleState } from './types';
3
- export declare const mapStoreReducers: ReducersMapObject<Required<WebMapStateModuleState>>;
4
- export declare const mapStoreMiddlewares: ListenerMiddleware[];
5
- export declare const mapStoreModuleConfig: {
6
- reducersMap: ReducersMapObject<Required<WebMapStateModuleState>, import("redux").Action<any>>;
7
- middlewares: ListenerMiddleware[];
8
- };
@@ -1,7 +0,0 @@
1
- import { ListenerMiddleware, ReducersMapObject } from '@reduxjs/toolkit';
2
- export declare const routerReducersMap: ReducersMapObject;
3
- export declare const routerMiddlewares: ListenerMiddleware[];
4
- export declare const routerModuleConfig: {
5
- reducersMap: ReducersMapObject<any, import("redux").Action<any>>;
6
- middlewares: ListenerMiddleware[];
7
- };
@@ -1,5 +0,0 @@
1
- import { ReducersMapObject } from '@reduxjs/toolkit';
2
- export declare const uiReducersMap: ReducersMapObject;
3
- export declare const uiModuleConfig: {
4
- reducersMap: ReducersMapObject<any, import("redux").Action<any>>;
5
- };
@@ -1,3 +0,0 @@
1
- import { Store } from '@reduxjs/toolkit';
2
- import { WebMapStateModuleState } from '../map';
3
- export declare const createMockStore: (mockState?: WebMapStateModuleState | undefined) => Store;