@opengeoweb/warnings 16.0.0 → 17.0.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 +2173 -935
- package/package.json +13 -13
- package/src/index.d.ts +0 -12
- package/src/lib/Warnings.stories.d.ts +0 -7
- package/src/lib/api/api-utils.d.ts +0 -12
- package/src/lib/api/api-utils.spec.d.ts +0 -1
- package/src/lib/api/aviation-api/api.d.ts +0 -23
- package/src/lib/api/aviation-api/errorHandling.d.ts +0 -1
- package/src/lib/api/aviation-api/fakeApi.d.ts +0 -8
- package/src/lib/api/aviation-api/hooks.d.ts +0 -43
- package/src/lib/api/aviation-api/queryOptions.d.ts +0 -68
- package/src/lib/api/hooks.spec.d.ts +0 -1
- package/src/lib/api/warning-api/api.d.ts +0 -18
- package/src/lib/api/warning-api/hooks.d.ts +0 -57
- package/src/lib/components/AreaObjectLoader/AreaObjectFilter.d.ts +0 -9
- package/src/lib/components/AreaObjectLoader/AreaObjectFilter.spec.d.ts +0 -1
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.d.ts +0 -28
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.spec.d.ts +0 -1
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.stories.d.ts +0 -16
- package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.d.ts +0 -6
- package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.integration.spec.d.ts +0 -1
- package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.stories.d.ts +0 -15
- package/src/lib/components/AreaObjectLoader/AreasObjects.d.ts +0 -28
- package/src/lib/components/AreaObjectLoader/AreasObjects.spec.d.ts +0 -1
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +0 -20
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.spec.d.ts +0 -1
- package/src/lib/components/ComponentsLookUp/index.d.ts +0 -1
- package/src/lib/components/DrawingTool/DrawingTool.stories.d.ts +0 -11
- package/src/lib/components/DrawingTool/DrawingToolConnect.d.ts +0 -16
- package/src/lib/components/DrawingTool/DrawingToolConnect.spec.d.ts +0 -1
- package/src/lib/components/DrawingTool/DrawingToolConnect.stories.d.ts +0 -6
- package/src/lib/components/DrawingTool/DrawingToolDialog.d.ts +0 -19
- package/src/lib/components/DrawingTool/DrawingToolDialog.spec.d.ts +0 -1
- package/src/lib/components/DrawingTool/DrawingToolMapButtonConnect.d.ts +0 -8
- package/src/lib/components/DrawingTool/DrawingToolMapButtonConnect.spec.d.ts +0 -1
- package/src/lib/components/DrawingTool/index.d.ts +0 -3
- package/src/lib/components/DrawingTool/useObjectDrawDialogAction.d.ts +0 -25
- package/src/lib/components/DrawingTool/useObjectDrawDialogAction.spec.d.ts +0 -1
- package/src/lib/components/DrawingToolForm/DrawingToolForm.d.ts +0 -26
- package/src/lib/components/DrawingToolForm/DrawingToolForm.spec.d.ts +0 -1
- package/src/lib/components/DrawingToolForm/DrawingToolFormConnect.d.ts +0 -2
- package/src/lib/components/DrawingToolForm/DrawingToolFormConnect.integration.spec.d.ts +0 -1
- package/src/lib/components/DrawingToolForm/DrawingToolFormContents.d.ts +0 -28
- package/src/lib/components/DrawingToolForm/index.d.ts +0 -2
- package/src/lib/components/FilterList/ExpandableFilterChip.d.ts +0 -9
- package/src/lib/components/FilterList/ExpandableFilterChip.spec.d.ts +0 -1
- package/src/lib/components/FilterList/ExpandableFilterChip.stories.d.ts +0 -20
- package/src/lib/components/FilterList/FilterList.d.ts +0 -13
- package/src/lib/components/FilterList/TimeFilterChip.d.ts +0 -7
- package/src/lib/components/FilterList/filter-hooks.d.ts +0 -30
- package/src/lib/components/FilterList/filter-hooks.spec.d.ts +0 -1
- package/src/lib/components/FilterList/filter-styles.d.ts +0 -2
- package/src/lib/components/FilterList/filter-utils.d.ts +0 -111
- package/src/lib/components/FilterList/filter-utils.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/AreaList/AreaList.d.ts +0 -11
- package/src/lib/components/MaritimeWarningsForm/AreaList/AreaList.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/AreaList/index.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/AssignedAreas/AssignedAreas.d.ts +0 -13
- package/src/lib/components/MaritimeWarningsForm/AssignedAreas/AssignedAreas.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsAvatar.d.ts +0 -8
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsForm.d.ts +0 -33
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsForm.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsForm.stories.d.ts +0 -15
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsFormConnect.d.ts +0 -8
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsFormConnect.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsFormConnect.stories.d.ts +0 -14
- package/src/lib/components/MaritimeWarningsForm/WarningList/WarningList.d.ts +0 -18
- package/src/lib/components/MaritimeWarningsForm/WarningList/WarningListDragHandle.d.ts +0 -2
- package/src/lib/components/MaritimeWarningsForm/WarningList/WarningListItem.d.ts +0 -17
- package/src/lib/components/MaritimeWarningsForm/WarningList/WarningListItem.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/WarningList/WarningListSelect.d.ts +0 -21
- package/src/lib/components/MaritimeWarningsForm/WarningList/WarningListSelect.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/WarningList/WindForceSelect.d.ts +0 -24
- package/src/lib/components/MaritimeWarningsForm/WarningList/WindForceSelect.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/index.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/testUtils.d.ts +0 -3
- package/src/lib/components/MaritimeWarningsForm/types.d.ts +0 -51
- package/src/lib/components/MaritimeWarningsForm/useConfirmDeleteDialog.d.ts +0 -12
- package/src/lib/components/MaritimeWarningsForm/useFilterChipSelect.d.ts +0 -12
- package/src/lib/components/MaritimeWarningsForm/useFilterChipSelect.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/useMaritimeWarningsFormState.d.ts +0 -63
- package/src/lib/components/MaritimeWarningsForm/useMaritimeWarningsFormState.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/utils.d.ts +0 -7
- package/src/lib/components/MaritimeWarningsForm/utils.spec.d.ts +0 -1
- package/src/lib/components/ObjectManager/ConfirmDeleteDialog.d.ts +0 -10
- package/src/lib/components/ObjectManager/ConfirmDeleteDialog.spec.d.ts +0 -1
- package/src/lib/components/ObjectManager/ObjectManager.d.ts +0 -25
- package/src/lib/components/ObjectManager/ObjectManager.spec.d.ts +0 -1
- package/src/lib/components/ObjectManager/ObjectManager.stories.d.ts +0 -38
- package/src/lib/components/ObjectManager/ObjectManagerConnect.d.ts +0 -6
- package/src/lib/components/ObjectManager/ObjectManagerConnect.integration.spec.d.ts +0 -1
- package/src/lib/components/ObjectManager/ObjectManagerConnect.stories.d.ts +0 -10
- package/src/lib/components/ObjectManager/ObjectManagerConnectErrors.stories.d.ts +0 -38
- package/src/lib/components/ObjectManager/ObjectManagerMapButtonConnect.d.ts +0 -6
- package/src/lib/components/ObjectManager/ObjectManagerMapButtonConnect.spec.d.ts +0 -1
- package/src/lib/components/ObjectManager/Objects.d.ts +0 -22
- package/src/lib/components/ObjectManager/Objects.spec.d.ts +0 -1
- package/src/lib/components/ObjectManager/index.d.ts +0 -2
- package/src/lib/components/Providers/Providers.d.ts +0 -29
- package/src/lib/components/Providers/Providers.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/ConfirmWarningDialog.d.ts +0 -14
- package/src/lib/components/PublicWarningList/ConfirmWarningDialog.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/NewWarningButton/NewWarningButton.d.ts +0 -9
- package/src/lib/components/PublicWarningList/NewWarningButton/NewWarningButton.stories.d.ts +0 -12
- package/src/lib/components/PublicWarningList/PublicWarningList.d.ts +0 -23
- package/src/lib/components/PublicWarningList/PublicWarningList.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningList.stories.d.ts +0 -64
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.aviation.drawTools.integration.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.aviation.saveAndPublish.integration.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.confirmation.integration.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.d.ts +0 -7
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.draft.integration.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.editorToggle.integration.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.filter.integration.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.integration.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.maritime.integration.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.published.integration.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.stories.d.ts +0 -60
- package/src/lib/components/PublicWarningList/WarningListColumnContent.d.ts +0 -10
- package/src/lib/components/PublicWarningList/WarningListHeaderContent.d.ts +0 -11
- package/src/lib/components/PublicWarningList/WarningListHeaderContent.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/WarningListItem.d.ts +0 -12
- package/src/lib/components/PublicWarningList/WarningListItem.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/WarningListItemMenu.d.ts +0 -20
- package/src/lib/components/PublicWarningList/WarningListItemMenu.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/WarningListItemSeperator.d.ts +0 -11
- package/src/lib/components/PublicWarningList/index.d.ts +0 -2
- package/src/lib/components/PublicWarningsForm/AreaField/AreaField.d.ts +0 -9
- package/src/lib/components/PublicWarningsForm/AreaField/AreaField.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/AreaField/AreaField.stories.d.ts +0 -24
- package/src/lib/components/PublicWarningsForm/AreaField/index.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.d.ts +0 -5
- package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.stories.d.ts +0 -10
- package/src/lib/components/PublicWarningsForm/DescriptionField/index.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/LevelField/LevelField.d.ts +0 -22
- package/src/lib/components/PublicWarningsForm/LevelField/LevelField.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/LevelField/index.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/PhenomenonField/PhenomenonField.d.ts +0 -11
- package/src/lib/components/PublicWarningsForm/PhenomenonField/PhenomenonField.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/PhenomenonField/index.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/ProbabilityField/ProbabilityField.d.ts +0 -7
- package/src/lib/components/PublicWarningsForm/ProbabilityField/ProbabilityField.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/ProbabilityField/index.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.d.ts +0 -45
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.stories.d.ts +0 -34
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.d.ts +0 -14
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.stories.d.ts +0 -8
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnectErrors.stories.d.ts +0 -24
- package/src/lib/components/PublicWarningsForm/ValidFromField/ValidFromField.d.ts +0 -19
- package/src/lib/components/PublicWarningsForm/ValidFromField/ValidFromField.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/ValidFromField/index.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/ValidUntilField/ValidUntilField.d.ts +0 -11
- package/src/lib/components/PublicWarningsForm/ValidUntilField/ValidUntilField.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/ValidUntilField/index.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/index.d.ts +0 -2
- package/src/lib/components/PublicWarningsFormDialog/AviationWarningCancelDialogContent.d.ts +0 -8
- package/src/lib/components/PublicWarningsFormDialog/AviationWarningCancelDialogContent.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsFormDialog/CancelAviationConfirmDialog.d.ts +0 -18
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.d.ts +0 -25
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.stories.d.ts +0 -18
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.d.ts +0 -13
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.stories.d.ts +0 -9
- package/src/lib/components/PublicWarningsFormDialog/WarningsAvatar.d.ts +0 -9
- package/src/lib/components/PublicWarningsFormDialog/index.d.ts +0 -2
- package/src/lib/components/WarningsMapView/WarningsMapView.d.ts +0 -11
- package/src/lib/components/WarningsMapView/WarningsMapView.spec.d.ts +0 -1
- package/src/lib/components/WarningsTimeline/WarningBlock.d.ts +0 -10
- package/src/lib/components/WarningsTimeline/WarningsTimeline.d.ts +0 -6
- package/src/lib/components/WarningsTimeline/WarningsTimeline.spec.d.ts +0 -1
- package/src/lib/components/WarningsTimeline/WarningsTimeline.stories.d.ts +0 -12
- package/src/lib/components/WarningsTimeline/WarningsTimelineConnect.d.ts +0 -5
- package/src/lib/components/WarningsTimeline/WarningsTimelineConnect.spec.d.ts +0 -1
- package/src/lib/components/WarningsTimeline/index.d.ts +0 -4
- package/src/lib/components/WarningsTimeline/warningBlockColors.d.ts +0 -16
- package/src/lib/components/WarningsTimeline/warningBlockColors.spec.d.ts +0 -1
- package/src/lib/components/WarningsTimeline/warningsTimelineUtils.d.ts +0 -15
- package/src/lib/components/WarningsTimeline/warningsTimelineUtils.spec.d.ts +0 -1
- package/src/lib/store/index.d.ts +0 -4
- package/src/lib/store/store.d.ts +0 -17
- package/src/lib/store/types.d.ts +0 -9
- package/src/lib/store/warningsDrawings/index.d.ts +0 -1
- package/src/lib/store/warningsDrawings/reducer.d.ts +0 -12
- package/src/lib/store/warningsDrawings/reducer.spec.d.ts +0 -1
- package/src/lib/store/warningsDrawings/selectors.d.ts +0 -45
- package/src/lib/store/warningsDrawings/selectors.spec.d.ts +0 -1
- package/src/lib/store/warningsDrawings/types.d.ts +0 -33
- package/src/lib/store/warningsDrawings/utils.d.ts +0 -4
- package/src/lib/store/warningsFilters/index.d.ts +0 -1
- package/src/lib/store/warningsFilters/reducer.d.ts +0 -11
- package/src/lib/store/warningsFilters/selectors.d.ts +0 -62
- package/src/lib/store/warningsFilters/selectors.spec.d.ts +0 -1
- package/src/lib/store/warningsFilters/types.d.ts +0 -7
- package/src/lib/store/warningsForm/index.d.ts +0 -2
- package/src/lib/store/warningsForm/listener.d.ts +0 -2
- package/src/lib/store/warningsForm/reducer.d.ts +0 -53
- package/src/lib/store/warningsForm/reducer.spec.d.ts +0 -1
- package/src/lib/store/warningsForm/selectors.d.ts +0 -192
- package/src/lib/store/warningsForm/selectors.spec.d.ts +0 -1
- package/src/lib/store/warningsForm/types.d.ts +0 -72
- package/src/lib/store/warningsForm/utils.d.ts +0 -2
- package/src/lib/storybookUtils/SimpleLinkMenu.d.ts +0 -6
- package/src/lib/storybookUtils/defaultStorySettings.d.ts +0 -18
- package/src/lib/storybookUtils/storyComponents.d.ts +0 -5
- package/src/lib/storybookUtils/testUtils.d.ts +0 -11
- package/src/lib/utils/constants.d.ts +0 -1
- package/src/lib/utils/fakeApi/index.d.ts +0 -20
- package/src/lib/utils/fakeSigmetAirmet.d.ts +0 -3
- package/src/lib/utils/i18n.d.ts +0 -7
- package/src/lib/utils/sig-airmet-util.d.ts +0 -20
- package/src/lib/utils/sig-airmet-util.spec.d.ts +0 -1
- package/src/lib/utils/useFormDirty.d.ts +0 -7
- package/src/lib/utils/useFormDirty.spec.d.ts +0 -1
- package/src/lib/utils/warningUtils.d.ts +0 -18
- package/src/lib/utils/warningUtils.spec.d.ts +0 -1
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import type { WarningsFiltersState } from './types';
|
|
2
|
-
import type { FilterState } from '../../components/FilterList/filter-hooks';
|
|
3
|
-
import type { WarningModuleStore } from '../types';
|
|
4
|
-
export declare const getWarningsFilters: (store: WarningModuleStore) => WarningsFiltersState;
|
|
5
|
-
export declare const getWarningsFilterById: ((state: WarningModuleStore, panelId?: string | undefined) => FilterState) & {
|
|
6
|
-
clearCache: () => void;
|
|
7
|
-
resultsCount: () => number;
|
|
8
|
-
resetResultsCount: () => void;
|
|
9
|
-
} & {
|
|
10
|
-
resultFunc: (resultFuncArgs_0: WarningsFiltersState, resultFuncArgs_1: string | undefined) => FilterState;
|
|
11
|
-
memoizedResultFunc: ((resultFuncArgs_0: WarningsFiltersState, resultFuncArgs_1: string | undefined) => FilterState) & {
|
|
12
|
-
clearCache: () => void;
|
|
13
|
-
resultsCount: () => number;
|
|
14
|
-
resetResultsCount: () => void;
|
|
15
|
-
};
|
|
16
|
-
lastResult: () => FilterState;
|
|
17
|
-
dependencies: [(store: WarningModuleStore) => WarningsFiltersState, (_store: WarningModuleStore, panelId?: string) => string | undefined];
|
|
18
|
-
recomputations: () => number;
|
|
19
|
-
resetRecomputations: () => void;
|
|
20
|
-
dependencyRecomputations: () => number;
|
|
21
|
-
resetDependencyRecomputations: () => void;
|
|
22
|
-
} & {
|
|
23
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
24
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
25
|
-
};
|
|
26
|
-
export declare const getWarningsPresetById: ((state: WarningModuleStore, panelId?: string | undefined) => {
|
|
27
|
-
filterState: null;
|
|
28
|
-
} | {
|
|
29
|
-
filterState: FilterState;
|
|
30
|
-
}) & {
|
|
31
|
-
clearCache: () => void;
|
|
32
|
-
resultsCount: () => number;
|
|
33
|
-
resetResultsCount: () => void;
|
|
34
|
-
} & {
|
|
35
|
-
resultFunc: (resultFuncArgs_0: WarningsFiltersState, resultFuncArgs_1: string | undefined) => {
|
|
36
|
-
filterState: null;
|
|
37
|
-
} | {
|
|
38
|
-
filterState: FilterState;
|
|
39
|
-
};
|
|
40
|
-
memoizedResultFunc: ((resultFuncArgs_0: WarningsFiltersState, resultFuncArgs_1: string | undefined) => {
|
|
41
|
-
filterState: null;
|
|
42
|
-
} | {
|
|
43
|
-
filterState: FilterState;
|
|
44
|
-
}) & {
|
|
45
|
-
clearCache: () => void;
|
|
46
|
-
resultsCount: () => number;
|
|
47
|
-
resetResultsCount: () => void;
|
|
48
|
-
};
|
|
49
|
-
lastResult: () => {
|
|
50
|
-
filterState: null;
|
|
51
|
-
} | {
|
|
52
|
-
filterState: FilterState;
|
|
53
|
-
};
|
|
54
|
-
dependencies: [(store: WarningModuleStore) => WarningsFiltersState, (_store: WarningModuleStore, panelId?: string) => string | undefined];
|
|
55
|
-
recomputations: () => number;
|
|
56
|
-
resetRecomputations: () => void;
|
|
57
|
-
dependencyRecomputations: () => number;
|
|
58
|
-
resetDependencyRecomputations: () => void;
|
|
59
|
-
} & {
|
|
60
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
61
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
62
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { AlertColor } from '@mui/material';
|
|
2
|
-
import type { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
3
|
-
import type { Area, Warning, WarningType } from './types';
|
|
4
|
-
import type { WarningLevel } from '../../components/PublicWarningsForm/LevelField';
|
|
5
|
-
import type { DrawingListItem } from '../warningsDrawings/types';
|
|
6
|
-
export type FormAction = '' | 'saving' | 'publishing' | 'readonly' | 'edit' | 'amending' | 'cancel';
|
|
7
|
-
export interface FormError {
|
|
8
|
-
severity?: AlertColor;
|
|
9
|
-
message: string;
|
|
10
|
-
}
|
|
11
|
-
export interface WarningFormState {
|
|
12
|
-
object?: DrawingListItem;
|
|
13
|
-
warning?: Warning;
|
|
14
|
-
formState?: FormAction;
|
|
15
|
-
error?: FormError;
|
|
16
|
-
selectedWarningId?: string;
|
|
17
|
-
isFormDirty?: boolean;
|
|
18
|
-
warningType?: WarningType;
|
|
19
|
-
panelId?: string;
|
|
20
|
-
}
|
|
21
|
-
export declare const TAKEOVER_MESSAGE = "You are no longer the editor of this warning";
|
|
22
|
-
export declare const initialState: WarningFormState;
|
|
23
|
-
export declare const warningsFormReducer: import("redux").Reducer<WarningFormState>, warningsFormActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
24
|
-
setFormValues: (draft: Draft<WarningFormState>, action: PayloadAction<{
|
|
25
|
-
object?: DrawingListItem;
|
|
26
|
-
warning?: Warning;
|
|
27
|
-
formState?: FormAction;
|
|
28
|
-
}>) => void;
|
|
29
|
-
addArea: (draft: Draft<WarningFormState>, action: PayloadAction<{
|
|
30
|
-
area: Area;
|
|
31
|
-
}>) => void;
|
|
32
|
-
removeArea: (draft: Draft<WarningFormState>, action: PayloadAction<{
|
|
33
|
-
area: Area;
|
|
34
|
-
}>) => void;
|
|
35
|
-
removeAllAreas: (draft: Draft<WarningFormState>) => void;
|
|
36
|
-
openPublicWarningFormDialog: (draft: Draft<WarningFormState>, action: PayloadAction<{
|
|
37
|
-
object?: DrawingListItem;
|
|
38
|
-
formState?: FormAction;
|
|
39
|
-
warning?: Warning;
|
|
40
|
-
warningType?: WarningType;
|
|
41
|
-
panelId?: string;
|
|
42
|
-
}>) => void;
|
|
43
|
-
setFormError: (draft: Draft<WarningFormState>, action: PayloadAction<FormError>) => void;
|
|
44
|
-
removeFormError: (draft: Draft<WarningFormState>) => void;
|
|
45
|
-
setFormDirty: (draft: Draft<WarningFormState>, action: PayloadAction<{
|
|
46
|
-
isFormDirty: boolean;
|
|
47
|
-
}>) => void;
|
|
48
|
-
setEditMode: (draft: Draft<WarningFormState>, action: PayloadAction<{
|
|
49
|
-
warningId: string;
|
|
50
|
-
}>) => void;
|
|
51
|
-
setSelectedWarningId: (draft: Draft<WarningFormState>, action: PayloadAction<string>) => void;
|
|
52
|
-
setWarningLevel: (draft: Draft<WarningFormState>, action: PayloadAction<WarningLevel | "">) => void;
|
|
53
|
-
}, "warningsForm">;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import type { WarningModuleStore } from '../types';
|
|
2
|
-
import type { WarningFormState } from './reducer';
|
|
3
|
-
export declare const selectWarningsFormState: (store: WarningModuleStore) => WarningFormState;
|
|
4
|
-
export declare const getPublicWarning: ((state: WarningModuleStore) => import("./types").Warning | undefined) & {
|
|
5
|
-
clearCache: () => void;
|
|
6
|
-
resultsCount: () => number;
|
|
7
|
-
resetResultsCount: () => void;
|
|
8
|
-
} & {
|
|
9
|
-
resultFunc: (resultFuncArgs_0: WarningFormState) => import("./types").Warning | undefined;
|
|
10
|
-
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => import("./types").Warning | undefined) & {
|
|
11
|
-
clearCache: () => void;
|
|
12
|
-
resultsCount: () => number;
|
|
13
|
-
resetResultsCount: () => void;
|
|
14
|
-
};
|
|
15
|
-
lastResult: () => import("./types").Warning | undefined;
|
|
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;
|
|
24
|
-
};
|
|
25
|
-
export declare const getPublicWarningStatus: ((state: WarningModuleStore) => import("./types").PublicWarningStatus | undefined) & {
|
|
26
|
-
clearCache: () => void;
|
|
27
|
-
resultsCount: () => number;
|
|
28
|
-
resetResultsCount: () => void;
|
|
29
|
-
} & {
|
|
30
|
-
resultFunc: (resultFuncArgs_0: WarningFormState) => import("./types").PublicWarningStatus | undefined;
|
|
31
|
-
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => import("./types").PublicWarningStatus | undefined) & {
|
|
32
|
-
clearCache: () => void;
|
|
33
|
-
resultsCount: () => number;
|
|
34
|
-
resetResultsCount: () => void;
|
|
35
|
-
};
|
|
36
|
-
lastResult: () => import("./types").PublicWarningStatus | 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;
|
|
45
|
-
};
|
|
46
|
-
export declare const getPublicWarningId: ((state: WarningModuleStore) => string | undefined) & {
|
|
47
|
-
clearCache: () => void;
|
|
48
|
-
resultsCount: () => number;
|
|
49
|
-
resetResultsCount: () => void;
|
|
50
|
-
} & {
|
|
51
|
-
resultFunc: (resultFuncArgs_0: WarningFormState) => string | undefined;
|
|
52
|
-
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => string | undefined) & {
|
|
53
|
-
clearCache: () => void;
|
|
54
|
-
resultsCount: () => number;
|
|
55
|
-
resetResultsCount: () => void;
|
|
56
|
-
};
|
|
57
|
-
lastResult: () => string | 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;
|
|
66
|
-
};
|
|
67
|
-
export declare const getPublicWarningAreas: ((state: WarningModuleStore) => import("./types").Area[]) & {
|
|
68
|
-
clearCache: () => void;
|
|
69
|
-
resultsCount: () => number;
|
|
70
|
-
resetResultsCount: () => void;
|
|
71
|
-
} & {
|
|
72
|
-
resultFunc: (resultFuncArgs_0: WarningFormState) => import("./types").Area[];
|
|
73
|
-
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => import("./types").Area[]) & {
|
|
74
|
-
clearCache: () => void;
|
|
75
|
-
resultsCount: () => number;
|
|
76
|
-
resetResultsCount: () => void;
|
|
77
|
-
};
|
|
78
|
-
lastResult: () => import("./types").Area[];
|
|
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;
|
|
87
|
-
};
|
|
88
|
-
export declare const getPublicWarningFormState: ((state: WarningModuleStore) => "" | "saving" | "publishing" | "readonly" | "edit" | "amending" | "cancel") & {
|
|
89
|
-
clearCache: () => void;
|
|
90
|
-
resultsCount: () => number;
|
|
91
|
-
resetResultsCount: () => void;
|
|
92
|
-
} & {
|
|
93
|
-
resultFunc: (resultFuncArgs_0: WarningFormState) => "" | "saving" | "publishing" | "readonly" | "edit" | "amending" | "cancel";
|
|
94
|
-
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => "" | "saving" | "publishing" | "readonly" | "edit" | "amending" | "cancel") & {
|
|
95
|
-
clearCache: () => void;
|
|
96
|
-
resultsCount: () => number;
|
|
97
|
-
resetResultsCount: () => void;
|
|
98
|
-
};
|
|
99
|
-
lastResult: () => "" | "saving" | "publishing" | "readonly" | "edit" | "amending" | "cancel";
|
|
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;
|
|
108
|
-
};
|
|
109
|
-
export declare const getSelectedWarningId: ((state: WarningModuleStore) => string) & {
|
|
110
|
-
clearCache: () => void;
|
|
111
|
-
resultsCount: () => number;
|
|
112
|
-
resetResultsCount: () => void;
|
|
113
|
-
} & {
|
|
114
|
-
resultFunc: (resultFuncArgs_0: WarningFormState) => string;
|
|
115
|
-
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => string) & {
|
|
116
|
-
clearCache: () => void;
|
|
117
|
-
resultsCount: () => number;
|
|
118
|
-
resetResultsCount: () => void;
|
|
119
|
-
};
|
|
120
|
-
lastResult: () => string;
|
|
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;
|
|
129
|
-
};
|
|
130
|
-
export declare const getSelectedPublicIsFormDirty: ((state: WarningModuleStore) => boolean) & {
|
|
131
|
-
clearCache: () => void;
|
|
132
|
-
resultsCount: () => number;
|
|
133
|
-
resetResultsCount: () => void;
|
|
134
|
-
} & {
|
|
135
|
-
resultFunc: (resultFuncArgs_0: WarningFormState) => boolean;
|
|
136
|
-
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => boolean) & {
|
|
137
|
-
clearCache: () => void;
|
|
138
|
-
resultsCount: () => number;
|
|
139
|
-
resetResultsCount: () => void;
|
|
140
|
-
};
|
|
141
|
-
lastResult: () => boolean;
|
|
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;
|
|
150
|
-
};
|
|
151
|
-
export declare const getWarningType: ((state: WarningModuleStore) => import("./types").WarningType | undefined) & {
|
|
152
|
-
clearCache: () => void;
|
|
153
|
-
resultsCount: () => number;
|
|
154
|
-
resetResultsCount: () => void;
|
|
155
|
-
} & {
|
|
156
|
-
resultFunc: (resultFuncArgs_0: WarningFormState) => import("./types").WarningType | undefined;
|
|
157
|
-
memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => import("./types").WarningType | undefined) & {
|
|
158
|
-
clearCache: () => void;
|
|
159
|
-
resultsCount: () => number;
|
|
160
|
-
resetResultsCount: () => void;
|
|
161
|
-
};
|
|
162
|
-
lastResult: () => import("./types").WarningType | 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;
|
|
171
|
-
};
|
|
172
|
-
export declare const getPublicWarningPanelId: ((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;
|
|
192
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { Airmet, CancelAirmet, CancelSigmet, ProductStatus, Sigmet } from '@opengeoweb/api';
|
|
2
|
-
export interface Area {
|
|
3
|
-
objectName: string;
|
|
4
|
-
geoJSON: GeoJSON.FeatureCollection;
|
|
5
|
-
areaId?: string;
|
|
6
|
-
published_warning_uuid?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface PublicWarningDetail {
|
|
9
|
-
id?: string;
|
|
10
|
-
phenomenon: string;
|
|
11
|
-
areas?: Area[];
|
|
12
|
-
validFrom: string;
|
|
13
|
-
validUntil: string;
|
|
14
|
-
level: string;
|
|
15
|
-
probability: number;
|
|
16
|
-
descriptionOriginal: string;
|
|
17
|
-
descriptionTranslation: string;
|
|
18
|
-
domain?: string;
|
|
19
|
-
warningProposalSource?: string;
|
|
20
|
-
authority?: string;
|
|
21
|
-
type?: number;
|
|
22
|
-
warning_handle_uuid?: string;
|
|
23
|
-
proposal_id?: string;
|
|
24
|
-
linked_to_id?: string;
|
|
25
|
-
incident?: string;
|
|
26
|
-
}
|
|
27
|
-
export type AviationWarningDetails = Airmet | CancelAirmet | Sigmet | CancelSigmet;
|
|
28
|
-
export declare enum PublicWarningStatus {
|
|
29
|
-
DRAFT = "DRAFT",
|
|
30
|
-
DRAFT_PUBLISHED = "DRAFT_PUBLISHED",
|
|
31
|
-
PUBLISHED = "PUBLISHED",
|
|
32
|
-
TODO = "TODO",
|
|
33
|
-
EXPIRED = "EXPIRED",
|
|
34
|
-
IGNORED = "IGNORED",
|
|
35
|
-
WITHDRAWN = "WITHDRAWN"
|
|
36
|
-
}
|
|
37
|
-
export declare enum MaritimeWarningAction {
|
|
38
|
-
SELECT = "SELECT",
|
|
39
|
-
UPDATE = "UPDATE"
|
|
40
|
-
}
|
|
41
|
-
export type MaritimeWarningsType = 'maritimeWarningCoastal' | 'maritimeWarningNorthSea';
|
|
42
|
-
export type WarningType = 'public' | 'airmet' | 'sigmet' | MaritimeWarningsType;
|
|
43
|
-
interface BaseWarning {
|
|
44
|
-
status?: PublicWarningStatus;
|
|
45
|
-
productStatus?: ProductStatus;
|
|
46
|
-
editor?: string;
|
|
47
|
-
warningDetail: PublicWarningDetail;
|
|
48
|
-
id?: string;
|
|
49
|
-
lastUpdatedTime?: string;
|
|
50
|
-
}
|
|
51
|
-
export interface PublicWarning extends BaseWarning {
|
|
52
|
-
type: 'public';
|
|
53
|
-
}
|
|
54
|
-
export interface AirmetWarning extends BaseWarning {
|
|
55
|
-
type: 'airmet';
|
|
56
|
-
sigmetAirmetDetails: Airmet | CancelAirmet;
|
|
57
|
-
}
|
|
58
|
-
export interface SigmetWarning extends BaseWarning {
|
|
59
|
-
type: 'sigmet';
|
|
60
|
-
sigmetAirmetDetails: Sigmet | CancelSigmet;
|
|
61
|
-
}
|
|
62
|
-
export interface MaritimeWarning extends BaseWarning {
|
|
63
|
-
type: MaritimeWarningsType;
|
|
64
|
-
warningDetail: PublicWarningDetail & {
|
|
65
|
-
windDirectionFrom?: string;
|
|
66
|
-
windForce?: string;
|
|
67
|
-
changeType?: string;
|
|
68
|
-
windDirectionTo?: string;
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
export type Warning = PublicWarning | AirmetWarning | SigmetWarning | MaritimeWarning;
|
|
72
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { layerTypes, mapTypes } from '@opengeoweb/store';
|
|
2
|
-
export declare const initialBbox: {
|
|
3
|
-
srs: "EPSG:3857";
|
|
4
|
-
bbox: {
|
|
5
|
-
left: number;
|
|
6
|
-
bottom: number;
|
|
7
|
-
right: number;
|
|
8
|
-
top: number;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
interface UseDefaultMapSettingsProps {
|
|
12
|
-
mapId?: string;
|
|
13
|
-
baseLayers?: layerTypes.Layer[];
|
|
14
|
-
bbox?: mapTypes.Bbox;
|
|
15
|
-
srs?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare const useDefaultMapSettings: (props?: UseDefaultMapSettingsProps) => void;
|
|
18
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Airmet, CancelAirmet, CancelSigmet, Sigmet } from '@opengeoweb/sigmet-airmet';
|
|
2
|
-
import type { PublicWarning } from '../store/warningsForm/types';
|
|
3
|
-
export declare const testGeoJSON: GeoJSON.FeatureCollection;
|
|
4
|
-
export declare function fakeErrorRequest<ReturnType>(error: string): Promise<ReturnType>;
|
|
5
|
-
export declare const fakePostError = "2 validation errors for Request\nbody -> warningDetail -> phenomenon\n value is not a valid enumeration member; permitted: 'wind', 'fog', 'thunderstorm', 'snowIce', 'rain', 'highTemp', 'funnelCloud', 'lowTemp', 'coastalEvent' (type=type_error.enum; enum_values=[<PhenomenonEnum.WIND: 'wind'>, <PhenomenonEnum.FOG: 'fog'>, <PhenomenonEnum.THUNDERSTORM: 'thunderstorm'>, <PhenomenonEnum.SNOW_ICE: 'snowIce'>, <PhenomenonEnum.RAIN: 'rain'>, <PhenomenonEnum.HIGH_TEMP: 'highTemp'>, <PhenomenonEnum.FUNNEL_CLD: 'funnelCloud'>, <PhenomenonEnum.LOW_TEMP: 'lowTemp'>, <PhenomenonEnum.COASTAL_EVENT: 'coastalEvent'>])\nbody -> warningDetail -> level\n value is not a valid enumeration member; permitted: 'moderate', 'severe', 'extreme' (type=type_error.enum; enum_values=[<LevelEnum.MODERATE: 'moderate'>, <LevelEnum.SEVERE: 'severe'>, <LevelEnum.EXTREME: 'extreme'>])";
|
|
6
|
-
export declare const testPublicWarning: PublicWarning;
|
|
7
|
-
export declare const testDraftAirmet: Airmet | CancelAirmet;
|
|
8
|
-
export declare const testPublishedAirmet: Airmet | CancelAirmet;
|
|
9
|
-
export declare const testDraftAirmet2: Sigmet | CancelSigmet;
|
|
10
|
-
export declare const testDraftSigmet: Sigmet | CancelSigmet;
|
|
11
|
-
export declare const testPublishedSigmet: Sigmet | CancelSigmet;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DATE_FORMAT_HEADER = "EEEE, MMMM dd";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { RequestHandler } from 'msw';
|
|
2
|
-
import type { SigmetFromBackend } from '@opengeoweb/api';
|
|
3
|
-
import type { DrawingFromBE, DrawingListItem } from '../../store/warningsDrawings/types';
|
|
4
|
-
import type { AirmetWarning, MaritimeWarning, PublicWarning, SigmetWarning, Warning } from '../../store/warningsForm/types';
|
|
5
|
-
export declare const newSigmet: SigmetFromBackend;
|
|
6
|
-
declare const drawingList: DrawingListItem[];
|
|
7
|
-
declare const drawingsListFullContent: DrawingFromBE[];
|
|
8
|
-
declare const warningList: PublicWarning[];
|
|
9
|
-
declare const lengthWarningListWithoutExpiredWithdrawn: number;
|
|
10
|
-
declare const sigmetList: SigmetWarning[];
|
|
11
|
-
declare const airmetList: AirmetWarning[];
|
|
12
|
-
declare const maritimeList: MaritimeWarning[];
|
|
13
|
-
declare const combinedWarnings: Warning[];
|
|
14
|
-
declare const areaKeywordList: string[];
|
|
15
|
-
export declare const publicWarningEndpoints: import("msw").HttpHandler[];
|
|
16
|
-
export declare const maritimeWarningEndpoints: import("msw").HttpHandler[];
|
|
17
|
-
export declare const drawingEndpoints: import("msw").HttpHandler[];
|
|
18
|
-
export declare const makeWarningsHandler: (result: Warning[]) => RequestHandler;
|
|
19
|
-
declare const requestHandlers: import("msw").HttpHandler[];
|
|
20
|
-
export { drawingList, drawingsListFullContent, warningList, lengthWarningListWithoutExpiredWithdrawn, sigmetList, airmetList, combinedWarnings, areaKeywordList, requestHandlers, maritimeList, };
|
package/src/lib/utils/i18n.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import i18n from 'i18next';
|
|
2
|
-
import type { UseTranslationResponse } from 'react-i18next';
|
|
3
|
-
export declare const WARN_NAMESPACE = "warn";
|
|
4
|
-
export declare const initWarnI18n: () => void;
|
|
5
|
-
export declare const translateInTestsAndStories: (key: string, params?: Record<string, string | number> | undefined) => string;
|
|
6
|
-
export declare const useWarningsTranslation: () => UseTranslationResponse<typeof WARN_NAMESPACE, typeof i18n>;
|
|
7
|
-
export { i18n };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { AirmetFromBackend, CancelAirmet, CancelSigmet, SigmetFromBackend } from '@opengeoweb/api';
|
|
2
|
-
import { ProductStatus } from '@opengeoweb/api';
|
|
3
|
-
import type { AviationProduct, ProductConfig } from '@opengeoweb/sigmet-airmet';
|
|
4
|
-
import type { Warning, AviationWarningDetails, AirmetWarning, SigmetWarning } from '../store/warningsForm/types';
|
|
5
|
-
import { PublicWarningStatus } from '../store/warningsForm/types';
|
|
6
|
-
export declare function isCancelAirmet(warningDetail: AviationWarningDetails): warningDetail is CancelAirmet;
|
|
7
|
-
export declare function isCancelSigmet(warningDetail: AviationWarningDetails): warningDetail is CancelSigmet;
|
|
8
|
-
export declare const flattenPublicWarning: (publicWarning: Warning) => Partial<AviationWarningDetails>;
|
|
9
|
-
export declare const transformAirmetToWarningFormat: (apiAirmet: AirmetFromBackend) => AirmetWarning;
|
|
10
|
-
export declare const transformSigmetToWarningFormat: (apiSigmet: SigmetFromBackend) => SigmetWarning;
|
|
11
|
-
export declare const mapProductStatusToWarningStatus: (productStatus?: ProductStatus) => PublicWarningStatus;
|
|
12
|
-
export declare const transformSigmetToProductFormat: (warning: SigmetFromBackend | undefined) => AviationProduct;
|
|
13
|
-
export declare const transformAirmetToProductFormat: (warning: AirmetFromBackend | undefined) => AviationProduct;
|
|
14
|
-
export declare const transformSigmetFromBackendToProductFormat: (warning: SigmetFromBackend) => AviationProduct;
|
|
15
|
-
export declare const transformAirmetFromBackendToProductFormat: (warning: AirmetFromBackend) => AviationProduct;
|
|
16
|
-
export declare const getEmptySigmetWarning: (productConfig: ProductConfig) => AviationProduct;
|
|
17
|
-
export declare const getEmptyAirmetWarning: (productConfig: ProductConfig) => AviationProduct;
|
|
18
|
-
export declare const renewAviationProduct: <T extends SigmetWarning | AirmetWarning>(aviationWarning: T, productConfig: ProductConfig) => T;
|
|
19
|
-
export declare const amendAviationProduct: <T extends SigmetWarning | AirmetWarning>(aviationWarning: T, productConfig: ProductConfig) => T;
|
|
20
|
-
export declare const duplicateAviationProduct: <T extends SigmetWarning | AirmetWarning>(aviationWarning: T) => T;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { RefObject } from 'react';
|
|
2
|
-
import type { PickedFilterState, OptionKey } from '../components/FilterList/filter-hooks';
|
|
3
|
-
import { PublicWarningStatus } from '../store/warningsForm/types';
|
|
4
|
-
import type { Warning } from '../store/warningsForm/types';
|
|
5
|
-
export declare const ERROR_NOT_FOUND = "Request failed with status code 400";
|
|
6
|
-
export declare const MOCK_USERNAME = "user.name";
|
|
7
|
-
interface OverflowCheckResult {
|
|
8
|
-
ref: RefObject<HTMLDivElement>;
|
|
9
|
-
isOverflowing: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const getSortedStatus: (status: PublicWarningStatus) => PublicWarningStatus;
|
|
12
|
-
export declare const getWarningWithoutIdStatusEditor: (warning: Warning) => Warning;
|
|
13
|
-
export declare const getWarningWithLinkedToId: (warning: Warning) => Warning;
|
|
14
|
-
export declare const getWarningWithProposalId: (warning: Warning) => Warning;
|
|
15
|
-
export default function useOverflowCheck(text: string): OverflowCheckResult;
|
|
16
|
-
export declare const getTranslationKey: (optionId: OptionKey<keyof PickedFilterState>, id: string) => string;
|
|
17
|
-
export declare const getIdFromUrl: (url: string) => string;
|
|
18
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|