@opengeoweb/core 4.15.1 → 4.17.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 +417 -151
- package/index.umd.js +446 -144
- 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.esm.js
CHANGED
|
@@ -29,6 +29,7 @@ import axios from 'axios';
|
|
|
29
29
|
import { useDebounce } from '@opengeoweb/api';
|
|
30
30
|
import { createStore } from '@redux-eggs/redux-toolkit';
|
|
31
31
|
import { getSagaExtension } from '@redux-eggs/saga-extension';
|
|
32
|
+
import { useNavigate } from 'react-router-dom';
|
|
32
33
|
|
|
33
34
|
function _typeof(obj) {
|
|
34
35
|
"@babel/helpers - typeof";
|
|
@@ -589,7 +590,11 @@ var getPreviousTimeStepForLayerId = function getPreviousTimeStepForLayerId(layer
|
|
|
589
590
|
var wmjsTimeDim = getWMJSTimeDimensionForLayerId(layerId);
|
|
590
591
|
if (!wmjsTimeDim) return null;
|
|
591
592
|
var currentIndex = wmjsTimeDim.getIndexForValue(wmjsTimeDim.currentValue, false);
|
|
592
|
-
|
|
593
|
+
|
|
594
|
+
if (currentIndex < 0 || currentIndex - 1 < 0) {
|
|
595
|
+
return wmjsTimeDim.getClosestValue(wmjsTimeDim.currentValue, true);
|
|
596
|
+
}
|
|
597
|
+
|
|
593
598
|
return wmjsTimeDim.getValueForIndex(currentIndex - 1);
|
|
594
599
|
};
|
|
595
600
|
/**
|
|
@@ -599,9 +604,17 @@ var getPreviousTimeStepForLayerId = function getPreviousTimeStepForLayerId(layer
|
|
|
599
604
|
|
|
600
605
|
var getNextTimeStepForLayerId = function getNextTimeStepForLayerId(layerId) {
|
|
601
606
|
var wmjsTimeDim = getWMJSTimeDimensionForLayerId(layerId);
|
|
602
|
-
|
|
607
|
+
|
|
608
|
+
if (!wmjsTimeDim) {
|
|
609
|
+
return null;
|
|
610
|
+
}
|
|
611
|
+
|
|
603
612
|
var currentIndex = wmjsTimeDim.getIndexForValue(wmjsTimeDim.currentValue, false);
|
|
604
|
-
|
|
613
|
+
|
|
614
|
+
if (currentIndex < 0 || currentIndex + 1 >= wmjsTimeDim.size()) {
|
|
615
|
+
return wmjsTimeDim.getClosestValue(wmjsTimeDim.currentValue, true);
|
|
616
|
+
}
|
|
617
|
+
|
|
605
618
|
return wmjsTimeDim.getValueForIndex(currentIndex + 1);
|
|
606
619
|
};
|
|
607
620
|
/**
|
|
@@ -1652,7 +1665,7 @@ var createLayer = function createLayer(_a) {
|
|
|
1652
1665
|
status: status
|
|
1653
1666
|
});
|
|
1654
1667
|
};
|
|
1655
|
-
var initialState$
|
|
1668
|
+
var initialState$8 = {
|
|
1656
1669
|
byId: {},
|
|
1657
1670
|
allIds: [],
|
|
1658
1671
|
availableBaseLayers: {
|
|
@@ -1660,8 +1673,8 @@ var initialState$7 = {
|
|
|
1660
1673
|
allIds: []
|
|
1661
1674
|
}
|
|
1662
1675
|
};
|
|
1663
|
-
var slice$
|
|
1664
|
-
initialState: initialState$
|
|
1676
|
+
var slice$8 = createSlice({
|
|
1677
|
+
initialState: initialState$8,
|
|
1665
1678
|
name: 'layerReducer',
|
|
1666
1679
|
reducers: {
|
|
1667
1680
|
addLayer: function addLayer(draft, action) {
|
|
@@ -1756,7 +1769,10 @@ var slice$7 = createSlice({
|
|
|
1756
1769
|
},
|
|
1757
1770
|
baseLayerDelete: function baseLayerDelete(draft, action) {
|
|
1758
1771
|
var layerId = action.payload.layerId;
|
|
1759
|
-
|
|
1772
|
+
|
|
1773
|
+
if (draft.byId[layerId].layerType !== LayerType.baseLayer && draft.byId[layerId].layerType !== LayerType.overLayer) {
|
|
1774
|
+
return;
|
|
1775
|
+
}
|
|
1760
1776
|
|
|
1761
1777
|
if (draft.byId[layerId]) {
|
|
1762
1778
|
draft.allIds = draft.allIds.filter(function (id) {
|
|
@@ -1811,8 +1827,13 @@ var slice$7 = createSlice({
|
|
|
1811
1827
|
|
|
1812
1828
|
var layerTypes = [];
|
|
1813
1829
|
filtererdBaseLayers.forEach(function (layer) {
|
|
1814
|
-
if (layer.layerType !== LayerType.baseLayer && layer.layerType !== LayerType.overLayer)
|
|
1815
|
-
|
|
1830
|
+
if (layer.layerType !== LayerType.baseLayer && layer.layerType !== LayerType.overLayer) {
|
|
1831
|
+
return;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
if (!layerTypes.includes(layer.layerType)) {
|
|
1835
|
+
layerTypes.push(layer.layerType);
|
|
1836
|
+
}
|
|
1816
1837
|
});
|
|
1817
1838
|
var state = current(draft); // remove current layers with same type as one of the passed layers
|
|
1818
1839
|
|
|
@@ -1835,7 +1856,10 @@ var slice$7 = createSlice({
|
|
|
1835
1856
|
},
|
|
1836
1857
|
addBaseLayer: function addBaseLayer(draft, action) {
|
|
1837
1858
|
var layer = action.payload.layer;
|
|
1838
|
-
|
|
1859
|
+
|
|
1860
|
+
if (layer.layerType !== LayerType.baseLayer && layer.layerType !== LayerType.overLayer) {
|
|
1861
|
+
return;
|
|
1862
|
+
}
|
|
1839
1863
|
|
|
1840
1864
|
if (!draft.byId[layer.id]) {
|
|
1841
1865
|
draft.byId[layer.id] = createLayer(Object.assign({
|
|
@@ -1856,7 +1880,10 @@ var slice$7 = createSlice({
|
|
|
1856
1880
|
},
|
|
1857
1881
|
addAvailableBaseLayer: function addAvailableBaseLayer(draft, action) {
|
|
1858
1882
|
var layer = action.payload.layer;
|
|
1859
|
-
|
|
1883
|
+
|
|
1884
|
+
if (layer.layerType !== LayerType.baseLayer && layer.layerType !== LayerType.overLayer || !layer.mapId) {
|
|
1885
|
+
return;
|
|
1886
|
+
}
|
|
1860
1887
|
|
|
1861
1888
|
if (!draft.availableBaseLayers.byId[layer.id]) {
|
|
1862
1889
|
draft.availableBaseLayers.byId[layer.id] = createLayer(Object.assign({
|
|
@@ -1870,7 +1897,10 @@ var slice$7 = createSlice({
|
|
|
1870
1897
|
var layers = action.payload.layers; // add new available baselayers
|
|
1871
1898
|
|
|
1872
1899
|
layers.forEach(function (layer) {
|
|
1873
|
-
if (layer.layerType !== LayerType.baseLayer || draft.availableBaseLayers.byId[layer.id] || !layer.mapId)
|
|
1900
|
+
if (layer.layerType !== LayerType.baseLayer || draft.availableBaseLayers.byId[layer.id] || !layer.mapId) {
|
|
1901
|
+
return;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1874
1904
|
draft.availableBaseLayers.byId[layer.id] = createLayer(Object.assign({
|
|
1875
1905
|
id: layer.id,
|
|
1876
1906
|
layerType: layer.layerType
|
|
@@ -1905,9 +1935,9 @@ var slice$7 = createSlice({
|
|
|
1905
1935
|
layerDimensions = _action$payload12.layerDimensions;
|
|
1906
1936
|
var layerStyleAction = layerActions.layerChangeStyle(layerStyle);
|
|
1907
1937
|
var state = current(draft);
|
|
1908
|
-
var intermediateState = layerStyle === null ? state : reducer$
|
|
1938
|
+
var intermediateState = layerStyle === null ? state : reducer$8(state, layerStyleAction);
|
|
1909
1939
|
var dimensionsAction = layerActions.layerSetDimensions(layerDimensions);
|
|
1910
|
-
var newState = layerDimensions === null ? intermediateState : reducer$
|
|
1940
|
+
var newState = layerDimensions === null ? intermediateState : reducer$8(intermediateState, dimensionsAction);
|
|
1911
1941
|
return newState;
|
|
1912
1942
|
},
|
|
1913
1943
|
setSelectedFeature: function setSelectedFeature(draft, action) {
|
|
@@ -1963,7 +1993,7 @@ var slice$7 = createSlice({
|
|
|
1963
1993
|
};
|
|
1964
1994
|
/* Handle the Layer action with the same logic, using the same reducer */
|
|
1965
1995
|
|
|
1966
|
-
return reducer$
|
|
1996
|
+
return reducer$8(prevState, action);
|
|
1967
1997
|
}, state);
|
|
1968
1998
|
}).addCase(setMapPreset, function (draft, action) {
|
|
1969
1999
|
var mapId = action.payload.mapId;
|
|
@@ -1983,8 +2013,8 @@ var slice$7 = createSlice({
|
|
|
1983
2013
|
});
|
|
1984
2014
|
}
|
|
1985
2015
|
});
|
|
1986
|
-
var reducer$
|
|
1987
|
-
var layerActions = slice$
|
|
2016
|
+
var reducer$8 = slice$8.reducer;
|
|
2017
|
+
var layerActions = slice$8.actions;
|
|
1988
2018
|
|
|
1989
2019
|
/* *
|
|
1990
2020
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -2002,12 +2032,12 @@ var layerActions = slice$7.actions;
|
|
|
2002
2032
|
* Copyright 2020 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
2003
2033
|
* Copyright 2020 - Finnish Meteorological Institute (FMI)
|
|
2004
2034
|
* */
|
|
2005
|
-
var initialState$
|
|
2035
|
+
var initialState$7 = {
|
|
2006
2036
|
byId: {},
|
|
2007
2037
|
allIds: []
|
|
2008
2038
|
};
|
|
2009
|
-
var slice$
|
|
2010
|
-
initialState: initialState$
|
|
2039
|
+
var slice$7 = createSlice({
|
|
2040
|
+
initialState: initialState$7,
|
|
2011
2041
|
name: 'serviceReducer',
|
|
2012
2042
|
reducers: {
|
|
2013
2043
|
serviceSetLayers: function serviceSetLayers(draft, action) {
|
|
@@ -2034,13 +2064,13 @@ var slice$6 = createSlice({
|
|
|
2034
2064
|
var serviceLayers = action.payload.serviceLayers;
|
|
2035
2065
|
if (serviceLayers === null) return draft;
|
|
2036
2066
|
var mapAction = serviceActions.serviceSetLayers(serviceLayers);
|
|
2037
|
-
var newState = reducer$
|
|
2067
|
+
var newState = reducer$7(draft, mapAction);
|
|
2038
2068
|
return newState;
|
|
2039
2069
|
});
|
|
2040
2070
|
}
|
|
2041
2071
|
});
|
|
2042
|
-
var reducer$
|
|
2043
|
-
var serviceActions = slice$
|
|
2072
|
+
var reducer$7 = slice$7.reducer;
|
|
2073
|
+
var serviceActions = slice$7.actions;
|
|
2044
2074
|
|
|
2045
2075
|
/* *
|
|
2046
2076
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -2211,13 +2241,13 @@ var createUIDialogElement = function createUIDialogElement(_ref) {
|
|
|
2211
2241
|
error: undefined
|
|
2212
2242
|
};
|
|
2213
2243
|
};
|
|
2214
|
-
var initialState$
|
|
2244
|
+
var initialState$6 = {
|
|
2215
2245
|
order: [],
|
|
2216
2246
|
dialogs: {},
|
|
2217
2247
|
activeWindowId: undefined
|
|
2218
2248
|
};
|
|
2219
|
-
var slice$
|
|
2220
|
-
initialState: initialState$
|
|
2249
|
+
var slice$6 = createSlice({
|
|
2250
|
+
initialState: initialState$6,
|
|
2221
2251
|
name: 'uiReducer',
|
|
2222
2252
|
reducers: {
|
|
2223
2253
|
registerDialog: function registerDialog(draft, action) {
|
|
@@ -2306,8 +2336,8 @@ var slice$5 = createSlice({
|
|
|
2306
2336
|
}
|
|
2307
2337
|
}
|
|
2308
2338
|
});
|
|
2309
|
-
var reducer$
|
|
2310
|
-
var uiActions = slice$
|
|
2339
|
+
var reducer$6 = slice$6.reducer;
|
|
2340
|
+
var uiActions = slice$6.actions;
|
|
2311
2341
|
|
|
2312
2342
|
var addBaseLayer = layerActions.addBaseLayer,
|
|
2313
2343
|
addLayer$1 = layerActions.addLayer,
|
|
@@ -2358,12 +2388,12 @@ var createLayersWithIds = function createLayersWithIds(state, layers) {
|
|
|
2358
2388
|
});
|
|
2359
2389
|
};
|
|
2360
2390
|
|
|
2361
|
-
var initialState$
|
|
2391
|
+
var initialState$5 = {
|
|
2362
2392
|
byId: {},
|
|
2363
2393
|
allIds: []
|
|
2364
2394
|
};
|
|
2365
|
-
var slice$
|
|
2366
|
-
initialState: initialState$
|
|
2395
|
+
var slice$5 = createSlice({
|
|
2396
|
+
initialState: initialState$5,
|
|
2367
2397
|
name: 'mapReducer',
|
|
2368
2398
|
reducers: {
|
|
2369
2399
|
registerMap: function registerMap(draft, action) {
|
|
@@ -2780,8 +2810,13 @@ var slice$4 = createSlice({
|
|
|
2780
2810
|
});
|
|
2781
2811
|
|
|
2782
2812
|
if (draft.byId[mapId]) {
|
|
2783
|
-
if (baseLayerIds.length !== 0)
|
|
2784
|
-
|
|
2813
|
+
if (baseLayerIds.length !== 0) {
|
|
2814
|
+
draft.byId[mapId].baseLayers = baseLayerIds;
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
if (overLayerIds.length !== 0) {
|
|
2818
|
+
draft.byId[mapId].overLayers = overLayerIds;
|
|
2819
|
+
}
|
|
2785
2820
|
}
|
|
2786
2821
|
}).addCase(layerDelete$1, function (draft, action) {
|
|
2787
2822
|
var _action$payload27 = action.payload,
|
|
@@ -2896,13 +2931,13 @@ var slice$4 = createSlice({
|
|
|
2896
2931
|
};
|
|
2897
2932
|
/* Handle the Layer action with the same logic, using the same reducer */
|
|
2898
2933
|
|
|
2899
|
-
return reducer$
|
|
2934
|
+
return reducer$5(prevState, action);
|
|
2900
2935
|
}, draft);
|
|
2901
2936
|
}).addCase(onUpdateLayerInformation, function (draft, action) {
|
|
2902
2937
|
var mapDimensions = action.payload.mapDimensions;
|
|
2903
2938
|
if (mapDimensions === null) return draft;
|
|
2904
2939
|
var mapAction = mapActions$1.mapUpdateAllMapDimensions(mapDimensions);
|
|
2905
|
-
return reducer$
|
|
2940
|
+
return reducer$5(draft, mapAction);
|
|
2906
2941
|
}).addCase(mapChangeDimension, function (draft, action) {
|
|
2907
2942
|
var _action$payload33 = action.payload,
|
|
2908
2943
|
mapId = _action$payload33.mapId,
|
|
@@ -2940,11 +2975,11 @@ var slice$4 = createSlice({
|
|
|
2940
2975
|
});
|
|
2941
2976
|
}
|
|
2942
2977
|
});
|
|
2943
|
-
var mapActions$1 = Object.assign(Object.assign({}, slice$
|
|
2978
|
+
var mapActions$1 = Object.assign(Object.assign({}, slice$5.actions), {
|
|
2944
2979
|
setMapPreset: setMapPreset,
|
|
2945
2980
|
mapChangeDimension: mapChangeDimension
|
|
2946
2981
|
});
|
|
2947
|
-
var reducer$
|
|
2982
|
+
var reducer$5 = slice$5.reducer;
|
|
2948
2983
|
|
|
2949
2984
|
/* *
|
|
2950
2985
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -3527,7 +3562,7 @@ var removeInPlace = function removeInPlace(inDraftArray, condition) {
|
|
|
3527
3562
|
* Copyright 2020 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
3528
3563
|
* Copyright 2020 - Finnish Meteorological Institute (FMI)
|
|
3529
3564
|
* */
|
|
3530
|
-
var initialState$
|
|
3565
|
+
var initialState$4 = {
|
|
3531
3566
|
sources: {
|
|
3532
3567
|
byId: {},
|
|
3533
3568
|
allIds: []
|
|
@@ -3551,8 +3586,8 @@ var initialState$3 = {
|
|
|
3551
3586
|
}
|
|
3552
3587
|
}
|
|
3553
3588
|
};
|
|
3554
|
-
var slice$
|
|
3555
|
-
initialState: initialState$
|
|
3589
|
+
var slice$4 = createSlice({
|
|
3590
|
+
initialState: initialState$4,
|
|
3556
3591
|
name: 'synchronizationGroupsReducer',
|
|
3557
3592
|
reducers: {
|
|
3558
3593
|
syncGroupAddSource: function syncGroupAddSource(draft, action) {
|
|
@@ -3696,7 +3731,7 @@ var slice$3 = createSlice({
|
|
|
3696
3731
|
});
|
|
3697
3732
|
},
|
|
3698
3733
|
syncGroupClear: function syncGroupClear() {
|
|
3699
|
-
return initialState$
|
|
3734
|
+
return initialState$4;
|
|
3700
3735
|
},
|
|
3701
3736
|
syncGroupSetViewState: function syncGroupSetViewState(draft, action) {
|
|
3702
3737
|
var viewState = action.payload.viewState;
|
|
@@ -3768,7 +3803,7 @@ var setBboxOrTimeSync = function setBboxOrTimeSync(state, action) {
|
|
|
3768
3803
|
});
|
|
3769
3804
|
};
|
|
3770
3805
|
|
|
3771
|
-
var _slice$actions = slice$
|
|
3806
|
+
var _slice$actions = slice$4.actions,
|
|
3772
3807
|
syncGroupAddGroup = _slice$actions.syncGroupAddGroup,
|
|
3773
3808
|
syncGroupAddSource = _slice$actions.syncGroupAddSource,
|
|
3774
3809
|
syncGroupAddTarget = _slice$actions.syncGroupAddTarget;
|
|
@@ -3778,8 +3813,8 @@ var _slice$actions = slice$3.actions,
|
|
|
3778
3813
|
syncGroupRemoveSource = _slice$actions.syncGroupRemoveSource,
|
|
3779
3814
|
syncGroupRemoveTarget = _slice$actions.syncGroupRemoveTarget,
|
|
3780
3815
|
syncGroupSetViewState = _slice$actions.syncGroupSetViewState;
|
|
3781
|
-
var actions = slice$
|
|
3782
|
-
reducer$
|
|
3816
|
+
var actions = slice$4.actions,
|
|
3817
|
+
reducer$4 = slice$4.reducer;
|
|
3783
3818
|
|
|
3784
3819
|
/* *
|
|
3785
3820
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -3836,7 +3871,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
3836
3871
|
actions: actions,
|
|
3837
3872
|
constants: constants,
|
|
3838
3873
|
types: types$1,
|
|
3839
|
-
initialState: initialState$
|
|
3874
|
+
initialState: initialState$4
|
|
3840
3875
|
});
|
|
3841
3876
|
|
|
3842
3877
|
/* *
|
|
@@ -4752,7 +4787,7 @@ var initialServicePopupState = {
|
|
|
4752
4787
|
serviceId: '',
|
|
4753
4788
|
variant: 'add'
|
|
4754
4789
|
};
|
|
4755
|
-
var initialState$
|
|
4790
|
+
var initialState$3 = {
|
|
4756
4791
|
filters: {
|
|
4757
4792
|
searchFilter: '',
|
|
4758
4793
|
activeServices: layerSelectActiveServicesAdapter.getInitialState(),
|
|
@@ -4768,8 +4803,8 @@ var initialState$2 = {
|
|
|
4768
4803
|
},
|
|
4769
4804
|
servicePopup: initialServicePopupState
|
|
4770
4805
|
};
|
|
4771
|
-
var slice$
|
|
4772
|
-
initialState: initialState$
|
|
4806
|
+
var slice$3 = createSlice({
|
|
4807
|
+
initialState: initialState$3,
|
|
4773
4808
|
name: DialogTypes.LayerSelect,
|
|
4774
4809
|
reducers: {
|
|
4775
4810
|
setSearchFilter: function setSearchFilter(draft, action) {
|
|
@@ -4930,8 +4965,8 @@ var slice$2 = createSlice({
|
|
|
4930
4965
|
}
|
|
4931
4966
|
}
|
|
4932
4967
|
});
|
|
4933
|
-
var reducer$
|
|
4934
|
-
var layerSelectActions = slice$
|
|
4968
|
+
var reducer$3 = slice$3.reducer;
|
|
4969
|
+
var layerSelectActions = slice$3.actions;
|
|
4935
4970
|
|
|
4936
4971
|
/* *
|
|
4937
4972
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -5220,9 +5255,9 @@ var getServicePopupDetails = function getServicePopupDetails(store) {
|
|
|
5220
5255
|
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
5221
5256
|
* */
|
|
5222
5257
|
var snackbarAdapter = createEntityAdapter();
|
|
5223
|
-
var initialState$
|
|
5224
|
-
var slice$
|
|
5225
|
-
initialState: initialState$
|
|
5258
|
+
var initialState$2 = snackbarAdapter.getInitialState();
|
|
5259
|
+
var slice$2 = createSlice({
|
|
5260
|
+
initialState: initialState$2,
|
|
5226
5261
|
name: 'snackbar',
|
|
5227
5262
|
reducers: {
|
|
5228
5263
|
// To open the snackbar call this action
|
|
@@ -5244,8 +5279,8 @@ var slice$1 = createSlice({
|
|
|
5244
5279
|
}
|
|
5245
5280
|
}
|
|
5246
5281
|
});
|
|
5247
|
-
var reducer$
|
|
5248
|
-
var snackbarActions = slice$
|
|
5282
|
+
var reducer$2 = slice$2.reducer;
|
|
5283
|
+
var snackbarActions = slice$2.actions;
|
|
5249
5284
|
|
|
5250
5285
|
/* *
|
|
5251
5286
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -5277,6 +5312,34 @@ var getFirstSnackbarMessage = createSelector(getCurrentSnackbarMessages, functio
|
|
|
5277
5312
|
return currentMessages.length > 0 ? currentMessages[0] : undefined;
|
|
5278
5313
|
});
|
|
5279
5314
|
|
|
5315
|
+
/* *
|
|
5316
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5317
|
+
* you may not use this file except in compliance with the License.
|
|
5318
|
+
* You may obtain a copy of the License at
|
|
5319
|
+
*
|
|
5320
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5321
|
+
*
|
|
5322
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
5323
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
5324
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
5325
|
+
* See the License for the specific language governing permissions and
|
|
5326
|
+
* limitations under the License.
|
|
5327
|
+
*
|
|
5328
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
5329
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
5330
|
+
* */
|
|
5331
|
+
var initialState$1 = {};
|
|
5332
|
+
var slice$1 = createSlice({
|
|
5333
|
+
initialState: initialState$1,
|
|
5334
|
+
name: 'router',
|
|
5335
|
+
reducers: {
|
|
5336
|
+
// eslint-disable-next-line no-unused-vars
|
|
5337
|
+
navigateToUrl: function navigateToUrl(draft, action) {}
|
|
5338
|
+
}
|
|
5339
|
+
});
|
|
5340
|
+
var reducer$1 = slice$1.reducer;
|
|
5341
|
+
var routerActions = slice$1.actions;
|
|
5342
|
+
|
|
5280
5343
|
/* *
|
|
5281
5344
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5282
5345
|
* you may not use this file except in compliance with the License.
|
|
@@ -5638,15 +5701,15 @@ var getMapBaseLayerActionsTargets = function getMapBaseLayerActionsTargets(state
|
|
|
5638
5701
|
});
|
|
5639
5702
|
};
|
|
5640
5703
|
|
|
5641
|
-
var _marked$
|
|
5642
|
-
_marked2$
|
|
5704
|
+
var _marked$6 = /*#__PURE__*/regeneratorRuntime.mark(setTimeSaga),
|
|
5705
|
+
_marked2$6 = /*#__PURE__*/regeneratorRuntime.mark(setBBoxSaga),
|
|
5643
5706
|
_marked3$4 = /*#__PURE__*/regeneratorRuntime.mark(layerActionsSaga),
|
|
5644
5707
|
_marked4$3 = /*#__PURE__*/regeneratorRuntime.mark(addLayerActionsSaga),
|
|
5645
5708
|
_marked5$2 = /*#__PURE__*/regeneratorRuntime.mark(deleteLayerActionsSaga),
|
|
5646
5709
|
_marked6$1 = /*#__PURE__*/regeneratorRuntime.mark(moveLayerActionsSaga),
|
|
5647
5710
|
_marked7$1 = /*#__PURE__*/regeneratorRuntime.mark(setActiveLayerIdActionsSaga),
|
|
5648
5711
|
_marked8$1 = /*#__PURE__*/regeneratorRuntime.mark(mapBaseLayerActionsSaga),
|
|
5649
|
-
_marked9$1 = /*#__PURE__*/regeneratorRuntime.mark(rootSaga$
|
|
5712
|
+
_marked9$1 = /*#__PURE__*/regeneratorRuntime.mark(rootSaga$6);
|
|
5650
5713
|
var setBaseLayers = layerActions.setBaseLayers,
|
|
5651
5714
|
addLayer = layerActions.addLayer,
|
|
5652
5715
|
layerChangeDimension = layerActions.layerChangeDimension,
|
|
@@ -5694,7 +5757,7 @@ function setTimeSaga(_ref) {
|
|
|
5694
5757
|
return _context.stop();
|
|
5695
5758
|
}
|
|
5696
5759
|
}
|
|
5697
|
-
}, _marked$
|
|
5760
|
+
}, _marked$6);
|
|
5698
5761
|
}
|
|
5699
5762
|
function setBBoxSaga(_ref2) {
|
|
5700
5763
|
var payload, targets, groups;
|
|
@@ -5721,7 +5784,7 @@ function setBBoxSaga(_ref2) {
|
|
|
5721
5784
|
return _context2.stop();
|
|
5722
5785
|
}
|
|
5723
5786
|
}
|
|
5724
|
-
}, _marked2$
|
|
5787
|
+
}, _marked2$6);
|
|
5725
5788
|
}
|
|
5726
5789
|
function layerActionsSaga(_ref3) {
|
|
5727
5790
|
var payload, type, targets;
|
|
@@ -5936,7 +5999,7 @@ function mapBaseLayerActionsSaga(_ref8) {
|
|
|
5936
5999
|
}
|
|
5937
6000
|
}, _marked8$1);
|
|
5938
6001
|
}
|
|
5939
|
-
function rootSaga$
|
|
6002
|
+
function rootSaga$6() {
|
|
5940
6003
|
return regeneratorRuntime.wrap(function rootSaga$(_context9) {
|
|
5941
6004
|
while (1) {
|
|
5942
6005
|
switch (_context9.prev = _context9.next) {
|
|
@@ -6095,11 +6158,11 @@ var sources = function sources(store) {
|
|
|
6095
6158
|
|
|
6096
6159
|
var createSyncGroupViewStateSelector = createSelector(groups, sources, createSyncGroupViewState);
|
|
6097
6160
|
|
|
6098
|
-
var _marked$
|
|
6099
|
-
_marked2$
|
|
6161
|
+
var _marked$5 = /*#__PURE__*/regeneratorRuntime.mark(updateSourceValueWhenLinkingComponentToGroupSaga),
|
|
6162
|
+
_marked2$5 = /*#__PURE__*/regeneratorRuntime.mark(addGroupTargetSaga),
|
|
6100
6163
|
_marked3$3 = /*#__PURE__*/regeneratorRuntime.mark(linkGroupTargetSaga),
|
|
6101
6164
|
_marked4$2 = /*#__PURE__*/regeneratorRuntime.mark(updateViewStateSaga),
|
|
6102
|
-
_marked5$1 = /*#__PURE__*/regeneratorRuntime.mark(rootSaga$
|
|
6165
|
+
_marked5$1 = /*#__PURE__*/regeneratorRuntime.mark(rootSaga$5);
|
|
6103
6166
|
function updateSourceValueWhenLinkingComponentToGroupSaga(groupId, targetToUpdate) {
|
|
6104
6167
|
var group;
|
|
6105
6168
|
return regeneratorRuntime.wrap(function updateSourceValueWhenLinkingComponentToGroupSaga$(_context) {
|
|
@@ -6166,7 +6229,7 @@ function updateSourceValueWhenLinkingComponentToGroupSaga(groupId, targetToUpdat
|
|
|
6166
6229
|
return _context.stop();
|
|
6167
6230
|
}
|
|
6168
6231
|
}
|
|
6169
|
-
}, _marked$
|
|
6232
|
+
}, _marked$5);
|
|
6170
6233
|
}
|
|
6171
6234
|
function addGroupTargetSaga(_ref) {
|
|
6172
6235
|
var payload, groupId, linked, targetToUpdate;
|
|
@@ -6190,7 +6253,7 @@ function addGroupTargetSaga(_ref) {
|
|
|
6190
6253
|
return _context2.stop();
|
|
6191
6254
|
}
|
|
6192
6255
|
}
|
|
6193
|
-
}, _marked2$
|
|
6256
|
+
}, _marked2$5);
|
|
6194
6257
|
}
|
|
6195
6258
|
function linkGroupTargetSaga(_ref2) {
|
|
6196
6259
|
var payload, groupId, linked, targetToUpdate;
|
|
@@ -6240,7 +6303,7 @@ function updateViewStateSaga() {
|
|
|
6240
6303
|
}, _marked4$2);
|
|
6241
6304
|
}
|
|
6242
6305
|
|
|
6243
|
-
function rootSaga$
|
|
6306
|
+
function rootSaga$5() {
|
|
6244
6307
|
return regeneratorRuntime.wrap(function rootSaga$(_context5) {
|
|
6245
6308
|
while (1) {
|
|
6246
6309
|
switch (_context5.prev = _context5.next) {
|
|
@@ -6291,14 +6354,14 @@ function rootSaga$4() {
|
|
|
6291
6354
|
var synchronizationGroupConfig = {
|
|
6292
6355
|
id: 'syncronizationGroupStore-module',
|
|
6293
6356
|
reducersMap: {
|
|
6294
|
-
syncronizationGroupStore: reducer$
|
|
6357
|
+
syncronizationGroupStore: reducer$4
|
|
6295
6358
|
},
|
|
6296
|
-
sagas: [rootSaga$
|
|
6359
|
+
sagas: [rootSaga$6, rootSaga$5]
|
|
6297
6360
|
};
|
|
6298
6361
|
|
|
6299
|
-
var _marked$
|
|
6300
|
-
_marked2$
|
|
6301
|
-
_marked3$2 = /*#__PURE__*/regeneratorRuntime.mark(rootSaga$
|
|
6362
|
+
var _marked$4 = /*#__PURE__*/regeneratorRuntime.mark(registerMapUISaga),
|
|
6363
|
+
_marked2$4 = /*#__PURE__*/regeneratorRuntime.mark(unregisterUIMapSaga),
|
|
6364
|
+
_marked3$2 = /*#__PURE__*/regeneratorRuntime.mark(rootSaga$4);
|
|
6302
6365
|
function registerMapUISaga() {
|
|
6303
6366
|
var fields, source;
|
|
6304
6367
|
return regeneratorRuntime.wrap(function registerMapUISaga$(_context) {
|
|
@@ -6334,7 +6397,7 @@ function registerMapUISaga() {
|
|
|
6334
6397
|
return _context.stop();
|
|
6335
6398
|
}
|
|
6336
6399
|
}
|
|
6337
|
-
}, _marked$
|
|
6400
|
+
}, _marked$4);
|
|
6338
6401
|
}
|
|
6339
6402
|
function unregisterUIMapSaga() {
|
|
6340
6403
|
var fields, activeUI;
|
|
@@ -6386,9 +6449,9 @@ function unregisterUIMapSaga() {
|
|
|
6386
6449
|
return _context2.stop();
|
|
6387
6450
|
}
|
|
6388
6451
|
}
|
|
6389
|
-
}, _marked2$
|
|
6452
|
+
}, _marked2$4);
|
|
6390
6453
|
}
|
|
6391
|
-
function rootSaga$
|
|
6454
|
+
function rootSaga$4() {
|
|
6392
6455
|
return regeneratorRuntime.wrap(function rootSaga$(_context3) {
|
|
6393
6456
|
while (1) {
|
|
6394
6457
|
switch (_context3.prev = _context3.next) {
|
|
@@ -6427,9 +6490,9 @@ function rootSaga$3() {
|
|
|
6427
6490
|
var uiModuleConfig = {
|
|
6428
6491
|
id: 'ui-module',
|
|
6429
6492
|
reducersMap: {
|
|
6430
|
-
ui: reducer$
|
|
6493
|
+
ui: reducer$6
|
|
6431
6494
|
},
|
|
6432
|
-
sagas: [rootSaga$
|
|
6495
|
+
sagas: [rootSaga$4]
|
|
6433
6496
|
};
|
|
6434
6497
|
|
|
6435
6498
|
/* *
|
|
@@ -8022,8 +8085,8 @@ var LegendConnect = function LegendConnect(_a) {
|
|
|
8022
8085
|
}, props));
|
|
8023
8086
|
};
|
|
8024
8087
|
|
|
8025
|
-
var _marked$
|
|
8026
|
-
_marked2$
|
|
8088
|
+
var _marked$3 = /*#__PURE__*/regeneratorRuntime.mark(startAnimationSaga),
|
|
8089
|
+
_marked2$3 = /*#__PURE__*/regeneratorRuntime.mark(stopAnimationSaga),
|
|
8027
8090
|
_marked3$1 = /*#__PURE__*/regeneratorRuntime.mark(deleteLayerSaga),
|
|
8028
8091
|
_marked4$1 = /*#__PURE__*/regeneratorRuntime.mark(updateAnimation),
|
|
8029
8092
|
_marked5 = /*#__PURE__*/regeneratorRuntime.mark(setLayerDimensionsSaga),
|
|
@@ -8031,7 +8094,7 @@ var _marked$2 = /*#__PURE__*/regeneratorRuntime.mark(startAnimationSaga),
|
|
|
8031
8094
|
_marked7 = /*#__PURE__*/regeneratorRuntime.mark(handleBaseLayersSaga),
|
|
8032
8095
|
_marked8 = /*#__PURE__*/regeneratorRuntime.mark(setMapPresetSaga),
|
|
8033
8096
|
_marked9 = /*#__PURE__*/regeneratorRuntime.mark(unregisterMapSaga),
|
|
8034
|
-
_marked10 = /*#__PURE__*/regeneratorRuntime.mark(rootSaga$
|
|
8097
|
+
_marked10 = /*#__PURE__*/regeneratorRuntime.mark(rootSaga$3);
|
|
8035
8098
|
|
|
8036
8099
|
var generateTimeList = function generateTimeList(start, end, interval) {
|
|
8037
8100
|
var timeList = [];
|
|
@@ -8094,7 +8157,7 @@ function startAnimationSaga(_ref) {
|
|
|
8094
8157
|
return _context.stop();
|
|
8095
8158
|
}
|
|
8096
8159
|
}
|
|
8097
|
-
}, _marked$
|
|
8160
|
+
}, _marked$3);
|
|
8098
8161
|
}
|
|
8099
8162
|
function stopAnimationSaga(_ref2) {
|
|
8100
8163
|
var payload, mapId;
|
|
@@ -8112,7 +8175,7 @@ function stopAnimationSaga(_ref2) {
|
|
|
8112
8175
|
return _context2.stop();
|
|
8113
8176
|
}
|
|
8114
8177
|
}
|
|
8115
|
-
}, _marked2$
|
|
8178
|
+
}, _marked2$3);
|
|
8116
8179
|
}
|
|
8117
8180
|
function deleteLayerSaga(_ref3) {
|
|
8118
8181
|
var payload, mapId, layers;
|
|
@@ -8950,7 +9013,7 @@ function unregisterMapSaga(_ref7) {
|
|
|
8950
9013
|
}
|
|
8951
9014
|
}, _marked9);
|
|
8952
9015
|
}
|
|
8953
|
-
function rootSaga$
|
|
9016
|
+
function rootSaga$3() {
|
|
8954
9017
|
return regeneratorRuntime.wrap(function rootSaga$(_context10) {
|
|
8955
9018
|
while (1) {
|
|
8956
9019
|
switch (_context10.prev = _context10.next) {
|
|
@@ -8993,11 +9056,11 @@ function rootSaga$2() {
|
|
|
8993
9056
|
var moduleConfig = {
|
|
8994
9057
|
id: 'webmap-module',
|
|
8995
9058
|
reducersMap: {
|
|
8996
|
-
webmap: reducer$
|
|
8997
|
-
services: reducer$
|
|
8998
|
-
layers: reducer$
|
|
9059
|
+
webmap: reducer$5,
|
|
9060
|
+
services: reducer$7,
|
|
9061
|
+
layers: reducer$8
|
|
8999
9062
|
},
|
|
9000
|
-
sagas: [rootSaga$
|
|
9063
|
+
sagas: [rootSaga$3]
|
|
9001
9064
|
};
|
|
9002
9065
|
|
|
9003
9066
|
/* *
|
|
@@ -9051,10 +9114,10 @@ var isNoIdService = function isNoIdService(param) {
|
|
|
9051
9114
|
return !!((serviceParam === null || serviceParam === void 0 ? void 0 : serviceParam.name) && (serviceParam === null || serviceParam === void 0 ? void 0 : serviceParam.url));
|
|
9052
9115
|
};
|
|
9053
9116
|
|
|
9054
|
-
var _marked$
|
|
9055
|
-
_marked2$
|
|
9117
|
+
var _marked$2 = /*#__PURE__*/regeneratorRuntime.mark(newServiceAddedSaga),
|
|
9118
|
+
_marked2$2 = /*#__PURE__*/regeneratorRuntime.mark(layerSelectCloseInfoDialogSaga),
|
|
9056
9119
|
_marked3 = /*#__PURE__*/regeneratorRuntime.mark(layerSelectRemoveServiceSaga),
|
|
9057
|
-
_marked4 = /*#__PURE__*/regeneratorRuntime.mark(rootSaga$
|
|
9120
|
+
_marked4 = /*#__PURE__*/regeneratorRuntime.mark(rootSaga$2);
|
|
9058
9121
|
function newServiceAddedSaga(capturedAction) {
|
|
9059
9122
|
var addedService, id, serviceUrl, name, scope, _abstract, isUpdating, keywords, groups;
|
|
9060
9123
|
|
|
@@ -9108,7 +9171,7 @@ function newServiceAddedSaga(capturedAction) {
|
|
|
9108
9171
|
return _context.stop();
|
|
9109
9172
|
}
|
|
9110
9173
|
}
|
|
9111
|
-
}, _marked$
|
|
9174
|
+
}, _marked$2);
|
|
9112
9175
|
}
|
|
9113
9176
|
function layerSelectCloseInfoDialogSaga(_ref) {
|
|
9114
9177
|
var type, payload, togglePayload, activeMapIdPayload, isLayerInfoDialogOpen, _isLayerInfoDialogOpen, filteredLayers, dialogInfo;
|
|
@@ -9208,7 +9271,7 @@ function layerSelectCloseInfoDialogSaga(_ref) {
|
|
|
9208
9271
|
return _context2.stop();
|
|
9209
9272
|
}
|
|
9210
9273
|
}
|
|
9211
|
-
}, _marked2$
|
|
9274
|
+
}, _marked2$2);
|
|
9212
9275
|
}
|
|
9213
9276
|
function layerSelectRemoveServiceSaga(capturedAction) {
|
|
9214
9277
|
var removedService, serviceId, serviceUrl, results, services, servicesEnabled;
|
|
@@ -9282,7 +9345,7 @@ function removeServiceFromLocalStorageSaga(_ref5) {
|
|
|
9282
9345
|
delete updatedServices[serviceUrl];
|
|
9283
9346
|
setUserAddedServices(updatedServices);
|
|
9284
9347
|
}
|
|
9285
|
-
function rootSaga$
|
|
9348
|
+
function rootSaga$2() {
|
|
9286
9349
|
return regeneratorRuntime.wrap(function rootSaga$(_context4) {
|
|
9287
9350
|
while (1) {
|
|
9288
9351
|
switch (_context4.prev = _context4.next) {
|
|
@@ -9317,13 +9380,13 @@ function rootSaga$1() {
|
|
|
9317
9380
|
var layerSelectConfig = {
|
|
9318
9381
|
id: 'layerSelect-module',
|
|
9319
9382
|
reducersMap: {
|
|
9320
|
-
layerSelect: reducer$
|
|
9383
|
+
layerSelect: reducer$3
|
|
9321
9384
|
},
|
|
9322
|
-
sagas: [rootSaga$
|
|
9385
|
+
sagas: [rootSaga$2]
|
|
9323
9386
|
};
|
|
9324
9387
|
|
|
9325
|
-
var _marked = /*#__PURE__*/regeneratorRuntime.mark(openSnackbarSaga),
|
|
9326
|
-
_marked2 = /*#__PURE__*/regeneratorRuntime.mark(rootSaga);
|
|
9388
|
+
var _marked$1 = /*#__PURE__*/regeneratorRuntime.mark(openSnackbarSaga),
|
|
9389
|
+
_marked2$1 = /*#__PURE__*/regeneratorRuntime.mark(rootSaga$1);
|
|
9327
9390
|
var hideTime = 4000;
|
|
9328
9391
|
function openSnackbarSaga(capturedAction) {
|
|
9329
9392
|
var snackbarMessage, currentSnackbarMessages, id, currentSnackbarMessagesOpen;
|
|
@@ -9381,9 +9444,9 @@ function openSnackbarSaga(capturedAction) {
|
|
|
9381
9444
|
return _context.stop();
|
|
9382
9445
|
}
|
|
9383
9446
|
}
|
|
9384
|
-
}, _marked);
|
|
9447
|
+
}, _marked$1);
|
|
9385
9448
|
}
|
|
9386
|
-
function rootSaga() {
|
|
9449
|
+
function rootSaga$1() {
|
|
9387
9450
|
return regeneratorRuntime.wrap(function rootSaga$(_context2) {
|
|
9388
9451
|
while (1) {
|
|
9389
9452
|
switch (_context2.prev = _context2.next) {
|
|
@@ -9396,7 +9459,7 @@ function rootSaga() {
|
|
|
9396
9459
|
return _context2.stop();
|
|
9397
9460
|
}
|
|
9398
9461
|
}
|
|
9399
|
-
}, _marked2);
|
|
9462
|
+
}, _marked2$1);
|
|
9400
9463
|
}
|
|
9401
9464
|
|
|
9402
9465
|
/* *
|
|
@@ -9418,9 +9481,9 @@ function rootSaga() {
|
|
|
9418
9481
|
var snackbarModuleConfig = {
|
|
9419
9482
|
id: 'snackbar-module',
|
|
9420
9483
|
reducersMap: {
|
|
9421
|
-
snackbar: reducer$
|
|
9484
|
+
snackbar: reducer$2
|
|
9422
9485
|
},
|
|
9423
|
-
sagas: [rootSaga]
|
|
9486
|
+
sagas: [rootSaga$1]
|
|
9424
9487
|
};
|
|
9425
9488
|
|
|
9426
9489
|
/* *
|
|
@@ -13070,17 +13133,23 @@ var SearchFieldButtonContainer = function SearchFieldButtonContainer(_ref) {
|
|
|
13070
13133
|
}, /*#__PURE__*/React__default.createElement(Clear, null)));
|
|
13071
13134
|
};
|
|
13072
13135
|
|
|
13073
|
-
if (isURL(localSearchString))
|
|
13074
|
-
|
|
13075
|
-
|
|
13076
|
-
|
|
13077
|
-
|
|
13078
|
-
|
|
13079
|
-
|
|
13080
|
-
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
|
|
13136
|
+
if (isURL(localSearchString)) {
|
|
13137
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
13138
|
+
style: {
|
|
13139
|
+
marginRight: '15px'
|
|
13140
|
+
}
|
|
13141
|
+
}, /*#__PURE__*/React__default.createElement(ClearButton, null)), /*#__PURE__*/React__default.createElement(Button, {
|
|
13142
|
+
variant: "tertiary",
|
|
13143
|
+
onClick: function onClick() {
|
|
13144
|
+
return setPopupIsOpen(true);
|
|
13145
|
+
}
|
|
13146
|
+
}, "Save"));
|
|
13147
|
+
}
|
|
13148
|
+
|
|
13149
|
+
if (localSearchString) {
|
|
13150
|
+
return /*#__PURE__*/React__default.createElement(ClearButton, null);
|
|
13151
|
+
}
|
|
13152
|
+
|
|
13084
13153
|
return /*#__PURE__*/React__default.createElement(CustomTooltip, {
|
|
13085
13154
|
title: "Search",
|
|
13086
13155
|
placement: "top"
|
|
@@ -16269,6 +16338,13 @@ var DimensionSelectSlider = function DimensionSelectSlider(_ref) {
|
|
|
16269
16338
|
var sliderValue = managedValue !== null ? values.findIndex(function (v) {
|
|
16270
16339
|
return v === managedValue;
|
|
16271
16340
|
}) : currentIndex;
|
|
16341
|
+
|
|
16342
|
+
var upDownNavigation = function upDownNavigation(event) {
|
|
16343
|
+
if (event.key === 'ArrowLeft' || event.key === 'ArrowRight' || event.metaKey || event.ctrlKey) {
|
|
16344
|
+
event.preventDefault();
|
|
16345
|
+
}
|
|
16346
|
+
};
|
|
16347
|
+
|
|
16272
16348
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
16273
16349
|
"data-testid": "slider-dimensionSelect",
|
|
16274
16350
|
sx: {
|
|
@@ -16294,6 +16370,7 @@ var DimensionSelectSlider = function DimensionSelectSlider(_ref) {
|
|
|
16294
16370
|
} : {},
|
|
16295
16371
|
disabled: isDisabled,
|
|
16296
16372
|
value: sliderValue,
|
|
16373
|
+
onKeyDown: upDownNavigation,
|
|
16297
16374
|
onChange: function onChange(e, val) {
|
|
16298
16375
|
onChangeDimensionValue(values[val].toString());
|
|
16299
16376
|
if (!managedValue) setCurrentIndex(val);
|
|
@@ -18424,7 +18501,11 @@ function useAnimationTime(animationStartTime, animationEndTime, onSetAnimationSt
|
|
|
18424
18501
|
if (leftMarkerDragging) {
|
|
18425
18502
|
var mousePosition = leftMarkerPx + x;
|
|
18426
18503
|
var rightAnimationPosition = rightMarkerPx - DRAG_AREA_WIDTH * 2;
|
|
18427
|
-
|
|
18504
|
+
|
|
18505
|
+
if (mousePosition >= rightAnimationPosition || mousePosition <= 0) {
|
|
18506
|
+
return;
|
|
18507
|
+
} // eslint-disable-next-line no-param-reassign
|
|
18508
|
+
|
|
18428
18509
|
|
|
18429
18510
|
dragTooltipPosition.current = pixelsToLeft ? mousePosition + pixelsToLeft : mousePosition;
|
|
18430
18511
|
var mouseTimeUnix = pixelToTimestamp(mousePosition, centerTime, canvasWidth, secondsPerPx);
|
|
@@ -18437,7 +18518,11 @@ function useAnimationTime(animationStartTime, animationEndTime, onSetAnimationSt
|
|
|
18437
18518
|
var _mousePosition = rightMarkerPx + x;
|
|
18438
18519
|
|
|
18439
18520
|
var leftAnimationPosition = leftMarkerPx + DRAG_AREA_WIDTH * 2;
|
|
18440
|
-
|
|
18521
|
+
|
|
18522
|
+
if (leftAnimationPosition >= _mousePosition || _mousePosition >= canvasWidth) {
|
|
18523
|
+
return;
|
|
18524
|
+
} // eslint-disable-next-line no-param-reassign
|
|
18525
|
+
|
|
18441
18526
|
|
|
18442
18527
|
dragTooltipPosition.current = pixelsToLeft ? _mousePosition + pixelsToLeft : _mousePosition;
|
|
18443
18528
|
|
|
@@ -18683,7 +18768,9 @@ var TimeSliderLegend = function TimeSliderLegend(_ref) {
|
|
|
18683
18768
|
isClickOrDrag.current = 'drag';
|
|
18684
18769
|
}
|
|
18685
18770
|
|
|
18686
|
-
if (selectedTimeDragging || leftMarkerDragging || rightMarkerDragging)
|
|
18771
|
+
if (selectedTimeDragging || leftMarkerDragging || rightMarkerDragging) {
|
|
18772
|
+
return;
|
|
18773
|
+
}
|
|
18687
18774
|
|
|
18688
18775
|
var _map5 = [localAnimationStartTime, localAnimationEndTime, selectedTime].map(function (timestamp) {
|
|
18689
18776
|
return timestampToPixel(timestamp, centerTime, width, secondsPerPx);
|
|
@@ -19776,10 +19863,12 @@ var TimeSliderCurrentTimeBoxConnectComponent = function TimeSliderCurrentTimeBox
|
|
|
19776
19863
|
isAutoUpdating: isAutoUpdating,
|
|
19777
19864
|
unfilteredSelectedTime: unfilteredSelectedTime || selectedTime,
|
|
19778
19865
|
setUnfilteredSelectedTime: function setUnfilteredSelectedTime(timeSliderUnfilteredSelectedTime) {
|
|
19779
|
-
if (setTimeSliderUnfilteredSelectedTime)
|
|
19780
|
-
|
|
19781
|
-
|
|
19782
|
-
|
|
19866
|
+
if (setTimeSliderUnfilteredSelectedTime) {
|
|
19867
|
+
setTimeSliderUnfilteredSelectedTime({
|
|
19868
|
+
timeSliderUnfilteredSelectedTime: timeSliderUnfilteredSelectedTime,
|
|
19869
|
+
mapId: mapId
|
|
19870
|
+
});
|
|
19871
|
+
}
|
|
19783
19872
|
},
|
|
19784
19873
|
onSetNewDate: function onSetNewDate(newDate) {
|
|
19785
19874
|
if (isAnimating) {
|
|
@@ -20388,7 +20477,7 @@ var getCurrentDimensionValue = function getCurrentDimensionValue() {
|
|
|
20388
20477
|
var setServiceMetadata = function setServiceMetadata(wmLayer, mapId, mapProperties, onUpdateLayerInformation) {
|
|
20389
20478
|
var origin = LayerActionOrigin.ReactMapViewParseLayer;
|
|
20390
20479
|
var service = WMGetServiceFromStore(wmLayer.service);
|
|
20391
|
-
var serviceName = mapProperties.services[service.id].name;
|
|
20480
|
+
var serviceName = mapProperties.services && mapProperties.services[service.id] && mapProperties.services[service.id].name || service.id;
|
|
20392
20481
|
var webMapJSInstance = getWMJSMapById(mapId);
|
|
20393
20482
|
/* Update list of layers for service */
|
|
20394
20483
|
|
|
@@ -21529,12 +21618,19 @@ var AdagucMapDraw = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21529
21618
|
if (this.myDrawMode === DRAWMODE.POINT || this.myDrawMode === DRAWMODE.MULTIPOINT) {
|
|
21530
21619
|
/* Create points */
|
|
21531
21620
|
var pointGeometry = feature.geometry;
|
|
21532
|
-
|
|
21533
|
-
|
|
21621
|
+
|
|
21622
|
+
if (pointGeometry) {
|
|
21623
|
+
if (pointGeometry.coordinates === undefined) {
|
|
21624
|
+
pointGeometry.coordinates = [];
|
|
21625
|
+
}
|
|
21534
21626
|
}
|
|
21627
|
+
|
|
21535
21628
|
var multiPointGeometry = feature.geometry;
|
|
21536
|
-
|
|
21537
|
-
|
|
21629
|
+
|
|
21630
|
+
if (multiPointGeometry) {
|
|
21631
|
+
if (multiPointGeometry.coordinates === undefined) {
|
|
21632
|
+
multiPointGeometry.coordinates = [[]];
|
|
21633
|
+
}
|
|
21538
21634
|
}
|
|
21539
21635
|
|
|
21540
21636
|
if (this.myDrawMode === DRAWMODE.POINT) {
|
|
@@ -21575,8 +21671,11 @@ var AdagucMapDraw = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21575
21671
|
if (this.myDrawMode === DRAWMODE.POLYGON || this.myDrawMode === DRAWMODE.BOX) {
|
|
21576
21672
|
/* Create poly's and boxes */
|
|
21577
21673
|
this.myEditMode = EDITMODE.ADD_FEATURE;
|
|
21578
|
-
|
|
21579
|
-
|
|
21674
|
+
|
|
21675
|
+
if (feature.geometry) {
|
|
21676
|
+
if (feature.geometry.coordinates === undefined) {
|
|
21677
|
+
feature.geometry.coordinates = [[]];
|
|
21678
|
+
}
|
|
21580
21679
|
}
|
|
21581
21680
|
|
|
21582
21681
|
if (feature.geometry.coordinates[0] === undefined || feature.geometry.coordinates[0].length === 0) {
|
|
@@ -21997,7 +22096,9 @@ var AdagucMapDraw = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21997
22096
|
}, {
|
|
21998
22097
|
key: "validatePolys",
|
|
21999
22098
|
value: function validatePolys(fixPolys) {
|
|
22000
|
-
if (!this.geojson || !this.geojson.features || !this.geojson.features.length)
|
|
22099
|
+
if (!this.geojson || !this.geojson.features || !this.geojson.features.length) {
|
|
22100
|
+
return;
|
|
22101
|
+
}
|
|
22001
22102
|
|
|
22002
22103
|
for (var featureIndex = 0; featureIndex < this.geojson.features.length; featureIndex += 1) {
|
|
22003
22104
|
if (!this.geojson.features) this.geojson.features = [];
|
|
@@ -22082,7 +22183,11 @@ var AdagucMapDraw = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22082
22183
|
var _this$props12 = this.props,
|
|
22083
22184
|
featureNrToEdit = _this$props12.featureNrToEdit,
|
|
22084
22185
|
isInEditMode = _this$props12.isInEditMode;
|
|
22085
|
-
|
|
22186
|
+
|
|
22187
|
+
if (!this.geojson || !this.geojson.features || !this.geojson.features.length) {
|
|
22188
|
+
return;
|
|
22189
|
+
}
|
|
22190
|
+
|
|
22086
22191
|
this.textPositions = [];
|
|
22087
22192
|
this.mouseOverPolygonCoordinates = [];
|
|
22088
22193
|
this.mouseOverPolygonFeatureIndex = -1;
|
|
@@ -22644,7 +22749,11 @@ var AdagucMapDraw = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22644
22749
|
featureNrToEdit = _this$props14.featureNrToEdit;
|
|
22645
22750
|
var feature = this.geojson.features[featureIndex];
|
|
22646
22751
|
if (!feature || !feature.geometry) return;
|
|
22647
|
-
|
|
22752
|
+
|
|
22753
|
+
if (feature.geometry.type !== 'Polygon' && feature.geometry.type !== 'MultiPolygon') {
|
|
22754
|
+
return;
|
|
22755
|
+
}
|
|
22756
|
+
|
|
22648
22757
|
var polyProps = feature.properties;
|
|
22649
22758
|
if (!polyProps) polyProps = this.defaultPolyProps;
|
|
22650
22759
|
/* Draw polygons and calculate center of poly */
|
|
@@ -22756,7 +22865,10 @@ var AdagucMapDraw = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22756
22865
|
} else {
|
|
22757
22866
|
this.validateFeature(feature); // eslint-disable-next-line no-underscore-dangle
|
|
22758
22867
|
|
|
22759
|
-
if (feature.properties._adaguctype)
|
|
22868
|
+
if (feature.properties._adaguctype) {
|
|
22869
|
+
delete feature.properties._adaguctype;
|
|
22870
|
+
} // eslint-disable-next-line default-case
|
|
22871
|
+
|
|
22760
22872
|
|
|
22761
22873
|
switch (type) {
|
|
22762
22874
|
case DRAWMODE.POINT:
|
|
@@ -22765,8 +22877,12 @@ var AdagucMapDraw = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22765
22877
|
|
|
22766
22878
|
case DRAWMODE.MULTIPOINT:
|
|
22767
22879
|
feature.geometry.type = 'MultiPoint';
|
|
22768
|
-
|
|
22880
|
+
|
|
22881
|
+
if (feature.geometry.coordinates.length === 0) {
|
|
22882
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22769
22883
|
feature.geometry.coordinates.push([]);
|
|
22884
|
+
}
|
|
22885
|
+
|
|
22770
22886
|
break;
|
|
22771
22887
|
|
|
22772
22888
|
case DRAWMODE.BOX:
|
|
@@ -22777,14 +22893,22 @@ var AdagucMapDraw = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22777
22893
|
|
|
22778
22894
|
case DRAWMODE.POLYGON:
|
|
22779
22895
|
feature.geometry.type = 'Polygon';
|
|
22780
|
-
|
|
22896
|
+
|
|
22897
|
+
if (feature.geometry.coordinates.length === 0) {
|
|
22898
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22781
22899
|
feature.geometry.coordinates.push([]);
|
|
22900
|
+
}
|
|
22901
|
+
|
|
22782
22902
|
break;
|
|
22783
22903
|
|
|
22784
22904
|
case DRAWMODE.LINESTRING:
|
|
22785
22905
|
feature.geometry.type = 'LineString';
|
|
22786
|
-
|
|
22906
|
+
|
|
22907
|
+
if (feature.geometry.coordinates.length === 0) {
|
|
22908
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22787
22909
|
feature.geometry.coordinates.push([]);
|
|
22910
|
+
}
|
|
22911
|
+
|
|
22788
22912
|
break;
|
|
22789
22913
|
}
|
|
22790
22914
|
}
|
|
@@ -22795,7 +22919,10 @@ var AdagucMapDraw = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22795
22919
|
}, {
|
|
22796
22920
|
key: "checkIfFeatureIsBox",
|
|
22797
22921
|
value: function checkIfFeatureIsBox(feature) {
|
|
22798
|
-
if (!feature || !feature.properties || !feature.properties._adaguctype)
|
|
22922
|
+
if (!feature || !feature.properties || !feature.properties._adaguctype) {
|
|
22923
|
+
return false;
|
|
22924
|
+
}
|
|
22925
|
+
|
|
22799
22926
|
return feature.properties._adaguctype === 'box';
|
|
22800
22927
|
}
|
|
22801
22928
|
}, {
|
|
@@ -22988,24 +23115,31 @@ var getWMJSLayerFromReactLayer = function getWMJSLayerFromReactLayer(mapId, wmLa
|
|
|
22988
23115
|
var wmjsMap = getWMJSMapById(mapId);
|
|
22989
23116
|
/* Some safety checks */
|
|
22990
23117
|
|
|
22991
|
-
if (!wmjsMap || !wmLayers || !reactLayerId || !layerName)
|
|
22992
|
-
|
|
22993
|
-
|
|
22994
|
-
|
|
23118
|
+
if (!wmjsMap || !wmLayers || !reactLayerId || !layerName) {
|
|
23119
|
+
return {
|
|
23120
|
+
layer: null,
|
|
23121
|
+
layerArrayMutated: false
|
|
23122
|
+
};
|
|
23123
|
+
}
|
|
22995
23124
|
/* Find the wmlayer by its react layer id */
|
|
22996
23125
|
|
|
23126
|
+
|
|
22997
23127
|
var matchingLayerIndex = wmLayers.findIndex(function (wmLayer) {
|
|
22998
23128
|
return wmLayer.id === reactLayerId;
|
|
22999
23129
|
});
|
|
23000
|
-
|
|
23001
|
-
|
|
23002
|
-
|
|
23003
|
-
|
|
23130
|
+
|
|
23131
|
+
if (matchingLayerIndex === -1) {
|
|
23132
|
+
return {
|
|
23133
|
+
layer: null,
|
|
23134
|
+
layerArrayMutated: false
|
|
23135
|
+
};
|
|
23136
|
+
}
|
|
23004
23137
|
/*
|
|
23005
23138
|
The layer order in the react children array index is
|
|
23006
23139
|
reversed compared to the layer order in the wmLayer array index
|
|
23007
23140
|
*/
|
|
23008
23141
|
|
|
23142
|
+
|
|
23009
23143
|
var reactLayerIndex = wmLayers.length - 1 - wmLayerIndex;
|
|
23010
23144
|
var isMapLayer = isAMapLayer(reactWebMapJSLayer.props);
|
|
23011
23145
|
var mapLayerArrayShouldBeMutated = isMapLayer && matchingLayerIndex !== reactLayerIndex;
|
|
@@ -23095,7 +23229,14 @@ var ReactMapView = /*#__PURE__*/function (_React$Component) {
|
|
|
23095
23229
|
var _this$props = _this.props,
|
|
23096
23230
|
onUpdateLayerInformation = _this$props.onUpdateLayerInformation,
|
|
23097
23231
|
mapId = _this$props.mapId;
|
|
23098
|
-
|
|
23232
|
+
|
|
23233
|
+
try {
|
|
23234
|
+
setServiceMetadata(wmLayer, mapId, _this.props, onUpdateLayerInformation);
|
|
23235
|
+
} catch (e) {
|
|
23236
|
+
/* Provide a hint on what is going wrong */
|
|
23237
|
+
console.error(e);
|
|
23238
|
+
}
|
|
23239
|
+
|
|
23099
23240
|
var wmjsMap = getWMJSMapById(mapId);
|
|
23100
23241
|
|
|
23101
23242
|
if (child) {
|
|
@@ -23271,7 +23412,7 @@ var ReactMapView = /*#__PURE__*/function (_React$Component) {
|
|
|
23271
23412
|
var propDimension = props.dimensions[d];
|
|
23272
23413
|
var mapDim = wmjsMap.getDimension(propDimension.name);
|
|
23273
23414
|
|
|
23274
|
-
if (mapDim && mapDim.currentValue !== propDimension.currentValue) {
|
|
23415
|
+
if (mapDim && mapDim.currentValue !== propDimension.currentValue || !mapDim) {
|
|
23275
23416
|
wmjsMap.setDimension(propDimension.name, propDimension.currentValue, false, false);
|
|
23276
23417
|
}
|
|
23277
23418
|
|
|
@@ -24272,7 +24413,7 @@ var MapViewConnect = function MapViewConnect(_a) {
|
|
|
24272
24413
|
var wmjsMap = getWMJSMapById(mapId);
|
|
24273
24414
|
/* Check if the map not already has this value set, otherwise this component will re-render */
|
|
24274
24415
|
|
|
24275
|
-
if (wmjsMap.getDimension('time').currentValue === setTimePayload.value) {
|
|
24416
|
+
if (wmjsMap && wmjsMap.getDimension('time') && wmjsMap.getDimension('time').currentValue === setTimePayload.value) {
|
|
24276
24417
|
return;
|
|
24277
24418
|
}
|
|
24278
24419
|
|
|
@@ -25451,6 +25592,7 @@ var ConfigurableMapConnect = function ConfigurableMapConnect(_a) {
|
|
|
25451
25592
|
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
25452
25593
|
|
|
25453
25594
|
}, []);
|
|
25595
|
+
var mapControlsPositionTop = title ? 24 : 8;
|
|
25454
25596
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
25455
25597
|
sx: {
|
|
25456
25598
|
width: '100%',
|
|
@@ -25459,13 +25601,13 @@ var ConfigurableMapConnect = function ConfigurableMapConnect(_a) {
|
|
|
25459
25601
|
overflow: 'hidden'
|
|
25460
25602
|
},
|
|
25461
25603
|
"data-testid": "ConfigurableMap"
|
|
25462
|
-
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
25604
|
+
}, title && /*#__PURE__*/React__default.createElement(Typography, {
|
|
25463
25605
|
"data-testid": "mapTitle",
|
|
25464
25606
|
sx: titleStyle
|
|
25465
|
-
}, title
|
|
25607
|
+
}, title), /*#__PURE__*/React__default.createElement(MapControls, {
|
|
25466
25608
|
"data-testid": "mapControls",
|
|
25467
25609
|
style: {
|
|
25468
|
-
top:
|
|
25610
|
+
top: mapControlsPositionTop
|
|
25469
25611
|
}
|
|
25470
25612
|
}, /*#__PURE__*/React__default.createElement(ZoomControlConnect, {
|
|
25471
25613
|
mapId: id
|
|
@@ -25599,7 +25741,7 @@ var MultiMapViewConnect = function MultiMapViewConnect(_ref) {
|
|
|
25599
25741
|
style: mapStyle,
|
|
25600
25742
|
sx: mapBoxStyle
|
|
25601
25743
|
}, /*#__PURE__*/React__default.createElement(ConfigurableMapConnect, {
|
|
25602
|
-
title: map.title,
|
|
25744
|
+
title: map.title || mapId,
|
|
25603
25745
|
id: mapId,
|
|
25604
25746
|
layers: map.layers || [],
|
|
25605
25747
|
activeLayerId: map.activeLayerId || undefined,
|
|
@@ -26516,6 +26658,130 @@ var CoreThemeStoreProvider = function CoreThemeStoreProvider(_ref3) {
|
|
|
26516
26658
|
}, /*#__PURE__*/React__default.createElement(SnackbarWrapperConnect, null, children)));
|
|
26517
26659
|
};
|
|
26518
26660
|
|
|
26661
|
+
/* *
|
|
26662
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
26663
|
+
* you may not use this file except in compliance with the License.
|
|
26664
|
+
* You may obtain a copy of the License at
|
|
26665
|
+
*
|
|
26666
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
26667
|
+
*
|
|
26668
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
26669
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
26670
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
26671
|
+
* See the License for the specific language governing permissions and
|
|
26672
|
+
* limitations under the License.
|
|
26673
|
+
*
|
|
26674
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
26675
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
26676
|
+
* */
|
|
26677
|
+
// stores navigate hook method to object, so it can be used outside components
|
|
26678
|
+
var historyDict = {
|
|
26679
|
+
navigate: null
|
|
26680
|
+
};
|
|
26681
|
+
|
|
26682
|
+
var _marked = /*#__PURE__*/regeneratorRuntime.mark(navigateToUrlSaga),
|
|
26683
|
+
_marked2 = /*#__PURE__*/regeneratorRuntime.mark(rootSaga);
|
|
26684
|
+
function navigateToUrlSaga(action) {
|
|
26685
|
+
var payload;
|
|
26686
|
+
return regeneratorRuntime.wrap(function navigateToUrlSaga$(_context) {
|
|
26687
|
+
while (1) {
|
|
26688
|
+
switch (_context.prev = _context.next) {
|
|
26689
|
+
case 0:
|
|
26690
|
+
payload = action.payload;
|
|
26691
|
+
_context.next = 3;
|
|
26692
|
+
return call(historyDict.navigate, payload.url);
|
|
26693
|
+
|
|
26694
|
+
case 3:
|
|
26695
|
+
case "end":
|
|
26696
|
+
return _context.stop();
|
|
26697
|
+
}
|
|
26698
|
+
}
|
|
26699
|
+
}, _marked);
|
|
26700
|
+
}
|
|
26701
|
+
function rootSaga() {
|
|
26702
|
+
return regeneratorRuntime.wrap(function rootSaga$(_context2) {
|
|
26703
|
+
while (1) {
|
|
26704
|
+
switch (_context2.prev = _context2.next) {
|
|
26705
|
+
case 0:
|
|
26706
|
+
_context2.next = 2;
|
|
26707
|
+
return takeLatest(routerActions.navigateToUrl.type, navigateToUrlSaga);
|
|
26708
|
+
|
|
26709
|
+
case 2:
|
|
26710
|
+
case "end":
|
|
26711
|
+
return _context2.stop();
|
|
26712
|
+
}
|
|
26713
|
+
}
|
|
26714
|
+
}, _marked2);
|
|
26715
|
+
}
|
|
26716
|
+
|
|
26717
|
+
/* *
|
|
26718
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
26719
|
+
* you may not use this file except in compliance with the License.
|
|
26720
|
+
* You may obtain a copy of the License at
|
|
26721
|
+
*
|
|
26722
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
26723
|
+
*
|
|
26724
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
26725
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
26726
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
26727
|
+
* See the License for the specific language governing permissions and
|
|
26728
|
+
* limitations under the License.
|
|
26729
|
+
*
|
|
26730
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
26731
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
26732
|
+
* */
|
|
26733
|
+
var routerModuleConfig = {
|
|
26734
|
+
id: 'router',
|
|
26735
|
+
reducersMap: {
|
|
26736
|
+
router: reducer$1
|
|
26737
|
+
},
|
|
26738
|
+
sagas: [rootSaga]
|
|
26739
|
+
};
|
|
26740
|
+
|
|
26741
|
+
/* *
|
|
26742
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
26743
|
+
* you may not use this file except in compliance with the License.
|
|
26744
|
+
* You may obtain a copy of the License at
|
|
26745
|
+
*
|
|
26746
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
26747
|
+
*
|
|
26748
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
26749
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
26750
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
26751
|
+
* See the License for the specific language governing permissions and
|
|
26752
|
+
* limitations under the License.
|
|
26753
|
+
*
|
|
26754
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
26755
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
26756
|
+
* */
|
|
26757
|
+
var NavigateSetter = function NavigateSetter() {
|
|
26758
|
+
// stores navigate hook method to historyDict, so it can be used outside components
|
|
26759
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
26760
|
+
// @ts-ignore
|
|
26761
|
+
historyDict.navigate = useNavigate();
|
|
26762
|
+
return null;
|
|
26763
|
+
};
|
|
26764
|
+
|
|
26765
|
+
/* *
|
|
26766
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
26767
|
+
* you may not use this file except in compliance with the License.
|
|
26768
|
+
* You may obtain a copy of the License at
|
|
26769
|
+
*
|
|
26770
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
26771
|
+
*
|
|
26772
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
26773
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
26774
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
26775
|
+
* See the License for the specific language governing permissions and
|
|
26776
|
+
* limitations under the License.
|
|
26777
|
+
*
|
|
26778
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
26779
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
26780
|
+
* */
|
|
26781
|
+
var RouterWrapperConnect = withEggs([routerModuleConfig])(function (props) {
|
|
26782
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(NavigateSetter, null), props.children);
|
|
26783
|
+
});
|
|
26784
|
+
|
|
26519
26785
|
/* *
|
|
26520
26786
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
26521
26787
|
* you may not use this file except in compliance with the License.
|
|
@@ -26643,4 +26909,4 @@ var MapWarningProperties = function MapWarningProperties(_ref) {
|
|
|
26643
26909
|
* */
|
|
26644
26910
|
var mapActions = Object.assign(Object.assign(Object.assign({}, layerActions), mapActions$1), serviceActions);
|
|
26645
26911
|
|
|
26646
|
-
export { AppWrapperConnect, ConfigurableMapConnect, CoreThemeProvider, CoreThemeStoreProvider, DockedLayerManagerConnect, HarmonieTempAndPrecipPreset, LayerManager, BaseLayerRow as LayerManagerBaseLayerRow, LayerManagerConnect, DescriptionRow as LayerManagerDescriptionRow, HeaderOptions as LayerManagerHeaderOptions, LayerContainerRow as LayerManagerLayerContainerRow, LayerManagerMapButtonConnect, LayerSelectConnect, Legend, LegendConnect, LegendMapButtonConnect, MapControls, MapView, MapViewConnect, MapViewLayer, MapWarningProperties, MultiDimensionSelectMapButtonsConnect, MultiMapMultiDimensionSelectConnect as MultiMapDimensionSelectConnect, MultiMapViewConnect, ReactMapView, ReactMapViewLayer, SnackbarWrapperConnect, SyncGroupViewerConnect, index as SyncGroups, TimeSlider, BackwardForwardStepButtonConnect as TimeSliderBackwardForwardStepButtonConnect, TimeSliderButtonsConnect, TimeSliderConnect, OptionsMenuButtonConnect as TimeSliderOptionsMenuButtonConnect, PlayButtonConnect as TimeSliderPlayButtonConnect, ZoomControlConnect, ZoomControls, appActions, componentsLookUp, coreModuleConfig, dateFormat, defaultBbox, defaultConfigurations, filterLayers, filterMapPresets, filterNonTimeDimensions, filterServices, generateLayerId, generateMapId, generateTimesliderId, getDrawFunctionFromStore, getFirstTimeStepForLayerId, getInitialAppPresets, getLastTimeStepForLayerId, getNextTimeStepForLayerId, getPreviousTimeStepForLayerId, getWMJSDimensionForLayerAndDimension, getWMJSMapById, getWMJSTimeDimensionForLayerId, getWMLayerById, layerActions, reducer$
|
|
26912
|
+
export { AppWrapperConnect, ConfigurableMapConnect, CoreThemeProvider, CoreThemeStoreProvider, DockedLayerManagerConnect, HarmonieTempAndPrecipPreset, LayerManager, BaseLayerRow as LayerManagerBaseLayerRow, LayerManagerConnect, DescriptionRow as LayerManagerDescriptionRow, HeaderOptions as LayerManagerHeaderOptions, LayerContainerRow as LayerManagerLayerContainerRow, LayerManagerMapButtonConnect, LayerSelectConnect, Legend, LegendConnect, LegendMapButtonConnect, MapControls, MapView, MapViewConnect, MapViewLayer, MapWarningProperties, MultiDimensionSelectMapButtonsConnect, MultiMapMultiDimensionSelectConnect as MultiMapDimensionSelectConnect, MultiMapViewConnect, ReactMapView, ReactMapViewLayer, RouterWrapperConnect, SnackbarWrapperConnect, SyncGroupViewerConnect, index as SyncGroups, TimeSlider, BackwardForwardStepButtonConnect as TimeSliderBackwardForwardStepButtonConnect, TimeSliderButtonsConnect, TimeSliderConnect, OptionsMenuButtonConnect as TimeSliderOptionsMenuButtonConnect, PlayButtonConnect as TimeSliderPlayButtonConnect, ZoomControlConnect, ZoomControls, appActions, componentsLookUp, coreModuleConfig, dateFormat, defaultBbox, defaultConfigurations, filterLayers, filterMapPresets, filterNonTimeDimensions, filterServices, generateLayerId, generateMapId, generateTimesliderId, getDrawFunctionFromStore, getFirstTimeStepForLayerId, getInitialAppPresets, getLastTimeStepForLayerId, getNextTimeStepForLayerId, getPreviousTimeStepForLayerId, getWMJSDimensionForLayerAndDimension, getWMJSMapById, getWMJSTimeDimensionForLayerId, getWMLayerById, layerActions, reducer$8 as layerReducer, selectors$2 as layerSelectors, types$3 as layerTypes, mapActions, moduleConfig as mapModuleConfig, selectors as mapSelectors, types$2 as mapTypes, utils as mapUtils, parseBoolean, parseLayer, publicLayers, publicServices, registerDrawFunction, registerWMJSMap, registerWMLayer, routerActions, snackbarActions, store, genericActions as syncGroupActions, synchronizationGroupConfig as synchronizationGroupModuleConfig, synchronizationGroupConfig as synchronizationGroupsConfig, testLayers, timeSliderUtils, uiActions, uiModuleConfig, selectors$1 as uiSelectors, types as uiTypes, unRegisterWMJSLayer, unRegisterWMJSMap, useSetupDialog };
|