@opengeoweb/workspace 10.2.0 → 10.2.1-spike-ol.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 +40 -68
- package/package.json +1 -2
- package/src/index.d.ts +5 -5
- package/src/lib/store/index.d.ts +1 -1
- package/src/lib/store/store.d.ts +19 -1
- package/src/lib/store/viewPresets/index.d.ts +1 -1
- package/src/lib/store/viewPresets/listener.integration.spec.d.ts +2 -1
- package/src/lib/store/viewPresets/reducer.d.ts +1 -2
- package/src/lib/store/viewPresetsList/index.d.ts +1 -1
- package/src/lib/store/viewPresetsList/reducer.d.ts +1 -2
- package/src/lib/store/workspace/index.d.ts +1 -0
- package/src/lib/store/workspace/reducer.d.ts +2 -1
- package/src/lib/store/workspace/selectors.d.ts +3 -3
- package/src/lib/store/workspaceList/index.d.ts +1 -0
- package/src/lib/store/workspaceList/reducer.d.ts +1 -2
- package/src/lib/store/config.d.ts +0 -9
- package/src/lib/utils/testUtils.d.ts +0 -4
package/index.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createEntityAdapter, createSlice, createSelector, createListenerMiddleware, combineReducers, configureStore } from '@reduxjs/toolkit';
|
|
2
|
-
import { syncGroupsTypes, syncGroupsActions, layerActions, mapActions, uiActions, genericActions, layerTypes, mapEnums, selectorMemoizationOptions, genericSelectors, mapSelectors, syncGroupsSelectors, routerActions,
|
|
2
|
+
import { syncGroupsTypes, syncGroupsActions, layerActions, mapActions, uiActions, genericActions, layerTypes, mapEnums, selectorMemoizationOptions, genericSelectors, mapSelectors, syncGroupsSelectors, routerActions, createViewObjectForNewMap, mapListener, serviceListener, layersListener, syncGroupsListener, openlayersListener, mapReducer, serviceReducer, layerReducer, syncGroupsReducer, loadingIndicatorReducer, uiReducer, linkComponentTypesConstants, uiTypes, loadingIndicatorSelectors, uiSelectors } from '@opengeoweb/store';
|
|
3
3
|
import { createApiInstance, createNonAuthApiInstance, getApi, createFakeApiInstance, ApiProvider, useApiContext, useAuthenticationContext as useAuthenticationContext$1, GEOWEB_ROLE_PRESETS_ADMIN as GEOWEB_ROLE_PRESETS_ADMIN$1 } from '@opengeoweb/api';
|
|
4
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,
|
|
6
|
+
import { timeSeriesActions, TimeSeriesTypes, timeSeriesSelectors, timeSeriesReducer } from '@opengeoweb/timeseries';
|
|
7
7
|
import { publicWarningActions, WARN_NAMESPACE, warningsTranslations, publicWarningsSelectors } from '@opengeoweb/warnings';
|
|
8
8
|
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';
|
|
9
|
-
import { snackbarTypes, snackbarActions,
|
|
9
|
+
import { snackbarTypes, snackbarActions, snackbarListener, snackbarReducer, SnackbarWrapperConnect } from '@opengeoweb/snackbar';
|
|
10
10
|
import { isAxiosError } from 'axios';
|
|
11
11
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
12
12
|
import { ThemeWrapper, lightTheme, Link, LinkOff, SplitVertical, SplitHorizontal, Expand, UnExpand, Close, Delete, Preset, PresetWorkspace, PresetTiles, BackdropStyle, BackdropElement, CloudLoading, CloudIdle, WebAssetOff, Exclamation } from '@opengeoweb/theme';
|
|
@@ -18,7 +18,6 @@ import i18n from 'i18next';
|
|
|
18
18
|
import { WEBMAP_REACT_NAMESPACE, webmapReactTranslations } from '@opengeoweb/webmap-react';
|
|
19
19
|
import { CORE_NAMESPACE, coreTranslations } from '@opengeoweb/core';
|
|
20
20
|
import { FORM_FIELDS_NAMESPACE, formFieldsTranslations, ReactHookFormTextField, ReactHookFormHiddenInput, ReactHookFormProvider, defaultFormOptions } from '@opengeoweb/form-fields';
|
|
21
|
-
import { produce } from 'immer';
|
|
22
21
|
import * as React from 'react';
|
|
23
22
|
import React__default, { useCallback } from 'react';
|
|
24
23
|
import { Menu, Typography, List, ListItem, ListItemButton, ListItemIcon, Checkbox, ListItemText, LinearProgress, Grid2, Box, Backdrop, ListSubheader, MenuItem, useTheme, FormGroup, FormControlLabel, Tabs } from '@mui/material';
|
|
@@ -1047,8 +1046,8 @@ var slice$3 = createSlice({
|
|
|
1047
1046
|
}
|
|
1048
1047
|
}
|
|
1049
1048
|
});
|
|
1050
|
-
var
|
|
1051
|
-
|
|
1049
|
+
var workspaceListReducer = slice$3.reducer,
|
|
1050
|
+
workspaceListActions = slice$3.actions;
|
|
1052
1051
|
|
|
1053
1052
|
var ViewPresetErrorComponent;
|
|
1054
1053
|
(function (ViewPresetErrorComponent) {
|
|
@@ -1470,8 +1469,8 @@ var slice$2 = createSlice({
|
|
|
1470
1469
|
});
|
|
1471
1470
|
}
|
|
1472
1471
|
});
|
|
1473
|
-
var
|
|
1474
|
-
|
|
1472
|
+
var viewPresetsReducer = slice$2.reducer,
|
|
1473
|
+
viewPresetActions = slice$2.actions;
|
|
1475
1474
|
|
|
1476
1475
|
/* *
|
|
1477
1476
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1939,7 +1938,8 @@ var slice$1 = createSlice({
|
|
|
1939
1938
|
});
|
|
1940
1939
|
}
|
|
1941
1940
|
});
|
|
1942
|
-
|
|
1941
|
+
// eslint-disable-next-line prefer-destructuring
|
|
1942
|
+
var workspaceReducer = slice$1.reducer;
|
|
1943
1943
|
var workspaceActions = Object.assign({}, slice$1.actions);
|
|
1944
1944
|
|
|
1945
1945
|
/* *
|
|
@@ -5037,7 +5037,9 @@ workspaceListener.startListening({
|
|
|
5037
5037
|
while (1) switch (_context11.prev = _context11.next) {
|
|
5038
5038
|
case 0:
|
|
5039
5039
|
payload = _ref10.payload;
|
|
5040
|
-
mosaicNodeId = payload.mosaicNodeId, componentType = payload.componentType, newId = payload.newId;
|
|
5040
|
+
mosaicNodeId = payload.mosaicNodeId, componentType = payload.componentType, newId = payload.newId; // TODO: this would be nice to move into the openlayers store
|
|
5041
|
+
createViewObjectForNewMap(mosaicNodeId, newId);
|
|
5042
|
+
// Note, at some point these might no longer be necessary
|
|
5041
5043
|
bbox = mapSelectors.getBbox(listenerApi.getState(), mosaicNodeId);
|
|
5042
5044
|
srs = mapSelectors.getSrs(listenerApi.getState(), mosaicNodeId);
|
|
5043
5045
|
mapPreset = bbox.bottom ? {
|
|
@@ -5054,7 +5056,7 @@ workspaceListener.startListening({
|
|
|
5054
5056
|
syncGroupsIds: []
|
|
5055
5057
|
}
|
|
5056
5058
|
}));
|
|
5057
|
-
case
|
|
5059
|
+
case 7:
|
|
5058
5060
|
case "end":
|
|
5059
5061
|
return _context11.stop();
|
|
5060
5062
|
}
|
|
@@ -5932,8 +5934,8 @@ var slice = createSlice({
|
|
|
5932
5934
|
});
|
|
5933
5935
|
}
|
|
5934
5936
|
});
|
|
5935
|
-
var
|
|
5936
|
-
slice.actions;
|
|
5937
|
+
var viewPresetsListReducer = slice.reducer;
|
|
5938
|
+
slice.actions;
|
|
5937
5939
|
|
|
5938
5940
|
/* *
|
|
5939
5941
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -5978,35 +5980,6 @@ var getFilteredViewPresetListForView = createSelector(getViewPresetsList, getVie
|
|
|
5978
5980
|
};
|
|
5979
5981
|
}, selectorMemoizationOptions);
|
|
5980
5982
|
|
|
5981
|
-
/* *
|
|
5982
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5983
|
-
* you may not use this file except in compliance with the License.
|
|
5984
|
-
* You may obtain a copy of the License at
|
|
5985
|
-
*
|
|
5986
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5987
|
-
*
|
|
5988
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
5989
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
5990
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
5991
|
-
* See the License for the specific language governing permissions and
|
|
5992
|
-
* limitations under the License.
|
|
5993
|
-
*
|
|
5994
|
-
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
5995
|
-
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
5996
|
-
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
5997
|
-
* */
|
|
5998
|
-
var workspaceReducersMap = {
|
|
5999
|
-
workspace: reducer$1,
|
|
6000
|
-
workspaceList: reducer$3,
|
|
6001
|
-
viewPresetsList: reducer,
|
|
6002
|
-
viewPresets: reducer$2
|
|
6003
|
-
};
|
|
6004
|
-
var workspaceMiddlewares = [viewPresetsListener.middleware, workspaceListener.middleware, workspaceListListener.middleware];
|
|
6005
|
-
var workspaceModuleConfig = {
|
|
6006
|
-
reducersMap: workspaceReducersMap,
|
|
6007
|
-
middlewares: workspaceMiddlewares
|
|
6008
|
-
};
|
|
6009
|
-
|
|
6010
5983
|
/* *
|
|
6011
5984
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6012
5985
|
* you may not use this file except in compliance with the License.
|
|
@@ -6064,32 +6037,30 @@ var useWorkspaceTranslation = function useWorkspaceTranslation() {
|
|
|
6064
6037
|
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
6065
6038
|
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
6066
6039
|
* */
|
|
6067
|
-
var
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
});
|
|
6081
|
-
}
|
|
6040
|
+
var workspaceReducersMap = {
|
|
6041
|
+
webmap: mapReducer,
|
|
6042
|
+
services: serviceReducer,
|
|
6043
|
+
layers: layerReducer,
|
|
6044
|
+
syncGroups: syncGroupsReducer,
|
|
6045
|
+
loadingIndicator: loadingIndicatorReducer,
|
|
6046
|
+
ui: uiReducer,
|
|
6047
|
+
workspace: workspaceReducer,
|
|
6048
|
+
workspaceList: workspaceListReducer,
|
|
6049
|
+
viewPresetsList: viewPresetsListReducer,
|
|
6050
|
+
viewPresets: viewPresetsReducer,
|
|
6051
|
+
timeSeries: timeSeriesReducer,
|
|
6052
|
+
snackbar: snackbarReducer
|
|
6082
6053
|
};
|
|
6083
|
-
var
|
|
6084
|
-
var
|
|
6085
|
-
|
|
6086
|
-
|
|
6054
|
+
var workspaceMiddlewares = [mapListener.middleware, serviceListener.middleware, layersListener.middleware, syncGroupsListener.middleware, workspaceListener.middleware, workspaceListListener.middleware, viewPresetsListener.middleware, snackbarListener.middleware, openlayersListener.middleware];
|
|
6055
|
+
var workspaceRootReducer = combineReducers(workspaceReducersMap);
|
|
6056
|
+
var createMockStore = function createMockStore(mockState) {
|
|
6057
|
+
return configureStore({
|
|
6058
|
+
reducer: workspaceRootReducer,
|
|
6059
|
+
preloadedState: mockState,
|
|
6087
6060
|
middleware: function middleware(getDefaultMiddleware) {
|
|
6088
|
-
return getDefaultMiddleware().concat(
|
|
6089
|
-
}
|
|
6090
|
-
devTools: devToolsStateSanitizer
|
|
6061
|
+
return getDefaultMiddleware().concat(workspaceMiddlewares);
|
|
6062
|
+
}
|
|
6091
6063
|
});
|
|
6092
|
-
return store;
|
|
6093
6064
|
};
|
|
6094
6065
|
|
|
6095
6066
|
var queryClient = new QueryClient({
|
|
@@ -6132,7 +6103,7 @@ var defaultAuthConfig = {
|
|
|
6132
6103
|
var WorkspaceWrapperProviderWithStore = function WorkspaceWrapperProviderWithStore(_ref3) {
|
|
6133
6104
|
var children = _ref3.children,
|
|
6134
6105
|
_ref3$store = _ref3.store,
|
|
6135
|
-
store = _ref3$store === void 0 ?
|
|
6106
|
+
store = _ref3$store === void 0 ? createMockStore() : _ref3$store,
|
|
6136
6107
|
_ref3$createApi = _ref3.createApi,
|
|
6137
6108
|
createApi$1 = _ref3$createApi === void 0 ? createApi : _ref3$createApi,
|
|
6138
6109
|
theme = _ref3.theme,
|
|
@@ -6993,9 +6964,10 @@ var ResizeMenu = function ResizeMenu(_ref) {
|
|
|
6993
6964
|
children = _ref.children;
|
|
6994
6965
|
return jsx(Resizable, {
|
|
6995
6966
|
defaultSize: {
|
|
6996
|
-
width:
|
|
6967
|
+
width: 380,
|
|
6997
6968
|
height: '90%'
|
|
6998
6969
|
},
|
|
6970
|
+
maxWidth: "100%",
|
|
6999
6971
|
minHeight: 110,
|
|
7000
6972
|
minWidth: 280,
|
|
7001
6973
|
style: {
|
|
@@ -9228,4 +9200,4 @@ var WorkspaceDetail = function WorkspaceDetail(_ref2) {
|
|
|
9228
9200
|
});
|
|
9229
9201
|
};
|
|
9230
9202
|
|
|
9231
|
-
export { ComponentsLookUpWrapper, DemoWrapper, PresetAction, ViewPresetErrorComponent, ViewPresetErrorType, WORKSPACE_NAMESPACE, WorkspaceDetail, WorkspaceErrorType, WorkspaceI18nProvider, WorkspaceModuleProvider, WorkspacePresetAction, WorkspaceTopBar, WorkspaceViewConnect, WorkspaceWrapperProviderWithStore,
|
|
9203
|
+
export { ComponentsLookUpWrapper, DemoWrapper, PresetAction, ViewPresetErrorComponent, ViewPresetErrorType, WORKSPACE_NAMESPACE, WorkspaceDetail, WorkspaceErrorType, WorkspaceI18nProvider, WorkspaceModuleProvider, WorkspacePresetAction, WorkspaceTopBar, WorkspaceViewConnect, WorkspaceWrapperProviderWithStore, createBalancedMosaicNode, createCustomEmptyMapWorkspace, defaultAuthConfig, getEmptyMapWorkspace, getWorkspaceRouteUrl, selectors$1 as selectors, viewPresetActions, viewPresetsListReducer, viewPresetsListener, viewPresetsReducer, workspaceActions, workspaceListActions, workspaceListListener, workspaceListReducer, workspaceListener, workspaceMiddlewares, workspaceReducer, workspaceReducersMap, routes as workspaceRoutes, workspaceTranslations };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/workspace",
|
|
3
|
-
"version": "10.2.0",
|
|
3
|
+
"version": "10.2.1-spike-ol.0",
|
|
4
4
|
"description": "GeoWeb Workspace library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"@opengeoweb/snackbar": "*",
|
|
19
19
|
"react-window": "^1.8.10",
|
|
20
20
|
"lodash": "^4.17.21",
|
|
21
|
-
"immer": "^10.0.3",
|
|
22
21
|
"axios": "^1.7.7",
|
|
23
22
|
"react-virtualized-auto-sizer": "^1.0.21",
|
|
24
23
|
"react-mosaic-component": "^6.1.0",
|
package/src/index.d.ts
CHANGED
|
@@ -3,12 +3,11 @@ import { workspaceListener } from './lib/store/workspace/listener';
|
|
|
3
3
|
export { workspaceListener };
|
|
4
4
|
export { workspaceListListener } from './lib/store/workspaceList/listener';
|
|
5
5
|
export { viewPresetsListener } from './lib/store/viewPresets/listener';
|
|
6
|
-
export { workspaceActions
|
|
7
|
-
export { workspaceListActions,
|
|
8
|
-
export { viewPresetActions,
|
|
9
|
-
export {
|
|
6
|
+
export { workspaceActions, workspaceReducer, } from './lib/store/workspace/reducer';
|
|
7
|
+
export { workspaceListActions, workspaceListReducer, } from './lib/store/workspaceList/reducer';
|
|
8
|
+
export { viewPresetActions, viewPresetsReducer } from './lib/store/viewPresets';
|
|
9
|
+
export { viewPresetsListReducer } from './lib/store/viewPresetsList';
|
|
10
10
|
export * as selectors from './lib/store/workspace/selectors';
|
|
11
|
-
export { default as workspaceModuleConfig } from './lib/store/config';
|
|
12
11
|
export * from './lib/store/workspace/types';
|
|
13
12
|
export * from './lib/store/viewPresets/types';
|
|
14
13
|
export * from './lib/components/Providers';
|
|
@@ -21,3 +20,4 @@ export { workspaceTranslations };
|
|
|
21
20
|
export { routes as workspaceRoutes, getWorkspaceRouteUrl, } from './lib/utils/routes';
|
|
22
21
|
export { getEmptyMapWorkspace, createCustomEmptyMapWorkspace, } from './lib/store/workspaceList/utils';
|
|
23
22
|
export type { WorkspaceModuleStore } from './lib/store/types';
|
|
23
|
+
export { workspaceReducersMap, workspaceMiddlewares } from './lib/store';
|
package/src/lib/store/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './store';
|
package/src/lib/store/store.d.ts
CHANGED
|
@@ -1,2 +1,20 @@
|
|
|
1
|
+
import { SnackbarModuleStore } from '@opengeoweb/snackbar';
|
|
2
|
+
import { WebMapStateModuleState, SynchronizationGroupModuleState, UIModuleState } from '@opengeoweb/store';
|
|
1
3
|
import { ToolkitStore } from '@reduxjs/toolkit/dist/configureStore';
|
|
2
|
-
|
|
4
|
+
import { WorkspaceModuleStore } from './types';
|
|
5
|
+
export declare const workspaceReducersMap: {
|
|
6
|
+
webmap: import("redux").Reducer<import("dist/libs/store/src/store/map/types").WebMapState, import("redux").AnyAction>;
|
|
7
|
+
services: import("redux").Reducer<import("dist/libs/store/src/store/map/types").ServiceState, import("redux").AnyAction>;
|
|
8
|
+
layers: import("redux").Reducer<import("dist/libs/store/src/store/map/types").LayerState, import("redux").AnyAction>;
|
|
9
|
+
syncGroups: import("redux").Reducer<import("dist/libs/store/src/store/generic/syncGroups/types").SynchronizationGroupState, import("redux").AnyAction>;
|
|
10
|
+
loadingIndicator: import("redux").Reducer<import("@reduxjs/toolkit").EntityState<import("dist/libs/store/src/store/generic/loadingIndicator/types").LoadingIndicatorType>, import("redux").AnyAction>;
|
|
11
|
+
ui: import("redux").Reducer<import("dist/libs/store/src/store/ui/types").UIStoreType, import("redux").AnyAction>;
|
|
12
|
+
workspace: import("redux").Reducer<import("./workspace/types").WorkspaceState>;
|
|
13
|
+
workspaceList: import("redux").Reducer<import("./workspaceList/types").WorkspaceListState>;
|
|
14
|
+
viewPresetsList: import("redux").Reducer<import("./viewPresetsList/types").ViewPresetListState>;
|
|
15
|
+
viewPresets: import("redux").Reducer<import("./viewPresets/types").ViewPresetState>;
|
|
16
|
+
timeSeries: import("redux").Reducer<import("dist/libs/timeseries/src/lib/store/types").TimeSeriesStoreType, import("redux").AnyAction>;
|
|
17
|
+
snackbar: import("redux").Reducer<import("dist/libs/snackbar/src/lib/store/types").SnackbarState, import("redux").AnyAction>;
|
|
18
|
+
};
|
|
19
|
+
export declare const workspaceMiddlewares: (import("@reduxjs/toolkit").ListenerMiddleware<import("./types").AppStore, import("@reduxjs/toolkit").ThunkDispatch<import("./types").AppStore, unknown, import("redux").AnyAction>, unknown> | import("@reduxjs/toolkit").ListenerMiddleware<SnackbarModuleStore, import("@reduxjs/toolkit").ThunkDispatch<SnackbarModuleStore, unknown, import("redux").AnyAction>, unknown>)[];
|
|
20
|
+
export declare const createMockStore: (mockState?: WebMapStateModuleState | WorkspaceModuleStore | UIModuleState | SynchronizationGroupModuleState | SnackbarModuleStore) => ToolkitStore;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { viewPresetActions,
|
|
1
|
+
export { viewPresetActions, viewPresetsReducer } from './reducer';
|
|
2
2
|
export * as viewPresetSelectors from './selectors';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ToolkitStore } from '@reduxjs/toolkit/dist/configureStore';
|
|
2
|
+
export declare const createMockStoreForListener: () => ToolkitStore;
|
|
@@ -9,8 +9,7 @@ export type SupportedMapActionOrigins = layerTypes.LayerActionOrigin | mapEnums.
|
|
|
9
9
|
export declare const supportedMapActionOrigins: SupportedMapActionOrigins[];
|
|
10
10
|
export type SupportedTimeSeriesActionOrigins = TimeSeriesTypes.TimeSeriesActionOrigin;
|
|
11
11
|
export declare const supportedTimeSeriesActionOrigins: SupportedTimeSeriesActionOrigins[];
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const viewPresetActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
12
|
+
export declare const viewPresetsReducer: import("redux").Reducer<ViewPresetState>, viewPresetActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
14
13
|
fetchInitialViewPresets: (draft: Draft<ViewPresetState>, _action: PayloadAction<FetchViewPresetsList>) => void;
|
|
15
14
|
fetchedInitialViewPresets: (draft: Draft<ViewPresetState>, action: PayloadAction<FetchedInitialViewPresetsPayload>) => void;
|
|
16
15
|
errorInitialViewPresets: (draft: Draft<ViewPresetState>, action: PayloadAction<ErrorInitialViewPresetsPayload>) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { viewPresetsListActions,
|
|
1
|
+
export { viewPresetsListActions, viewPresetsListReducer } from './reducer';
|
|
2
2
|
export * as viewPresetsListSelectors from './selectors';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ViewPresetListItem, ViewPresetListState } from './types';
|
|
2
2
|
export declare const viewPresetsListAdapter: import("@reduxjs/toolkit").EntityAdapter<ViewPresetListItem>;
|
|
3
3
|
export declare const initialState: ViewPresetListState;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const viewPresetsListActions: import("@reduxjs/toolkit").CaseReducerActions<{}, "viewPresetsList">;
|
|
4
|
+
export declare const viewPresetsListReducer: import("redux").Reducer<ViewPresetListState>, viewPresetsListActions: import("@reduxjs/toolkit").CaseReducerActions<{}, "viewPresetsList">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { workspaceActions, workspaceReducer } from './reducer';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
1
2
|
import { WorkspaceAddViewPayload, WorkspaceDeleteViewPayload, WorkspaceState, WorkspaceSetPresetPayload, WorkspaceSetPreventCloseViewPayload, WorkspaceUpdateViewPayload, WorkspaceUpdateViewsPayload, WorkspaceErrorWorkspacePayload, WorkspaceFetchedWorkspacePayload, WorkspaceFetchWorkspacePayload, WorkspaceFetchWorkspaceViewPresetPayload, WorkspaceSaveWorkspacePresetPayload, WorkspaceSetNewViewPayload, WorkspaceChangeToEmptyMapWorkspacePayload } from './types';
|
|
2
3
|
export declare const initialState: WorkspaceState;
|
|
3
|
-
export declare const
|
|
4
|
+
export declare const workspaceReducer: Reducer<WorkspaceState>;
|
|
4
5
|
export declare const workspaceActions: {
|
|
5
6
|
addWorkspaceView: import("@reduxjs/toolkit").ActionCreatorWithPayload<WorkspaceAddViewPayload, "workspace/addWorkspaceView">;
|
|
6
7
|
setNewWorkspaceView: import("@reduxjs/toolkit").ActionCreatorWithPayload<WorkspaceSetNewViewPayload, "workspace/setNewWorkspaceView">;
|
|
@@ -133,7 +133,7 @@ export declare const getWorkspaceData: ((state: AppStore & import("@opengeoweb/s
|
|
|
133
133
|
title: string;
|
|
134
134
|
syncGroups: {
|
|
135
135
|
id: string;
|
|
136
|
-
type: import("dist/libs/store/src/store/generic/
|
|
136
|
+
type: import("dist/libs/store/src/store/generic/syncGroups/types").SyncType;
|
|
137
137
|
}[];
|
|
138
138
|
views: {
|
|
139
139
|
mosaicNodeId: string;
|
|
@@ -145,12 +145,12 @@ export declare const getWorkspaceData: ((state: AppStore & import("@opengeoweb/s
|
|
|
145
145
|
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
146
146
|
isTimeScrollingEnabled: boolean;
|
|
147
147
|
linking: Pick<Record<string, string[]>, string>;
|
|
148
|
-
}) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState, args_1: import("../viewPresets/types").ViewPresetState, args_2: import("dist/libs/store/src/store/generic/
|
|
148
|
+
}) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState, args_1: import("../viewPresets/types").ViewPresetState, args_2: import("dist/libs/store/src/store/generic/syncGroups/types").SynchronizationGroupState) => {
|
|
149
149
|
id: string | undefined;
|
|
150
150
|
title: string;
|
|
151
151
|
syncGroups: {
|
|
152
152
|
id: string;
|
|
153
|
-
type: import("dist/libs/store/src/store/generic/
|
|
153
|
+
type: import("dist/libs/store/src/store/generic/syncGroups/types").SyncType;
|
|
154
154
|
}[];
|
|
155
155
|
views: {
|
|
156
156
|
mosaicNodeId: string;
|
|
@@ -4,8 +4,7 @@ import { OpenWorkspaceActionDialogPayload, FetchedWorkspaceList, WorkspaceListSt
|
|
|
4
4
|
export declare const workspaceListFilterOptions: WorkspaceListFilter[];
|
|
5
5
|
export declare const workspaceListAdapter: import("@reduxjs/toolkit").EntityAdapter<WorkspacePresetListItem>;
|
|
6
6
|
export declare const initialState: WorkspaceListState;
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const workspaceListActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
7
|
+
export declare const workspaceListReducer: import("redux").Reducer<WorkspaceListState>, workspaceListActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
9
8
|
fetchWorkspaceList: (draft: Draft<WorkspaceListState>, action: PayloadAction<FetchWorkspaceList>) => void;
|
|
10
9
|
fetchedWorkspaceList: (draft: Draft<WorkspaceListState>, action: PayloadAction<FetchedWorkspaceList>) => void;
|
|
11
10
|
errorWorkspaceList: (draft: Draft<WorkspaceListState>, action: PayloadAction<ErrorWorkspaceList>) => void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ListenerMiddleware, ReducersMapObject } from '@reduxjs/toolkit';
|
|
2
|
-
import { WorkspaceModuleStore } from './types';
|
|
3
|
-
export declare const workspaceReducersMap: ReducersMapObject;
|
|
4
|
-
export declare const workspaceMiddlewares: ListenerMiddleware<WorkspaceModuleStore>[];
|
|
5
|
-
declare const workspaceModuleConfig: {
|
|
6
|
-
reducersMap: ReducersMapObject<any, import("redux").Action<any>>;
|
|
7
|
-
middlewares: ListenerMiddleware<WorkspaceModuleStore>[];
|
|
8
|
-
};
|
|
9
|
-
export default workspaceModuleConfig;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { uiTypes, WebMapStateModuleState } from '@opengeoweb/store';
|
|
2
|
-
import { Store } from '@reduxjs/toolkit';
|
|
3
|
-
import { WorkspaceModuleStore } from '../store/types';
|
|
4
|
-
export declare const createMockStore: (mockState: WorkspaceModuleStore & uiTypes.UIModuleState & WebMapStateModuleState) => Store;
|