@opengeoweb/store 19.0.0 → 19.1.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.
- package/dist/README.md +11 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +10819 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/store/common/auth/index.d.ts +3 -0
- package/dist/src/store/common/auth/reducer.d.ts +14 -0
- package/dist/src/store/common/auth/selectors.d.ts +87 -0
- package/dist/src/store/common/auth/types.d.ts +22 -0
- package/dist/src/store/common/index.d.ts +81 -0
- package/dist/src/store/common/listener.d.ts +2 -0
- package/dist/src/store/common/types.d.ts +6 -0
- package/dist/src/store/drawingTool/index.d.ts +4 -0
- package/dist/src/store/drawingTool/listener.d.ts +3 -0
- package/dist/src/store/drawingTool/reducer.d.ts +45 -0
- package/dist/src/store/drawingTool/selectors.d.ts +347 -0
- package/dist/src/store/drawingTool/testUtils.d.ts +1 -0
- package/dist/src/store/drawingTool/utils.d.ts +1 -0
- package/dist/src/store/generic/actions.d.ts +28 -0
- package/dist/src/store/generic/hooks.d.ts +6 -0
- package/dist/src/store/generic/index.d.ts +27 -0
- package/dist/src/store/generic/linking/constants.d.ts +6 -0
- package/dist/src/store/generic/linking/index.d.ts +2 -0
- package/dist/src/store/generic/linking/utils.d.ts +9 -0
- package/dist/src/store/generic/listener.d.ts +2 -0
- package/dist/src/store/generic/loadingIndicator/constants.d.ts +1 -0
- package/dist/src/store/generic/loadingIndicator/index.d.ts +3 -0
- package/dist/src/store/generic/loadingIndicator/reducer.d.ts +13 -0
- package/dist/src/store/generic/loadingIndicator/selectors.d.ts +337 -0
- package/dist/src/store/generic/loadingIndicator/types.d.ts +22 -0
- package/dist/src/store/generic/selectors.d.ts +715 -0
- package/dist/src/store/generic/syncGroups/__mocks__/mockState.d.ts +2 -0
- package/dist/src/store/generic/syncGroups/constants.d.ts +5 -0
- package/dist/src/store/generic/syncGroups/featureGroupUtils.d.ts +11 -0
- package/dist/src/store/generic/syncGroups/featureLinks.d.ts +6 -0
- package/dist/src/store/generic/syncGroups/featureSyncLayers.d.ts +10 -0
- package/dist/src/store/generic/syncGroups/hooks.d.ts +20 -0
- package/dist/src/store/generic/syncGroups/index.d.ts +13 -0
- package/dist/src/store/generic/syncGroups/listener.d.ts +2 -0
- package/dist/src/store/generic/syncGroups/reducer.d.ts +62 -0
- package/dist/src/store/generic/syncGroups/selector.d.ts +50 -0
- package/dist/src/store/generic/syncGroups/selectors.d.ts +235 -0
- package/dist/src/store/generic/syncGroups/syncSourceDisplayName.d.ts +2 -0
- package/dist/src/store/generic/syncGroups/types.d.ts +200 -0
- package/dist/src/store/generic/syncGroups/utils.d.ts +76 -0
- package/dist/src/store/generic/synchronizationActions/actions.d.ts +11 -0
- package/dist/src/store/generic/synchronizationActions/types.d.ts +43 -0
- package/dist/src/store/generic/types.d.ts +24 -0
- package/dist/src/store/generic/utils.d.ts +9 -0
- package/dist/src/store/index.d.ts +22 -0
- package/dist/src/store/map/index.d.ts +5 -0
- package/dist/src/store/map/layer/index.d.ts +6 -0
- package/dist/src/store/map/layer/listeners.d.ts +2 -0
- package/dist/src/store/map/layer/reducer.d.ts +94 -0
- package/dist/src/store/map/layer/selectors.d.ts +2547 -0
- package/dist/src/store/map/layer/types.d.ts +198 -0
- package/dist/src/store/map/layer/utils.d.ts +41 -0
- package/dist/src/store/map/map/actions.d.ts +9 -0
- package/dist/src/store/map/map/constants.d.ts +3 -0
- package/dist/src/store/map/map/enums.d.ts +3 -0
- package/dist/src/store/map/map/filterLayers.d.ts +10 -0
- package/dist/src/store/map/map/index.d.ts +26 -0
- package/dist/src/store/map/map/listener.d.ts +4 -0
- package/dist/src/store/map/map/mapListenerAnimationUtils.d.ts +28 -0
- package/dist/src/store/map/map/metronomeListener.d.ts +2 -0
- package/dist/src/store/map/map/olMapListenerAnimationUtils.d.ts +46 -0
- package/dist/src/store/map/map/reducer.d.ts +142 -0
- package/dist/src/store/map/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.d.ts +7 -0
- package/dist/src/store/map/map/selectors.d.ts +3533 -0
- package/dist/src/store/map/map/types.d.ts +328 -0
- package/dist/src/store/map/map/utils.d.ts +87 -0
- package/dist/src/store/map/service/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -0
- package/dist/src/store/map/service/index.d.ts +4 -0
- package/dist/src/store/map/service/listener.d.ts +5 -0
- package/dist/src/store/map/service/localStorage.d.ts +3 -0
- package/dist/src/store/map/service/reducer.d.ts +10 -0
- package/dist/src/store/map/service/selectors.d.ts +386 -0
- package/dist/src/store/map/service/types.d.ts +53 -0
- package/dist/src/store/map/storeTestSettings.d.ts +8 -0
- package/dist/src/store/map/storeTestUtils.d.ts +17 -0
- package/dist/src/store/map/types.d.ts +11 -0
- package/dist/src/store/mapStore/openlayers/listener.d.ts +2 -0
- package/dist/src/store/mapStore/openlayers/syncGroupViewStore.d.ts +26 -0
- package/dist/src/store/router/index.d.ts +2 -0
- package/dist/src/store/router/listener.d.ts +2 -0
- package/dist/src/store/router/reducer.d.ts +9 -0
- package/dist/src/store/router/types.d.ts +9 -0
- package/dist/src/store/router/utils.d.ts +4 -0
- package/dist/src/store/store.d.ts +37 -0
- package/dist/src/store/types.d.ts +7 -0
- package/dist/src/store/ui/index.d.ts +5 -0
- package/dist/src/store/ui/reducer.d.ts +39 -0
- package/dist/src/store/ui/selectors.d.ts +234 -0
- package/dist/src/store/ui/types.d.ts +98 -0
- package/dist/src/store/ui/useSetupDialog.d.ts +11 -0
- package/dist/src/store/unifyReducerMaps.d.ts +3 -0
- package/dist/src/store/utils.d.ts +6 -0
- package/package.json +3 -2
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import type { TypedUseSelectorHook } from 'react-redux';
|
|
2
|
+
import type { CoreAppStore } from '../types';
|
|
3
|
+
import type { DialogType, UIModuleState, UIStoreType, UIType } from './types';
|
|
4
|
+
export declare const useAppSelector: TypedUseSelectorHook<CoreAppStore>;
|
|
5
|
+
export declare const getUiStore: (store: UIModuleState) => UIStoreType;
|
|
6
|
+
/**
|
|
7
|
+
* Gets the active map Id and wether a dialog is open or closed
|
|
8
|
+
*
|
|
9
|
+
* Example: getDialogDetailsByType(store, 'legend')
|
|
10
|
+
* @param {object} store store object from which the ui state wll be extracted
|
|
11
|
+
* @param {string} dialogType type of the dialog
|
|
12
|
+
* @returns {array} [string, boolean] first element gives the active map id, second element whether the dialog is open
|
|
13
|
+
*/
|
|
14
|
+
export declare const getDialogDetailsByType: (store: UIModuleState, dialogType: DialogType) => UIType;
|
|
15
|
+
/**
|
|
16
|
+
* For a given ui component: gets wether the dialog is open or closed
|
|
17
|
+
*
|
|
18
|
+
* @param {object} store store object from which the ui state wll be extracted
|
|
19
|
+
* @param {string} dialogType type of the dialog
|
|
20
|
+
* @returns {boolean} returnType: boolean
|
|
21
|
+
*/
|
|
22
|
+
export declare const getisDialogOpen: ((state: UIModuleState, dialogType: DialogType) => boolean) & {
|
|
23
|
+
clearCache: () => void;
|
|
24
|
+
resultsCount: () => number;
|
|
25
|
+
resetResultsCount: () => void;
|
|
26
|
+
} & {
|
|
27
|
+
resultFunc: (resultFuncArgs_0: UIType) => boolean;
|
|
28
|
+
memoizedResultFunc: ((resultFuncArgs_0: UIType) => boolean) & {
|
|
29
|
+
clearCache: () => void;
|
|
30
|
+
resultsCount: () => number;
|
|
31
|
+
resetResultsCount: () => void;
|
|
32
|
+
};
|
|
33
|
+
lastResult: () => boolean;
|
|
34
|
+
dependencies: [(store: UIModuleState, dialogType: DialogType) => UIType];
|
|
35
|
+
recomputations: () => number;
|
|
36
|
+
resetRecomputations: () => void;
|
|
37
|
+
dependencyRecomputations: () => number;
|
|
38
|
+
resetDependencyRecomputations: () => void;
|
|
39
|
+
} & {
|
|
40
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
41
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
*For a given ui component: gets the active map Id
|
|
45
|
+
*
|
|
46
|
+
* @param {object} store store object from which the ui state wll be extracted
|
|
47
|
+
* @param {string} dialogType type of the dialog
|
|
48
|
+
* @returns {string} returnType: string - the active map id
|
|
49
|
+
*/
|
|
50
|
+
export declare const getDialogMapId: ((state: UIModuleState, dialogType: DialogType) => string) & {
|
|
51
|
+
clearCache: () => void;
|
|
52
|
+
resultsCount: () => number;
|
|
53
|
+
resetResultsCount: () => void;
|
|
54
|
+
} & {
|
|
55
|
+
resultFunc: (resultFuncArgs_0: UIType) => string;
|
|
56
|
+
memoizedResultFunc: ((resultFuncArgs_0: UIType) => string) & {
|
|
57
|
+
clearCache: () => void;
|
|
58
|
+
resultsCount: () => number;
|
|
59
|
+
resetResultsCount: () => void;
|
|
60
|
+
};
|
|
61
|
+
lastResult: () => string;
|
|
62
|
+
dependencies: [(store: UIModuleState, dialogType: DialogType) => UIType];
|
|
63
|
+
recomputations: () => number;
|
|
64
|
+
resetRecomputations: () => void;
|
|
65
|
+
dependencyRecomputations: () => number;
|
|
66
|
+
resetDependencyRecomputations: () => void;
|
|
67
|
+
} & {
|
|
68
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
69
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
*For a given ui component: gets the order of visible dialog
|
|
73
|
+
*
|
|
74
|
+
* @param {object} store store object from which the ui state wll be extracted
|
|
75
|
+
* @param {DialogType} dialogType type of the dialog
|
|
76
|
+
* @returns {number} the higher the order number the higher the zIndex
|
|
77
|
+
*/
|
|
78
|
+
export declare const getDialogOrder: (store: UIModuleState, dialogType: DialogType) => number;
|
|
79
|
+
/**
|
|
80
|
+
*For a given ui component: returns if ordered on top
|
|
81
|
+
*
|
|
82
|
+
* @param {object} store store object from which the ui state wll be extracted
|
|
83
|
+
* @param {DialogType} dialogType type of the dialog
|
|
84
|
+
* @returns {boolean}
|
|
85
|
+
*/
|
|
86
|
+
export declare const getDialogIsOrderedOnTop: (store: UIModuleState, dialogType: DialogType) => boolean;
|
|
87
|
+
export declare const getDialogSource: ((state: UIModuleState, dialogType: DialogType) => import("@opengeoweb/shared").Source) & {
|
|
88
|
+
clearCache: () => void;
|
|
89
|
+
resultsCount: () => number;
|
|
90
|
+
resetResultsCount: () => void;
|
|
91
|
+
} & {
|
|
92
|
+
resultFunc: (resultFuncArgs_0: UIType) => import("@opengeoweb/shared").Source;
|
|
93
|
+
memoizedResultFunc: ((resultFuncArgs_0: UIType) => import("@opengeoweb/shared").Source) & {
|
|
94
|
+
clearCache: () => void;
|
|
95
|
+
resultsCount: () => number;
|
|
96
|
+
resetResultsCount: () => void;
|
|
97
|
+
};
|
|
98
|
+
lastResult: () => import("@opengeoweb/shared").Source;
|
|
99
|
+
dependencies: [(store: UIModuleState, dialogType: DialogType) => UIType];
|
|
100
|
+
recomputations: () => number;
|
|
101
|
+
resetRecomputations: () => void;
|
|
102
|
+
dependencyRecomputations: () => number;
|
|
103
|
+
resetDependencyRecomputations: () => void;
|
|
104
|
+
} & {
|
|
105
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
106
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Get the active window that should receive keyboard shortcuts
|
|
110
|
+
*
|
|
111
|
+
* Example: getActiveWindowId(store)
|
|
112
|
+
* @param {object} store store object from which the window state will be extracted
|
|
113
|
+
* @returns {string} active window id
|
|
114
|
+
*/
|
|
115
|
+
export declare const getActiveWindowId: ((state: UIModuleState) => string) & {
|
|
116
|
+
clearCache: () => void;
|
|
117
|
+
resultsCount: () => number;
|
|
118
|
+
resetResultsCount: () => void;
|
|
119
|
+
} & {
|
|
120
|
+
resultFunc: (resultFuncArgs_0: UIStoreType) => string;
|
|
121
|
+
memoizedResultFunc: ((resultFuncArgs_0: UIStoreType) => string) & {
|
|
122
|
+
clearCache: () => void;
|
|
123
|
+
resultsCount: () => number;
|
|
124
|
+
resetResultsCount: () => void;
|
|
125
|
+
};
|
|
126
|
+
lastResult: () => string;
|
|
127
|
+
dependencies: [(store: UIModuleState) => UIStoreType];
|
|
128
|
+
recomputations: () => number;
|
|
129
|
+
resetRecomputations: () => void;
|
|
130
|
+
dependencyRecomputations: () => number;
|
|
131
|
+
resetDependencyRecomputations: () => void;
|
|
132
|
+
} & {
|
|
133
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
134
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Gets the panelId of which the dialog is opened from
|
|
138
|
+
*
|
|
139
|
+
* Example: getSourcePanelId(store, 'publicWarnings')
|
|
140
|
+
* @param {object} store store object from which the panelId state will be extracted
|
|
141
|
+
* @returns {string} the dialog type
|
|
142
|
+
*/
|
|
143
|
+
export declare const getSourcePanelId: ((state: UIModuleState, dialogType: DialogType) => string) & {
|
|
144
|
+
clearCache: () => void;
|
|
145
|
+
resultsCount: () => number;
|
|
146
|
+
resetResultsCount: () => void;
|
|
147
|
+
} & {
|
|
148
|
+
resultFunc: (resultFuncArgs_0: UIType | undefined) => string;
|
|
149
|
+
memoizedResultFunc: ((resultFuncArgs_0: UIType | undefined) => string) & {
|
|
150
|
+
clearCache: () => void;
|
|
151
|
+
resultsCount: () => number;
|
|
152
|
+
resetResultsCount: () => void;
|
|
153
|
+
};
|
|
154
|
+
lastResult: () => string;
|
|
155
|
+
dependencies: [(store: UIModuleState, dialogType: DialogType) => UIType | undefined];
|
|
156
|
+
recomputations: () => number;
|
|
157
|
+
resetRecomputations: () => void;
|
|
158
|
+
dependencyRecomputations: () => number;
|
|
159
|
+
resetDependencyRecomputations: () => void;
|
|
160
|
+
} & {
|
|
161
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
162
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Gets if this is the active window
|
|
166
|
+
*
|
|
167
|
+
* Example: getIsActiveWindowId(store, viewId)
|
|
168
|
+
* @param {object} store store object from which the window state will be extracted
|
|
169
|
+
* @returns {string} active window id
|
|
170
|
+
*/
|
|
171
|
+
export declare const getIsActiveWindowId: ((state: UIModuleState, viewId: string) => boolean) & {
|
|
172
|
+
clearCache: () => void;
|
|
173
|
+
resultsCount: () => number;
|
|
174
|
+
resetResultsCount: () => void;
|
|
175
|
+
} & {
|
|
176
|
+
resultFunc: (resultFuncArgs_0: UIStoreType, resultFuncArgs_1: string) => boolean;
|
|
177
|
+
memoizedResultFunc: ((resultFuncArgs_0: UIStoreType, resultFuncArgs_1: string) => boolean) & {
|
|
178
|
+
clearCache: () => void;
|
|
179
|
+
resultsCount: () => number;
|
|
180
|
+
resetResultsCount: () => void;
|
|
181
|
+
};
|
|
182
|
+
lastResult: () => boolean;
|
|
183
|
+
dependencies: [(store: UIModuleState) => UIStoreType, (_store: UIModuleState, viewId: string) => string];
|
|
184
|
+
recomputations: () => number;
|
|
185
|
+
resetRecomputations: () => void;
|
|
186
|
+
dependencyRecomputations: () => number;
|
|
187
|
+
resetDependencyRecomputations: () => void;
|
|
188
|
+
} & {
|
|
189
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
190
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
191
|
+
};
|
|
192
|
+
export declare const getDialogIsLoading: ((state: UIModuleState, dialogType: DialogType) => boolean) & {
|
|
193
|
+
clearCache: () => void;
|
|
194
|
+
resultsCount: () => number;
|
|
195
|
+
resetResultsCount: () => void;
|
|
196
|
+
} & {
|
|
197
|
+
resultFunc: (resultFuncArgs_0: UIType) => boolean;
|
|
198
|
+
memoizedResultFunc: ((resultFuncArgs_0: UIType) => boolean) & {
|
|
199
|
+
clearCache: () => void;
|
|
200
|
+
resultsCount: () => number;
|
|
201
|
+
resetResultsCount: () => void;
|
|
202
|
+
};
|
|
203
|
+
lastResult: () => boolean;
|
|
204
|
+
dependencies: [(store: UIModuleState, dialogType: DialogType) => UIType];
|
|
205
|
+
recomputations: () => number;
|
|
206
|
+
resetRecomputations: () => void;
|
|
207
|
+
dependencyRecomputations: () => number;
|
|
208
|
+
resetDependencyRecomputations: () => void;
|
|
209
|
+
} & {
|
|
210
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
211
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
212
|
+
};
|
|
213
|
+
export declare const getDialogError: ((state: UIModuleState, dialogType: DialogType) => string) & {
|
|
214
|
+
clearCache: () => void;
|
|
215
|
+
resultsCount: () => number;
|
|
216
|
+
resetResultsCount: () => void;
|
|
217
|
+
} & {
|
|
218
|
+
resultFunc: (resultFuncArgs_0: UIType) => string;
|
|
219
|
+
memoizedResultFunc: ((resultFuncArgs_0: UIType) => string) & {
|
|
220
|
+
clearCache: () => void;
|
|
221
|
+
resultsCount: () => number;
|
|
222
|
+
resetResultsCount: () => void;
|
|
223
|
+
};
|
|
224
|
+
lastResult: () => string;
|
|
225
|
+
dependencies: [(store: UIModuleState, dialogType: DialogType) => UIType];
|
|
226
|
+
recomputations: () => number;
|
|
227
|
+
resetRecomputations: () => void;
|
|
228
|
+
dependencyRecomputations: () => number;
|
|
229
|
+
resetDependencyRecomputations: () => void;
|
|
230
|
+
} & {
|
|
231
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
232
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
233
|
+
};
|
|
234
|
+
export declare const getUiDialogsByActiveMapId: (store: UIModuleState, mapId: string) => UIType[];
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { Source } from '@opengeoweb/shared';
|
|
2
|
+
type WithSuffix<T extends string> = T | `${T}-${string}`;
|
|
3
|
+
type DrawingToolDialogType = WithSuffix<DialogTypes.DrawingTool>;
|
|
4
|
+
type LegendDialogDialogType = WithSuffix<DialogTypes.Legend>;
|
|
5
|
+
type LayerManagerDialogType = WithSuffix<DialogTypes.LayerManager>;
|
|
6
|
+
type LayerSelectDialogType = WithSuffix<DialogTypes.LayerSelect>;
|
|
7
|
+
type DockedLayerManagerDialogType = WithSuffix<DialogTypes.DockedLayerManager>;
|
|
8
|
+
type GetFeatureInfoDialogType = WithSuffix<DialogTypes.Getfeatureinfo>;
|
|
9
|
+
type KeywordFilterDialogType = WithSuffix<DialogTypes.KeywordFilter>;
|
|
10
|
+
type SearchDialogDialogType = WithSuffix<DialogTypes.Search>;
|
|
11
|
+
export declare enum DialogTypes {
|
|
12
|
+
LayerInfo = "layerInfo",
|
|
13
|
+
SyncGroups = "syncGroups",
|
|
14
|
+
TimeSeriesSelect = "timeSeriesSelect",
|
|
15
|
+
TimeSeriesManager = "timeSeriesManager",
|
|
16
|
+
TimeSeriesInfo = "timeSeriesInfo",
|
|
17
|
+
TimeSeriesLocationInfo = "timeSeriesLocationInfo",
|
|
18
|
+
KeywordFilter = "keywordFilter",
|
|
19
|
+
DimensionSelectEnsembleMember = "dimensionSelect-ensemble_member",
|
|
20
|
+
DimensionSelectElevation = "dimensionSelect-elevation",
|
|
21
|
+
LayerManager = "layerManager",
|
|
22
|
+
LayerSelect = "layerSelect",
|
|
23
|
+
Legend = "legend",
|
|
24
|
+
DrawingTool = "drawingTool",
|
|
25
|
+
DockedLayerManager = "dockedLayerManager",
|
|
26
|
+
ObjectManager = "objectManager",
|
|
27
|
+
PublicWarnings = "publicWarnings",
|
|
28
|
+
Search = "search",
|
|
29
|
+
AreaObjectLoader = "areaObjectLoader",
|
|
30
|
+
DataExplorer = "dataExplorer",
|
|
31
|
+
DataExplorerInfo = "dataExplorerInfo",
|
|
32
|
+
SelectedFeatures = "selectedFeatures",
|
|
33
|
+
SoundingsSources = "soundingsSources",
|
|
34
|
+
SoundingsLocations = "soundingsLocations",
|
|
35
|
+
SoundingsManager = "soundingsManager",
|
|
36
|
+
SoundingsProfileData = "soundingsProfileData",
|
|
37
|
+
TimeseriesLocations = "timeseriesLocations",
|
|
38
|
+
Getfeatureinfo = "getfeatureinfo"
|
|
39
|
+
}
|
|
40
|
+
export type DialogType = DialogTypes | LegendDialogDialogType | LayerManagerDialogType | LayerSelectDialogType | DockedLayerManagerDialogType | GetFeatureInfoDialogType | KeywordFilterDialogType | SearchDialogDialogType | DrawingToolDialogType;
|
|
41
|
+
export type { Source };
|
|
42
|
+
export interface UIType {
|
|
43
|
+
type: DialogType;
|
|
44
|
+
activeMapId: string;
|
|
45
|
+
isOpen: boolean;
|
|
46
|
+
source?: Source;
|
|
47
|
+
isLoading?: boolean;
|
|
48
|
+
error?: string;
|
|
49
|
+
sourcePanelId?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface UIStoreType {
|
|
52
|
+
order: DialogType[];
|
|
53
|
+
dialogs: Partial<Record<DialogType, UIType>>;
|
|
54
|
+
activeWindowId?: string;
|
|
55
|
+
}
|
|
56
|
+
export interface UIModuleState {
|
|
57
|
+
ui?: UIStoreType;
|
|
58
|
+
}
|
|
59
|
+
export interface SetActiveMapIdForDialogPayload {
|
|
60
|
+
type: DialogType;
|
|
61
|
+
mapId: string;
|
|
62
|
+
setOpen?: boolean;
|
|
63
|
+
source?: Source;
|
|
64
|
+
origin?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface UIRegisterDialogPayload {
|
|
67
|
+
type: DialogType;
|
|
68
|
+
mapId?: string;
|
|
69
|
+
setOpen?: boolean;
|
|
70
|
+
source?: Source;
|
|
71
|
+
}
|
|
72
|
+
export interface UIUnRegisterDialogPayload {
|
|
73
|
+
type: DialogType;
|
|
74
|
+
}
|
|
75
|
+
export interface UIToggleDialogPayload {
|
|
76
|
+
type: DialogType;
|
|
77
|
+
setOpen: boolean;
|
|
78
|
+
origin?: string;
|
|
79
|
+
mapId?: string;
|
|
80
|
+
sourcePanelId?: string;
|
|
81
|
+
}
|
|
82
|
+
export interface UIOrderDialogPayload {
|
|
83
|
+
type: DialogType;
|
|
84
|
+
}
|
|
85
|
+
export interface SetActiveWindowIdPayload {
|
|
86
|
+
activeWindowId: string;
|
|
87
|
+
}
|
|
88
|
+
export interface UIToggleIsLoadingPayload {
|
|
89
|
+
type: DialogType;
|
|
90
|
+
isLoading: boolean;
|
|
91
|
+
}
|
|
92
|
+
export interface UISetErrorPayload {
|
|
93
|
+
type: DialogType;
|
|
94
|
+
error: string;
|
|
95
|
+
}
|
|
96
|
+
export interface UIToggleShowSentryRecordButton {
|
|
97
|
+
type: DialogType;
|
|
98
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { uiTypes } from '.';
|
|
2
|
+
export interface SetupDialogReturnValue {
|
|
3
|
+
setDialogOrder: () => void;
|
|
4
|
+
dialogOrder: number;
|
|
5
|
+
onCloseDialog: () => void;
|
|
6
|
+
uiSource: uiTypes.Source;
|
|
7
|
+
isDialogOpen: boolean;
|
|
8
|
+
uiIsLoading: boolean;
|
|
9
|
+
uiError: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const useSetupDialog: (dialogType: uiTypes.DialogType, source?: uiTypes.Source) => SetupDialogReturnValue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/store",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.1.1",
|
|
4
4
|
"description": "GeoWeb Store library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -32,13 +32,14 @@
|
|
|
32
32
|
"ol": "^10.4.0",
|
|
33
33
|
"@turf/turf": "^7.2.0",
|
|
34
34
|
"@types/geojson": "^7946.0.14",
|
|
35
|
-
"react-router": "^7.15.
|
|
35
|
+
"react-router": "^7.15.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": "19"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|
|
42
|
+
"!dist/package.json",
|
|
42
43
|
"README.md",
|
|
43
44
|
"package.json"
|
|
44
45
|
]
|