@opengeoweb/store 16.0.0 → 17.0.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 (131) hide show
  1. package/index.esm.js +543 -246
  2. package/package.json +6 -6
  3. package/src/index.d.ts +0 -1
  4. package/src/store/common/auth/index.d.ts +0 -3
  5. package/src/store/common/auth/reducer.d.ts +0 -14
  6. package/src/store/common/auth/reducer.spec.d.ts +0 -1
  7. package/src/store/common/auth/selectors.d.ts +0 -87
  8. package/src/store/common/auth/selectors.spec.d.ts +0 -1
  9. package/src/store/common/auth/types.d.ts +0 -22
  10. package/src/store/common/index.d.ts +0 -81
  11. package/src/store/common/listener.d.ts +0 -2
  12. package/src/store/common/types.d.ts +0 -6
  13. package/src/store/drawingTool/index.d.ts +0 -4
  14. package/src/store/drawingTool/listener.d.ts +0 -3
  15. package/src/store/drawingTool/listener.spec.d.ts +0 -1
  16. package/src/store/drawingTool/reducer.d.ts +0 -45
  17. package/src/store/drawingTool/reducer.spec.d.ts +0 -4
  18. package/src/store/drawingTool/selectors.d.ts +0 -347
  19. package/src/store/drawingTool/selectors.spec.d.ts +0 -1
  20. package/src/store/drawingTool/testUtils.d.ts +0 -1
  21. package/src/store/drawingTool/utils.d.ts +0 -1
  22. package/src/store/drawingTool/utils.spec.d.ts +0 -1
  23. package/src/store/generic/actions.d.ts +0 -28
  24. package/src/store/generic/hooks.d.ts +0 -2
  25. package/src/store/generic/index.d.ts +0 -26
  26. package/src/store/generic/linking/constants.d.ts +0 -6
  27. package/src/store/generic/linking/index.d.ts +0 -1
  28. package/src/store/generic/listener.d.ts +0 -2
  29. package/src/store/generic/listener.spec.d.ts +0 -1
  30. package/src/store/generic/loadingIndicator/constants.d.ts +0 -1
  31. package/src/store/generic/loadingIndicator/index.d.ts +0 -3
  32. package/src/store/generic/loadingIndicator/reducer.d.ts +0 -13
  33. package/src/store/generic/loadingIndicator/reducer.spec.d.ts +0 -1
  34. package/src/store/generic/loadingIndicator/selectors.d.ts +0 -337
  35. package/src/store/generic/loadingIndicator/selectors.spec.d.ts +0 -1
  36. package/src/store/generic/loadingIndicator/types.d.ts +0 -22
  37. package/src/store/generic/selectors.d.ts +0 -410
  38. package/src/store/generic/selectors.spec.d.ts +0 -1
  39. package/src/store/generic/syncGroups/__mocks__/mockState.d.ts +0 -2
  40. package/src/store/generic/syncGroups/constants.d.ts +0 -4
  41. package/src/store/generic/syncGroups/hooks.d.ts +0 -16
  42. package/src/store/generic/syncGroups/hooks.spec.d.ts +0 -1
  43. package/src/store/generic/syncGroups/index.d.ts +0 -11
  44. package/src/store/generic/syncGroups/listener.d.ts +0 -2
  45. package/src/store/generic/syncGroups/listener.spec.d.ts +0 -1
  46. package/src/store/generic/syncGroups/reducer.d.ts +0 -60
  47. package/src/store/generic/syncGroups/reducer.spec.d.ts +0 -1
  48. package/src/store/generic/syncGroups/selector.d.ts +0 -45
  49. package/src/store/generic/syncGroups/selector.spec.d.ts +0 -1
  50. package/src/store/generic/syncGroups/selectors.d.ts +0 -235
  51. package/src/store/generic/syncGroups/selectors.spec.d.ts +0 -1
  52. package/src/store/generic/syncGroups/syncSourceDisplayName.d.ts +0 -2
  53. package/src/store/generic/syncGroups/types.d.ts +0 -171
  54. package/src/store/generic/syncGroups/utils.d.ts +0 -76
  55. package/src/store/generic/syncGroups/utils.spec.d.ts +0 -1
  56. package/src/store/generic/synchronizationActions/actions.d.ts +0 -11
  57. package/src/store/generic/synchronizationActions/types.d.ts +0 -43
  58. package/src/store/generic/types.d.ts +0 -24
  59. package/src/store/generic/utils.d.ts +0 -9
  60. package/src/store/generic/utils.spec.d.ts +0 -1
  61. package/src/store/index.d.ts +0 -22
  62. package/src/store/map/index.d.ts +0 -5
  63. package/src/store/map/layer/index.d.ts +0 -5
  64. package/src/store/map/layer/listeners.d.ts +0 -2
  65. package/src/store/map/layer/listeners.spec.d.ts +0 -1
  66. package/src/store/map/layer/reducer.d.ts +0 -90
  67. package/src/store/map/layer/reducer.spec.d.ts +0 -1
  68. package/src/store/map/layer/selectors.d.ts +0 -2547
  69. package/src/store/map/layer/selectors.spec.d.ts +0 -1
  70. package/src/store/map/layer/types.d.ts +0 -179
  71. package/src/store/map/layer/utils.d.ts +0 -33
  72. package/src/store/map/layer/utils.spec.d.ts +0 -1
  73. package/src/store/map/map/actions.d.ts +0 -9
  74. package/src/store/map/map/constants.d.ts +0 -3
  75. package/src/store/map/map/enums.d.ts +0 -3
  76. package/src/store/map/map/filterLayers.d.ts +0 -10
  77. package/src/store/map/map/filterLayers.spec.d.ts +0 -1
  78. package/src/store/map/map/index.d.ts +0 -26
  79. package/src/store/map/map/listener.d.ts +0 -4
  80. package/src/store/map/map/listener.spec.d.ts +0 -1
  81. package/src/store/map/map/mapListenerAnimationUtils.d.ts +0 -28
  82. package/src/store/map/map/mapListenerAnimationUtils.spec.d.ts +0 -1
  83. package/src/store/map/map/metronomeListener.d.ts +0 -2
  84. package/src/store/map/map/olMapListenerAnimationUtils.d.ts +0 -46
  85. package/src/store/map/map/olMapListenerAnimationUtils.spec.d.ts +0 -1
  86. package/src/store/map/map/reducer.d.ts +0 -142
  87. package/src/store/map/map/reducer.spec.d.ts +0 -1
  88. package/src/store/map/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.d.ts +0 -7
  89. package/src/store/map/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.spec.d.ts +0 -1
  90. package/src/store/map/map/selectors.d.ts +0 -3582
  91. package/src/store/map/map/selectors.spec.d.ts +0 -1
  92. package/src/store/map/map/types.d.ts +0 -329
  93. package/src/store/map/map/utils.d.ts +0 -87
  94. package/src/store/map/map/utils.spec.d.ts +0 -1
  95. package/src/store/map/service/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +0 -2
  96. package/src/store/map/service/index.d.ts +0 -4
  97. package/src/store/map/service/listener.d.ts +0 -5
  98. package/src/store/map/service/listener.spec.d.ts +0 -1
  99. package/src/store/map/service/localStorage.d.ts +0 -3
  100. package/src/store/map/service/localStorage.spec.d.ts +0 -1
  101. package/src/store/map/service/reducer.d.ts +0 -10
  102. package/src/store/map/service/reducer.spec.d.ts +0 -1
  103. package/src/store/map/service/selectors.d.ts +0 -386
  104. package/src/store/map/service/selectors.spec.d.ts +0 -1
  105. package/src/store/map/service/types.d.ts +0 -52
  106. package/src/store/map/storeTestSettings.d.ts +0 -8
  107. package/src/store/map/storeTestUtils.d.ts +0 -18
  108. package/src/store/map/types.d.ts +0 -11
  109. package/src/store/mapStore/openlayers/listener.d.ts +0 -2
  110. package/src/store/mapStore/openlayers/listener.spec.d.ts +0 -1
  111. package/src/store/mapStore/openlayers/syncGroupViewStore.d.ts +0 -26
  112. package/src/store/router/index.d.ts +0 -2
  113. package/src/store/router/listener.d.ts +0 -2
  114. package/src/store/router/listener.spec.d.ts +0 -1
  115. package/src/store/router/reducer.d.ts +0 -9
  116. package/src/store/router/reducer.spec.d.ts +0 -1
  117. package/src/store/router/types.d.ts +0 -9
  118. package/src/store/router/utils.d.ts +0 -4
  119. package/src/store/store.d.ts +0 -37
  120. package/src/store/types.d.ts +0 -7
  121. package/src/store/ui/index.d.ts +0 -5
  122. package/src/store/ui/reducer.d.ts +0 -39
  123. package/src/store/ui/reducer.spec.d.ts +0 -1
  124. package/src/store/ui/selectors.d.ts +0 -234
  125. package/src/store/ui/selectors.spec.d.ts +0 -1
  126. package/src/store/ui/types.d.ts +0 -87
  127. package/src/store/ui/useSetupDialog.d.ts +0 -11
  128. package/src/store/ui/useSetupDialog.spec.d.ts +0 -1
  129. package/src/store/unifyReducerMaps.d.ts +0 -3
  130. package/src/store/unifyReducermaps.spec.d.ts +0 -1
  131. package/src/store/utils.d.ts +0 -6
@@ -1,235 +0,0 @@
1
- import type { SyncGroupTarget, SynchronizationGroup, SynchronizationGroupState, SynchronizationSource, SyncType } from './types';
2
- import type { CoreAppStore } from '../../types';
3
- import type { GenericSyncActionPayload } from '../synchronizationActions/types';
4
- import type { GenericActionPayload } from '../types';
5
- export declare const syncGroupStore: (store: CoreAppStore) => SynchronizationGroupState;
6
- /**
7
- * Gets synchronization group state
8
- *
9
- * Example: synchronizationGroupState = getSynchronizationGroupState(store)
10
- * @param {object} store store: object - Store object
11
- * @returns {object} returnType: SynchronizationGroupState
12
- */
13
- export declare const getSynchronizationGroupState: (store: CoreAppStore) => SynchronizationGroupState;
14
- export declare const getSynchronizationGroup: ((state: any, id: any) => SynchronizationGroup) & {
15
- clearCache: () => void;
16
- resultsCount: () => number;
17
- resetResultsCount: () => void;
18
- } & {
19
- resultFunc: (resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string) => SynchronizationGroup;
20
- memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string) => SynchronizationGroup) & {
21
- clearCache: () => void;
22
- resultsCount: () => number;
23
- resetResultsCount: () => void;
24
- };
25
- lastResult: () => SynchronizationGroup;
26
- dependencies: [(store: CoreAppStore) => SynchronizationGroupState, (syncGroupStore: any, id: any) => string];
27
- recomputations: () => number;
28
- resetRecomputations: () => void;
29
- dependencyRecomputations: () => number;
30
- resetDependencyRecomputations: () => void;
31
- } & {
32
- memoize: typeof import("reselect").weakMapMemoize;
33
- argsMemoize: typeof import("reselect").weakMapMemoize;
34
- };
35
- export declare const getSynchronizationGroupSource: ((state: any, id: any) => SynchronizationSource) & {
36
- clearCache: () => void;
37
- resultsCount: () => number;
38
- resetResultsCount: () => void;
39
- } & {
40
- resultFunc: (resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string) => SynchronizationSource;
41
- memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string) => SynchronizationSource) & {
42
- clearCache: () => void;
43
- resultsCount: () => number;
44
- resetResultsCount: () => void;
45
- };
46
- lastResult: () => SynchronizationSource;
47
- dependencies: [(store: CoreAppStore) => SynchronizationGroupState, (syncGroupStore: any, id: any) => string];
48
- recomputations: () => number;
49
- resetRecomputations: () => void;
50
- dependencyRecomputations: () => number;
51
- resetDependencyRecomputations: () => void;
52
- } & {
53
- memoize: typeof import("reselect").weakMapMemoize;
54
- argsMemoize: typeof import("reselect").weakMapMemoize;
55
- };
56
- export declare const getTargets: ((state: any, payload: any, actionType: any) => GenericSyncActionPayload[]) & {
57
- clearCache: () => void;
58
- resultsCount: () => number;
59
- resetResultsCount: () => void;
60
- } & {
61
- resultFunc: (resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: GenericActionPayload, resultFuncArgs_2: SyncType) => GenericSyncActionPayload[];
62
- memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: GenericActionPayload, resultFuncArgs_2: SyncType) => GenericSyncActionPayload[]) & {
63
- clearCache: () => void;
64
- resultsCount: () => number;
65
- resetResultsCount: () => void;
66
- };
67
- lastResult: () => GenericSyncActionPayload[];
68
- dependencies: [(store: CoreAppStore) => SynchronizationGroupState, (syncGroupStore: any, payload: any) => GenericActionPayload, (syncGroupStore: any, payload: any, actionType: any) => SyncType];
69
- recomputations: () => number;
70
- resetRecomputations: () => void;
71
- dependencyRecomputations: () => number;
72
- resetDependencyRecomputations: () => void;
73
- } & {
74
- memoize: typeof import("reselect").weakMapMemoize;
75
- argsMemoize: typeof import("reselect").weakMapMemoize;
76
- };
77
- export declare const getTargetGroups: ((state: any, payload: any, actionType: any) => string[]) & {
78
- clearCache: () => void;
79
- resultsCount: () => number;
80
- resetResultsCount: () => void;
81
- } & {
82
- resultFunc: (resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: GenericActionPayload, resultFuncArgs_2: SyncType) => string[];
83
- memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: GenericActionPayload, resultFuncArgs_2: SyncType) => string[]) & {
84
- clearCache: () => void;
85
- resultsCount: () => number;
86
- resetResultsCount: () => void;
87
- };
88
- lastResult: () => string[];
89
- dependencies: [(store: CoreAppStore) => SynchronizationGroupState, (syncGroupStore: any, payload: any) => GenericActionPayload, (syncGroupStore: any, payload: any, actionType: any) => SyncType];
90
- recomputations: () => number;
91
- resetRecomputations: () => void;
92
- dependencyRecomputations: () => number;
93
- resetDependencyRecomputations: () => void;
94
- } & {
95
- memoize: typeof import("reselect").weakMapMemoize;
96
- argsMemoize: typeof import("reselect").weakMapMemoize;
97
- };
98
- export declare const getSourceId: ((state: any, sourceId: any) => string) & {
99
- clearCache: () => void;
100
- resultsCount: () => number;
101
- resetResultsCount: () => void;
102
- } & {
103
- resultFunc: (resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string | {
104
- sourceId: string;
105
- }) => string;
106
- memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string | {
107
- sourceId: string;
108
- }) => string) & {
109
- clearCache: () => void;
110
- resultsCount: () => number;
111
- resetResultsCount: () => void;
112
- };
113
- lastResult: () => string;
114
- dependencies: [(store: CoreAppStore) => SynchronizationGroupState, (syncGroupStore: any, sourceId: any) => {
115
- sourceId: string;
116
- } | string];
117
- recomputations: () => number;
118
- resetRecomputations: () => void;
119
- dependencyRecomputations: () => number;
120
- resetDependencyRecomputations: () => void;
121
- } & {
122
- memoize: typeof import("reselect").weakMapMemoize;
123
- argsMemoize: typeof import("reselect").weakMapMemoize;
124
- };
125
- export declare const getAllTargetGroupsForSource: ((state: any, sourceId: any) => string[]) & {
126
- clearCache: () => void;
127
- resultsCount: () => number;
128
- resetResultsCount: () => void;
129
- } & {
130
- resultFunc: (resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string) => string[];
131
- memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string) => string[]) & {
132
- clearCache: () => void;
133
- resultsCount: () => number;
134
- resetResultsCount: () => void;
135
- };
136
- lastResult: () => string[];
137
- dependencies: [(store: CoreAppStore) => SynchronizationGroupState, ((state: any, sourceId: any) => string) & {
138
- clearCache: () => void;
139
- resultsCount: () => number;
140
- resetResultsCount: () => void;
141
- } & {
142
- resultFunc: (resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string | {
143
- sourceId: string;
144
- }) => string;
145
- memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string | {
146
- sourceId: string;
147
- }) => string) & {
148
- clearCache: () => void;
149
- resultsCount: () => number;
150
- resetResultsCount: () => void;
151
- };
152
- lastResult: () => string;
153
- dependencies: [(store: CoreAppStore) => SynchronizationGroupState, (syncGroupStore: any, sourceId: any) => {
154
- sourceId: string;
155
- } | string];
156
- recomputations: () => number;
157
- resetRecomputations: () => void;
158
- dependencyRecomputations: () => number;
159
- resetDependencyRecomputations: () => void;
160
- } & {
161
- memoize: typeof import("reselect").weakMapMemoize;
162
- argsMemoize: typeof import("reselect").weakMapMemoize;
163
- }];
164
- recomputations: () => number;
165
- resetRecomputations: () => void;
166
- dependencyRecomputations: () => number;
167
- resetDependencyRecomputations: () => void;
168
- } & {
169
- memoize: typeof import("reselect").weakMapMemoize;
170
- argsMemoize: typeof import("reselect").weakMapMemoize;
171
- };
172
- export declare const syncGroupGetViewState: ((state: CoreAppStore) => import("./types").SyncGroupViewState) & {
173
- clearCache: () => void;
174
- resultsCount: () => number;
175
- resetResultsCount: () => void;
176
- } & {
177
- resultFunc: (resultFuncArgs_0: SynchronizationGroupState) => import("./types").SyncGroupViewState;
178
- memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState) => import("./types").SyncGroupViewState) & {
179
- clearCache: () => void;
180
- resultsCount: () => number;
181
- resetResultsCount: () => void;
182
- };
183
- lastResult: () => import("./types").SyncGroupViewState;
184
- dependencies: [(store: CoreAppStore) => SynchronizationGroupState];
185
- recomputations: () => number;
186
- resetRecomputations: () => void;
187
- dependencyRecomputations: () => number;
188
- resetDependencyRecomputations: () => void;
189
- } & {
190
- memoize: typeof import("reselect").weakMapMemoize;
191
- argsMemoize: typeof import("reselect").weakMapMemoize;
192
- };
193
- export declare const isTimeScrollingEnabled: (store: CoreAppStore) => boolean;
194
- export declare const getSyncedMapIdsForTimeslider: ((state: CoreAppStore) => string[]) & {
195
- clearCache: () => void;
196
- resultsCount: () => number;
197
- resetResultsCount: () => void;
198
- } & {
199
- resultFunc: (resultFuncArgs_0: SynchronizationGroupState) => string[];
200
- memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState) => string[]) & {
201
- clearCache: () => void;
202
- resultsCount: () => number;
203
- resetResultsCount: () => void;
204
- };
205
- lastResult: () => string[];
206
- dependencies: [(store: CoreAppStore) => SynchronizationGroupState];
207
- recomputations: () => number;
208
- resetRecomputations: () => void;
209
- dependencyRecomputations: () => number;
210
- resetDependencyRecomputations: () => void;
211
- } & {
212
- memoize: typeof import("reselect").weakMapMemoize;
213
- argsMemoize: typeof import("reselect").weakMapMemoize;
214
- };
215
- export declare const getSyncGroupTargets: ((state: CoreAppStore) => SyncGroupTarget[]) & {
216
- clearCache: () => void;
217
- resultsCount: () => number;
218
- resetResultsCount: () => void;
219
- } & {
220
- resultFunc: (resultFuncArgs_0: SynchronizationGroupState) => SyncGroupTarget[];
221
- memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState) => SyncGroupTarget[]) & {
222
- clearCache: () => void;
223
- resultsCount: () => number;
224
- resetResultsCount: () => void;
225
- };
226
- lastResult: () => SyncGroupTarget[];
227
- dependencies: [(store: CoreAppStore) => SynchronizationGroupState];
228
- recomputations: () => number;
229
- resetRecomputations: () => void;
230
- dependencyRecomputations: () => number;
231
- resetDependencyRecomputations: () => void;
232
- } & {
233
- memoize: typeof import("reselect").weakMapMemoize;
234
- argsMemoize: typeof import("reselect").weakMapMemoize;
235
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import type { SyncedWorkspaceViewDetails } from './types';
2
- export declare const constructSyncSourceDisplayName: (sourceId: string, viewMeta: SyncedWorkspaceViewDetails | undefined, fallbackName: string) => string;
@@ -1,171 +0,0 @@
1
- import type { SystemScope } from '@opengeoweb/shared';
2
- import type { MapFeatureClass } from '@opengeoweb/webmap-react';
3
- import type { LoadingIndicatorModuleState } from '../loadingIndicator/types';
4
- import type { GenericActionPayload } from '../types';
5
- import type { SYNCGROUPS_TYPE_SETLAYERACTIONS } from './constants';
6
- import { SYNCGROUPS_TYPE_SETBBOX, SYNCGROUPS_TYPE_SETTIME } from './constants';
7
- export interface Group {
8
- id: string;
9
- selected: string[];
10
- }
11
- export interface SourceById {
12
- id: string;
13
- name: string;
14
- }
15
- export interface GroupsAndSources {
16
- groups: Group[];
17
- sourcesById: SourceById[];
18
- }
19
- export interface SyncGroupViewState {
20
- timeslider: GroupsAndSources;
21
- zoompane: GroupsAndSources;
22
- level: GroupsAndSources;
23
- [key: string]: GroupsAndSources;
24
- }
25
- export interface SynchronizationGroup {
26
- type: SyncType;
27
- title?: string;
28
- payloadByType: SynchronizationSourcePayLoadByType;
29
- targets: {
30
- byId: Record<string, {
31
- linked: boolean;
32
- }>;
33
- allIds: string[];
34
- };
35
- }
36
- export interface Occurrence {
37
- id: string;
38
- properties: OccurrenceProperties;
39
- }
40
- export interface OccurrenceProperties {
41
- name?: string;
42
- serviceId: string;
43
- collectionId: string;
44
- parameterName?: string | string[];
45
- }
46
- export interface FeatureNameObject {
47
- serviceId: string;
48
- serviceName?: string;
49
- collectionId: string;
50
- collectionName: string;
51
- }
52
- export interface PotentialDataProperties {
53
- occurrences?: Occurrence[];
54
- name?: string;
55
- names?: Record<string, FeatureNameObject[]>;
56
- hidden?: boolean;
57
- highlightSelectedFeature?: boolean;
58
- mapFeatureClass?: MapFeatureClass;
59
- serviceId?: string;
60
- selectionType?: string;
61
- }
62
- export interface PotentialData {
63
- features?: {
64
- id: string;
65
- originalId?: string;
66
- geoJSON: GeoJSON.FeatureCollection<GeoJSON.Geometry, PotentialDataProperties | null>;
67
- }[];
68
- selectedFeatureId?: string;
69
- formFeatures?: {
70
- id: string;
71
- geoJSON: GeoJSON.FeatureCollection;
72
- }[];
73
- hoverId?: string;
74
- }
75
- export interface LinkedState {
76
- links: Record<string, string[]>;
77
- sharedData: Record<string, PotentialData>;
78
- }
79
- export type SynchronizationSourcePayLoadByType = Record<string, GenericActionPayload>;
80
- export interface SynchronizationSource {
81
- types: SyncType[];
82
- payloadByType: SynchronizationSourcePayLoadByType;
83
- }
84
- export interface SynchronizationSources {
85
- byId: Record<string, SynchronizationSource>;
86
- allIds: string[];
87
- }
88
- export interface SynchronizationGroups {
89
- byId: Record<string, SynchronizationGroup>;
90
- allIds: string[];
91
- }
92
- export interface SynchronizationGroupState {
93
- sources: SynchronizationSources;
94
- groups: SynchronizationGroups;
95
- viewState: SyncGroupViewState;
96
- linkedState: LinkedState;
97
- isTimeScrollingEnabled: boolean;
98
- }
99
- export interface SynchronizationGroupModuleState {
100
- syncGroups?: SynchronizationGroupState;
101
- loadingIndicator?: LoadingIndicatorModuleState['loadingIndicator'];
102
- }
103
- export type SyncType = typeof SYNCGROUPS_TYPE_SETBBOX | typeof SYNCGROUPS_TYPE_SETTIME | typeof SYNCGROUPS_TYPE_SETLAYERACTIONS;
104
- export interface SyncGroupsAddSourcePayload {
105
- id: string;
106
- type: SyncType[];
107
- defaultPayload?: GenericActionPayload;
108
- }
109
- export interface SyncGroupRemoveSourcePayload {
110
- id: string;
111
- }
112
- export interface SyncGroupTarget {
113
- groupId: string;
114
- targetId: string;
115
- linked?: boolean;
116
- [key: string]: unknown;
117
- }
118
- export interface SyncGroupAddTargetPayload extends SyncGroupTarget {
119
- origin?: SystemScope;
120
- }
121
- export interface SyncGroupRemoveTargetPayload {
122
- groupId: string;
123
- targetId: string;
124
- origin?: SystemScope;
125
- }
126
- export interface SyncGroupLinkTargetPayload extends SyncGroupTarget {
127
- linked: boolean;
128
- }
129
- export interface SyncGroupAddGroupPayload {
130
- groupId: string;
131
- title: string;
132
- type: SyncType;
133
- origin?: SystemScope;
134
- }
135
- export interface SyncGroupRemoveGroupPayload {
136
- groupId: string;
137
- }
138
- export interface SyncGroupSetViewStatePayload {
139
- viewState: SyncGroupViewState;
140
- }
141
- export interface SyncGroupToggleIsTimeScrollingEnabled {
142
- isTimeScrollingEnabled: boolean;
143
- origin?: SystemScope;
144
- }
145
- export declare const SyncGroupTypeList: string[];
146
- export declare enum SyncGroupActionOrigin {
147
- delete = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_DELETEACTION",
148
- layerActions = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_LAYERACTIONS",
149
- move = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_MOVEACTION",
150
- add = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_ADDACTION",
151
- autoLayerId = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_AUTOLAYERIDACTION"
152
- }
153
- export interface SetLinkedMap {
154
- newLinks: Record<string, string[]>;
155
- }
156
- export interface UpdateLinkedMap {
157
- panelId: string;
158
- mapIds: string[];
159
- }
160
- export interface AddSharedData {
161
- panelId: string;
162
- data: PotentialData;
163
- }
164
- export interface DeleteSharedData {
165
- panelId: string;
166
- }
167
- export interface SyncedWorkspaceViewDetails {
168
- id?: string;
169
- title?: string;
170
- componentType?: string;
171
- }
@@ -1,76 +0,0 @@
1
- import type { SyncType } from './types';
2
- import type { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetAutoLayerIdPayload, SetBaseLayersPayload } from '../../map/types';
3
- import type { CoreAppStore } from '../../types';
4
- import type { SyncLayerPayloads, LayerActionPayloadsWithLayerIds } from '../types';
5
- interface FoundTargets {
6
- payload: SyncLayerPayloads;
7
- targetId: string;
8
- layerId: string;
9
- }
10
- /**
11
- * Tries to find the layerId's in the other map based on the payload of the action. It works for all layer actions.
12
- * @param state
13
- * @param mapId
14
- * @param targetMapId
15
- * @param payload
16
- * @returns
17
- */
18
- export declare const getTargetLayerIdFromPayload: (state: CoreAppStore, mapId: string, targetMapId: string, payload: SyncLayerPayloads) => string;
19
- /**
20
- * Local helper function used by getLayerDeleteActionsTargets, getLayerActionsTargets, getAddLayerActionsTargets, getTargetLayerIdFromPayload to find the targets
21
- * @param state
22
- * @param payload
23
- * @param actionType
24
- * @param sourceMapId
25
- * @returns The found targets
26
- */
27
- export declare const findTargets: (state: CoreAppStore, payload: SyncLayerPayloads, actionType: SyncType, sourceMapId: string) => FoundTargets[];
28
- /**
29
- * These targets are found for layer actions that work with a layerId like: SetLayerName, SetLayerEnabled, SetLayerOpacity, SetLayerDimension and SetLayerStyle
30
- * @param state
31
- * @param payload
32
- * @param actionType
33
- * @returns
34
- */
35
- export declare const getLayerActionsTargets: (state: CoreAppStore, payload: LayerActionPayloadsWithLayerIds, actionType: SyncType) => LayerActionPayloadsWithLayerIds[];
36
- /**
37
- * These targets are found for the layer/map action AddLayer. AddLayer does not have a layerId (because it's new)
38
- * @param state
39
- * @param payload
40
- * @param actionType
41
- * @returns
42
- */
43
- export declare const getAddLayerActionsTargets: (state: CoreAppStore, payload: AddLayerPayload, actionType: SyncType) => AddLayerPayload[];
44
- /**
45
- * These targets are found for the layer/map action DeleteLayer. The layer is already gone, so there is no layerId anymore. Using layerIndex instead.
46
- * @param state
47
- * @param payload
48
- * @param actionType
49
- * @returns
50
- */
51
- export declare const getLayerDeleteActionsTargets: (state: CoreAppStore, payload: DeleteLayerPayload, actionType: SyncType) => DeleteLayerPayload[];
52
- /**
53
- * These targets are found for the layer/map action MoveLayer. Here layers are referenced by newIndex and oldIndex.
54
- * @param state
55
- * @param payload
56
- * @param actionType
57
- * @returns
58
- */
59
- export declare const getLayerMoveActionsTargets: (state: CoreAppStore, payload: MoveLayerPayload, actionType: SyncType) => MoveLayerPayload[];
60
- /**
61
- * These targets are found for the map action SetAutoLayerId. It needs both a target mapId and layerId
62
- * @param state
63
- * @param payload
64
- * @param actionType
65
- * @returns
66
- */
67
- export declare const getSetAutoLayerIdActionsTargets: (state: CoreAppStore, payload: SetAutoLayerIdPayload, actionType: SyncType) => LayerActionPayloadsWithLayerIds[];
68
- /**
69
- * These targets are found for baselayer actions that work with a mapId like: setBaseLayers
70
- * @param state
71
- * @param payload
72
- * @param actionType
73
- * @returns
74
- */
75
- export declare const getMapBaseLayerActionsTargets: (state: CoreAppStore, payload: SetBaseLayersPayload, actionType: SyncType) => SetBaseLayersPayload[];
76
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
1
- import type { SetBboxPayload, SetTimePayload, SyncLayerPayloads } from '../types';
2
- import type { SetBboxSyncActionPayload, SetBboxSyncPayload, SetLayerActionsSyncPayload, SetTimeSyncActionPayload, SetTimeSyncPayload } from './types';
3
- /**
4
- * These actions are fired by the generic/listener.ts, based on generic actions and the synchronizationGroup state.
5
- *
6
- * These actions should not be used by components directly. Components should only use the generic actions.
7
- */
8
- export declare const setTimeSync: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[setTimePayload: SetTimePayload, targets: SetTimeSyncPayload[], groups: string[]], SetTimeSyncActionPayload, "GENERIC_SYNC_SETTIME", never, never>;
9
- export declare const setBboxSync: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: SetBboxPayload, targets: SetBboxSyncPayload[], groups: string[]], SetBboxSyncActionPayload, "GENERIC_SYNC_SETBBOX", never, never>;
10
- export declare const setLayerActionSync: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: SyncLayerPayloads, targets: SyncLayerPayloads[], type: string], SetLayerActionsSyncPayload, "GENERIC_SYNC_SETLAYERACTIONS", never, never>;
11
- export type GenericSyncActions = ReturnType<typeof setTimeSync> | ReturnType<typeof setBboxSync> | ReturnType<typeof setLayerActionSync>;
@@ -1,43 +0,0 @@
1
- import type { setBbox, setTime } from '../actions';
2
- import type { SyncLayerPayloads } from '../types';
3
- export interface SetTimeSyncProps {
4
- currentTime?: string;
5
- timeSliderCenterTime?: number;
6
- timeSliderSpan?: number;
7
- timeSliderStep?: number;
8
- timeSliderAnimationStartTime?: string;
9
- timeSliderAnimationEndTime?: string;
10
- timeSliderAnimationDelay?: number;
11
- }
12
- export interface SetTimeSyncPayload {
13
- targetId: string;
14
- value: SetTimeSyncProps;
15
- }
16
- export interface SetBboxSyncPayload {
17
- targetId: string;
18
- bbox: {
19
- left: number;
20
- bottom: number;
21
- right: number;
22
- top: number;
23
- };
24
- srs: string;
25
- }
26
- export interface SetLayerActionsSyncPayload {
27
- source: {
28
- type: string;
29
- payload: SyncLayerPayloads;
30
- } | null;
31
- targets: SyncLayerPayloads[];
32
- }
33
- export interface SetTimeSyncActionPayload {
34
- source: ReturnType<typeof setTime> | null;
35
- groups: string[];
36
- targets: SetTimeSyncPayload[];
37
- }
38
- export interface SetBboxSyncActionPayload {
39
- source: ReturnType<typeof setBbox> | null;
40
- groups: string[];
41
- targets: SetBboxSyncPayload[];
42
- }
43
- export type GenericSyncActionPayload = SetBboxSyncPayload | SetTimeSyncPayload | SetLayerActionsSyncPayload;
@@ -1,24 +0,0 @@
1
- import type { SetLayerStylePayload } from '@opengeoweb/webmap-react';
2
- import type { MapActionOrigin } from '../map/map/enums';
3
- import type { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetAutoLayerIdPayload, SetBaseLayersPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerNamePayload, SetLayerOpacityPayload } from '../map/types';
4
- import type { SetTimeSyncProps } from './synchronizationActions/types';
5
- export interface SetTimePayload {
6
- sourceId: string;
7
- origin: string;
8
- value: SetTimeSyncProps;
9
- }
10
- export interface SetBboxPayload {
11
- sourceId: string;
12
- bbox: {
13
- left: number;
14
- bottom: number;
15
- right: number;
16
- top: number;
17
- };
18
- srs: string;
19
- origin?: MapActionOrigin | string;
20
- mapId?: string;
21
- }
22
- export type GenericActionPayload = SetBboxPayload | SetTimePayload;
23
- export type LayerActionPayloadsWithLayerIds = SetLayerOpacityPayload | SetLayerNamePayload | SetLayerEnabledPayload | SetLayerDimensionPayload | SetLayerStylePayload | SetAutoLayerIdPayload;
24
- export type SyncLayerPayloads = LayerActionPayloadsWithLayerIds | AddLayerPayload | MoveLayerPayload | DeleteLayerPayload | SetBaseLayersPayload;
@@ -1,9 +0,0 @@
1
- /**
2
- * The removeInPlace() method modifies an array in place, by removing elements that pass the test implemented by the provided function.
3
- *
4
- * NOTE: This should only be used on draft properties as provided by the immer produce library, as modifying elements in place is bad practice on non draft variables.
5
- *
6
- * @param inDraftArray The draft array to filter, will be modified in place.
7
- * @param condition Function to check each element in the array
8
- */
9
- export declare const removeInPlace: <T>(inDraftArray: T[], condition: (c: T) => boolean) => void;
@@ -1 +0,0 @@
1
- export {};
@@ -1,22 +0,0 @@
1
- export * from './map';
2
- export * from './ui';
3
- export * from './generic';
4
- export { genericListener } from './generic/listener';
5
- export { mapListener } from './map/map/listener';
6
- export { openlayersListener } from './mapStore/openlayers/listener';
7
- export { serviceListener } from './map/service/listener';
8
- export { routerListener } from './router/listener';
9
- export { drawingToolListener } from './drawingTool/listener';
10
- export { layersListener } from './map/layer/listeners';
11
- export { metronomeListener } from './map/map/metronomeListener';
12
- export { commonListener } from './common/listener';
13
- export { unifyReducerMaps, type ReducerMap } from './unifyReducerMaps';
14
- export * from './router';
15
- export * from './drawingTool';
16
- export type * from './types';
17
- export * as storeTestUtils from './map/storeTestUtils';
18
- export * from './generic/linking';
19
- export * as storeUtils from './utils';
20
- export * from './utils';
21
- export * from './store';
22
- export * from './common';
@@ -1,5 +0,0 @@
1
- export * from './service';
2
- export * from './map';
3
- export * from './layer';
4
- export type { WebMapStateModuleState, MapPreset, MapPresetInitialProps, TimeSliderStartEndStep, } from './types';
5
- export * as storeTestSettings from './storeTestSettings';
@@ -1,5 +0,0 @@
1
- export { layerActions, layerReducer } from './reducer';
2
- export type { LayerActions } from './reducer';
3
- export * as layerSelectors from './selectors';
4
- export * as layerTypes from './types';
5
- export * as layerUtils from './utils';
@@ -1,2 +0,0 @@
1
- import type { CoreAppStore } from '../../types';
2
- export declare const layersListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<CoreAppStore, import("redux-thunk").ThunkDispatch<CoreAppStore, unknown, import("redux").UnknownAction>, unknown>;
@@ -1 +0,0 @@
1
- export {};