@opengeoweb/store 12.2.0 → 12.4.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/index.esm.js +35 -19
- package/package.json +8 -8
- package/src/store/drawingTool/listener.d.ts +1 -1
- package/src/store/drawingTool/reducer.d.ts +2 -2
- package/src/store/drawingTool/selectors.d.ts +329 -25
- package/src/store/generic/listener.d.ts +1 -1
- package/src/store/generic/loadingIndicator/reducer.d.ts +10 -10
- package/src/store/generic/loadingIndicator/selectors.d.ts +252 -13
- package/src/store/generic/loadingIndicator/types.d.ts +1 -1
- package/src/store/generic/selectors.d.ts +309 -49
- package/src/store/generic/syncGroups/listener.d.ts +1 -1
- package/src/store/generic/syncGroups/reducer.d.ts +1 -1
- package/src/store/generic/syncGroups/selector.d.ts +19 -3
- package/src/store/generic/syncGroups/selectors.d.ts +241 -35
- package/src/store/map/layer/listeners.d.ts +1 -1
- package/src/store/map/layer/reducer.d.ts +1 -1
- package/src/store/map/layer/selectors.d.ts +1875 -145
- package/src/store/map/map/listener.d.ts +2 -2
- package/src/store/map/map/metronomeListener.d.ts +1 -1
- package/src/store/map/map/reducer.d.ts +1 -1
- package/src/store/map/map/selectors.d.ts +4166 -192
- package/src/store/map/service/listener.d.ts +4 -4
- package/src/store/map/service/selectors.d.ts +234 -18
- package/src/store/mapStore/openlayers/listener.d.ts +1 -1
- package/src/store/router/listener.d.ts +1 -1
- package/src/store/store.d.ts +5 -11
- package/src/store/ui/reducer.d.ts +7 -1
- package/src/store/ui/selectors.d.ts +191 -31
- package/src/store/ui/types.d.ts +3 -3
- package/src/store/unifyReducerMaps.d.ts +1 -1
package/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSlice, createSelector, createAction, createListenerMiddleware, isAnyOf, createEntityAdapter, combineReducers, configureStore
|
|
1
|
+
import { createSlice, createSelector, createAction, createListenerMiddleware, isAnyOf, createEntityAdapter, combineReducers, configureStore } from '@reduxjs/toolkit';
|
|
2
2
|
import { isEqual, isEmpty, compact } from 'lodash';
|
|
3
3
|
import { dateUtils, PROJECTION, defaultDelay } from '@opengeoweb/shared';
|
|
4
4
|
import { webmapUtils, parseISO8601IntervalToDateInterval, LayerType, getWMJSMapById, webmapTestSettings, WMLayer, getWMSRequests, handleDateUtilsISOString, isProjectionSupported, queryWMSLayers, getWMLayerById, WMInvalidDateValues } from '@opengeoweb/webmap';
|
|
@@ -2201,9 +2201,10 @@ var slice$6 = createSlice({
|
|
|
2201
2201
|
targets = _action$payload24.targets,
|
|
2202
2202
|
source = _action$payload24.source;
|
|
2203
2203
|
return targets.reduce(function (prevState, target) {
|
|
2204
|
+
var actionType = (source === null || source === void 0 ? void 0 : source.type) || 'GENERIC_SYNC_SETLAYERACTIONS';
|
|
2204
2205
|
var action = {
|
|
2205
2206
|
payload: target,
|
|
2206
|
-
type:
|
|
2207
|
+
type: actionType
|
|
2207
2208
|
};
|
|
2208
2209
|
/* Handle the Layer action with the same logic, using the same reducer */
|
|
2209
2210
|
return layerReducer(prevState, action);
|
|
@@ -2340,6 +2341,14 @@ var slice$5 = createSlice({
|
|
|
2340
2341
|
error = _action$payload4.error,
|
|
2341
2342
|
type = _action$payload4.type;
|
|
2342
2343
|
draft.dialogs[type].error = error;
|
|
2344
|
+
},
|
|
2345
|
+
closeDialogsForMapId: function closeDialogsForMapId(draft, action) {
|
|
2346
|
+
var mapId = action.payload.mapId;
|
|
2347
|
+
Object.keys(draft.dialogs).forEach(function (key) {
|
|
2348
|
+
if (draft.dialogs[key].activeMapId === mapId) {
|
|
2349
|
+
draft.dialogs[key].isOpen = false;
|
|
2350
|
+
}
|
|
2351
|
+
});
|
|
2343
2352
|
}
|
|
2344
2353
|
}
|
|
2345
2354
|
});
|
|
@@ -2964,9 +2973,10 @@ var slice$4 = createSlice({
|
|
|
2964
2973
|
targets = _action$payload37.targets,
|
|
2965
2974
|
source = _action$payload37.source;
|
|
2966
2975
|
return targets.reduce(function (prevState, target) {
|
|
2976
|
+
var actionType = (source === null || source === void 0 ? void 0 : source.type) || 'GENERIC_SYNC_SETLAYERACTIONS';
|
|
2967
2977
|
var action = {
|
|
2968
2978
|
payload: target,
|
|
2969
|
-
type:
|
|
2979
|
+
type: actionType
|
|
2970
2980
|
};
|
|
2971
2981
|
/* Handle the Layer action with the same logic, using the same reducer */
|
|
2972
2982
|
return mapReducer(prevState, action);
|
|
@@ -3691,8 +3701,8 @@ var DialogTypes;
|
|
|
3691
3701
|
DialogTypes["SyncGroups"] = "syncGroups";
|
|
3692
3702
|
DialogTypes["TimeSeriesSelect"] = "timeSeriesSelect";
|
|
3693
3703
|
DialogTypes["TimeSeriesManager"] = "timeSeriesManager";
|
|
3694
|
-
DialogTypes["
|
|
3695
|
-
DialogTypes["
|
|
3704
|
+
DialogTypes["TimeSeriesInfo"] = "timeSeriesInfo";
|
|
3705
|
+
DialogTypes["TimeSeriesLocationInfo"] = "timeSeriesLocationInfo";
|
|
3696
3706
|
DialogTypes["KeywordFilter"] = "keywordFilter";
|
|
3697
3707
|
DialogTypes["DimensionSelectEnsembleMember"] = "dimensionSelect-ensemble_member";
|
|
3698
3708
|
DialogTypes["DimensionSelectElevation"] = "dimensionSelect-elevation";
|
|
@@ -3705,7 +3715,7 @@ var DialogTypes;
|
|
|
3705
3715
|
DialogTypes["Search"] = "search";
|
|
3706
3716
|
DialogTypes["AreaObjectLoader"] = "areaObjectLoader";
|
|
3707
3717
|
DialogTypes["SoundingsSources"] = "soundingsSources";
|
|
3708
|
-
DialogTypes["
|
|
3718
|
+
DialogTypes["SoundingsLocations"] = "soundingsLocations";
|
|
3709
3719
|
})(DialogTypes || (DialogTypes = {}));
|
|
3710
3720
|
|
|
3711
3721
|
var types$2 = /*#__PURE__*/Object.freeze({
|
|
@@ -7245,6 +7255,9 @@ mapListener.startListening({
|
|
|
7245
7255
|
origin: LayerActionOrigin.unregisterMapListener
|
|
7246
7256
|
}));
|
|
7247
7257
|
});
|
|
7258
|
+
listenerApi.dispatch(uiActions.closeDialogsForMapId({
|
|
7259
|
+
mapId: mapId
|
|
7260
|
+
}));
|
|
7248
7261
|
}
|
|
7249
7262
|
});
|
|
7250
7263
|
mapListener.startListening({
|
|
@@ -7391,6 +7404,7 @@ var getGroupForMap = function getGroupForMap(mapId, state) {
|
|
|
7391
7404
|
openlayersListener.startListening({
|
|
7392
7405
|
actionCreator: mapActions.setBbox,
|
|
7393
7406
|
effect: function effect(_ref, listenerApi) {
|
|
7407
|
+
var _window$visualViewpor, _window$visualViewpor2;
|
|
7394
7408
|
var payload = _ref.payload;
|
|
7395
7409
|
var mapId = payload.mapId,
|
|
7396
7410
|
bbox = payload.bbox,
|
|
@@ -7402,11 +7416,16 @@ openlayersListener.startListening({
|
|
|
7402
7416
|
center: getCenter(extent)
|
|
7403
7417
|
});
|
|
7404
7418
|
storedViewForMap.setView(view);
|
|
7405
|
-
//
|
|
7419
|
+
// OpenLayers View need a viewportsize to optimally fit an extent to a map. Try to find it in the following order:
|
|
7420
|
+
// 1. Try to find the div element containing the layers and get its clientWidth/clientHeight
|
|
7421
|
+
// 2. If that fails try the viewport visualViewport width/height
|
|
7422
|
+
// 3. If that fails, fallback to 1024 / 1024
|
|
7406
7423
|
// Feature request made for OL to help us get this right https://github.com/openlayers/openlayers/issues/16572
|
|
7407
|
-
|
|
7408
|
-
var
|
|
7409
|
-
|
|
7424
|
+
var mapElement = document.getElementById("mapcontainer_".concat(mapId));
|
|
7425
|
+
var viewPortWidth = (mapElement === null || mapElement === void 0 ? void 0 : mapElement.clientWidth) || ((_window$visualViewpor = window.visualViewport) === null || _window$visualViewpor === void 0 ? void 0 : _window$visualViewpor.width) || 1024;
|
|
7426
|
+
var viewPortHeight = (mapElement === null || mapElement === void 0 ? void 0 : mapElement.clientHeight) || ((_window$visualViewpor2 = window.visualViewport) === null || _window$visualViewpor2 === void 0 ? void 0 : _window$visualViewpor2.height) || 1024;
|
|
7427
|
+
view.setViewportSize([viewPortWidth, viewPortHeight]);
|
|
7428
|
+
view.fit(extent);
|
|
7410
7429
|
// Also: if this map is part of a group and the srs has changed => change group view
|
|
7411
7430
|
var mapSyncGroup = getGroupForMap(mapId, listenerApi.getState());
|
|
7412
7431
|
if (!mapSyncGroup) {
|
|
@@ -8930,9 +8949,6 @@ var createMockStore = function createMockStore(mockState) {
|
|
|
8930
8949
|
}
|
|
8931
8950
|
});
|
|
8932
8951
|
};
|
|
8933
|
-
var getDefaultEnhancers = function getDefaultEnhancers() {
|
|
8934
|
-
return new EnhancerArray();
|
|
8935
|
-
};
|
|
8936
8952
|
/**
|
|
8937
8953
|
* This creates an OpenGeoWeb redux store for redux connected components
|
|
8938
8954
|
*
|
|
@@ -8947,12 +8963,12 @@ var configureOpenGeoWebStore = function configureOpenGeoWebStore() {
|
|
|
8947
8963
|
var preloadedState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8948
8964
|
var extraReducers = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8949
8965
|
var extraMiddleWares = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
8950
|
-
var extraEnhancers = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] :
|
|
8966
|
+
var extraEnhancers = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
8951
8967
|
var enableDevTools = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
|
|
8952
8968
|
var allReducers = unifyReducerMaps([storeReducerMap, extraReducers]);
|
|
8953
8969
|
var openGeoWebReducers = combineReducers(allReducers);
|
|
8954
8970
|
// Combine middlewares
|
|
8955
|
-
var middlewares = [mapListener.middleware, serviceListener.middleware, layersListener.middleware, genericListener.middleware].concat(_toConsumableArray(extraMiddleWares));
|
|
8971
|
+
var middlewares = [mapListener.middleware, serviceListener.middleware, layersListener.middleware, genericListener.middleware, openlayersListener.middleware].concat(_toConsumableArray(extraMiddleWares));
|
|
8956
8972
|
// Ensure we do not add middlewares twice
|
|
8957
8973
|
var uniqueMiddlewares = Array.from(new Set(middlewares.map(function (obj) {
|
|
8958
8974
|
return obj;
|
|
@@ -8960,19 +8976,19 @@ var configureOpenGeoWebStore = function configureOpenGeoWebStore() {
|
|
|
8960
8976
|
return configureStore({
|
|
8961
8977
|
reducer: openGeoWebReducers,
|
|
8962
8978
|
preloadedState: preloadedState,
|
|
8963
|
-
enhancers: function enhancers(
|
|
8964
|
-
return
|
|
8979
|
+
enhancers: function enhancers(getDefaultEnhancers) {
|
|
8980
|
+
return getDefaultEnhancers().concat(extraEnhancers);
|
|
8965
8981
|
},
|
|
8966
8982
|
devTools: enableDevTools,
|
|
8967
8983
|
middleware: function middleware(getDefaultMiddleware) {
|
|
8968
|
-
return
|
|
8984
|
+
return getDefaultMiddleware({
|
|
8969
8985
|
serializableCheck: {
|
|
8970
8986
|
warnAfter: 128
|
|
8971
8987
|
},
|
|
8972
8988
|
immutableCheck: {
|
|
8973
8989
|
warnAfter: 128
|
|
8974
8990
|
}
|
|
8975
|
-
})
|
|
8991
|
+
}).concat(uniqueMiddlewares);
|
|
8976
8992
|
}
|
|
8977
8993
|
});
|
|
8978
8994
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/store",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.4.1",
|
|
4
4
|
"description": "GeoWeb Store library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/shared": "12.
|
|
12
|
-
"react-redux": "^
|
|
13
|
-
"@reduxjs/toolkit": "^
|
|
14
|
-
"@opengeoweb/webmap-react": "12.
|
|
15
|
-
"@opengeoweb/webmap": "12.
|
|
11
|
+
"@opengeoweb/shared": "12.4.1",
|
|
12
|
+
"react-redux": "^9.2.0",
|
|
13
|
+
"@reduxjs/toolkit": "^2.6.1",
|
|
14
|
+
"@opengeoweb/webmap-react": "12.4.1",
|
|
15
|
+
"@opengeoweb/webmap": "12.4.1",
|
|
16
16
|
"immer": "^10.0.3",
|
|
17
17
|
"lodash": "^4.17.21",
|
|
18
|
-
"@opengeoweb/metronome": "12.
|
|
19
|
-
"@opengeoweb/timeslider": "12.
|
|
18
|
+
"@opengeoweb/metronome": "12.4.1",
|
|
19
|
+
"@opengeoweb/timeslider": "12.4.1",
|
|
20
20
|
"react-router-dom": "^6.23.1",
|
|
21
21
|
"ol": "^10.4.0",
|
|
22
22
|
"@turf/turf": "^7.2.0"
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DrawtoolModuleStore } from './reducer';
|
|
2
2
|
import { WebMapStateModuleState } from '../map';
|
|
3
|
-
export declare const drawingToolListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<DrawtoolModuleStore & WebMapStateModuleState, import("
|
|
3
|
+
export declare const drawingToolListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<DrawtoolModuleStore & WebMapStateModuleState, import("redux-thunk").ThunkDispatch<DrawtoolModuleStore & WebMapStateModuleState, unknown, import("redux").UnknownAction>, unknown>;
|
|
@@ -9,11 +9,11 @@ export interface DrawToolItem {
|
|
|
9
9
|
geoJSONIntersectionLayerId?: string;
|
|
10
10
|
geoJSONIntersectionBoundsLayerId?: string;
|
|
11
11
|
}
|
|
12
|
-
export type DrawingToolState = EntityState<DrawToolItem>;
|
|
12
|
+
export type DrawingToolState = EntityState<DrawToolItem, string>;
|
|
13
13
|
export interface DrawtoolModuleStore {
|
|
14
14
|
drawingtools?: DrawingToolState;
|
|
15
15
|
}
|
|
16
|
-
export declare const drawAdapter: import("@reduxjs/toolkit").EntityAdapter<DrawToolItem>;
|
|
16
|
+
export declare const drawAdapter: import("@reduxjs/toolkit").EntityAdapter<DrawToolItem, string>;
|
|
17
17
|
export declare const initialState: DrawingToolState;
|
|
18
18
|
export declare const drawingToolReducer: import("redux").Reducer<DrawingToolState>, drawingToolActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
19
19
|
registerDrawTool: (draft: Draft<DrawingToolState>, action: PayloadAction<MapDrawToolOptions & {
|
|
@@ -1,43 +1,347 @@
|
|
|
1
1
|
import type { DrawingToolState, DrawtoolModuleStore } from './reducer';
|
|
2
2
|
export declare const getDrawingtoolStore: (store: DrawtoolModuleStore) => DrawingToolState;
|
|
3
|
-
export declare const selectDrawToolById: (state: DrawtoolModuleStore, id:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
export declare const selectDrawToolById: (state: DrawtoolModuleStore, id: string) => {
|
|
4
|
+
drawToolId: string;
|
|
5
|
+
geoJSONLayerId: string;
|
|
6
|
+
activeDrawModeId: string;
|
|
7
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
8
|
+
shouldAllowMultipleShapes: boolean;
|
|
9
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
10
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
11
|
+
}, selectAllDrawingTools: (state: DrawtoolModuleStore) => import("./reducer").DrawToolItem[];
|
|
12
|
+
export declare const getActiveDrawToolId: ((state: DrawtoolModuleStore) => string) & {
|
|
7
13
|
clearCache: () => void;
|
|
14
|
+
resultsCount: () => number;
|
|
15
|
+
resetResultsCount: () => void;
|
|
16
|
+
} & {
|
|
17
|
+
resultFunc: (resultFuncArgs_0: import("./reducer").DrawToolItem[]) => string;
|
|
18
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("./reducer").DrawToolItem[]) => string) & {
|
|
19
|
+
clearCache: () => void;
|
|
20
|
+
resultsCount: () => number;
|
|
21
|
+
resetResultsCount: () => void;
|
|
22
|
+
};
|
|
23
|
+
lastResult: () => string;
|
|
24
|
+
dependencies: [(state: DrawtoolModuleStore) => import("./reducer").DrawToolItem[]];
|
|
25
|
+
recomputations: () => number;
|
|
26
|
+
resetRecomputations: () => void;
|
|
27
|
+
dependencyRecomputations: () => number;
|
|
28
|
+
resetDependencyRecomputations: () => void;
|
|
29
|
+
} & {
|
|
30
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
31
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
8
32
|
};
|
|
9
|
-
export declare const getDrawModeById: ((state: DrawtoolModuleStore, _drawToolId: string, drawModeId: string) => import("dist/libs/webmap-react/src").DrawMode | undefined) &
|
|
10
|
-
clearCache: () => void;
|
|
11
|
-
}> & {
|
|
33
|
+
export declare const getDrawModeById: ((state: DrawtoolModuleStore, _drawToolId: string, drawModeId: string) => import("dist/libs/webmap-react/src").DrawMode | undefined) & {
|
|
12
34
|
clearCache: () => void;
|
|
35
|
+
resultsCount: () => number;
|
|
36
|
+
resetResultsCount: () => void;
|
|
37
|
+
} & {
|
|
38
|
+
resultFunc: (resultFuncArgs_0: {
|
|
39
|
+
drawToolId: string;
|
|
40
|
+
geoJSONLayerId: string;
|
|
41
|
+
activeDrawModeId: string;
|
|
42
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
43
|
+
shouldAllowMultipleShapes: boolean;
|
|
44
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
45
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
46
|
+
}, resultFuncArgs_1: string) => import("dist/libs/webmap-react/src").DrawMode | undefined;
|
|
47
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
48
|
+
drawToolId: string;
|
|
49
|
+
geoJSONLayerId: string;
|
|
50
|
+
activeDrawModeId: string;
|
|
51
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
52
|
+
shouldAllowMultipleShapes: boolean;
|
|
53
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
54
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
55
|
+
}, resultFuncArgs_1: string) => import("dist/libs/webmap-react/src").DrawMode | undefined) & {
|
|
56
|
+
clearCache: () => void;
|
|
57
|
+
resultsCount: () => number;
|
|
58
|
+
resetResultsCount: () => void;
|
|
59
|
+
};
|
|
60
|
+
lastResult: () => import("dist/libs/webmap-react/src").DrawMode | undefined;
|
|
61
|
+
dependencies: [(state: DrawtoolModuleStore, id: string) => {
|
|
62
|
+
drawToolId: string;
|
|
63
|
+
geoJSONLayerId: string;
|
|
64
|
+
activeDrawModeId: string;
|
|
65
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
66
|
+
shouldAllowMultipleShapes: boolean;
|
|
67
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
68
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
69
|
+
}, (_store: DrawtoolModuleStore, _drawToolId: string, drawModeId: string) => string];
|
|
70
|
+
recomputations: () => number;
|
|
71
|
+
resetRecomputations: () => void;
|
|
72
|
+
dependencyRecomputations: () => number;
|
|
73
|
+
resetDependencyRecomputations: () => void;
|
|
74
|
+
} & {
|
|
75
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
76
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
13
77
|
};
|
|
14
|
-
export declare const getActiveDrawModeId: ((state: DrawtoolModuleStore, id:
|
|
15
|
-
clearCache: () => void;
|
|
16
|
-
}> & {
|
|
78
|
+
export declare const getActiveDrawModeId: ((state: DrawtoolModuleStore, id: string) => string) & {
|
|
17
79
|
clearCache: () => void;
|
|
80
|
+
resultsCount: () => number;
|
|
81
|
+
resetResultsCount: () => void;
|
|
82
|
+
} & {
|
|
83
|
+
resultFunc: (resultFuncArgs_0: {
|
|
84
|
+
drawToolId: string;
|
|
85
|
+
geoJSONLayerId: string;
|
|
86
|
+
activeDrawModeId: string;
|
|
87
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
88
|
+
shouldAllowMultipleShapes: boolean;
|
|
89
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
90
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
91
|
+
}) => string;
|
|
92
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
93
|
+
drawToolId: string;
|
|
94
|
+
geoJSONLayerId: string;
|
|
95
|
+
activeDrawModeId: string;
|
|
96
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
97
|
+
shouldAllowMultipleShapes: boolean;
|
|
98
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
99
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
100
|
+
}) => string) & {
|
|
101
|
+
clearCache: () => void;
|
|
102
|
+
resultsCount: () => number;
|
|
103
|
+
resetResultsCount: () => void;
|
|
104
|
+
};
|
|
105
|
+
lastResult: () => string;
|
|
106
|
+
dependencies: [(state: DrawtoolModuleStore, id: string) => {
|
|
107
|
+
drawToolId: string;
|
|
108
|
+
geoJSONLayerId: string;
|
|
109
|
+
activeDrawModeId: string;
|
|
110
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
111
|
+
shouldAllowMultipleShapes: boolean;
|
|
112
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
113
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
114
|
+
}];
|
|
115
|
+
recomputations: () => number;
|
|
116
|
+
resetRecomputations: () => void;
|
|
117
|
+
dependencyRecomputations: () => number;
|
|
118
|
+
resetDependencyRecomputations: () => void;
|
|
119
|
+
} & {
|
|
120
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
121
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
18
122
|
};
|
|
19
|
-
export declare const getDrawToolGeoJSONLayerId: ((state: DrawtoolModuleStore, id:
|
|
20
|
-
clearCache: () => void;
|
|
21
|
-
}> & {
|
|
123
|
+
export declare const getDrawToolGeoJSONLayerId: ((state: DrawtoolModuleStore, id: string) => string) & {
|
|
22
124
|
clearCache: () => void;
|
|
125
|
+
resultsCount: () => number;
|
|
126
|
+
resetResultsCount: () => void;
|
|
127
|
+
} & {
|
|
128
|
+
resultFunc: (resultFuncArgs_0: {
|
|
129
|
+
drawToolId: string;
|
|
130
|
+
geoJSONLayerId: string;
|
|
131
|
+
activeDrawModeId: string;
|
|
132
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
133
|
+
shouldAllowMultipleShapes: boolean;
|
|
134
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
135
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
136
|
+
}) => string;
|
|
137
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
138
|
+
drawToolId: string;
|
|
139
|
+
geoJSONLayerId: string;
|
|
140
|
+
activeDrawModeId: string;
|
|
141
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
142
|
+
shouldAllowMultipleShapes: boolean;
|
|
143
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
144
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
145
|
+
}) => string) & {
|
|
146
|
+
clearCache: () => void;
|
|
147
|
+
resultsCount: () => number;
|
|
148
|
+
resetResultsCount: () => void;
|
|
149
|
+
};
|
|
150
|
+
lastResult: () => string;
|
|
151
|
+
dependencies: [(state: DrawtoolModuleStore, id: string) => {
|
|
152
|
+
drawToolId: string;
|
|
153
|
+
geoJSONLayerId: string;
|
|
154
|
+
activeDrawModeId: string;
|
|
155
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
156
|
+
shouldAllowMultipleShapes: boolean;
|
|
157
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
158
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
159
|
+
}];
|
|
160
|
+
recomputations: () => number;
|
|
161
|
+
resetRecomputations: () => void;
|
|
162
|
+
dependencyRecomputations: () => number;
|
|
163
|
+
resetDependencyRecomputations: () => void;
|
|
164
|
+
} & {
|
|
165
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
166
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
23
167
|
};
|
|
24
|
-
export declare const getGeoJSONIntersectionLayerId: ((state: DrawtoolModuleStore, id:
|
|
25
|
-
clearCache: () => void;
|
|
26
|
-
}> & {
|
|
168
|
+
export declare const getGeoJSONIntersectionLayerId: ((state: DrawtoolModuleStore, id: string) => string | undefined) & {
|
|
27
169
|
clearCache: () => void;
|
|
170
|
+
resultsCount: () => number;
|
|
171
|
+
resetResultsCount: () => void;
|
|
172
|
+
} & {
|
|
173
|
+
resultFunc: (resultFuncArgs_0: {
|
|
174
|
+
drawToolId: string;
|
|
175
|
+
geoJSONLayerId: string;
|
|
176
|
+
activeDrawModeId: string;
|
|
177
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
178
|
+
shouldAllowMultipleShapes: boolean;
|
|
179
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
180
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
181
|
+
}) => string | undefined;
|
|
182
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
183
|
+
drawToolId: string;
|
|
184
|
+
geoJSONLayerId: string;
|
|
185
|
+
activeDrawModeId: string;
|
|
186
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
187
|
+
shouldAllowMultipleShapes: boolean;
|
|
188
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
189
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
190
|
+
}) => string | undefined) & {
|
|
191
|
+
clearCache: () => void;
|
|
192
|
+
resultsCount: () => number;
|
|
193
|
+
resetResultsCount: () => void;
|
|
194
|
+
};
|
|
195
|
+
lastResult: () => string | undefined;
|
|
196
|
+
dependencies: [(state: DrawtoolModuleStore, id: string) => {
|
|
197
|
+
drawToolId: string;
|
|
198
|
+
geoJSONLayerId: string;
|
|
199
|
+
activeDrawModeId: string;
|
|
200
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
201
|
+
shouldAllowMultipleShapes: boolean;
|
|
202
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
203
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
204
|
+
}];
|
|
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;
|
|
28
212
|
};
|
|
29
|
-
export declare const getGeoJSONIntersectionBoundsLayerId: ((state: DrawtoolModuleStore, id:
|
|
30
|
-
clearCache: () => void;
|
|
31
|
-
}> & {
|
|
213
|
+
export declare const getGeoJSONIntersectionBoundsLayerId: ((state: DrawtoolModuleStore, id: string) => string | undefined) & {
|
|
32
214
|
clearCache: () => void;
|
|
215
|
+
resultsCount: () => number;
|
|
216
|
+
resetResultsCount: () => void;
|
|
217
|
+
} & {
|
|
218
|
+
resultFunc: (resultFuncArgs_0: {
|
|
219
|
+
drawToolId: string;
|
|
220
|
+
geoJSONLayerId: string;
|
|
221
|
+
activeDrawModeId: string;
|
|
222
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
223
|
+
shouldAllowMultipleShapes: boolean;
|
|
224
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
225
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
226
|
+
}) => string | undefined;
|
|
227
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
228
|
+
drawToolId: string;
|
|
229
|
+
geoJSONLayerId: string;
|
|
230
|
+
activeDrawModeId: string;
|
|
231
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
232
|
+
shouldAllowMultipleShapes: boolean;
|
|
233
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
234
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
235
|
+
}) => string | undefined) & {
|
|
236
|
+
clearCache: () => void;
|
|
237
|
+
resultsCount: () => number;
|
|
238
|
+
resetResultsCount: () => void;
|
|
239
|
+
};
|
|
240
|
+
lastResult: () => string | undefined;
|
|
241
|
+
dependencies: [(state: DrawtoolModuleStore, id: string) => {
|
|
242
|
+
drawToolId: string;
|
|
243
|
+
geoJSONLayerId: string;
|
|
244
|
+
activeDrawModeId: string;
|
|
245
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
246
|
+
shouldAllowMultipleShapes: boolean;
|
|
247
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
248
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
249
|
+
}];
|
|
250
|
+
recomputations: () => number;
|
|
251
|
+
resetRecomputations: () => void;
|
|
252
|
+
dependencyRecomputations: () => number;
|
|
253
|
+
resetDependencyRecomputations: () => void;
|
|
254
|
+
} & {
|
|
255
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
256
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
33
257
|
};
|
|
34
|
-
export declare const getShouldAllowMultipleShapes: ((state: DrawtoolModuleStore, id:
|
|
35
|
-
clearCache: () => void;
|
|
36
|
-
}> & {
|
|
258
|
+
export declare const getShouldAllowMultipleShapes: ((state: DrawtoolModuleStore, id: string) => boolean) & {
|
|
37
259
|
clearCache: () => void;
|
|
260
|
+
resultsCount: () => number;
|
|
261
|
+
resetResultsCount: () => void;
|
|
262
|
+
} & {
|
|
263
|
+
resultFunc: (resultFuncArgs_0: {
|
|
264
|
+
drawToolId: string;
|
|
265
|
+
geoJSONLayerId: string;
|
|
266
|
+
activeDrawModeId: string;
|
|
267
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
268
|
+
shouldAllowMultipleShapes: boolean;
|
|
269
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
270
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
271
|
+
}) => boolean;
|
|
272
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
273
|
+
drawToolId: string;
|
|
274
|
+
geoJSONLayerId: string;
|
|
275
|
+
activeDrawModeId: string;
|
|
276
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
277
|
+
shouldAllowMultipleShapes: boolean;
|
|
278
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
279
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
280
|
+
}) => boolean) & {
|
|
281
|
+
clearCache: () => void;
|
|
282
|
+
resultsCount: () => number;
|
|
283
|
+
resetResultsCount: () => void;
|
|
284
|
+
};
|
|
285
|
+
lastResult: () => boolean;
|
|
286
|
+
dependencies: [(state: DrawtoolModuleStore, id: string) => {
|
|
287
|
+
drawToolId: string;
|
|
288
|
+
geoJSONLayerId: string;
|
|
289
|
+
activeDrawModeId: string;
|
|
290
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
291
|
+
shouldAllowMultipleShapes: boolean;
|
|
292
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
293
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
294
|
+
}];
|
|
295
|
+
recomputations: () => number;
|
|
296
|
+
resetRecomputations: () => void;
|
|
297
|
+
dependencyRecomputations: () => number;
|
|
298
|
+
resetDependencyRecomputations: () => void;
|
|
299
|
+
} & {
|
|
300
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
301
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
38
302
|
};
|
|
39
|
-
export declare const getActiveDrawMode: ((state: DrawtoolModuleStore, id:
|
|
40
|
-
clearCache: () => void;
|
|
41
|
-
}> & {
|
|
303
|
+
export declare const getActiveDrawMode: ((state: DrawtoolModuleStore, id: string) => import("dist/libs/webmap-react/src").DrawMode | undefined) & {
|
|
42
304
|
clearCache: () => void;
|
|
305
|
+
resultsCount: () => number;
|
|
306
|
+
resetResultsCount: () => void;
|
|
307
|
+
} & {
|
|
308
|
+
resultFunc: (resultFuncArgs_0: {
|
|
309
|
+
drawToolId: string;
|
|
310
|
+
geoJSONLayerId: string;
|
|
311
|
+
activeDrawModeId: string;
|
|
312
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
313
|
+
shouldAllowMultipleShapes: boolean;
|
|
314
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
315
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
316
|
+
}) => import("dist/libs/webmap-react/src").DrawMode | undefined;
|
|
317
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
318
|
+
drawToolId: string;
|
|
319
|
+
geoJSONLayerId: string;
|
|
320
|
+
activeDrawModeId: string;
|
|
321
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
322
|
+
shouldAllowMultipleShapes: boolean;
|
|
323
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
324
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
325
|
+
}) => import("dist/libs/webmap-react/src").DrawMode | undefined) & {
|
|
326
|
+
clearCache: () => void;
|
|
327
|
+
resultsCount: () => number;
|
|
328
|
+
resetResultsCount: () => void;
|
|
329
|
+
};
|
|
330
|
+
lastResult: () => import("dist/libs/webmap-react/src").DrawMode | undefined;
|
|
331
|
+
dependencies: [(state: DrawtoolModuleStore, id: string) => {
|
|
332
|
+
drawToolId: string;
|
|
333
|
+
geoJSONLayerId: string;
|
|
334
|
+
activeDrawModeId: string;
|
|
335
|
+
drawModes: import("dist/libs/webmap-react/src").DrawMode[];
|
|
336
|
+
shouldAllowMultipleShapes: boolean;
|
|
337
|
+
geoJSONIntersectionLayerId?: string | undefined;
|
|
338
|
+
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
339
|
+
}];
|
|
340
|
+
recomputations: () => number;
|
|
341
|
+
resetRecomputations: () => void;
|
|
342
|
+
dependencyRecomputations: () => number;
|
|
343
|
+
resetDependencyRecomputations: () => void;
|
|
344
|
+
} & {
|
|
345
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
346
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
43
347
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SynchronizationGroupModuleState } from './syncGroups/types';
|
|
2
|
-
export declare const genericListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<SynchronizationGroupModuleState, import("
|
|
2
|
+
export declare const genericListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<SynchronizationGroupModuleState, import("redux-thunk").ThunkDispatch<SynchronizationGroupModuleState, unknown, import("redux").UnknownAction>, unknown>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PayloadAction, EntityState } from '@reduxjs/toolkit';
|
|
2
2
|
import { LoadingIndicatorType, SetIsEDRLoadingPayload, SetIsGetCapabilitiesLoadingPayload, SetIsGetMapLoadingPayload } from './types';
|
|
3
|
-
export declare const loadingIndicatorAdapter: import("@reduxjs/toolkit").EntityAdapter<LoadingIndicatorType>;
|
|
4
|
-
export declare const slice: import("@reduxjs/toolkit").Slice<EntityState<LoadingIndicatorType>, {
|
|
5
|
-
setGetMapIsLoading: (draft: EntityState<LoadingIndicatorType>, action: PayloadAction<SetIsGetMapLoadingPayload>) => void;
|
|
6
|
-
setGetCapabilitiesIsLoading: (draft: EntityState<LoadingIndicatorType>, action: PayloadAction<SetIsGetCapabilitiesLoadingPayload>) => void;
|
|
7
|
-
setEDRIsLoading: (draft: EntityState<LoadingIndicatorType>, action: PayloadAction<SetIsEDRLoadingPayload>) => void;
|
|
8
|
-
}, "loadingIndicatorReducer"
|
|
3
|
+
export declare const loadingIndicatorAdapter: import("@reduxjs/toolkit").EntityAdapter<LoadingIndicatorType, string>;
|
|
4
|
+
export declare const slice: import("@reduxjs/toolkit").Slice<EntityState<LoadingIndicatorType, string>, {
|
|
5
|
+
setGetMapIsLoading: (draft: EntityState<LoadingIndicatorType, string>, action: PayloadAction<SetIsGetMapLoadingPayload>) => void;
|
|
6
|
+
setGetCapabilitiesIsLoading: (draft: EntityState<LoadingIndicatorType, string>, action: PayloadAction<SetIsGetCapabilitiesLoadingPayload>) => void;
|
|
7
|
+
setEDRIsLoading: (draft: EntityState<LoadingIndicatorType, string>, action: PayloadAction<SetIsEDRLoadingPayload>) => void;
|
|
8
|
+
}, "loadingIndicatorReducer", "loadingIndicatorReducer", import("@reduxjs/toolkit").SliceSelectors<EntityState<LoadingIndicatorType, string>>>;
|
|
9
9
|
export declare const loadingIndicatorActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
10
|
-
setGetMapIsLoading: (draft: EntityState<LoadingIndicatorType>, action: PayloadAction<SetIsGetMapLoadingPayload>) => void;
|
|
11
|
-
setGetCapabilitiesIsLoading: (draft: EntityState<LoadingIndicatorType>, action: PayloadAction<SetIsGetCapabilitiesLoadingPayload>) => void;
|
|
12
|
-
setEDRIsLoading: (draft: EntityState<LoadingIndicatorType>, action: PayloadAction<SetIsEDRLoadingPayload>) => void;
|
|
13
|
-
}, "loadingIndicatorReducer">, loadingIndicatorReducer: import("redux").Reducer<EntityState<LoadingIndicatorType>>;
|
|
10
|
+
setGetMapIsLoading: (draft: EntityState<LoadingIndicatorType, string>, action: PayloadAction<SetIsGetMapLoadingPayload>) => void;
|
|
11
|
+
setGetCapabilitiesIsLoading: (draft: EntityState<LoadingIndicatorType, string>, action: PayloadAction<SetIsGetCapabilitiesLoadingPayload>) => void;
|
|
12
|
+
setEDRIsLoading: (draft: EntityState<LoadingIndicatorType, string>, action: PayloadAction<SetIsEDRLoadingPayload>) => void;
|
|
13
|
+
}, "loadingIndicatorReducer">, loadingIndicatorReducer: import("redux").Reducer<EntityState<LoadingIndicatorType, string>>;
|