@opengeoweb/workspace 19.4.0 → 19.5.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/dist/index.esm.js +26 -8
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createSlice, createEntityAdapter, createSelector, createListenerMiddleware, isAnyOf, combineReducers, configureStore } from '@reduxjs/toolkit';
|
|
2
2
|
import { handleResponse, getHeaders, getQueryClient, QueryClientProviderWrapper, useAuthenticationContext as useAuthenticationContext$1, GEOWEB_ROLE_PRESETS_ADMIN as GEOWEB_ROLE_PRESETS_ADMIN$1 } from '@opengeoweb/api';
|
|
3
3
|
import { soundingsActions, SoundingsTypes, soundingsSelectors, soundingsReducer } from '@opengeoweb/soundings';
|
|
4
|
-
import { syncGroupsTypes, FEATURE_GROUP_PREFIX, syncGroupsActions, layerActions, mapActions, uiActions, genericActions, layerTypes, mapEnums, selectorMemoizationOptions, genericSelectors, mapSelectors, syncGroupsSelectors, routerActions, createViewObjectForNewMap, syncConstants, mapListener, serviceListener, layersListener, syncGroupsListener, openlayersListener, uiReducer, loadingIndicatorReducer, syncGroupsReducer, layerReducer, serviceReducer, mapReducer, uiTypes, isWarningsTimelineLinkSourceAllowed, getTakenWarningTimelineIds, linkComponentTypesConstants, constructSyncSourceDisplayName,
|
|
4
|
+
import { syncGroupsTypes, FEATURE_GROUP_PREFIX, syncGroupsActions, layerActions, mapActions, uiActions, genericActions, layerTypes, mapEnums, selectorMemoizationOptions, genericSelectors, mapSelectors, syncGroupsSelectors, routerActions, createViewObjectForNewMap, syncConstants, mapListener, serviceListener, layersListener, syncGroupsListener, openlayersListener, uiReducer, loadingIndicatorReducer, syncGroupsReducer, layerReducer, serviceReducer, mapReducer, uiTypes, isWarningsTimelineLinkSourceAllowed, getTakenWarningTimelineIds, linkComponentTypesConstants, constructSyncSourceDisplayName, uiSelectors, loadingIndicatorSelectors } from '@opengeoweb/store';
|
|
5
5
|
import { timeSeriesActions, TimeSeriesTypes, timeSeriesSelectors, timeSeriesReducer } from '@opengeoweb/time-series';
|
|
6
6
|
import { chunk, cloneDeep, isEqual, isString } from 'lodash';
|
|
7
7
|
import { getLeaves, createBalancedTreeFromLeaves, MosaicContext, getAndAssertNodeAtPathExists, MosaicWindow, Mosaic } from 'react-mosaic-component';
|
|
8
8
|
import { queryOptions, useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
|
|
9
|
-
import { sessionStorageProvider, isAxiosError, getAxiosErrorMessage, isAuthError, isAxiosAuthError, SHARED_NAMESPACE, safelyInitI18nForTestsAndStories, sharedTranslations, ConfirmationServiceProvider, CustomIconButton, useConfirmationDialog, usePrevious, AlertBanner, CustomAccordion, CustomTooltip, dateUtils, SystemScope, SearchHighlight, ToggleMenu, SearchField, Filter, LastUpdateTime, renderCounter, CustomDialog, ToolContainer, CustomToggleButton, ConfirmationButtons } from '@opengeoweb/shared';
|
|
9
|
+
import { sessionStorageProvider, isAxiosError, getAxiosErrorMessage, isAuthError, isAxiosAuthError, SHARED_NAMESPACE, safelyInitI18nForTestsAndStories, sharedTranslations, ConfirmationServiceProvider, CustomIconButton, useConfirmationDialog, usePrevious, AlertBanner, CustomAccordion, CustomTooltip, linkifyText, dateUtils, SystemScope, SearchHighlight, ToggleMenu, SearchField, Filter, LastUpdateTime, renderCounter, CustomDialog, ToolContainer, CustomToggleButton, ConfirmationButtons } from '@opengeoweb/shared';
|
|
10
10
|
import { pluginsActions, getPluginState, pluginsReducer, PluginProvider, PluginDebugProvider, OverlayPluginMenuButton, usePluginCatalog } from '@opengeoweb/plugins';
|
|
11
11
|
import { warningsFiltersActions, publicWarningsSelectors, warningsTranslations, WARN_NAMESPACE } from '@opengeoweb/warnings';
|
|
12
12
|
import { snackbarTypes, snackbarActions, snackbarListener, snackbarReducer, SnackbarWrapperConnect } from '@opengeoweb/snackbar';
|
|
@@ -1818,8 +1818,8 @@ var warningsPresetChangeActions = [warningsFiltersActions.setWarningFilters, war
|
|
|
1818
1818
|
var syncGroupChangeActions = [syncGroupsActions.syncGroupRemoveTarget, syncGroupsActions.syncGroupAddTarget];
|
|
1819
1819
|
var mapPresetChangeActions = [layerActions.setBaseLayers, layerActions.layerDelete, layerActions.addLayer, layerActions.duplicateMapLayer, layerActions.layerChangeEnabled, layerActions.layerChangeName, layerActions.layerChangeStyle, layerActions.layerChangeOpacity, layerActions.layerChangeDimension, layerActions.layerChangeAcceptanceTime, layerActions.SetLayerLegendVisibilityPayload, mapActions.layerMoveLayer, mapActions.setAutoLayerId, mapActions.setAutoTimestepLayerId, mapActions.setAutoUpdateLayerId, mapActions.toggleAutoUpdate, mapActions.mapStartAnimation, mapActions.mapStopAnimation, mapActions.toggleTimeSliderIsVisible, mapActions.setTimeStep, mapActions.setTimeSliderSpan, mapActions.toggleTimeSpanAuto, mapActions.setAnimationDelay, mapActions.toggleTimestepAuto, mapActions.setAnimationStartTime, mapActions.setAnimationEndTime, mapActions.changeOverlayer, uiActions.setActiveMapIdForDialog, uiActions.setToggleOpenDialog, genericActions.setBbox, mapActions.setBbox, mapActions.toggleClock, mapActions.toggleClockOptions, mapActions.setClockPositionSize, mapActions.setDockedLayerManagerSize, mapActions.setDockedLayerManagerPosition, mapActions.setDockedLayerManagerDimensions];
|
|
1820
1820
|
var pluginPresetChangeActions = [pluginsActions.setGeoWebPluginState];
|
|
1821
|
-
var timeSeriesPresetChangeActions = [timeSeriesActions.addParameter, timeSeriesActions.addPlot, timeSeriesActions.deleteParameter, timeSeriesActions.deletePlot, timeSeriesActions.moveParameter, timeSeriesActions.movePlot, timeSeriesActions.toggleParameter, timeSeriesActions.togglePlot, timeSeriesActions.patchParameter, timeSeriesActions.updateTitle];
|
|
1822
|
-
var soundingsChangeActions = [soundingsActions.updateSelectedSource, soundingsActions.updateSelectedLocation, soundingsActions.updateDiagramType, soundingsActions.toggleLocationMarkers, soundingsActions.updateProfileDataPreferences, soundingsActions.changeSoundingPanelOrder, soundingsActions.toggleSoundingPanelVisibility, soundingsActions.setPanelIsOpen, soundingsActions.setPanelCustomWidth, soundingsActions.toggleLegendVisibility, soundingsActions.updateSelectedTime, soundingsActions.toggleTimeSliderVisibility];
|
|
1821
|
+
var timeSeriesPresetChangeActions = [timeSeriesActions.addParameter, timeSeriesActions.addPlot, timeSeriesActions.deleteParameter, timeSeriesActions.deletePlot, timeSeriesActions.moveParameter, timeSeriesActions.movePlot, timeSeriesActions.toggleParameter, timeSeriesActions.togglePlot, timeSeriesActions.patchParameter, timeSeriesActions.updateTitle, timeSeriesActions.setLocationMenuSizeAndPosition, timeSeriesActions.setLocationsDialogOpen];
|
|
1822
|
+
var soundingsChangeActions = [soundingsActions.updateSelectedSource, soundingsActions.updateSelectedLocation, soundingsActions.updateDiagramType, soundingsActions.toggleLocationMarkers, soundingsActions.updateProfileDataPreferences, soundingsActions.changeSoundingPanelOrder, soundingsActions.toggleSoundingPanelVisibility, soundingsActions.setPanelIsOpen, soundingsActions.setPanelCustomWidth, soundingsActions.toggleLegendVisibility, soundingsActions.updateSelectedTime, soundingsActions.toggleTimeSliderVisibility, soundingsActions.setLocationMenuSizeAndPosition, soundingsActions.setLocationsMenuOpen];
|
|
1823
1823
|
var supportedMapActionOrigins = [layerTypes.LayerActionOrigin.layerManager, layerTypes.LayerActionOrigin.legend, layerTypes.LayerActionOrigin.wmsLoader, mapEnums.MapActionOrigin.map];
|
|
1824
1824
|
var supportedTimeSeriesActionOrigins = [TimeSeriesTypes.TimeSeriesActionOrigin.timeSeriesManager, TimeSeriesTypes.TimeSeriesActionOrigin.timeSeriesSelect];
|
|
1825
1825
|
var supportedSoundingsActionOrigins = [SoundingsTypes.SoundingsActionOrigin.soundingsComponent, SoundingsTypes.SoundingsActionOrigin.soundingsManager];
|
|
@@ -6917,7 +6917,7 @@ var WorkspacePresetInfo = function WorkspacePresetInfo(_ref) {
|
|
|
6917
6917
|
color: 'text.secondary'
|
|
6918
6918
|
},
|
|
6919
6919
|
variant: "body2",
|
|
6920
|
-
children: shortDescription
|
|
6920
|
+
children: shortDescription ? linkifyText(shortDescription) : t('workspace-info-no-description')
|
|
6921
6921
|
})]
|
|
6922
6922
|
}), jsxs(Box, {
|
|
6923
6923
|
sx: {
|
|
@@ -6962,7 +6962,7 @@ var WorkspacePresetInfo = function WorkspacePresetInfo(_ref) {
|
|
|
6962
6962
|
overflowWrap: 'anywhere'
|
|
6963
6963
|
},
|
|
6964
6964
|
variant: "body2",
|
|
6965
|
-
children: abstractText
|
|
6965
|
+
children: abstractText ? linkifyText(abstractText) : t('workspace-info-no-abstract')
|
|
6966
6966
|
})
|
|
6967
6967
|
})]
|
|
6968
6968
|
}), jsxs(Box, {
|
|
@@ -7689,7 +7689,13 @@ var ViewPresetMenuListConnect = function ViewPresetMenuListConnect(_ref) {
|
|
|
7689
7689
|
case 'WarningsTimeline':
|
|
7690
7690
|
return currentWarningsPreset;
|
|
7691
7691
|
case 'TimeSeries':
|
|
7692
|
-
|
|
7692
|
+
{
|
|
7693
|
+
var state = store.getState();
|
|
7694
|
+
var isLocationsDialogOpen = uiSelectors.getisDialogOpen(state, uiTypes.DialogTypes.TimeseriesLocations) && uiSelectors.getSourcePanelId(state, uiTypes.DialogTypes.TimeseriesLocations) === panelId;
|
|
7695
|
+
return Object.assign({}, currentTimeSeriesPreset, {
|
|
7696
|
+
isLocationsDialogOpen: isLocationsDialogOpen
|
|
7697
|
+
});
|
|
7698
|
+
}
|
|
7693
7699
|
case 'Map':
|
|
7694
7700
|
return {
|
|
7695
7701
|
mapPreset: currentMapPreset,
|
|
@@ -9170,7 +9176,14 @@ var _WorkspaceViewTitleConnectNoMemo = function WorkspaceViewTitleConnectNoMemo(
|
|
|
9170
9176
|
case 'WarningsTimeline':
|
|
9171
9177
|
return currentWarningsPreset;
|
|
9172
9178
|
case 'TimeSeries':
|
|
9173
|
-
|
|
9179
|
+
{
|
|
9180
|
+
var state = store.getState();
|
|
9181
|
+
var preset = timeSeriesSelectors.getTimeSeriesPreset(state, panelId);
|
|
9182
|
+
var isLocationsDialogOpen = uiSelectors.getisDialogOpen(state, uiTypes.DialogTypes.TimeseriesLocations) && uiSelectors.getSourcePanelId(state, uiTypes.DialogTypes.TimeseriesLocations) === panelId;
|
|
9183
|
+
return Object.assign({}, preset, {
|
|
9184
|
+
isLocationsDialogOpen: isLocationsDialogOpen
|
|
9185
|
+
});
|
|
9186
|
+
}
|
|
9174
9187
|
case 'Soundings':
|
|
9175
9188
|
return soundingsSelectors.getSoundingsPreset(store.getState(), panelId);
|
|
9176
9189
|
case 'Map':
|
|
@@ -9760,6 +9773,11 @@ var WorkspaceView = function WorkspaceView(_ref) {
|
|
|
9760
9773
|
onClick: function onClick(event) {
|
|
9761
9774
|
return handleClickOnWindow(event, viewId);
|
|
9762
9775
|
},
|
|
9776
|
+
onFocus: function onFocus() {
|
|
9777
|
+
if (viewId !== activeWindowId) {
|
|
9778
|
+
setActiveWindowId(viewId);
|
|
9779
|
+
}
|
|
9780
|
+
},
|
|
9763
9781
|
sx: function sx(theme) {
|
|
9764
9782
|
return {
|
|
9765
9783
|
'> *': {
|