@opengeoweb/store 19.1.0 → 19.1.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/dist/README.md +11 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +10819 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/store/common/auth/index.d.ts +3 -0
- package/dist/src/store/common/auth/reducer.d.ts +14 -0
- package/dist/src/store/common/auth/selectors.d.ts +87 -0
- package/dist/src/store/common/auth/types.d.ts +22 -0
- package/dist/src/store/common/index.d.ts +81 -0
- package/dist/src/store/common/listener.d.ts +2 -0
- package/dist/src/store/common/types.d.ts +6 -0
- package/dist/src/store/drawingTool/index.d.ts +4 -0
- package/dist/src/store/drawingTool/listener.d.ts +3 -0
- package/dist/src/store/drawingTool/reducer.d.ts +45 -0
- package/dist/src/store/drawingTool/selectors.d.ts +347 -0
- package/dist/src/store/drawingTool/testUtils.d.ts +1 -0
- package/dist/src/store/drawingTool/utils.d.ts +1 -0
- package/dist/src/store/generic/actions.d.ts +28 -0
- package/dist/src/store/generic/hooks.d.ts +6 -0
- package/dist/src/store/generic/index.d.ts +27 -0
- package/dist/src/store/generic/linking/constants.d.ts +6 -0
- package/dist/src/store/generic/linking/index.d.ts +2 -0
- package/dist/src/store/generic/linking/utils.d.ts +9 -0
- package/dist/src/store/generic/listener.d.ts +2 -0
- package/dist/src/store/generic/loadingIndicator/constants.d.ts +1 -0
- package/dist/src/store/generic/loadingIndicator/index.d.ts +3 -0
- package/dist/src/store/generic/loadingIndicator/reducer.d.ts +13 -0
- package/dist/src/store/generic/loadingIndicator/selectors.d.ts +337 -0
- package/dist/src/store/generic/loadingIndicator/types.d.ts +22 -0
- package/dist/src/store/generic/selectors.d.ts +715 -0
- package/dist/src/store/generic/syncGroups/__mocks__/mockState.d.ts +2 -0
- package/dist/src/store/generic/syncGroups/constants.d.ts +5 -0
- package/dist/src/store/generic/syncGroups/featureGroupUtils.d.ts +11 -0
- package/dist/src/store/generic/syncGroups/featureLinks.d.ts +6 -0
- package/dist/src/store/generic/syncGroups/featureSyncLayers.d.ts +10 -0
- package/dist/src/store/generic/syncGroups/hooks.d.ts +20 -0
- package/dist/src/store/generic/syncGroups/index.d.ts +13 -0
- package/dist/src/store/generic/syncGroups/listener.d.ts +2 -0
- package/dist/src/store/generic/syncGroups/reducer.d.ts +62 -0
- package/dist/src/store/generic/syncGroups/selector.d.ts +50 -0
- package/dist/src/store/generic/syncGroups/selectors.d.ts +235 -0
- package/dist/src/store/generic/syncGroups/syncSourceDisplayName.d.ts +2 -0
- package/dist/src/store/generic/syncGroups/types.d.ts +200 -0
- package/dist/src/store/generic/syncGroups/utils.d.ts +76 -0
- package/dist/src/store/generic/synchronizationActions/actions.d.ts +11 -0
- package/dist/src/store/generic/synchronizationActions/types.d.ts +43 -0
- package/dist/src/store/generic/types.d.ts +24 -0
- package/dist/src/store/generic/utils.d.ts +9 -0
- package/dist/src/store/index.d.ts +22 -0
- package/dist/src/store/map/index.d.ts +5 -0
- package/dist/src/store/map/layer/index.d.ts +6 -0
- package/dist/src/store/map/layer/listeners.d.ts +2 -0
- package/dist/src/store/map/layer/reducer.d.ts +94 -0
- package/dist/src/store/map/layer/selectors.d.ts +2547 -0
- package/dist/src/store/map/layer/types.d.ts +198 -0
- package/dist/src/store/map/layer/utils.d.ts +41 -0
- package/dist/src/store/map/map/actions.d.ts +9 -0
- package/dist/src/store/map/map/constants.d.ts +3 -0
- package/dist/src/store/map/map/enums.d.ts +3 -0
- package/dist/src/store/map/map/filterLayers.d.ts +10 -0
- package/dist/src/store/map/map/index.d.ts +26 -0
- package/dist/src/store/map/map/listener.d.ts +4 -0
- package/dist/src/store/map/map/mapListenerAnimationUtils.d.ts +28 -0
- package/dist/src/store/map/map/metronomeListener.d.ts +2 -0
- package/dist/src/store/map/map/olMapListenerAnimationUtils.d.ts +46 -0
- package/dist/src/store/map/map/reducer.d.ts +142 -0
- package/dist/src/store/map/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.d.ts +7 -0
- package/dist/src/store/map/map/selectors.d.ts +3533 -0
- package/dist/src/store/map/map/types.d.ts +328 -0
- package/dist/src/store/map/map/utils.d.ts +87 -0
- package/dist/src/store/map/service/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -0
- package/dist/src/store/map/service/index.d.ts +4 -0
- package/dist/src/store/map/service/listener.d.ts +5 -0
- package/dist/src/store/map/service/localStorage.d.ts +3 -0
- package/dist/src/store/map/service/reducer.d.ts +10 -0
- package/dist/src/store/map/service/selectors.d.ts +386 -0
- package/dist/src/store/map/service/types.d.ts +53 -0
- package/dist/src/store/map/storeTestSettings.d.ts +8 -0
- package/dist/src/store/map/storeTestUtils.d.ts +17 -0
- package/dist/src/store/map/types.d.ts +11 -0
- package/dist/src/store/mapStore/openlayers/listener.d.ts +2 -0
- package/dist/src/store/mapStore/openlayers/syncGroupViewStore.d.ts +26 -0
- package/dist/src/store/router/index.d.ts +2 -0
- package/dist/src/store/router/listener.d.ts +2 -0
- package/dist/src/store/router/reducer.d.ts +9 -0
- package/dist/src/store/router/types.d.ts +9 -0
- package/dist/src/store/router/utils.d.ts +4 -0
- package/dist/src/store/store.d.ts +37 -0
- package/dist/src/store/types.d.ts +7 -0
- package/dist/src/store/ui/index.d.ts +5 -0
- package/dist/src/store/ui/reducer.d.ts +39 -0
- package/dist/src/store/ui/selectors.d.ts +234 -0
- package/dist/src/store/ui/types.d.ts +98 -0
- package/dist/src/store/ui/useSetupDialog.d.ts +11 -0
- package/dist/src/store/unifyReducerMaps.d.ts +3 -0
- package/dist/src/store/utils.d.ts +6 -0
- package/package.json +3 -2
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const SYNCGROUPS_TYPE_SETTIME = "SYNCGROUPS_TYPE_SETTIME";
|
|
2
|
+
export declare const SYNCGROUPS_TYPE_SETBBOX = "SYNCGROUPS_TYPE_SETBBOX";
|
|
3
|
+
export declare const SYNCGROUPS_TYPE_SETFEATURES = "SYNCGROUPS_TYPE_SETFEATURES";
|
|
4
|
+
export declare const SYNCGROUPS_TYPE_SETLAYERACTIONS = "SYNCGROUPS_TYPE_SETLAYERACTIONS";
|
|
5
|
+
export declare const SYNCGROUPS_SET_VIEW_STATE = "SYNCGROUPS_SET_VIEW_STATE";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SynchronizationGroupState } from './types';
|
|
2
|
+
export declare const WARNING_DIALOG_PANEL_ID = "warning-dialog";
|
|
3
|
+
export type WorkspaceViewsById = Record<string, {
|
|
4
|
+
componentType?: string;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const getFeatureSourcePanelId: (group: SynchronizationGroupState["groups"]["byId"][string] | undefined) => string | undefined;
|
|
7
|
+
export declare const isFeatureSource: (source: SynchronizationGroupState["sources"]["byId"][string] | undefined) => boolean;
|
|
8
|
+
export declare const isMapSource: (source: SynchronizationGroupState["sources"]["byId"][string] | undefined) => boolean;
|
|
9
|
+
export declare const getMapSourceIds: (state: SynchronizationGroupState) => Set<string>;
|
|
10
|
+
export declare const getFeatureSourceIds: (state: SynchronizationGroupState) => string[];
|
|
11
|
+
export declare const shouldRemoveFeatureGroupForPanel: (panelId: string, views?: WorkspaceViewsById, isActiveFeatureSource?: boolean) => boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SynchronizationGroupState } from './types';
|
|
2
|
+
export declare const FEATURE_GROUP_PREFIX = "Features_";
|
|
3
|
+
export declare const getFeatureGroupId: (panelId: string) => string;
|
|
4
|
+
export declare const getLinkedTargetIdsForFeatureSourcePanel: (syncState: SynchronizationGroupState | undefined, panelId?: string) => string[];
|
|
5
|
+
export declare const getFeatureLinksForAllPanelsFromState: (syncState: SynchronizationGroupState | undefined) => Record<string, string[]>;
|
|
6
|
+
export declare const getLinkedFeatureSourcePanelIdsForMapId: (linksByPanelId: Record<string, string[]>, mapId: string) => string[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Dispatch, UnknownAction } from '@reduxjs/toolkit';
|
|
2
|
+
import type { FeatureLayer, FeatureSyncLayerMetadata, LayerState, ReduxLayer } from '../../map/layer/types';
|
|
3
|
+
export declare const makeFeatureSyncLayerId: (panelId: string, featureLayerKey: string, mapId: string) => string;
|
|
4
|
+
export declare const getFeatureSyncLayerMetadata: (layer?: ReduxLayer) => FeatureSyncLayerMetadata | undefined;
|
|
5
|
+
export declare const getFeatureSyncLayersForPanel: (layersState: LayerState | undefined, panelId: string) => {
|
|
6
|
+
layerId: string;
|
|
7
|
+
featureLayerKey: string;
|
|
8
|
+
mapId: string;
|
|
9
|
+
}[];
|
|
10
|
+
export declare const upsertFeatureSyncLayer: (layersState: LayerState | undefined, dispatch: Dispatch<UnknownAction>, panelId: string, featureLayerKey: string, mapId: string, featureLayerData: FeatureLayer) => void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TimeSliderStartEndStepCurrent } from '../../map/map/types';
|
|
2
|
+
/**
|
|
3
|
+
* Registers/unregisters a panel as a feature-sync source.
|
|
4
|
+
*/
|
|
5
|
+
export declare const useRegisterFeatureSyncSource: (panelId: string) => void;
|
|
6
|
+
/**
|
|
7
|
+
* This registers a new syncgroup source for given panelId. The source is not synced to any group by default.
|
|
8
|
+
* When the user links the source with a group, this hook returns an object with the timeslider state (start, end, step and current time) for the panel (if effectively linked).
|
|
9
|
+
*
|
|
10
|
+
* How it works:
|
|
11
|
+
* - Registers/unregisters the source on mount/unmount.
|
|
12
|
+
* - Returns `{ start, end, step, current }` when linked.
|
|
13
|
+
* - Uses linked map selected time as `current` when available.
|
|
14
|
+
* - Falls back to sync source "now" timestamp when
|
|
15
|
+
* synced state is not initialized yet.
|
|
16
|
+
*
|
|
17
|
+
* @param panelId panelId to register as sync source
|
|
18
|
+
* @returns timeslider state
|
|
19
|
+
*/
|
|
20
|
+
export declare const useSyncgroupTimeState: (panelId: string, debounceMs?: number) => TimeSliderStartEndStepCurrent | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { syncGroupsListener } from './listener';
|
|
2
|
+
export { syncGroupsListener };
|
|
3
|
+
export { syncGroupsActions, initialState, syncGroupsReducer } from './reducer';
|
|
4
|
+
export * as syncConstants from './constants';
|
|
5
|
+
export * as types from './types';
|
|
6
|
+
export type { SynchronizationGroupModuleState } from './types';
|
|
7
|
+
export * as syncGroupsSelectors from './selectors';
|
|
8
|
+
export * as syncGroupsTypes from './types';
|
|
9
|
+
export * as syncGroupsSelector from './selector';
|
|
10
|
+
export * from './featureLinks';
|
|
11
|
+
export * from './featureSyncLayers';
|
|
12
|
+
export * from './syncSourceDisplayName';
|
|
13
|
+
export * from './hooks';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { SynchronizationGroupModuleState } from './types';
|
|
2
|
+
export declare const syncGroupsListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<SynchronizationGroupModuleState, import("redux-thunk").ThunkDispatch<SynchronizationGroupModuleState, unknown, import("redux").UnknownAction>, unknown>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
|
+
import type { SynchronizationGroupState, SyncGroupAddTargetPayload, SyncGroupAddGroupPayload, SyncGroupRemoveTargetPayload, SyncGroupRemoveGroupPayload, SyncGroupSetViewStatePayload, SyncGroupLinkTargetPayload, SyncGroupRemoveSourcePayload, SyncGroupsAddSourcePayload, SyncGroupToggleIsTimeScrollingEnabled, UpdateLinkedMap, AddFeatureSyncState, DeleteFeatureSyncState, DeleteFeatureLayer, SetLinkedMap } from './types';
|
|
3
|
+
export declare const initialState: SynchronizationGroupState;
|
|
4
|
+
export declare const slice: import("@reduxjs/toolkit").Slice<SynchronizationGroupState, {
|
|
5
|
+
/** Sets the links map.
|
|
6
|
+
* This is used to override the links when changing workspaces.
|
|
7
|
+
* @param draft sync state
|
|
8
|
+
* @param {Record<string, string[]>} action.newLinks the new links object
|
|
9
|
+
*/
|
|
10
|
+
setLinkedMap: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SetLinkedMap>) => void;
|
|
11
|
+
/** Updates the links map.
|
|
12
|
+
* This is used to update the links when operating the link menu.
|
|
13
|
+
* @param draft sync state
|
|
14
|
+
* @param {string} action.panelId id of the panel updating it's links
|
|
15
|
+
* @param {string[]} action.mapIds the new linked maps
|
|
16
|
+
*/
|
|
17
|
+
updateLinkedMap: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<UpdateLinkedMap>) => void;
|
|
18
|
+
removeLinkedMap: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<string>) => void;
|
|
19
|
+
addFeatureSyncState: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<AddFeatureSyncState>) => void;
|
|
20
|
+
deleteFeatureSyncState: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<DeleteFeatureSyncState>) => void;
|
|
21
|
+
deleteFeatureLayer: (draft: Draft<SynchronizationGroupState>, _action: PayloadAction<DeleteFeatureLayer>) => void;
|
|
22
|
+
syncGroupAddSource: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupsAddSourcePayload>) => void;
|
|
23
|
+
syncGroupRemoveSource: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupRemoveSourcePayload>) => void;
|
|
24
|
+
syncGroupAddTarget: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupAddTargetPayload>) => void;
|
|
25
|
+
syncGroupRemoveTarget: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupRemoveTargetPayload>) => void;
|
|
26
|
+
syncGroupLinkTarget: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupLinkTargetPayload>) => void;
|
|
27
|
+
syncGroupAddGroup: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupAddGroupPayload>) => void;
|
|
28
|
+
syncGroupRemoveGroup: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupRemoveGroupPayload>) => void;
|
|
29
|
+
syncGroupClear: () => SynchronizationGroupState;
|
|
30
|
+
syncGroupSetViewState: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupSetViewStatePayload>) => void;
|
|
31
|
+
syncGroupToggleIsTimeScrollingEnabled: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupToggleIsTimeScrollingEnabled>) => void;
|
|
32
|
+
}, "synchronizationGroupsReducer", "synchronizationGroupsReducer", import("@reduxjs/toolkit").SliceSelectors<SynchronizationGroupState>>;
|
|
33
|
+
export declare const syncGroupAddGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupAddGroupPayload, "synchronizationGroupsReducer/syncGroupAddGroup">, syncGroupAddSource: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupsAddSourcePayload, "synchronizationGroupsReducer/syncGroupAddSource">, syncGroupAddTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupAddTargetPayload, "synchronizationGroupsReducer/syncGroupAddTarget">, syncGroupClear: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"synchronizationGroupsReducer/syncGroupClear">, syncGroupLinkTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupLinkTargetPayload, "synchronizationGroupsReducer/syncGroupLinkTarget">, syncGroupRemoveGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupRemoveGroupPayload, "synchronizationGroupsReducer/syncGroupRemoveGroup">, syncGroupRemoveSource: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupRemoveSourcePayload, "synchronizationGroupsReducer/syncGroupRemoveSource">, syncGroupRemoveTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupRemoveTargetPayload, "synchronizationGroupsReducer/syncGroupRemoveTarget">, syncGroupSetViewState: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupSetViewStatePayload, "synchronizationGroupsReducer/syncGroupSetViewState">;
|
|
34
|
+
export declare const syncGroupsReducer: import("redux").Reducer<SynchronizationGroupState>, syncGroupsActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
35
|
+
/** Sets the links map.
|
|
36
|
+
* This is used to override the links when changing workspaces.
|
|
37
|
+
* @param draft sync state
|
|
38
|
+
* @param {Record<string, string[]>} action.newLinks the new links object
|
|
39
|
+
*/
|
|
40
|
+
setLinkedMap: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SetLinkedMap>) => void;
|
|
41
|
+
/** Updates the links map.
|
|
42
|
+
* This is used to update the links when operating the link menu.
|
|
43
|
+
* @param draft sync state
|
|
44
|
+
* @param {string} action.panelId id of the panel updating it's links
|
|
45
|
+
* @param {string[]} action.mapIds the new linked maps
|
|
46
|
+
*/
|
|
47
|
+
updateLinkedMap: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<UpdateLinkedMap>) => void;
|
|
48
|
+
removeLinkedMap: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<string>) => void;
|
|
49
|
+
addFeatureSyncState: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<AddFeatureSyncState>) => void;
|
|
50
|
+
deleteFeatureSyncState: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<DeleteFeatureSyncState>) => void;
|
|
51
|
+
deleteFeatureLayer: (draft: Draft<SynchronizationGroupState>, _action: PayloadAction<DeleteFeatureLayer>) => void;
|
|
52
|
+
syncGroupAddSource: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupsAddSourcePayload>) => void;
|
|
53
|
+
syncGroupRemoveSource: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupRemoveSourcePayload>) => void;
|
|
54
|
+
syncGroupAddTarget: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupAddTargetPayload>) => void;
|
|
55
|
+
syncGroupRemoveTarget: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupRemoveTargetPayload>) => void;
|
|
56
|
+
syncGroupLinkTarget: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupLinkTargetPayload>) => void;
|
|
57
|
+
syncGroupAddGroup: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupAddGroupPayload>) => void;
|
|
58
|
+
syncGroupRemoveGroup: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupRemoveGroupPayload>) => void;
|
|
59
|
+
syncGroupClear: () => SynchronizationGroupState;
|
|
60
|
+
syncGroupSetViewState: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupSetViewStatePayload>) => void;
|
|
61
|
+
syncGroupToggleIsTimeScrollingEnabled: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupToggleIsTimeScrollingEnabled>) => void;
|
|
62
|
+
}, "synchronizationGroupsReducer">;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { SyncGroupViewState, SynchronizationGroups, SynchronizationSources, SyncType } from './types';
|
|
2
|
+
import type { CoreAppStore } from '../../types';
|
|
3
|
+
export declare const groupTypes: {
|
|
4
|
+
title: string;
|
|
5
|
+
syncType: SyncType;
|
|
6
|
+
groupType: string;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const createSyncGroupViewState: (groups: SynchronizationGroups, sources: SynchronizationSources, viewsById?: Record<string, {
|
|
9
|
+
id?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
componentType?: string;
|
|
12
|
+
}>, linksByPanelId?: Record<string, string[]>) => SyncGroupViewState;
|
|
13
|
+
export declare const getWorkspaceViewsById: (store: CoreAppStore) => Record<string, {
|
|
14
|
+
id?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
componentType?: string;
|
|
17
|
+
}> | undefined;
|
|
18
|
+
export declare const createSyncGroupViewStateSelector: ((state: CoreAppStore) => SyncGroupViewState) & {
|
|
19
|
+
clearCache: () => void;
|
|
20
|
+
resultsCount: () => number;
|
|
21
|
+
resetResultsCount: () => void;
|
|
22
|
+
} & {
|
|
23
|
+
resultFunc: (resultFuncArgs_0: SynchronizationGroups, resultFuncArgs_1: SynchronizationSources, resultFuncArgs_2: Record<string, {
|
|
24
|
+
id?: string;
|
|
25
|
+
title?: string;
|
|
26
|
+
componentType?: string;
|
|
27
|
+
}> | undefined) => SyncGroupViewState;
|
|
28
|
+
memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroups, resultFuncArgs_1: SynchronizationSources, resultFuncArgs_2: Record<string, {
|
|
29
|
+
id?: string;
|
|
30
|
+
title?: string;
|
|
31
|
+
componentType?: string;
|
|
32
|
+
}> | undefined) => SyncGroupViewState) & {
|
|
33
|
+
clearCache: () => void;
|
|
34
|
+
resultsCount: () => number;
|
|
35
|
+
resetResultsCount: () => void;
|
|
36
|
+
};
|
|
37
|
+
lastResult: () => SyncGroupViewState;
|
|
38
|
+
dependencies: [(store: CoreAppStore) => SynchronizationGroups, (store: CoreAppStore) => SynchronizationSources, (store: CoreAppStore) => Record<string, {
|
|
39
|
+
id?: string;
|
|
40
|
+
title?: string;
|
|
41
|
+
componentType?: string;
|
|
42
|
+
}> | undefined];
|
|
43
|
+
recomputations: () => number;
|
|
44
|
+
resetRecomputations: () => void;
|
|
45
|
+
dependencyRecomputations: () => number;
|
|
46
|
+
resetDependencyRecomputations: () => void;
|
|
47
|
+
} & {
|
|
48
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
49
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
50
|
+
};
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import type { SyncGroupTarget, SynchronizationGroup, SynchronizationGroupState, SynchronizationSource, SyncType } from './types';
|
|
2
|
+
import type { CoreAppStore } from '../../types';
|
|
3
|
+
import type { GenericSyncActionPayload } from '../synchronizationActions/types';
|
|
4
|
+
import type { GenericActionPayload } from '../types';
|
|
5
|
+
export declare const syncGroupStore: (store: CoreAppStore) => SynchronizationGroupState;
|
|
6
|
+
/**
|
|
7
|
+
* Gets synchronization group state
|
|
8
|
+
*
|
|
9
|
+
* Example: synchronizationGroupState = getSynchronizationGroupState(store)
|
|
10
|
+
* @param {object} store store: object - Store object
|
|
11
|
+
* @returns {object} returnType: SynchronizationGroupState
|
|
12
|
+
*/
|
|
13
|
+
export declare const getSynchronizationGroupState: (store: CoreAppStore) => SynchronizationGroupState;
|
|
14
|
+
export declare const getSynchronizationGroup: ((state: any, id: any) => SynchronizationGroup) & {
|
|
15
|
+
clearCache: () => void;
|
|
16
|
+
resultsCount: () => number;
|
|
17
|
+
resetResultsCount: () => void;
|
|
18
|
+
} & {
|
|
19
|
+
resultFunc: (resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string) => SynchronizationGroup;
|
|
20
|
+
memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string) => SynchronizationGroup) & {
|
|
21
|
+
clearCache: () => void;
|
|
22
|
+
resultsCount: () => number;
|
|
23
|
+
resetResultsCount: () => void;
|
|
24
|
+
};
|
|
25
|
+
lastResult: () => SynchronizationGroup;
|
|
26
|
+
dependencies: [(store: CoreAppStore) => SynchronizationGroupState, (syncGroupStore: any, id: any) => string];
|
|
27
|
+
recomputations: () => number;
|
|
28
|
+
resetRecomputations: () => void;
|
|
29
|
+
dependencyRecomputations: () => number;
|
|
30
|
+
resetDependencyRecomputations: () => void;
|
|
31
|
+
} & {
|
|
32
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
33
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
34
|
+
};
|
|
35
|
+
export declare const getSynchronizationGroupSource: ((state: any, id: any) => SynchronizationSource) & {
|
|
36
|
+
clearCache: () => void;
|
|
37
|
+
resultsCount: () => number;
|
|
38
|
+
resetResultsCount: () => void;
|
|
39
|
+
} & {
|
|
40
|
+
resultFunc: (resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string) => SynchronizationSource;
|
|
41
|
+
memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string) => SynchronizationSource) & {
|
|
42
|
+
clearCache: () => void;
|
|
43
|
+
resultsCount: () => number;
|
|
44
|
+
resetResultsCount: () => void;
|
|
45
|
+
};
|
|
46
|
+
lastResult: () => SynchronizationSource;
|
|
47
|
+
dependencies: [(store: CoreAppStore) => SynchronizationGroupState, (syncGroupStore: any, id: any) => string];
|
|
48
|
+
recomputations: () => number;
|
|
49
|
+
resetRecomputations: () => void;
|
|
50
|
+
dependencyRecomputations: () => number;
|
|
51
|
+
resetDependencyRecomputations: () => void;
|
|
52
|
+
} & {
|
|
53
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
54
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
55
|
+
};
|
|
56
|
+
export declare const getTargets: ((state: any, payload: any, actionType: any) => GenericSyncActionPayload[]) & {
|
|
57
|
+
clearCache: () => void;
|
|
58
|
+
resultsCount: () => number;
|
|
59
|
+
resetResultsCount: () => void;
|
|
60
|
+
} & {
|
|
61
|
+
resultFunc: (resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: GenericActionPayload, resultFuncArgs_2: SyncType) => GenericSyncActionPayload[];
|
|
62
|
+
memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: GenericActionPayload, resultFuncArgs_2: SyncType) => GenericSyncActionPayload[]) & {
|
|
63
|
+
clearCache: () => void;
|
|
64
|
+
resultsCount: () => number;
|
|
65
|
+
resetResultsCount: () => void;
|
|
66
|
+
};
|
|
67
|
+
lastResult: () => GenericSyncActionPayload[];
|
|
68
|
+
dependencies: [(store: CoreAppStore) => SynchronizationGroupState, (syncGroupStore: any, payload: any) => GenericActionPayload, (syncGroupStore: any, payload: any, actionType: any) => SyncType];
|
|
69
|
+
recomputations: () => number;
|
|
70
|
+
resetRecomputations: () => void;
|
|
71
|
+
dependencyRecomputations: () => number;
|
|
72
|
+
resetDependencyRecomputations: () => void;
|
|
73
|
+
} & {
|
|
74
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
75
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
76
|
+
};
|
|
77
|
+
export declare const getTargetGroups: ((state: any, payload: any, actionType: any) => string[]) & {
|
|
78
|
+
clearCache: () => void;
|
|
79
|
+
resultsCount: () => number;
|
|
80
|
+
resetResultsCount: () => void;
|
|
81
|
+
} & {
|
|
82
|
+
resultFunc: (resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: GenericActionPayload, resultFuncArgs_2: SyncType) => string[];
|
|
83
|
+
memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: GenericActionPayload, resultFuncArgs_2: SyncType) => string[]) & {
|
|
84
|
+
clearCache: () => void;
|
|
85
|
+
resultsCount: () => number;
|
|
86
|
+
resetResultsCount: () => void;
|
|
87
|
+
};
|
|
88
|
+
lastResult: () => string[];
|
|
89
|
+
dependencies: [(store: CoreAppStore) => SynchronizationGroupState, (syncGroupStore: any, payload: any) => GenericActionPayload, (syncGroupStore: any, payload: any, actionType: any) => SyncType];
|
|
90
|
+
recomputations: () => number;
|
|
91
|
+
resetRecomputations: () => void;
|
|
92
|
+
dependencyRecomputations: () => number;
|
|
93
|
+
resetDependencyRecomputations: () => void;
|
|
94
|
+
} & {
|
|
95
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
96
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
97
|
+
};
|
|
98
|
+
export declare const getSourceId: ((state: any, sourceId: any) => string) & {
|
|
99
|
+
clearCache: () => void;
|
|
100
|
+
resultsCount: () => number;
|
|
101
|
+
resetResultsCount: () => void;
|
|
102
|
+
} & {
|
|
103
|
+
resultFunc: (resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string | {
|
|
104
|
+
sourceId: string;
|
|
105
|
+
}) => string;
|
|
106
|
+
memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string | {
|
|
107
|
+
sourceId: string;
|
|
108
|
+
}) => string) & {
|
|
109
|
+
clearCache: () => void;
|
|
110
|
+
resultsCount: () => number;
|
|
111
|
+
resetResultsCount: () => void;
|
|
112
|
+
};
|
|
113
|
+
lastResult: () => string;
|
|
114
|
+
dependencies: [(store: CoreAppStore) => SynchronizationGroupState, (syncGroupStore: any, sourceId: any) => {
|
|
115
|
+
sourceId: string;
|
|
116
|
+
} | string];
|
|
117
|
+
recomputations: () => number;
|
|
118
|
+
resetRecomputations: () => void;
|
|
119
|
+
dependencyRecomputations: () => number;
|
|
120
|
+
resetDependencyRecomputations: () => void;
|
|
121
|
+
} & {
|
|
122
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
123
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
124
|
+
};
|
|
125
|
+
export declare const getAllTargetGroupsForSource: ((state: any, sourceId: any) => string[]) & {
|
|
126
|
+
clearCache: () => void;
|
|
127
|
+
resultsCount: () => number;
|
|
128
|
+
resetResultsCount: () => void;
|
|
129
|
+
} & {
|
|
130
|
+
resultFunc: (resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string) => string[];
|
|
131
|
+
memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string) => string[]) & {
|
|
132
|
+
clearCache: () => void;
|
|
133
|
+
resultsCount: () => number;
|
|
134
|
+
resetResultsCount: () => void;
|
|
135
|
+
};
|
|
136
|
+
lastResult: () => string[];
|
|
137
|
+
dependencies: [(store: CoreAppStore) => SynchronizationGroupState, ((state: any, sourceId: any) => string) & {
|
|
138
|
+
clearCache: () => void;
|
|
139
|
+
resultsCount: () => number;
|
|
140
|
+
resetResultsCount: () => void;
|
|
141
|
+
} & {
|
|
142
|
+
resultFunc: (resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string | {
|
|
143
|
+
sourceId: string;
|
|
144
|
+
}) => string;
|
|
145
|
+
memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState, resultFuncArgs_1: string | {
|
|
146
|
+
sourceId: string;
|
|
147
|
+
}) => string) & {
|
|
148
|
+
clearCache: () => void;
|
|
149
|
+
resultsCount: () => number;
|
|
150
|
+
resetResultsCount: () => void;
|
|
151
|
+
};
|
|
152
|
+
lastResult: () => string;
|
|
153
|
+
dependencies: [(store: CoreAppStore) => SynchronizationGroupState, (syncGroupStore: any, sourceId: any) => {
|
|
154
|
+
sourceId: string;
|
|
155
|
+
} | string];
|
|
156
|
+
recomputations: () => number;
|
|
157
|
+
resetRecomputations: () => void;
|
|
158
|
+
dependencyRecomputations: () => number;
|
|
159
|
+
resetDependencyRecomputations: () => void;
|
|
160
|
+
} & {
|
|
161
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
162
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
163
|
+
}];
|
|
164
|
+
recomputations: () => number;
|
|
165
|
+
resetRecomputations: () => void;
|
|
166
|
+
dependencyRecomputations: () => number;
|
|
167
|
+
resetDependencyRecomputations: () => void;
|
|
168
|
+
} & {
|
|
169
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
170
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
171
|
+
};
|
|
172
|
+
export declare const syncGroupGetViewState: ((state: CoreAppStore) => import("./types").SyncGroupViewState) & {
|
|
173
|
+
clearCache: () => void;
|
|
174
|
+
resultsCount: () => number;
|
|
175
|
+
resetResultsCount: () => void;
|
|
176
|
+
} & {
|
|
177
|
+
resultFunc: (resultFuncArgs_0: SynchronizationGroupState) => import("./types").SyncGroupViewState;
|
|
178
|
+
memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState) => import("./types").SyncGroupViewState) & {
|
|
179
|
+
clearCache: () => void;
|
|
180
|
+
resultsCount: () => number;
|
|
181
|
+
resetResultsCount: () => void;
|
|
182
|
+
};
|
|
183
|
+
lastResult: () => import("./types").SyncGroupViewState;
|
|
184
|
+
dependencies: [(store: CoreAppStore) => SynchronizationGroupState];
|
|
185
|
+
recomputations: () => number;
|
|
186
|
+
resetRecomputations: () => void;
|
|
187
|
+
dependencyRecomputations: () => number;
|
|
188
|
+
resetDependencyRecomputations: () => void;
|
|
189
|
+
} & {
|
|
190
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
191
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
192
|
+
};
|
|
193
|
+
export declare const isTimeScrollingEnabled: (store: CoreAppStore) => boolean;
|
|
194
|
+
export declare const getSyncedMapIdsForTimeslider: ((state: CoreAppStore) => string[]) & {
|
|
195
|
+
clearCache: () => void;
|
|
196
|
+
resultsCount: () => number;
|
|
197
|
+
resetResultsCount: () => void;
|
|
198
|
+
} & {
|
|
199
|
+
resultFunc: (resultFuncArgs_0: SynchronizationGroupState) => string[];
|
|
200
|
+
memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState) => string[]) & {
|
|
201
|
+
clearCache: () => void;
|
|
202
|
+
resultsCount: () => number;
|
|
203
|
+
resetResultsCount: () => void;
|
|
204
|
+
};
|
|
205
|
+
lastResult: () => string[];
|
|
206
|
+
dependencies: [(store: CoreAppStore) => SynchronizationGroupState];
|
|
207
|
+
recomputations: () => number;
|
|
208
|
+
resetRecomputations: () => void;
|
|
209
|
+
dependencyRecomputations: () => number;
|
|
210
|
+
resetDependencyRecomputations: () => void;
|
|
211
|
+
} & {
|
|
212
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
213
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
214
|
+
};
|
|
215
|
+
export declare const getSyncGroupTargets: ((state: CoreAppStore) => SyncGroupTarget[]) & {
|
|
216
|
+
clearCache: () => void;
|
|
217
|
+
resultsCount: () => number;
|
|
218
|
+
resetResultsCount: () => void;
|
|
219
|
+
} & {
|
|
220
|
+
resultFunc: (resultFuncArgs_0: SynchronizationGroupState) => SyncGroupTarget[];
|
|
221
|
+
memoizedResultFunc: ((resultFuncArgs_0: SynchronizationGroupState) => SyncGroupTarget[]) & {
|
|
222
|
+
clearCache: () => void;
|
|
223
|
+
resultsCount: () => number;
|
|
224
|
+
resetResultsCount: () => void;
|
|
225
|
+
};
|
|
226
|
+
lastResult: () => SyncGroupTarget[];
|
|
227
|
+
dependencies: [(store: CoreAppStore) => SynchronizationGroupState];
|
|
228
|
+
recomputations: () => number;
|
|
229
|
+
resetRecomputations: () => void;
|
|
230
|
+
dependencyRecomputations: () => number;
|
|
231
|
+
resetDependencyRecomputations: () => void;
|
|
232
|
+
} & {
|
|
233
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
234
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
235
|
+
};
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import type { SystemScope } from '@opengeoweb/shared';
|
|
2
|
+
import type { MapFeatureClass } from '@opengeoweb/webmap-react';
|
|
3
|
+
import type { LoadingIndicatorModuleState } from '../loadingIndicator/types';
|
|
4
|
+
import type { GenericActionPayload } from '../types';
|
|
5
|
+
import type { SYNCGROUPS_TYPE_SETFEATURES, SYNCGROUPS_TYPE_SETLAYERACTIONS } from './constants';
|
|
6
|
+
import { SYNCGROUPS_TYPE_SETBBOX, SYNCGROUPS_TYPE_SETTIME } from './constants';
|
|
7
|
+
export interface Group {
|
|
8
|
+
id: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
selected: string[];
|
|
11
|
+
}
|
|
12
|
+
export interface SourceById {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
disabledForGroupIds?: string[];
|
|
17
|
+
}
|
|
18
|
+
export interface GroupsAndSources {
|
|
19
|
+
groups: Group[];
|
|
20
|
+
sourcesById: SourceById[];
|
|
21
|
+
}
|
|
22
|
+
export interface SyncGroupViewState {
|
|
23
|
+
timeslider: GroupsAndSources;
|
|
24
|
+
zoompane: GroupsAndSources;
|
|
25
|
+
level: GroupsAndSources;
|
|
26
|
+
[key: string]: GroupsAndSources;
|
|
27
|
+
}
|
|
28
|
+
export interface SynchronizationGroup {
|
|
29
|
+
type: SyncType;
|
|
30
|
+
title?: string;
|
|
31
|
+
sourcePanelId?: string;
|
|
32
|
+
payloadByType: SynchronizationSourcePayLoadByType;
|
|
33
|
+
targets: {
|
|
34
|
+
byId: Record<string, {
|
|
35
|
+
linked: boolean;
|
|
36
|
+
}>;
|
|
37
|
+
allIds: string[];
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export interface Occurrence {
|
|
41
|
+
id: string;
|
|
42
|
+
properties: OccurrenceProperties;
|
|
43
|
+
}
|
|
44
|
+
export interface OccurrenceProperties {
|
|
45
|
+
name?: string;
|
|
46
|
+
serviceId: string;
|
|
47
|
+
collectionId: string;
|
|
48
|
+
parameterName?: string | string[];
|
|
49
|
+
}
|
|
50
|
+
export interface FeatureNameObject {
|
|
51
|
+
serviceId: string;
|
|
52
|
+
serviceName?: string;
|
|
53
|
+
collectionId: string;
|
|
54
|
+
collectionName: string;
|
|
55
|
+
}
|
|
56
|
+
export interface PotentialDataProperties {
|
|
57
|
+
originalId?: string;
|
|
58
|
+
occurrences?: Occurrence[];
|
|
59
|
+
name?: string;
|
|
60
|
+
names?: Record<string, FeatureNameObject[]>;
|
|
61
|
+
hidden?: boolean;
|
|
62
|
+
inEditMode?: boolean;
|
|
63
|
+
highlightSelectedFeature?: boolean;
|
|
64
|
+
highlightNearbyFeature?: boolean;
|
|
65
|
+
highlightColor?: string;
|
|
66
|
+
mapFeatureClass?: MapFeatureClass;
|
|
67
|
+
iconPath?: string;
|
|
68
|
+
iconWidth?: number;
|
|
69
|
+
iconHeight?: number;
|
|
70
|
+
iconAnchor?: [number, number];
|
|
71
|
+
iconScale?: number;
|
|
72
|
+
iconFill?: string;
|
|
73
|
+
iconStroke?: string;
|
|
74
|
+
iconStrokeWidth?: number;
|
|
75
|
+
hoverIconFill?: string;
|
|
76
|
+
hoverIconStroke?: string;
|
|
77
|
+
hoverIconStrokeWidth?: number;
|
|
78
|
+
selectedIconFill?: string;
|
|
79
|
+
selectedIconStroke?: string;
|
|
80
|
+
selectedIconStrokeWidth?: number;
|
|
81
|
+
serviceId?: string;
|
|
82
|
+
selectionType?: string;
|
|
83
|
+
showNameOnHover?: boolean;
|
|
84
|
+
}
|
|
85
|
+
export interface PotentialData {
|
|
86
|
+
formFeatures?: {
|
|
87
|
+
id: string;
|
|
88
|
+
originalId?: string;
|
|
89
|
+
geoJSON: GeoJSON.FeatureCollection<GeoJSON.Geometry, PotentialDataProperties | null>;
|
|
90
|
+
}[];
|
|
91
|
+
selectedFeatureId?: string;
|
|
92
|
+
}
|
|
93
|
+
export type SynchronizationSourcePayLoadByType = Record<string, GenericActionPayload>;
|
|
94
|
+
export interface SynchronizationSource {
|
|
95
|
+
types: SyncType[];
|
|
96
|
+
payloadByType: SynchronizationSourcePayLoadByType;
|
|
97
|
+
targets?: {
|
|
98
|
+
byId: Record<string, {
|
|
99
|
+
linked: boolean;
|
|
100
|
+
}>;
|
|
101
|
+
allIds: string[];
|
|
102
|
+
};
|
|
103
|
+
featureSyncState?: PotentialData;
|
|
104
|
+
}
|
|
105
|
+
export interface SynchronizationSources {
|
|
106
|
+
byId: Record<string, SynchronizationSource>;
|
|
107
|
+
allIds: string[];
|
|
108
|
+
}
|
|
109
|
+
export interface SynchronizationGroups {
|
|
110
|
+
byId: Record<string, SynchronizationGroup>;
|
|
111
|
+
allIds: string[];
|
|
112
|
+
}
|
|
113
|
+
export interface SynchronizationGroupState {
|
|
114
|
+
sources: SynchronizationSources;
|
|
115
|
+
groups: SynchronizationGroups;
|
|
116
|
+
viewState: SyncGroupViewState;
|
|
117
|
+
isTimeScrollingEnabled: boolean;
|
|
118
|
+
}
|
|
119
|
+
export interface SynchronizationGroupModuleState {
|
|
120
|
+
syncGroups?: SynchronizationGroupState;
|
|
121
|
+
loadingIndicator?: LoadingIndicatorModuleState['loadingIndicator'];
|
|
122
|
+
}
|
|
123
|
+
export type SyncType = typeof SYNCGROUPS_TYPE_SETBBOX | typeof SYNCGROUPS_TYPE_SETTIME | typeof SYNCGROUPS_TYPE_SETFEATURES | typeof SYNCGROUPS_TYPE_SETLAYERACTIONS;
|
|
124
|
+
export interface SyncGroupsAddSourcePayload {
|
|
125
|
+
id: string;
|
|
126
|
+
type: SyncType[];
|
|
127
|
+
defaultPayload?: GenericActionPayload;
|
|
128
|
+
}
|
|
129
|
+
export interface SyncGroupRemoveSourcePayload {
|
|
130
|
+
id: string;
|
|
131
|
+
}
|
|
132
|
+
export interface SyncGroupTarget {
|
|
133
|
+
groupId: string;
|
|
134
|
+
targetId: string;
|
|
135
|
+
linked?: boolean;
|
|
136
|
+
[key: string]: unknown;
|
|
137
|
+
}
|
|
138
|
+
export interface SyncGroupAddTargetPayload extends SyncGroupTarget {
|
|
139
|
+
origin?: SystemScope;
|
|
140
|
+
}
|
|
141
|
+
export interface SyncGroupRemoveTargetPayload {
|
|
142
|
+
groupId: string;
|
|
143
|
+
targetId: string;
|
|
144
|
+
origin?: SystemScope;
|
|
145
|
+
}
|
|
146
|
+
export interface SyncGroupLinkTargetPayload extends SyncGroupTarget {
|
|
147
|
+
linked: boolean;
|
|
148
|
+
}
|
|
149
|
+
export interface SyncGroupAddGroupPayload {
|
|
150
|
+
groupId: string;
|
|
151
|
+
title: string;
|
|
152
|
+
type: SyncType;
|
|
153
|
+
sourcePanelId?: string;
|
|
154
|
+
origin?: SystemScope;
|
|
155
|
+
}
|
|
156
|
+
export interface SyncGroupRemoveGroupPayload {
|
|
157
|
+
groupId: string;
|
|
158
|
+
}
|
|
159
|
+
export interface SyncGroupSetViewStatePayload {
|
|
160
|
+
viewState: SyncGroupViewState;
|
|
161
|
+
}
|
|
162
|
+
export interface SyncGroupToggleIsTimeScrollingEnabled {
|
|
163
|
+
isTimeScrollingEnabled: boolean;
|
|
164
|
+
origin?: SystemScope;
|
|
165
|
+
}
|
|
166
|
+
export declare const SyncGroupTypeList: string[];
|
|
167
|
+
export declare enum SyncGroupActionOrigin {
|
|
168
|
+
delete = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_DELETEACTION",
|
|
169
|
+
layerActions = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_LAYERACTIONS",
|
|
170
|
+
move = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_MOVEACTION",
|
|
171
|
+
add = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_ADDACTION",
|
|
172
|
+
autoLayerId = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_AUTOLAYERIDACTION"
|
|
173
|
+
}
|
|
174
|
+
export interface SetLinkedMap {
|
|
175
|
+
newLinks: Record<string, string[]>;
|
|
176
|
+
}
|
|
177
|
+
export interface UpdateLinkedMap {
|
|
178
|
+
panelId: string;
|
|
179
|
+
mapIds: string[];
|
|
180
|
+
}
|
|
181
|
+
export interface AddFeatureSyncState {
|
|
182
|
+
panelId: string;
|
|
183
|
+
data: PotentialData;
|
|
184
|
+
}
|
|
185
|
+
export interface DeleteFeatureSyncState {
|
|
186
|
+
panelId: string;
|
|
187
|
+
}
|
|
188
|
+
export interface DeleteFeatureLayer {
|
|
189
|
+
panelId: string;
|
|
190
|
+
layerId: string;
|
|
191
|
+
}
|
|
192
|
+
export type FormFeatureData = NonNullable<PotentialData['formFeatures']>[number];
|
|
193
|
+
export interface SyncedWorkspaceViewDetails {
|
|
194
|
+
id?: string;
|
|
195
|
+
title?: string;
|
|
196
|
+
componentType?: string;
|
|
197
|
+
}
|
|
198
|
+
export type WorkspaceViewsById = Record<string, {
|
|
199
|
+
componentType?: string;
|
|
200
|
+
}>;
|