@opengeoweb/warnings 12.1.2 → 12.3.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 +445 -201
- package/package.json +16 -16
- package/src/lib/Warnings.stories.d.ts +1 -0
- package/src/lib/api/aviation-api/hooks.d.ts +2 -2
- package/src/lib/api/warning-api/api.d.ts +1 -0
- package/src/lib/api/warning-api/hooks.d.ts +3 -0
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.stories.d.ts +12 -36
- package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.stories.d.ts +1 -0
- package/src/lib/components/DrawingTool/DrawingTool.stories.d.ts +7 -30
- package/src/lib/components/FilterList/ExpandableFilterChip.stories.d.ts +13 -13
- package/src/lib/components/ObjectManager/ObjectManager.stories.d.ts +35 -42
- package/src/lib/components/ObjectManager/ObjectManagerConnect.stories.d.ts +6 -21
- package/src/lib/components/ObjectManager/ObjectManagerConnectErrors.stories.d.ts +1 -0
- package/src/lib/components/Providers/Providers.d.ts +10 -2
- package/src/lib/components/PublicWarningList/ConfirmWarningDialog.d.ts +2 -2
- package/src/lib/components/PublicWarningList/NewWarningButton/NewWarningButton.d.ts +1 -2
- package/src/lib/components/PublicWarningList/NewWarningButton/NewWarningButton.stories.d.ts +7 -8
- package/src/lib/components/PublicWarningList/PublicWarningList.stories.d.ts +1 -0
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.stories.d.ts +10 -1
- package/src/lib/components/PublicWarningList/WarningListColumnContent.d.ts +2 -2
- package/src/lib/components/PublicWarningList/WarningListHeaderContent.d.ts +2 -2
- package/src/lib/components/PublicWarningsForm/AreaField/AreaField.stories.d.ts +21 -9
- package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.stories.d.ts +10 -21
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.d.ts +5 -1
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.stories.d.ts +3 -3
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.stories.d.ts +1 -0
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnectErrors.stories.d.ts +1 -0
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.stories.d.ts +14 -53
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.stories.d.ts +1 -0
- package/src/lib/components/WarningsMapView/WarningsMapView.d.ts +1 -1
- package/src/lib/store/publicWarningForm/listener.d.ts +1 -1
- package/src/lib/store/publicWarningForm/reducer.d.ts +2 -2
- package/src/lib/store/publicWarningForm/selectors.d.ts +220 -44
- package/src/lib/store/publicWarnings/listener.d.ts +1 -1
- package/src/lib/store/publicWarnings/reducer.d.ts +1 -1
- package/src/lib/store/publicWarnings/selectors.d.ts +147 -19
- package/src/lib/store/publicWarnings/types.d.ts +1 -1
- package/src/lib/store/store.d.ts +9 -9
- package/src/lib/store/warningsDrawings/listener.d.ts +1 -1
- package/src/lib/store/warningsDrawings/reducer.d.ts +1 -1
- package/src/lib/store/warningsDrawings/selectors.d.ts +40 -4
- package/src/lib/store/warningsDrawings/types.d.ts +1 -1
- package/src/lib/storybookUtils/testUtils.d.ts +2 -0
- package/src/lib/utils/api.d.ts +0 -1
|
@@ -1,57 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { PublicWarningsFormDialog } from './PublicWarningsFormDialog';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const PublicWarningsFormDialogLight: {
|
|
7
|
-
(): React.ReactElement;
|
|
8
|
-
parameters: {
|
|
9
|
-
zeplinLink: {
|
|
10
|
-
name: string;
|
|
11
|
-
link: string;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
tags: string[];
|
|
15
|
-
};
|
|
16
|
-
export declare const PublicWarningsFormDialogDark: {
|
|
17
|
-
(): React.ReactElement;
|
|
18
|
-
parameters: {
|
|
19
|
-
zeplinLink: {
|
|
20
|
-
name: string;
|
|
21
|
-
link: string;
|
|
22
|
-
}[];
|
|
23
|
-
};
|
|
24
|
-
tags: string[];
|
|
25
|
-
};
|
|
26
|
-
export declare const PublicWarningsFormDialogBigLight: {
|
|
27
|
-
(): React.ReactElement;
|
|
28
|
-
tags: string[];
|
|
29
|
-
};
|
|
30
|
-
export declare const PublicWarningsFormDialogBigDark: {
|
|
31
|
-
(): React.ReactElement;
|
|
32
|
-
tags: string[];
|
|
33
|
-
};
|
|
34
|
-
export declare const PublicWarningsFormDialogBigErrorLight: {
|
|
35
|
-
(): React.ReactElement;
|
|
36
|
-
tags: string[];
|
|
37
|
-
};
|
|
38
|
-
export declare const PublicWarningsFormDialogBigErrorDark: {
|
|
39
|
-
(): React.ReactElement;
|
|
40
|
-
tags: string[];
|
|
41
|
-
};
|
|
42
|
-
export declare const PublicWarningsFormDialogReadOnlyLight: {
|
|
43
|
-
(): React.ReactElement;
|
|
44
|
-
tags: string[];
|
|
45
|
-
};
|
|
46
|
-
export declare const PublicWarningsFormDialogReadOnlyDark: {
|
|
47
|
-
(): React.ReactElement;
|
|
48
|
-
tags: string[];
|
|
49
|
-
};
|
|
50
|
-
export declare const PublicWarningsFormDialogTakeoverWarningLight: {
|
|
51
|
-
(): React.ReactElement;
|
|
52
|
-
tags: string[];
|
|
53
|
-
};
|
|
54
|
-
export declare const PublicWarningsFormDialogTakeoverWarningDark: {
|
|
55
|
-
(): React.ReactElement;
|
|
56
5
|
tags: string[];
|
|
57
6
|
};
|
|
7
|
+
export default _default;
|
|
8
|
+
type Story = StoryObj<typeof PublicWarningsFormDialog>;
|
|
9
|
+
export declare const PublicWarningsFormDialogLight: Story;
|
|
10
|
+
export declare const PublicWarningsFormDialogDark: Story;
|
|
11
|
+
export declare const PublicWarningsFormDialogBigLight: Story;
|
|
12
|
+
export declare const PublicWarningsFormDialogBigDark: Story;
|
|
13
|
+
export declare const PublicWarningsFormDialogBigErrorLight: Story;
|
|
14
|
+
export declare const PublicWarningsFormDialogBigErrorDark: Story;
|
|
15
|
+
export declare const PublicWarningsFormDialogReadOnlyLight: Story;
|
|
16
|
+
export declare const PublicWarningsFormDialogReadOnlyDark: Story;
|
|
17
|
+
export declare const PublicWarningsFormDialogTakeoverWarningLight: Story;
|
|
18
|
+
export declare const PublicWarningsFormDialogTakeoverWarningDark: Story;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { FeatureCollection } from 'geojson';
|
|
3
3
|
import { MapPreset } from '@opengeoweb/store';
|
|
4
4
|
interface WarningsMapViewProps {
|
|
5
|
-
geojsonFeature
|
|
5
|
+
geojsonFeature?: FeatureCollection | undefined;
|
|
6
6
|
defaultMapPreset?: MapPreset;
|
|
7
7
|
isSnapshot?: boolean;
|
|
8
8
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { WarningModuleStore } from '../types';
|
|
2
|
-
export declare const publicWarningFormListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("
|
|
2
|
+
export declare const publicWarningFormListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("redux-thunk").ThunkDispatch<WarningModuleStore, unknown, import("redux").UnknownAction>, unknown>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
1
|
import { AlertColor } from '@mui/material';
|
|
2
|
+
import { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
3
3
|
import { DrawingListItem } from '../warningsDrawings/types';
|
|
4
4
|
import { Area, Warning, WarningType } from './types';
|
|
5
|
-
export type FormAction = '' | 'saving' | 'publishing' | 'readonly' | 'edit';
|
|
5
|
+
export type FormAction = '' | 'saving' | 'publishing' | 'readonly' | 'edit' | 'cancel';
|
|
6
6
|
export interface FormError {
|
|
7
7
|
severity?: AlertColor;
|
|
8
8
|
message: string;
|
|
@@ -1,58 +1,234 @@
|
|
|
1
1
|
import { WarningModuleStore } from '../types';
|
|
2
2
|
import { WarningFormState } from './reducer';
|
|
3
3
|
export declare const getPublicWarningStore: (store: WarningModuleStore) => WarningFormState;
|
|
4
|
-
export declare const selectPublicWarningState: ((state: WarningModuleStore) => WarningFormState) &
|
|
5
|
-
clearCache: () => void;
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export declare const selectPublicWarningState: ((state: WarningModuleStore) => WarningFormState) & {
|
|
5
|
+
clearCache: () => void;
|
|
6
|
+
resultsCount: () => number;
|
|
7
|
+
resetResultsCount: () => void;
|
|
8
|
+
} & {
|
|
9
|
+
resultFunc: (resultFuncArgs_0: WarningFormState) => WarningFormState;
|
|
10
|
+
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => WarningFormState) & {
|
|
11
|
+
clearCache: () => void;
|
|
12
|
+
resultsCount: () => number;
|
|
13
|
+
resetResultsCount: () => void;
|
|
14
|
+
};
|
|
15
|
+
lastResult: () => WarningFormState;
|
|
16
|
+
dependencies: [(store: WarningModuleStore) => WarningFormState];
|
|
17
|
+
recomputations: () => number;
|
|
18
|
+
resetRecomputations: () => void;
|
|
19
|
+
dependencyRecomputations: () => number;
|
|
20
|
+
resetDependencyRecomputations: () => void;
|
|
21
|
+
} & {
|
|
22
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
23
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
8
24
|
};
|
|
9
|
-
export declare const getPublicWarningObject: ((state: WarningModuleStore) => import("../warningsDrawings/types").DrawingListItem | undefined) &
|
|
10
|
-
clearCache: () => void;
|
|
11
|
-
|
|
12
|
-
|
|
25
|
+
export declare const getPublicWarningObject: ((state: WarningModuleStore) => import("../warningsDrawings/types").DrawingListItem | undefined) & {
|
|
26
|
+
clearCache: () => void;
|
|
27
|
+
resultsCount: () => number;
|
|
28
|
+
resetResultsCount: () => void;
|
|
29
|
+
} & {
|
|
30
|
+
resultFunc: (resultFuncArgs_0: WarningFormState) => import("../warningsDrawings/types").DrawingListItem | undefined;
|
|
31
|
+
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => import("../warningsDrawings/types").DrawingListItem | undefined) & {
|
|
32
|
+
clearCache: () => void;
|
|
33
|
+
resultsCount: () => number;
|
|
34
|
+
resetResultsCount: () => void;
|
|
35
|
+
};
|
|
36
|
+
lastResult: () => import("../warningsDrawings/types").DrawingListItem | undefined;
|
|
37
|
+
dependencies: [(store: WarningModuleStore) => WarningFormState];
|
|
38
|
+
recomputations: () => number;
|
|
39
|
+
resetRecomputations: () => void;
|
|
40
|
+
dependencyRecomputations: () => number;
|
|
41
|
+
resetDependencyRecomputations: () => void;
|
|
42
|
+
} & {
|
|
43
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
44
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
13
45
|
};
|
|
14
|
-
export declare const getPublicWarning: ((state: WarningModuleStore) => import("./types").Warning | undefined) &
|
|
15
|
-
clearCache: () => void;
|
|
16
|
-
|
|
17
|
-
|
|
46
|
+
export declare const getPublicWarning: ((state: WarningModuleStore) => import("./types").Warning | undefined) & {
|
|
47
|
+
clearCache: () => void;
|
|
48
|
+
resultsCount: () => number;
|
|
49
|
+
resetResultsCount: () => void;
|
|
50
|
+
} & {
|
|
51
|
+
resultFunc: (resultFuncArgs_0: WarningFormState) => import("./types").Warning | undefined;
|
|
52
|
+
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => import("./types").Warning | undefined) & {
|
|
53
|
+
clearCache: () => void;
|
|
54
|
+
resultsCount: () => number;
|
|
55
|
+
resetResultsCount: () => void;
|
|
56
|
+
};
|
|
57
|
+
lastResult: () => import("./types").Warning | undefined;
|
|
58
|
+
dependencies: [(store: WarningModuleStore) => WarningFormState];
|
|
59
|
+
recomputations: () => number;
|
|
60
|
+
resetRecomputations: () => void;
|
|
61
|
+
dependencyRecomputations: () => number;
|
|
62
|
+
resetDependencyRecomputations: () => void;
|
|
63
|
+
} & {
|
|
64
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
65
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
18
66
|
};
|
|
19
|
-
export declare const getPublicWarningStatus: ((state: WarningModuleStore) => import("./types").PublicWarningStatus | undefined) &
|
|
20
|
-
clearCache: () => void;
|
|
21
|
-
|
|
22
|
-
|
|
67
|
+
export declare const getPublicWarningStatus: ((state: WarningModuleStore) => import("./types").PublicWarningStatus | undefined) & {
|
|
68
|
+
clearCache: () => void;
|
|
69
|
+
resultsCount: () => number;
|
|
70
|
+
resetResultsCount: () => void;
|
|
71
|
+
} & {
|
|
72
|
+
resultFunc: (resultFuncArgs_0: WarningFormState) => import("./types").PublicWarningStatus | undefined;
|
|
73
|
+
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => import("./types").PublicWarningStatus | undefined) & {
|
|
74
|
+
clearCache: () => void;
|
|
75
|
+
resultsCount: () => number;
|
|
76
|
+
resetResultsCount: () => void;
|
|
77
|
+
};
|
|
78
|
+
lastResult: () => import("./types").PublicWarningStatus | undefined;
|
|
79
|
+
dependencies: [(store: WarningModuleStore) => WarningFormState];
|
|
80
|
+
recomputations: () => number;
|
|
81
|
+
resetRecomputations: () => void;
|
|
82
|
+
dependencyRecomputations: () => number;
|
|
83
|
+
resetDependencyRecomputations: () => void;
|
|
84
|
+
} & {
|
|
85
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
86
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
23
87
|
};
|
|
24
|
-
export declare const getPublicWarningId: ((state: WarningModuleStore) => string | undefined) &
|
|
25
|
-
clearCache: () => void;
|
|
26
|
-
|
|
27
|
-
|
|
88
|
+
export declare const getPublicWarningId: ((state: WarningModuleStore) => string | undefined) & {
|
|
89
|
+
clearCache: () => void;
|
|
90
|
+
resultsCount: () => number;
|
|
91
|
+
resetResultsCount: () => void;
|
|
92
|
+
} & {
|
|
93
|
+
resultFunc: (resultFuncArgs_0: WarningFormState) => string | undefined;
|
|
94
|
+
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => string | undefined) & {
|
|
95
|
+
clearCache: () => void;
|
|
96
|
+
resultsCount: () => number;
|
|
97
|
+
resetResultsCount: () => void;
|
|
98
|
+
};
|
|
99
|
+
lastResult: () => string | undefined;
|
|
100
|
+
dependencies: [(store: WarningModuleStore) => WarningFormState];
|
|
101
|
+
recomputations: () => number;
|
|
102
|
+
resetRecomputations: () => void;
|
|
103
|
+
dependencyRecomputations: () => number;
|
|
104
|
+
resetDependencyRecomputations: () => void;
|
|
105
|
+
} & {
|
|
106
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
107
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
28
108
|
};
|
|
29
|
-
export declare const getPublicWarningAreas: ((state: WarningModuleStore) => import("./types").Area[]) &
|
|
30
|
-
clearCache: () => void;
|
|
31
|
-
|
|
32
|
-
|
|
109
|
+
export declare const getPublicWarningAreas: ((state: WarningModuleStore) => import("./types").Area[]) & {
|
|
110
|
+
clearCache: () => void;
|
|
111
|
+
resultsCount: () => number;
|
|
112
|
+
resetResultsCount: () => void;
|
|
113
|
+
} & {
|
|
114
|
+
resultFunc: (resultFuncArgs_0: WarningFormState) => import("./types").Area[];
|
|
115
|
+
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => import("./types").Area[]) & {
|
|
116
|
+
clearCache: () => void;
|
|
117
|
+
resultsCount: () => number;
|
|
118
|
+
resetResultsCount: () => void;
|
|
119
|
+
};
|
|
120
|
+
lastResult: () => import("./types").Area[];
|
|
121
|
+
dependencies: [(store: WarningModuleStore) => WarningFormState];
|
|
122
|
+
recomputations: () => number;
|
|
123
|
+
resetRecomputations: () => void;
|
|
124
|
+
dependencyRecomputations: () => number;
|
|
125
|
+
resetDependencyRecomputations: () => void;
|
|
126
|
+
} & {
|
|
127
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
128
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
33
129
|
};
|
|
34
|
-
export declare const getPublicWarningFormState: ((state: WarningModuleStore) => "" | "saving" | "publishing" | "readonly" | "edit"
|
|
35
|
-
clearCache: () => void;
|
|
36
|
-
|
|
37
|
-
|
|
130
|
+
export declare const getPublicWarningFormState: ((state: WarningModuleStore) => "" | "saving" | "publishing" | "readonly" | "edit" | "cancel") & {
|
|
131
|
+
clearCache: () => void;
|
|
132
|
+
resultsCount: () => number;
|
|
133
|
+
resetResultsCount: () => void;
|
|
134
|
+
} & {
|
|
135
|
+
resultFunc: (resultFuncArgs_0: WarningFormState) => "" | "saving" | "publishing" | "readonly" | "edit" | "cancel";
|
|
136
|
+
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => "" | "saving" | "publishing" | "readonly" | "edit" | "cancel") & {
|
|
137
|
+
clearCache: () => void;
|
|
138
|
+
resultsCount: () => number;
|
|
139
|
+
resetResultsCount: () => void;
|
|
140
|
+
};
|
|
141
|
+
lastResult: () => "" | "saving" | "publishing" | "readonly" | "edit" | "cancel";
|
|
142
|
+
dependencies: [(store: WarningModuleStore) => WarningFormState];
|
|
143
|
+
recomputations: () => number;
|
|
144
|
+
resetRecomputations: () => void;
|
|
145
|
+
dependencyRecomputations: () => number;
|
|
146
|
+
resetDependencyRecomputations: () => void;
|
|
147
|
+
} & {
|
|
148
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
149
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
38
150
|
};
|
|
39
|
-
export declare const getPublicWarningFormError: ((state: WarningModuleStore) => import("./reducer").FormError | undefined) &
|
|
40
|
-
clearCache: () => void;
|
|
41
|
-
|
|
42
|
-
|
|
151
|
+
export declare const getPublicWarningFormError: ((state: WarningModuleStore) => import("./reducer").FormError | undefined) & {
|
|
152
|
+
clearCache: () => void;
|
|
153
|
+
resultsCount: () => number;
|
|
154
|
+
resetResultsCount: () => void;
|
|
155
|
+
} & {
|
|
156
|
+
resultFunc: (resultFuncArgs_0: WarningFormState) => import("./reducer").FormError | undefined;
|
|
157
|
+
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => import("./reducer").FormError | undefined) & {
|
|
158
|
+
clearCache: () => void;
|
|
159
|
+
resultsCount: () => number;
|
|
160
|
+
resetResultsCount: () => void;
|
|
161
|
+
};
|
|
162
|
+
lastResult: () => import("./reducer").FormError | undefined;
|
|
163
|
+
dependencies: [(store: WarningModuleStore) => WarningFormState];
|
|
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;
|
|
43
171
|
};
|
|
44
|
-
export declare const getSelectedWarningId: ((state: WarningModuleStore) => string) &
|
|
45
|
-
clearCache: () => void;
|
|
46
|
-
|
|
47
|
-
|
|
172
|
+
export declare const getSelectedWarningId: ((state: WarningModuleStore) => string) & {
|
|
173
|
+
clearCache: () => void;
|
|
174
|
+
resultsCount: () => number;
|
|
175
|
+
resetResultsCount: () => void;
|
|
176
|
+
} & {
|
|
177
|
+
resultFunc: (resultFuncArgs_0: WarningFormState) => string;
|
|
178
|
+
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => string) & {
|
|
179
|
+
clearCache: () => void;
|
|
180
|
+
resultsCount: () => number;
|
|
181
|
+
resetResultsCount: () => void;
|
|
182
|
+
};
|
|
183
|
+
lastResult: () => string;
|
|
184
|
+
dependencies: [(store: WarningModuleStore) => WarningFormState];
|
|
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;
|
|
48
192
|
};
|
|
49
|
-
export declare const getSelectedPublicIsFormDirty: ((state: WarningModuleStore) => boolean) &
|
|
50
|
-
clearCache: () => void;
|
|
51
|
-
|
|
52
|
-
|
|
193
|
+
export declare const getSelectedPublicIsFormDirty: ((state: WarningModuleStore) => boolean) & {
|
|
194
|
+
clearCache: () => void;
|
|
195
|
+
resultsCount: () => number;
|
|
196
|
+
resetResultsCount: () => void;
|
|
197
|
+
} & {
|
|
198
|
+
resultFunc: (resultFuncArgs_0: WarningFormState) => boolean;
|
|
199
|
+
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => boolean) & {
|
|
200
|
+
clearCache: () => void;
|
|
201
|
+
resultsCount: () => number;
|
|
202
|
+
resetResultsCount: () => void;
|
|
203
|
+
};
|
|
204
|
+
lastResult: () => boolean;
|
|
205
|
+
dependencies: [(store: WarningModuleStore) => WarningFormState];
|
|
206
|
+
recomputations: () => number;
|
|
207
|
+
resetRecomputations: () => void;
|
|
208
|
+
dependencyRecomputations: () => number;
|
|
209
|
+
resetDependencyRecomputations: () => void;
|
|
210
|
+
} & {
|
|
211
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
212
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
53
213
|
};
|
|
54
|
-
export declare const getWarningType: ((state: WarningModuleStore) => import("./types").WarningType | undefined) &
|
|
55
|
-
clearCache: () => void;
|
|
56
|
-
|
|
57
|
-
|
|
214
|
+
export declare const getWarningType: ((state: WarningModuleStore) => import("./types").WarningType | undefined) & {
|
|
215
|
+
clearCache: () => void;
|
|
216
|
+
resultsCount: () => number;
|
|
217
|
+
resetResultsCount: () => void;
|
|
218
|
+
} & {
|
|
219
|
+
resultFunc: (resultFuncArgs_0: WarningFormState) => import("./types").WarningType | undefined;
|
|
220
|
+
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => import("./types").WarningType | undefined) & {
|
|
221
|
+
clearCache: () => void;
|
|
222
|
+
resultsCount: () => number;
|
|
223
|
+
resetResultsCount: () => void;
|
|
224
|
+
};
|
|
225
|
+
lastResult: () => import("./types").WarningType | undefined;
|
|
226
|
+
dependencies: [(store: WarningModuleStore) => WarningFormState];
|
|
227
|
+
recomputations: () => number;
|
|
228
|
+
resetRecomputations: () => void;
|
|
229
|
+
dependencyRecomputations: () => number;
|
|
230
|
+
resetDependencyRecomputations: () => void;
|
|
231
|
+
} & {
|
|
232
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
233
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
58
234
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { WarningModuleStore } from '../types';
|
|
2
2
|
export declare const getLastUpdatedTimeFormatted: () => string;
|
|
3
|
-
export declare const publicWarningsListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("
|
|
3
|
+
export declare const publicWarningsListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("redux-thunk").ThunkDispatch<WarningModuleStore, unknown, import("redux").UnknownAction>, unknown>;
|
|
@@ -2,7 +2,7 @@ import { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
|
2
2
|
import { Warning } from '../publicWarningForm/types';
|
|
3
3
|
import { PublicWarningsState } from './types';
|
|
4
4
|
import { FilterState } from '../../components/FilterList/filter-hooks';
|
|
5
|
-
export declare const publicWarningsAdapter: import("@reduxjs/toolkit").EntityAdapter<Warning>;
|
|
5
|
+
export declare const publicWarningsAdapter: import("@reduxjs/toolkit").EntityAdapter<Warning, string>;
|
|
6
6
|
export declare const initialState: PublicWarningsState;
|
|
7
7
|
export declare const publicWarningsReducer: import("redux").Reducer<PublicWarningsState>, publicWarningActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
8
8
|
setWarningFilters: (draft: Draft<PublicWarningsState>, action: PayloadAction<{
|
|
@@ -3,36 +3,164 @@ import { WarningModuleStore } from '../types';
|
|
|
3
3
|
import { FilterState } from '../../components/FilterList/filter-hooks';
|
|
4
4
|
export declare const getPublicWarningsStore: (store: WarningModuleStore) => PublicWarningsState;
|
|
5
5
|
export declare const selectAllPublicWarnings: (state: WarningModuleStore) => import("../publicWarningForm/types").Warning[];
|
|
6
|
-
export declare const isPublicWarningsLoading: ((state: WarningModuleStore) => boolean) &
|
|
7
|
-
clearCache: () => void;
|
|
8
|
-
}> & {
|
|
6
|
+
export declare const isPublicWarningsLoading: ((state: WarningModuleStore) => boolean) & {
|
|
9
7
|
clearCache: () => void;
|
|
8
|
+
resultsCount: () => number;
|
|
9
|
+
resetResultsCount: () => void;
|
|
10
|
+
} & {
|
|
11
|
+
resultFunc: (resultFuncArgs_0: PublicWarningsState) => boolean;
|
|
12
|
+
memoizedResultFunc: ((resultFuncArgs_0: PublicWarningsState) => boolean) & {
|
|
13
|
+
clearCache: () => void;
|
|
14
|
+
resultsCount: () => number;
|
|
15
|
+
resetResultsCount: () => void;
|
|
16
|
+
};
|
|
17
|
+
lastResult: () => boolean;
|
|
18
|
+
dependencies: [(store: WarningModuleStore) => PublicWarningsState];
|
|
19
|
+
recomputations: () => number;
|
|
20
|
+
resetRecomputations: () => void;
|
|
21
|
+
dependencyRecomputations: () => number;
|
|
22
|
+
resetDependencyRecomputations: () => void;
|
|
23
|
+
} & {
|
|
24
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
25
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
10
26
|
};
|
|
11
|
-
export declare const getPublicWarningsError: ((state: WarningModuleStore) => import("./types").PublicWarningError | undefined) &
|
|
12
|
-
clearCache: () => void;
|
|
13
|
-
}> & {
|
|
27
|
+
export declare const getPublicWarningsError: ((state: WarningModuleStore) => import("./types").PublicWarningError | undefined) & {
|
|
14
28
|
clearCache: () => void;
|
|
29
|
+
resultsCount: () => number;
|
|
30
|
+
resetResultsCount: () => void;
|
|
31
|
+
} & {
|
|
32
|
+
resultFunc: (resultFuncArgs_0: PublicWarningsState) => import("./types").PublicWarningError | undefined;
|
|
33
|
+
memoizedResultFunc: ((resultFuncArgs_0: PublicWarningsState) => import("./types").PublicWarningError | undefined) & {
|
|
34
|
+
clearCache: () => void;
|
|
35
|
+
resultsCount: () => number;
|
|
36
|
+
resetResultsCount: () => void;
|
|
37
|
+
};
|
|
38
|
+
lastResult: () => import("./types").PublicWarningError | undefined;
|
|
39
|
+
dependencies: [(store: WarningModuleStore) => PublicWarningsState];
|
|
40
|
+
recomputations: () => number;
|
|
41
|
+
resetRecomputations: () => void;
|
|
42
|
+
dependencyRecomputations: () => number;
|
|
43
|
+
resetDependencyRecomputations: () => void;
|
|
44
|
+
} & {
|
|
45
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
46
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
15
47
|
};
|
|
16
|
-
export declare const getPublicWarningsLastUpdatedTime: ((state: WarningModuleStore) => string) &
|
|
17
|
-
clearCache: () => void;
|
|
18
|
-
}> & {
|
|
48
|
+
export declare const getPublicWarningsLastUpdatedTime: ((state: WarningModuleStore) => string) & {
|
|
19
49
|
clearCache: () => void;
|
|
50
|
+
resultsCount: () => number;
|
|
51
|
+
resetResultsCount: () => void;
|
|
52
|
+
} & {
|
|
53
|
+
resultFunc: (resultFuncArgs_0: PublicWarningsState) => string;
|
|
54
|
+
memoizedResultFunc: ((resultFuncArgs_0: PublicWarningsState) => string) & {
|
|
55
|
+
clearCache: () => void;
|
|
56
|
+
resultsCount: () => number;
|
|
57
|
+
resetResultsCount: () => void;
|
|
58
|
+
};
|
|
59
|
+
lastResult: () => string;
|
|
60
|
+
dependencies: [(store: WarningModuleStore) => PublicWarningsState];
|
|
61
|
+
recomputations: () => number;
|
|
62
|
+
resetRecomputations: () => void;
|
|
63
|
+
dependencyRecomputations: () => number;
|
|
64
|
+
resetDependencyRecomputations: () => void;
|
|
65
|
+
} & {
|
|
66
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
67
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
20
68
|
};
|
|
21
|
-
export declare const getWarningsFilterById: ((state: WarningModuleStore, panelId?: string | undefined) => FilterState) &
|
|
22
|
-
clearCache: () => void;
|
|
23
|
-
}> & {
|
|
69
|
+
export declare const getWarningsFilterById: ((state: WarningModuleStore, panelId?: string | undefined) => FilterState) & {
|
|
24
70
|
clearCache: () => void;
|
|
71
|
+
resultsCount: () => number;
|
|
72
|
+
resetResultsCount: () => void;
|
|
73
|
+
} & {
|
|
74
|
+
resultFunc: (resultFuncArgs_0: Record<string, FilterState>, resultFuncArgs_1: string | undefined) => FilterState;
|
|
75
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, FilterState>, resultFuncArgs_1: string | undefined) => FilterState) & {
|
|
76
|
+
clearCache: () => void;
|
|
77
|
+
resultsCount: () => number;
|
|
78
|
+
resetResultsCount: () => void;
|
|
79
|
+
};
|
|
80
|
+
lastResult: () => FilterState;
|
|
81
|
+
dependencies: [((state: WarningModuleStore) => Record<string, FilterState>) & {
|
|
82
|
+
clearCache: () => void;
|
|
83
|
+
resultsCount: () => number;
|
|
84
|
+
resetResultsCount: () => void;
|
|
85
|
+
} & {
|
|
86
|
+
resultFunc: (resultFuncArgs_0: PublicWarningsState) => Record<string, FilterState>;
|
|
87
|
+
memoizedResultFunc: ((resultFuncArgs_0: PublicWarningsState) => Record<string, FilterState>) & {
|
|
88
|
+
clearCache: () => void;
|
|
89
|
+
resultsCount: () => number;
|
|
90
|
+
resetResultsCount: () => void;
|
|
91
|
+
};
|
|
92
|
+
lastResult: () => Record<string, FilterState>;
|
|
93
|
+
dependencies: [(store: WarningModuleStore) => PublicWarningsState];
|
|
94
|
+
recomputations: () => number;
|
|
95
|
+
resetRecomputations: () => void;
|
|
96
|
+
dependencyRecomputations: () => number;
|
|
97
|
+
resetDependencyRecomputations: () => void;
|
|
98
|
+
} & {
|
|
99
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
100
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
101
|
+
}, (_store: WarningModuleStore, panelId?: string) => string | undefined];
|
|
102
|
+
recomputations: () => number;
|
|
103
|
+
resetRecomputations: () => void;
|
|
104
|
+
dependencyRecomputations: () => number;
|
|
105
|
+
resetDependencyRecomputations: () => void;
|
|
106
|
+
} & {
|
|
107
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
108
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
25
109
|
};
|
|
26
110
|
export declare const getWarningsPresetById: ((state: WarningModuleStore, panelId?: string | undefined) => {
|
|
27
111
|
filterState: null;
|
|
28
112
|
} | {
|
|
29
113
|
filterState: FilterState;
|
|
30
|
-
}) &
|
|
31
|
-
filterState: null;
|
|
32
|
-
} | {
|
|
33
|
-
filterState: FilterState;
|
|
34
|
-
}, {
|
|
35
|
-
clearCache: () => void;
|
|
36
|
-
}> & {
|
|
114
|
+
}) & {
|
|
37
115
|
clearCache: () => void;
|
|
116
|
+
resultsCount: () => number;
|
|
117
|
+
resetResultsCount: () => void;
|
|
118
|
+
} & {
|
|
119
|
+
resultFunc: (resultFuncArgs_0: Record<string, FilterState>, resultFuncArgs_1: string | undefined) => {
|
|
120
|
+
filterState: null;
|
|
121
|
+
} | {
|
|
122
|
+
filterState: FilterState;
|
|
123
|
+
};
|
|
124
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, FilterState>, resultFuncArgs_1: string | undefined) => {
|
|
125
|
+
filterState: null;
|
|
126
|
+
} | {
|
|
127
|
+
filterState: FilterState;
|
|
128
|
+
}) & {
|
|
129
|
+
clearCache: () => void;
|
|
130
|
+
resultsCount: () => number;
|
|
131
|
+
resetResultsCount: () => void;
|
|
132
|
+
};
|
|
133
|
+
lastResult: () => {
|
|
134
|
+
filterState: null;
|
|
135
|
+
} | {
|
|
136
|
+
filterState: FilterState;
|
|
137
|
+
};
|
|
138
|
+
dependencies: [((state: WarningModuleStore) => Record<string, FilterState>) & {
|
|
139
|
+
clearCache: () => void;
|
|
140
|
+
resultsCount: () => number;
|
|
141
|
+
resetResultsCount: () => void;
|
|
142
|
+
} & {
|
|
143
|
+
resultFunc: (resultFuncArgs_0: PublicWarningsState) => Record<string, FilterState>;
|
|
144
|
+
memoizedResultFunc: ((resultFuncArgs_0: PublicWarningsState) => Record<string, FilterState>) & {
|
|
145
|
+
clearCache: () => void;
|
|
146
|
+
resultsCount: () => number;
|
|
147
|
+
resetResultsCount: () => void;
|
|
148
|
+
};
|
|
149
|
+
lastResult: () => Record<string, FilterState>;
|
|
150
|
+
dependencies: [(store: WarningModuleStore) => PublicWarningsState];
|
|
151
|
+
recomputations: () => number;
|
|
152
|
+
resetRecomputations: () => void;
|
|
153
|
+
dependencyRecomputations: () => number;
|
|
154
|
+
resetDependencyRecomputations: () => void;
|
|
155
|
+
} & {
|
|
156
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
157
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
158
|
+
}, (_store: WarningModuleStore, panelId?: string) => string | undefined];
|
|
159
|
+
recomputations: () => number;
|
|
160
|
+
resetRecomputations: () => void;
|
|
161
|
+
dependencyRecomputations: () => number;
|
|
162
|
+
resetDependencyRecomputations: () => void;
|
|
163
|
+
} & {
|
|
164
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
165
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
38
166
|
};
|
|
@@ -11,7 +11,7 @@ export interface PublicWarningError {
|
|
|
11
11
|
message: string;
|
|
12
12
|
}
|
|
13
13
|
export interface PublicWarningsState {
|
|
14
|
-
warnings: EntityState<Warning>;
|
|
14
|
+
warnings: EntityState<Warning, string>;
|
|
15
15
|
isLoading: boolean;
|
|
16
16
|
lastUpdatedTime: string;
|
|
17
17
|
error?: PublicWarningError;
|
package/src/lib/store/store.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { SnackbarModuleStore } from '@opengeoweb/snackbar';
|
|
2
2
|
import { DrawtoolModuleStore, UIModuleState, WebMapStateModuleState } from '@opengeoweb/store';
|
|
3
|
-
import {
|
|
3
|
+
import { Store } from '@reduxjs/toolkit';
|
|
4
4
|
import { WarningModuleStore } from './types';
|
|
5
5
|
export declare const warningsReducersMap: {
|
|
6
|
-
webmap: import("redux").Reducer<import("dist/libs/store/src/store/map/types").WebMapState, import("redux").
|
|
7
|
-
layers: import("redux").Reducer<import("dist/libs/store/src/store/map/types").LayerState, import("redux").
|
|
8
|
-
ui: import("redux").Reducer<import("dist/libs/store/src/store/ui/types").UIStoreType, import("redux").
|
|
9
|
-
drawingtools: import("redux").Reducer<import("dist/libs/store/src/store/drawingTool/reducer").DrawingToolState, import("redux").
|
|
6
|
+
webmap: import("redux").Reducer<import("dist/libs/store/src/store/map/types").WebMapState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").WebMapState>;
|
|
7
|
+
layers: import("redux").Reducer<import("dist/libs/store/src/store/map/types").LayerState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").LayerState>;
|
|
8
|
+
ui: import("redux").Reducer<import("dist/libs/store/src/store/ui/types").UIStoreType, import("redux").UnknownAction, import("dist/libs/store/src/store/ui/types").UIStoreType>;
|
|
9
|
+
drawingtools: import("redux").Reducer<import("dist/libs/store/src/store/drawingTool/reducer").DrawingToolState, import("redux").UnknownAction, import("dist/libs/store/src/store/drawingTool/reducer").DrawingToolState>;
|
|
10
10
|
drawings: import("redux").Reducer<import("./warningsDrawings/types").DrawState>;
|
|
11
11
|
publicWarningForm: import("redux").Reducer<import("./publicWarningForm/reducer").WarningFormState>;
|
|
12
12
|
publicWarnings: import("redux").Reducer<import("./publicWarnings/types").PublicWarningsState>;
|
|
13
|
-
snackbar: import("redux").Reducer<import("dist/libs/snackbar/src/lib/store/types").SnackbarState, import("redux").
|
|
14
|
-
syncGroups: import("redux").Reducer<import("dist/libs/store/src/store/generic/syncGroups/types").SynchronizationGroupState, import("redux").
|
|
13
|
+
snackbar: import("redux").Reducer<import("dist/libs/snackbar/src/lib/store/types").SnackbarState, import("redux").UnknownAction, import("dist/libs/snackbar/src/lib/store/types").SnackbarState>;
|
|
14
|
+
syncGroups: import("redux").Reducer<import("dist/libs/store/src/store/generic/syncGroups/types").SynchronizationGroupState, import("redux").UnknownAction, import("dist/libs/store/src/store/generic/syncGroups/types").SynchronizationGroupState>;
|
|
15
15
|
};
|
|
16
|
-
export declare const warningsMiddlewares: (import("@reduxjs/toolkit").ListenerMiddleware<WarningModuleStore, import("
|
|
17
|
-
export declare const createMockStore: (mockState?: WebMapStateModuleState | DrawtoolModuleStore | UIModuleState | WarningModuleStore | SnackbarModuleStore) =>
|
|
16
|
+
export declare const warningsMiddlewares: (import("@reduxjs/toolkit").ListenerMiddleware<WarningModuleStore, import("redux-thunk").ThunkDispatch<WarningModuleStore, unknown, import("redux").UnknownAction>, unknown> | import("@reduxjs/toolkit").ListenerMiddleware<SnackbarModuleStore, import("redux-thunk").ThunkDispatch<SnackbarModuleStore, unknown, import("redux").UnknownAction>, unknown>)[];
|
|
17
|
+
export declare const createMockStore: (mockState?: WebMapStateModuleState | DrawtoolModuleStore | UIModuleState | WarningModuleStore | SnackbarModuleStore) => Store;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { WarningModuleStore } from '../types';
|
|
2
|
-
export declare const warningsDrawingsListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("
|
|
2
|
+
export declare const warningsDrawingsListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("redux-thunk").ThunkDispatch<WarningModuleStore, unknown, import("redux").UnknownAction>, unknown>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
2
|
import { DrawItem, DrawState, SetDrawValuesPayload, SubmitDrawValuesPayload } from './types';
|
|
3
|
-
export declare const drawAdapter: import("@reduxjs/toolkit").EntityAdapter<DrawItem>;
|
|
3
|
+
export declare const drawAdapter: import("@reduxjs/toolkit").EntityAdapter<DrawItem, string>;
|
|
4
4
|
export declare const initialState: DrawState;
|
|
5
5
|
export declare const warningsDrawingsReducer: import("redux").Reducer<DrawState>, warningsDrawingsActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
6
6
|
setDrawValues: (draft: Draft<DrawState>, action: PayloadAction<SetDrawValuesPayload>) => void;
|