@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,27 +1,24 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PublicWarning } from '../../store/publicWarningForm/types';
|
|
3
|
-
import { WarningListFilter } from '../../store/publicWarnings/types';
|
|
4
|
-
interface WarningStatusProps {
|
|
5
|
-
warnings: PublicWarning[];
|
|
6
|
-
onSelectWarning?: (warning: PublicWarning) => void;
|
|
7
|
-
onEditWarning?: (warning: PublicWarning) => void;
|
|
8
|
-
onDeleteWarning?: (warningId: string, warningEditor?: string) => void;
|
|
9
|
-
onDeleteReviewWarning?: (warning: PublicWarning) => void;
|
|
10
|
-
onExpireWarning?: (warning: PublicWarning) => void;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
setShowAirmet?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
26
|
-
} & WarningStatusProps>;
|
|
27
|
-
export default PublicWarningList;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PublicWarning } from '../../store/publicWarningForm/types';
|
|
3
|
+
import { WarningListFilter } from '../../store/publicWarnings/types';
|
|
4
|
+
interface WarningStatusProps {
|
|
5
|
+
warnings: PublicWarning[];
|
|
6
|
+
onSelectWarning?: (warning: PublicWarning) => void;
|
|
7
|
+
onEditWarning?: (warning: PublicWarning) => void;
|
|
8
|
+
onDeleteWarning?: (warningId: string, warningEditor?: string) => void;
|
|
9
|
+
onDeleteReviewWarning?: (warning: PublicWarning) => void;
|
|
10
|
+
onExpireWarning?: (warning: PublicWarning) => void;
|
|
11
|
+
onWithdrawWarning?: (warning: PublicWarning) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const PublicWarningList: React.FC<{
|
|
14
|
+
isLoading?: boolean;
|
|
15
|
+
error?: Error;
|
|
16
|
+
selectedPublicWarningId?: string;
|
|
17
|
+
lastUpdatedTime?: string;
|
|
18
|
+
onCreateWarning?: () => void;
|
|
19
|
+
onRefetchWarnings?: () => void;
|
|
20
|
+
filters?: WarningListFilter[];
|
|
21
|
+
onClickAllChip?: (isChecked: boolean) => void;
|
|
22
|
+
isAllChipSelected?: boolean;
|
|
23
|
+
} & WarningStatusProps>;
|
|
24
|
+
export default PublicWarningList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const PublicWarningListLight: {
|
|
7
|
-
(): React.ReactElement;
|
|
8
|
-
tags: string[];
|
|
9
|
-
parameters: {
|
|
10
|
-
zeplinLink: {
|
|
11
|
-
name: string;
|
|
12
|
-
link: string;
|
|
13
|
-
}[];
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export declare const PublicWarningListDark: {
|
|
17
|
-
(): React.ReactElement;
|
|
18
|
-
tags: string[];
|
|
19
|
-
parameters: {
|
|
20
|
-
zeplinLink: {
|
|
21
|
-
name: string;
|
|
22
|
-
link: string;
|
|
23
|
-
}[];
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export declare const PublicWarningListError: () => React.ReactElement;
|
|
27
|
-
export declare const PublicWarningListLoading: () => React.ReactElement;
|
|
28
|
-
export declare const PublicWarningListSmallLight: {
|
|
29
|
-
(): React.ReactElement;
|
|
30
|
-
tags: string[];
|
|
31
|
-
};
|
|
32
|
-
export declare const PublicWarningListSmallDark: {
|
|
33
|
-
(): React.ReactElement;
|
|
34
|
-
tags: string[];
|
|
35
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const PublicWarningListLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
tags: string[];
|
|
9
|
+
parameters: {
|
|
10
|
+
zeplinLink: {
|
|
11
|
+
name: string;
|
|
12
|
+
link: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const PublicWarningListDark: {
|
|
17
|
+
(): React.ReactElement;
|
|
18
|
+
tags: string[];
|
|
19
|
+
parameters: {
|
|
20
|
+
zeplinLink: {
|
|
21
|
+
name: string;
|
|
22
|
+
link: string;
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const PublicWarningListError: () => React.ReactElement;
|
|
27
|
+
export declare const PublicWarningListLoading: () => React.ReactElement;
|
|
28
|
+
export declare const PublicWarningListSmallLight: {
|
|
29
|
+
(): React.ReactElement;
|
|
30
|
+
tags: string[];
|
|
31
|
+
};
|
|
32
|
+
export declare const PublicWarningListSmallDark: {
|
|
33
|
+
(): React.ReactElement;
|
|
34
|
+
tags: string[];
|
|
35
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const PublicWarningListConnect: React.FC;
|
|
3
|
-
export default PublicWarningListConnect;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const PublicWarningListConnect: React.FC;
|
|
3
|
+
export default PublicWarningListConnect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/src/lib/components/PublicWarningList/PublicWarningListConnect.filter.integration.spec.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const PublicWarningListLight: () => React.ReactElement;
|
|
7
|
-
export declare const PublicWarningListError: () => React.ReactElement;
|
|
8
|
-
export declare const PublicWarningListErrorDeleteWarning: () => React.ReactElement;
|
|
9
|
-
export declare const PublicWarningListDifferentEditors: () => React.ReactElement;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const PublicWarningListLight: () => React.ReactElement;
|
|
7
|
+
export declare const PublicWarningListError: () => React.ReactElement;
|
|
8
|
+
export declare const PublicWarningListErrorDeleteWarning: () => React.ReactElement;
|
|
9
|
+
export declare const PublicWarningListDifferentEditors: () => React.ReactElement;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Grid2Props } from '@mui/material';
|
|
3
|
+
import { PublicWarningStatus } from '../../store/publicWarningForm/types';
|
|
4
|
+
export declare const WarningListColumnContent: React.FC<Grid2Props & {
|
|
5
|
+
title?: string;
|
|
6
|
+
status: PublicWarningStatus;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
width?: number;
|
|
9
|
+
}>;
|
|
10
|
+
export default WarningListColumnContent;
|
|
@@ -1,26 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { PublicWarning
|
|
4
|
-
|
|
5
|
-
warning: PublicWarning;
|
|
6
|
-
onSelectWarning?: (warning: PublicWarning) => void;
|
|
7
|
-
onEditWarning?: (warning: PublicWarning) => void;
|
|
8
|
-
onDeleteWarning?: (warningId: string, warningEditor?: string) => void;
|
|
9
|
-
onDeleteReviewWarning?: (warning: PublicWarning) => void;
|
|
10
|
-
onExpireWarning?: (warning: PublicWarning) => void;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
children?: React.ReactNode;
|
|
19
|
-
width?: number;
|
|
20
|
-
}>;
|
|
21
|
-
declare const WarningListItem: React.FC<{
|
|
22
|
-
warning: PublicWarning;
|
|
23
|
-
status: PublicWarningStatus;
|
|
24
|
-
activeWarningId: string;
|
|
25
|
-
} & WarningStatusProps>;
|
|
26
|
-
export default WarningListItem;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ListItemProps } from '@mui/material';
|
|
3
|
+
import { PublicWarning } from '../../store/publicWarningForm/types';
|
|
4
|
+
interface WarningStatusProps extends ListItemProps {
|
|
5
|
+
warning: PublicWarning;
|
|
6
|
+
onSelectWarning?: (warning: PublicWarning) => void;
|
|
7
|
+
onEditWarning?: (warning: PublicWarning) => void;
|
|
8
|
+
onDeleteWarning?: (warningId: string, warningEditor?: string) => void;
|
|
9
|
+
onDeleteReviewWarning?: (warning: PublicWarning) => void;
|
|
10
|
+
onExpireWarning?: (warning: PublicWarning) => void;
|
|
11
|
+
onWithdrawWarning?: (warning: PublicWarning) => void;
|
|
12
|
+
}
|
|
13
|
+
declare const WarningListItem: React.FC<{
|
|
14
|
+
warning: PublicWarning;
|
|
15
|
+
activeWarningId: string;
|
|
16
|
+
} & WarningStatusProps>;
|
|
17
|
+
export default WarningListItem;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MenuItemType } from '@opengeoweb/shared';
|
|
2
|
+
import { TFunction } from 'i18next';
|
|
3
|
+
import { PublicWarning } from '../../store/publicWarningForm/types';
|
|
4
|
+
interface WarningListItemMenuProps {
|
|
5
|
+
warning: PublicWarning;
|
|
6
|
+
onEditWarning?: (warning: PublicWarning) => void;
|
|
7
|
+
onDeleteWarning?: (warningId: string, warningEditor?: string) => void;
|
|
8
|
+
onDeleteReviewWarning?: (warning: PublicWarning) => void;
|
|
9
|
+
onExpireWarning?: (warning: PublicWarning) => void;
|
|
10
|
+
onWithdrawWarning?: (warning: PublicWarning) => void;
|
|
11
|
+
t: TFunction;
|
|
12
|
+
}
|
|
13
|
+
declare const WarningListItemMenu: ({ warning, onEditWarning, onDeleteWarning, onDeleteReviewWarning, onExpireWarning, onWithdrawWarning, t, }: WarningListItemMenuProps) => MenuItemType[];
|
|
14
|
+
export default WarningListItemMenu;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ListItemProps } from '@mui/material';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { PublicWarningStatus } from '../../store/publicWarningForm/types';
|
|
4
|
-
declare const WarningListItemSeperator: React.FC<{
|
|
5
|
-
totalWarnings: number;
|
|
6
|
-
status: PublicWarningStatus;
|
|
7
|
-
} & ListItemProps>;
|
|
8
|
-
export default WarningListItemSeperator;
|
|
1
|
+
import { ListItemProps } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { PublicWarningStatus } from '../../store/publicWarningForm/types';
|
|
4
|
+
declare const WarningListItemSeperator: React.FC<{
|
|
5
|
+
totalWarnings: number;
|
|
6
|
+
status: PublicWarningStatus;
|
|
7
|
+
} & ListItemProps>;
|
|
8
|
+
export default WarningListItemSeperator;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PublicWarning } from '../../store/publicWarningForm/types';
|
|
2
|
+
declare enum Domain {
|
|
3
|
+
aviation = "aviation",
|
|
4
|
+
maritime = "maritime",
|
|
5
|
+
public = "public"
|
|
6
|
+
}
|
|
7
|
+
declare const defaultDomainFilter: Record<Domain, boolean>;
|
|
8
|
+
export interface FilterState {
|
|
9
|
+
domain: typeof defaultDomainFilter;
|
|
10
|
+
}
|
|
11
|
+
export type FilterKeyType = keyof FilterState;
|
|
12
|
+
export type OptionKey<T extends FilterKeyType> = keyof FilterState[T];
|
|
13
|
+
export type UpdateFilter = <T extends FilterKeyType>(filterKey: T | 'ALL', optionKey: OptionKey<T> | 'ALL', value: boolean, only?: boolean) => void;
|
|
14
|
+
export declare const useWarningFilters: () => {
|
|
15
|
+
filterState: FilterState;
|
|
16
|
+
updateFilter: UpdateFilter;
|
|
17
|
+
byFilterState: (warning: PublicWarning) => boolean;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './PublicWarningList';
|
|
2
|
-
export * from './PublicWarningListConnect';
|
|
1
|
+
export * from './PublicWarningList';
|
|
2
|
+
export * from './PublicWarningListConnect';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const formatDate: (lastUpdatedTime: string) => string;
|
|
3
|
-
export declare const AreaField: React.FC<{
|
|
4
|
-
onEditObject: () => void;
|
|
5
|
-
onViewObject: () => void;
|
|
6
|
-
onDeleteObject: () => void;
|
|
7
|
-
onAddObject: () => void;
|
|
8
|
-
isDisabled?: boolean;
|
|
9
|
-
}>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const formatDate: (lastUpdatedTime: string) => string;
|
|
3
|
+
export declare const AreaField: React.FC<{
|
|
4
|
+
onEditObject: () => void;
|
|
5
|
+
onViewObject: () => void;
|
|
6
|
+
onDeleteObject: () => void;
|
|
7
|
+
onAddObject: () => void;
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AreaFieldLight: {
|
|
7
|
-
(): React.ReactElement;
|
|
8
|
-
storyName: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const AreaFieldDark: {
|
|
11
|
-
(): React.ReactElement;
|
|
12
|
-
storyName: string;
|
|
13
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const AreaFieldLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const AreaFieldDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './AreaField';
|
|
1
|
+
export * from './AreaField';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const DescriptionField: React.FC<{
|
|
3
|
-
isDisabled?: boolean;
|
|
4
|
-
isReadOnly?: boolean;
|
|
5
|
-
}>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const DescriptionField: React.FC<{
|
|
3
|
+
isDisabled?: boolean;
|
|
4
|
+
isReadOnly?: boolean;
|
|
5
|
+
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.stories.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const DescriptionFieldLight: {
|
|
7
|
-
(): React.ReactElement;
|
|
8
|
-
storyName: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const DescriptionFieldDark: {
|
|
11
|
-
(): React.ReactElement;
|
|
12
|
-
storyName: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const DescriptionFieldDisabledLight: {
|
|
15
|
-
(): React.ReactElement;
|
|
16
|
-
storyName: string;
|
|
17
|
-
};
|
|
18
|
-
export declare const DescriptionFieldDisabledDark: {
|
|
19
|
-
(): React.ReactElement;
|
|
20
|
-
storyName: string;
|
|
21
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const DescriptionFieldLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const DescriptionFieldDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const DescriptionFieldDisabledLight: {
|
|
15
|
+
(): React.ReactElement;
|
|
16
|
+
storyName: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const DescriptionFieldDisabledDark: {
|
|
19
|
+
(): React.ReactElement;
|
|
20
|
+
storyName: string;
|
|
21
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './DescriptionField';
|
|
1
|
+
export * from './DescriptionField';
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FilterTranslation } from '../../../store/publicWarnings/types';
|
|
3
|
-
export interface LevelColor {
|
|
4
|
-
color: string;
|
|
5
|
-
textColor: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FilterTranslation } from '../../../store/publicWarnings/types';
|
|
3
|
+
export interface LevelColor {
|
|
4
|
+
color: string;
|
|
5
|
+
textColor: string;
|
|
6
|
+
borderColor: string;
|
|
7
|
+
}
|
|
8
|
+
export interface LevelDetails extends FilterTranslation, LevelColor {
|
|
9
|
+
}
|
|
10
|
+
export declare enum WarningLevel {
|
|
11
|
+
moderate = "moderate",
|
|
12
|
+
severe = "severe",
|
|
13
|
+
extreme = "extreme"
|
|
14
|
+
}
|
|
15
|
+
export declare const LevelColors: Record<WarningLevel, LevelColor>;
|
|
16
|
+
export declare const getLevelStyle: (levelColor?: LevelColor) => React.CSSProperties;
|
|
17
|
+
export declare const levelOptions: LevelDetails[];
|
|
18
|
+
export declare const levelOptionsDict: Record<string, LevelDetails>;
|
|
19
|
+
export declare const LevelField: React.FC<{
|
|
20
|
+
isDisabled?: boolean;
|
|
21
|
+
isReadOnly?: boolean;
|
|
22
|
+
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './LevelField';
|
|
1
|
+
export * from './LevelField';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FilterTranslation } from '../../../store/publicWarnings/types';
|
|
3
|
-
export declare const getWarningPhenomenaIcon: (key: string) =>
|
|
4
|
-
export declare const getAviationPhenomenaIcon: (key: string) =>
|
|
5
|
-
export declare const warningPhenomena: FilterTranslation[];
|
|
6
|
-
export declare const allPhenomenaDict: Record<string, FilterTranslation>;
|
|
7
|
-
export declare const getPhenomenaIcon: (key: string) =>
|
|
8
|
-
export declare const Phenomenon: React.FC<{
|
|
9
|
-
isDisabled?: boolean;
|
|
10
|
-
isReadOnly?: boolean;
|
|
11
|
-
}>;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FilterTranslation } from '../../../store/publicWarnings/types';
|
|
3
|
+
export declare const getWarningPhenomenaIcon: (key: string) => React.ReactElement | undefined;
|
|
4
|
+
export declare const getAviationPhenomenaIcon: (key: string) => React.ReactElement | undefined;
|
|
5
|
+
export declare const warningPhenomena: FilterTranslation[];
|
|
6
|
+
export declare const allPhenomenaDict: Record<string, FilterTranslation>;
|
|
7
|
+
export declare const getPhenomenaIcon: (key: string) => React.ReactElement | undefined;
|
|
8
|
+
export declare const Phenomenon: React.FC<{
|
|
9
|
+
isDisabled?: boolean;
|
|
10
|
+
isReadOnly?: boolean;
|
|
11
|
+
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './PhenomenonField';
|
|
1
|
+
export * from './PhenomenonField';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const probablityOptions: number[];
|
|
3
|
-
export declare const defaultProbability = 30;
|
|
4
|
-
export declare const ProbabilityField: React.FC<{
|
|
5
|
-
isDisabled?: boolean;
|
|
6
|
-
isReadOnly?: boolean;
|
|
7
|
-
}>;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const probablityOptions: number[];
|
|
3
|
+
export declare const defaultProbability = 30;
|
|
4
|
+
export declare const ProbabilityField: React.FC<{
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
isReadOnly?: boolean;
|
|
7
|
+
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './ProbabilityField';
|
|
1
|
+
export * from './ProbabilityField';
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Bbox } from '@opengeoweb/webmap';
|
|
3
|
-
import { PublicWarningDetail } from '../../store/publicWarningForm/types';
|
|
4
|
-
import { BaseDrawingListItem, DrawingListItem } from '../../store/drawings/types';
|
|
5
|
-
import { FormAction, FormError } from '../../store/publicWarningForm/reducer';
|
|
6
|
-
export declare const useScrollTopOnError: (error: FormError) => React.RefObject<HTMLDivElement>;
|
|
7
|
-
export declare const getEmptyPublicWarning: () => PublicWarningDetail;
|
|
8
|
-
export declare const getFormData: (publicWarningsDetails: PublicWarningDetail | undefined, object?: DrawingListItem) => FormData;
|
|
9
|
-
interface FormData extends PublicWarningDetail {
|
|
10
|
-
IS_DRAFT?: boolean | string;
|
|
11
|
-
object?: BaseDrawingListItem;
|
|
12
|
-
'translation-select'?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const prepareFormValues: (data: FormData) => PublicWarningDetail;
|
|
15
|
-
interface FormProps {
|
|
16
|
-
formAction?: FormAction;
|
|
17
|
-
defaultBbox?: {
|
|
18
|
-
srs: string;
|
|
19
|
-
bbox: Bbox;
|
|
20
|
-
};
|
|
21
|
-
onSaveForm?: (formValues: PublicWarningDetail) => void;
|
|
22
|
-
onPublishForm?: (formValues: PublicWarningDetail) => void;
|
|
23
|
-
object?: DrawingListItem;
|
|
24
|
-
publicWarningDetails?: PublicWarningDetail;
|
|
25
|
-
error?: FormError;
|
|
26
|
-
isReadOnly?: boolean;
|
|
27
|
-
onFormDirty?: (isFormDirty: boolean) => void;
|
|
28
|
-
isSnapshot?: boolean;
|
|
29
|
-
onAddObject?: () => void;
|
|
30
|
-
}
|
|
31
|
-
export declare const PublicWarningsForm: React.FC<FormProps>;
|
|
32
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Bbox } from '@opengeoweb/webmap';
|
|
3
|
+
import { PublicWarningDetail } from '../../store/publicWarningForm/types';
|
|
4
|
+
import { BaseDrawingListItem, DrawingListItem } from '../../store/drawings/types';
|
|
5
|
+
import { FormAction, FormError } from '../../store/publicWarningForm/reducer';
|
|
6
|
+
export declare const useScrollTopOnError: (error: FormError) => React.RefObject<HTMLDivElement>;
|
|
7
|
+
export declare const getEmptyPublicWarning: () => PublicWarningDetail;
|
|
8
|
+
export declare const getFormData: (publicWarningsDetails: PublicWarningDetail | undefined, object?: DrawingListItem) => FormData;
|
|
9
|
+
interface FormData extends PublicWarningDetail {
|
|
10
|
+
IS_DRAFT?: boolean | string;
|
|
11
|
+
object?: BaseDrawingListItem;
|
|
12
|
+
'translation-select'?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const prepareFormValues: (data: FormData) => PublicWarningDetail;
|
|
15
|
+
interface FormProps {
|
|
16
|
+
formAction?: FormAction;
|
|
17
|
+
defaultBbox?: {
|
|
18
|
+
srs: string;
|
|
19
|
+
bbox: Bbox;
|
|
20
|
+
};
|
|
21
|
+
onSaveForm?: (formValues: PublicWarningDetail) => void;
|
|
22
|
+
onPublishForm?: (formValues: PublicWarningDetail) => void;
|
|
23
|
+
object?: DrawingListItem;
|
|
24
|
+
publicWarningDetails?: PublicWarningDetail;
|
|
25
|
+
error?: FormError;
|
|
26
|
+
isReadOnly?: boolean;
|
|
27
|
+
onFormDirty?: (isFormDirty: boolean) => void;
|
|
28
|
+
isSnapshot?: boolean;
|
|
29
|
+
onAddObject?: () => void;
|
|
30
|
+
}
|
|
31
|
+
export declare const PublicWarningsForm: React.FC<FormProps>;
|
|
32
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|