@opengeoweb/workspace 12.12.0 → 12.13.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 +44 -26
- package/package.json +15 -15
package/index.esm.js
CHANGED
|
@@ -1183,7 +1183,7 @@ var viewPresetsAdapter = createEntityAdapter({
|
|
|
1183
1183
|
var initialState$2 = viewPresetsAdapter.getInitialState();
|
|
1184
1184
|
var warningsPresetChangeActions = [publicWarningActions.setWarningFilters];
|
|
1185
1185
|
var syncGroupChangeActions = [syncGroupsActions.syncGroupRemoveTarget, syncGroupsActions.syncGroupAddTarget];
|
|
1186
|
-
var mapPresetChangeActions = [layerActions.setBaseLayers, layerActions.layerDelete, layerActions.addLayer, layerActions.duplicateMapLayer, layerActions.layerChangeEnabled, layerActions.layerChangeName, layerActions.layerChangeStyle, layerActions.layerChangeOpacity, layerActions.layerChangeDimension, 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, uiActions.setActiveMapIdForDialog, uiActions.setToggleOpenDialog, genericActions.setBbox, mapActions.setBbox];
|
|
1186
|
+
var mapPresetChangeActions = [layerActions.setBaseLayers, layerActions.layerDelete, layerActions.addLayer, layerActions.duplicateMapLayer, layerActions.layerChangeEnabled, layerActions.layerChangeName, layerActions.layerChangeStyle, layerActions.layerChangeOpacity, layerActions.layerChangeDimension, 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];
|
|
1187
1187
|
var timeSeriesPresetChangeActions = [timeSeriesActions.addParameter, timeSeriesActions.addPlot, timeSeriesActions.deleteParameter, timeSeriesActions.deletePlot, timeSeriesActions.moveParameter, timeSeriesActions.movePlot, timeSeriesActions.toggleParameter, timeSeriesActions.togglePlot, timeSeriesActions.patchParameter, timeSeriesActions.updateTitle];
|
|
1188
1188
|
var supportedMapActionOrigins = [layerTypes.LayerActionOrigin.layerManager, layerTypes.LayerActionOrigin.wmsLoader, mapEnums.MapActionOrigin.map];
|
|
1189
1189
|
var supportedTimeSeriesActionOrigins = [TimeSeriesTypes.TimeSeriesActionOrigin.timeSeriesManager, TimeSeriesTypes.TimeSeriesActionOrigin.timeSeriesSelect];
|
|
@@ -7202,29 +7202,46 @@ var WorkspaceViewTitleConnectNoMemo = function WorkspaceViewTitleConnectNoMemo(_
|
|
|
7202
7202
|
var isUserPresetCreator = (auth == null ? void 0 : auth.username) === viewpresetCreator;
|
|
7203
7203
|
var currentViewScope = viewScope || 'system';
|
|
7204
7204
|
var isEnabled = (currentViewScope === 'user' && isUserPresetCreator || isAdmin && currentViewScope === 'system') && activeViewPresetId !== '' && isLoggedIn;
|
|
7205
|
-
return
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7205
|
+
return (
|
|
7206
|
+
// Zero-length string assignment prevents showing title as an empty object '[object Object]'.
|
|
7207
|
+
// in child components. This is a workaround for a limitation in the Tooltip component.
|
|
7208
|
+
jsxs(Grid, {
|
|
7209
|
+
title: "",
|
|
7210
|
+
sx: {
|
|
7211
|
+
display: 'flex',
|
|
7212
|
+
flexGrow: 3,
|
|
7213
|
+
flexDirection: 'row',
|
|
7214
|
+
justifyContent: 'center',
|
|
7215
|
+
alignItems: 'center'
|
|
7216
|
+
},
|
|
7217
|
+
children: [jsx(CustomIconButton, {
|
|
7218
|
+
"data-testid": "open-viewpresets",
|
|
7219
|
+
sx: style,
|
|
7220
|
+
variant: "tool",
|
|
7221
|
+
onClick: onClickOpenViewPreset,
|
|
7222
|
+
tooltipTitle: t('workspace-viewpreset-menu'),
|
|
7223
|
+
isSelected: isViewPresetDialogOpen,
|
|
7224
|
+
children: presetIcon
|
|
7225
|
+
}), jsx(WorkspaceOptions, {
|
|
7226
|
+
panelId: panelId,
|
|
7227
|
+
title: fullTitle,
|
|
7228
|
+
hasChanges: hasViewPresetChanges || isNewActive,
|
|
7229
|
+
handleSave: isEnabled ? onSave : undefined,
|
|
7230
|
+
handleDelete: isEnabled ? onDelete : undefined,
|
|
7231
|
+
handleSaveAs: isLoggedIn ? onSaveAs : undefined,
|
|
7232
|
+
handleEdit: isEnabled ? onEdit : undefined,
|
|
7233
|
+
handleReset: onReset,
|
|
7234
|
+
id: viewPresetOptionId
|
|
7235
|
+
}), jsx(Box, {
|
|
7236
|
+
sx: {
|
|
7237
|
+
pt: 0.72
|
|
7238
|
+
},
|
|
7239
|
+
children: jsx(LoadingIndicatorConnect, {
|
|
7240
|
+
panelId: panelId
|
|
7241
|
+
})
|
|
7242
|
+
})]
|
|
7243
|
+
})
|
|
7244
|
+
);
|
|
7228
7245
|
};
|
|
7229
7246
|
var WorkspaceViewTitleConnect = /*#__PURE__*/React.memo(WorkspaceViewTitleConnectNoMemo);
|
|
7230
7247
|
|
|
@@ -8865,11 +8882,12 @@ var WorkspacePresetsFormDialog = function WorkspacePresetsFormDialog(_ref) {
|
|
|
8865
8882
|
reset = _useFormContext.reset;
|
|
8866
8883
|
var _useWorkspaceTranslat = useWorkspaceTranslation(),
|
|
8867
8884
|
t = _useWorkspaceTranslat.t;
|
|
8885
|
+
var wasOpen = usePrevious(isOpen);
|
|
8868
8886
|
React__default.useEffect(function () {
|
|
8869
|
-
if (isOpen) {
|
|
8887
|
+
if (isOpen && wasOpen !== isOpen) {
|
|
8870
8888
|
reset(formValues);
|
|
8871
8889
|
}
|
|
8872
|
-
}, [formValues, reset, isOpen]);
|
|
8890
|
+
}, [formValues, reset, isOpen, wasOpen]);
|
|
8873
8891
|
var getConfirmLabel = function getConfirmLabel(action) {
|
|
8874
8892
|
switch (action) {
|
|
8875
8893
|
case WorkspacePresetAction.DELETE:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/workspace",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.13.0",
|
|
4
4
|
"description": "GeoWeb Workspace library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -9,30 +9,30 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"react-redux": "^9.2.0",
|
|
12
|
-
"@opengeoweb/shared": "12.
|
|
13
|
-
"@opengeoweb/store": "12.
|
|
14
|
-
"@opengeoweb/api": "12.
|
|
12
|
+
"@opengeoweb/shared": "12.13.0",
|
|
13
|
+
"@opengeoweb/store": "12.13.0",
|
|
14
|
+
"@opengeoweb/api": "12.13.0",
|
|
15
15
|
"react-hook-form": "^7.50.1",
|
|
16
|
-
"@opengeoweb/theme": "12.
|
|
16
|
+
"@opengeoweb/theme": "12.13.0",
|
|
17
17
|
"@reduxjs/toolkit": "^2.6.1",
|
|
18
|
-
"@opengeoweb/snackbar": "12.
|
|
18
|
+
"@opengeoweb/snackbar": "12.13.0",
|
|
19
19
|
"react-window": "^1.8.10",
|
|
20
20
|
"lodash": "^4.17.21",
|
|
21
21
|
"axios": "^1.7.7",
|
|
22
22
|
"react-virtualized-auto-sizer": "^1.0.21",
|
|
23
23
|
"react-mosaic-component": "^6.1.0",
|
|
24
|
-
"@opengeoweb/form-fields": "12.
|
|
25
|
-
"@opengeoweb/timeseries": "12.
|
|
26
|
-
"@opengeoweb/authentication": "12.
|
|
27
|
-
"@opengeoweb/core": "12.
|
|
28
|
-
"@opengeoweb/taf": "12.
|
|
29
|
-
"@opengeoweb/sigmet-airmet": "12.
|
|
30
|
-
"@opengeoweb/warnings": "12.
|
|
31
|
-
"@opengeoweb/spaceweather": "12.
|
|
24
|
+
"@opengeoweb/form-fields": "12.13.0",
|
|
25
|
+
"@opengeoweb/timeseries": "12.13.0",
|
|
26
|
+
"@opengeoweb/authentication": "12.13.0",
|
|
27
|
+
"@opengeoweb/core": "12.13.0",
|
|
28
|
+
"@opengeoweb/taf": "12.13.0",
|
|
29
|
+
"@opengeoweb/sigmet-airmet": "12.13.0",
|
|
30
|
+
"@opengeoweb/warnings": "12.13.0",
|
|
31
|
+
"@opengeoweb/spaceweather": "12.13.0",
|
|
32
32
|
"i18next": "^25.0.1",
|
|
33
33
|
"react-i18next": "^15.1.1",
|
|
34
34
|
"@mui/material": "^7.0.1",
|
|
35
|
-
"@opengeoweb/webmap-react": "12.
|
|
35
|
+
"@opengeoweb/webmap-react": "12.13.0",
|
|
36
36
|
"@tanstack/react-query": "^5.69.2"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|