@opengeoweb/store 6.1.1 → 8.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 (135) hide show
  1. package/README.md +0 -0
  2. package/index.esm.d.ts +0 -0
  3. package/index.esm.js +1408 -915
  4. package/package.json +5 -3
  5. package/src/index.d.ts +0 -0
  6. package/src/store/app/config.d.ts +0 -0
  7. package/src/store/app/index.d.ts +0 -0
  8. package/src/store/app/reducer.d.ts +0 -0
  9. package/src/store/app/reducer.spec.d.ts +0 -0
  10. package/src/store/app/types.d.ts +0 -0
  11. package/src/store/coreModuleConfig.d.ts +1 -1
  12. package/src/store/drawingtool/config.d.ts +0 -0
  13. package/src/store/drawingtool/index.d.ts +3 -1
  14. package/src/store/drawingtool/reducer.d.ts +10 -9
  15. package/src/store/drawingtool/reducer.spec.d.ts +3 -2
  16. package/src/store/drawingtool/sagas.d.ts +0 -0
  17. package/src/store/drawingtool/sagas.spec.d.ts +0 -0
  18. package/src/store/drawingtool/selectors.d.ts +12 -2
  19. package/src/store/drawingtool/selectors.spec.d.ts +0 -0
  20. package/src/store/drawingtool/testUtils.d.ts +0 -0
  21. package/src/store/drawingtool/utils.d.ts +3 -0
  22. package/src/store/{drawings/reducer.spec.d.ts → drawingtool/utils.spec.d.ts} +0 -0
  23. package/src/store/generic/actions.d.ts +0 -0
  24. package/src/store/generic/config.d.ts +0 -0
  25. package/src/store/generic/index.d.ts +0 -0
  26. package/src/store/generic/sagas.d.ts +0 -0
  27. package/src/store/generic/sagas.spec.d.ts +0 -0
  28. package/src/store/generic/selectors.d.ts +0 -0
  29. package/src/store/generic/selectors.spec.d.ts +0 -0
  30. package/src/store/generic/synchronizationActions/actions.d.ts +0 -0
  31. package/src/store/generic/synchronizationActions/types.d.ts +0 -0
  32. package/src/store/generic/synchronizationGroups/__mocks__/mockState.d.ts +0 -0
  33. package/src/store/generic/synchronizationGroups/constants.d.ts +0 -0
  34. package/src/store/generic/synchronizationGroups/index.d.ts +1 -1
  35. package/src/store/generic/synchronizationGroups/reducer.d.ts +0 -0
  36. package/src/store/generic/synchronizationGroups/reducer.spec.d.ts +0 -0
  37. package/src/store/generic/synchronizationGroups/sagas.d.ts +0 -0
  38. package/src/store/generic/synchronizationGroups/sagas.spec.d.ts +0 -0
  39. package/src/store/generic/synchronizationGroups/selector.d.ts +0 -0
  40. package/src/store/generic/synchronizationGroups/selectors.d.ts +0 -0
  41. package/src/store/generic/synchronizationGroups/selectors.spec.d.ts +0 -0
  42. package/src/store/generic/synchronizationGroups/types.d.ts +0 -0
  43. package/src/store/generic/synchronizationGroups/utils.d.ts +0 -0
  44. package/src/store/generic/synchronizationGroups/utils.spec.d.ts +0 -0
  45. package/src/store/generic/types.d.ts +0 -0
  46. package/src/store/generic/utils.d.ts +0 -0
  47. package/src/store/generic/utils.spec.d.ts +0 -0
  48. package/src/store/index.d.ts +1 -1
  49. package/src/store/layerSelect/config.d.ts +0 -0
  50. package/src/store/layerSelect/index.d.ts +0 -0
  51. package/src/store/layerSelect/localStorage.d.ts +0 -0
  52. package/src/store/layerSelect/localStorage.spec.d.ts +0 -0
  53. package/src/store/layerSelect/reducer.d.ts +0 -0
  54. package/src/store/layerSelect/reducer.spec.d.ts +0 -0
  55. package/src/store/layerSelect/sagas.d.ts +0 -0
  56. package/src/store/layerSelect/sagas.spec.d.ts +0 -0
  57. package/src/store/layerSelect/selectors.d.ts +0 -0
  58. package/src/store/layerSelect/selectors.spec.d.ts +0 -0
  59. package/src/store/layerSelect/types.d.ts +0 -0
  60. package/src/store/layerSelect/utils.d.ts +0 -0
  61. package/src/store/layerSelect/utils.spec.d.ts +0 -0
  62. package/src/store/mapStore/config.d.ts +0 -0
  63. package/src/store/mapStore/index.d.ts +0 -0
  64. package/src/store/mapStore/layers/index.d.ts +0 -0
  65. package/src/store/mapStore/layers/reducer.d.ts +0 -0
  66. package/src/store/mapStore/layers/reducer.spec.d.ts +0 -0
  67. package/src/store/mapStore/layers/selectors.d.ts +0 -0
  68. package/src/store/mapStore/layers/selectors.spec.d.ts +0 -0
  69. package/src/store/mapStore/layers/types.d.ts +0 -0
  70. package/src/store/mapStore/layers/utils.d.ts +0 -0
  71. package/src/store/mapStore/layers/utils.spec.d.ts +0 -0
  72. package/src/store/mapStore/map/actions.d.ts +0 -0
  73. package/src/store/mapStore/map/constants.d.ts +0 -0
  74. package/src/store/mapStore/map/enums.d.ts +0 -0
  75. package/src/store/mapStore/map/filterLayers.d.ts +0 -0
  76. package/src/store/mapStore/map/filterLayers.spec.d.ts +0 -0
  77. package/src/store/mapStore/map/index.d.ts +1 -0
  78. package/src/store/mapStore/map/reducer.d.ts +0 -0
  79. package/src/store/mapStore/map/reducer.spec.d.ts +0 -0
  80. package/src/store/mapStore/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.d.ts +0 -0
  81. package/src/store/mapStore/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.spec.d.ts +0 -0
  82. package/src/store/mapStore/map/sagas.d.ts +0 -0
  83. package/src/store/mapStore/map/sagas.spec.d.ts +0 -0
  84. package/src/store/mapStore/map/selectors.d.ts +11 -1
  85. package/src/store/mapStore/map/selectors.spec.d.ts +0 -0
  86. package/src/store/mapStore/map/types.d.ts +2 -0
  87. package/src/store/mapStore/map/utils.d.ts +1 -0
  88. package/src/store/mapStore/map/utils.spec.d.ts +0 -0
  89. package/src/store/mapStore/service/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +0 -0
  90. package/src/store/mapStore/service/index.d.ts +0 -0
  91. package/src/store/mapStore/service/reducer.d.ts +0 -0
  92. package/src/store/mapStore/service/reducer.spec.d.ts +0 -0
  93. package/src/store/mapStore/service/sagas.d.ts +0 -0
  94. package/src/store/mapStore/service/sagas.spec.d.ts +0 -0
  95. package/src/store/mapStore/service/selectors.d.ts +0 -0
  96. package/src/store/mapStore/service/selectors.spec.d.ts +0 -0
  97. package/src/store/mapStore/service/types.d.ts +2 -1
  98. package/src/store/mapStore/storeTestSettings.d.ts +0 -0
  99. package/src/store/mapStore/storeTestUtils.d.ts +0 -0
  100. package/src/store/mapStore/types.d.ts +0 -0
  101. package/src/store/router/config.d.ts +0 -0
  102. package/src/store/router/index.d.ts +0 -0
  103. package/src/store/router/reducer.d.ts +0 -0
  104. package/src/store/router/reducer.spec.d.ts +0 -0
  105. package/src/store/router/sagas.d.ts +0 -0
  106. package/src/store/router/sagas.spec.d.ts +0 -0
  107. package/src/store/router/types.d.ts +0 -0
  108. package/src/store/router/utils.d.ts +0 -0
  109. package/src/store/snackbar/config.d.ts +0 -0
  110. package/src/store/snackbar/index.d.ts +0 -0
  111. package/src/store/snackbar/reducer.d.ts +0 -0
  112. package/src/store/snackbar/reducer.spec.d.ts +0 -0
  113. package/src/store/snackbar/sagas.d.ts +0 -0
  114. package/src/store/snackbar/sagas.spec.d.ts +0 -0
  115. package/src/store/snackbar/selectors.d.ts +0 -0
  116. package/src/store/snackbar/selectors.spec.d.ts +0 -0
  117. package/src/store/snackbar/types.d.ts +0 -0
  118. package/src/store/types.d.ts +1 -2
  119. package/src/store/ui/config.d.ts +0 -0
  120. package/src/store/ui/index.d.ts +0 -0
  121. package/src/store/ui/reducer.d.ts +0 -0
  122. package/src/store/ui/reducer.spec.d.ts +0 -0
  123. package/src/store/ui/sagas.d.ts +0 -0
  124. package/src/store/ui/sagas.test.d.ts +0 -0
  125. package/src/store/ui/selectors.d.ts +1 -1
  126. package/src/store/ui/selectors.spec.d.ts +0 -0
  127. package/src/store/ui/types.d.ts +3 -3
  128. package/src/store/utils.d.ts +0 -0
  129. package/src/store/drawings/config.d.ts +0 -4
  130. package/src/store/drawings/index.d.ts +0 -4
  131. package/src/store/drawings/reducer.d.ts +0 -9
  132. package/src/store/drawings/selectors.d.ts +0 -3
  133. package/src/store/drawings/selectors.spec.d.ts +0 -1
  134. package/src/store/drawings/testUtils.d.ts +0 -1
  135. package/src/store/drawings/types.d.ts +0 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/store",
3
- "version": "6.1.1",
3
+ "version": "8.0.0",
4
4
  "description": "GeoWeb Store library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -12,12 +12,14 @@
12
12
  "main": "./index.esm.js",
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
- "@opengeoweb/webmap": "6.1.1",
16
- "@opengeoweb/webmap-react": "6.1.1",
15
+ "@opengeoweb/shared": "8.0.0",
16
+ "@opengeoweb/webmap": "8.0.0",
17
+ "@opengeoweb/webmap-react": "8.0.0",
17
18
  "@redux-eggs/core": "2.2.0",
18
19
  "@redux-eggs/redux-toolkit": "2.2.0",
19
20
  "@redux-eggs/saga-extension": "2.2.0",
20
21
  "@reduxjs/toolkit": "1.9.5",
22
+ "date-fns": "2.30.0",
21
23
  "immer": "9.0.21",
22
24
  "lodash": "4.17.21",
23
25
  "moment": "2.29.4",
package/src/index.d.ts CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1 +1 @@
1
- export 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>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./drawings/types").DrawModuleStore, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./drawingtool").DrawtoolModuleStore, import("redux").AnyAction>>)[];
1
+ export 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>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./drawingtool").DrawtoolModuleStore, import("redux").AnyAction>>)[];
File without changes
@@ -1,4 +1,6 @@
1
1
  export { drawtoolActions } from './reducer';
2
2
  export * as drawtoolSelectors from './selectors';
3
3
  export * from './config';
4
- export type { DrawMode, DrawToolItem, DrawtoolModuleStore } from './reducer';
4
+ export type { DrawToolItem, DrawtoolModuleStore } from './reducer';
5
+ export * from './utils';
6
+ export { reducer as drawtoolReducer } from './reducer';
@@ -1,11 +1,5 @@
1
1
  import { PayloadAction, Draft, EntityState } from '@reduxjs/toolkit';
2
- export type DrawMode = {
3
- drawModeId: string;
4
- value: 'POLYGON' | 'BOX' | 'MULTIPOINT' | 'POINT' | 'LINESTRING' | 'DELETE';
5
- shape: GeoJSON.Feature | GeoJSON.FeatureCollection;
6
- title: string;
7
- isSelectable: boolean;
8
- };
2
+ import { DrawMode } from '@opengeoweb/webmap-react';
9
3
  export interface DrawToolItem {
10
4
  drawToolId: string;
11
5
  geoJSONLayerId: string;
@@ -17,17 +11,24 @@ export interface DrawtoolModuleStore {
17
11
  drawingtools?: DrawingToolState;
18
12
  }
19
13
  export declare const drawAdapter: import("@reduxjs/toolkit").EntityAdapter<DrawToolItem>;
20
- export declare const getDrawLayerId: (drawToolId: string) => string;
21
14
  export declare const initialState: DrawingToolState;
22
15
  export declare const reducer: import("redux").Reducer<DrawingToolState, import("redux").AnyAction>;
23
16
  export declare const drawtoolActions: import("@reduxjs/toolkit").CaseReducerActions<{
24
17
  registerDrawTool: (draft: Draft<DrawingToolState>, action: PayloadAction<{
25
- mapId: string;
26
18
  drawModes: DrawMode[];
27
19
  drawToolId: string;
20
+ mapId?: string;
21
+ geoJSONLayerId?: string;
22
+ }>) => void;
23
+ unregisterDrawTool: (draft: Draft<DrawingToolState>, action: PayloadAction<{
24
+ drawToolId: string;
28
25
  }>) => void;
29
26
  changeDrawToolMode: (draft: Draft<DrawingToolState>, action: PayloadAction<{
30
27
  drawToolId: string;
31
28
  drawModeId: string;
32
29
  }>) => void;
30
+ updateGeoJSONLayerId: (draft: Draft<DrawingToolState>, action: PayloadAction<{
31
+ drawToolId: string;
32
+ geoJSONLayerId: string;
33
+ }>) => void;
33
34
  }, "draw">;
@@ -1,13 +1,14 @@
1
+ import { DRAWMODE } from '@opengeoweb/webmap-react';
1
2
  export declare const testDefaultPoint: {
2
3
  drawModeId: string;
3
- value: "POINT";
4
+ value: DRAWMODE;
4
5
  title: string;
5
6
  shape: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
6
7
  isSelectable: boolean;
7
8
  };
8
9
  export declare const testDefaultPolygon: {
9
10
  drawModeId: string;
10
- value: "POLYGON";
11
+ value: DRAWMODE;
11
12
  title: string;
12
13
  shape: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
13
14
  isSelectable: boolean;
File without changes
File without changes
@@ -1,7 +1,17 @@
1
1
  import type { DrawingToolState, DrawtoolModuleStore } from './reducer';
2
2
  export declare const getDrawingtoolStore: (store: DrawtoolModuleStore) => DrawingToolState;
3
- export declare const selectDrawingToolByMapId: (state: DrawtoolModuleStore, id: import("@reduxjs/toolkit").EntityId) => import("./reducer").DrawToolItem | undefined;
4
- export declare const getDrawModeById: ((state: DrawtoolModuleStore, _drawToolId: string, drawModeId: string) => import("./reducer").DrawMode | undefined) & import("reselect").OutputSelectorFields<(args_0: import("./reducer").DrawToolItem | undefined, args_1: string) => import("./reducer").DrawMode | undefined, {
3
+ export declare const selectDrawToolById: (state: DrawtoolModuleStore, id: import("@reduxjs/toolkit").EntityId) => import("./reducer").DrawToolItem | undefined, selectAllDrawingTools: (state: DrawtoolModuleStore) => import("./reducer").DrawToolItem[];
4
+ export declare const getDrawModeById: ((state: DrawtoolModuleStore, _drawToolId: string, drawModeId: string) => import("dist/libs/webmap-react/src").DrawMode | undefined) & import("reselect").OutputSelectorFields<(args_0: import("./reducer").DrawToolItem | undefined, args_1: string) => import("dist/libs/webmap-react/src").DrawMode | undefined, {
5
+ clearCache: () => void;
6
+ }> & {
7
+ clearCache: () => void;
8
+ };
9
+ export declare const getActiveDrawModeId: ((state: DrawtoolModuleStore, id: import("@reduxjs/toolkit").EntityId) => string) & import("reselect").OutputSelectorFields<(args_0: import("./reducer").DrawToolItem | undefined) => string, {
10
+ clearCache: () => void;
11
+ }> & {
12
+ clearCache: () => void;
13
+ };
14
+ export declare const getDrawToolGeoJSONLayerId: ((state: DrawtoolModuleStore, id: import("@reduxjs/toolkit").EntityId) => string) & import("reselect").OutputSelectorFields<(args_0: import("./reducer").DrawToolItem | undefined) => string, {
5
15
  clearCache: () => void;
6
16
  }> & {
7
17
  clearCache: () => void;
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ import { DrawMode } from '@opengeoweb/webmap-react';
2
+ export declare const getSingularDrawtoolDrawLayerId: (mapId: string) => string;
3
+ export declare const getGeoJSONPropertyValue: (property: string, properties: GeoJSON.GeoJsonProperties, polygonDrawMode: DrawMode | undefined, defaultProperties?: GeoJSON.GeoJsonProperties) => number | string;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- export { actions as syncGroupsActions, initialState } from './reducer';
1
+ export { actions as syncGroupsActions, initialState, reducer as syncGroupsReducer, } from './reducer';
2
2
  export * as syncConstants from './constants';
3
3
  export * as types from './types';
4
4
  export * as syncGroupsSelectors from './selectors';
File without changes
File without changes
File without changes
@@ -2,10 +2,10 @@ export * from './mapStore';
2
2
  export * from './layerSelect';
3
3
  export * from './ui';
4
4
  export * from './generic';
5
+ export { rootSaga as genericSaga } from './generic/sagas';
5
6
  export * from './snackbar';
6
7
  export * from './router';
7
8
  export * from './app';
8
- export * from './drawings';
9
9
  export * from './drawingtool';
10
10
  export * from './types';
11
11
  export * as storeTestUtils from './mapStore/storeTestUtils';
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -13,6 +13,7 @@ export declare const mapUtils: {
13
13
  getTimeStepFromDataInterval: (timeInterval: import("dist/libs/webmap/src").TimeInterval) => number;
14
14
  getActiveLayerTimeStep: (timeDimension: mapTypes.Dimension | undefined) => number | undefined;
15
15
  getSpeedFactor: (speedDelay: number) => mapTypes.SpeedFactorType;
16
+ getAnimationDuration: (animationEndTime: string | undefined, animationStartTime: string | undefined) => number;
16
17
  getSpeedDelay: (speedFactor: mapTypes.SpeedFactorType) => number;
17
18
  roundWithTimeStep: (unixTime: number, timeStep: number, type?: string | undefined) => number;
18
19
  secondsPerPxToScale: Map<number, import("./enums").Scale>;
File without changes
File without changes
File without changes
File without changes
@@ -165,6 +165,16 @@ export declare const getMapDimension: ((state: CoreAppStore, _mapId: string, dim
165
165
  }> & {
166
166
  clearCache: () => void;
167
167
  };
168
+ export declare const getSelectedTime: ((state: CoreAppStore, mapId: string) => number) & import("reselect").OutputSelectorFields<(args_0: import("./types").Dimension | undefined) => number, {
169
+ clearCache: () => void;
170
+ }> & {
171
+ clearCache: () => void;
172
+ };
173
+ export declare const getDataLimitsFromLayers: ((state: CoreAppStore, mapId: string) => number[]) & import("reselect").OutputSelectorFields<(args_0: import("../types").ReduxLayer[]) => number[], {
174
+ clearCache: () => void;
175
+ }> & {
176
+ clearCache: () => void;
177
+ };
168
178
  /**
169
179
  * Gets map srs
170
180
  *
@@ -617,7 +627,7 @@ export declare const getLegendId: ((state: CoreAppStore | undefined, mapId: stri
617
627
  * @param {string} mapId mapId: string - Id of the map
618
628
  * @returns {MapPreset} returnType: MapPreset
619
629
  */
620
- export declare const getMapPreset: ((state: CoreAppStore, mapId: string) => MapPreset) & import("reselect").OutputSelectorFields<(args_0: import("../types").ReduxLayer[], args_1: import("../types").ReduxLayer[], args_2: import("../types").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: boolean | undefined, args_16: string | undefined, args_17: uiTypes.UIStoreType) => MapPreset, {
630
+ export declare const getMapPreset: ((state: CoreAppStore, mapId: string) => MapPreset) & import("reselect").OutputSelectorFields<(args_0: import("../types").ReduxLayer[], args_1: import("../types").ReduxLayer[], args_2: import("../types").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, {
621
631
  clearCache: () => void;
622
632
  }> & {
623
633
  clearCache: () => void;
File without changes
@@ -158,10 +158,12 @@ export interface SetAnimationDelayPayload {
158
158
  export interface SetAnimationStartTimePayload {
159
159
  mapId: string;
160
160
  animationStartTime: string;
161
+ origin?: MapActionOrigin;
161
162
  }
162
163
  export interface SetAnimationEndTimePayload {
163
164
  mapId: string;
164
165
  animationEndTime: string;
166
+ origin?: MapActionOrigin;
165
167
  }
166
168
  export interface ToggleTimestepAutoPayload {
167
169
  mapId: string;
@@ -70,6 +70,7 @@ export declare function moveArrayElements(array: string[], oldIndex: number, new
70
70
  export declare const getTimeStepFromDataInterval: (timeInterval: TimeInterval) => number;
71
71
  export declare const getActiveLayerTimeStep: (timeDimension: Dimension | undefined) => number | undefined;
72
72
  export declare const getSpeedFactor: (speedDelay: number) => SpeedFactorType;
73
+ export declare const getAnimationDuration: (animationEndTime: string | undefined, animationStartTime: string | undefined) => number;
73
74
  /**
74
75
  * Returns speed delay for given speedFactor. For options, see defined above in "speedFactors"
75
76
  */
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -11,6 +11,7 @@ export interface Services {
11
11
  }
12
12
  export type ServiceScope = 'user' | 'system';
13
13
  export interface ReduxService {
14
+ id?: string;
14
15
  name?: string;
15
16
  serviceUrl?: string;
16
17
  active?: boolean;
@@ -18,7 +19,7 @@ export interface ReduxService {
18
19
  scope?: ServiceScope;
19
20
  }
20
21
  /**
21
- * Used in the services object of webmap to keep a list of available layers in the service
22
+ Used in the services object of webmap to keep a list of available layers in the service
22
23
  */
23
24
  export type ServiceLayer = LayerProps;
24
25
  export interface ServiceState {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -2,6 +2,5 @@ import type { WebMapStateModuleState } from './mapStore/types';
2
2
  import type { SynchronizationGroupModuleState } from './generic/synchronizationGroups/types';
3
3
  import type { uiTypes, layerSelectTypes } from '.';
4
4
  import type { DrawtoolModuleStore } from './drawingtool';
5
- import { DrawModuleStore } from './drawings/types';
6
- export interface CoreAppStore extends SynchronizationGroupModuleState, uiTypes.UIModuleState, WebMapStateModuleState, layerSelectTypes.LayerSelectModuleState, DrawtoolModuleStore, DrawModuleStore {
5
+ export interface CoreAppStore extends SynchronizationGroupModuleState, uiTypes.UIModuleState, WebMapStateModuleState, layerSelectTypes.LayerSelectModuleState, DrawtoolModuleStore {
7
6
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -58,7 +58,7 @@ export declare const getDialogIsOrderedOnTop: ((state: CoreAppStore, dialogType:
58
58
  }> & {
59
59
  clearCache: () => void;
60
60
  };
61
- export declare const getDialogSource: ((state: CoreAppStore, dialogType: string) => import("./types").Source) & import("reselect").OutputSelectorFields<(args_0: UIType) => import("./types").Source, {
61
+ export declare const getDialogSource: ((state: CoreAppStore, dialogType: string) => import("dist/libs/shared/src/lib/components/ToolContainer/ToolContainerDraggable").Source) & import("reselect").OutputSelectorFields<(args_0: UIType) => import("dist/libs/shared/src/lib/components/ToolContainer/ToolContainerDraggable").Source, {
62
62
  clearCache: () => void;
63
63
  }> & {
64
64
  clearCache: () => void;
File without changes
@@ -1,3 +1,4 @@
1
+ import { Source } from '@opengeoweb/shared';
1
2
  import { MapActionOrigin } from '../mapStore/map/enums';
2
3
  type LegendDialogType = string;
3
4
  type GetFeatureInfoDialogType = string;
@@ -14,10 +15,10 @@ export declare enum DialogTypes {
14
15
  DrawingTool = "drawingTool",
15
16
  DockedLayerManager = "dockedLayerManager",
16
17
  DockedDrawingTool = "dockedDrawingTool",
17
- AreaManager = "areaManager"
18
+ ObjectManager = "objectManager"
18
19
  }
19
20
  export type DialogType = DialogTypes | LegendDialogType | GetFeatureInfoDialogType;
20
- export type Source = 'app' | 'module';
21
+ export type { Source };
21
22
  export interface UIType {
22
23
  type: DialogType;
23
24
  activeMapId: string;
@@ -75,4 +76,3 @@ export interface UISetDialogFocusedPayload {
75
76
  type: DialogType;
76
77
  focused: boolean;
77
78
  }
78
- export {};
File without changes
@@ -1,4 +0,0 @@
1
- import { Store } from '@reduxjs/toolkit';
2
- import { Egg } from '@redux-eggs/core';
3
- import { DrawModuleStore } from './types';
4
- export declare const drawModuleConfig: Egg<Store<DrawModuleStore>>;
@@ -1,4 +0,0 @@
1
- export { drawActions } from './reducer';
2
- export * as drawSelectors from './selectors';
3
- export * as drawTypes from './types';
4
- export * from './config';
@@ -1,9 +0,0 @@
1
- import { PayloadAction, Draft } from '@reduxjs/toolkit';
2
- import { DrawItem, DrawState, SetDrawValuesPayload } from './types';
3
- export declare const drawAdapter: import("@reduxjs/toolkit").EntityAdapter<DrawItem>;
4
- export declare const initialState: DrawState;
5
- export declare const reducer: import("redux").Reducer<DrawState, import("redux").AnyAction>;
6
- export declare const drawActions: import("@reduxjs/toolkit").CaseReducerActions<{
7
- setDrawValues: (draft: Draft<DrawState>, action: PayloadAction<SetDrawValuesPayload>) => void;
8
- submitDrawValues: (draft: Draft<DrawState>, action: PayloadAction<SetDrawValuesPayload>) => void;
9
- }, "draw">;
@@ -1,3 +0,0 @@
1
- import { DrawModuleStore, DrawState } from './types';
2
- export declare const getDrawStore: (store: DrawModuleStore) => DrawState;
3
- export declare const selectDrawByMapId: (state: DrawModuleStore, id: import("@reduxjs/toolkit").EntityId) => import("./types").DrawItem | undefined;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export declare const testGeoJSON: GeoJSON.FeatureCollection;
@@ -1,12 +0,0 @@
1
- import { EntityState } from '@reduxjs/toolkit';
2
- export interface DrawItem {
3
- id: string;
4
- area: GeoJSON.FeatureCollection;
5
- areaName: string;
6
- mapId: string;
7
- }
8
- export type DrawState = EntityState<DrawItem>;
9
- export interface DrawModuleStore {
10
- drawings?: DrawState;
11
- }
12
- export type SetDrawValuesPayload = DrawItem;