@opengeoweb/store 12.3.0 → 12.4.2
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
CHANGED
|
@@ -2341,6 +2341,14 @@ var slice$5 = createSlice({
|
|
|
2341
2341
|
error = _action$payload4.error,
|
|
2342
2342
|
type = _action$payload4.type;
|
|
2343
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
|
+
});
|
|
2344
2352
|
}
|
|
2345
2353
|
}
|
|
2346
2354
|
});
|
|
@@ -3693,8 +3701,8 @@ var DialogTypes;
|
|
|
3693
3701
|
DialogTypes["SyncGroups"] = "syncGroups";
|
|
3694
3702
|
DialogTypes["TimeSeriesSelect"] = "timeSeriesSelect";
|
|
3695
3703
|
DialogTypes["TimeSeriesManager"] = "timeSeriesManager";
|
|
3696
|
-
DialogTypes["
|
|
3697
|
-
DialogTypes["
|
|
3704
|
+
DialogTypes["TimeSeriesInfo"] = "timeSeriesInfo";
|
|
3705
|
+
DialogTypes["TimeSeriesLocationInfo"] = "timeSeriesLocationInfo";
|
|
3698
3706
|
DialogTypes["KeywordFilter"] = "keywordFilter";
|
|
3699
3707
|
DialogTypes["DimensionSelectEnsembleMember"] = "dimensionSelect-ensemble_member";
|
|
3700
3708
|
DialogTypes["DimensionSelectElevation"] = "dimensionSelect-elevation";
|
|
@@ -3707,7 +3715,7 @@ var DialogTypes;
|
|
|
3707
3715
|
DialogTypes["Search"] = "search";
|
|
3708
3716
|
DialogTypes["AreaObjectLoader"] = "areaObjectLoader";
|
|
3709
3717
|
DialogTypes["SoundingsSources"] = "soundingsSources";
|
|
3710
|
-
DialogTypes["
|
|
3718
|
+
DialogTypes["SoundingsLocations"] = "soundingsLocations";
|
|
3711
3719
|
})(DialogTypes || (DialogTypes = {}));
|
|
3712
3720
|
|
|
3713
3721
|
var types$2 = /*#__PURE__*/Object.freeze({
|
|
@@ -4547,7 +4555,7 @@ var selectLinkedState = createSelector(synchronizationGroupStore, function (sync
|
|
|
4547
4555
|
var getLinkedMaps = createSelector([selectLinkedState, function (store, panelId) {
|
|
4548
4556
|
return panelId;
|
|
4549
4557
|
}], function (linkedState, panelId) {
|
|
4550
|
-
return linkedState.links[panelId] || [];
|
|
4558
|
+
return panelId && linkedState.links[panelId] || [];
|
|
4551
4559
|
}, selectorMemoizationOptions);
|
|
4552
4560
|
var getLinkedFeatureProviders = function getLinkedFeatureProviders(linkedState, mapId) {
|
|
4553
4561
|
return linkedState ? Object.keys(linkedState.links).filter(function (panelId) {
|
|
@@ -4561,7 +4569,7 @@ var selectSharedData = createSelector([selectLinkedState, function (store, panel
|
|
|
4561
4569
|
}], function (linkedState, panelId) {
|
|
4562
4570
|
var sharedDataForPanel = linkedState.sharedData[panelId];
|
|
4563
4571
|
return sharedDataForPanel || {};
|
|
4564
|
-
});
|
|
4572
|
+
}, selectorMemoizationOptions);
|
|
4565
4573
|
var selectLinkedPanelId = createSelector([selectLinkedState, function (_, mapViewId) {
|
|
4566
4574
|
return mapViewId;
|
|
4567
4575
|
}], function (linkedState, mapViewId) {
|
|
@@ -4692,8 +4700,8 @@ var useUpdateSharedData = function useUpdateSharedData(data, panelId) {
|
|
|
4692
4700
|
var sharedData = useSelector(function (state) {
|
|
4693
4701
|
return selectSharedData(state, panelId);
|
|
4694
4702
|
});
|
|
4695
|
-
var linkedMaps = useSelector(function (
|
|
4696
|
-
return getLinkedMaps(
|
|
4703
|
+
var linkedMaps = useSelector(function (state) {
|
|
4704
|
+
return getLinkedMaps(state, panelId);
|
|
4697
4705
|
});
|
|
4698
4706
|
var dispatch = useDispatch();
|
|
4699
4707
|
useEffect(function () {
|
|
@@ -7247,6 +7255,9 @@ mapListener.startListening({
|
|
|
7247
7255
|
origin: LayerActionOrigin.unregisterMapListener
|
|
7248
7256
|
}));
|
|
7249
7257
|
});
|
|
7258
|
+
listenerApi.dispatch(uiActions.closeDialogsForMapId({
|
|
7259
|
+
mapId: mapId
|
|
7260
|
+
}));
|
|
7250
7261
|
}
|
|
7251
7262
|
});
|
|
7252
7263
|
mapListener.startListening({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/store",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.4.2",
|
|
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.
|
|
11
|
+
"@opengeoweb/shared": "12.4.2",
|
|
12
12
|
"react-redux": "^9.2.0",
|
|
13
13
|
"@reduxjs/toolkit": "^2.6.1",
|
|
14
|
-
"@opengeoweb/webmap-react": "12.
|
|
15
|
-
"@opengeoweb/webmap": "12.
|
|
14
|
+
"@opengeoweb/webmap-react": "12.4.2",
|
|
15
|
+
"@opengeoweb/webmap": "12.4.2",
|
|
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.2",
|
|
19
|
+
"@opengeoweb/timeslider": "12.4.2",
|
|
20
20
|
"react-router-dom": "^6.23.1",
|
|
21
21
|
"ol": "^10.4.0",
|
|
22
22
|
"@turf/turf": "^7.2.0"
|
|
@@ -42,13 +42,13 @@ export declare const getTime: ((state: SynchronizationGroupState, id: string) =>
|
|
|
42
42
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
43
43
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
44
44
|
};
|
|
45
|
-
export declare const getLinkedMaps: ((state: any, panelId
|
|
45
|
+
export declare const getLinkedMaps: ((state: any, panelId?: string | undefined) => string[]) & {
|
|
46
46
|
clearCache: () => void;
|
|
47
47
|
resultsCount: () => number;
|
|
48
48
|
resetResultsCount: () => void;
|
|
49
49
|
} & {
|
|
50
|
-
resultFunc: (resultFuncArgs_0: LinkedState, resultFuncArgs_1: string) => string[];
|
|
51
|
-
memoizedResultFunc: ((resultFuncArgs_0: LinkedState, resultFuncArgs_1: string) => string[]) & {
|
|
50
|
+
resultFunc: (resultFuncArgs_0: LinkedState, resultFuncArgs_1: string | undefined) => string[];
|
|
51
|
+
memoizedResultFunc: ((resultFuncArgs_0: LinkedState, resultFuncArgs_1: string | undefined) => string[]) & {
|
|
52
52
|
clearCache: () => void;
|
|
53
53
|
resultsCount: () => number;
|
|
54
54
|
resetResultsCount: () => void;
|
|
@@ -74,7 +74,7 @@ export declare const getLinkedMaps: ((state: any, panelId: string) => string[])
|
|
|
74
74
|
} & {
|
|
75
75
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
76
76
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
77
|
-
}, (store: any, panelId
|
|
77
|
+
}, (store: any, panelId?: string) => string | undefined];
|
|
78
78
|
recomputations: () => number;
|
|
79
79
|
resetRecomputations: () => void;
|
|
80
80
|
dependencyRecomputations: () => number;
|
|
@@ -19,6 +19,9 @@ export declare const slice: import("@reduxjs/toolkit").Slice<UIStoreType, {
|
|
|
19
19
|
setActiveWindowId: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
|
|
20
20
|
toggleIsLoadingDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleIsLoadingPayload>) => void;
|
|
21
21
|
setErrorDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UISetErrorPayload>) => void;
|
|
22
|
+
closeDialogsForMapId: (draft: Draft<UIStoreType>, action: PayloadAction<{
|
|
23
|
+
mapId: string;
|
|
24
|
+
}>) => void;
|
|
22
25
|
}, "uiReducer", "uiReducer", import("@reduxjs/toolkit").SliceSelectors<UIStoreType>>;
|
|
23
26
|
export declare const uiReducer: import("redux").Reducer<UIStoreType>, uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
24
27
|
registerDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIRegisterDialogPayload>) => void;
|
|
@@ -29,5 +32,8 @@ export declare const uiReducer: import("redux").Reducer<UIStoreType>, uiActions:
|
|
|
29
32
|
setActiveWindowId: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
|
|
30
33
|
toggleIsLoadingDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleIsLoadingPayload>) => void;
|
|
31
34
|
setErrorDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UISetErrorPayload>) => void;
|
|
35
|
+
closeDialogsForMapId: (draft: Draft<UIStoreType>, action: PayloadAction<{
|
|
36
|
+
mapId: string;
|
|
37
|
+
}>) => void;
|
|
32
38
|
}, "uiReducer">;
|
|
33
39
|
export {};
|
package/src/store/ui/types.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ export declare enum DialogTypes {
|
|
|
6
6
|
SyncGroups = "syncGroups",
|
|
7
7
|
TimeSeriesSelect = "timeSeriesSelect",
|
|
8
8
|
TimeSeriesManager = "timeSeriesManager",
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
TimeSeriesInfo = "timeSeriesInfo",
|
|
10
|
+
TimeSeriesLocationInfo = "timeSeriesLocationInfo",
|
|
11
11
|
KeywordFilter = "keywordFilter",
|
|
12
12
|
DimensionSelectEnsembleMember = "dimensionSelect-ensemble_member",
|
|
13
13
|
DimensionSelectElevation = "dimensionSelect-elevation",
|
|
@@ -20,7 +20,7 @@ export declare enum DialogTypes {
|
|
|
20
20
|
Search = "search",
|
|
21
21
|
AreaObjectLoader = "areaObjectLoader",
|
|
22
22
|
SoundingsSources = "soundingsSources",
|
|
23
|
-
|
|
23
|
+
SoundingsLocations = "soundingsLocations"
|
|
24
24
|
}
|
|
25
25
|
export type DialogType = DialogTypes | LegendDialogType | GetFeatureInfoDialogType;
|
|
26
26
|
export type { Source };
|