@opengeoweb/workspace 5.2.1 → 6.0.1
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.js +40 -50
- package/package.json +12 -11
- package/src/lib/components/MapPresetsFormDialog/MapPresetsForm.d.ts +1 -1
- package/src/lib/components/ViewPresetMenu/ViewPresetMenu.d.ts +0 -1
- package/src/lib/components/ViewPresetMenu/ViewPresetMenuListConnect.d.ts +0 -1
- package/src/lib/store/store.d.ts +2 -2
- package/src/lib/store/viewPresets/reducer.d.ts +2 -2
- package/src/lib/store/viewPresets/selectors.d.ts +32 -2
- package/src/lib/store/viewPresetsList/selectors.d.ts +6 -6
- package/src/lib/store/workspace/sagas.d.ts +3 -3
- package/src/lib/store/workspace/selectors.d.ts +78 -78
- package/src/lib/store/workspace/types.d.ts +2 -2
- package/src/lib/store/workspace/utils.d.ts +3 -3
- package/src/lib/store/workspaceList/selectors.d.ts +16 -1
package/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { syncGroupsTypes, syncGroupsActions, layerActions, mapStoreActions, uiActions, genericActions, layerTypes, mapEnums, genericSelectors, mapSelectors, syncGroupsSelectors, routerActions, snackbarActions, coreModuleConfig, uiSelectors } from '@opengeoweb/store';
|
|
2
2
|
import { createApiInstance, createNonAuthApiInstance, getApi, createFakeApiInstance, ApiProvider, useApiContext } from '@opengeoweb/api';
|
|
3
3
|
import { getLeaves, MosaicContext, getAndAssertNodeAtPathExists, createBalancedTreeFromLeaves, MosaicWindow, MosaicWithoutDragDropContext } from 'react-mosaic-component';
|
|
4
|
-
import { isAxiosError, getAxiosErrorMessage, withEggs, useConfirmationDialog, CustomIconButton, AlertBanner, CustomTooltip, SearchHighlight, ToggleMenu, ToolContainer, CustomToggleButton, ConfirmationServiceProvider, ConfirmationDialog } from '@opengeoweb/shared';
|
|
4
|
+
import { isAxiosError, getAxiosErrorMessage, withEggs, useConfirmationDialog, CustomIconButton, AlertBanner, CustomTooltip, SearchHighlight, ToggleMenu, usePrevious, ToolContainer, CustomToggleButton, ConfirmationServiceProvider, ConfirmationDialog } from '@opengeoweb/shared';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import React__default, { createContext, version, useContext, useRef, useCallback, useDebugValue, useLayoutEffect, useEffect, useMemo, memo, forwardRef, createElement, Fragment } from 'react';
|
|
7
7
|
import { ThemeWrapper, lightTheme, Menu, SplitVertical, SplitHorizontal, Expand, UnExpand, Close, Delete, Preset, PresetWorkspace, PresetTiles, Clear, Search, WebAssetOff } from '@opengeoweb/theme';
|
|
8
8
|
import { unstable_batchedUpdates } from 'react-dom';
|
|
9
|
+
import { SnackbarWrapperConnect } from '@opengeoweb/core';
|
|
9
10
|
import { timeSeriesModuleConfig } from '@opengeoweb/timeseries';
|
|
10
11
|
import { AuthenticationProvider, useAuthenticationContext } from '@opengeoweb/authentication';
|
|
11
12
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -18762,7 +18763,10 @@ function _regeneratorRuntime() {
|
|
|
18762
18763
|
if ("executing" === state) throw new Error("Generator is already running");
|
|
18763
18764
|
if ("completed" === state) {
|
|
18764
18765
|
if ("throw" === method) throw arg;
|
|
18765
|
-
return
|
|
18766
|
+
return {
|
|
18767
|
+
value: void 0,
|
|
18768
|
+
done: !0
|
|
18769
|
+
};
|
|
18766
18770
|
}
|
|
18767
18771
|
for (context.method = method, context.arg = arg;;) {
|
|
18768
18772
|
var delegate = context.delegate;
|
|
@@ -18815,7 +18819,7 @@ function _regeneratorRuntime() {
|
|
|
18815
18819
|
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
18816
18820
|
}
|
|
18817
18821
|
function values(iterable) {
|
|
18818
|
-
if (iterable) {
|
|
18822
|
+
if (iterable || "" === iterable) {
|
|
18819
18823
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
18820
18824
|
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
18821
18825
|
if ("function" == typeof iterable.next) return iterable;
|
|
@@ -18828,15 +18832,7 @@ function _regeneratorRuntime() {
|
|
|
18828
18832
|
return next.next = next;
|
|
18829
18833
|
}
|
|
18830
18834
|
}
|
|
18831
|
-
|
|
18832
|
-
next: doneResult
|
|
18833
|
-
};
|
|
18834
|
-
}
|
|
18835
|
-
function doneResult() {
|
|
18836
|
-
return {
|
|
18837
|
-
value: undefined,
|
|
18838
|
-
done: !0
|
|
18839
|
-
};
|
|
18835
|
+
throw new TypeError(typeof iterable + " is not iterable");
|
|
18840
18836
|
}
|
|
18841
18837
|
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
18842
18838
|
value: GeneratorFunctionPrototype,
|
|
@@ -19184,7 +19180,7 @@ var BATCH_SIZE = 3;
|
|
|
19184
19180
|
var getListInChunks = function getListInChunks(views) {
|
|
19185
19181
|
return lodash.exports.chunk(views, BATCH_SIZE);
|
|
19186
19182
|
};
|
|
19187
|
-
var defaultSyncGroups =
|
|
19183
|
+
var defaultSyncGroups = syncGroupsTypes.SyncGroupTypeList.map(function (syncgroupType) {
|
|
19188
19184
|
return {
|
|
19189
19185
|
groupId: syncgroupType,
|
|
19190
19186
|
title: "Default group for ".concat(syncgroupType),
|
|
@@ -19256,9 +19252,9 @@ var viewPresetsAdapter = createEntityAdapter({
|
|
|
19256
19252
|
}
|
|
19257
19253
|
});
|
|
19258
19254
|
var initialState$4 = viewPresetsAdapter.getInitialState();
|
|
19259
|
-
var syncGroupChangeActions = [
|
|
19260
|
-
var mapPresetChangeActions = [layerActions.setBaseLayers, layerActions.layerDelete, layerActions.addLayer, layerActions.layerChangeEnabled, layerActions.layerChangeName, layerActions.layerChangeStyle, layerActions.layerChangeOpacity, layerActions.layerChangeDimension,
|
|
19261
|
-
var supportedChangeOrigins = [
|
|
19255
|
+
var syncGroupChangeActions = [syncGroupsActions.syncGroupRemoveTarget, syncGroupsActions.syncGroupAddTarget];
|
|
19256
|
+
var mapPresetChangeActions = [layerActions.setBaseLayers, layerActions.layerDelete, layerActions.addLayer, layerActions.layerChangeEnabled, layerActions.layerChangeName, layerActions.layerChangeStyle, layerActions.layerChangeOpacity, layerActions.layerChangeDimension, mapStoreActions.layerMoveLayer, mapStoreActions.setAutoLayerId, mapStoreActions.toggleAutoUpdate, mapStoreActions.mapStartAnimation, mapStoreActions.mapStopAnimation, mapStoreActions.toggleTimeSliderIsVisible, mapStoreActions.setTimeStep, mapStoreActions.setAnimationDelay, mapStoreActions.toggleTimestepAuto, uiActions.setActiveMapIdForDialog, uiActions.setToggleOpenDialog, genericActions.setBbox];
|
|
19257
|
+
var supportedChangeOrigins = [layerTypes.LayerActionOrigin.layerManager, layerTypes.LayerActionOrigin.wmsLoader, mapEnums.MapActionOrigin.map];
|
|
19262
19258
|
var slice$3 = createSlice({
|
|
19263
19259
|
initialState: initialState$4,
|
|
19264
19260
|
name: 'viewPresets',
|
|
@@ -19598,7 +19594,7 @@ var initialState$3 = {
|
|
|
19598
19594
|
error: undefined,
|
|
19599
19595
|
hasChanges: false
|
|
19600
19596
|
};
|
|
19601
|
-
var workspacePresetChangeActions = [viewPresetActions.selectViewPreset, viewPresetActions.setActiveViewPresetId,
|
|
19597
|
+
var workspacePresetChangeActions = [viewPresetActions.selectViewPreset, viewPresetActions.setActiveViewPresetId, syncGroupsActions.syncGroupRemoveGroup, syncGroupsActions.syncGroupAddGroup];
|
|
19602
19598
|
var slice$2 = createSlice({
|
|
19603
19599
|
initialState: initialState$3,
|
|
19604
19600
|
name: 'workspace',
|
|
@@ -19779,7 +19775,7 @@ var slice$2 = createSlice({
|
|
|
19779
19775
|
workspacePresetChangeActions.map(function (action) {
|
|
19780
19776
|
return builder.addCase(action, function (draft, payload) {
|
|
19781
19777
|
var _a;
|
|
19782
|
-
var hasChanges = action !==
|
|
19778
|
+
var hasChanges = action !== syncGroupsActions.syncGroupAddGroup || ((_a = payload.payload) === null || _a === void 0 ? void 0 : _a.origin) === 'user';
|
|
19783
19779
|
draft.hasChanges = hasChanges;
|
|
19784
19780
|
});
|
|
19785
19781
|
});
|
|
@@ -19857,24 +19853,22 @@ var getIsViewPresetListDialogOpen = function getIsViewPresetListDialogOpen(store
|
|
|
19857
19853
|
var _a;
|
|
19858
19854
|
return ((_a = getViewPresetById(store, panelId)) === null || _a === void 0 ? void 0 : _a.isViewPresetListDialogOpen) || false;
|
|
19859
19855
|
};
|
|
19860
|
-
var getViewPresetListFiltersForView = function
|
|
19861
|
-
|
|
19862
|
-
|
|
19863
|
-
};
|
|
19856
|
+
var getViewPresetListFiltersForView = createSelector(getViewPresetById, function (viewPresetById) {
|
|
19857
|
+
return (viewPresetById === null || viewPresetById === void 0 ? void 0 : viewPresetById.filters) || [];
|
|
19858
|
+
});
|
|
19864
19859
|
var getViewPresetListSearchQueryForView = function getViewPresetListSearchQueryForView(store, panelId) {
|
|
19865
19860
|
var _a;
|
|
19866
19861
|
return ((_a = getViewPresetById(store, panelId)) === null || _a === void 0 ? void 0 : _a.searchQuery) || '';
|
|
19867
19862
|
};
|
|
19868
19863
|
// Used to retrieve the filtered view preset list for your view - if no filters/search applied it will be empty
|
|
19869
19864
|
// To ensure you retrieve the view preset list specific for your view (incl and excl filters), use getFilteredViewPresetListForView
|
|
19870
|
-
var getViewPresetListFilterResultsForView = function
|
|
19871
|
-
var
|
|
19872
|
-
var filteredResults = ((_a = getViewPresetById(store, panelId)) === null || _a === void 0 ? void 0 : _a.filterResults) || {
|
|
19865
|
+
var getViewPresetListFilterResultsForView = createSelector(getViewPresetById, function (viewPresetById) {
|
|
19866
|
+
var filteredResults = (viewPresetById === null || viewPresetById === void 0 ? void 0 : viewPresetById.filterResults) || {
|
|
19873
19867
|
entities: {},
|
|
19874
19868
|
ids: []
|
|
19875
19869
|
};
|
|
19876
19870
|
return Object.values(filteredResults.entities);
|
|
19877
|
-
};
|
|
19871
|
+
});
|
|
19878
19872
|
|
|
19879
19873
|
/* *
|
|
19880
19874
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -22968,7 +22962,7 @@ function changePresetSaga(_ref) {
|
|
|
22968
22962
|
return delay(0);
|
|
22969
22963
|
case 2:
|
|
22970
22964
|
_context.next = 4;
|
|
22971
|
-
return put(
|
|
22965
|
+
return put(syncGroupsActions.syncGroupClear());
|
|
22972
22966
|
case 4:
|
|
22973
22967
|
_context.next = 6;
|
|
22974
22968
|
return put(setPreset(payload));
|
|
@@ -22976,7 +22970,7 @@ function changePresetSaga(_ref) {
|
|
|
22976
22970
|
allSyncGroups = getSyncGroups(payload.workspacePreset.syncGroups);
|
|
22977
22971
|
_context.next = 9;
|
|
22978
22972
|
return all(allSyncGroups.map(function (syncGroup) {
|
|
22979
|
-
return put(
|
|
22973
|
+
return put(syncGroupsActions.syncGroupAddGroup(syncGroup));
|
|
22980
22974
|
}));
|
|
22981
22975
|
case 9:
|
|
22982
22976
|
case "end":
|
|
@@ -23036,7 +23030,7 @@ function fetchWorkspaceViewPresetSaga(_ref2) {
|
|
|
23036
23030
|
}
|
|
23037
23031
|
_context3.next = 17;
|
|
23038
23032
|
return all(syncGroupIds.map(function (syncGroupId) {
|
|
23039
|
-
return put(
|
|
23033
|
+
return put(syncGroupsActions.syncGroupAddTarget({
|
|
23040
23034
|
groupId: syncGroupId,
|
|
23041
23035
|
targetId: mosaicNodeId,
|
|
23042
23036
|
linked: true
|
|
@@ -23274,10 +23268,10 @@ function workspaceSaga() {
|
|
|
23274
23268
|
while (1) switch (_context8.prev = _context8.next) {
|
|
23275
23269
|
case 0:
|
|
23276
23270
|
_context8.next = 2;
|
|
23277
|
-
return takeLatest$1(
|
|
23271
|
+
return takeLatest$1(mapStoreActions.registerMap, registerMapSaga);
|
|
23278
23272
|
case 2:
|
|
23279
23273
|
_context8.next = 4;
|
|
23280
|
-
return takeLatest$1(
|
|
23274
|
+
return takeLatest$1(mapStoreActions.unregisterMap, unregisterMapSaga);
|
|
23281
23275
|
case 4:
|
|
23282
23276
|
_context8.next = 6;
|
|
23283
23277
|
return takeLatest$1(changePreset.type, changePresetSaga);
|
|
@@ -23464,10 +23458,9 @@ var getIsWorkspaceListDialogOpen = function getIsWorkspaceListDialogOpen(store)
|
|
|
23464
23458
|
var _a;
|
|
23465
23459
|
return ((_a = getWorkspaceListStore(store)) === null || _a === void 0 ? void 0 : _a.isWorkspaceListDialogOpen) || false;
|
|
23466
23460
|
};
|
|
23467
|
-
var getWorkspaceListFilters = function
|
|
23468
|
-
|
|
23469
|
-
|
|
23470
|
-
};
|
|
23461
|
+
var getWorkspaceListFilters = createSelector(getWorkspaceListStore, function (workspaceListStore) {
|
|
23462
|
+
return (workspaceListStore === null || workspaceListStore === void 0 ? void 0 : workspaceListStore.workspaceListFilters) || [];
|
|
23463
|
+
});
|
|
23471
23464
|
var getWorkspaceListSearchQuery = function getWorkspaceListSearchQuery(store) {
|
|
23472
23465
|
var _a;
|
|
23473
23466
|
return ((_a = getWorkspaceListStore(store)) === null || _a === void 0 ? void 0 : _a.searchQuery) || '';
|
|
@@ -23998,7 +23991,7 @@ function selectViewPresetSaga(_ref3) {
|
|
|
23998
23991
|
break;
|
|
23999
23992
|
}
|
|
24000
23993
|
_context4.next = 7;
|
|
24001
|
-
return put(
|
|
23994
|
+
return put(mapStoreActions.mapStopAnimation({
|
|
24002
23995
|
mapId: panelId
|
|
24003
23996
|
}));
|
|
24004
23997
|
case 7:
|
|
@@ -24016,7 +24009,7 @@ function selectViewPresetSaga(_ref3) {
|
|
|
24016
24009
|
break;
|
|
24017
24010
|
case 12:
|
|
24018
24011
|
_context4.next = 14;
|
|
24019
|
-
return put(
|
|
24012
|
+
return put(mapStoreActions.setMapPreset({
|
|
24020
24013
|
mapId: panelId,
|
|
24021
24014
|
initialProps: emptyMapViewPreset.initialProps
|
|
24022
24015
|
}));
|
|
@@ -32098,9 +32091,7 @@ var WorkspaceFilter = function WorkspaceFilter(_ref) {
|
|
|
32098
32091
|
var ERROR_TITLE = 'View presets not available';
|
|
32099
32092
|
var ERROR_RETRY = 'Try again';
|
|
32100
32093
|
var ViewPresetMenuListConnect = function ViewPresetMenuListConnect(_ref) {
|
|
32101
|
-
var panelId = _ref.panelId
|
|
32102
|
-
_ref$isOpen = _ref.isOpen,
|
|
32103
|
-
isOpen = _ref$isOpen === void 0 ? true : _ref$isOpen;
|
|
32094
|
+
var panelId = _ref.panelId;
|
|
32104
32095
|
var viewPresets = useSelector(function (store) {
|
|
32105
32096
|
return getFilteredViewPresetListForView(store, panelId);
|
|
32106
32097
|
});
|
|
@@ -32113,9 +32104,11 @@ var ViewPresetMenuListConnect = function ViewPresetMenuListConnect(_ref) {
|
|
|
32113
32104
|
var viewPresetListFilters = useSelector(function (store) {
|
|
32114
32105
|
return getViewPresetListFiltersForView(store, panelId);
|
|
32115
32106
|
});
|
|
32107
|
+
var lastViewPresetListFilters = usePrevious(viewPresetListFilters);
|
|
32116
32108
|
var viewPresetListSearchQuery = useSelector(function (store) {
|
|
32117
32109
|
return getViewPresetListSearchQueryForView(store, panelId);
|
|
32118
32110
|
});
|
|
32111
|
+
var lastViewPresetListSearchQuery = usePrevious(viewPresetListSearchQuery);
|
|
32119
32112
|
var relatedSyncGroupIds = useSelector(function (store) {
|
|
32120
32113
|
return syncGroupsSelectors.getAllTargetGroupsForSource(store, panelId);
|
|
32121
32114
|
});
|
|
@@ -32129,11 +32122,11 @@ var ViewPresetMenuListConnect = function ViewPresetMenuListConnect(_ref) {
|
|
|
32129
32122
|
isLoggedIn = _useAuthenticationCon.isLoggedIn;
|
|
32130
32123
|
React.useEffect(function () {
|
|
32131
32124
|
// Only refetch list on changes to the filters if the dialog is open
|
|
32132
|
-
if (
|
|
32125
|
+
if (lastViewPresetListSearchQuery !== viewPresetListSearchQuery && lastViewPresetListSearchQuery !== undefined || lastViewPresetListFilters !== viewPresetListFilters && lastViewPresetListFilters !== undefined) {
|
|
32133
32126
|
fetchViewPresets();
|
|
32134
32127
|
}
|
|
32135
32128
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
32136
|
-
}, [viewPresetListFilters, viewPresetListSearchQuery]);
|
|
32129
|
+
}, [viewPresetListFilters, viewPresetListSearchQuery, lastViewPresetListFilters, lastViewPresetListSearchQuery]);
|
|
32137
32130
|
var dispatch = useDispatch();
|
|
32138
32131
|
var openViewPresetsDialog = React.useCallback(function (viewPresetDialogOptions) {
|
|
32139
32132
|
dispatch(viewPresetActions.openViewPresetDialog({
|
|
@@ -32282,8 +32275,7 @@ var ViewPresetMenuListConnect = function ViewPresetMenuListConnect(_ref) {
|
|
|
32282
32275
|
* */
|
|
32283
32276
|
var DIALOG_TITLE = 'View presets menu';
|
|
32284
32277
|
var ViewPresetMenu = function ViewPresetMenu(_ref) {
|
|
32285
|
-
var
|
|
32286
|
-
_ref$hideBackdrop = _ref.hideBackdrop,
|
|
32278
|
+
var _ref$hideBackdrop = _ref.hideBackdrop,
|
|
32287
32279
|
hideBackdrop = _ref$hideBackdrop === void 0 ? false : _ref$hideBackdrop,
|
|
32288
32280
|
closeMenu = _ref.closeMenu,
|
|
32289
32281
|
panelId = _ref.panelId;
|
|
@@ -32301,14 +32293,13 @@ var ViewPresetMenu = function ViewPresetMenu(_ref) {
|
|
|
32301
32293
|
event.stopPropagation();
|
|
32302
32294
|
}
|
|
32303
32295
|
}, /*#__PURE__*/React__default.createElement(ViewPresetMenuListConnect, {
|
|
32304
|
-
panelId: panelId
|
|
32305
|
-
isOpen: isOpen
|
|
32296
|
+
panelId: panelId
|
|
32306
32297
|
}));
|
|
32307
32298
|
return /*#__PURE__*/React__default.createElement("div", null, hideBackdrop ?
|
|
32308
32299
|
// Enable hiding backdrop from snapshot tests
|
|
32309
32300
|
toolContainer : /*#__PURE__*/React__default.createElement(Backdrop, {
|
|
32310
32301
|
"data-testid": "viewpresetMenuBackdrop",
|
|
32311
|
-
open:
|
|
32302
|
+
open: true,
|
|
32312
32303
|
sx: {
|
|
32313
32304
|
'&.MuiBackdrop-root': {
|
|
32314
32305
|
position: 'absolute',
|
|
@@ -32712,9 +32703,8 @@ var WorkspaceTileConnect = function WorkspaceTileConnect(_ref) {
|
|
|
32712
32703
|
id: mosaicNodeId,
|
|
32713
32704
|
componentType: view === null || view === void 0 ? void 0 : view.componentType,
|
|
32714
32705
|
initialProps: view === null || view === void 0 ? void 0 : view.initialProps
|
|
32715
|
-
}), /*#__PURE__*/React.createElement(ViewPresetMenu, {
|
|
32706
|
+
}), isViewPresetDialogOpen && /*#__PURE__*/React.createElement(ViewPresetMenu, {
|
|
32716
32707
|
panelId: mosaicNodeId,
|
|
32717
|
-
isOpen: isViewPresetDialogOpen || false,
|
|
32718
32708
|
closeMenu: function closeMenu() {
|
|
32719
32709
|
toggleViewPresetDialog({
|
|
32720
32710
|
panelId: mosaicNodeId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/workspace",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "GeoWeb Workspace library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -16,20 +16,21 @@
|
|
|
16
16
|
"@emotion/react": "11.10.6",
|
|
17
17
|
"@mui/material": "5.12.0",
|
|
18
18
|
"@mui/system": "5.12.0",
|
|
19
|
-
"@opengeoweb/api": "
|
|
20
|
-
"@opengeoweb/authentication": "
|
|
21
|
-
"@opengeoweb/core": "
|
|
22
|
-
"@opengeoweb/form-fields": "
|
|
23
|
-
"@opengeoweb/shared": "
|
|
24
|
-
"@opengeoweb/sigmet-airmet": "
|
|
25
|
-
"@opengeoweb/
|
|
26
|
-
"@opengeoweb/
|
|
27
|
-
"@opengeoweb/
|
|
19
|
+
"@opengeoweb/api": "6.0.1",
|
|
20
|
+
"@opengeoweb/authentication": "6.0.1",
|
|
21
|
+
"@opengeoweb/core": "6.0.1",
|
|
22
|
+
"@opengeoweb/form-fields": "6.0.1",
|
|
23
|
+
"@opengeoweb/shared": "6.0.1",
|
|
24
|
+
"@opengeoweb/sigmet-airmet": "6.0.1",
|
|
25
|
+
"@opengeoweb/store": "6.0.1",
|
|
26
|
+
"@opengeoweb/taf": "6.0.1",
|
|
27
|
+
"@opengeoweb/theme": "6.0.1",
|
|
28
|
+
"@opengeoweb/timeseries": "6.0.1",
|
|
28
29
|
"@redux-eggs/core": "2.2.0",
|
|
29
30
|
"@redux-eggs/redux-toolkit": "2.2.0",
|
|
30
31
|
"@redux-eggs/saga-extension": "2.2.0",
|
|
31
32
|
"@reduxjs/toolkit": "1.9.5",
|
|
32
|
-
"axios": "1.
|
|
33
|
+
"axios": "1.2.0",
|
|
33
34
|
"immer": "9.0.21",
|
|
34
35
|
"lodash": "4.17.21",
|
|
35
36
|
"react": "18.2.0",
|
|
@@ -3,7 +3,6 @@ export declare const ERROR_TITLE = "View presets not available";
|
|
|
3
3
|
export declare const ERROR_RETRY = "Try again";
|
|
4
4
|
interface ViewPresetMenuListConnectProps {
|
|
5
5
|
panelId: string;
|
|
6
|
-
isOpen?: boolean;
|
|
7
6
|
}
|
|
8
7
|
export declare const ViewPresetMenuListConnect: React.FC<ViewPresetMenuListConnectProps>;
|
|
9
8
|
export {};
|
package/src/lib/store/store.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CoreAppStore } from '@opengeoweb/store';
|
|
2
2
|
import type { WorkspaceModuleStore } from './config';
|
|
3
|
-
export interface AppStore extends WorkspaceModuleStore,
|
|
3
|
+
export interface AppStore extends WorkspaceModuleStore, CoreAppStore {
|
|
4
4
|
}
|
|
5
5
|
declare const store: import("@redux-eggs/core").EggExt & import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<any, import("redux").AnyAction, [import("@reduxjs/toolkit").ThunkMiddleware<any, import("redux").AnyAction, undefined>]>;
|
|
6
6
|
export { store };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mapEnums, layerTypes } from '@opengeoweb/store';
|
|
2
2
|
import { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
3
3
|
import { ErrorInitialViewPresetsPayload, ErrorViewPresetPayload, FetchedInitialViewPresetsPayload, FetchedViewPresetPayload, FetchedViewPresetsPayload, FetchViewPresetsPayload, ViewPresetEntity, ViewPresetState, OnSuccesViewPresetActionPayload, RegisterViewPresetPayload, SavedViewPresetPayload, SaveViewPresetPayload, SelectViewPresetPayload, SetActiveViewPresetIdPayload, SetViewPresetHasChangePayload, UnregisterViewPresetPayload, ToggleViewPresetListDialogPayload, OpenViewPresetDialogPayload, ToggleSelectFilterChip, SetSelectAllFilterChip, ViewPresetsListFilter, SearchWorkspaceFilter } from './types';
|
|
4
4
|
export declare const viewPresetsListFilterOptions: ViewPresetsListFilter[];
|
|
5
5
|
export declare const viewPresetsAdapter: import("@reduxjs/toolkit").EntityAdapter<ViewPresetEntity>;
|
|
6
6
|
export declare const initialState: ViewPresetState;
|
|
7
|
-
export declare type SupportedOrigins =
|
|
7
|
+
export declare type SupportedOrigins = layerTypes.LayerActionOrigin | mapEnums.MapActionOrigin;
|
|
8
8
|
export declare const supportedChangeOrigins: SupportedOrigins[];
|
|
9
9
|
export declare const reducer: import("redux").Reducer<ViewPresetState, import("redux").AnyAction>;
|
|
10
10
|
export declare const viewPresetActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
@@ -11,6 +11,36 @@ export declare const getViewPresetHasChanges: (store: AppStore, panelId: string)
|
|
|
11
11
|
export declare const getViewPresetActiveId: (store: AppStore, panelId: string) => string | undefined;
|
|
12
12
|
export declare const getDialogOptions: (store: AppStore) => ViewPresetDialog | undefined;
|
|
13
13
|
export declare const getIsViewPresetListDialogOpen: (store: AppStore, panelId: string) => boolean | undefined;
|
|
14
|
-
export declare const getViewPresetListFiltersForView: (
|
|
14
|
+
export declare const getViewPresetListFiltersForView: ((state: {
|
|
15
|
+
workspace?: import("../workspace/types").WorkspaceState | undefined;
|
|
16
|
+
workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
|
|
17
|
+
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
|
|
18
|
+
viewPresets?: ViewPresetState | undefined;
|
|
19
|
+
syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
20
|
+
ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
|
|
21
|
+
webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
|
|
22
|
+
services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
|
|
23
|
+
layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
|
|
24
|
+
layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
|
|
25
|
+
}, params_0: import("@reduxjs/toolkit").EntityId) => ViewPresetsListFilter[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").ViewPresetEntity | undefined) => ViewPresetsListFilter[], {
|
|
26
|
+
clearCache: () => void;
|
|
27
|
+
}> & {
|
|
28
|
+
clearCache: () => void;
|
|
29
|
+
};
|
|
15
30
|
export declare const getViewPresetListSearchQueryForView: (store: AppStore, panelId: string) => string;
|
|
16
|
-
export declare const getViewPresetListFilterResultsForView: (
|
|
31
|
+
export declare const getViewPresetListFilterResultsForView: ((state: {
|
|
32
|
+
workspace?: import("../workspace/types").WorkspaceState | undefined;
|
|
33
|
+
workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
|
|
34
|
+
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
|
|
35
|
+
viewPresets?: ViewPresetState | undefined;
|
|
36
|
+
syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
37
|
+
ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
|
|
38
|
+
webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
|
|
39
|
+
services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
|
|
40
|
+
layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
|
|
41
|
+
layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
|
|
42
|
+
}, params_0: import("@reduxjs/toolkit").EntityId) => ViewPresetListItem[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").ViewPresetEntity | undefined) => ViewPresetListItem[], {
|
|
43
|
+
clearCache: () => void;
|
|
44
|
+
}> & {
|
|
45
|
+
clearCache: () => void;
|
|
46
|
+
};
|
|
@@ -8,12 +8,12 @@ export declare const getFilteredViewPresetListForView: ((state: {
|
|
|
8
8
|
workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
|
|
9
9
|
viewPresetsList?: ViewPresetListState | undefined;
|
|
10
10
|
viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
|
|
11
|
-
syncronizationGroupStore?: import("dist/libs/
|
|
12
|
-
ui?: import("dist/libs/
|
|
13
|
-
webmap?: import("dist/libs/
|
|
14
|
-
services?: import("dist/libs/
|
|
15
|
-
layers?: import("dist/libs/
|
|
16
|
-
layerSelect?: import("dist/libs/
|
|
11
|
+
syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
12
|
+
ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
|
|
13
|
+
webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
|
|
14
|
+
services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
|
|
15
|
+
layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
|
|
16
|
+
layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
|
|
17
17
|
}, params_0: string) => ViewPresetListItem[]) & import("reselect").OutputSelectorFields<(args_0: ViewPresetListItem[], args_1: import("../workspace/types").ViewPresetListItem[], args_2: ViewPresetsListFilter[], args_3: string) => ViewPresetListItem[], {
|
|
18
18
|
clearCache: () => void;
|
|
19
19
|
}> & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
|
-
import {
|
|
2
|
+
import { mapStoreActions } from '@opengeoweb/store';
|
|
3
3
|
import { workspaceActions } from './reducer';
|
|
4
4
|
export declare function changePresetSaga({ payload, }: ReturnType<typeof workspaceActions.changePreset>): SagaIterator;
|
|
5
5
|
export declare function updateViewsSaga(): SagaIterator;
|
|
6
6
|
export declare function fetchWorkspaceViewPresetSaga({ payload, }: ReturnType<typeof workspaceActions.fetchWorkspaceViewPreset>): SagaIterator;
|
|
7
7
|
export declare function fetchWorkspaceSaga(action: ReturnType<typeof workspaceActions.fetchWorkspace>): SagaIterator;
|
|
8
8
|
export declare function saveWorkspacePresetSaga(action: ReturnType<typeof workspaceActions.saveWorkspacePreset>): SagaIterator;
|
|
9
|
-
export declare function registerMapSaga({ payload, }: ReturnType<typeof
|
|
10
|
-
export declare function unregisterMapSaga({ payload, }: ReturnType<typeof
|
|
9
|
+
export declare function registerMapSaga({ payload, }: ReturnType<typeof mapStoreActions.registerMap>): SagaIterator;
|
|
10
|
+
export declare function unregisterMapSaga({ payload, }: ReturnType<typeof mapStoreActions.unregisterMap>): SagaIterator;
|
|
11
11
|
declare function workspaceSaga(): SagaIterator;
|
|
12
12
|
export default workspaceSaga;
|
|
@@ -11,12 +11,12 @@ export declare const getWorkspaceState: ((state: {
|
|
|
11
11
|
workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
|
|
12
12
|
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
|
|
13
13
|
viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
|
|
14
|
-
syncronizationGroupStore?: import("dist/libs/
|
|
15
|
-
ui?: import("dist/libs/
|
|
16
|
-
webmap?: import("dist/libs/
|
|
17
|
-
services?: import("dist/libs/
|
|
18
|
-
layers?: import("dist/libs/
|
|
19
|
-
layerSelect?: import("
|
|
14
|
+
syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
15
|
+
ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
|
|
16
|
+
webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
|
|
17
|
+
services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
|
|
18
|
+
layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
|
|
19
|
+
layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
|
|
20
20
|
}) => WorkspaceState) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => WorkspaceState, {
|
|
21
21
|
clearCache: () => void;
|
|
22
22
|
}> & {
|
|
@@ -33,12 +33,12 @@ export declare const getMosaicNode: ((state: {
|
|
|
33
33
|
workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
|
|
34
34
|
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
|
|
35
35
|
viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
|
|
36
|
-
syncronizationGroupStore?: import("dist/libs/
|
|
37
|
-
ui?: import("dist/libs/
|
|
38
|
-
webmap?: import("dist/libs/
|
|
39
|
-
services?: import("dist/libs/
|
|
40
|
-
layers?: import("dist/libs/
|
|
41
|
-
layerSelect?: import("
|
|
36
|
+
syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
37
|
+
ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
|
|
38
|
+
webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
|
|
39
|
+
services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
|
|
40
|
+
layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
|
|
41
|
+
layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
|
|
42
42
|
}) => import("react-mosaic-component").MosaicNode<string>) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("react-mosaic-component").MosaicNode<string>, {
|
|
43
43
|
clearCache: () => void;
|
|
44
44
|
}> & {
|
|
@@ -63,12 +63,12 @@ export declare const getViewIds: ((state: {
|
|
|
63
63
|
workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
|
|
64
64
|
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
|
|
65
65
|
viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
|
|
66
|
-
syncronizationGroupStore?: import("dist/libs/
|
|
67
|
-
ui?: import("dist/libs/
|
|
68
|
-
webmap?: import("dist/libs/
|
|
69
|
-
services?: import("dist/libs/
|
|
70
|
-
layers?: import("dist/libs/
|
|
71
|
-
layerSelect?: import("
|
|
66
|
+
syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
67
|
+
ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
|
|
68
|
+
webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
|
|
69
|
+
services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
|
|
70
|
+
layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
|
|
71
|
+
layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
|
|
72
72
|
}) => string[]) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => string[], {
|
|
73
73
|
clearCache: () => void;
|
|
74
74
|
}> & {
|
|
@@ -86,12 +86,12 @@ export declare const getShouldPreventClose: ((state: {
|
|
|
86
86
|
workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
|
|
87
87
|
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
|
|
88
88
|
viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
|
|
89
|
-
syncronizationGroupStore?: import("dist/libs/
|
|
90
|
-
ui?: import("dist/libs/
|
|
91
|
-
webmap?: import("dist/libs/
|
|
92
|
-
services?: import("dist/libs/
|
|
93
|
-
layers?: import("dist/libs/
|
|
94
|
-
layerSelect?: import("
|
|
89
|
+
syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
90
|
+
ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
|
|
91
|
+
webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
|
|
92
|
+
services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
|
|
93
|
+
layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
|
|
94
|
+
layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
|
|
95
95
|
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceViewType) => boolean, {
|
|
96
96
|
clearCache: () => void;
|
|
97
97
|
}> & {
|
|
@@ -102,12 +102,12 @@ export declare const isWorkspaceLoading: ((state: {
|
|
|
102
102
|
workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
|
|
103
103
|
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
|
|
104
104
|
viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
|
|
105
|
-
syncronizationGroupStore?: import("dist/libs/
|
|
106
|
-
ui?: import("dist/libs/
|
|
107
|
-
webmap?: import("dist/libs/
|
|
108
|
-
services?: import("dist/libs/
|
|
109
|
-
layers?: import("dist/libs/
|
|
110
|
-
layerSelect?: import("
|
|
105
|
+
syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
106
|
+
ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
|
|
107
|
+
webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
|
|
108
|
+
services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
|
|
109
|
+
layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
|
|
110
|
+
layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
|
|
111
111
|
}) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => boolean, {
|
|
112
112
|
clearCache: () => void;
|
|
113
113
|
}> & {
|
|
@@ -118,12 +118,12 @@ export declare const getWorkspaceError: ((state: {
|
|
|
118
118
|
workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
|
|
119
119
|
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
|
|
120
120
|
viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
|
|
121
|
-
syncronizationGroupStore?: import("dist/libs/
|
|
122
|
-
ui?: import("dist/libs/
|
|
123
|
-
webmap?: import("dist/libs/
|
|
124
|
-
services?: import("dist/libs/
|
|
125
|
-
layers?: import("dist/libs/
|
|
126
|
-
layerSelect?: import("
|
|
121
|
+
syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
122
|
+
ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
|
|
123
|
+
webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
|
|
124
|
+
services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
|
|
125
|
+
layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
|
|
126
|
+
layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
|
|
127
127
|
}) => import("./types").WorkspaceError) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("./types").WorkspaceError, {
|
|
128
128
|
clearCache: () => void;
|
|
129
129
|
}> & {
|
|
@@ -140,12 +140,12 @@ export declare const getSelectedWorkspaceTitle: ((state: {
|
|
|
140
140
|
workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
|
|
141
141
|
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
|
|
142
142
|
viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
|
|
143
|
-
syncronizationGroupStore?: import("dist/libs/
|
|
144
|
-
ui?: import("dist/libs/
|
|
145
|
-
webmap?: import("dist/libs/
|
|
146
|
-
services?: import("dist/libs/
|
|
147
|
-
layers?: import("dist/libs/
|
|
148
|
-
layerSelect?: import("
|
|
143
|
+
syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
144
|
+
ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
|
|
145
|
+
webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
|
|
146
|
+
services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
|
|
147
|
+
layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
|
|
148
|
+
layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
|
|
149
149
|
}) => string) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => string, {
|
|
150
150
|
clearCache: () => void;
|
|
151
151
|
}> & {
|
|
@@ -156,12 +156,12 @@ export declare const hasWorkspaceChanges: ((state: {
|
|
|
156
156
|
workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
|
|
157
157
|
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
|
|
158
158
|
viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
|
|
159
|
-
syncronizationGroupStore?: import("dist/libs/
|
|
160
|
-
ui?: import("dist/libs/
|
|
161
|
-
webmap?: import("dist/libs/
|
|
162
|
-
services?: import("dist/libs/
|
|
163
|
-
layers?: import("dist/libs/
|
|
164
|
-
layerSelect?: import("
|
|
159
|
+
syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
160
|
+
ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
|
|
161
|
+
webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
|
|
162
|
+
services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
|
|
163
|
+
layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
|
|
164
|
+
layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
|
|
165
165
|
}) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => boolean, {
|
|
166
166
|
clearCache: () => void;
|
|
167
167
|
}> & {
|
|
@@ -178,12 +178,12 @@ export declare const getViewType: ((state: {
|
|
|
178
178
|
workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
|
|
179
179
|
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
|
|
180
180
|
viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
|
|
181
|
-
syncronizationGroupStore?: import("dist/libs/
|
|
182
|
-
ui?: import("dist/libs/
|
|
183
|
-
webmap?: import("dist/libs/
|
|
184
|
-
services?: import("dist/libs/
|
|
185
|
-
layers?: import("dist/libs/
|
|
186
|
-
layerSelect?: import("
|
|
181
|
+
syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
182
|
+
ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
|
|
183
|
+
webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
|
|
184
|
+
services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
|
|
185
|
+
layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
|
|
186
|
+
layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
|
|
187
187
|
}) => "" | import("./types").ViewType) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => "" | import("./types").ViewType, {
|
|
188
188
|
clearCache: () => void;
|
|
189
189
|
}> & {
|
|
@@ -200,12 +200,12 @@ export declare const getSelectedWorkspaceScope: ((state: {
|
|
|
200
200
|
workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
|
|
201
201
|
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
|
|
202
202
|
viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
|
|
203
|
-
syncronizationGroupStore?: import("dist/libs/
|
|
204
|
-
ui?: import("dist/libs/
|
|
205
|
-
webmap?: import("dist/libs/
|
|
206
|
-
services?: import("dist/libs/
|
|
207
|
-
layers?: import("dist/libs/
|
|
208
|
-
layerSelect?: import("
|
|
203
|
+
syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
204
|
+
ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
|
|
205
|
+
webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
|
|
206
|
+
services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
|
|
207
|
+
layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
|
|
208
|
+
layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
|
|
209
209
|
}) => import("./types").PresetScope) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("./types").PresetScope, {
|
|
210
210
|
clearCache: () => void;
|
|
211
211
|
}> & {
|
|
@@ -222,18 +222,18 @@ export declare const getWorkspaceData: ((state: {
|
|
|
222
222
|
workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
|
|
223
223
|
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
|
|
224
224
|
viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
|
|
225
|
-
syncronizationGroupStore?: import("dist/libs/
|
|
226
|
-
ui?: import("dist/libs/
|
|
227
|
-
webmap?: import("dist/libs/
|
|
228
|
-
services?: import("dist/libs/
|
|
229
|
-
layers?: import("dist/libs/
|
|
230
|
-
layerSelect?: import("
|
|
225
|
+
syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
226
|
+
ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
|
|
227
|
+
webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
|
|
228
|
+
services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
|
|
229
|
+
layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
|
|
230
|
+
layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
|
|
231
231
|
}) => {
|
|
232
232
|
id: string | undefined;
|
|
233
233
|
title: string;
|
|
234
234
|
syncGroups: {
|
|
235
235
|
id: string;
|
|
236
|
-
type: import("dist/libs/
|
|
236
|
+
type: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SyncType;
|
|
237
237
|
}[];
|
|
238
238
|
views: {
|
|
239
239
|
mosaicNodeId: string;
|
|
@@ -243,12 +243,12 @@ export declare const getWorkspaceData: ((state: {
|
|
|
243
243
|
scope: import("./types").PresetScope | undefined;
|
|
244
244
|
abstract: string | undefined;
|
|
245
245
|
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
246
|
-
}) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState, args_1: import("../viewPresets/types").ViewPresetState, args_2: import("dist/libs/
|
|
246
|
+
}) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState, args_1: import("../viewPresets/types").ViewPresetState, args_2: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState) => {
|
|
247
247
|
id: string | undefined;
|
|
248
248
|
title: string;
|
|
249
249
|
syncGroups: {
|
|
250
250
|
id: string;
|
|
251
|
-
type: import("dist/libs/
|
|
251
|
+
type: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SyncType;
|
|
252
252
|
}[];
|
|
253
253
|
views: {
|
|
254
254
|
mosaicNodeId: string;
|
|
@@ -268,18 +268,18 @@ export declare const getViewPresetToSendToBackend: ((state: {
|
|
|
268
268
|
workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
|
|
269
269
|
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
|
|
270
270
|
viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
|
|
271
|
-
syncronizationGroupStore?: import("dist/libs/
|
|
272
|
-
ui?: import("dist/libs/
|
|
273
|
-
webmap?: import("dist/libs/
|
|
274
|
-
services?: import("dist/libs/
|
|
275
|
-
layers?: import("dist/libs/
|
|
276
|
-
layerSelect?: import("
|
|
271
|
+
syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
272
|
+
ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
|
|
273
|
+
webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
|
|
274
|
+
services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
|
|
275
|
+
layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
|
|
276
|
+
layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
|
|
277
277
|
}, params_0: string) => {
|
|
278
278
|
id: string | undefined;
|
|
279
279
|
scope: import("./types").PresetScope;
|
|
280
280
|
title: string;
|
|
281
281
|
initialProps: {
|
|
282
|
-
mapPreset: import("dist/libs/
|
|
282
|
+
mapPreset: import("dist/libs/store/src/store/mapStore/types").MapPreset;
|
|
283
283
|
syncGroupsIds: string[];
|
|
284
284
|
};
|
|
285
285
|
/**
|
|
@@ -291,12 +291,12 @@ export declare const getViewPresetToSendToBackend: ((state: {
|
|
|
291
291
|
*/
|
|
292
292
|
componentType: "Map";
|
|
293
293
|
keywords: string;
|
|
294
|
-
}) & import("reselect").OutputSelectorFields<(args_0: WorkspaceViewType, args_1: import("dist/libs/
|
|
294
|
+
}) & import("reselect").OutputSelectorFields<(args_0: WorkspaceViewType, args_1: import("dist/libs/store/src/store/mapStore/types").MapPreset, args_2: string[]) => {
|
|
295
295
|
id: string | undefined;
|
|
296
296
|
scope: import("./types").PresetScope;
|
|
297
297
|
title: string;
|
|
298
298
|
initialProps: {
|
|
299
|
-
mapPreset: import("dist/libs/
|
|
299
|
+
mapPreset: import("dist/libs/store/src/store/mapStore/types").MapPreset;
|
|
300
300
|
syncGroupsIds: string[];
|
|
301
301
|
};
|
|
302
302
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { syncGroupsTypes } from '@opengeoweb/store';
|
|
2
3
|
import { MosaicNode } from 'react-mosaic-component';
|
|
3
|
-
import { SyncGroups } from '@opengeoweb/core';
|
|
4
4
|
declare type InitialPropsWorkspaceViewType = Record<string, unknown>;
|
|
5
5
|
export declare type WorkspaceViewPresetComponentsLookupType = 'ViewError' | 'ViewLoading';
|
|
6
6
|
export interface WorkspaceViewType {
|
|
@@ -23,7 +23,7 @@ export interface WorkspaceViewsFromBE {
|
|
|
23
23
|
export declare type ViewType = 'singleWindow' | 'multiWindow' | 'tiledWindow';
|
|
24
24
|
export interface WorkspaceSyncGroup {
|
|
25
25
|
id: string;
|
|
26
|
-
type:
|
|
26
|
+
type: syncGroupsTypes.SyncType;
|
|
27
27
|
title?: string;
|
|
28
28
|
}
|
|
29
29
|
export interface WorkspacePreset {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { syncGroupsTypes } from '@opengeoweb/store';
|
|
2
2
|
import { MosaicNode } from 'react-mosaic-component';
|
|
3
3
|
import { AxiosError } from 'axios';
|
|
4
4
|
import { PresetsApi } from '../../utils/api';
|
|
@@ -15,9 +15,9 @@ export declare const getListInChunks: (views: WorkspaceViewsFromBE[]) => Workspa
|
|
|
15
15
|
export declare const defaultSyncGroups: {
|
|
16
16
|
groupId: string;
|
|
17
17
|
title: string;
|
|
18
|
-
type:
|
|
18
|
+
type: syncGroupsTypes.SyncType;
|
|
19
19
|
}[];
|
|
20
|
-
export declare const getSyncGroups: (syncGroups?: WorkspaceSyncGroup[]) =>
|
|
20
|
+
export declare const getSyncGroups: (syncGroups?: WorkspaceSyncGroup[]) => syncGroupsTypes.SyncGroupAddGroupPayload[];
|
|
21
21
|
export declare const tiledWindowComponentTypes: string[];
|
|
22
22
|
export declare const getViewType: (numViews: number, firstViewComponentType: string) => ViewType;
|
|
23
23
|
/**
|
|
@@ -6,5 +6,20 @@ export declare const getWorkspaceListError: (store: AppStore) => WorkspaceListEr
|
|
|
6
6
|
export declare const getWorkspaceList: (state: AppStore) => import("../workspace/types").WorkspacePresetListItem[];
|
|
7
7
|
export declare const getWorkspaceActionDialogDetails: (store: AppStore) => WorkspaceActionDialogType | boolean;
|
|
8
8
|
export declare const getIsWorkspaceListDialogOpen: (store: AppStore) => boolean;
|
|
9
|
-
export declare const getWorkspaceListFilters: (
|
|
9
|
+
export declare const getWorkspaceListFilters: ((state: {
|
|
10
|
+
workspace?: import("../workspace/types").WorkspaceState | undefined;
|
|
11
|
+
workspaceList?: WorkspaceListState | undefined;
|
|
12
|
+
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
|
|
13
|
+
viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
|
|
14
|
+
syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
15
|
+
ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
|
|
16
|
+
webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
|
|
17
|
+
services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
|
|
18
|
+
layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
|
|
19
|
+
layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
|
|
20
|
+
}) => WorkspaceListFilter[]) & import("reselect").OutputSelectorFields<(args_0: WorkspaceListState) => WorkspaceListFilter[], {
|
|
21
|
+
clearCache: () => void;
|
|
22
|
+
}> & {
|
|
23
|
+
clearCache: () => void;
|
|
24
|
+
};
|
|
10
25
|
export declare const getWorkspaceListSearchQuery: (store: AppStore) => string;
|