@opengeoweb/core 14.5.2 → 15.1.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 +108 -225
- package/package.json +10 -11
- package/src/lib/components/ClockConnect/ClockConnect.d.ts +4 -0
- package/src/lib/components/ClockConnect/index.d.ts +1 -0
- package/src/lib/components/ComponentsLookUp/componentsLookUp.d.ts +8 -2
- package/src/lib/components/ConfigurableMapConnect/ConfigurableMapConnect.d.ts +1 -1
- package/src/lib/components/MapViewConnect/MapViewConnect.DisplayClock.stories.d.ts +8 -0
- package/src/lib/components/MapViewConnect/MapViewConnect.ZoomToLayer.stories.d.ts +8 -0
- package/src/lib/components/MapViewConnect/olMapUtils.d.ts +2 -2
- package/src/lib/components/MultiMapViewConnect/MultiMapViewConnect.d.ts +1 -1
- package/src/lib/index.d.ts +0 -1
- package/src/lib/components/SentryRecordButton/SentryRecordButton.d.ts +0 -3
- package/src/lib/components/SentryRecordButton/index.d.ts +0 -1
- package/src/lib/components/TimeSliderClockConnect/TimeSliderClockConnect.d.ts +0 -4
- package/src/lib/components/TimeSliderClockConnect/TimeSliderClockConnect.spec.d.ts +0 -1
- package/src/lib/components/TimeSliderClockConnect/index.d.ts +0 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/ControlButtonsConnect.d.ts +0 -5
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/ControlButtonsConnect.spec.d.ts +0 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/OptionsMenuConnect.d.ts +0 -4
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/OptionsMenuConnect.spec.d.ts +0 -1
- /package/src/lib/components/{SentryRecordButton/SentryRecordButton.spec.d.ts → ClockConnect/ClockConnect.spec.d.ts} +0 -0
package/index.esm.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { Grid, InputLabel, Paper, Box, Typography, CircularProgress, List, ListSubheader, ListItemButton, ListItemText, DialogContentText, TextField, InputAdornment, Button, FormControl, MenuItem, useTheme, Tooltip, ListItem, ListItemIcon, Checkbox, Popper, Fade, styled, LinearProgress, Autocomplete, Switch, Select } from '@mui/material';
|
|
3
3
|
import React, { useMemo, useState, useCallback, useEffect, useContext } from 'react';
|
|
4
|
-
import { safelyInitI18nForTestsAndStories, sharedTranslations, SHARED_NAMESPACE, CustomIconButton, CustomDialog, TooltipSelect, CustomTooltip, ToggleMenu, AlertIcon, useConfirmationDialog, useScrollingInIsolation, sliderHeaderStyle, CustomSlider, tooltipContainerStyles, renderCounter, AlertBanner, CustomAccordion, PROJECTION, calculateStartSize, useWheelStopPropagation, ToolContainerDraggable, sessionStorageProvider, useDebounce, usePrevious, dateUtils
|
|
5
|
-
import { queryWMSLayersTree, invalidateWMSGetCapabilities, LayerType, webmapUtils, queryWMSServiceInfo, queryWMSLayers, getWMSServiceId, generateLayerId, WMJSDimension,
|
|
4
|
+
import { safelyInitI18nForTestsAndStories, sharedTranslations, SHARED_NAMESPACE, CustomIconButton, CustomDialog, TooltipSelect, CustomTooltip, ToggleMenu, AlertIcon, useConfirmationDialog, useScrollingInIsolation, sliderHeaderStyle, CustomSlider, tooltipContainerStyles, renderCounter, AlertBanner, CustomAccordion, PROJECTION, calculateStartSize, useWheelStopPropagation, ToolContainerDraggable, sessionStorageProvider, useDebounce, usePrevious, dateUtils } from '@opengeoweb/shared';
|
|
5
|
+
import { queryWMSLayersTree, invalidateWMSGetCapabilities, LayerType, webmapUtils, queryWMSServiceInfo, queryWMSLayers, getWMSServiceId, generateLayerId, WMJSDimension, getWMLayerById, getMapDimURL, handleDateUtilsISOString, WMLayer } from '@opengeoweb/webmap';
|
|
6
6
|
import { filterLayers, mapSelectors, layerActions, layerTypes, layerSelectors, mapActions, mapEnums, loadingIndicatorSelectors, layerUtils, serviceSelectors, serviceActions, uiSelectors, uiTypes, useSetupDialog, getUserAddedServices, uiActions, drawingToolSelectors, syncGroupsSelectors, syncConstants, getViewObjectForSyncGroup, getViewObjectForMapId, loadingIndicatorActions, genericSelectors, genericActions, defaultLayers, getSingularDrawtoolDrawLayerId, syncGroupsSelector, syncGroupsActions, routerUtils, mapUtils } from '@opengeoweb/store';
|
|
7
7
|
import { connect, useDispatch, useSelector, useStore, Provider } from 'react-redux';
|
|
8
8
|
import _, { isEqual, isArray, range, zip, throttle } from 'lodash';
|
|
9
9
|
import { Cached, Add, MapAdd, CollapseSmall, CollapseMedium, CollapseLarge, CollapseWindow, ExpandWindow, LayersAdd, CloudLoading, ColumnCollapsed, ColumnCollapse, DragHandle as DragHandle$1, None, FastForward, AutoUpdateActive, Both, Delete, Visibility, VisibilityOff, Copy, Overlayers, WorldMapProjection, Layers, Search, Exclamation, MyLocation, Airplane, Region, Pinned, Close, ExitDomain, LocationInfo, Measure, Options, Info, ThemeWrapper, lightTheme, FlagBritain, FlagNetherlands, FlagFinland, FlagNorway } from '@opengeoweb/theme';
|
|
10
10
|
import i18n from 'i18next';
|
|
11
11
|
import { useTranslation, I18nextProvider } from 'react-i18next';
|
|
12
|
-
import { TIME_SLIDER_NAMESPACE, timesliderTranslations, defaultTimeSpan, AutoUpdateButton, BackwardForwardStepButton, NowButton, handleSetNowEvent,
|
|
13
|
-
import { webmapReactTranslations, WEBMAP_REACT_NAMESPACE, webmapTranslations, WEBMAP_NAMESPACE, openLayersGetMapImageStore, LayerInfoButton, useEDRGetCollectionDetails, defaultEdrStyles, LayerInfoDialog, MapControlButton, MapDimensionSelect, dimensionConfig, DimensionSelectDialog, DimensionSelectButton, LegendDialog, LegendButton, MapContext, emptyGeoJSON, MapFeatureClass, setMapCenter, OpenLayersFeatureLayer, OpenLayersMapDraw, makeTimeList, useGetWMLayerInstance, getIsInsideAcceptanceTime, OpenLayersLayer, MapMeasure, useSetIntervalWhenVisible, TimeContext, OpenLayersMapView, WMSLayer, genericOpenLayersFeatureStyle, OpenLayersGetFeatureInfo, MapControls, OpenLayersZoomControl, getLayerUpdateInfo, publicLayers } from '@opengeoweb/webmap-react';
|
|
12
|
+
import { TIME_SLIDER_NAMESPACE, timesliderTranslations, defaultTimeSpan, AutoUpdateButton, BackwardForwardStepButton, NowButton, handleSetNowEvent, AnimationLengthButton, AnimationLength, SpeedButton, TimeSpanButton, secondsPerPxFromCanvasWidth, getNewCenterOfFixedPointZoom, TimeStepButton, OptionsMenuButton, PlayButton, defaultTimeStep, TimeSliderButtons, TimeSliderCurrentTimeBox, TimeSliderLegend, onsetNewDateDebounced, defaultSecondsPerPx, moveSelectedTimePx, TimeSlider, getFilteredTime } from '@opengeoweb/time-slider';
|
|
13
|
+
import { webmapReactTranslations, WEBMAP_REACT_NAMESPACE, webmapTranslations, WEBMAP_NAMESPACE, openLayersGetMapImageStore, LayerInfoButton, useEDRGetCollectionDetails, defaultEdrStyles, LayerInfoDialog, MapControlButton, MapDimensionSelect, dimensionConfig, DimensionSelectDialog, DimensionSelectButton, Clock, LegendDialog, LegendButton, MapContext, emptyGeoJSON, MapFeatureClass, setMapCenter, OpenLayersFeatureLayer, OpenLayersMapDraw, makeTimeList, useGetWMLayerInstance, getIsInsideAcceptanceTime, OpenLayersLayer, MapMeasure, useSetIntervalWhenVisible, TimeContext, OpenLayersMapView, WMSLayer, genericOpenLayersFeatureStyle, OpenLayersGetFeatureInfo, MapControls, OpenLayersZoomControl, getLayerUpdateInfo, publicLayers } from '@opengeoweb/webmap-react';
|
|
14
14
|
import { ReactSortable } from 'react-sortablejs';
|
|
15
15
|
import Sortable from 'sortablejs';
|
|
16
|
-
import { Box as Box$1, Stack
|
|
16
|
+
import { Box as Box$1, Stack } from '@mui/system';
|
|
17
17
|
import { LayerSelectButtonConnect, LayerSelectConnect, DataExplorerButtonConnect } from '@opengeoweb/layer-select';
|
|
18
18
|
import { unByKey } from 'ol/Observable';
|
|
19
19
|
import { useQuery, QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
@@ -28,7 +28,6 @@ import { ImageWMS } from 'ol/source';
|
|
|
28
28
|
import DOMPurify from 'dompurify';
|
|
29
29
|
import { snackbarTypes, snackbarActions, SnackbarWrapperConnect } from '@opengeoweb/snackbar';
|
|
30
30
|
import { useNavigate } from 'react-router-dom';
|
|
31
|
-
import { getReplay } from '@sentry/react';
|
|
32
31
|
import { http, HttpResponse, passthrough } from 'msw';
|
|
33
32
|
import Button$1 from '@mui/material/Button';
|
|
34
33
|
import ButtonGroup from '@mui/material/ButtonGroup';
|
|
@@ -104,8 +103,6 @@ var en = {
|
|
|
104
103
|
"syncgroups-add-group": "Add new group to list",
|
|
105
104
|
"syncgroups-remove-group": "Remove group from list",
|
|
106
105
|
"actions-close": "Close",
|
|
107
|
-
"sentry-start-recording": "Start Recording",
|
|
108
|
-
"sentry-stop-recording": "Stop Recording",
|
|
109
106
|
"layermanager-acceptance-time-within": "Layer: within the data acceptance window",
|
|
110
107
|
"layermanager-acceptance-time-outside": "Layer: out of date",
|
|
111
108
|
"layermanager-acceptance-time-updated": "Layer: updated",
|
|
@@ -198,8 +195,6 @@ var fi = {
|
|
|
198
195
|
"syncgroups-add-group": "Lisää uusi ryhmä listaan",
|
|
199
196
|
"syncgroups-remove-group": "Poista ryhmä listasta",
|
|
200
197
|
"actions-close": "Sulje",
|
|
201
|
-
"sentry-start-recording": "Aloita tallennus",
|
|
202
|
-
"sentry-stop-recording": "Pysäytä tallennus",
|
|
203
198
|
"layermanager-acceptance-time-within": "Karttataso: on tietojen hyväksymisrajojen sisäpuolella",
|
|
204
199
|
"layermanager-acceptance-time-outside": "Karttataso: on vanhentunut",
|
|
205
200
|
"layermanager-acceptance-time-updated": "Karttataso: on päivitetty",
|
|
@@ -285,8 +280,6 @@ var no = {
|
|
|
285
280
|
"syncgroups-add-group": "Legg til ny gruppe til listen",
|
|
286
281
|
"syncgroups-remove-group": "Fjern gruppen fra listen",
|
|
287
282
|
"actions-close": "Lukk",
|
|
288
|
-
"sentry-start-recording": "Start opptak",
|
|
289
|
-
"sentry-stop-recording": "Stopp opptak",
|
|
290
283
|
"layermanager-acceptance-time-within": "Lag: innenfor akseptabelt tidsvundu",
|
|
291
284
|
"layermanager-acceptance-time-outside": "Lag: utenfor akseptabelt tidsvundu",
|
|
292
285
|
"layermanager-acceptance-time-updated": "Lag: oppdatert",
|
|
@@ -372,8 +365,6 @@ var nl = {
|
|
|
372
365
|
"syncgroups-add-group": "Groep toevoegen",
|
|
373
366
|
"syncgroups-remove-group": "Groep verwijderen",
|
|
374
367
|
"actions-close": "Sluiten",
|
|
375
|
-
"sentry-start-recording": "Start opname",
|
|
376
|
-
"sentry-stop-recording": "Stop opname",
|
|
377
368
|
"layermanager-acceptance-time-within": "Laag: binnen de data acceptatie norm",
|
|
378
369
|
"layermanager-acceptance-time-outside": "Laag: verouderd",
|
|
379
370
|
"layermanager-acceptance-time-updated": "Laag: bijgewerkt",
|
|
@@ -4844,6 +4835,7 @@ var LayerInfoDialogConnect = function LayerInfoDialogConnect(_ref) {
|
|
|
4844
4835
|
onMouseDown: setDialogOrder,
|
|
4845
4836
|
order: dialogOrder,
|
|
4846
4837
|
serviceName: currentService == null ? void 0 : currentService.name,
|
|
4838
|
+
serviceUrl: currentService == null ? void 0 : currentService.serviceUrl,
|
|
4847
4839
|
source: source
|
|
4848
4840
|
});
|
|
4849
4841
|
};
|
|
@@ -4892,8 +4884,8 @@ var LayerRowConnect = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
4892
4884
|
isEnabled: isEnabled,
|
|
4893
4885
|
isLayerMissing: isLayerMissing,
|
|
4894
4886
|
layerAcceptanceTimeLayout: jsx(AcceptanceTimeConnect, Object.assign({
|
|
4895
|
-
mapId: mapId,
|
|
4896
4887
|
layerId: layerId,
|
|
4888
|
+
mapId: mapId,
|
|
4897
4889
|
skipLocalStyling: true
|
|
4898
4890
|
}, settings == null ? void 0 : settings.acceptanceTime)),
|
|
4899
4891
|
layerActiveLayout: settings != null && (_settings$activateLay2 = settings.activateLayer) != null && _settings$activateLay2.isDisabled ? undefined : jsx(ActivateLayerConnect, {
|
|
@@ -6085,6 +6077,29 @@ var MultiMapMultiDimensionSelectConnect = function MultiMapMultiDimensionSelectC
|
|
|
6085
6077
|
});
|
|
6086
6078
|
};
|
|
6087
6079
|
|
|
6080
|
+
var ClockConnect = function ClockConnect(_ref) {
|
|
6081
|
+
var mapId = _ref.mapId;
|
|
6082
|
+
var dispatch = useDispatch();
|
|
6083
|
+
var selectedTime = useSelector(function (store) {
|
|
6084
|
+
return mapSelectors.getSelectedTime(store, mapId);
|
|
6085
|
+
});
|
|
6086
|
+
var isMapClockVisible = useSelector(function (store) {
|
|
6087
|
+
return mapSelectors.getIsClockVisible(store, mapId);
|
|
6088
|
+
});
|
|
6089
|
+
var onToggleClock = function onToggleClock(isClockVisible) {
|
|
6090
|
+
dispatch(mapActions.toggleClock({
|
|
6091
|
+
mapId: mapId,
|
|
6092
|
+
isClockVisible: isClockVisible,
|
|
6093
|
+
origin: mapEnums.MapActionOrigin.map
|
|
6094
|
+
}));
|
|
6095
|
+
};
|
|
6096
|
+
return jsx(Clock, {
|
|
6097
|
+
isVisible: isMapClockVisible,
|
|
6098
|
+
onToggleClock: onToggleClock,
|
|
6099
|
+
time: selectedTime
|
|
6100
|
+
});
|
|
6101
|
+
};
|
|
6102
|
+
|
|
6088
6103
|
var _excluded$2 = ["showMapId"];
|
|
6089
6104
|
var LegendConnectComponent = function LegendConnectComponent(_ref) {
|
|
6090
6105
|
var _ref$showMapId = _ref.showMapId,
|
|
@@ -6348,14 +6363,8 @@ var useLocationList = function useLocationList(search) {
|
|
|
6348
6363
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6349
6364
|
while (1) switch (_context.prev = _context.next) {
|
|
6350
6365
|
case 0:
|
|
6351
|
-
if (!(search.length > 0)) {
|
|
6352
|
-
_context.next = 2;
|
|
6353
|
-
break;
|
|
6354
|
-
}
|
|
6355
6366
|
return _context.abrupt("return", getLocationList(search));
|
|
6356
|
-
case
|
|
6357
|
-
return _context.abrupt("return", []);
|
|
6358
|
-
case 3:
|
|
6367
|
+
case 1:
|
|
6359
6368
|
case "end":
|
|
6360
6369
|
return _context.stop();
|
|
6361
6370
|
}
|
|
@@ -7040,7 +7049,7 @@ var makePrefetchTimeSpan = function makePrefetchTimeSpan(timeSliderStartCenterEn
|
|
|
7040
7049
|
prefetchList: timeSpanList
|
|
7041
7050
|
};
|
|
7042
7051
|
};
|
|
7043
|
-
var usePrefetchTimeSpan = function usePrefetchTimeSpan(timeSliderStartCenterEndTime, isAnimating, animationList) {
|
|
7052
|
+
var usePrefetchTimeSpan = function usePrefetchTimeSpan(timeSliderStartCenterEndTime, isAnimating, animationList, refTimeDimensionModes) {
|
|
7044
7053
|
var _useState = useState({
|
|
7045
7054
|
isAnimating: isAnimating,
|
|
7046
7055
|
prefetchList: animationList || []
|
|
@@ -7058,17 +7067,21 @@ var usePrefetchTimeSpan = function usePrefetchTimeSpan(timeSliderStartCenterEndT
|
|
|
7058
7067
|
useEffect(function () {
|
|
7059
7068
|
return makeThrottledPrefetchTimespan(timeSliderStartCenterEndTime, isAnimating, animationList);
|
|
7060
7069
|
}, [animationList, isAnimating, makeThrottledPrefetchTimespan, timeSliderStartCenterEndTime]);
|
|
7061
|
-
return prefetchTimespan
|
|
7070
|
+
return Object.assign({}, prefetchTimespan, {
|
|
7071
|
+
refTimeDimensionModes: refTimeDimensionModes
|
|
7072
|
+
});
|
|
7062
7073
|
};
|
|
7063
7074
|
var makeLayerInfoPayload = function makeLayerInfoPayload(payload, mapDimensions, mapId) {
|
|
7064
7075
|
// During intialization, try to base the layer dimension on the current map dimension value.
|
|
7065
7076
|
var origin = 'onInitializeLayer in OlMapViewLayerConnect';
|
|
7066
7077
|
var dimensions = (payload.dimensions || []).map(function (layerDim) {
|
|
7067
|
-
var _find;
|
|
7078
|
+
var _find, _getWMLayerById;
|
|
7068
7079
|
var currentMapDim = ((_find = (mapDimensions || []).find(function (mapDim) {
|
|
7069
7080
|
return mapDim.name === layerDim.name;
|
|
7070
7081
|
})) == null ? void 0 : _find.currentValue) || layerDim.currentValue;
|
|
7071
|
-
var wmDim = new WMJSDimension(layerDim
|
|
7082
|
+
var wmDim = new WMJSDimension(Object.assign({}, layerDim, {
|
|
7083
|
+
refTimeDimensionMode: (_getWMLayerById = getWMLayerById(payload.layerId)) == null ? void 0 : _getWMLayerById.refTimeDimensionMode
|
|
7084
|
+
}));
|
|
7072
7085
|
return Object.assign({}, layerDim, {
|
|
7073
7086
|
currentValue: wmDim.getClosestValue(currentMapDim, true)
|
|
7074
7087
|
});
|
|
@@ -7819,7 +7832,8 @@ var OlMapViewConnect = function OlMapViewConnect(_ref) {
|
|
|
7819
7832
|
source = _ref.source,
|
|
7820
7833
|
tileServerSettings = _ref.tileServerSettings,
|
|
7821
7834
|
_ref$featureStyle = _ref.featureStyle,
|
|
7822
|
-
featureStyle = _ref$featureStyle === void 0 ? genericOpenLayersFeatureStyle : _ref$featureStyle
|
|
7835
|
+
featureStyle = _ref$featureStyle === void 0 ? genericOpenLayersFeatureStyle : _ref$featureStyle,
|
|
7836
|
+
displayTimeInMap = _ref.displayTimeInMap;
|
|
7823
7837
|
var store = useStore();
|
|
7824
7838
|
var _useGetOpenLayersView = useGetOpenLayersView(mapId, store),
|
|
7825
7839
|
view = _useGetOpenLayersView.view;
|
|
@@ -8055,7 +8069,10 @@ var OlMapViewConnect = function OlMapViewConnect(_ref) {
|
|
|
8055
8069
|
}
|
|
8056
8070
|
}));
|
|
8057
8071
|
}, [hoverId, previousHoverId, hoverLinkedFeature, featureProperties, linkedPanelId, dispatch]);
|
|
8058
|
-
var
|
|
8072
|
+
var refTimeDimensionModes = useSelector(function (store) {
|
|
8073
|
+
return mapSelectors.getRefTimeDimensionModes(store);
|
|
8074
|
+
});
|
|
8075
|
+
var prefetchTimespan = usePrefetchTimeSpan(timeSliderStartCenterEndTime, isAnimating, animationList, refTimeDimensionModes);
|
|
8059
8076
|
var layerIds = mapLayerIds.join();
|
|
8060
8077
|
var refetchLayers = React.useCallback(function () {
|
|
8061
8078
|
mapLayerIds == null || mapLayerIds.forEach(/*#__PURE__*/function () {
|
|
@@ -8250,6 +8267,8 @@ var OlMapViewConnect = function OlMapViewConnect(_ref) {
|
|
|
8250
8267
|
bounds: "parent",
|
|
8251
8268
|
isDocked: true,
|
|
8252
8269
|
mapId: mapId
|
|
8270
|
+
}), !!displayTimeInMap && jsx(ClockConnect, {
|
|
8271
|
+
mapId: mapId
|
|
8253
8272
|
}), children]
|
|
8254
8273
|
})
|
|
8255
8274
|
});
|
|
@@ -8343,78 +8362,6 @@ var NowButtonConnect = function NowButtonConnect(_ref) {
|
|
|
8343
8362
|
});
|
|
8344
8363
|
};
|
|
8345
8364
|
|
|
8346
|
-
var connectRedux$1 = connect(function (store, props) {
|
|
8347
|
-
return {
|
|
8348
|
-
timeStep: mapSelectors.getMapTimeStep(store, props.mapId),
|
|
8349
|
-
linkedMapAnimationInfo: mapSelectors.linkedMapAnimationInfo(store, props.mapId)
|
|
8350
|
-
};
|
|
8351
|
-
}, {
|
|
8352
|
-
mapStartAnimation: mapActions.mapStartAnimation,
|
|
8353
|
-
mapStopAnimation: mapActions.mapStopAnimation
|
|
8354
|
-
});
|
|
8355
|
-
var PlayButtonConnect = connectRedux$1(function (_ref) {
|
|
8356
|
-
var mapId = _ref.mapId,
|
|
8357
|
-
isDisabled = _ref.isDisabled,
|
|
8358
|
-
timeStep = _ref.timeStep,
|
|
8359
|
-
linkedMapAnimationInfo = _ref.linkedMapAnimationInfo,
|
|
8360
|
-
mapStartAnimation = _ref.mapStartAnimation,
|
|
8361
|
-
mapStopAnimation = _ref.mapStopAnimation;
|
|
8362
|
-
var _useSelector = useSelector(function (store) {
|
|
8363
|
-
return mapSelectors.getAnimationRange(store, mapId);
|
|
8364
|
-
}),
|
|
8365
|
-
animationStartTime = _useSelector.animationStartTime,
|
|
8366
|
-
animationEndTime = _useSelector.animationEndTime;
|
|
8367
|
-
var animationInterval = timeStep || defaultTimeStep;
|
|
8368
|
-
var onTogglePlay = function onTogglePlay() {
|
|
8369
|
-
if (linkedMapAnimationInfo.isAnimating) {
|
|
8370
|
-
mapStopAnimation({
|
|
8371
|
-
mapId: linkedMapAnimationInfo.id,
|
|
8372
|
-
origin: mapEnums.MapActionOrigin.map
|
|
8373
|
-
});
|
|
8374
|
-
} else {
|
|
8375
|
-
mapStartAnimation({
|
|
8376
|
-
mapId: mapId,
|
|
8377
|
-
start: animationStartTime,
|
|
8378
|
-
end: animationEndTime,
|
|
8379
|
-
interval: animationInterval,
|
|
8380
|
-
origin: mapEnums.MapActionOrigin.map
|
|
8381
|
-
});
|
|
8382
|
-
}
|
|
8383
|
-
};
|
|
8384
|
-
return jsx(PlayButton, {
|
|
8385
|
-
isAnimating: linkedMapAnimationInfo.isAnimating,
|
|
8386
|
-
isDisabled: isDisabled,
|
|
8387
|
-
onTogglePlayButton: function onTogglePlayButton() {
|
|
8388
|
-
onTogglePlay();
|
|
8389
|
-
}
|
|
8390
|
-
});
|
|
8391
|
-
});
|
|
8392
|
-
|
|
8393
|
-
var ControlButtonsConnect = function ControlButtonsConnect(_ref) {
|
|
8394
|
-
var sourceId = _ref.sourceId,
|
|
8395
|
-
mapId = _ref.mapId;
|
|
8396
|
-
return jsx(ControlButtons, {
|
|
8397
|
-
autoUpdateBtn: jsx(AutoUpdateButtonConnect, {
|
|
8398
|
-
mapId: mapId
|
|
8399
|
-
}),
|
|
8400
|
-
backwardBtn: jsx(BackwardForwardStepButtonConnect, {
|
|
8401
|
-
isForwardStep: false,
|
|
8402
|
-
mapId: mapId
|
|
8403
|
-
}),
|
|
8404
|
-
forwardBtn: jsx(BackwardForwardStepButtonConnect, {
|
|
8405
|
-
isForwardStep: true,
|
|
8406
|
-
mapId: mapId
|
|
8407
|
-
}),
|
|
8408
|
-
nowBtn: jsx(NowButtonConnect, {
|
|
8409
|
-
mapId: mapId,
|
|
8410
|
-
sourceId: sourceId
|
|
8411
|
-
}),
|
|
8412
|
-
playBtn: jsx(PlayButtonConnect, {
|
|
8413
|
-
mapId: mapId
|
|
8414
|
-
})
|
|
8415
|
-
});
|
|
8416
|
-
};
|
|
8417
|
-
|
|
8418
8365
|
var AnimationLengthButtonConnect = function AnimationLengthButtonConnect(_ref) {
|
|
8419
8366
|
var mapId = _ref.mapId;
|
|
8420
8367
|
var dispatch = useDispatch();
|
|
@@ -8598,45 +8545,6 @@ var TimeStepButtonConnect = function TimeStepButtonConnect(_ref) {
|
|
|
8598
8545
|
});
|
|
8599
8546
|
};
|
|
8600
8547
|
|
|
8601
|
-
var OptionsMenuConnect = function OptionsMenuConnect(_ref) {
|
|
8602
|
-
var mapId = _ref.mapId;
|
|
8603
|
-
return jsx(OptionsMenu, {
|
|
8604
|
-
animationLengthBtn: jsx(AnimationLengthButtonConnect, {
|
|
8605
|
-
mapId: mapId
|
|
8606
|
-
}),
|
|
8607
|
-
speedBtn: jsx(SpeedButtonConnect, {
|
|
8608
|
-
mapId: mapId
|
|
8609
|
-
}),
|
|
8610
|
-
timeSpanBtn: jsx(TimeSpanButtonConnect, {
|
|
8611
|
-
mapId: mapId
|
|
8612
|
-
}),
|
|
8613
|
-
timeStepBtn: jsx(TimeStepButtonConnect, {
|
|
8614
|
-
mapId: mapId
|
|
8615
|
-
})
|
|
8616
|
-
});
|
|
8617
|
-
};
|
|
8618
|
-
|
|
8619
|
-
var TimeSliderClockConnect = function TimeSliderClockConnect(_ref) {
|
|
8620
|
-
var mapId = _ref.mapId;
|
|
8621
|
-
var selectedTime = useSelector(function (store) {
|
|
8622
|
-
return mapSelectors.getSelectedTime(store, mapId);
|
|
8623
|
-
});
|
|
8624
|
-
var isTimeSliderVisible = useSelector(function (store) {
|
|
8625
|
-
return mapSelectors.isTimeSliderVisible(store, mapId);
|
|
8626
|
-
});
|
|
8627
|
-
return jsx(TimeSliderClock, {
|
|
8628
|
-
controls: jsx(ControlButtonsConnect, {
|
|
8629
|
-
mapId: mapId,
|
|
8630
|
-
sourceId: mapId
|
|
8631
|
-
}),
|
|
8632
|
-
hideButton: isTimeSliderVisible,
|
|
8633
|
-
options: jsx(OptionsMenuConnect, {
|
|
8634
|
-
mapId: mapId
|
|
8635
|
-
}),
|
|
8636
|
-
time: selectedTime
|
|
8637
|
-
});
|
|
8638
|
-
};
|
|
8639
|
-
|
|
8640
8548
|
/**
|
|
8641
8549
|
* OptionsMenuButtonConnect component with components connected to the store displaying the options menu button
|
|
8642
8550
|
*
|
|
@@ -8663,6 +8571,53 @@ var OptionsMenuButtonConnect = function OptionsMenuButtonConnect(_ref) {
|
|
|
8663
8571
|
});
|
|
8664
8572
|
};
|
|
8665
8573
|
|
|
8574
|
+
var connectRedux$1 = connect(function (store, props) {
|
|
8575
|
+
return {
|
|
8576
|
+
timeStep: mapSelectors.getMapTimeStep(store, props.mapId),
|
|
8577
|
+
linkedMapAnimationInfo: mapSelectors.linkedMapAnimationInfo(store, props.mapId)
|
|
8578
|
+
};
|
|
8579
|
+
}, {
|
|
8580
|
+
mapStartAnimation: mapActions.mapStartAnimation,
|
|
8581
|
+
mapStopAnimation: mapActions.mapStopAnimation
|
|
8582
|
+
});
|
|
8583
|
+
var PlayButtonConnect = connectRedux$1(function (_ref) {
|
|
8584
|
+
var mapId = _ref.mapId,
|
|
8585
|
+
isDisabled = _ref.isDisabled,
|
|
8586
|
+
timeStep = _ref.timeStep,
|
|
8587
|
+
linkedMapAnimationInfo = _ref.linkedMapAnimationInfo,
|
|
8588
|
+
mapStartAnimation = _ref.mapStartAnimation,
|
|
8589
|
+
mapStopAnimation = _ref.mapStopAnimation;
|
|
8590
|
+
var _useSelector = useSelector(function (store) {
|
|
8591
|
+
return mapSelectors.getAnimationRange(store, mapId);
|
|
8592
|
+
}),
|
|
8593
|
+
animationStartTime = _useSelector.animationStartTime,
|
|
8594
|
+
animationEndTime = _useSelector.animationEndTime;
|
|
8595
|
+
var animationInterval = timeStep || defaultTimeStep;
|
|
8596
|
+
var onTogglePlay = function onTogglePlay() {
|
|
8597
|
+
if (linkedMapAnimationInfo.isAnimating) {
|
|
8598
|
+
mapStopAnimation({
|
|
8599
|
+
mapId: linkedMapAnimationInfo.id,
|
|
8600
|
+
origin: mapEnums.MapActionOrigin.map
|
|
8601
|
+
});
|
|
8602
|
+
} else {
|
|
8603
|
+
mapStartAnimation({
|
|
8604
|
+
mapId: mapId,
|
|
8605
|
+
start: animationStartTime,
|
|
8606
|
+
end: animationEndTime,
|
|
8607
|
+
interval: animationInterval,
|
|
8608
|
+
origin: mapEnums.MapActionOrigin.map
|
|
8609
|
+
});
|
|
8610
|
+
}
|
|
8611
|
+
};
|
|
8612
|
+
return jsx(PlayButton, {
|
|
8613
|
+
isAnimating: linkedMapAnimationInfo.isAnimating,
|
|
8614
|
+
isDisabled: isDisabled,
|
|
8615
|
+
onTogglePlayButton: function onTogglePlayButton() {
|
|
8616
|
+
onTogglePlay();
|
|
8617
|
+
}
|
|
8618
|
+
});
|
|
8619
|
+
});
|
|
8620
|
+
|
|
8666
8621
|
/**
|
|
8667
8622
|
* TimeSliderButtons component with components connected to the store displaying the time slider buttons
|
|
8668
8623
|
*
|
|
@@ -9219,7 +9174,7 @@ var TimeSliderConnect = function TimeSliderConnect(_ref) {
|
|
|
9219
9174
|
});
|
|
9220
9175
|
};
|
|
9221
9176
|
|
|
9222
|
-
var _excluded = ["id", "dockedLayerManagerSize", "title", "layers", "dimensions", "shouldAutoUpdate", "shouldAnimate", "shouldAutoFetch", "initialBbox", "srs", "shouldShowZoomControls", "displayMapPin", "showTimeSlider", "disableTimeSlider", "displayTimeInMap", "displayLayerManagerAndLegendButtonInMap", "displayDimensionSelectButtonInMap", "multiLegend", "shouldShowLayerManager", "shouldShowDockedLayerManager", "
|
|
9177
|
+
var _excluded = ["id", "dockedLayerManagerSize", "title", "layers", "dimensions", "shouldAutoUpdate", "shouldAnimate", "shouldAutoFetch", "initialBbox", "srs", "shouldShowZoomControls", "displayMapPin", "showTimeSlider", "disableTimeSlider", "displayTimeInMap", "displayLayerManagerAndLegendButtonInMap", "displayDimensionSelectButtonInMap", "multiLegend", "shouldShowLayerManager", "shouldShowDockedLayerManager", "isClockEnabled", "displayGetFeatureInfoButtonInMap", "shouldDisplayDrawControls", "displaySearchButtonInMap", "displayDataExplorerButtonOnMap", "mapControls", "children", "shouldDisablePrefetching", "tileServerSettings", "featureStyle", "shouldDisplayMeasureToolButton"];
|
|
9223
9178
|
var titleStyle = function titleStyle(theme) {
|
|
9224
9179
|
return {
|
|
9225
9180
|
position: 'absolute',
|
|
@@ -9275,8 +9230,8 @@ var ConfigurableMapConnect = function ConfigurableMapConnect(_ref) {
|
|
|
9275
9230
|
multiLegend = _ref$multiLegend === void 0 ? true : _ref$multiLegend,
|
|
9276
9231
|
shouldShowLayerManager = _ref.shouldShowLayerManager,
|
|
9277
9232
|
shouldShowDockedLayerManager = _ref.shouldShowDockedLayerManager,
|
|
9278
|
-
_ref$
|
|
9279
|
-
|
|
9233
|
+
_ref$isClockEnabled = _ref.isClockEnabled,
|
|
9234
|
+
isClockEnabled = _ref$isClockEnabled === void 0 ? true : _ref$isClockEnabled,
|
|
9280
9235
|
_ref$displayGetFeatur = _ref.displayGetFeatureInfoButtonInMap,
|
|
9281
9236
|
displayGetFeatureInfoButtonInMap = _ref$displayGetFeatur === void 0 ? false : _ref$displayGetFeatur,
|
|
9282
9237
|
_ref$shouldDisplayDra = _ref.shouldDisplayDrawControls,
|
|
@@ -9440,13 +9395,13 @@ var ConfigurableMapConnect = function ConfigurableMapConnect(_ref) {
|
|
|
9440
9395
|
showScaleBar: false,
|
|
9441
9396
|
tileServerSettings: tileServerSettings,
|
|
9442
9397
|
children: children
|
|
9443
|
-
}),
|
|
9398
|
+
}), isClockEnabled ? jsx(ClockConnect, {
|
|
9444
9399
|
mapId: mapId
|
|
9445
9400
|
}) : null]
|
|
9446
9401
|
});
|
|
9447
9402
|
// don't include bbox directly, use bboxKey instead
|
|
9448
9403
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
9449
|
-
}, [mapId, title, bboxKey, mapControlConfig, tileServerSettings, disableTimeSlider, displayTimeInMap, shouldAutoFetch, shouldDisablePrefetching, children,
|
|
9404
|
+
}, [mapId, title, bboxKey, mapControlConfig, tileServerSettings, disableTimeSlider, displayTimeInMap, shouldAutoFetch, shouldDisablePrefetching, children, isClockEnabled, featureStyle]);
|
|
9450
9405
|
};
|
|
9451
9406
|
|
|
9452
9407
|
var mapBoxStyle = function mapBoxStyle(theme) {
|
|
@@ -9468,8 +9423,8 @@ var MultiMapViewConnect = function MultiMapViewConnect(_ref) {
|
|
|
9468
9423
|
showZoomControls = _ref$showZoomControls === void 0 ? true : _ref$showZoomControls,
|
|
9469
9424
|
_ref$multiLegend = _ref.multiLegend,
|
|
9470
9425
|
multiLegend = _ref$multiLegend === void 0 ? false : _ref$multiLegend,
|
|
9471
|
-
_ref$
|
|
9472
|
-
|
|
9426
|
+
_ref$isClockEnabled = _ref.isClockEnabled,
|
|
9427
|
+
isClockEnabled = _ref$isClockEnabled === void 0 ? true : _ref$isClockEnabled;
|
|
9473
9428
|
var multiMapWindowRef = React.useRef(null);
|
|
9474
9429
|
var dispatch = useDispatch();
|
|
9475
9430
|
var syncGroupAddTarget = React.useCallback(function (payload) {
|
|
@@ -9530,7 +9485,7 @@ var MultiMapViewConnect = function MultiMapViewConnect(_ref) {
|
|
|
9530
9485
|
mapId: firstMapId,
|
|
9531
9486
|
multiLegend: multiLegend,
|
|
9532
9487
|
showMapId: true
|
|
9533
|
-
}), !!
|
|
9488
|
+
}), !!isClockEnabled && jsx(ClockConnect, {
|
|
9534
9489
|
mapId: firstMapId
|
|
9535
9490
|
}), maps.map(function (map, mapIndex) {
|
|
9536
9491
|
var mapId = map.id;
|
|
@@ -9547,11 +9502,11 @@ var MultiMapViewConnect = function MultiMapViewConnect(_ref) {
|
|
|
9547
9502
|
displayTimeInMap: map.displayTimeInMap || false,
|
|
9548
9503
|
id: mapId,
|
|
9549
9504
|
initialBbox: map.bbox,
|
|
9505
|
+
isClockEnabled: false,
|
|
9550
9506
|
layers: map.layers || [],
|
|
9551
9507
|
multiLegend: multiLegend,
|
|
9552
9508
|
shouldDisablePrefetching: map.componentType === 'MultiMap',
|
|
9553
9509
|
shouldShowZoomControls: !!showZoomControls && mapIndex === 0,
|
|
9554
|
-
showClock: false,
|
|
9555
9510
|
showTimeSlider: false,
|
|
9556
9511
|
srs: map.srs,
|
|
9557
9512
|
title: map.title || mapId
|
|
@@ -9662,10 +9617,10 @@ var ModelRunInterval = function ModelRunInterval(_ref) {
|
|
|
9662
9617
|
});
|
|
9663
9618
|
return jsx(MultiMapViewConnect, {
|
|
9664
9619
|
cols: 5,
|
|
9620
|
+
isClockEnabled: false,
|
|
9665
9621
|
maps: maps,
|
|
9666
9622
|
multiLegend: multiLegend,
|
|
9667
9623
|
rows: 3,
|
|
9668
|
-
showClock: false,
|
|
9669
9624
|
showTimeSlider: false,
|
|
9670
9625
|
syncTime: false
|
|
9671
9626
|
});
|
|
@@ -10421,75 +10376,6 @@ var RouterWrapperConnect = function RouterWrapperConnect(props) {
|
|
|
10421
10376
|
});
|
|
10422
10377
|
};
|
|
10423
10378
|
|
|
10424
|
-
var Circle = styled$1('div')(function (_ref) {
|
|
10425
|
-
var isRecording = _ref.isRecording;
|
|
10426
|
-
return {
|
|
10427
|
-
width: '70%',
|
|
10428
|
-
height: '70%',
|
|
10429
|
-
borderRadius: '50%',
|
|
10430
|
-
backgroundColor: isRecording ? 'red' : 'gray',
|
|
10431
|
-
position: 'absolute',
|
|
10432
|
-
top: '50%',
|
|
10433
|
-
left: '50%',
|
|
10434
|
-
transform: 'translate(-50%, -50%)'
|
|
10435
|
-
};
|
|
10436
|
-
});
|
|
10437
|
-
var SentryRecordButton = function SentryRecordButton() {
|
|
10438
|
-
var _useCoreTranslation = useCoreTranslation(),
|
|
10439
|
-
t = _useCoreTranslation.t;
|
|
10440
|
-
var _React$useState = React.useState(false),
|
|
10441
|
-
isRecording = _React$useState[0],
|
|
10442
|
-
setIsRecording = _React$useState[1];
|
|
10443
|
-
var replay = getReplay();
|
|
10444
|
-
var toggleRecord = /*#__PURE__*/function () {
|
|
10445
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10446
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10447
|
-
while (1) switch (_context.prev = _context.next) {
|
|
10448
|
-
case 0:
|
|
10449
|
-
if (isRecording) {
|
|
10450
|
-
_context.next = 5;
|
|
10451
|
-
break;
|
|
10452
|
-
}
|
|
10453
|
-
replay == null || replay.start();
|
|
10454
|
-
setIsRecording(true);
|
|
10455
|
-
_context.next = 8;
|
|
10456
|
-
break;
|
|
10457
|
-
case 5:
|
|
10458
|
-
setIsRecording(false);
|
|
10459
|
-
_context.next = 8;
|
|
10460
|
-
return replay == null ? void 0 : replay.stop();
|
|
10461
|
-
case 8:
|
|
10462
|
-
case "end":
|
|
10463
|
-
return _context.stop();
|
|
10464
|
-
}
|
|
10465
|
-
}, _callee);
|
|
10466
|
-
}));
|
|
10467
|
-
return function toggleRecord() {
|
|
10468
|
-
return _ref2.apply(this, arguments);
|
|
10469
|
-
};
|
|
10470
|
-
}();
|
|
10471
|
-
var title = isRecording ? t('sentry-stop-recording') : t('sentry-start-recording');
|
|
10472
|
-
return jsx(ErrorBoundary, {
|
|
10473
|
-
displayOnTop: true,
|
|
10474
|
-
handlePromiseRejections: true,
|
|
10475
|
-
children: jsx(CustomTooltip, {
|
|
10476
|
-
title: title,
|
|
10477
|
-
children: jsx(CustomIconButton, {
|
|
10478
|
-
"data-testid": "sentryRecordButton",
|
|
10479
|
-
onClick: toggleRecord,
|
|
10480
|
-
sx: {
|
|
10481
|
-
margin: '10px',
|
|
10482
|
-
border: 'solid 1px gray'
|
|
10483
|
-
},
|
|
10484
|
-
variant: "flat",
|
|
10485
|
-
children: jsx(Circle, {
|
|
10486
|
-
isRecording: isRecording
|
|
10487
|
-
})
|
|
10488
|
-
})
|
|
10489
|
-
})
|
|
10490
|
-
});
|
|
10491
|
-
};
|
|
10492
|
-
|
|
10493
10379
|
var languages = [{
|
|
10494
10380
|
language: 'English',
|
|
10495
10381
|
code: 'en',
|
|
@@ -11010,14 +10896,11 @@ var fakeLocationDetailList = [{
|
|
|
11010
10896
|
lon: 24.93545,
|
|
11011
10897
|
bbox: [24.782805558281286, 59.92249323820872, 25.254496669447338, 60.29783941145479]
|
|
11012
10898
|
}];
|
|
11013
|
-
var locationApiEndpoints = [http.get(/^.*locations(.*)$/, function (
|
|
10899
|
+
var locationApiEndpoints = [http.get(/^.*locations(.*)$/, function () {
|
|
10900
|
+
return HttpResponse.json(fakeLocationList);
|
|
10901
|
+
}), http.get(/^.*locationdetail(.*)$/, function (_ref) {
|
|
11014
10902
|
var request = _ref.request;
|
|
11015
10903
|
var url = new URL(request.url);
|
|
11016
|
-
var search = url.searchParams.get('search');
|
|
11017
|
-
return HttpResponse.json(search ? fakeLocationList : []);
|
|
11018
|
-
}), http.get(/^.*locationdetail(.*)$/, function (_ref2) {
|
|
11019
|
-
var request = _ref2.request;
|
|
11020
|
-
var url = new URL(request.url);
|
|
11021
10904
|
var id = url.searchParams.get('id');
|
|
11022
10905
|
var result = fakeLocationDetailList.find(function (item) {
|
|
11023
10906
|
return item.id === id;
|
|
@@ -11152,4 +11035,4 @@ var storyUtils = /*#__PURE__*/Object.freeze({
|
|
|
11152
11035
|
useDefaultMapSettings: useDefaultMapSettings
|
|
11153
11036
|
});
|
|
11154
11037
|
|
|
11155
|
-
export { CORE_NAMESPACE, ConfigurableMapConnect, CoreI18nProvider, CoreStoreProvider, CoreThemeProvider, CoreThemeStoreProvider, DemoWrapper, DemoWrapperConnect, HarmonieTempAndPrecipPreset, LanguageSelect, LayerInfoButtonConnect, LayerInfoDialogConnect, LayerManager, BaseLayerRow as LayerManagerBaseLayerRow, LayerManagerConnect, DescriptionRow as LayerManagerDescriptionRow, HeaderOptions as LayerManagerHeaderOptions, LayerContainerRow as LayerManagerLayerContainerRow, LayerManagerMapButtonConnect, LegendConnect, LegendMapButtonConnect, LoadingIndicatorProgressBar, LocationSearch, LocationSearchConnect, MultiDimensionSelectMapButtonsConnect, MultiMapMultiDimensionSelectConnect as MultiMapDimensionSelectConnect, MultiMapViewConnect, MyMapLocation, OlMapViewConnect, RouterWrapperConnect, SearchControlButtonConnect, SelectedFeaturesDialogConnect,
|
|
11038
|
+
export { CORE_NAMESPACE, ConfigurableMapConnect, CoreI18nProvider, CoreStoreProvider, CoreThemeProvider, CoreThemeStoreProvider, DemoWrapper, DemoWrapperConnect, HarmonieTempAndPrecipPreset, LanguageSelect, LayerInfoButtonConnect, LayerInfoDialogConnect, LayerManager, BaseLayerRow as LayerManagerBaseLayerRow, LayerManagerConnect, DescriptionRow as LayerManagerDescriptionRow, HeaderOptions as LayerManagerHeaderOptions, LayerContainerRow as LayerManagerLayerContainerRow, LayerManagerMapButtonConnect, LegendConnect, LegendMapButtonConnect, LoadingIndicatorProgressBar, LocationSearch, LocationSearchConnect, MultiDimensionSelectMapButtonsConnect, MultiMapMultiDimensionSelectConnect as MultiMapDimensionSelectConnect, MultiMapViewConnect, MyMapLocation, OlMapViewConnect, RouterWrapperConnect, SearchControlButtonConnect, SelectedFeaturesDialogConnect, SyncGroupViewerConnect, TimeSliderConnect, componentsLookUp, coreTranslations, defaultBbox, defaultConfigurations, fakeLocationDetailList, fakeLocationList, filterMapPresets, filterServices, filterTimeSeriesServices, getCenterOfLinkedFeature, getLanguageFromLocalStorage, languageLocalStorageKey, locationApiEndpoints, makeLayerInfoPayload, makePrefetchTimeSpan, saveLanguageToLocalStorage, storyUtils, testLayers, useFetchServices, useFitAndHighlightWarningFeature, useGetOpenLayersView, useLocationDetail, useLocationList, usePrefetchTimeSpan, useUpdateTimeSpan, useUpdateTimestep };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.1.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,31 +8,30 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/shared": "
|
|
11
|
+
"@opengeoweb/shared": "15.1.0",
|
|
12
12
|
"react-redux": "^9.2.0",
|
|
13
|
-
"@opengeoweb/store": "
|
|
14
|
-
"@opengeoweb/time-slider": "
|
|
13
|
+
"@opengeoweb/store": "15.1.0",
|
|
14
|
+
"@opengeoweb/time-slider": "15.1.0",
|
|
15
15
|
"@reduxjs/toolkit": "^2.6.1",
|
|
16
|
-
"@opengeoweb/webmap-react": "
|
|
17
|
-
"@opengeoweb/webmap": "
|
|
18
|
-
"@opengeoweb/theme": "
|
|
16
|
+
"@opengeoweb/webmap-react": "15.1.0",
|
|
17
|
+
"@opengeoweb/webmap": "15.1.0",
|
|
18
|
+
"@opengeoweb/theme": "15.1.0",
|
|
19
19
|
"axios": "^1.7.7",
|
|
20
|
-
"@opengeoweb/layer-select": "
|
|
20
|
+
"@opengeoweb/layer-select": "15.1.0",
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
22
|
"ol": "^10.4.0",
|
|
23
23
|
"react-sortablejs": "^6.1.4",
|
|
24
24
|
"sortablejs": "^1.15.1",
|
|
25
25
|
"@mui/system": "^7.3.2",
|
|
26
|
-
"@opengeoweb/snackbar": "
|
|
26
|
+
"@opengeoweb/snackbar": "15.1.0",
|
|
27
27
|
"react-router-dom": "^6.21.0",
|
|
28
28
|
"react-draggable": "^4.4.6",
|
|
29
29
|
"i18next": "^25.0.1",
|
|
30
30
|
"react-i18next": "^15.1.1",
|
|
31
31
|
"dompurify": "^3.0.6",
|
|
32
32
|
"@mui/material": "^7.0.1",
|
|
33
|
-
"@sentry/react": "^8.34.0",
|
|
34
33
|
"@tanstack/react-query": "^5.85.5",
|
|
35
|
-
"@opengeoweb/api": "
|
|
34
|
+
"@opengeoweb/api": "15.1.0",
|
|
36
35
|
"@types/geojson": "^7946.0.14",
|
|
37
36
|
"@turf/turf": "^7.2.0",
|
|
38
37
|
"proj4": "^2.15.0"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ClockConnect';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { PlotPreset, TimeSeriesService } from '@opengeoweb/shared';
|
|
2
|
+
import type { Coordinates, PlotPreset, SourceSelection, TimeSeriesService } from '@opengeoweb/shared';
|
|
3
3
|
import type { mapTypes } from '@opengeoweb/store';
|
|
4
4
|
import type { InitialHarmTempAndPrecipProps } from '../MultiMapViewConnect/HarmoniePresets';
|
|
5
5
|
import type { ModelRunIntervalProps } from '../MultiMapViewConnect/ModelRunInterval';
|
|
@@ -27,7 +27,13 @@ export interface InitialTimeSeriesProps {
|
|
|
27
27
|
services: TimeSeriesService[];
|
|
28
28
|
hideLocationMarkers?: boolean;
|
|
29
29
|
}
|
|
30
|
-
export
|
|
30
|
+
export interface InitialSoundingsProps {
|
|
31
|
+
selectedSources: Record<string, SourceSelection>;
|
|
32
|
+
selectedLocations: Record<string, string | Coordinates | undefined>;
|
|
33
|
+
selectedTime?: string;
|
|
34
|
+
diagramType?: 'SKEWT' | 'BIJVOET' | 'EMAGRAM';
|
|
35
|
+
}
|
|
36
|
+
export type InitialProps = InitialMapProps | InitialMultiMapProps | InitialHarmTempAndPrecipProps | ModelRunIntervalProps | mapTypes.MapPresetInitialProps | InitialSliderProps | InitialTimeSeriesProps | InitialSoundingsProps | Record<string, unknown>;
|
|
31
37
|
/**
|
|
32
38
|
* The lookup table is for registering your own components with the workspace.
|
|
33
39
|
* @param payload
|
|
@@ -37,7 +37,7 @@ export interface ConfigurableMapConnectProps {
|
|
|
37
37
|
multiLegend?: boolean;
|
|
38
38
|
shouldShowLayerManager?: boolean;
|
|
39
39
|
shouldShowDockedLayerManager?: boolean;
|
|
40
|
-
|
|
40
|
+
isClockEnabled?: boolean;
|
|
41
41
|
displayGetFeatureInfoButtonInMap?: boolean;
|
|
42
42
|
shouldDisplayDrawControls?: boolean;
|
|
43
43
|
displaySearchButtonInMap?: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Feature, View } from 'ol';
|
|
2
2
|
import type { TimeSliderStartCenterEndTime } from '@opengeoweb/store';
|
|
3
|
-
import type { Dimension } from '@opengeoweb/webmap';
|
|
3
|
+
import type { Dimension, RefTimeDimensionModes } from '@opengeoweb/webmap';
|
|
4
4
|
import type { MapLocation, OnInitializeLayerProps, TimeContextType, UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
|
|
5
5
|
export declare const makePrefetchTimeSpan: (timeSliderStartCenterEndTime: TimeSliderStartCenterEndTime, isAnimating: boolean, prefetchList: number[]) => TimeContextType;
|
|
6
|
-
export declare const usePrefetchTimeSpan: (timeSliderStartCenterEndTime: TimeSliderStartCenterEndTime, isAnimating: boolean, animationList: number[]) => TimeContextType;
|
|
6
|
+
export declare const usePrefetchTimeSpan: (timeSliderStartCenterEndTime: TimeSliderStartCenterEndTime, isAnimating: boolean, animationList: number[], refTimeDimensionModes?: RefTimeDimensionModes) => TimeContextType;
|
|
7
7
|
export declare const makeLayerInfoPayload: (payload: OnInitializeLayerProps, mapDimensions: Dimension[], mapId: string) => UpdateLayerInfoPayload;
|
|
8
8
|
export declare const getCenterOfLinkedFeature: (feature: Feature | undefined, srs: string) => MapLocation | null;
|
|
9
9
|
interface UseFitAndHighlightWarningFeatureOptions {
|
package/src/lib/index.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ export * from './components/RouterWrapper';
|
|
|
17
17
|
export * from './components/LocationSearch';
|
|
18
18
|
export * from './components/TimeSliderConnect';
|
|
19
19
|
export * from './components/LayerInfoConnect';
|
|
20
|
-
export * from './components/SentryRecordButton';
|
|
21
20
|
export * from './components/LanguageSelect';
|
|
22
21
|
export * from './components/SelectedFeaturesDialog/SelectedFeaturesDialogConnect';
|
|
23
22
|
export { useLocationDetail, useLocationList } from './utils/location-api/hooks';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as SentryRecordButton } from './SentryRecordButton';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TimeSliderClockConnect';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/OptionsMenuConnect.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|