@opengeoweb/store 9.28.1 → 9.29.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.esm.js +1377 -1377
- package/package.json +1 -1
- package/src/index.d.ts +1 -1
- package/src/store/coreModuleConfig.d.ts +1 -1
- package/src/store/drawingtool/config.d.ts +4 -4
- package/src/store/drawingtool/index.d.ts +6 -6
- package/src/store/drawingtool/listener.d.ts +3 -3
- package/src/store/drawingtool/listener.spec.d.ts +1 -1
- package/src/store/drawingtool/reducer.d.ts +46 -46
- package/src/store/drawingtool/reducer.spec.d.ts +4 -4
- package/src/store/drawingtool/selectors.d.ts +43 -43
- package/src/store/drawingtool/selectors.spec.d.ts +1 -1
- package/src/store/drawingtool/testUtils.d.ts +1 -1
- package/src/store/drawingtool/utils.d.ts +1 -1
- package/src/store/drawingtool/utils.spec.d.ts +1 -1
- package/src/store/generic/actions.d.ts +28 -28
- package/src/store/generic/config.d.ts +5 -5
- package/src/store/generic/index.d.ts +17 -17
- package/src/store/generic/listener.d.ts +2 -2
- package/src/store/generic/listener.spec.d.ts +1 -1
- package/src/store/generic/loadingIndicator/constants.d.ts +1 -1
- package/src/store/generic/loadingIndicator/index.d.ts +3 -3
- package/src/store/generic/loadingIndicator/reducer.d.ts +13 -13
- package/src/store/generic/loadingIndicator/reducer.spec.d.ts +1 -1
- package/src/store/generic/loadingIndicator/selectors.d.ts +22 -22
- package/src/store/generic/loadingIndicator/selectors.spec.d.ts +1 -1
- package/src/store/generic/loadingIndicator/types.d.ts +22 -22
- package/src/store/generic/selectors.d.ts +12 -12
- package/src/store/generic/selectors.spec.d.ts +1 -1
- package/src/store/generic/synchronizationActions/actions.d.ts +11 -11
- package/src/store/generic/synchronizationActions/types.d.ts +34 -34
- package/src/store/generic/synchronizationGroups/__mocks__/mockState.d.ts +2 -2
- package/src/store/generic/synchronizationGroups/constants.d.ts +4 -4
- package/src/store/generic/synchronizationGroups/index.d.ts +6 -6
- package/src/store/generic/synchronizationGroups/listener.d.ts +2 -2
- package/src/store/generic/synchronizationGroups/listener.spec.d.ts +1 -1
- package/src/store/generic/synchronizationGroups/reducer.d.ts +26 -26
- package/src/store/generic/synchronizationGroups/reducer.spec.d.ts +1 -1
- package/src/store/generic/synchronizationGroups/selector.d.ts +13 -13
- package/src/store/generic/synchronizationGroups/selectors.d.ts +64 -64
- package/src/store/generic/synchronizationGroups/selectors.spec.d.ts +1 -1
- package/src/store/generic/synchronizationGroups/types.d.ts +100 -100
- package/src/store/generic/synchronizationGroups/utils.d.ts +76 -76
- package/src/store/generic/synchronizationGroups/utils.spec.d.ts +1 -1
- package/src/store/generic/types.d.ts +23 -23
- package/src/store/generic/utils.d.ts +9 -9
- package/src/store/generic/utils.spec.d.ts +1 -1
- package/src/store/index.d.ts +14 -14
- package/src/store/mapStore/config.d.ts +9 -9
- package/src/store/mapStore/index.d.ts +96 -96
- package/src/store/mapStore/layers/index.d.ts +5 -5
- package/src/store/mapStore/layers/listeners.d.ts +2 -2
- package/src/store/mapStore/layers/listeners.spec.d.ts +1 -1
- package/src/store/mapStore/layers/reducer.d.ts +87 -87
- package/src/store/mapStore/layers/reducer.spec.d.ts +1 -1
- package/src/store/mapStore/layers/selectors.d.ts +380 -380
- package/src/store/mapStore/layers/selectors.spec.d.ts +1 -1
- package/src/store/mapStore/layers/types.d.ts +166 -166
- package/src/store/mapStore/layers/utils.d.ts +23 -23
- package/src/store/mapStore/layers/utils.spec.d.ts +1 -1
- package/src/store/mapStore/map/actions.d.ts +9 -9
- package/src/store/mapStore/map/constants.d.ts +1 -1
- package/src/store/mapStore/map/enums.d.ts +3 -3
- package/src/store/mapStore/map/filterLayers.d.ts +10 -10
- package/src/store/mapStore/map/filterLayers.spec.d.ts +1 -1
- package/src/store/mapStore/map/index.d.ts +25 -25
- package/src/store/mapStore/map/listener.d.ts +4 -4
- package/src/store/mapStore/map/listener.spec.d.ts +1 -1
- package/src/store/mapStore/map/mapListenerAnimationUtils.d.ts +38 -38
- package/src/store/mapStore/map/mapListenerAnimationUtils.spec.d.ts +1 -1
- package/src/store/mapStore/map/mapUiListener.d.ts +2 -2
- package/src/store/mapStore/map/mapUiListener.spec.d.ts +1 -1
- package/src/store/mapStore/map/metronomeListener.d.ts +2 -2
- package/src/store/mapStore/map/reducer.d.ts +109 -109
- package/src/store/mapStore/map/reducer.spec.d.ts +1 -1
- package/src/store/mapStore/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.d.ts +7 -7
- package/src/store/mapStore/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.spec.d.ts +1 -1
- package/src/store/mapStore/map/selectors.d.ts +733 -733
- package/src/store/mapStore/map/selectors.spec.d.ts +1 -1
- package/src/store/mapStore/map/types.d.ts +233 -233
- package/src/store/mapStore/map/utils.d.ts +85 -85
- package/src/store/mapStore/map/utils.spec.d.ts +1 -1
- package/src/store/mapStore/service/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -2
- package/src/store/mapStore/service/index.d.ts +4 -4
- package/src/store/mapStore/service/listener.d.ts +5 -5
- package/src/store/mapStore/service/listener.spec.d.ts +1 -1
- package/src/store/mapStore/service/localStorage.d.ts +3 -3
- package/src/store/mapStore/service/localStorage.spec.d.ts +1 -1
- package/src/store/mapStore/service/reducer.d.ts +11 -11
- package/src/store/mapStore/service/reducer.spec.d.ts +1 -1
- package/src/store/mapStore/service/selectors.d.ts +80 -80
- package/src/store/mapStore/service/selectors.spec.d.ts +1 -1
- package/src/store/mapStore/service/types.d.ts +50 -50
- package/src/store/mapStore/storeTestSettings.d.ts +7 -7
- package/src/store/mapStore/storeTestUtils.d.ts +17 -17
- package/src/store/mapStore/types.d.ts +11 -11
- package/src/store/router/config.d.ts +4 -4
- package/src/store/router/index.d.ts +3 -3
- package/src/store/router/listener.d.ts +2 -2
- package/src/store/router/listener.spec.d.ts +1 -1
- package/src/store/router/reducer.d.ts +9 -9
- package/src/store/router/reducer.spec.d.ts +1 -1
- package/src/store/router/types.d.ts +6 -6
- package/src/store/router/utils.d.ts +3 -3
- package/src/store/testUtils/Providers.d.ts +13 -13
- package/src/store/types.d.ts +7 -7
- package/src/store/ui/config.d.ts +4 -4
- package/src/store/ui/index.d.ts +4 -4
- package/src/store/ui/reducer.d.ts +33 -33
- package/src/store/ui/reducer.spec.d.ts +1 -1
- package/src/store/ui/selectors.d.ts +102 -102
- package/src/store/ui/selectors.spec.d.ts +1 -1
- package/src/store/ui/types.d.ts +78 -78
- package/src/store/ui/useSetupDialog.d.ts +11 -11
- package/src/store/ui/useSetupDialog.spec.d.ts +1 -1
- package/src/store/utils.d.ts +6 -6
package/src/store/ui/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Egg } from '@redux-eggs/core';
|
|
2
|
-
import { Store } from '@reduxjs/toolkit';
|
|
3
|
-
import { UIModuleState } from './types';
|
|
4
|
-
export declare const uiModuleConfig: Egg<Store<UIModuleState>>;
|
|
1
|
+
import { Egg } from '@redux-eggs/core';
|
|
2
|
+
import { Store } from '@reduxjs/toolkit';
|
|
3
|
+
import { UIModuleState } from './types';
|
|
4
|
+
export declare const uiModuleConfig: Egg<Store<UIModuleState>>;
|
package/src/store/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { uiActions, reducer as uiReducer } from './reducer';
|
|
2
|
-
export * as uiSelectors from './selectors';
|
|
3
|
-
export * as uiTypes from './types';
|
|
4
|
-
export { useSetupDialog } from './useSetupDialog';
|
|
1
|
+
export { uiActions, reducer as uiReducer } from './reducer';
|
|
2
|
+
export * as uiSelectors from './selectors';
|
|
3
|
+
export * as uiTypes from './types';
|
|
4
|
+
export { useSetupDialog } from './useSetupDialog';
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
|
-
import { DialogType, SetActiveMapIdForDialogPayload, SetActiveWindowIdPayload, Source, UIOrderDialogPayload, UIRegisterDialogPayload, UISetErrorPayload, UIStoreType, UIToggleDialogPayload, UIToggleIsLoadingPayload, UIType, UIUnRegisterDialogPayload } from './types';
|
|
3
|
-
interface CreateUIDialogElementProps {
|
|
4
|
-
activeMapId: string;
|
|
5
|
-
type: DialogType;
|
|
6
|
-
setOpen: boolean;
|
|
7
|
-
source?: Source;
|
|
8
|
-
}
|
|
9
|
-
export declare const moveToTop: <Type>(list: Type[], element: Type) => Type[];
|
|
10
|
-
export declare const createUIDialogElement: ({ activeMapId, type, setOpen, source, }: CreateUIDialogElementProps) => UIType;
|
|
11
|
-
export declare const initialState: UIStoreType;
|
|
12
|
-
export declare const slice: import("@reduxjs/toolkit").Slice<UIStoreType, {
|
|
13
|
-
registerDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIRegisterDialogPayload>) => void;
|
|
14
|
-
unregisterDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIUnRegisterDialogPayload>) => void;
|
|
15
|
-
setActiveMapIdForDialog: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveMapIdForDialogPayload>) => void;
|
|
16
|
-
setToggleOpenDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleDialogPayload>) => void;
|
|
17
|
-
orderDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIOrderDialogPayload>) => void;
|
|
18
|
-
setActiveWindowId: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
|
|
19
|
-
toggleIsLoadingDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleIsLoadingPayload>) => void;
|
|
20
|
-
setErrorDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UISetErrorPayload>) => void;
|
|
21
|
-
}, "uiReducer">;
|
|
22
|
-
export declare const reducer: import("redux").Reducer<UIStoreType
|
|
23
|
-
export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
24
|
-
registerDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIRegisterDialogPayload>) => void;
|
|
25
|
-
unregisterDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIUnRegisterDialogPayload>) => void;
|
|
26
|
-
setActiveMapIdForDialog: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveMapIdForDialogPayload>) => void;
|
|
27
|
-
setToggleOpenDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleDialogPayload>) => void;
|
|
28
|
-
orderDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIOrderDialogPayload>) => void;
|
|
29
|
-
setActiveWindowId: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
|
|
30
|
-
toggleIsLoadingDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleIsLoadingPayload>) => void;
|
|
31
|
-
setErrorDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UISetErrorPayload>) => void;
|
|
32
|
-
}, "uiReducer">;
|
|
33
|
-
export {};
|
|
1
|
+
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
|
+
import { DialogType, SetActiveMapIdForDialogPayload, SetActiveWindowIdPayload, Source, UIOrderDialogPayload, UIRegisterDialogPayload, UISetErrorPayload, UIStoreType, UIToggleDialogPayload, UIToggleIsLoadingPayload, UIType, UIUnRegisterDialogPayload } from './types';
|
|
3
|
+
interface CreateUIDialogElementProps {
|
|
4
|
+
activeMapId: string;
|
|
5
|
+
type: DialogType;
|
|
6
|
+
setOpen: boolean;
|
|
7
|
+
source?: Source;
|
|
8
|
+
}
|
|
9
|
+
export declare const moveToTop: <Type>(list: Type[], element: Type) => Type[];
|
|
10
|
+
export declare const createUIDialogElement: ({ activeMapId, type, setOpen, source, }: CreateUIDialogElementProps) => UIType;
|
|
11
|
+
export declare const initialState: UIStoreType;
|
|
12
|
+
export declare const slice: import("@reduxjs/toolkit").Slice<UIStoreType, {
|
|
13
|
+
registerDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIRegisterDialogPayload>) => void;
|
|
14
|
+
unregisterDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIUnRegisterDialogPayload>) => void;
|
|
15
|
+
setActiveMapIdForDialog: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveMapIdForDialogPayload>) => void;
|
|
16
|
+
setToggleOpenDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleDialogPayload>) => void;
|
|
17
|
+
orderDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIOrderDialogPayload>) => void;
|
|
18
|
+
setActiveWindowId: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
|
|
19
|
+
toggleIsLoadingDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleIsLoadingPayload>) => void;
|
|
20
|
+
setErrorDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UISetErrorPayload>) => void;
|
|
21
|
+
}, "uiReducer">;
|
|
22
|
+
export declare const reducer: import("redux").Reducer<UIStoreType>;
|
|
23
|
+
export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
24
|
+
registerDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIRegisterDialogPayload>) => void;
|
|
25
|
+
unregisterDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIUnRegisterDialogPayload>) => void;
|
|
26
|
+
setActiveMapIdForDialog: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveMapIdForDialogPayload>) => void;
|
|
27
|
+
setToggleOpenDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleDialogPayload>) => void;
|
|
28
|
+
orderDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIOrderDialogPayload>) => void;
|
|
29
|
+
setActiveWindowId: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
|
|
30
|
+
toggleIsLoadingDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleIsLoadingPayload>) => void;
|
|
31
|
+
setErrorDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UISetErrorPayload>) => void;
|
|
32
|
+
}, "uiReducer">;
|
|
33
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
import { TypedUseSelectorHook } from 'react-redux';
|
|
2
|
-
import type { CoreAppStore } from '../types';
|
|
3
|
-
import type { UIModuleState, UIStoreType, UIType } from './types';
|
|
4
|
-
export declare const useAppSelector: TypedUseSelectorHook<CoreAppStore>;
|
|
5
|
-
export declare const getUiStore: (store: UIModuleState) => UIStoreType;
|
|
6
|
-
/**
|
|
7
|
-
* Gets the active map Id and wether a dialog is open or closed
|
|
8
|
-
*
|
|
9
|
-
* Example: getDialogDetailsByType(store, 'legend')
|
|
10
|
-
* @param {object} store store object from which the ui state wll be extracted
|
|
11
|
-
* @param {string} dialogType type of the dialog
|
|
12
|
-
* @returns {array} [string, boolean] first element gives the active map id, second element whether the dialog is open
|
|
13
|
-
*/
|
|
14
|
-
export declare const getDialogDetailsByType: (store: UIModuleState, dialogType: string) => UIType;
|
|
15
|
-
/**
|
|
16
|
-
* For a given ui component: gets wether the dialog is open or closed
|
|
17
|
-
*
|
|
18
|
-
* @param {object} store store object from which the ui state wll be extracted
|
|
19
|
-
* @param {string} dialogType type of the dialog
|
|
20
|
-
* @returns {boolean} returnType: boolean
|
|
21
|
-
*/
|
|
22
|
-
export declare const getisDialogOpen: ((state: UIModuleState, dialogType: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean, {
|
|
23
|
-
clearCache: () => void;
|
|
24
|
-
}> & {
|
|
25
|
-
clearCache: () => void;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
*For a given ui component: gets the active map Id
|
|
29
|
-
*
|
|
30
|
-
* @param {object} store store object from which the ui state wll be extracted
|
|
31
|
-
* @param {string} dialogType type of the dialog
|
|
32
|
-
* @returns {string} returnType: string - the active map id
|
|
33
|
-
*/
|
|
34
|
-
export declare const getDialogMapId: ((state: UIModuleState, dialogType: string) => string) & import("reselect").OutputSelectorFields<(args_0: UIType) => string, {
|
|
35
|
-
clearCache: () => void;
|
|
36
|
-
}> & {
|
|
37
|
-
clearCache: () => void;
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
*For a given ui component: gets the order of visible dialog
|
|
41
|
-
*
|
|
42
|
-
* @param {object} store store object from which the ui state wll be extracted
|
|
43
|
-
* @param {DialogType} dialogType type of the dialog
|
|
44
|
-
* @returns {number} the higher the order number the higher the zIndex
|
|
45
|
-
*/
|
|
46
|
-
export declare const getDialogOrder: ((state: UIModuleState, dialogType: string) => number) & import("reselect").OutputSelectorFields<(args_0: number) => number, {
|
|
47
|
-
clearCache: () => void;
|
|
48
|
-
}> & {
|
|
49
|
-
clearCache: () => void;
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
*For a given ui component: returns if ordered on top
|
|
53
|
-
*
|
|
54
|
-
* @param {object} store store object from which the ui state wll be extracted
|
|
55
|
-
* @param {DialogType} dialogType type of the dialog
|
|
56
|
-
* @returns {boolean}
|
|
57
|
-
*/
|
|
58
|
-
export declare const getDialogIsOrderedOnTop: ((state: UIModuleState, dialogType: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: boolean) => boolean, {
|
|
59
|
-
clearCache: () => void;
|
|
60
|
-
}> & {
|
|
61
|
-
clearCache: () => void;
|
|
62
|
-
};
|
|
63
|
-
export declare const getDialogSource: ((state: UIModuleState, dialogType: string) => import("dist/libs/shared/src/lib/components/ToolContainer/ToolContainerDraggable").Source) & import("reselect").OutputSelectorFields<(args_0: UIType) => import("dist/libs/shared/src/lib/components/ToolContainer/ToolContainerDraggable").Source, {
|
|
64
|
-
clearCache: () => void;
|
|
65
|
-
}> & {
|
|
66
|
-
clearCache: () => void;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Get the active window that should receive keyboard shortcuts
|
|
70
|
-
*
|
|
71
|
-
* Example: getActiveWindowId(store)
|
|
72
|
-
* @param {object} store store object from which the window state will be extracted
|
|
73
|
-
* @returns {string} active window id
|
|
74
|
-
*/
|
|
75
|
-
export declare const getActiveWindowId: ((state: UIModuleState) => string) & import("reselect").OutputSelectorFields<(args_0: UIStoreType) => string, {
|
|
76
|
-
clearCache: () => void;
|
|
77
|
-
}> & {
|
|
78
|
-
clearCache: () => void;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Gets if this is the active window
|
|
82
|
-
*
|
|
83
|
-
* Example: getIsActiveWindowId(store, viewId)
|
|
84
|
-
* @param {object} store store object from which the window state will be extracted
|
|
85
|
-
* @returns {string} active window id
|
|
86
|
-
*/
|
|
87
|
-
export declare const getIsActiveWindowId: ((state: UIModuleState, viewId: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIStoreType, args_1: string) => boolean, {
|
|
88
|
-
clearCache: () => void;
|
|
89
|
-
}> & {
|
|
90
|
-
clearCache: () => void;
|
|
91
|
-
};
|
|
92
|
-
export declare const getDialogIsLoading: ((state: UIModuleState, dialogType: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean, {
|
|
93
|
-
clearCache: () => void;
|
|
94
|
-
}> & {
|
|
95
|
-
clearCache: () => void;
|
|
96
|
-
};
|
|
97
|
-
export declare const getDialogError: ((state: UIModuleState, dialogType: string) => string) & import("reselect").OutputSelectorFields<(args_0: UIType) => string, {
|
|
98
|
-
clearCache: () => void;
|
|
99
|
-
}> & {
|
|
100
|
-
clearCache: () => void;
|
|
101
|
-
};
|
|
102
|
-
export declare const getUiDialogsByActiveMapId: (store: UIModuleState, mapId: string) => UIType[];
|
|
1
|
+
import { TypedUseSelectorHook } from 'react-redux';
|
|
2
|
+
import type { CoreAppStore } from '../types';
|
|
3
|
+
import type { UIModuleState, UIStoreType, UIType } from './types';
|
|
4
|
+
export declare const useAppSelector: TypedUseSelectorHook<CoreAppStore>;
|
|
5
|
+
export declare const getUiStore: (store: UIModuleState) => UIStoreType;
|
|
6
|
+
/**
|
|
7
|
+
* Gets the active map Id and wether a dialog is open or closed
|
|
8
|
+
*
|
|
9
|
+
* Example: getDialogDetailsByType(store, 'legend')
|
|
10
|
+
* @param {object} store store object from which the ui state wll be extracted
|
|
11
|
+
* @param {string} dialogType type of the dialog
|
|
12
|
+
* @returns {array} [string, boolean] first element gives the active map id, second element whether the dialog is open
|
|
13
|
+
*/
|
|
14
|
+
export declare const getDialogDetailsByType: (store: UIModuleState, dialogType: string) => UIType;
|
|
15
|
+
/**
|
|
16
|
+
* For a given ui component: gets wether the dialog is open or closed
|
|
17
|
+
*
|
|
18
|
+
* @param {object} store store object from which the ui state wll be extracted
|
|
19
|
+
* @param {string} dialogType type of the dialog
|
|
20
|
+
* @returns {boolean} returnType: boolean
|
|
21
|
+
*/
|
|
22
|
+
export declare const getisDialogOpen: ((state: UIModuleState, dialogType: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean, {
|
|
23
|
+
clearCache: () => void;
|
|
24
|
+
}> & {
|
|
25
|
+
clearCache: () => void;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
*For a given ui component: gets the active map Id
|
|
29
|
+
*
|
|
30
|
+
* @param {object} store store object from which the ui state wll be extracted
|
|
31
|
+
* @param {string} dialogType type of the dialog
|
|
32
|
+
* @returns {string} returnType: string - the active map id
|
|
33
|
+
*/
|
|
34
|
+
export declare const getDialogMapId: ((state: UIModuleState, dialogType: string) => string) & import("reselect").OutputSelectorFields<(args_0: UIType) => string, {
|
|
35
|
+
clearCache: () => void;
|
|
36
|
+
}> & {
|
|
37
|
+
clearCache: () => void;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
*For a given ui component: gets the order of visible dialog
|
|
41
|
+
*
|
|
42
|
+
* @param {object} store store object from which the ui state wll be extracted
|
|
43
|
+
* @param {DialogType} dialogType type of the dialog
|
|
44
|
+
* @returns {number} the higher the order number the higher the zIndex
|
|
45
|
+
*/
|
|
46
|
+
export declare const getDialogOrder: ((state: UIModuleState, dialogType: string) => number) & import("reselect").OutputSelectorFields<(args_0: number) => number, {
|
|
47
|
+
clearCache: () => void;
|
|
48
|
+
}> & {
|
|
49
|
+
clearCache: () => void;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
*For a given ui component: returns if ordered on top
|
|
53
|
+
*
|
|
54
|
+
* @param {object} store store object from which the ui state wll be extracted
|
|
55
|
+
* @param {DialogType} dialogType type of the dialog
|
|
56
|
+
* @returns {boolean}
|
|
57
|
+
*/
|
|
58
|
+
export declare const getDialogIsOrderedOnTop: ((state: UIModuleState, dialogType: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: boolean) => boolean, {
|
|
59
|
+
clearCache: () => void;
|
|
60
|
+
}> & {
|
|
61
|
+
clearCache: () => void;
|
|
62
|
+
};
|
|
63
|
+
export declare const getDialogSource: ((state: UIModuleState, dialogType: string) => import("dist/libs/shared/src/lib/components/ToolContainer/ToolContainerDraggable").Source) & import("reselect").OutputSelectorFields<(args_0: UIType) => import("dist/libs/shared/src/lib/components/ToolContainer/ToolContainerDraggable").Source, {
|
|
64
|
+
clearCache: () => void;
|
|
65
|
+
}> & {
|
|
66
|
+
clearCache: () => void;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Get the active window that should receive keyboard shortcuts
|
|
70
|
+
*
|
|
71
|
+
* Example: getActiveWindowId(store)
|
|
72
|
+
* @param {object} store store object from which the window state will be extracted
|
|
73
|
+
* @returns {string} active window id
|
|
74
|
+
*/
|
|
75
|
+
export declare const getActiveWindowId: ((state: UIModuleState) => string) & import("reselect").OutputSelectorFields<(args_0: UIStoreType) => string, {
|
|
76
|
+
clearCache: () => void;
|
|
77
|
+
}> & {
|
|
78
|
+
clearCache: () => void;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Gets if this is the active window
|
|
82
|
+
*
|
|
83
|
+
* Example: getIsActiveWindowId(store, viewId)
|
|
84
|
+
* @param {object} store store object from which the window state will be extracted
|
|
85
|
+
* @returns {string} active window id
|
|
86
|
+
*/
|
|
87
|
+
export declare const getIsActiveWindowId: ((state: UIModuleState, viewId: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIStoreType, args_1: string) => boolean, {
|
|
88
|
+
clearCache: () => void;
|
|
89
|
+
}> & {
|
|
90
|
+
clearCache: () => void;
|
|
91
|
+
};
|
|
92
|
+
export declare const getDialogIsLoading: ((state: UIModuleState, dialogType: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean, {
|
|
93
|
+
clearCache: () => void;
|
|
94
|
+
}> & {
|
|
95
|
+
clearCache: () => void;
|
|
96
|
+
};
|
|
97
|
+
export declare const getDialogError: ((state: UIModuleState, dialogType: string) => string) & import("reselect").OutputSelectorFields<(args_0: UIType) => string, {
|
|
98
|
+
clearCache: () => void;
|
|
99
|
+
}> & {
|
|
100
|
+
clearCache: () => void;
|
|
101
|
+
};
|
|
102
|
+
export declare const getUiDialogsByActiveMapId: (store: UIModuleState, mapId: string) => UIType[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/src/store/ui/types.d.ts
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import { Source } from '@opengeoweb/shared';
|
|
2
|
-
type LegendDialogType = string;
|
|
3
|
-
type GetFeatureInfoDialogType = string;
|
|
4
|
-
export declare enum DialogTypes {
|
|
5
|
-
LayerInfo = "layerInfo",
|
|
6
|
-
SyncGroups = "syncGroups",
|
|
7
|
-
TimeSeriesSelect = "timeSeriesSelect",
|
|
8
|
-
TimeSeriesManager = "timeSeriesManager",
|
|
9
|
-
TimeseriesInfo = "timeseriesInfo",
|
|
10
|
-
KeywordFilter = "keywordFilter",
|
|
11
|
-
DimensionSelectEnsembleMember = "dimensionSelect-ensemble_member",
|
|
12
|
-
DimensionSelectElevation = "dimensionSelect-elevation",
|
|
13
|
-
LayerManager = "layerManager",
|
|
14
|
-
LayerSelect = "layerSelect",
|
|
15
|
-
DrawingTool = "drawingTool",
|
|
16
|
-
DockedLayerManager = "dockedLayerManager",
|
|
17
|
-
ObjectManager = "objectManager",
|
|
18
|
-
PublicWarnings = "publicWarnings",
|
|
19
|
-
Search = "search",
|
|
20
|
-
AreaObjectLoader = "areaObjectLoader"
|
|
21
|
-
}
|
|
22
|
-
export type DialogType = DialogTypes | LegendDialogType | GetFeatureInfoDialogType;
|
|
23
|
-
export type { Source };
|
|
24
|
-
export interface UIType {
|
|
25
|
-
type: DialogType;
|
|
26
|
-
activeMapId: string;
|
|
27
|
-
isOpen: boolean;
|
|
28
|
-
source?: Source;
|
|
29
|
-
isLoading?: boolean;
|
|
30
|
-
error?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface UIStoreType {
|
|
33
|
-
order: DialogType[];
|
|
34
|
-
dialogs: Partial<Record<DialogType, UIType>>;
|
|
35
|
-
activeWindowId?: string;
|
|
36
|
-
}
|
|
37
|
-
export interface UIModuleState {
|
|
38
|
-
ui?: UIStoreType;
|
|
39
|
-
}
|
|
40
|
-
export interface SetActiveMapIdForDialogPayload {
|
|
41
|
-
type: DialogType;
|
|
42
|
-
mapId: string;
|
|
43
|
-
setOpen?: boolean;
|
|
44
|
-
source?: Source;
|
|
45
|
-
origin?: string;
|
|
46
|
-
}
|
|
47
|
-
export interface UIRegisterDialogPayload {
|
|
48
|
-
type: DialogType;
|
|
49
|
-
mapId?: string;
|
|
50
|
-
setOpen?: boolean;
|
|
51
|
-
source?: Source;
|
|
52
|
-
}
|
|
53
|
-
export interface UIUnRegisterDialogPayload {
|
|
54
|
-
type: DialogType;
|
|
55
|
-
}
|
|
56
|
-
export interface UIToggleDialogPayload {
|
|
57
|
-
type: DialogType;
|
|
58
|
-
setOpen: boolean;
|
|
59
|
-
origin?: string;
|
|
60
|
-
mapId?: string;
|
|
61
|
-
}
|
|
62
|
-
export interface UIOrderDialogPayload {
|
|
63
|
-
type: DialogType;
|
|
64
|
-
}
|
|
65
|
-
export interface SetActiveWindowIdPayload {
|
|
66
|
-
activeWindowId: string;
|
|
67
|
-
}
|
|
68
|
-
export interface UIToggleIsLoadingPayload {
|
|
69
|
-
type: DialogType;
|
|
70
|
-
isLoading: boolean;
|
|
71
|
-
}
|
|
72
|
-
export interface UISetErrorPayload {
|
|
73
|
-
type: DialogType;
|
|
74
|
-
error: string;
|
|
75
|
-
}
|
|
76
|
-
export interface UIToggleShowSentryRecordButton {
|
|
77
|
-
type: DialogType;
|
|
78
|
-
}
|
|
1
|
+
import { Source } from '@opengeoweb/shared';
|
|
2
|
+
type LegendDialogType = string;
|
|
3
|
+
type GetFeatureInfoDialogType = string;
|
|
4
|
+
export declare enum DialogTypes {
|
|
5
|
+
LayerInfo = "layerInfo",
|
|
6
|
+
SyncGroups = "syncGroups",
|
|
7
|
+
TimeSeriesSelect = "timeSeriesSelect",
|
|
8
|
+
TimeSeriesManager = "timeSeriesManager",
|
|
9
|
+
TimeseriesInfo = "timeseriesInfo",
|
|
10
|
+
KeywordFilter = "keywordFilter",
|
|
11
|
+
DimensionSelectEnsembleMember = "dimensionSelect-ensemble_member",
|
|
12
|
+
DimensionSelectElevation = "dimensionSelect-elevation",
|
|
13
|
+
LayerManager = "layerManager",
|
|
14
|
+
LayerSelect = "layerSelect",
|
|
15
|
+
DrawingTool = "drawingTool",
|
|
16
|
+
DockedLayerManager = "dockedLayerManager",
|
|
17
|
+
ObjectManager = "objectManager",
|
|
18
|
+
PublicWarnings = "publicWarnings",
|
|
19
|
+
Search = "search",
|
|
20
|
+
AreaObjectLoader = "areaObjectLoader"
|
|
21
|
+
}
|
|
22
|
+
export type DialogType = DialogTypes | LegendDialogType | GetFeatureInfoDialogType;
|
|
23
|
+
export type { Source };
|
|
24
|
+
export interface UIType {
|
|
25
|
+
type: DialogType;
|
|
26
|
+
activeMapId: string;
|
|
27
|
+
isOpen: boolean;
|
|
28
|
+
source?: Source;
|
|
29
|
+
isLoading?: boolean;
|
|
30
|
+
error?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface UIStoreType {
|
|
33
|
+
order: DialogType[];
|
|
34
|
+
dialogs: Partial<Record<DialogType, UIType>>;
|
|
35
|
+
activeWindowId?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface UIModuleState {
|
|
38
|
+
ui?: UIStoreType;
|
|
39
|
+
}
|
|
40
|
+
export interface SetActiveMapIdForDialogPayload {
|
|
41
|
+
type: DialogType;
|
|
42
|
+
mapId: string;
|
|
43
|
+
setOpen?: boolean;
|
|
44
|
+
source?: Source;
|
|
45
|
+
origin?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface UIRegisterDialogPayload {
|
|
48
|
+
type: DialogType;
|
|
49
|
+
mapId?: string;
|
|
50
|
+
setOpen?: boolean;
|
|
51
|
+
source?: Source;
|
|
52
|
+
}
|
|
53
|
+
export interface UIUnRegisterDialogPayload {
|
|
54
|
+
type: DialogType;
|
|
55
|
+
}
|
|
56
|
+
export interface UIToggleDialogPayload {
|
|
57
|
+
type: DialogType;
|
|
58
|
+
setOpen: boolean;
|
|
59
|
+
origin?: string;
|
|
60
|
+
mapId?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface UIOrderDialogPayload {
|
|
63
|
+
type: DialogType;
|
|
64
|
+
}
|
|
65
|
+
export interface SetActiveWindowIdPayload {
|
|
66
|
+
activeWindowId: string;
|
|
67
|
+
}
|
|
68
|
+
export interface UIToggleIsLoadingPayload {
|
|
69
|
+
type: DialogType;
|
|
70
|
+
isLoading: boolean;
|
|
71
|
+
}
|
|
72
|
+
export interface UISetErrorPayload {
|
|
73
|
+
type: DialogType;
|
|
74
|
+
error: string;
|
|
75
|
+
}
|
|
76
|
+
export interface UIToggleShowSentryRecordButton {
|
|
77
|
+
type: DialogType;
|
|
78
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { uiTypes } from '.';
|
|
2
|
-
export interface SetupDialogReturnValue {
|
|
3
|
-
setDialogOrder: () => void;
|
|
4
|
-
dialogOrder: number;
|
|
5
|
-
onCloseDialog: () => void;
|
|
6
|
-
uiSource: uiTypes.Source;
|
|
7
|
-
isDialogOpen: boolean;
|
|
8
|
-
uiIsLoading: boolean;
|
|
9
|
-
uiError: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const useSetupDialog: (dialogType: uiTypes.DialogType, source?: uiTypes.Source) => SetupDialogReturnValue;
|
|
1
|
+
import type { uiTypes } from '.';
|
|
2
|
+
export interface SetupDialogReturnValue {
|
|
3
|
+
setDialogOrder: () => void;
|
|
4
|
+
dialogOrder: number;
|
|
5
|
+
onCloseDialog: () => void;
|
|
6
|
+
uiSource: uiTypes.Source;
|
|
7
|
+
isDialogOpen: boolean;
|
|
8
|
+
uiIsLoading: boolean;
|
|
9
|
+
uiError: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const useSetupDialog: (dialogType: uiTypes.DialogType, source?: uiTypes.Source) => SetupDialogReturnValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/src/store/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const selectorMemoizationOptions: {
|
|
2
|
-
memoizeOptions: {
|
|
3
|
-
maxSize: number;
|
|
4
|
-
resultEqualityCheck: (value: any, other: any) => boolean;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
1
|
+
export declare const selectorMemoizationOptions: {
|
|
2
|
+
memoizeOptions: {
|
|
3
|
+
maxSize: number;
|
|
4
|
+
resultEqualityCheck: (value: any, other: any) => boolean;
|
|
5
|
+
};
|
|
6
|
+
};
|