@opengeoweb/workspace 9.35.1-spike-oltanstack.0 → 9.37.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
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { createEntityAdapter, createSlice, createSelector, createListenerMiddleware } from '@reduxjs/toolkit';
|
|
2
|
-
import { syncGroupsTypes, syncGroupsActions, layerActions, mapStoreActions, uiActions, genericActions, mapActions, layerTypes, mapEnums, selectorMemoizationOptions, genericSelectors, mapSelectors, syncGroupsSelectors, routerActions,
|
|
1
|
+
import { createEntityAdapter, createSlice, createSelector, createListenerMiddleware, combineReducers, configureStore } from '@reduxjs/toolkit';
|
|
2
|
+
import { syncGroupsTypes, syncGroupsActions, layerActions, mapStoreActions, uiActions, genericActions, mapActions, layerTypes, mapEnums, selectorMemoizationOptions, genericSelectors, mapSelectors, syncGroupsSelectors, routerActions, coreModuleReducersMap, routerReducersMap, coreModuleMiddlewares, routerMiddlewares, linkComponentTypesConstants, uiTypes, loadingIndicatorSelectors, uiSelectors } from '@opengeoweb/store';
|
|
3
3
|
import { createApiInstance, createNonAuthApiInstance, getApi, createFakeApiInstance, ApiProvider, useApiContext } from '@opengeoweb/api';
|
|
4
|
-
import _, { chunk, cloneDeep, isEmpty, isEqual, isString } from 'lodash';
|
|
4
|
+
import _, { chunk, cloneDeep, pick, isEmpty, isEqual, isString } from 'lodash';
|
|
5
5
|
import { getLeaves, MosaicContext, getAndAssertNodeAtPathExists, createBalancedTreeFromLeaves, MosaicWindow, Mosaic } from 'react-mosaic-component';
|
|
6
|
-
import { timeSeriesActions, TimeSeriesTypes, timeSeriesSelectors,
|
|
7
|
-
import { PROJECTION, getAxiosErrorMessage, isAxiosAuthError, isAxiosError as isAxiosError$1, SHARED_NAMESPACE, sharedTranslations,
|
|
8
|
-
import { snackbarTypes, snackbarActions, SnackbarWrapperConnect } from '@opengeoweb/snackbar';
|
|
6
|
+
import { timeSeriesActions, TimeSeriesTypes, timeSeriesSelectors, timeSeriesReducersMap, timeSeriesMiddlewares } from '@opengeoweb/timeseries';
|
|
7
|
+
import { PROJECTION, getAxiosErrorMessage, isAxiosAuthError, isAxiosError as isAxiosError$1, SHARED_NAMESPACE, sharedTranslations, ConfirmationServiceProvider, CustomIconButton, useConfirmationDialog, AlertBanner, CustomTooltip, SearchHighlight, ToggleMenu, DEFAULT_FILTER_HEIGHT, usePrevious, Filter, Resizable, ToolContainer, renderCounter, CustomToggleButton, ConfirmationDialog } from '@opengeoweb/shared';
|
|
8
|
+
import { snackbarTypes, snackbarActions, snackbarReducersMap, snackbarMiddlewares, SnackbarWrapperConnect } from '@opengeoweb/snackbar';
|
|
9
9
|
import { isAxiosError } from 'axios';
|
|
10
10
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
11
|
-
import { ThemeWrapper, lightTheme, Link, LinkOff, SplitVertical, SplitHorizontal, Expand, UnExpand, Close, Delete, Preset, PresetWorkspace, PresetTiles, CloudLoading, CloudIdle, WebAssetOff, Exclamation } from '@opengeoweb/theme';
|
|
11
|
+
import { ThemeWrapper, lightTheme, Link, LinkOff, SplitVertical, SplitHorizontal, Expand, UnExpand, Close, Delete, Preset, PresetWorkspace, PresetTiles, BackdropStyle, BackdropElement, CloudLoading, CloudIdle, WebAssetOff, Exclamation } from '@opengeoweb/theme';
|
|
12
12
|
import { Provider, useDispatch, useSelector, useStore, shallowEqual } from 'react-redux';
|
|
13
13
|
import { initReactI18next, useTranslation, I18nextProvider } from 'react-i18next';
|
|
14
14
|
import { AuthenticationProvider, useAuthenticationContext, GEOWEB_ROLE_PRESETS_ADMIN } from '@opengeoweb/authentication';
|
|
15
|
-
import { createStore } from '@redux-eggs/redux-toolkit';
|
|
16
|
-
import { produce } from 'immer';
|
|
17
15
|
import i18n from 'i18next';
|
|
18
16
|
import { WEBMAP_REACT_NAMESPACE, webmapReactTranslations } from '@opengeoweb/webmap-react';
|
|
19
17
|
import { CORE_NAMESPACE, coreTranslations } from '@opengeoweb/core';
|
|
20
18
|
import { FORM_FIELDS_NAMESPACE, formFieldsTranslations, ReactHookFormTextField, ReactHookFormHiddenInput, ReactHookFormProvider, defaultFormOptions } from '@opengeoweb/form-fields';
|
|
19
|
+
import { produce } from 'immer';
|
|
21
20
|
import * as React from 'react';
|
|
22
21
|
import React__default, { useCallback } from 'react';
|
|
23
22
|
import { Menu, Typography, List, ListItem, ListItemButton, ListItemIcon, Checkbox, ListItemText, LinearProgress, Grid2, Box, Backdrop, ListSubheader, MenuItem, useTheme, FormGroup, FormControlLabel, Tabs } from '@mui/material';
|
|
@@ -2289,7 +2288,7 @@ var getWorkspaceData = createSelector(getWorkspaceState, getViewPresetsStore, ge
|
|
|
2289
2288
|
viewPresetId: viewPresetId
|
|
2290
2289
|
};
|
|
2291
2290
|
});
|
|
2292
|
-
var linkedState = syncGroupsStore == null ? void 0 : syncGroupsStore.linkedState.links;
|
|
2291
|
+
var linkedState = pick(syncGroupsStore == null ? void 0 : syncGroupsStore.linkedState.links, store.views.allIds);
|
|
2293
2292
|
return {
|
|
2294
2293
|
id: store.id,
|
|
2295
2294
|
title: store.title,
|
|
@@ -4707,11 +4706,14 @@ workspaceListener.startListening({
|
|
|
4707
4706
|
allSyncGroups.map(function (syncGroup) {
|
|
4708
4707
|
return listenerApi.dispatch(syncGroupsActions.syncGroupAddGroup(syncGroup));
|
|
4709
4708
|
});
|
|
4709
|
+
listenerApi.dispatch(genericActions.setLinkedMap({
|
|
4710
|
+
newLinks: payload.workspacePreset.linking || {}
|
|
4711
|
+
}));
|
|
4710
4712
|
isTimeScrollingEnabled = payload.workspacePreset.isTimeScrollingEnabled || false;
|
|
4711
4713
|
listenerApi.dispatch(syncGroupsActions.syncGroupToggleIsTimeScrollingEnabled({
|
|
4712
4714
|
isTimeScrollingEnabled: isTimeScrollingEnabled
|
|
4713
4715
|
}));
|
|
4714
|
-
case
|
|
4716
|
+
case 11:
|
|
4715
4717
|
case "end":
|
|
4716
4718
|
return _context3.stop();
|
|
4717
4719
|
}
|
|
@@ -4887,13 +4889,10 @@ workspaceListener.startListening({
|
|
|
4887
4889
|
};
|
|
4888
4890
|
}()));
|
|
4889
4891
|
case 19:
|
|
4890
|
-
|
|
4891
|
-
newLinks: workspaceData.linking || {}
|
|
4892
|
-
}));
|
|
4893
|
-
_context8.next = 26;
|
|
4892
|
+
_context8.next = 25;
|
|
4894
4893
|
break;
|
|
4895
|
-
case
|
|
4896
|
-
_context8.prev =
|
|
4894
|
+
case 21:
|
|
4895
|
+
_context8.prev = 21;
|
|
4897
4896
|
_context8.t0 = _context8["catch"](3);
|
|
4898
4897
|
errorType = _context8.t0.message === ERROR_NOT_FOUND ? WorkspaceErrorType.NOT_FOUND : WorkspaceErrorType.GENERIC;
|
|
4899
4898
|
listenerApi.dispatch(workspaceActions.errorWorkspace({
|
|
@@ -4903,11 +4902,11 @@ workspaceListener.startListening({
|
|
|
4903
4902
|
type: errorType
|
|
4904
4903
|
}
|
|
4905
4904
|
}));
|
|
4906
|
-
case
|
|
4905
|
+
case 25:
|
|
4907
4906
|
case "end":
|
|
4908
4907
|
return _context8.stop();
|
|
4909
4908
|
}
|
|
4910
|
-
}, _callee8, null, [[3,
|
|
4909
|
+
}, _callee8, null, [[3, 21]]);
|
|
4911
4910
|
}));
|
|
4912
4911
|
function effect(_x12, _x13) {
|
|
4913
4912
|
return _effect5.apply(this, arguments);
|
|
@@ -5911,18 +5910,19 @@ workspaceListListener.startListening({
|
|
|
5911
5910
|
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
5912
5911
|
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
5913
5912
|
* */
|
|
5913
|
+
var workspaceReducersMap = {
|
|
5914
|
+
workspace: reducer$1,
|
|
5915
|
+
workspaceList: reducer$3,
|
|
5916
|
+
viewPresetsList: reducer,
|
|
5917
|
+
viewPresets: reducer$2
|
|
5918
|
+
};
|
|
5919
|
+
var workspaceMiddlewares = [viewPresetsListener.middleware, workspaceListener.middleware, workspaceListListener.middleware];
|
|
5914
5920
|
var workspaceModuleConfig = {
|
|
5915
5921
|
id: 'workspace-module',
|
|
5916
|
-
reducersMap:
|
|
5917
|
-
|
|
5918
|
-
workspaceList: reducer$3,
|
|
5919
|
-
viewPresetsList: reducer,
|
|
5920
|
-
viewPresets: reducer$2
|
|
5921
|
-
},
|
|
5922
|
-
middlewares: [viewPresetsListener.middleware, workspaceListener.middleware, workspaceListListener.middleware]
|
|
5922
|
+
reducersMap: workspaceReducersMap,
|
|
5923
|
+
middlewares: workspaceMiddlewares
|
|
5923
5924
|
};
|
|
5924
5925
|
|
|
5925
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
5926
5926
|
/* *
|
|
5927
5927
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5928
5928
|
* you may not use this file except in compliance with the License.
|
|
@@ -5940,34 +5940,29 @@ var workspaceModuleConfig = {
|
|
|
5940
5940
|
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
5941
5941
|
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
5942
5942
|
* */
|
|
5943
|
-
var
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
draftState['services'].byId[service.id].layers =
|
|
5952
|
-
// @ts-ignore
|
|
5953
|
-
service.layers.length;
|
|
5954
|
-
});
|
|
5955
|
-
}
|
|
5956
|
-
});
|
|
5957
|
-
}
|
|
5958
|
-
};
|
|
5959
|
-
var store = createStore({
|
|
5960
|
-
defaultMiddlewareOptions: {
|
|
5961
|
-
serializableCheck: {
|
|
5962
|
-
warnAfter: 128
|
|
5943
|
+
var WORKSPACE_NAMESPACE = 'workspace';
|
|
5944
|
+
var initWorkspaceTestI18n = function initWorkspaceTestI18n() {
|
|
5945
|
+
var _en, _fi, _no, _nl;
|
|
5946
|
+
void i18n.use(initReactI18next).init({
|
|
5947
|
+
lng: 'en',
|
|
5948
|
+
ns: WORKSPACE_NAMESPACE,
|
|
5949
|
+
interpolation: {
|
|
5950
|
+
escapeValue: false
|
|
5963
5951
|
},
|
|
5964
|
-
|
|
5965
|
-
|
|
5952
|
+
resources: {
|
|
5953
|
+
en: (_en = {}, _en[WORKSPACE_NAMESPACE] = workspaceTranslations.en, _en[SHARED_NAMESPACE] = sharedTranslations.en, _en[CORE_NAMESPACE] = coreTranslations.en, _en[WEBMAP_REACT_NAMESPACE] = webmapReactTranslations.en, _en[FORM_FIELDS_NAMESPACE] = formFieldsTranslations.en, _en),
|
|
5954
|
+
fi: (_fi = {}, _fi[WORKSPACE_NAMESPACE] = workspaceTranslations.fi, _fi[SHARED_NAMESPACE] = sharedTranslations.fi, _fi[CORE_NAMESPACE] = coreTranslations.fi, _fi[WEBMAP_REACT_NAMESPACE] = webmapReactTranslations.fi, _fi[FORM_FIELDS_NAMESPACE] = formFieldsTranslations.fi, _fi),
|
|
5955
|
+
no: (_no = {}, _no[WORKSPACE_NAMESPACE] = workspaceTranslations.no, _no[SHARED_NAMESPACE] = sharedTranslations.no, _no[CORE_NAMESPACE] = coreTranslations.no, _no[WEBMAP_REACT_NAMESPACE] = webmapReactTranslations.no, _no[FORM_FIELDS_NAMESPACE] = formFieldsTranslations.no, _no),
|
|
5956
|
+
nl: (_nl = {}, _nl[WORKSPACE_NAMESPACE] = workspaceTranslations.nl, _nl[SHARED_NAMESPACE] = sharedTranslations.nl, _nl[CORE_NAMESPACE] = coreTranslations.nl, _nl[WEBMAP_REACT_NAMESPACE] = webmapReactTranslations.nl, _nl[FORM_FIELDS_NAMESPACE] = formFieldsTranslations.nl, _nl)
|
|
5966
5957
|
}
|
|
5967
|
-
}
|
|
5968
|
-
|
|
5969
|
-
|
|
5958
|
+
});
|
|
5959
|
+
};
|
|
5960
|
+
var ns = [WORKSPACE_NAMESPACE, SHARED_NAMESPACE];
|
|
5961
|
+
var useWorkspaceTranslation = function useWorkspaceTranslation() {
|
|
5962
|
+
return useTranslation(ns);
|
|
5963
|
+
};
|
|
5970
5964
|
|
|
5965
|
+
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
5971
5966
|
/* *
|
|
5972
5967
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5973
5968
|
* you may not use this file except in compliance with the License.
|
|
@@ -5985,26 +5980,32 @@ var store = createStore({
|
|
|
5985
5980
|
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
5986
5981
|
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
5987
5982
|
* */
|
|
5988
|
-
var
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5983
|
+
var devToolsStateSanitizer = {
|
|
5984
|
+
stateSanitizer: function stateSanitizer(state) {
|
|
5985
|
+
return produce(state, function (draftState) {
|
|
5986
|
+
// @ts-ignore
|
|
5987
|
+
if (state['services']) {
|
|
5988
|
+
// @ts-ignore
|
|
5989
|
+
Object.values(state['services'].byId).forEach(function (service) {
|
|
5990
|
+
// @ts-ignore
|
|
5991
|
+
draftState['services'].byId[service.id].layers =
|
|
5992
|
+
// @ts-ignore
|
|
5993
|
+
service.layers.length;
|
|
5994
|
+
});
|
|
5995
|
+
}
|
|
5996
|
+
});
|
|
5997
|
+
}
|
|
5998
|
+
};
|
|
5999
|
+
var rootReducer = combineReducers(Object.assign({}, coreModuleReducersMap, workspaceReducersMap, timeSeriesReducersMap, snackbarReducersMap, routerReducersMap));
|
|
6000
|
+
var createTestWorkspaceStore = function createTestWorkspaceStore() {
|
|
6001
|
+
var store = configureStore({
|
|
6002
|
+
reducer: rootReducer,
|
|
6003
|
+
middleware: function middleware(getDefaultMiddleware) {
|
|
6004
|
+
return getDefaultMiddleware().concat([].concat(coreModuleMiddlewares, workspaceMiddlewares, timeSeriesMiddlewares, snackbarMiddlewares, routerMiddlewares));
|
|
5996
6005
|
},
|
|
5997
|
-
|
|
5998
|
-
en: (_en = {}, _en[WORKSPACE_NAMESPACE] = workspaceTranslations.en, _en[SHARED_NAMESPACE] = sharedTranslations.en, _en[CORE_NAMESPACE] = coreTranslations.en, _en[WEBMAP_REACT_NAMESPACE] = webmapReactTranslations.en, _en[FORM_FIELDS_NAMESPACE] = formFieldsTranslations.en, _en),
|
|
5999
|
-
fi: (_fi = {}, _fi[WORKSPACE_NAMESPACE] = workspaceTranslations.fi, _fi[SHARED_NAMESPACE] = sharedTranslations.fi, _fi[CORE_NAMESPACE] = coreTranslations.fi, _fi[WEBMAP_REACT_NAMESPACE] = webmapReactTranslations.fi, _fi[FORM_FIELDS_NAMESPACE] = formFieldsTranslations.fi, _fi),
|
|
6000
|
-
no: (_no = {}, _no[WORKSPACE_NAMESPACE] = workspaceTranslations.no, _no[SHARED_NAMESPACE] = sharedTranslations.no, _no[CORE_NAMESPACE] = coreTranslations.no, _no[WEBMAP_REACT_NAMESPACE] = webmapReactTranslations.no, _no[FORM_FIELDS_NAMESPACE] = formFieldsTranslations.no, _no),
|
|
6001
|
-
nl: (_nl = {}, _nl[WORKSPACE_NAMESPACE] = workspaceTranslations.nl, _nl[SHARED_NAMESPACE] = sharedTranslations.nl, _nl[CORE_NAMESPACE] = coreTranslations.nl, _nl[WEBMAP_REACT_NAMESPACE] = webmapReactTranslations.nl, _nl[FORM_FIELDS_NAMESPACE] = formFieldsTranslations.nl, _nl)
|
|
6002
|
-
}
|
|
6006
|
+
devTools: devToolsStateSanitizer
|
|
6003
6007
|
});
|
|
6004
|
-
|
|
6005
|
-
var ns = [WORKSPACE_NAMESPACE, SHARED_NAMESPACE];
|
|
6006
|
-
var useWorkspaceTranslation = function useWorkspaceTranslation() {
|
|
6007
|
-
return useTranslation(ns);
|
|
6008
|
+
return store;
|
|
6008
6009
|
};
|
|
6009
6010
|
|
|
6010
6011
|
var WorkspaceThemeProvider = function WorkspaceThemeProvider(_ref) {
|
|
@@ -6016,16 +6017,8 @@ var WorkspaceThemeProvider = function WorkspaceThemeProvider(_ref) {
|
|
|
6016
6017
|
children: children
|
|
6017
6018
|
});
|
|
6018
6019
|
};
|
|
6019
|
-
var
|
|
6020
|
-
var
|
|
6021
|
-
children = _ref2.children;
|
|
6022
|
-
return jsx(WorkspaceThemeProvider, {
|
|
6023
|
-
theme: theme,
|
|
6024
|
-
children: children
|
|
6025
|
-
});
|
|
6026
|
-
});
|
|
6027
|
-
var DemoWrapper = function DemoWrapper(_ref3) {
|
|
6028
|
-
var props = Object.assign({}, (_objectDestructuringEmpty(_ref3), _ref3));
|
|
6020
|
+
var DemoWrapper = function DemoWrapper(_ref2) {
|
|
6021
|
+
var props = Object.assign({}, (_objectDestructuringEmpty(_ref2), _ref2));
|
|
6029
6022
|
return jsx(WorkspaceI18nProvider, {
|
|
6030
6023
|
children: jsx(WorkspaceThemeProvider, Object.assign({}, props))
|
|
6031
6024
|
});
|
|
@@ -6045,15 +6038,15 @@ var defaultAuthConfig = {
|
|
|
6045
6038
|
},
|
|
6046
6039
|
sessionStorageProvider: null
|
|
6047
6040
|
};
|
|
6048
|
-
var WorkspaceWrapperProviderWithStore = function WorkspaceWrapperProviderWithStore(
|
|
6049
|
-
var children =
|
|
6050
|
-
|
|
6051
|
-
store
|
|
6052
|
-
|
|
6053
|
-
createApi$1 =
|
|
6054
|
-
theme =
|
|
6055
|
-
|
|
6056
|
-
auth =
|
|
6041
|
+
var WorkspaceWrapperProviderWithStore = function WorkspaceWrapperProviderWithStore(_ref3) {
|
|
6042
|
+
var children = _ref3.children,
|
|
6043
|
+
_ref3$store = _ref3.store,
|
|
6044
|
+
store = _ref3$store === void 0 ? createTestWorkspaceStore() : _ref3$store,
|
|
6045
|
+
_ref3$createApi = _ref3.createApi,
|
|
6046
|
+
createApi$1 = _ref3$createApi === void 0 ? createApi : _ref3$createApi,
|
|
6047
|
+
theme = _ref3.theme,
|
|
6048
|
+
_ref3$auth = _ref3.auth,
|
|
6049
|
+
auth = _ref3$auth === void 0 ? defaultAuthConfig : _ref3$auth;
|
|
6057
6050
|
return jsx(WorkspaceI18nProvider, {
|
|
6058
6051
|
children: jsx(AuthenticationProvider, {
|
|
6059
6052
|
value: auth,
|
|
@@ -6061,8 +6054,8 @@ var WorkspaceWrapperProviderWithStore = function WorkspaceWrapperProviderWithSto
|
|
|
6061
6054
|
createApi: createApi$1,
|
|
6062
6055
|
name: API_NAME,
|
|
6063
6056
|
children: jsx(Provider, {
|
|
6064
|
-
store: store
|
|
6065
|
-
children: jsx(
|
|
6057
|
+
store: store,
|
|
6058
|
+
children: jsx(WorkspaceThemeProvider, {
|
|
6066
6059
|
theme: theme,
|
|
6067
6060
|
children: jsx(SnackbarWrapperConnect, {
|
|
6068
6061
|
children: jsx(ConfirmationServiceProvider, {
|
|
@@ -6075,8 +6068,8 @@ var WorkspaceWrapperProviderWithStore = function WorkspaceWrapperProviderWithSto
|
|
|
6075
6068
|
})
|
|
6076
6069
|
});
|
|
6077
6070
|
};
|
|
6078
|
-
var WorkspaceI18nProvider = function WorkspaceI18nProvider(
|
|
6079
|
-
var children =
|
|
6071
|
+
var WorkspaceI18nProvider = function WorkspaceI18nProvider(_ref4) {
|
|
6072
|
+
var children = _ref4.children;
|
|
6080
6073
|
initWorkspaceTestI18n();
|
|
6081
6074
|
return jsx(I18nextProvider, {
|
|
6082
6075
|
i18n: i18n,
|
|
@@ -6998,17 +6991,17 @@ var ViewPresetMenu = function ViewPresetMenu(_ref) {
|
|
|
6998
6991
|
renderCounter.count(ViewPresetMenu.name);
|
|
6999
6992
|
return hideBackdrop ?
|
|
7000
6993
|
// Enable hiding backdrop from snapshot tests
|
|
7001
|
-
toolContainer :
|
|
6994
|
+
toolContainer : jsxs(Backdrop, {
|
|
7002
6995
|
"data-testid": "viewpresetMenuBackdrop",
|
|
7003
6996
|
open: true,
|
|
7004
|
-
sx: {
|
|
6997
|
+
sx: Object.assign({
|
|
7005
6998
|
'&.MuiBackdrop-root': {
|
|
7006
6999
|
position: 'absolute',
|
|
7007
7000
|
zIndex: 1002
|
|
7008
7001
|
}
|
|
7009
|
-
},
|
|
7002
|
+
}, BackdropStyle()),
|
|
7010
7003
|
onClick: closeMenu,
|
|
7011
|
-
children: toolContainer
|
|
7004
|
+
children: [BackdropElement(), toolContainer]
|
|
7012
7005
|
});
|
|
7013
7006
|
};
|
|
7014
7007
|
|
|
@@ -7912,16 +7905,16 @@ var WorkspaceMenu = function WorkspaceMenu(_ref) {
|
|
|
7912
7905
|
});
|
|
7913
7906
|
return hideBackdrop ?
|
|
7914
7907
|
// Enable hiding backdrop from snapshot tests
|
|
7915
|
-
toolContainer :
|
|
7908
|
+
toolContainer : jsxs(Backdrop, {
|
|
7916
7909
|
"data-testid": "workspaceMenuBackdrop",
|
|
7917
7910
|
open: true,
|
|
7918
|
-
sx: {
|
|
7911
|
+
sx: Object.assign({
|
|
7919
7912
|
'&.MuiBackdrop-root': {
|
|
7920
7913
|
top: '40px'
|
|
7921
7914
|
}
|
|
7922
|
-
},
|
|
7915
|
+
}, BackdropStyle()),
|
|
7923
7916
|
onClick: closeMenu,
|
|
7924
|
-
children: toolContainer
|
|
7917
|
+
children: [BackdropElement(), toolContainer]
|
|
7925
7918
|
});
|
|
7926
7919
|
};
|
|
7927
7920
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/workspace",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.37.0",
|
|
4
4
|
"description": "GeoWeb Workspace library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -18,8 +18,6 @@
|
|
|
18
18
|
"@opengeoweb/snackbar": "*",
|
|
19
19
|
"react-window": "^1.8.10",
|
|
20
20
|
"lodash": "^4.17.21",
|
|
21
|
-
"@redux-eggs/core": "^2.2.0",
|
|
22
|
-
"@redux-eggs/redux-toolkit": "^2.2.0",
|
|
23
21
|
"immer": "^10.0.3",
|
|
24
22
|
"axios": "^1.7.7",
|
|
25
23
|
"react-virtualized-auto-sizer": "^1.0.21",
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Store } from '@reduxjs/toolkit';
|
|
1
|
+
import { ListenerMiddleware, ReducersMapObject } from '@reduxjs/toolkit';
|
|
3
2
|
import { WorkspaceModuleStore } from './types';
|
|
4
|
-
declare const
|
|
3
|
+
export declare const workspaceReducersMap: ReducersMapObject<WorkspaceModuleStore>;
|
|
4
|
+
export declare const workspaceMiddlewares: ListenerMiddleware[];
|
|
5
|
+
declare const workspaceModuleConfig: {
|
|
6
|
+
id: string;
|
|
7
|
+
reducersMap: ReducersMapObject<WorkspaceModuleStore, import("redux").Action<any>>;
|
|
8
|
+
middlewares: ListenerMiddleware[];
|
|
9
|
+
};
|
|
5
10
|
export default workspaceModuleConfig;
|
package/src/lib/store/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { createTestWorkspaceStore } from './store';
|
package/src/lib/store/store.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { ToolkitStore } from '@reduxjs/toolkit/dist/configureStore';
|
|
2
|
+
export declare const createTestWorkspaceStore: () => ToolkitStore;
|
|
@@ -144,7 +144,7 @@ export declare const getWorkspaceData: ((state: AppStore & import("@opengeoweb/s
|
|
|
144
144
|
abstract: string | undefined;
|
|
145
145
|
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
146
146
|
isTimeScrollingEnabled: boolean;
|
|
147
|
-
linking: Record<string, string[]>;
|
|
147
|
+
linking: Pick<Record<string, string[]>, string>;
|
|
148
148
|
}) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState, args_1: import("../viewPresets/types").ViewPresetState, args_2: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState) => {
|
|
149
149
|
id: string | undefined;
|
|
150
150
|
title: string;
|
|
@@ -161,7 +161,7 @@ export declare const getWorkspaceData: ((state: AppStore & import("@opengeoweb/s
|
|
|
161
161
|
abstract: string | undefined;
|
|
162
162
|
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
163
163
|
isTimeScrollingEnabled: boolean;
|
|
164
|
-
linking: Record<string, string[]>;
|
|
164
|
+
linking: Pick<Record<string, string[]>, string>;
|
|
165
165
|
}, {
|
|
166
166
|
clearCache: () => void;
|
|
167
167
|
}> & {
|