@opengeoweb/store 9.14.0 → 9.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +624 -424
- package/package.json +1 -1
- package/src/index.d.ts +0 -1
- package/src/store/mapStore/index.d.ts +1 -0
- package/src/store/mapStore/layers/reducer.d.ts +3 -1
- package/src/store/mapStore/layers/types.d.ts +3 -0
- package/src/store/mapStore/map/mapUiListener.d.ts +2 -0
- package/src/store/mapStore/service/index.d.ts +1 -0
- package/src/store/mapStore/service/localStorage.d.ts +3 -0
- package/src/store/mapStore/service/types.d.ts +3 -1
- package/src/store/ui/index.d.ts +1 -0
- package/src/store/ui/selectors.d.ts +15 -12
- package/src/store/ui/types.d.ts +2 -3
- package/src/{hooks/useSetupDialog → store/ui}/useSetupDialog.d.ts +1 -1
- package/src/store/ui/useSetupDialog.spec.d.ts +1 -0
- package/src/hooks/index.d.ts +0 -1
- package/src/hooks/useSetupDialog/index.d.ts +0 -1
- package/src/store/ui/listener.d.ts +0 -2
- /package/src/{hooks/useSetupDialog/useSetupDialog.spec.d.ts → store/mapStore/map/mapUiListener.spec.d.ts} +0 -0
- /package/src/store/mapStore/map/{listener.d.ts → metronomeListener.d.ts} +0 -0
- /package/src/store/{ui/listener.spec.d.ts → mapStore/service/localStorage.spec.d.ts} +0 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export declare const mapStoreActions: {
|
|
|
60
60
|
}, "layerReducer/layerChangeAcceptanceTime">;
|
|
61
61
|
layerChangeName: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetLayerNamePayload, "layerReducer/layerChangeName">;
|
|
62
62
|
layerChangeGeojson: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetLayerGeojsonPayload, "layerReducer/layerChangeGeojson">;
|
|
63
|
+
layerSetGeojsonFromLayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetLayerGeojsonFromLayerPayload, "layerReducer/layerSetGeojsonFromLayer">;
|
|
63
64
|
layerDelete: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").DeleteLayerPayload, "layerReducer/layerDelete">;
|
|
64
65
|
layerError: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").ErrorLayerPayload, "layerReducer/layerError">;
|
|
65
66
|
baseLayerDelete: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").DeleteLayerPayload, "layerReducer/baseLayerDelete">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
import { SetLayerDimensionsPayload, SetLayerStylePayload, UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
|
|
3
|
-
import { LayerState, Layer, AddLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerOpacityPayload, SetLayerNamePayload, SetLayerGeojsonPayload, DeleteLayerPayload, ErrorLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetAvailableBaseLayersPayload, SetSelectedFeaturePayload, UpdateFeaturePayload, ExitFeatureDrawModePayload, ToggleFeatureModePayload, UpdateFeaturePropertiesPayload, DuplicateMapLayerPayload, ShowLayerInfoPayload } from './types';
|
|
3
|
+
import { LayerState, Layer, AddLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerOpacityPayload, SetLayerNamePayload, SetLayerGeojsonPayload, DeleteLayerPayload, ErrorLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetAvailableBaseLayersPayload, SetSelectedFeaturePayload, UpdateFeaturePayload, ExitFeatureDrawModePayload, ToggleFeatureModePayload, UpdateFeaturePropertiesPayload, DuplicateMapLayerPayload, ShowLayerInfoPayload, SetLayerGeojsonFromLayerPayload } from './types';
|
|
4
4
|
export declare const createLayer: ({ id, opacity, acceptanceTimeInMinutes, enabled, layerType, status, useLatestReferenceTime, ...props }: Layer) => Layer;
|
|
5
5
|
export declare const initialState: LayerState;
|
|
6
6
|
export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
|
|
@@ -16,6 +16,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
|
|
|
16
16
|
}>) => void;
|
|
17
17
|
layerChangeName: (draft: Draft<LayerState>, action: PayloadAction<SetLayerNamePayload>) => void;
|
|
18
18
|
layerChangeGeojson: (draft: Draft<LayerState>, action: PayloadAction<SetLayerGeojsonPayload>) => void;
|
|
19
|
+
layerSetGeojsonFromLayer: (draft: Draft<LayerState>, action: PayloadAction<SetLayerGeojsonFromLayerPayload>) => void;
|
|
19
20
|
layerDelete: (draft: Draft<LayerState>, action: PayloadAction<DeleteLayerPayload>) => void;
|
|
20
21
|
layerError: (draft: Draft<LayerState>, action: PayloadAction<ErrorLayerPayload>) => void;
|
|
21
22
|
baseLayerDelete: (draft: Draft<LayerState>, action: PayloadAction<DeleteLayerPayload>) => void;
|
|
@@ -56,6 +57,7 @@ export declare const layerActions: import("@reduxjs/toolkit").CaseReducerActions
|
|
|
56
57
|
}>) => void;
|
|
57
58
|
layerChangeName: (draft: Draft<LayerState>, action: PayloadAction<SetLayerNamePayload>) => void;
|
|
58
59
|
layerChangeGeojson: (draft: Draft<LayerState>, action: PayloadAction<SetLayerGeojsonPayload>) => void;
|
|
60
|
+
layerSetGeojsonFromLayer: (draft: Draft<LayerState>, action: PayloadAction<SetLayerGeojsonFromLayerPayload>) => void;
|
|
59
61
|
layerDelete: (draft: Draft<LayerState>, action: PayloadAction<DeleteLayerPayload>) => void;
|
|
60
62
|
layerError: (draft: Draft<LayerState>, action: PayloadAction<ErrorLayerPayload>) => void;
|
|
61
63
|
baseLayerDelete: (draft: Draft<LayerState>, action: PayloadAction<DeleteLayerPayload>) => void;
|
|
@@ -91,6 +91,9 @@ export interface SetLayerDimensionPayload extends LayerPayload {
|
|
|
91
91
|
export interface SetLayerGeojsonPayload extends LayerPayload {
|
|
92
92
|
geojson: FeatureCollection;
|
|
93
93
|
}
|
|
94
|
+
export interface SetLayerGeojsonFromLayerPayload extends LayerPayload {
|
|
95
|
+
sourceLayerId: string;
|
|
96
|
+
}
|
|
94
97
|
export interface DeleteLayerPayload extends LayerPayload {
|
|
95
98
|
mapId: string;
|
|
96
99
|
layerIndex?: number;
|
|
@@ -2,10 +2,12 @@ import { LayerProps } from '@opengeoweb/webmap';
|
|
|
2
2
|
export interface InitialService {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
|
-
|
|
5
|
+
url: string;
|
|
6
6
|
scope?: ServiceScope;
|
|
7
7
|
abstract?: string;
|
|
8
8
|
}
|
|
9
|
+
export type NoIdService = Omit<InitialService, 'id'>;
|
|
10
|
+
export type UserAddedServices = Record<string, NoIdService>;
|
|
9
11
|
export type Services = Record<string, ReduxService>;
|
|
10
12
|
export type ServiceScope = 'user' | 'system';
|
|
11
13
|
export interface ReduxService {
|
package/src/store/ui/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { TypedUseSelectorHook } from 'react-redux';
|
|
1
2
|
import type { CoreAppStore } from '../types';
|
|
2
|
-
import type { UIStoreType, UIType } from './types';
|
|
3
|
-
export declare const
|
|
3
|
+
import type { UIModuleState, UIStoreType, UIType } from './types';
|
|
4
|
+
export declare const useAppSelector: TypedUseSelectorHook<CoreAppStore>;
|
|
5
|
+
export declare const getUiStore: (store: UIModuleState) => UIStoreType;
|
|
4
6
|
/**
|
|
5
7
|
* Gets the active map Id and wether a dialog is open or closed
|
|
6
8
|
*
|
|
@@ -9,7 +11,7 @@ export declare const getUiStore: (store: CoreAppStore) => UIStoreType;
|
|
|
9
11
|
* @param {string} dialogType type of the dialog
|
|
10
12
|
* @returns {array} [string, boolean] first element gives the active map id, second element whether the dialog is open
|
|
11
13
|
*/
|
|
12
|
-
export declare const getDialogDetailsByType: (store:
|
|
14
|
+
export declare const getDialogDetailsByType: (store: UIModuleState, dialogType: string) => UIType;
|
|
13
15
|
/**
|
|
14
16
|
* For a given ui component: gets wether the dialog is open or closed
|
|
15
17
|
*
|
|
@@ -17,7 +19,7 @@ export declare const getDialogDetailsByType: (store: CoreAppStore, dialogType: s
|
|
|
17
19
|
* @param {string} dialogType type of the dialog
|
|
18
20
|
* @returns {boolean} returnType: boolean
|
|
19
21
|
*/
|
|
20
|
-
export declare const getisDialogOpen: ((state:
|
|
22
|
+
export declare const getisDialogOpen: ((state: UIModuleState, dialogType: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean, {
|
|
21
23
|
clearCache: () => void;
|
|
22
24
|
}> & {
|
|
23
25
|
clearCache: () => void;
|
|
@@ -29,7 +31,7 @@ export declare const getisDialogOpen: ((state: CoreAppStore, dialogType: string)
|
|
|
29
31
|
* @param {string} dialogType type of the dialog
|
|
30
32
|
* @returns {string} returnType: string - the active map id
|
|
31
33
|
*/
|
|
32
|
-
export declare const getDialogMapId: ((state:
|
|
34
|
+
export declare const getDialogMapId: ((state: UIModuleState, dialogType: string) => string) & import("reselect").OutputSelectorFields<(args_0: UIType) => string, {
|
|
33
35
|
clearCache: () => void;
|
|
34
36
|
}> & {
|
|
35
37
|
clearCache: () => void;
|
|
@@ -41,7 +43,7 @@ export declare const getDialogMapId: ((state: CoreAppStore, dialogType: string)
|
|
|
41
43
|
* @param {DialogType} dialogType type of the dialog
|
|
42
44
|
* @returns {number} the higher the order number the higher the zIndex
|
|
43
45
|
*/
|
|
44
|
-
export declare const getDialogOrder: ((state:
|
|
46
|
+
export declare const getDialogOrder: ((state: UIModuleState, dialogType: string) => number) & import("reselect").OutputSelectorFields<(args_0: number) => number, {
|
|
45
47
|
clearCache: () => void;
|
|
46
48
|
}> & {
|
|
47
49
|
clearCache: () => void;
|
|
@@ -53,12 +55,12 @@ export declare const getDialogOrder: ((state: CoreAppStore, dialogType: string)
|
|
|
53
55
|
* @param {DialogType} dialogType type of the dialog
|
|
54
56
|
* @returns {boolean}
|
|
55
57
|
*/
|
|
56
|
-
export declare const getDialogIsOrderedOnTop: ((state:
|
|
58
|
+
export declare const getDialogIsOrderedOnTop: ((state: UIModuleState, dialogType: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: boolean) => boolean, {
|
|
57
59
|
clearCache: () => void;
|
|
58
60
|
}> & {
|
|
59
61
|
clearCache: () => void;
|
|
60
62
|
};
|
|
61
|
-
export declare const getDialogSource: ((state:
|
|
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, {
|
|
62
64
|
clearCache: () => void;
|
|
63
65
|
}> & {
|
|
64
66
|
clearCache: () => void;
|
|
@@ -70,7 +72,7 @@ export declare const getDialogSource: ((state: CoreAppStore, dialogType: string)
|
|
|
70
72
|
* @param {object} store store object from which the window state will be extracted
|
|
71
73
|
* @returns {string} active window id
|
|
72
74
|
*/
|
|
73
|
-
export declare const getActiveWindowId: ((state:
|
|
75
|
+
export declare const getActiveWindowId: ((state: UIModuleState) => string) & import("reselect").OutputSelectorFields<(args_0: UIStoreType) => string, {
|
|
74
76
|
clearCache: () => void;
|
|
75
77
|
}> & {
|
|
76
78
|
clearCache: () => void;
|
|
@@ -82,18 +84,19 @@ export declare const getActiveWindowId: ((state: CoreAppStore) => string) & impo
|
|
|
82
84
|
* @param {object} store store object from which the window state will be extracted
|
|
83
85
|
* @returns {string} active window id
|
|
84
86
|
*/
|
|
85
|
-
export declare const getIsActiveWindowId: ((state:
|
|
87
|
+
export declare const getIsActiveWindowId: ((state: UIModuleState, viewId: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIStoreType, args_1: string) => boolean, {
|
|
86
88
|
clearCache: () => void;
|
|
87
89
|
}> & {
|
|
88
90
|
clearCache: () => void;
|
|
89
91
|
};
|
|
90
|
-
export declare const getDialogIsLoading: ((state:
|
|
92
|
+
export declare const getDialogIsLoading: ((state: UIModuleState, dialogType: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean, {
|
|
91
93
|
clearCache: () => void;
|
|
92
94
|
}> & {
|
|
93
95
|
clearCache: () => void;
|
|
94
96
|
};
|
|
95
|
-
export declare const getDialogError: ((state:
|
|
97
|
+
export declare const getDialogError: ((state: UIModuleState, dialogType: string) => string) & import("reselect").OutputSelectorFields<(args_0: UIType) => string, {
|
|
96
98
|
clearCache: () => void;
|
|
97
99
|
}> & {
|
|
98
100
|
clearCache: () => void;
|
|
99
101
|
};
|
|
102
|
+
export declare const getUiDialogsByActiveMapId: (store: UIModuleState, mapId: string) => UIType[];
|
package/src/store/ui/types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Source } from '@opengeoweb/shared';
|
|
2
|
-
import { MapActionOrigin } from '../mapStore/map/enums';
|
|
3
2
|
type LegendDialogType = string;
|
|
4
3
|
type GetFeatureInfoDialogType = string;
|
|
5
4
|
export declare enum DialogTypes {
|
|
@@ -43,7 +42,7 @@ export interface SetActiveMapIdForDialogPayload {
|
|
|
43
42
|
mapId: string;
|
|
44
43
|
setOpen?: boolean;
|
|
45
44
|
source?: Source;
|
|
46
|
-
origin?:
|
|
45
|
+
origin?: string;
|
|
47
46
|
}
|
|
48
47
|
export interface UIRegisterDialogPayload {
|
|
49
48
|
type: DialogType;
|
|
@@ -57,7 +56,7 @@ export interface UIUnRegisterDialogPayload {
|
|
|
57
56
|
export interface UIToggleDialogPayload {
|
|
58
57
|
type: DialogType;
|
|
59
58
|
setOpen: boolean;
|
|
60
|
-
origin?:
|
|
59
|
+
origin?: string;
|
|
61
60
|
mapId?: string;
|
|
62
61
|
}
|
|
63
62
|
export interface UIOrderDialogPayload {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/src/hooks/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useSetupDialog';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useSetupDialog';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|