@opengeoweb/warnings 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 +1066 -719
- package/package.json +1 -1
- package/src/index.d.ts +10 -10
- package/src/lib/Warnings.stories.d.ts +6 -6
- package/src/lib/components/AreaObjectLoader/AreaObjectFilter.d.ts +9 -9
- package/src/lib/components/AreaObjectLoader/AreaObjectFilter.spec.d.ts +1 -1
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.d.ts +27 -27
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.spec.d.ts +1 -1
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.stories.d.ts +40 -40
- package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.d.ts +6 -6
- package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.integration.spec.d.ts +1 -1
- package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.stories.d.ts +7 -7
- package/src/lib/components/AreaObjectLoader/AreasObjects.d.ts +25 -25
- package/src/lib/components/AreaObjectLoader/AreasObjects.spec.d.ts +1 -1
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +15 -15
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.spec.d.ts +1 -1
- package/src/lib/components/ComponentsLookUp/index.d.ts +1 -1
- package/src/lib/components/DrawingTool/DrawingTool.stories.d.ts +34 -34
- package/src/lib/components/DrawingTool/DrawingToolConnect.d.ts +16 -16
- package/src/lib/components/DrawingTool/DrawingToolConnect.spec.d.ts +1 -1
- package/src/lib/components/DrawingTool/DrawingToolConnect.stories.d.ts +6 -6
- package/src/lib/components/DrawingTool/DrawingToolDialog.d.ts +19 -19
- package/src/lib/components/DrawingTool/DrawingToolDialog.spec.d.ts +1 -1
- package/src/lib/components/DrawingTool/DrawingToolMapButtonConnect.d.ts +8 -8
- package/src/lib/components/DrawingTool/DrawingToolMapButtonConnect.spec.d.ts +1 -1
- package/src/lib/components/DrawingTool/index.d.ts +3 -3
- package/src/lib/components/DrawingTool/useObjectDrawDialogAction.d.ts +25 -25
- package/src/lib/components/DrawingTool/useObjectDrawDialogAction.spec.d.ts +1 -1
- package/src/lib/components/DrawingToolForm/DrawingToolForm.d.ts +26 -26
- package/src/lib/components/DrawingToolForm/DrawingToolForm.spec.d.ts +1 -1
- package/src/lib/components/DrawingToolForm/DrawingToolFormConnect.d.ts +2 -2
- package/src/lib/components/DrawingToolForm/DrawingToolFormConnect.integration.spec.d.ts +1 -1
- package/src/lib/components/DrawingToolForm/DrawingToolFormContents.d.ts +27 -27
- package/src/lib/components/DrawingToolForm/index.d.ts +2 -2
- package/src/lib/components/FilterList/ExpandableFilterChip.d.ts +10 -0
- package/src/lib/components/FilterList/FilterChipWithOptions.d.ts +7 -7
- package/src/lib/components/FilterList/FilterChipWithOptions.spec.d.ts +1 -1
- package/src/lib/components/FilterList/FilterChipWithOptions.stories.d.ts +19 -19
- package/src/lib/components/FilterList/FilterChipWithOptionsConnect.d.ts +7 -7
- package/src/lib/components/FilterList/FilterList.d.ts +12 -13
- package/src/lib/components/FilterList/FilterOption.d.ts +12 -0
- package/src/lib/components/ObjectManager/ConfirmDeleteDialog.d.ts +11 -11
- package/src/lib/components/ObjectManager/ConfirmDeleteDialog.spec.d.ts +1 -1
- package/src/lib/components/ObjectManager/ObjectManager.d.ts +25 -25
- package/src/lib/components/ObjectManager/ObjectManager.spec.d.ts +1 -1
- package/src/lib/components/ObjectManager/ObjectManager.stories.d.ts +46 -46
- package/src/lib/components/ObjectManager/ObjectManagerConnect.d.ts +6 -6
- package/src/lib/components/ObjectManager/ObjectManagerConnect.integration.spec.d.ts +1 -1
- package/src/lib/components/ObjectManager/ObjectManagerConnect.stories.d.ts +25 -25
- package/src/lib/components/ObjectManager/ObjectManagerConnectErrors.stories.d.ts +9 -9
- package/src/lib/components/ObjectManager/ObjectManagerMapButtonConnect.d.ts +6 -6
- package/src/lib/components/ObjectManager/ObjectManagerMapButtonConnect.spec.d.ts +1 -1
- package/src/lib/components/ObjectManager/Objects.d.ts +22 -22
- package/src/lib/components/ObjectManager/Objects.spec.d.ts +1 -1
- package/src/lib/components/ObjectManager/index.d.ts +2 -2
- package/src/lib/components/Providers/Providers.d.ts +19 -19
- package/src/lib/components/Providers/Providers.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningList/ConfirmWarningDialog.d.ts +13 -13
- package/src/lib/components/PublicWarningList/ConfirmWarningDialog.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningList/PublicWarningList.d.ts +24 -27
- package/src/lib/components/PublicWarningList/PublicWarningList.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningList/PublicWarningList.stories.d.ts +35 -35
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.d.ts +3 -3
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.editorToggle.integration.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.filter.integration.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.integration.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.published.integration.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.stories.d.ts +9 -9
- package/src/lib/components/PublicWarningList/WarningListColumnContent.d.ts +10 -0
- package/src/lib/components/PublicWarningList/WarningListItem.d.ts +17 -26
- package/src/lib/components/PublicWarningList/WarningListItemMenu.d.ts +14 -0
- package/src/lib/components/PublicWarningList/WarningListItemSeperator.d.ts +8 -8
- package/src/lib/components/PublicWarningList/hooks.d.ts +19 -0
- package/src/lib/components/PublicWarningList/index.d.ts +2 -2
- package/src/lib/components/PublicWarningsForm/AreaField/AreaField.d.ts +9 -9
- package/src/lib/components/PublicWarningsForm/AreaField/AreaField.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/AreaField/AreaField.stories.d.ts +13 -13
- package/src/lib/components/PublicWarningsForm/AreaField/index.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.d.ts +5 -5
- package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.stories.d.ts +21 -21
- package/src/lib/components/PublicWarningsForm/DescriptionField/index.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/LevelField/LevelField.d.ts +22 -21
- package/src/lib/components/PublicWarningsForm/LevelField/LevelField.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/LevelField/index.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/PhenomenonField/PhenomenonField.d.ts +11 -11
- package/src/lib/components/PublicWarningsForm/PhenomenonField/PhenomenonField.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/PhenomenonField/index.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/ProbabilityField/ProbabilityField.d.ts +7 -7
- package/src/lib/components/PublicWarningsForm/ProbabilityField/ProbabilityField.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/ProbabilityField/index.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.d.ts +32 -32
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.stories.d.ts +29 -29
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.d.ts +10 -10
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.stories.d.ts +7 -7
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnectErrors.stories.d.ts +7 -7
- package/src/lib/components/PublicWarningsForm/ValidFromField/ValidFromField.d.ts +9 -9
- package/src/lib/components/PublicWarningsForm/ValidFromField/ValidFromField.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/ValidFromField/index.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/ValidUntilField/ValidUntilField.d.ts +11 -11
- package/src/lib/components/PublicWarningsForm/ValidUntilField/ValidUntilField.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/ValidUntilField/index.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/index.d.ts +2 -2
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.d.ts +21 -21
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.stories.d.ts +57 -57
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.d.ts +16 -16
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.stories.d.ts +8 -8
- package/src/lib/components/PublicWarningsFormDialog/WarningsAvatar.d.ts +8 -8
- package/src/lib/components/PublicWarningsFormDialog/index.d.ts +2 -2
- package/src/lib/components/WarningsMapView/WarningsMapView.d.ts +14 -14
- package/src/lib/components/WarningsMapView/WarningsMapView.spec.d.ts +1 -1
- package/src/lib/components/WarningsModuleProvider/WarningsModuleProvider.d.ts +7 -7
- package/src/lib/components/WarningsModuleProvider/index.d.ts +1 -1
- package/src/lib/store/config.d.ts +10 -10
- package/src/lib/store/drawings/listener.d.ts +2 -2
- package/src/lib/store/drawings/reducer.d.ts +13 -13
- package/src/lib/store/drawings/reducer.spec.d.ts +1 -1
- package/src/lib/store/drawings/selectors.d.ts +9 -9
- package/src/lib/store/drawings/selectors.spec.d.ts +1 -1
- package/src/lib/store/drawings/types.d.ts +33 -33
- package/src/lib/store/drawings/utils.d.ts +4 -4
- package/src/lib/store/publicWarningForm/listener.d.ts +2 -2
- package/src/lib/store/publicWarningForm/reducer.d.ts +67 -66
- package/src/lib/store/publicWarningForm/reducer.spec.d.ts +1 -1
- package/src/lib/store/publicWarningForm/selectors.d.ts +53 -53
- package/src/lib/store/publicWarningForm/selectors.spec.d.ts +1 -1
- package/src/lib/store/publicWarningForm/types.d.ts +41 -40
- package/src/lib/store/publicWarningForm/utils.d.ts +2 -2
- package/src/lib/store/publicWarnings/listener.d.ts +3 -3
- package/src/lib/store/publicWarnings/listener.spec.d.ts +1 -1
- package/src/lib/store/publicWarnings/reducer.d.ts +27 -27
- package/src/lib/store/publicWarnings/reducer.spec.d.ts +1 -1
- package/src/lib/store/publicWarnings/selectors.d.ts +36 -36
- package/src/lib/store/publicWarnings/selectors.spec.d.ts +1 -1
- package/src/lib/store/publicWarnings/types.d.ts +39 -39
- package/src/lib/store/publicWarnings/utils.d.ts +23 -23
- package/src/lib/store/publicWarnings/utils.spec.d.ts +1 -1
- package/src/lib/store/types.d.ts +9 -9
- package/src/lib/storybookUtils/defaultStorySettings.d.ts +18 -18
- package/src/lib/storybookUtils/storyComponents.d.ts +7 -7
- package/src/lib/storybookUtils/testUtils.d.ts +3 -3
- package/src/lib/utils/api.d.ts +30 -30
- package/src/lib/utils/api.spec.d.ts +1 -1
- package/src/lib/utils/constants.d.ts +1 -1
- package/src/lib/utils/fakeApi/index.d.ts +7 -7
- package/src/lib/utils/fakeApi.d.ts +6 -6
- package/src/lib/utils/fakeApi.spec.d.ts +1 -1
- package/src/lib/utils/i18n.d.ts +7 -7
- package/src/lib/utils/sig-airmet-util.d.ts +5 -5
- package/src/lib/utils/useFormDirty.d.ts +7 -7
- package/src/lib/utils/useFormDirty.spec.d.ts +1 -1
- package/src/lib/utils/warningUtils.d.ts +12 -7
- package/src/lib/utils/warningUtils.spec.d.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { uiTypes } from '@opengeoweb/store';
|
|
2
|
-
export declare const objectDialogType = uiTypes.DialogTypes.ObjectManager;
|
|
3
|
-
export declare const drawingDialogType = uiTypes.DialogTypes.DrawingTool;
|
|
4
|
-
export declare const areaObjectLoaderType = uiTypes.DialogTypes.AreaObjectLoader;
|
|
1
|
+
import { uiTypes } from '@opengeoweb/store';
|
|
2
|
+
export declare const objectDialogType = uiTypes.DialogTypes.ObjectManager;
|
|
3
|
+
export declare const drawingDialogType = uiTypes.DialogTypes.DrawingTool;
|
|
4
|
+
export declare const areaObjectLoaderType = uiTypes.DialogTypes.AreaObjectLoader;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WarningModuleStore } from '../types';
|
|
2
|
-
export declare const publicWarningFormListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("@reduxjs/toolkit").ThunkDispatch<WarningModuleStore, unknown, import("redux").AnyAction>, unknown>;
|
|
1
|
+
import { WarningModuleStore } from '../types';
|
|
2
|
+
export declare const publicWarningFormListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("@reduxjs/toolkit").ThunkDispatch<WarningModuleStore, unknown, import("redux").AnyAction>, unknown>;
|
|
@@ -1,66 +1,67 @@
|
|
|
1
|
-
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
|
-
import { AlertColor } from '@mui/material';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
1
|
+
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
|
+
import { AlertColor } from '@mui/material';
|
|
3
|
+
import { snackbarTypes } from '@opengeoweb/snackbar';
|
|
4
|
+
import { DrawingListItem } from '../drawings/types';
|
|
5
|
+
import { Area, PublicWarning } from './types';
|
|
6
|
+
export type FormAction = '' | 'saving' | 'publishing' | 'readonly';
|
|
7
|
+
export interface FormError {
|
|
8
|
+
severity?: AlertColor;
|
|
9
|
+
message: string;
|
|
10
|
+
}
|
|
11
|
+
export interface PublicWarningFormState {
|
|
12
|
+
object?: DrawingListItem;
|
|
13
|
+
publicWarning?: PublicWarning;
|
|
14
|
+
formState?: FormAction;
|
|
15
|
+
error?: FormError;
|
|
16
|
+
selectedPublicWarningId?: string;
|
|
17
|
+
isFormDirty?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const TAKEOVER_MESSAGE = "You are no longer the editor of this warning";
|
|
20
|
+
export declare const initialState: PublicWarningFormState;
|
|
21
|
+
export declare const reducer: import("redux").Reducer<PublicWarningFormState>;
|
|
22
|
+
export declare const publicWarningFormActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
23
|
+
setFormValues: (draft: Draft<PublicWarningFormState>, action: PayloadAction<{
|
|
24
|
+
object?: DrawingListItem;
|
|
25
|
+
publicWarning?: PublicWarning;
|
|
26
|
+
formState?: FormAction;
|
|
27
|
+
}>) => void;
|
|
28
|
+
addArea: (draft: Draft<PublicWarningFormState>, action: PayloadAction<{
|
|
29
|
+
area: Area;
|
|
30
|
+
}>) => void;
|
|
31
|
+
removeArea: (draft: Draft<PublicWarningFormState>, action: PayloadAction<{
|
|
32
|
+
area: Area;
|
|
33
|
+
}>) => void;
|
|
34
|
+
openPublicWarningFormDialog: (draft: Draft<PublicWarningFormState>, action: PayloadAction<{
|
|
35
|
+
object?: DrawingListItem;
|
|
36
|
+
formState?: FormAction;
|
|
37
|
+
publicWarning?: PublicWarning;
|
|
38
|
+
}>) => void;
|
|
39
|
+
toggleEditorWarning: (draft: Draft<PublicWarningFormState>, action: PayloadAction<{
|
|
40
|
+
warningId: string;
|
|
41
|
+
isEditor: boolean;
|
|
42
|
+
username: string;
|
|
43
|
+
}>) => void;
|
|
44
|
+
toggleEditorWarningSuccess: (draft: Draft<PublicWarningFormState>, action: PayloadAction<{
|
|
45
|
+
isEditor: boolean;
|
|
46
|
+
username: string;
|
|
47
|
+
message: snackbarTypes.SnackbarMessage;
|
|
48
|
+
}>) => void;
|
|
49
|
+
publishWarning: (draft: Draft<PublicWarningFormState>, action: PayloadAction<{
|
|
50
|
+
publicWarning: PublicWarning;
|
|
51
|
+
}>) => void;
|
|
52
|
+
publishWarningSuccess: (draft: Draft<PublicWarningFormState>, action: PayloadAction<{
|
|
53
|
+
publicWarning: PublicWarning;
|
|
54
|
+
message: snackbarTypes.SnackbarMessage;
|
|
55
|
+
}>) => void;
|
|
56
|
+
saveWarning: (draft: Draft<PublicWarningFormState>, action: PayloadAction<{
|
|
57
|
+
publicWarning: PublicWarning;
|
|
58
|
+
}>) => void;
|
|
59
|
+
saveWarningSuccess: (draft: Draft<PublicWarningFormState>, action: PayloadAction<{
|
|
60
|
+
publicWarning: PublicWarning;
|
|
61
|
+
message: snackbarTypes.SnackbarMessage;
|
|
62
|
+
}>) => void;
|
|
63
|
+
setFormError: (draft: Draft<PublicWarningFormState>, action: PayloadAction<FormError>) => void;
|
|
64
|
+
setFormDirty: (draft: Draft<PublicWarningFormState>, action: PayloadAction<{
|
|
65
|
+
isFormDirty: boolean;
|
|
66
|
+
}>) => void;
|
|
67
|
+
}, "publicWarningForm">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { WarningModuleStore } from '../types';
|
|
2
|
-
import { PublicWarningFormState } from './reducer';
|
|
3
|
-
export declare const getPublicWarningStore: (store: WarningModuleStore) => PublicWarningFormState;
|
|
4
|
-
export declare const getPublicWarningObject: ((state: WarningModuleStore) => import("../drawings/types").DrawingListItem | undefined) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => import("../drawings/types").DrawingListItem | undefined, {
|
|
5
|
-
clearCache: () => void;
|
|
6
|
-
}> & {
|
|
7
|
-
clearCache: () => void;
|
|
8
|
-
};
|
|
9
|
-
export declare const getPublicWarning: ((state: WarningModuleStore) => import("./types").PublicWarning | undefined) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => import("./types").PublicWarning | undefined, {
|
|
10
|
-
clearCache: () => void;
|
|
11
|
-
}> & {
|
|
12
|
-
clearCache: () => void;
|
|
13
|
-
};
|
|
14
|
-
export declare const getPublicWarningStatus: ((state: WarningModuleStore) => import("./types").PublicWarningStatus | undefined) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => import("./types").PublicWarningStatus | undefined, {
|
|
15
|
-
clearCache: () => void;
|
|
16
|
-
}> & {
|
|
17
|
-
clearCache: () => void;
|
|
18
|
-
};
|
|
19
|
-
export declare const getPublicWarningEditor: ((state: WarningModuleStore) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => string | undefined, {
|
|
20
|
-
clearCache: () => void;
|
|
21
|
-
}> & {
|
|
22
|
-
clearCache: () => void;
|
|
23
|
-
};
|
|
24
|
-
export declare const getPublicWarningId: ((state: WarningModuleStore) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => string | undefined, {
|
|
25
|
-
clearCache: () => void;
|
|
26
|
-
}> & {
|
|
27
|
-
clearCache: () => void;
|
|
28
|
-
};
|
|
29
|
-
export declare const getPublicWarningAreas: ((state: WarningModuleStore) => import("./types").Area[]) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => import("./types").Area[], {
|
|
30
|
-
clearCache: () => void;
|
|
31
|
-
}> & {
|
|
32
|
-
clearCache: () => void;
|
|
33
|
-
};
|
|
34
|
-
export declare const getPublicWarningFormState: ((state: WarningModuleStore) => "" | "saving" | "publishing" | "readonly") & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => "" | "saving" | "publishing" | "readonly", {
|
|
35
|
-
clearCache: () => void;
|
|
36
|
-
}> & {
|
|
37
|
-
clearCache: () => void;
|
|
38
|
-
};
|
|
39
|
-
export declare const getPublicWarningFormError: ((state: WarningModuleStore) => import("./reducer").FormError | undefined) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => import("./reducer").FormError | undefined, {
|
|
40
|
-
clearCache: () => void;
|
|
41
|
-
}> & {
|
|
42
|
-
clearCache: () => void;
|
|
43
|
-
};
|
|
44
|
-
export declare const getSelectedPublicWarningId: ((state: WarningModuleStore) => string) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => string, {
|
|
45
|
-
clearCache: () => void;
|
|
46
|
-
}> & {
|
|
47
|
-
clearCache: () => void;
|
|
48
|
-
};
|
|
49
|
-
export declare const getSelectedPublicIsFormDirty: ((state: WarningModuleStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => boolean, {
|
|
50
|
-
clearCache: () => void;
|
|
51
|
-
}> & {
|
|
52
|
-
clearCache: () => void;
|
|
53
|
-
};
|
|
1
|
+
import { WarningModuleStore } from '../types';
|
|
2
|
+
import { PublicWarningFormState } from './reducer';
|
|
3
|
+
export declare const getPublicWarningStore: (store: WarningModuleStore) => PublicWarningFormState;
|
|
4
|
+
export declare const getPublicWarningObject: ((state: WarningModuleStore) => import("../drawings/types").DrawingListItem | undefined) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => import("../drawings/types").DrawingListItem | undefined, {
|
|
5
|
+
clearCache: () => void;
|
|
6
|
+
}> & {
|
|
7
|
+
clearCache: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const getPublicWarning: ((state: WarningModuleStore) => import("./types").PublicWarning | undefined) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => import("./types").PublicWarning | undefined, {
|
|
10
|
+
clearCache: () => void;
|
|
11
|
+
}> & {
|
|
12
|
+
clearCache: () => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const getPublicWarningStatus: ((state: WarningModuleStore) => import("./types").PublicWarningStatus | undefined) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => import("./types").PublicWarningStatus | undefined, {
|
|
15
|
+
clearCache: () => void;
|
|
16
|
+
}> & {
|
|
17
|
+
clearCache: () => void;
|
|
18
|
+
};
|
|
19
|
+
export declare const getPublicWarningEditor: ((state: WarningModuleStore) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => string | undefined, {
|
|
20
|
+
clearCache: () => void;
|
|
21
|
+
}> & {
|
|
22
|
+
clearCache: () => void;
|
|
23
|
+
};
|
|
24
|
+
export declare const getPublicWarningId: ((state: WarningModuleStore) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => string | undefined, {
|
|
25
|
+
clearCache: () => void;
|
|
26
|
+
}> & {
|
|
27
|
+
clearCache: () => void;
|
|
28
|
+
};
|
|
29
|
+
export declare const getPublicWarningAreas: ((state: WarningModuleStore) => import("./types").Area[]) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => import("./types").Area[], {
|
|
30
|
+
clearCache: () => void;
|
|
31
|
+
}> & {
|
|
32
|
+
clearCache: () => void;
|
|
33
|
+
};
|
|
34
|
+
export declare const getPublicWarningFormState: ((state: WarningModuleStore) => "" | "saving" | "publishing" | "readonly") & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => "" | "saving" | "publishing" | "readonly", {
|
|
35
|
+
clearCache: () => void;
|
|
36
|
+
}> & {
|
|
37
|
+
clearCache: () => void;
|
|
38
|
+
};
|
|
39
|
+
export declare const getPublicWarningFormError: ((state: WarningModuleStore) => import("./reducer").FormError | undefined) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => import("./reducer").FormError | undefined, {
|
|
40
|
+
clearCache: () => void;
|
|
41
|
+
}> & {
|
|
42
|
+
clearCache: () => void;
|
|
43
|
+
};
|
|
44
|
+
export declare const getSelectedPublicWarningId: ((state: WarningModuleStore) => string) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => string, {
|
|
45
|
+
clearCache: () => void;
|
|
46
|
+
}> & {
|
|
47
|
+
clearCache: () => void;
|
|
48
|
+
};
|
|
49
|
+
export declare const getSelectedPublicIsFormDirty: ((state: WarningModuleStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => boolean, {
|
|
50
|
+
clearCache: () => void;
|
|
51
|
+
}> & {
|
|
52
|
+
clearCache: () => void;
|
|
53
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
import { ProductStatus } from '@opengeoweb/api';
|
|
2
|
-
export interface Area {
|
|
3
|
-
objectName: string;
|
|
4
|
-
geoJSON: GeoJSON.FeatureCollection;
|
|
5
|
-
}
|
|
6
|
-
export interface PublicWarningDetail {
|
|
7
|
-
id?: string;
|
|
8
|
-
phenomenon: string;
|
|
9
|
-
areas: Area[];
|
|
10
|
-
validFrom: string;
|
|
11
|
-
validUntil: string;
|
|
12
|
-
level: string;
|
|
13
|
-
probability: number;
|
|
14
|
-
descriptionOriginal: string;
|
|
15
|
-
descriptionTranslation: string;
|
|
16
|
-
domain?: string;
|
|
17
|
-
warningProposalSource?: string;
|
|
18
|
-
authority?: string;
|
|
19
|
-
type?: number;
|
|
20
|
-
warning_handle_uuid?: string;
|
|
21
|
-
proposal_id?: string;
|
|
22
|
-
linked_to_id?: string;
|
|
23
|
-
incident?: string;
|
|
24
|
-
}
|
|
25
|
-
export declare enum PublicWarningStatus {
|
|
26
|
-
DRAFT = "DRAFT",
|
|
27
|
-
DRAFT_PUBLISHED = "DRAFT_PUBLISHED",
|
|
28
|
-
PUBLISHED = "PUBLISHED",
|
|
29
|
-
TODO = "TODO",
|
|
30
|
-
EXPIRED = "EXPIRED",
|
|
31
|
-
IGNORED = "IGNORED"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
1
|
+
import { ProductStatus } from '@opengeoweb/api';
|
|
2
|
+
export interface Area {
|
|
3
|
+
objectName: string;
|
|
4
|
+
geoJSON: GeoJSON.FeatureCollection;
|
|
5
|
+
}
|
|
6
|
+
export interface PublicWarningDetail {
|
|
7
|
+
id?: string;
|
|
8
|
+
phenomenon: string;
|
|
9
|
+
areas: Area[];
|
|
10
|
+
validFrom: string;
|
|
11
|
+
validUntil: string;
|
|
12
|
+
level: string;
|
|
13
|
+
probability: number;
|
|
14
|
+
descriptionOriginal: string;
|
|
15
|
+
descriptionTranslation: string;
|
|
16
|
+
domain?: string;
|
|
17
|
+
warningProposalSource?: string;
|
|
18
|
+
authority?: string;
|
|
19
|
+
type?: number;
|
|
20
|
+
warning_handle_uuid?: string;
|
|
21
|
+
proposal_id?: string;
|
|
22
|
+
linked_to_id?: string;
|
|
23
|
+
incident?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare enum PublicWarningStatus {
|
|
26
|
+
DRAFT = "DRAFT",
|
|
27
|
+
DRAFT_PUBLISHED = "DRAFT_PUBLISHED",
|
|
28
|
+
PUBLISHED = "PUBLISHED",
|
|
29
|
+
TODO = "TODO",
|
|
30
|
+
EXPIRED = "EXPIRED",
|
|
31
|
+
IGNORED = "IGNORED",
|
|
32
|
+
WITHDRAWN = "WITHDRAWN"
|
|
33
|
+
}
|
|
34
|
+
export interface PublicWarning {
|
|
35
|
+
status?: PublicWarningStatus;
|
|
36
|
+
productStatus?: ProductStatus;
|
|
37
|
+
editor?: string;
|
|
38
|
+
warningDetail: PublicWarningDetail;
|
|
39
|
+
id?: string;
|
|
40
|
+
lastUpdatedTime?: string;
|
|
41
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { uiTypes } from '@opengeoweb/store';
|
|
2
|
-
export declare const publicWarningDialogType = uiTypes.DialogTypes.PublicWarnings;
|
|
1
|
+
import { uiTypes } from '@opengeoweb/store';
|
|
2
|
+
export declare const publicWarningDialogType = uiTypes.DialogTypes.PublicWarnings;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { WarningModuleStore } from '../types';
|
|
2
|
-
export declare const getLastUpdatedTimeFormatted: () => string;
|
|
3
|
-
export declare const publicWarningsListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("@reduxjs/toolkit").ThunkDispatch<WarningModuleStore, unknown, import("redux").AnyAction>, unknown>;
|
|
1
|
+
import { WarningModuleStore } from '../types';
|
|
2
|
+
export declare const getLastUpdatedTimeFormatted: () => string;
|
|
3
|
+
export declare const publicWarningsListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("@reduxjs/toolkit").ThunkDispatch<WarningModuleStore, unknown, import("redux").AnyAction>, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
|
-
import { WarningListFilter, PublicWarningsState, ToggleFilterPayload, ToggleFilterOptionPayload, ToggleAllFiltersPayload } from './types';
|
|
3
|
-
import { PublicWarning } from '../publicWarningForm/types';
|
|
4
|
-
export declare const publicWarningsAdapter: import("@reduxjs/toolkit").EntityAdapter<PublicWarning>;
|
|
5
|
-
export declare const warningListFilterAdapter: import("@reduxjs/toolkit").EntityAdapter<WarningListFilter>;
|
|
6
|
-
export declare const initialState: PublicWarningsState;
|
|
7
|
-
export declare const reducer: import("redux").Reducer<PublicWarningsState
|
|
8
|
-
export declare const publicWarningActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
9
|
-
fetchWarnings: (draft: Draft<PublicWarningsState>) => void;
|
|
10
|
-
fetchWarningsSuccess: (draft: Draft<PublicWarningsState>, action: PayloadAction<{
|
|
11
|
-
warnings: PublicWarning[];
|
|
12
|
-
lastUpdatedTime: string;
|
|
13
|
-
}>) => void;
|
|
14
|
-
fetchWarningsError: (draft: Draft<PublicWarningsState>, action: PayloadAction<{
|
|
15
|
-
error: {
|
|
16
|
-
name: string;
|
|
17
|
-
message: string;
|
|
18
|
-
};
|
|
19
|
-
}>) => void;
|
|
20
|
-
setWarningListFilters: (draft: Draft<PublicWarningsState>, action: PayloadAction<{
|
|
21
|
-
warnings: PublicWarning[];
|
|
22
|
-
}>) => void;
|
|
23
|
-
toggleFilter: (draft: Draft<PublicWarningsState>, action: PayloadAction<ToggleFilterPayload>) => void;
|
|
24
|
-
toggleOption: (draft: Draft<PublicWarningsState>, action: PayloadAction<ToggleFilterOptionPayload>) => void;
|
|
25
|
-
enableOnlyOneFilterOption: (draft: Draft<PublicWarningsState>, action: PayloadAction<ToggleFilterOptionPayload>) => void;
|
|
26
|
-
toggleAllFilters: (draft: Draft<PublicWarningsState>, action: PayloadAction<ToggleAllFiltersPayload>) => void;
|
|
27
|
-
}, "publicWarnings">;
|
|
1
|
+
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
|
+
import { WarningListFilter, PublicWarningsState, ToggleFilterPayload, ToggleFilterOptionPayload, ToggleAllFiltersPayload } from './types';
|
|
3
|
+
import { PublicWarning } from '../publicWarningForm/types';
|
|
4
|
+
export declare const publicWarningsAdapter: import("@reduxjs/toolkit").EntityAdapter<PublicWarning>;
|
|
5
|
+
export declare const warningListFilterAdapter: import("@reduxjs/toolkit").EntityAdapter<WarningListFilter>;
|
|
6
|
+
export declare const initialState: PublicWarningsState;
|
|
7
|
+
export declare const reducer: import("redux").Reducer<PublicWarningsState>;
|
|
8
|
+
export declare const publicWarningActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
9
|
+
fetchWarnings: (draft: Draft<PublicWarningsState>) => void;
|
|
10
|
+
fetchWarningsSuccess: (draft: Draft<PublicWarningsState>, action: PayloadAction<{
|
|
11
|
+
warnings: PublicWarning[];
|
|
12
|
+
lastUpdatedTime: string;
|
|
13
|
+
}>) => void;
|
|
14
|
+
fetchWarningsError: (draft: Draft<PublicWarningsState>, action: PayloadAction<{
|
|
15
|
+
error: {
|
|
16
|
+
name: string;
|
|
17
|
+
message: string;
|
|
18
|
+
};
|
|
19
|
+
}>) => void;
|
|
20
|
+
setWarningListFilters: (draft: Draft<PublicWarningsState>, action: PayloadAction<{
|
|
21
|
+
warnings: PublicWarning[];
|
|
22
|
+
}>) => void;
|
|
23
|
+
toggleFilter: (draft: Draft<PublicWarningsState>, action: PayloadAction<ToggleFilterPayload>) => void;
|
|
24
|
+
toggleOption: (draft: Draft<PublicWarningsState>, action: PayloadAction<ToggleFilterOptionPayload>) => void;
|
|
25
|
+
enableOnlyOneFilterOption: (draft: Draft<PublicWarningsState>, action: PayloadAction<ToggleFilterOptionPayload>) => void;
|
|
26
|
+
toggleAllFilters: (draft: Draft<PublicWarningsState>, action: PayloadAction<ToggleAllFiltersPayload>) => void;
|
|
27
|
+
}, "publicWarnings">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { OptionListItem, PublicWarningsState, WarningListFilter } from './types';
|
|
2
|
-
import { WarningModuleStore } from '../types';
|
|
3
|
-
import { PublicWarning } from '../publicWarningForm/types';
|
|
4
|
-
export declare const getPublicWarningsStore: (store: WarningModuleStore) => PublicWarningsState;
|
|
5
|
-
export declare const selectAllPublicWarnings: (state: WarningModuleStore) => PublicWarning[];
|
|
6
|
-
export declare const isPublicWarningsLoading: ((state: WarningModuleStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: PublicWarningsState) => boolean, {
|
|
7
|
-
clearCache: () => void;
|
|
8
|
-
}> & {
|
|
9
|
-
clearCache: () => void;
|
|
10
|
-
};
|
|
11
|
-
export declare const getPublicWarningsError: ((state: WarningModuleStore) => import("./types").PublicWarningError | undefined) & import("reselect").OutputSelectorFields<(args_0: PublicWarningsState) => import("./types").PublicWarningError | undefined, {
|
|
12
|
-
clearCache: () => void;
|
|
13
|
-
}> & {
|
|
14
|
-
clearCache: () => void;
|
|
15
|
-
};
|
|
16
|
-
export declare const getPublicWarningsLastUpdatedTime: ((state: WarningModuleStore) => string) & import("reselect").OutputSelectorFields<(args_0: PublicWarningsState) => string, {
|
|
17
|
-
clearCache: () => void;
|
|
18
|
-
}> & {
|
|
19
|
-
clearCache: () => void;
|
|
20
|
-
};
|
|
21
|
-
export declare const selectAllFilters: (state: WarningModuleStore) => WarningListFilter[], selectAllFilterIds: (state: WarningModuleStore) => import("@reduxjs/toolkit").EntityId[];
|
|
22
|
-
export declare const getIsAllSelected: ((state: WarningModuleStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: WarningListFilter[]) => boolean, {
|
|
23
|
-
clearCache: () => void;
|
|
24
|
-
}> & {
|
|
25
|
-
clearCache: () => void;
|
|
26
|
-
};
|
|
27
|
-
export declare const getSelectedFilterOptions: ((state: WarningModuleStore) => OptionListItem[]) & import("reselect").OutputSelectorFields<(args_0: WarningListFilter[]) => OptionListItem[], {
|
|
28
|
-
clearCache: () => void;
|
|
29
|
-
}> & {
|
|
30
|
-
clearCache: () => void;
|
|
31
|
-
};
|
|
32
|
-
export declare const getFilteredWarnings: ((state: WarningModuleStore) => PublicWarning[]) & import("reselect").OutputSelectorFields<(args_0: PublicWarning[], args_1: boolean, args_2: OptionListItem[], args_3: import("@reduxjs/toolkit").EntityId[]) => PublicWarning[], {
|
|
33
|
-
clearCache: () => void;
|
|
34
|
-
}> & {
|
|
35
|
-
clearCache: () => void;
|
|
36
|
-
};
|
|
1
|
+
import { OptionListItem, PublicWarningsState, WarningListFilter } from './types';
|
|
2
|
+
import { WarningModuleStore } from '../types';
|
|
3
|
+
import { PublicWarning } from '../publicWarningForm/types';
|
|
4
|
+
export declare const getPublicWarningsStore: (store: WarningModuleStore) => PublicWarningsState;
|
|
5
|
+
export declare const selectAllPublicWarnings: (state: WarningModuleStore) => PublicWarning[];
|
|
6
|
+
export declare const isPublicWarningsLoading: ((state: WarningModuleStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: PublicWarningsState) => boolean, {
|
|
7
|
+
clearCache: () => void;
|
|
8
|
+
}> & {
|
|
9
|
+
clearCache: () => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const getPublicWarningsError: ((state: WarningModuleStore) => import("./types").PublicWarningError | undefined) & import("reselect").OutputSelectorFields<(args_0: PublicWarningsState) => import("./types").PublicWarningError | undefined, {
|
|
12
|
+
clearCache: () => void;
|
|
13
|
+
}> & {
|
|
14
|
+
clearCache: () => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const getPublicWarningsLastUpdatedTime: ((state: WarningModuleStore) => string) & import("reselect").OutputSelectorFields<(args_0: PublicWarningsState) => string, {
|
|
17
|
+
clearCache: () => void;
|
|
18
|
+
}> & {
|
|
19
|
+
clearCache: () => void;
|
|
20
|
+
};
|
|
21
|
+
export declare const selectAllFilters: (state: WarningModuleStore) => WarningListFilter[], selectAllFilterIds: (state: WarningModuleStore) => import("@reduxjs/toolkit").EntityId[];
|
|
22
|
+
export declare const getIsAllSelected: ((state: WarningModuleStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: WarningListFilter[]) => boolean, {
|
|
23
|
+
clearCache: () => void;
|
|
24
|
+
}> & {
|
|
25
|
+
clearCache: () => void;
|
|
26
|
+
};
|
|
27
|
+
export declare const getSelectedFilterOptions: ((state: WarningModuleStore) => OptionListItem[]) & import("reselect").OutputSelectorFields<(args_0: WarningListFilter[]) => OptionListItem[], {
|
|
28
|
+
clearCache: () => void;
|
|
29
|
+
}> & {
|
|
30
|
+
clearCache: () => void;
|
|
31
|
+
};
|
|
32
|
+
export declare const getFilteredWarnings: ((state: WarningModuleStore) => PublicWarning[]) & import("reselect").OutputSelectorFields<(args_0: PublicWarning[], args_1: boolean, args_2: OptionListItem[], args_3: import("@reduxjs/toolkit").EntityId[]) => PublicWarning[], {
|
|
33
|
+
clearCache: () => void;
|
|
34
|
+
}> & {
|
|
35
|
+
clearCache: () => void;
|
|
36
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { EntityState } from '@reduxjs/toolkit';
|
|
2
|
-
import { FilterListItemProps } from '@opengeoweb/shared';
|
|
3
|
-
import { PublicWarning } from '../publicWarningForm/types';
|
|
4
|
-
export interface FilterTranslation {
|
|
5
|
-
translationKey: string;
|
|
6
|
-
key: string;
|
|
7
|
-
isAviation?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface WarningListFilter {
|
|
10
|
-
translationKey: string;
|
|
11
|
-
id: string;
|
|
12
|
-
filterList: FilterListItemProps[];
|
|
13
|
-
}
|
|
14
|
-
export interface PublicWarningError {
|
|
15
|
-
name: string;
|
|
16
|
-
message: string;
|
|
17
|
-
}
|
|
18
|
-
export interface PublicWarningsState {
|
|
19
|
-
warnings: EntityState<PublicWarning>;
|
|
20
|
-
isLoading: boolean;
|
|
21
|
-
lastUpdatedTime: string;
|
|
22
|
-
error?: PublicWarningError;
|
|
23
|
-
filters: EntityState<WarningListFilter>;
|
|
24
|
-
}
|
|
25
|
-
export interface ToggleFilterPayload {
|
|
26
|
-
filterId: string;
|
|
27
|
-
isChecked: boolean;
|
|
28
|
-
}
|
|
29
|
-
export interface ToggleFilterOptionPayload {
|
|
30
|
-
filterId: string;
|
|
31
|
-
optionId: string;
|
|
32
|
-
}
|
|
33
|
-
export interface ToggleAllFiltersPayload {
|
|
34
|
-
isChecked: boolean;
|
|
35
|
-
}
|
|
36
|
-
export interface OptionListItem {
|
|
37
|
-
filterId: string;
|
|
38
|
-
optionId: string;
|
|
39
|
-
}
|
|
1
|
+
import { EntityState } from '@reduxjs/toolkit';
|
|
2
|
+
import { FilterListItemProps } from '@opengeoweb/shared';
|
|
3
|
+
import { PublicWarning } from '../publicWarningForm/types';
|
|
4
|
+
export interface FilterTranslation {
|
|
5
|
+
translationKey: string;
|
|
6
|
+
key: string;
|
|
7
|
+
isAviation?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface WarningListFilter {
|
|
10
|
+
translationKey: string;
|
|
11
|
+
id: string;
|
|
12
|
+
filterList: FilterListItemProps[];
|
|
13
|
+
}
|
|
14
|
+
export interface PublicWarningError {
|
|
15
|
+
name: string;
|
|
16
|
+
message: string;
|
|
17
|
+
}
|
|
18
|
+
export interface PublicWarningsState {
|
|
19
|
+
warnings: EntityState<PublicWarning>;
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
lastUpdatedTime: string;
|
|
22
|
+
error?: PublicWarningError;
|
|
23
|
+
filters: EntityState<WarningListFilter>;
|
|
24
|
+
}
|
|
25
|
+
export interface ToggleFilterPayload {
|
|
26
|
+
filterId: string;
|
|
27
|
+
isChecked: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface ToggleFilterOptionPayload {
|
|
30
|
+
filterId: string;
|
|
31
|
+
optionId: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ToggleAllFiltersPayload {
|
|
34
|
+
isChecked: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface OptionListItem {
|
|
37
|
+
filterId: string;
|
|
38
|
+
optionId: string;
|
|
39
|
+
}
|