@opengeoweb/workspace 19.5.1 → 19.6.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 +44 -65
- package/dist/src/lib/store/store.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1816,7 +1816,7 @@ var viewPresetsAdapter = createEntityAdapter({
|
|
|
1816
1816
|
var initialState$1 = viewPresetsAdapter.getInitialState();
|
|
1817
1817
|
var warningsPresetChangeActions = [warningsFiltersActions.setWarningFilters, warningsFiltersActions.setExpandedSectionsForPanel];
|
|
1818
1818
|
var syncGroupChangeActions = [syncGroupsActions.syncGroupRemoveTarget, syncGroupsActions.syncGroupAddTarget];
|
|
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];
|
|
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.setLegendPositionSize, mapActions.setDockedLayerManagerSize, mapActions.setDockedLayerManagerPosition, mapActions.setDockedLayerManagerDimensions];
|
|
1820
1820
|
var pluginPresetChangeActions = [pluginsActions.setGeoWebPluginState];
|
|
1821
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
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];
|
|
@@ -2723,8 +2723,7 @@ var slice = createSlice({
|
|
|
2723
2723
|
var entity = draft.views.byId[panelId];
|
|
2724
2724
|
if (entity) {
|
|
2725
2725
|
Object.keys(viewPreset).forEach(function (key) {
|
|
2726
|
-
//
|
|
2727
|
-
// @ts-ignore - For some reason the entity has a type of never, which prevents access with key
|
|
2726
|
+
// @ts-expect-error - For some reason the entity has a type of never, which prevents access with key
|
|
2728
2727
|
entity[key] = viewPreset[key];
|
|
2729
2728
|
});
|
|
2730
2729
|
}
|
|
@@ -7201,6 +7200,7 @@ var WorkspaceSelectListRow = function WorkspaceSelectListRow(_ref) {
|
|
|
7201
7200
|
onOpenPresetInfo == null || onOpenPresetInfo(workspacePreset);
|
|
7202
7201
|
};
|
|
7203
7202
|
var canDelete = (workspacePreset.scope === SystemScope.user && (auth == null ? void 0 : auth.username) === workspacePreset.username || isAdmin) && Boolean(workspacePreset.id);
|
|
7203
|
+
var isNewPreset = !workspacePreset.id || workspacePreset.id === LOCAL_SOUNDINGS_ID;
|
|
7204
7204
|
var menuItems = [{
|
|
7205
7205
|
text: t('workspace-duplicate'),
|
|
7206
7206
|
action: function action() {
|
|
@@ -7215,7 +7215,8 @@ var WorkspaceSelectListRow = function WorkspaceSelectListRow(_ref) {
|
|
|
7215
7215
|
text: testIdPrefix === 'viewpreset' ? t('workspace-copy-viewpreset-to-clipboard') : t('workspace-copy-to-clipboard'),
|
|
7216
7216
|
action: function action() {
|
|
7217
7217
|
return onClick(WorkspacePresetAction.COPY_TO_CLIPBOARD);
|
|
7218
|
-
}
|
|
7218
|
+
},
|
|
7219
|
+
isDisabled: isNewPreset
|
|
7219
7220
|
}];
|
|
7220
7221
|
// Show "Edit" if it's your own user-scoped preset OR you're an admin
|
|
7221
7222
|
if (workspacePreset.scope === SystemScope.user && (auth == null ? void 0 : auth.username) === workspacePreset.username || isAdmin) {
|
|
@@ -7239,10 +7240,10 @@ var WorkspaceSelectListRow = function WorkspaceSelectListRow(_ref) {
|
|
|
7239
7240
|
var description = (_workspacePreset$desc = workspacePreset == null ? void 0 : workspacePreset.description) != null ? _workspacePreset$desc : '';
|
|
7240
7241
|
var tooltipContent = jsxs(Box, {
|
|
7241
7242
|
children: [jsx(Typography, {
|
|
7242
|
-
variant: "body2",
|
|
7243
7243
|
sx: {
|
|
7244
7244
|
fontWeight: 600
|
|
7245
7245
|
},
|
|
7246
|
+
variant: "body2",
|
|
7246
7247
|
children: workspacePreset.title
|
|
7247
7248
|
}), !!description && jsx(Typography, {
|
|
7248
7249
|
variant: "body2",
|
|
@@ -10174,7 +10175,7 @@ var WorkspaceOptionsConnect = function WorkspaceOptionsConnect(_ref) {
|
|
|
10174
10175
|
}, [dispatch, t]);
|
|
10175
10176
|
return jsxs(Fragment, {
|
|
10176
10177
|
children: [jsx(WorkspaceOptions, {
|
|
10177
|
-
handleCopyToClipboard:
|
|
10178
|
+
handleCopyToClipboard: onCopyToClipboard,
|
|
10178
10179
|
handleDelete: getOnDelete(),
|
|
10179
10180
|
handleEdit: handleEdit(),
|
|
10180
10181
|
handlePasteFromClipboard: onPasteFromClipboard,
|
|
@@ -10449,12 +10450,12 @@ var WorkspacePresetsForm = function WorkspacePresetsForm(_ref) {
|
|
|
10449
10450
|
}
|
|
10450
10451
|
}), jsxs(Typography, {
|
|
10451
10452
|
component: "div",
|
|
10452
|
-
variant: "caption",
|
|
10453
10453
|
sx: {
|
|
10454
10454
|
marginBottom: 2,
|
|
10455
10455
|
marginLeft: 1,
|
|
10456
10456
|
marginTop: 1
|
|
10457
10457
|
},
|
|
10458
|
+
variant: "caption",
|
|
10458
10459
|
children: [jsxs(Typography, {
|
|
10459
10460
|
color: "textSecondary",
|
|
10460
10461
|
component: "span",
|
|
@@ -11095,12 +11096,12 @@ var ViewPresetsForm = function ViewPresetsForm(_ref) {
|
|
|
11095
11096
|
}
|
|
11096
11097
|
}), jsxs(Typography, {
|
|
11097
11098
|
component: "div",
|
|
11098
|
-
variant: "caption",
|
|
11099
11099
|
sx: {
|
|
11100
11100
|
marginBottom: 2,
|
|
11101
11101
|
marginLeft: 1,
|
|
11102
11102
|
marginTop: 1
|
|
11103
11103
|
},
|
|
11104
|
+
variant: "caption",
|
|
11104
11105
|
children: [jsxs(Typography, {
|
|
11105
11106
|
color: "textSecondary",
|
|
11106
11107
|
component: "span",
|
|
@@ -11927,7 +11928,7 @@ var workspacePresets = [
|
|
|
11927
11928
|
useLatestReferenceTime: true
|
|
11928
11929
|
},
|
|
11929
11930
|
{
|
|
11930
|
-
name: "
|
|
11931
|
+
name: "air_pressure_msl",
|
|
11931
11932
|
service: "https://geoservices.knmi.nl/adaguc-server?DATASET=uwcw-ha-det-dini-5p5km",
|
|
11932
11933
|
dimensions: [
|
|
11933
11934
|
{
|
|
@@ -11960,7 +11961,7 @@ var workspacePresets = [
|
|
|
11960
11961
|
useLatestReferenceTime: true
|
|
11961
11962
|
},
|
|
11962
11963
|
{
|
|
11963
|
-
name: "
|
|
11964
|
+
name: "total_precipitation_rate_gl",
|
|
11964
11965
|
service: "https://geoservices.knmi.nl/adaguc-server?DATASET=uwcw-ha-det-dini-5p5km",
|
|
11965
11966
|
dimensions: [
|
|
11966
11967
|
{
|
|
@@ -12066,37 +12067,19 @@ var workspacePresets = [
|
|
|
12066
12067
|
plotPreset: {
|
|
12067
12068
|
mapId: "view_knmi_timeseries_dini_wms",
|
|
12068
12069
|
plots: [
|
|
12069
|
-
{
|
|
12070
|
-
title: "Air pressure",
|
|
12071
|
-
plotId: "Plot_1"
|
|
12072
|
-
},
|
|
12073
12070
|
{
|
|
12074
12071
|
title: "Air temperature",
|
|
12075
|
-
plotId: "
|
|
12076
|
-
},
|
|
12077
|
-
{
|
|
12078
|
-
title: "precipitation",
|
|
12079
|
-
plotId: "Plot_3"
|
|
12072
|
+
plotId: "Plot_1"
|
|
12080
12073
|
},
|
|
12081
12074
|
{
|
|
12082
12075
|
title: "Relative humidity",
|
|
12083
|
-
plotId: "
|
|
12076
|
+
plotId: "Plot_2"
|
|
12084
12077
|
}
|
|
12085
12078
|
],
|
|
12086
12079
|
parameters: [
|
|
12087
|
-
{
|
|
12088
|
-
unit: "hPa",
|
|
12089
|
-
plotId: "Plot_1",
|
|
12090
|
-
plotType: "line",
|
|
12091
|
-
serviceId: "knmi_geoservices_edr",
|
|
12092
|
-
collectionId: "uwcw-ha-det-dini-5p5km.hagl",
|
|
12093
|
-
propertyName: "air_pressure_at_mean_sea_level_hagl",
|
|
12094
|
-
id: "timeseriesparamid_2ceef258-edf0-4170-b8ec-a998e1175839",
|
|
12095
|
-
opacity: 70
|
|
12096
|
-
},
|
|
12097
12080
|
{
|
|
12098
12081
|
unit: "C",
|
|
12099
|
-
plotId: "
|
|
12082
|
+
plotId: "Plot_1",
|
|
12100
12083
|
plotType: "line",
|
|
12101
12084
|
serviceId: "knmi_geoservices_edr",
|
|
12102
12085
|
collectionId: "uwcw-ha-det-dini-5p5km.hagl",
|
|
@@ -12104,19 +12087,9 @@ var workspacePresets = [
|
|
|
12104
12087
|
id: "timeseriesparamid_fbbe34f2-2aaa-4636-9dae-6d9c6b8530db",
|
|
12105
12088
|
opacity: 70
|
|
12106
12089
|
},
|
|
12107
|
-
{
|
|
12108
|
-
unit: "mm/hr",
|
|
12109
|
-
plotId: "Plot_3",
|
|
12110
|
-
plotType: "bar",
|
|
12111
|
-
serviceId: "knmi_geoservices_edr",
|
|
12112
|
-
collectionId: "uwcw-ha-det-dini-5p5km.hagl",
|
|
12113
|
-
propertyName: "total_precipitation_rate_hagl",
|
|
12114
|
-
id: "timeseriesparamid_7a02c8f2-8401-4231-81d7-5b1dc9c24fb1",
|
|
12115
|
-
opacity: 70
|
|
12116
|
-
},
|
|
12117
12090
|
{
|
|
12118
12091
|
unit: "%",
|
|
12119
|
-
plotId: "
|
|
12092
|
+
plotId: "Plot_2",
|
|
12120
12093
|
plotType: "line",
|
|
12121
12094
|
serviceId: "knmi_geoservices_edr",
|
|
12122
12095
|
collectionId: "uwcw-ha-det-dini-5p5km.hagl",
|
|
@@ -12294,7 +12267,34 @@ var workspacePresets = [
|
|
|
12294
12267
|
views: [
|
|
12295
12268
|
{
|
|
12296
12269
|
mosaicNodeId: "view-1",
|
|
12297
|
-
|
|
12270
|
+
componentType: "HarmonieTempAndPrecipPreset",
|
|
12271
|
+
initialProps: {
|
|
12272
|
+
layers: {
|
|
12273
|
+
topRow: {
|
|
12274
|
+
service: "https://geoservices.knmi.nl/adaguc-server?DATASET=uwcw-ha-det-dini-5p5km",
|
|
12275
|
+
name: "air_temperature_hagl",
|
|
12276
|
+
style: "temperature_wow/shaded",
|
|
12277
|
+
id: "layerid_18",
|
|
12278
|
+
layerType: "mapLayer",
|
|
12279
|
+
enabled: true
|
|
12280
|
+
},
|
|
12281
|
+
bottomRow: {
|
|
12282
|
+
service: "https://geoservices.knmi.nl/adaguc-server?DATASET=uwcw-ha-det-dini-5p5km",
|
|
12283
|
+
name: "total_precipitation_rate_gl",
|
|
12284
|
+
id: "layerid_19",
|
|
12285
|
+
layerType: "mapLayer",
|
|
12286
|
+
enabled: true
|
|
12287
|
+
},
|
|
12288
|
+
topRowSyncGroups: [
|
|
12289
|
+
"timeLayerGroupA",
|
|
12290
|
+
"areaLayerGroupA"
|
|
12291
|
+
],
|
|
12292
|
+
bottomRowSyncGroups: [
|
|
12293
|
+
"timeLayerGroupA",
|
|
12294
|
+
"areaLayerGroupA"
|
|
12295
|
+
]
|
|
12296
|
+
}
|
|
12297
|
+
}
|
|
12298
12298
|
}
|
|
12299
12299
|
],
|
|
12300
12300
|
syncGroups: [
|
|
@@ -12339,7 +12339,7 @@ var workspacePresets = [
|
|
|
12339
12339
|
},
|
|
12340
12340
|
bottomRow: {
|
|
12341
12341
|
service: "https://geoservices.knmi.nl/adaguc-server?DATASET=uwcw-ha-det-dini-5p5km",
|
|
12342
|
-
name: "
|
|
12342
|
+
name: "total_precipitation_rate_gl",
|
|
12343
12343
|
id: "layerid_19",
|
|
12344
12344
|
layerType: "mapLayer",
|
|
12345
12345
|
enabled: true
|
|
@@ -12655,20 +12655,6 @@ var workspacePresets = [
|
|
|
12655
12655
|
mosaicNode: "radarView",
|
|
12656
12656
|
username: "user.name"
|
|
12657
12657
|
},
|
|
12658
|
-
{
|
|
12659
|
-
id: "workspaceHarmonie",
|
|
12660
|
-
title: "Harmonie workspace",
|
|
12661
|
-
scope: "system",
|
|
12662
|
-
abstract: "",
|
|
12663
|
-
viewType: "singleWindow",
|
|
12664
|
-
views: [
|
|
12665
|
-
{
|
|
12666
|
-
mosaicNodeId: "harmView",
|
|
12667
|
-
viewPresetId: "viewHarmonie"
|
|
12668
|
-
}
|
|
12669
|
-
],
|
|
12670
|
-
mosaicNode: "harmView"
|
|
12671
|
-
},
|
|
12672
12658
|
{
|
|
12673
12659
|
id: "capWorkspace",
|
|
12674
12660
|
title: "Cap Warnings",
|
|
@@ -12987,13 +12973,6 @@ var workspaceEndpoints = [http["delete"](/^.*\/workspacepreset\/(.*)$/, /*#__PUR
|
|
|
12987
12973
|
return _context6.a(2, HttpResponse.json(LABELS_CONFIG_DEFAULT));
|
|
12988
12974
|
}
|
|
12989
12975
|
}, _callee6);
|
|
12990
|
-
}))), http.get(/.*plugins\/metadata.*/, /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7() {
|
|
12991
|
-
return _regenerator().w(function (_context7) {
|
|
12992
|
-
while (1) switch (_context7.n) {
|
|
12993
|
-
case 0:
|
|
12994
|
-
return _context7.a(2, HttpResponse.json({}));
|
|
12995
|
-
}
|
|
12996
|
-
}, _callee7);
|
|
12997
12976
|
})))];
|
|
12998
12977
|
|
|
12999
12978
|
export { ALL_COMPONENT_TYPES, AVIATION_COMPONENT_TYPES, CAP_COMPONENT_TYPES, ComponentsLookUpWrapper, DemoWrapper, PresetAction, SUPPORTED_COMPONENT_TYPES, SUPPORTED_TIMESERIES_COMPONENT_TYPES, ViewPresetErrorComponent, ViewPresetErrorType, WARNING_LIST_COMPONENT_TYPES, WORKSPACE_NAMESPACE, WorkspaceDetail, WorkspaceErrorType, WorkspaceI18nProvider, WorkspacePresetAction, WorkspaceStoreWrapper, WorkspaceThemeProvider, WorkspaceTopBar, WorkspaceViewConnect, WorkspaceWrapperProviderWithStore, createBalancedMosaicNode, createCustomEmptyMapWorkspace, defaultAuthConfig, defaultViewPresetsFilters, getEmptyMapWorkspace, getWorkspaceRouteUrl, selectors$1 as selectors, viewPresetActions, viewPresetsListener, viewPresetsReducer, workspaceActions, workspaceEndpoints, workspaceListActions, workspaceListListener, workspaceListReducer, workspaceListener, workspaceMiddlewares, workspaceReducer, workspaceReducersMap, routes as workspaceRoutes, workspaceTranslations };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Middleware, ReducersMapObject, Store } from '@reduxjs/toolkit';
|
|
2
2
|
import type { SnackbarModuleStore } from '@opengeoweb/snackbar';
|
|
3
|
+
import type { SoundingsModuleState } from '@opengeoweb/soundings';
|
|
3
4
|
import type { WebMapStateModuleState, SynchronizationGroupModuleState, UIModuleState } from '@opengeoweb/store';
|
|
4
5
|
import type { WorkspaceModuleStore } from './types';
|
|
5
6
|
export declare const workspaceReducersMap: ReducersMapObject;
|
|
6
7
|
export declare const workspaceMiddlewares: Middleware[];
|
|
7
|
-
export declare const createMockStore: (mockState?: WebMapStateModuleState | WorkspaceModuleStore | UIModuleState | SynchronizationGroupModuleState | SnackbarModuleStore) => Store;
|
|
8
|
+
export declare const createMockStore: (mockState?: WebMapStateModuleState | WorkspaceModuleStore | UIModuleState | SynchronizationGroupModuleState | SnackbarModuleStore | SoundingsModuleState) => Store;
|