@opengeoweb/core 4.15.0 → 4.16.0
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 +256 -96
- package/index.umd.js +250 -71
- package/lib/components/RouterWrapper/NavigateSetter.d.ts +1 -0
- package/lib/components/RouterWrapper/NavigateSetter.spec.d.ts +1 -0
- package/lib/components/RouterWrapper/RouterWrapperConnect.d.ts +6 -0
- package/lib/components/RouterWrapper/RouterWrapperConnect.spec.d.ts +1 -0
- package/lib/components/RouterWrapper/index.d.ts +1 -0
- package/lib/index.d.ts +3 -2
- package/lib/store/index.d.ts +1 -0
- package/lib/store/router/config.d.ts +5 -0
- package/lib/store/router/index.d.ts +1 -0
- package/lib/store/router/reducer.d.ts +8 -0
- package/lib/store/router/reducer.spec.d.ts +1 -0
- package/lib/store/router/sagas.d.ts +5 -0
- package/lib/store/router/sagas.spec.d.ts +1 -0
- package/lib/store/router/types.d.ts +8 -0
- package/lib/store/router/utils.d.ts +3 -0
- package/package.json +7 -6
package/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@reduxjs/toolkit'), require('immer'), require('moment'), require('react'), require('lodash'), require('redux-saga/effects'), require('react-redux'), require('@opengeoweb/shared'), require('@opengeoweb/theme'), require('@mui/material'), require('@opengeoweb/webmap'), require('react-sortablejs'), require('sortablejs'), require('react-window'), require('@mui/material/Box'), require('@mui/material/Typography'), require('@mui/material/Grid'), require('@opengeoweb/form-fields'), require('react-hook-form'), require('@mui/system'), require('throttle-debounce'), require('lodash.clonedeep'), require('proj4'), require('@turf/turf'), require('react-draggable'), require('re-resizable'), require('axios'), require('@opengeoweb/api'), require('@redux-eggs/redux-toolkit'), require('@redux-eggs/saga-extension')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@reduxjs/toolkit', 'immer', 'moment', 'react', 'lodash', 'redux-saga/effects', 'react-redux', '@opengeoweb/shared', '@opengeoweb/theme', '@mui/material', '@opengeoweb/webmap', 'react-sortablejs', 'sortablejs', 'react-window', '@mui/material/Box', '@mui/material/Typography', '@mui/material/Grid', '@opengeoweb/form-fields', 'react-hook-form', '@mui/system', 'throttle-debounce', 'lodash.clonedeep', 'proj4', '@turf/turf', 'react-draggable', 're-resizable', 'axios', '@opengeoweb/api', '@redux-eggs/redux-toolkit', '@redux-eggs/saga-extension'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Core = {}, global.toolkit, global.produce, global.moment, global.React, global._, global.effects, global.reactRedux, global.shared, global.theme, global.material, global.webmap, global.reactSortablejs, global.Sortable, global.reactWindow, global.Box, global.Typography, global.Grid, global.formFields, global.reactHookForm, global.system, global.throttleDebounce, global.cloneDeep, global.proj4, global.turf, global.Draggable, global.reResizable, global.axios, global.api, global.reduxToolkit, global.sagaExtension));
|
|
5
|
-
})(this, (function (exports, toolkit, produce, moment, React, _, effects, reactRedux, shared, theme, material, webmap, reactSortablejs, Sortable, reactWindow, Box, Typography, Grid, formFields, reactHookForm, system, throttleDebounce, cloneDeep, proj4, turf, Draggable, reResizable, axios, api, reduxToolkit, sagaExtension) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@reduxjs/toolkit'), require('immer'), require('moment'), require('react'), require('lodash'), require('redux-saga/effects'), require('react-redux'), require('@opengeoweb/shared'), require('@opengeoweb/theme'), require('@mui/material'), require('@opengeoweb/webmap'), require('react-sortablejs'), require('sortablejs'), require('react-window'), require('@mui/material/Box'), require('@mui/material/Typography'), require('@mui/material/Grid'), require('@opengeoweb/form-fields'), require('react-hook-form'), require('@mui/system'), require('throttle-debounce'), require('lodash.clonedeep'), require('proj4'), require('@turf/turf'), require('react-draggable'), require('re-resizable'), require('axios'), require('@opengeoweb/api'), require('@redux-eggs/redux-toolkit'), require('@redux-eggs/saga-extension'), require('react-router-dom')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@reduxjs/toolkit', 'immer', 'moment', 'react', 'lodash', 'redux-saga/effects', 'react-redux', '@opengeoweb/shared', '@opengeoweb/theme', '@mui/material', '@opengeoweb/webmap', 'react-sortablejs', 'sortablejs', 'react-window', '@mui/material/Box', '@mui/material/Typography', '@mui/material/Grid', '@opengeoweb/form-fields', 'react-hook-form', '@mui/system', 'throttle-debounce', 'lodash.clonedeep', 'proj4', '@turf/turf', 'react-draggable', 're-resizable', 'axios', '@opengeoweb/api', '@redux-eggs/redux-toolkit', '@redux-eggs/saga-extension', 'react-router-dom'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Core = {}, global.toolkit, global.produce, global.moment, global.React, global._, global.effects, global.reactRedux, global.shared, global.theme, global.material, global.webmap, global.reactSortablejs, global.Sortable, global.reactWindow, global.Box, global.Typography, global.Grid, global.formFields, global.reactHookForm, global.system, global.throttleDebounce, global.cloneDeep, global.proj4, global.turf, global.Draggable, global.reResizable, global.axios, global.api, global.reduxToolkit, global.sagaExtension, global.reactRouterDom));
|
|
5
|
+
})(this, (function (exports, toolkit, produce, moment, React, _, effects, reactRedux, shared, theme, material, webmap, reactSortablejs, Sortable, reactWindow, Box, Typography, Grid, formFields, reactHookForm, system, throttleDebounce, cloneDeep, proj4, turf, Draggable, reResizable, axios, api, reduxToolkit, sagaExtension, reactRouterDom) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -1513,7 +1513,7 @@
|
|
|
1513
1513
|
status: status
|
|
1514
1514
|
});
|
|
1515
1515
|
};
|
|
1516
|
-
var initialState$
|
|
1516
|
+
var initialState$8 = {
|
|
1517
1517
|
byId: {},
|
|
1518
1518
|
allIds: [],
|
|
1519
1519
|
availableBaseLayers: {
|
|
@@ -1521,8 +1521,8 @@
|
|
|
1521
1521
|
allIds: []
|
|
1522
1522
|
}
|
|
1523
1523
|
};
|
|
1524
|
-
var slice$
|
|
1525
|
-
initialState: initialState$
|
|
1524
|
+
var slice$8 = toolkit.createSlice({
|
|
1525
|
+
initialState: initialState$8,
|
|
1526
1526
|
name: 'layerReducer',
|
|
1527
1527
|
reducers: {
|
|
1528
1528
|
addLayer: function addLayer(draft, action) {
|
|
@@ -1766,9 +1766,9 @@
|
|
|
1766
1766
|
layerDimensions = _a.layerDimensions;
|
|
1767
1767
|
var layerStyleAction = layerActions.layerChangeStyle(layerStyle);
|
|
1768
1768
|
var state = produce.current(draft);
|
|
1769
|
-
var intermediateState = layerStyle === null ? state : reducer$
|
|
1769
|
+
var intermediateState = layerStyle === null ? state : reducer$8(state, layerStyleAction);
|
|
1770
1770
|
var dimensionsAction = layerActions.layerSetDimensions(layerDimensions);
|
|
1771
|
-
var newState = layerDimensions === null ? intermediateState : reducer$
|
|
1771
|
+
var newState = layerDimensions === null ? intermediateState : reducer$8(intermediateState, dimensionsAction);
|
|
1772
1772
|
return newState;
|
|
1773
1773
|
},
|
|
1774
1774
|
setSelectedFeature: function setSelectedFeature(draft, action) {
|
|
@@ -1824,7 +1824,7 @@
|
|
|
1824
1824
|
};
|
|
1825
1825
|
/* Handle the Layer action with the same logic, using the same reducer */
|
|
1826
1826
|
|
|
1827
|
-
return reducer$
|
|
1827
|
+
return reducer$8(prevState, action);
|
|
1828
1828
|
}, state);
|
|
1829
1829
|
}).addCase(setMapPreset, function (draft, action) {
|
|
1830
1830
|
var mapId = action.payload.mapId;
|
|
@@ -1844,8 +1844,8 @@
|
|
|
1844
1844
|
});
|
|
1845
1845
|
}
|
|
1846
1846
|
});
|
|
1847
|
-
var reducer$
|
|
1848
|
-
var layerActions = slice$
|
|
1847
|
+
var reducer$8 = slice$8.reducer;
|
|
1848
|
+
var layerActions = slice$8.actions;
|
|
1849
1849
|
|
|
1850
1850
|
/* *
|
|
1851
1851
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1863,12 +1863,12 @@
|
|
|
1863
1863
|
* Copyright 2020 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1864
1864
|
* Copyright 2020 - Finnish Meteorological Institute (FMI)
|
|
1865
1865
|
* */
|
|
1866
|
-
var initialState$
|
|
1866
|
+
var initialState$7 = {
|
|
1867
1867
|
byId: {},
|
|
1868
1868
|
allIds: []
|
|
1869
1869
|
};
|
|
1870
|
-
var slice$
|
|
1871
|
-
initialState: initialState$
|
|
1870
|
+
var slice$7 = toolkit.createSlice({
|
|
1871
|
+
initialState: initialState$7,
|
|
1872
1872
|
name: 'serviceReducer',
|
|
1873
1873
|
reducers: {
|
|
1874
1874
|
serviceSetLayers: function serviceSetLayers(draft, action) {
|
|
@@ -1895,13 +1895,13 @@
|
|
|
1895
1895
|
var serviceLayers = action.payload.serviceLayers;
|
|
1896
1896
|
if (serviceLayers === null) return draft;
|
|
1897
1897
|
var mapAction = serviceActions.serviceSetLayers(serviceLayers);
|
|
1898
|
-
var newState = reducer$
|
|
1898
|
+
var newState = reducer$7(draft, mapAction);
|
|
1899
1899
|
return newState;
|
|
1900
1900
|
});
|
|
1901
1901
|
}
|
|
1902
1902
|
});
|
|
1903
|
-
var reducer$
|
|
1904
|
-
var serviceActions = slice$
|
|
1903
|
+
var reducer$7 = slice$7.reducer;
|
|
1904
|
+
var serviceActions = slice$7.actions;
|
|
1905
1905
|
|
|
1906
1906
|
/* *
|
|
1907
1907
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -2090,13 +2090,13 @@
|
|
|
2090
2090
|
error: undefined
|
|
2091
2091
|
};
|
|
2092
2092
|
};
|
|
2093
|
-
var initialState$
|
|
2093
|
+
var initialState$6 = {
|
|
2094
2094
|
order: [],
|
|
2095
2095
|
dialogs: {},
|
|
2096
2096
|
activeWindowId: undefined
|
|
2097
2097
|
};
|
|
2098
|
-
var slice$
|
|
2099
|
-
initialState: initialState$
|
|
2098
|
+
var slice$6 = toolkit.createSlice({
|
|
2099
|
+
initialState: initialState$6,
|
|
2100
2100
|
name: 'uiReducer',
|
|
2101
2101
|
reducers: {
|
|
2102
2102
|
registerDialog: function registerDialog(draft, action) {
|
|
@@ -2185,8 +2185,8 @@
|
|
|
2185
2185
|
}
|
|
2186
2186
|
}
|
|
2187
2187
|
});
|
|
2188
|
-
var reducer$
|
|
2189
|
-
var uiActions = slice$
|
|
2188
|
+
var reducer$6 = slice$6.reducer;
|
|
2189
|
+
var uiActions = slice$6.actions;
|
|
2190
2190
|
|
|
2191
2191
|
/* *
|
|
2192
2192
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -2253,12 +2253,12 @@
|
|
|
2253
2253
|
});
|
|
2254
2254
|
};
|
|
2255
2255
|
|
|
2256
|
-
var initialState$
|
|
2256
|
+
var initialState$5 = {
|
|
2257
2257
|
byId: {},
|
|
2258
2258
|
allIds: []
|
|
2259
2259
|
};
|
|
2260
|
-
var slice$
|
|
2261
|
-
initialState: initialState$
|
|
2260
|
+
var slice$5 = toolkit.createSlice({
|
|
2261
|
+
initialState: initialState$5,
|
|
2262
2262
|
name: 'mapReducer',
|
|
2263
2263
|
reducers: {
|
|
2264
2264
|
registerMap: function registerMap(draft, action) {
|
|
@@ -2791,13 +2791,13 @@
|
|
|
2791
2791
|
};
|
|
2792
2792
|
/* Handle the Layer action with the same logic, using the same reducer */
|
|
2793
2793
|
|
|
2794
|
-
return reducer$
|
|
2794
|
+
return reducer$5(prevState, action);
|
|
2795
2795
|
}, draft);
|
|
2796
2796
|
}).addCase(onUpdateLayerInformation, function (draft, action) {
|
|
2797
2797
|
var mapDimensions = action.payload.mapDimensions;
|
|
2798
2798
|
if (mapDimensions === null) return draft;
|
|
2799
2799
|
var mapAction = mapActions$1.mapUpdateAllMapDimensions(mapDimensions);
|
|
2800
|
-
return reducer$
|
|
2800
|
+
return reducer$5(draft, mapAction);
|
|
2801
2801
|
}).addCase(mapChangeDimension, function (draft, action) {
|
|
2802
2802
|
var _a = action.payload,
|
|
2803
2803
|
mapId = _a.mapId,
|
|
@@ -2835,11 +2835,11 @@
|
|
|
2835
2835
|
});
|
|
2836
2836
|
}
|
|
2837
2837
|
});
|
|
2838
|
-
var mapActions$1 = __assign(__assign({}, slice$
|
|
2838
|
+
var mapActions$1 = __assign(__assign({}, slice$5.actions), {
|
|
2839
2839
|
setMapPreset: setMapPreset,
|
|
2840
2840
|
mapChangeDimension: mapChangeDimension
|
|
2841
2841
|
});
|
|
2842
|
-
var reducer$
|
|
2842
|
+
var reducer$5 = slice$5.reducer;
|
|
2843
2843
|
|
|
2844
2844
|
/* *
|
|
2845
2845
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -3423,7 +3423,7 @@
|
|
|
3423
3423
|
* Copyright 2020 - Finnish Meteorological Institute (FMI)
|
|
3424
3424
|
* */
|
|
3425
3425
|
var _a$2;
|
|
3426
|
-
var initialState$
|
|
3426
|
+
var initialState$4 = {
|
|
3427
3427
|
sources: {
|
|
3428
3428
|
byId: {},
|
|
3429
3429
|
allIds: []
|
|
@@ -3447,8 +3447,8 @@
|
|
|
3447
3447
|
}
|
|
3448
3448
|
}
|
|
3449
3449
|
};
|
|
3450
|
-
var slice$
|
|
3451
|
-
initialState: initialState$
|
|
3450
|
+
var slice$4 = toolkit.createSlice({
|
|
3451
|
+
initialState: initialState$4,
|
|
3452
3452
|
name: 'synchronizationGroupsReducer',
|
|
3453
3453
|
reducers: {
|
|
3454
3454
|
syncGroupAddSource: function syncGroupAddSource(draft, action) {
|
|
@@ -3592,7 +3592,7 @@
|
|
|
3592
3592
|
});
|
|
3593
3593
|
},
|
|
3594
3594
|
syncGroupClear: function syncGroupClear() {
|
|
3595
|
-
return initialState$
|
|
3595
|
+
return initialState$4;
|
|
3596
3596
|
},
|
|
3597
3597
|
syncGroupSetViewState: function syncGroupSetViewState(draft, action) {
|
|
3598
3598
|
var viewState = action.payload.viewState;
|
|
@@ -3664,7 +3664,7 @@
|
|
|
3664
3664
|
});
|
|
3665
3665
|
};
|
|
3666
3666
|
|
|
3667
|
-
var syncGroupAddGroup = (_a$2 = slice$
|
|
3667
|
+
var syncGroupAddGroup = (_a$2 = slice$4.actions, _a$2.syncGroupAddGroup),
|
|
3668
3668
|
syncGroupAddSource = _a$2.syncGroupAddSource,
|
|
3669
3669
|
syncGroupAddTarget = _a$2.syncGroupAddTarget;
|
|
3670
3670
|
_a$2.syncGroupClear;
|
|
@@ -3673,8 +3673,8 @@
|
|
|
3673
3673
|
syncGroupRemoveSource = _a$2.syncGroupRemoveSource,
|
|
3674
3674
|
syncGroupRemoveTarget = _a$2.syncGroupRemoveTarget,
|
|
3675
3675
|
syncGroupSetViewState = _a$2.syncGroupSetViewState;
|
|
3676
|
-
var actions = slice$
|
|
3677
|
-
reducer$
|
|
3676
|
+
var actions = slice$4.actions,
|
|
3677
|
+
reducer$4 = slice$4.reducer;
|
|
3678
3678
|
|
|
3679
3679
|
/* *
|
|
3680
3680
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -3731,7 +3731,7 @@
|
|
|
3731
3731
|
actions: actions,
|
|
3732
3732
|
constants: constants,
|
|
3733
3733
|
types: types$1,
|
|
3734
|
-
initialState: initialState$
|
|
3734
|
+
initialState: initialState$4
|
|
3735
3735
|
});
|
|
3736
3736
|
|
|
3737
3737
|
/* *
|
|
@@ -4680,7 +4680,7 @@
|
|
|
4680
4680
|
serviceId: '',
|
|
4681
4681
|
variant: 'add'
|
|
4682
4682
|
};
|
|
4683
|
-
var initialState$
|
|
4683
|
+
var initialState$3 = {
|
|
4684
4684
|
filters: {
|
|
4685
4685
|
searchFilter: '',
|
|
4686
4686
|
activeServices: layerSelectActiveServicesAdapter.getInitialState(),
|
|
@@ -4696,8 +4696,8 @@
|
|
|
4696
4696
|
},
|
|
4697
4697
|
servicePopup: initialServicePopupState
|
|
4698
4698
|
};
|
|
4699
|
-
var slice$
|
|
4700
|
-
initialState: initialState$
|
|
4699
|
+
var slice$3 = toolkit.createSlice({
|
|
4700
|
+
initialState: initialState$3,
|
|
4701
4701
|
name: DialogTypes.LayerSelect,
|
|
4702
4702
|
reducers: {
|
|
4703
4703
|
setSearchFilter: function setSearchFilter(draft, action) {
|
|
@@ -4868,8 +4868,8 @@
|
|
|
4868
4868
|
}
|
|
4869
4869
|
}
|
|
4870
4870
|
});
|
|
4871
|
-
var reducer$
|
|
4872
|
-
var layerSelectActions = slice$
|
|
4871
|
+
var reducer$3 = slice$3.reducer;
|
|
4872
|
+
var layerSelectActions = slice$3.actions;
|
|
4873
4873
|
|
|
4874
4874
|
/* *
|
|
4875
4875
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -5166,9 +5166,9 @@
|
|
|
5166
5166
|
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
5167
5167
|
* */
|
|
5168
5168
|
var snackbarAdapter = toolkit.createEntityAdapter();
|
|
5169
|
-
var initialState$
|
|
5170
|
-
var slice$
|
|
5171
|
-
initialState: initialState$
|
|
5169
|
+
var initialState$2 = snackbarAdapter.getInitialState();
|
|
5170
|
+
var slice$2 = toolkit.createSlice({
|
|
5171
|
+
initialState: initialState$2,
|
|
5172
5172
|
name: 'snackbar',
|
|
5173
5173
|
reducers: {
|
|
5174
5174
|
// To open the snackbar call this action
|
|
@@ -5190,8 +5190,8 @@
|
|
|
5190
5190
|
}
|
|
5191
5191
|
}
|
|
5192
5192
|
});
|
|
5193
|
-
var reducer$
|
|
5194
|
-
var snackbarActions = slice$
|
|
5193
|
+
var reducer$2 = slice$2.reducer;
|
|
5194
|
+
var snackbarActions = slice$2.actions;
|
|
5195
5195
|
|
|
5196
5196
|
/* *
|
|
5197
5197
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -5221,6 +5221,34 @@
|
|
|
5221
5221
|
return currentMessages.length > 0 ? currentMessages[0] : undefined;
|
|
5222
5222
|
});
|
|
5223
5223
|
|
|
5224
|
+
/* *
|
|
5225
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5226
|
+
* you may not use this file except in compliance with the License.
|
|
5227
|
+
* You may obtain a copy of the License at
|
|
5228
|
+
*
|
|
5229
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5230
|
+
*
|
|
5231
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
5232
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
5233
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
5234
|
+
* See the License for the specific language governing permissions and
|
|
5235
|
+
* limitations under the License.
|
|
5236
|
+
*
|
|
5237
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
5238
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
5239
|
+
* */
|
|
5240
|
+
var initialState$1 = {};
|
|
5241
|
+
var slice$1 = toolkit.createSlice({
|
|
5242
|
+
initialState: initialState$1,
|
|
5243
|
+
name: 'router',
|
|
5244
|
+
reducers: {
|
|
5245
|
+
// eslint-disable-next-line no-unused-vars
|
|
5246
|
+
navigateToUrl: function navigateToUrl(draft, action) {}
|
|
5247
|
+
}
|
|
5248
|
+
});
|
|
5249
|
+
var reducer$1 = slice$1.reducer;
|
|
5250
|
+
var routerActions = slice$1.actions;
|
|
5251
|
+
|
|
5224
5252
|
/* *
|
|
5225
5253
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5226
5254
|
* you may not use this file except in compliance with the License.
|
|
@@ -5895,7 +5923,7 @@
|
|
|
5895
5923
|
}
|
|
5896
5924
|
});
|
|
5897
5925
|
}
|
|
5898
|
-
function rootSaga$
|
|
5926
|
+
function rootSaga$6() {
|
|
5899
5927
|
return __generator(this, function (_a) {
|
|
5900
5928
|
switch (_a.label) {
|
|
5901
5929
|
case 0:
|
|
@@ -6265,7 +6293,7 @@
|
|
|
6265
6293
|
});
|
|
6266
6294
|
}
|
|
6267
6295
|
|
|
6268
|
-
function rootSaga$
|
|
6296
|
+
function rootSaga$5() {
|
|
6269
6297
|
return __generator(this, function (_a) {
|
|
6270
6298
|
switch (_a.label) {
|
|
6271
6299
|
case 0:
|
|
@@ -6342,9 +6370,9 @@
|
|
|
6342
6370
|
var synchronizationGroupConfig = {
|
|
6343
6371
|
id: 'syncronizationGroupStore-module',
|
|
6344
6372
|
reducersMap: {
|
|
6345
|
-
syncronizationGroupStore: reducer$
|
|
6373
|
+
syncronizationGroupStore: reducer$4
|
|
6346
6374
|
},
|
|
6347
|
-
sagas: [rootSaga$
|
|
6375
|
+
sagas: [rootSaga$6, rootSaga$5]
|
|
6348
6376
|
};
|
|
6349
6377
|
|
|
6350
6378
|
/* *
|
|
@@ -6466,7 +6494,7 @@
|
|
|
6466
6494
|
}
|
|
6467
6495
|
});
|
|
6468
6496
|
}
|
|
6469
|
-
function rootSaga$
|
|
6497
|
+
function rootSaga$4() {
|
|
6470
6498
|
return __generator(this, function (_a) {
|
|
6471
6499
|
switch (_a.label) {
|
|
6472
6500
|
case 0:
|
|
@@ -6510,9 +6538,9 @@
|
|
|
6510
6538
|
var uiModuleConfig = {
|
|
6511
6539
|
id: 'ui-module',
|
|
6512
6540
|
reducersMap: {
|
|
6513
|
-
ui: reducer$
|
|
6541
|
+
ui: reducer$6
|
|
6514
6542
|
},
|
|
6515
|
-
sagas: [rootSaga$
|
|
6543
|
+
sagas: [rootSaga$4]
|
|
6516
6544
|
};
|
|
6517
6545
|
|
|
6518
6546
|
/* *
|
|
@@ -9207,7 +9235,7 @@
|
|
|
9207
9235
|
}
|
|
9208
9236
|
});
|
|
9209
9237
|
}
|
|
9210
|
-
function rootSaga$
|
|
9238
|
+
function rootSaga$3() {
|
|
9211
9239
|
return __generator(this, function (_a) {
|
|
9212
9240
|
switch (_a.label) {
|
|
9213
9241
|
case 0:
|
|
@@ -9272,11 +9300,11 @@
|
|
|
9272
9300
|
var moduleConfig = {
|
|
9273
9301
|
id: 'webmap-module',
|
|
9274
9302
|
reducersMap: {
|
|
9275
|
-
webmap: reducer$
|
|
9276
|
-
services: reducer$
|
|
9277
|
-
layers: reducer$
|
|
9303
|
+
webmap: reducer$5,
|
|
9304
|
+
services: reducer$7,
|
|
9305
|
+
layers: reducer$8
|
|
9278
9306
|
},
|
|
9279
|
-
sagas: [rootSaga$
|
|
9307
|
+
sagas: [rootSaga$3]
|
|
9280
9308
|
};
|
|
9281
9309
|
|
|
9282
9310
|
function _typeof(obj) {
|
|
@@ -9606,7 +9634,7 @@
|
|
|
9606
9634
|
delete updatedServices[serviceUrl];
|
|
9607
9635
|
setUserAddedServices(updatedServices);
|
|
9608
9636
|
}
|
|
9609
|
-
function rootSaga$
|
|
9637
|
+
function rootSaga$2() {
|
|
9610
9638
|
return __generator(this, function (_a) {
|
|
9611
9639
|
switch (_a.label) {
|
|
9612
9640
|
case 0:
|
|
@@ -9655,9 +9683,9 @@
|
|
|
9655
9683
|
var layerSelectConfig = {
|
|
9656
9684
|
id: 'layerSelect-module',
|
|
9657
9685
|
reducersMap: {
|
|
9658
|
-
layerSelect: reducer$
|
|
9686
|
+
layerSelect: reducer$3
|
|
9659
9687
|
},
|
|
9660
|
-
sagas: [rootSaga$
|
|
9688
|
+
sagas: [rootSaga$2]
|
|
9661
9689
|
};
|
|
9662
9690
|
|
|
9663
9691
|
/* *
|
|
@@ -9749,7 +9777,7 @@
|
|
|
9749
9777
|
}
|
|
9750
9778
|
});
|
|
9751
9779
|
}
|
|
9752
|
-
function rootSaga() {
|
|
9780
|
+
function rootSaga$1() {
|
|
9753
9781
|
return __generator(this, function (_a) {
|
|
9754
9782
|
switch (_a.label) {
|
|
9755
9783
|
case 0:
|
|
@@ -9786,9 +9814,9 @@
|
|
|
9786
9814
|
var snackbarModuleConfig = {
|
|
9787
9815
|
id: 'snackbar-module',
|
|
9788
9816
|
reducersMap: {
|
|
9789
|
-
snackbar: reducer$
|
|
9817
|
+
snackbar: reducer$2
|
|
9790
9818
|
},
|
|
9791
|
-
sagas: [rootSaga]
|
|
9819
|
+
sagas: [rootSaga$1]
|
|
9792
9820
|
};
|
|
9793
9821
|
|
|
9794
9822
|
/* *
|
|
@@ -21325,7 +21353,7 @@
|
|
|
21325
21353
|
var setServiceMetadata = function setServiceMetadata(wmLayer, mapId, mapProperties, onUpdateLayerInformation) {
|
|
21326
21354
|
var origin = LayerActionOrigin.ReactMapViewParseLayer;
|
|
21327
21355
|
var service = webmap.WMGetServiceFromStore(wmLayer.service);
|
|
21328
|
-
var serviceName = mapProperties.services[service.id].name;
|
|
21356
|
+
var serviceName = mapProperties.services && mapProperties.services[service.id] && mapProperties.services[service.id].name || service.id;
|
|
21329
21357
|
var webMapJSInstance = getWMJSMapById(mapId);
|
|
21330
21358
|
/* Update list of layers for service */
|
|
21331
21359
|
|
|
@@ -23984,7 +24012,14 @@
|
|
|
23984
24012
|
var _a = _this.props,
|
|
23985
24013
|
onUpdateLayerInformation = _a.onUpdateLayerInformation,
|
|
23986
24014
|
mapId = _a.mapId;
|
|
23987
|
-
|
|
24015
|
+
|
|
24016
|
+
try {
|
|
24017
|
+
setServiceMetadata(wmLayer, mapId, _this.props, onUpdateLayerInformation);
|
|
24018
|
+
} catch (e) {
|
|
24019
|
+
/* Provide a hint on what is going wrong */
|
|
24020
|
+
console.error(e);
|
|
24021
|
+
}
|
|
24022
|
+
|
|
23988
24023
|
var wmjsMap = getWMJSMapById(mapId);
|
|
23989
24024
|
|
|
23990
24025
|
if (child) {
|
|
@@ -24154,7 +24189,7 @@
|
|
|
24154
24189
|
var propDimension = props.dimensions[d];
|
|
24155
24190
|
var mapDim = wmjsMap.getDimension(propDimension.name);
|
|
24156
24191
|
|
|
24157
|
-
if (mapDim && mapDim.currentValue !== propDimension.currentValue) {
|
|
24192
|
+
if (mapDim && mapDim.currentValue !== propDimension.currentValue || !mapDim) {
|
|
24158
24193
|
wmjsMap.setDimension(propDimension.name, propDimension.currentValue, false, false);
|
|
24159
24194
|
}
|
|
24160
24195
|
|
|
@@ -25149,7 +25184,7 @@
|
|
|
25149
25184
|
var wmjsMap = getWMJSMapById(mapId);
|
|
25150
25185
|
/* Check if the map not already has this value set, otherwise this component will re-render */
|
|
25151
25186
|
|
|
25152
|
-
if (wmjsMap.getDimension('time').currentValue === setTimePayload.value) {
|
|
25187
|
+
if (wmjsMap && wmjsMap.getDimension('time') && wmjsMap.getDimension('time').currentValue === setTimePayload.value) {
|
|
25153
25188
|
return;
|
|
25154
25189
|
}
|
|
25155
25190
|
|
|
@@ -27489,6 +27524,148 @@
|
|
|
27489
27524
|
}, /*#__PURE__*/React__default["default"].createElement(SnackbarWrapperConnect, null, children)));
|
|
27490
27525
|
};
|
|
27491
27526
|
|
|
27527
|
+
/* *
|
|
27528
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
27529
|
+
* you may not use this file except in compliance with the License.
|
|
27530
|
+
* You may obtain a copy of the License at
|
|
27531
|
+
*
|
|
27532
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
27533
|
+
*
|
|
27534
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
27535
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
27536
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27537
|
+
* See the License for the specific language governing permissions and
|
|
27538
|
+
* limitations under the License.
|
|
27539
|
+
*
|
|
27540
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
27541
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
27542
|
+
* */
|
|
27543
|
+
// stores navigate hook method to object, so it can be used outside components
|
|
27544
|
+
var historyDict = {
|
|
27545
|
+
navigate: null
|
|
27546
|
+
};
|
|
27547
|
+
|
|
27548
|
+
/* *
|
|
27549
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
27550
|
+
* you may not use this file except in compliance with the License.
|
|
27551
|
+
* You may obtain a copy of the License at
|
|
27552
|
+
*
|
|
27553
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
27554
|
+
*
|
|
27555
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
27556
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
27557
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27558
|
+
* See the License for the specific language governing permissions and
|
|
27559
|
+
* limitations under the License.
|
|
27560
|
+
*
|
|
27561
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
27562
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
27563
|
+
* */
|
|
27564
|
+
function navigateToUrlSaga(action) {
|
|
27565
|
+
var payload;
|
|
27566
|
+
return __generator(this, function (_a) {
|
|
27567
|
+
switch (_a.label) {
|
|
27568
|
+
case 0:
|
|
27569
|
+
payload = action.payload;
|
|
27570
|
+
return [4
|
|
27571
|
+
/*yield*/
|
|
27572
|
+
, effects.call(historyDict.navigate, payload.url)];
|
|
27573
|
+
|
|
27574
|
+
case 1:
|
|
27575
|
+
_a.sent();
|
|
27576
|
+
|
|
27577
|
+
return [2
|
|
27578
|
+
/*return*/
|
|
27579
|
+
];
|
|
27580
|
+
}
|
|
27581
|
+
});
|
|
27582
|
+
}
|
|
27583
|
+
function rootSaga() {
|
|
27584
|
+
return __generator(this, function (_a) {
|
|
27585
|
+
switch (_a.label) {
|
|
27586
|
+
case 0:
|
|
27587
|
+
return [4
|
|
27588
|
+
/*yield*/
|
|
27589
|
+
, effects.takeLatest(routerActions.navigateToUrl.type, navigateToUrlSaga)];
|
|
27590
|
+
|
|
27591
|
+
case 1:
|
|
27592
|
+
_a.sent();
|
|
27593
|
+
|
|
27594
|
+
return [2
|
|
27595
|
+
/*return*/
|
|
27596
|
+
];
|
|
27597
|
+
}
|
|
27598
|
+
});
|
|
27599
|
+
}
|
|
27600
|
+
|
|
27601
|
+
/* *
|
|
27602
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
27603
|
+
* you may not use this file except in compliance with the License.
|
|
27604
|
+
* You may obtain a copy of the License at
|
|
27605
|
+
*
|
|
27606
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
27607
|
+
*
|
|
27608
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
27609
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
27610
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27611
|
+
* See the License for the specific language governing permissions and
|
|
27612
|
+
* limitations under the License.
|
|
27613
|
+
*
|
|
27614
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
27615
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
27616
|
+
* */
|
|
27617
|
+
var routerModuleConfig = {
|
|
27618
|
+
id: 'router',
|
|
27619
|
+
reducersMap: {
|
|
27620
|
+
router: reducer$1
|
|
27621
|
+
},
|
|
27622
|
+
sagas: [rootSaga]
|
|
27623
|
+
};
|
|
27624
|
+
|
|
27625
|
+
/* *
|
|
27626
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
27627
|
+
* you may not use this file except in compliance with the License.
|
|
27628
|
+
* You may obtain a copy of the License at
|
|
27629
|
+
*
|
|
27630
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
27631
|
+
*
|
|
27632
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
27633
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
27634
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27635
|
+
* See the License for the specific language governing permissions and
|
|
27636
|
+
* limitations under the License.
|
|
27637
|
+
*
|
|
27638
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
27639
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
27640
|
+
* */
|
|
27641
|
+
var NavigateSetter = function NavigateSetter() {
|
|
27642
|
+
// stores navigate hook method to historyDict, so it can be used outside components
|
|
27643
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
27644
|
+
// @ts-ignore
|
|
27645
|
+
historyDict.navigate = reactRouterDom.useNavigate();
|
|
27646
|
+
return null;
|
|
27647
|
+
};
|
|
27648
|
+
|
|
27649
|
+
/* *
|
|
27650
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
27651
|
+
* you may not use this file except in compliance with the License.
|
|
27652
|
+
* You may obtain a copy of the License at
|
|
27653
|
+
*
|
|
27654
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
27655
|
+
*
|
|
27656
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
27657
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
27658
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27659
|
+
* See the License for the specific language governing permissions and
|
|
27660
|
+
* limitations under the License.
|
|
27661
|
+
*
|
|
27662
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
27663
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
27664
|
+
* */
|
|
27665
|
+
var RouterWrapperConnect = shared.withEggs([routerModuleConfig])(function (props) {
|
|
27666
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(NavigateSetter, null), props.children);
|
|
27667
|
+
});
|
|
27668
|
+
|
|
27492
27669
|
/* *
|
|
27493
27670
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
27494
27671
|
* you may not use this file except in compliance with the License.
|
|
@@ -27643,6 +27820,7 @@
|
|
|
27643
27820
|
exports.MultiMapViewConnect = MultiMapViewConnect;
|
|
27644
27821
|
exports.ReactMapView = ReactMapView;
|
|
27645
27822
|
exports.ReactMapViewLayer = ReactMapViewLayer;
|
|
27823
|
+
exports.RouterWrapperConnect = RouterWrapperConnect;
|
|
27646
27824
|
exports.SnackbarWrapperConnect = SnackbarWrapperConnect;
|
|
27647
27825
|
exports.SyncGroupViewerConnect = SyncGroupViewerConnect;
|
|
27648
27826
|
exports.SyncGroups = index;
|
|
@@ -27678,7 +27856,7 @@
|
|
|
27678
27856
|
exports.getWMJSTimeDimensionForLayerId = getWMJSTimeDimensionForLayerId;
|
|
27679
27857
|
exports.getWMLayerById = getWMLayerById;
|
|
27680
27858
|
exports.layerActions = layerActions;
|
|
27681
|
-
exports.layerReducer = reducer$
|
|
27859
|
+
exports.layerReducer = reducer$8;
|
|
27682
27860
|
exports.layerSelectors = selectors$2;
|
|
27683
27861
|
exports.layerTypes = types$3;
|
|
27684
27862
|
exports.mapActions = mapActions;
|
|
@@ -27693,6 +27871,7 @@
|
|
|
27693
27871
|
exports.registerDrawFunction = registerDrawFunction;
|
|
27694
27872
|
exports.registerWMJSMap = registerWMJSMap;
|
|
27695
27873
|
exports.registerWMLayer = registerWMLayer;
|
|
27874
|
+
exports.routerActions = routerActions;
|
|
27696
27875
|
exports.snackbarActions = snackbarActions;
|
|
27697
27876
|
exports.store = store;
|
|
27698
27877
|
exports.syncGroupActions = genericActions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NavigateSetter: () => null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RouterWrapperConnect } from './RouterWrapperConnect';
|