@opengeoweb/store 12.3.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 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["TimeseriesInfo"] = "timeseriesInfo";
3697
- DialogTypes["TimeseriesLocationInfo"] = "timeseriesLocationInfo";
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["soundingsLocations"] = "soundingsLocations";
3718
+ DialogTypes["SoundingsLocations"] = "soundingsLocations";
3711
3719
  })(DialogTypes || (DialogTypes = {}));
3712
3720
 
3713
3721
  var types$2 = /*#__PURE__*/Object.freeze({
@@ -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.0",
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.3.0",
11
+ "@opengeoweb/shared": "12.4.1",
12
12
  "react-redux": "^9.2.0",
13
13
  "@reduxjs/toolkit": "^2.6.1",
14
- "@opengeoweb/webmap-react": "12.3.0",
15
- "@opengeoweb/webmap": "12.3.0",
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.3.0",
19
- "@opengeoweb/timeslider": "12.3.0",
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"
@@ -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 {};
@@ -6,8 +6,8 @@ export declare enum DialogTypes {
6
6
  SyncGroups = "syncGroups",
7
7
  TimeSeriesSelect = "timeSeriesSelect",
8
8
  TimeSeriesManager = "timeSeriesManager",
9
- TimeseriesInfo = "timeseriesInfo",
10
- TimeseriesLocationInfo = "timeseriesLocationInfo",
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
- soundingsLocations = "soundingsLocations"
23
+ SoundingsLocations = "soundingsLocations"
24
24
  }
25
25
  export type DialogType = DialogTypes | LegendDialogType | GetFeatureInfoDialogType;
26
26
  export type { Source };