@opengeoweb/warnings 15.3.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 +2180 -939
- 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,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { FilterTranslation } from '../../../store/warningsFilters/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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PhenomenonField';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ProbabilityField';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { FeatureCollection, GeoJsonProperties, Geometry } from 'geojson';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { AirmetFromBackend, SigmetFromBackend } from '@opengeoweb/api';
|
|
4
|
-
import type { AviationProduct, FormMode, ProductStatus } from '@opengeoweb/sigmet-airmet';
|
|
5
|
-
import type { MapPreset } from '@opengeoweb/store';
|
|
6
|
-
import type { BaseDrawingListItem, DrawingListItem } from '../../store/warningsDrawings/types';
|
|
7
|
-
import type { WarningLevel } from './LevelField';
|
|
8
|
-
import type { FormError } from '../../store/warningsForm/reducer';
|
|
9
|
-
import type { Area, PublicWarningDetail, WarningType } from '../../store/warningsForm/types';
|
|
10
|
-
export declare const useScrollTopOnError: (error: FormError) => React.RefObject<HTMLDivElement>;
|
|
11
|
-
export declare const getEmptyPublicWarning: () => PublicWarningDetail;
|
|
12
|
-
export declare const getFormData: (publicWarningsDetails: PublicWarningDetail | undefined, object?: DrawingListItem) => FormData;
|
|
13
|
-
interface FormData extends PublicWarningDetail {
|
|
14
|
-
IS_DRAFT?: boolean | string;
|
|
15
|
-
object?: BaseDrawingListItem;
|
|
16
|
-
'translation-select'?: string;
|
|
17
|
-
}
|
|
18
|
-
export declare const prepareFormValues: (data: FormData) => PublicWarningDetail;
|
|
19
|
-
export interface FormProps {
|
|
20
|
-
defaultMapPreset?: MapPreset;
|
|
21
|
-
onSaveForm?: (formValues: PublicWarningDetail) => Promise<Headers | null>;
|
|
22
|
-
onPublishForm?: (formValues: PublicWarningDetail) => Promise<Headers | null>;
|
|
23
|
-
onClearForm?: () => void;
|
|
24
|
-
onCloseForm?: () => void;
|
|
25
|
-
onSaveAviationForm?: (productToPost: AviationProduct, newStatus: ProductStatus, warningType: 'sigmet' | 'airmet', vaSigmetMoveToFIR?: string, setSelectedUUID?: (uuid: string) => void) => Promise<SigmetFromBackend | AirmetFromBackend | undefined>;
|
|
26
|
-
object?: DrawingListItem;
|
|
27
|
-
publicWarningDetails?: PublicWarningDetail;
|
|
28
|
-
error?: FormError;
|
|
29
|
-
isReadOnly?: boolean;
|
|
30
|
-
onFormDirty?: (isFormDirty: boolean) => void;
|
|
31
|
-
isSnapshot?: boolean;
|
|
32
|
-
onAddObject?: () => void;
|
|
33
|
-
selectedAviationProduct?: AviationProduct;
|
|
34
|
-
warningType?: WarningType;
|
|
35
|
-
mode?: FormMode;
|
|
36
|
-
formState?: string;
|
|
37
|
-
onSetViewModeResetArea?: (area: Area[]) => void;
|
|
38
|
-
storedStartGeoJSON?: FeatureCollection<Geometry, GeoJsonProperties>;
|
|
39
|
-
storedEndGeoJSON?: FeatureCollection<Geometry, GeoJsonProperties>;
|
|
40
|
-
setWarningLevel?: (level: WarningLevel | '') => void;
|
|
41
|
-
}
|
|
42
|
-
export declare function warningLevelFeatureColors(level: WarningLevel | undefined, geoJSON: FeatureCollection<Geometry, GeoJsonProperties> | undefined, // Allow undefined
|
|
43
|
-
isAviationWarning?: boolean): FeatureCollection<Geometry, GeoJsonProperties>;
|
|
44
|
-
export declare const PublicWarningsForm: React.FC<FormProps>;
|
|
45
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import type { FormProps } from './PublicWarningsForm';
|
|
3
|
-
interface DemoProps {
|
|
4
|
-
formProps: FormProps;
|
|
5
|
-
darkMode: boolean;
|
|
6
|
-
isReadOnly: boolean;
|
|
7
|
-
error?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const PublicWarningsFormDemo: ({ formProps, isReadOnly, error, }: DemoProps) => React.ReactElement;
|
|
10
|
-
type Story = StoryObj<typeof PublicWarningsFormDemo>;
|
|
11
|
-
declare const meta: Meta<typeof PublicWarningsFormDemo>;
|
|
12
|
-
export default meta;
|
|
13
|
-
export declare const LightMode: Story;
|
|
14
|
-
export declare const DarkMode: Story;
|
|
15
|
-
export declare const EmptyForm: Story;
|
|
16
|
-
export declare const EmptyFormDark: Story;
|
|
17
|
-
export declare const ErrorForm: Story;
|
|
18
|
-
export declare const ErrorFormDark: Story;
|
|
19
|
-
export declare const ReadOnlyForm: Story;
|
|
20
|
-
export declare const ReadOnlyFormDark: Story;
|
|
21
|
-
export declare const PublicWarningsFormAirmetDraftLight: Story;
|
|
22
|
-
export declare const PublicWarningsFormAirmetDraftDark: Story;
|
|
23
|
-
export declare const PublicWarningsFormAirmetCancels: () => React.ReactElement;
|
|
24
|
-
export declare const PublicWarningsFormAirmetCancelled: () => React.ReactElement;
|
|
25
|
-
export declare const PublicWarningsFormSigmetCancels: () => React.ReactElement;
|
|
26
|
-
export declare const PublicWarningsFormSigmetCancelled: () => React.ReactElement;
|
|
27
|
-
export declare const PublicWarningsFormCancelAirmet: {
|
|
28
|
-
(): React.ReactElement;
|
|
29
|
-
tags: string[];
|
|
30
|
-
};
|
|
31
|
-
export declare const PublicWarningsFormCancelSigmet: {
|
|
32
|
-
(): React.ReactElement;
|
|
33
|
-
tags: string[];
|
|
34
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AviationProduct, FormMode } from '@opengeoweb/sigmet-airmet';
|
|
3
|
-
import type { MapPreset } from '@opengeoweb/store';
|
|
4
|
-
import type { WarningType } from '../../store/warningsForm/types';
|
|
5
|
-
export interface PublicWarningsFormConnectProps {
|
|
6
|
-
editor?: string;
|
|
7
|
-
selectedAviationProduct?: AviationProduct & {
|
|
8
|
-
id?: string;
|
|
9
|
-
};
|
|
10
|
-
warningType?: WarningType;
|
|
11
|
-
mode?: FormMode;
|
|
12
|
-
defaultMapPreset?: MapPreset;
|
|
13
|
-
}
|
|
14
|
-
export declare const PublicWarningsFormConnect: React.FC<PublicWarningsFormConnectProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
tags: string[];
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const PublicWarningsFormConnectDemo: () => React.ReactElement;
|
|
8
|
-
export declare const PublicWarningsFormConnectDemoWithValues: () => React.ReactElement;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
tags: string[];
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const SaveAndPublishError: {
|
|
8
|
-
(): React.ReactElement;
|
|
9
|
-
parameters: {
|
|
10
|
-
msw: {
|
|
11
|
-
handlers: {
|
|
12
|
-
warnings: import("msw").HttpHandler[];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare const SigmetPublishConflict409: {
|
|
18
|
-
(): React.ReactElement;
|
|
19
|
-
parameters: {
|
|
20
|
-
msw: {
|
|
21
|
-
handlers: import("msw").HttpHandler[];
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { TFunction } from 'i18next';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export declare const VALID_FROM_MAX_HOURS_AFTER_CURRENT = 192;
|
|
4
|
-
export declare const VALID_UNTIL_DEFAULT_OFFSET = 6;
|
|
5
|
-
export declare const isValueBeforeCurrentTime: (value: string, t: TFunction) => boolean | string;
|
|
6
|
-
export declare const isMaxHoursAfterCurrentTime: (value: string, t: TFunction) => boolean | string;
|
|
7
|
-
/**
|
|
8
|
-
* Automatically adjusts the valid until field when valid from is changed
|
|
9
|
-
* If the new valid from time is after the current valid until time,
|
|
10
|
-
* it sets valid until to 6 hours after valid from
|
|
11
|
-
* @param validFrom - The new valid from ISO date string
|
|
12
|
-
* @param validUntil - The current valid until ISO date string
|
|
13
|
-
* @returns The adjusted valid until ISO date string, or null if no adjustment needed
|
|
14
|
-
*/
|
|
15
|
-
export declare const offsetTimeValidUntilField: (validFrom: string, validUntil: string) => string | null;
|
|
16
|
-
export declare const ValidFrom: React.FC<{
|
|
17
|
-
isDisabled?: boolean;
|
|
18
|
-
isReadOnly?: boolean;
|
|
19
|
-
}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ValidFromField';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { TFunction } from 'i18next';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export declare const VALID_UNTIL_MAX_HOURS_AFTER_CURRENT = 192;
|
|
4
|
-
export declare const VALID_UNTIL_MIN_HOURS_AFTER_VALID_FROM = 1;
|
|
5
|
-
export declare const isValueBeforeCurrentTime: (value: string, t: TFunction) => boolean | string;
|
|
6
|
-
export declare const isMaxHoursAfterCurrentTime: (value: string, t: TFunction) => boolean | string;
|
|
7
|
-
export declare const isMinHoursAfterValidFrom: (value: string, validFromValue: string, t: TFunction) => boolean | string;
|
|
8
|
-
export declare const ValidUntil: React.FC<{
|
|
9
|
-
isDisabled?: boolean;
|
|
10
|
-
isReadOnly?: boolean;
|
|
11
|
-
}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ValidUntilField';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AviationProduct } from '@opengeoweb/sigmet-airmet';
|
|
3
|
-
import type { WarningType } from '../../store/warningsForm/types';
|
|
4
|
-
export declare const CancelAviationDialogContent: ({ product, warningType, errorMessage, }: {
|
|
5
|
-
product: AviationProduct;
|
|
6
|
-
warningType: WarningType;
|
|
7
|
-
errorMessage?: string;
|
|
8
|
-
}) => React.ReactElement;
|
package/src/lib/components/PublicWarningsFormDialog/AviationWarningCancelDialogContent.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AviationProduct, Sigmet, SigmetConfig } from '@opengeoweb/sigmet-airmet';
|
|
3
|
-
type CancelType = 'sigmet' | 'airmet';
|
|
4
|
-
export interface CancelAviationConfirmDialogProps {
|
|
5
|
-
open: boolean;
|
|
6
|
-
type: CancelType;
|
|
7
|
-
product: AviationProduct;
|
|
8
|
-
showVA: boolean;
|
|
9
|
-
aviationConfig?: SigmetConfig;
|
|
10
|
-
sigmet?: Sigmet;
|
|
11
|
-
confirmLabel: string;
|
|
12
|
-
title: string;
|
|
13
|
-
onClose: () => void;
|
|
14
|
-
cancelAviationProduct: (p: AviationProduct, t: CancelType) => Promise<unknown>;
|
|
15
|
-
onSuccess?: () => void;
|
|
16
|
-
}
|
|
17
|
-
export declare const CancelAviationConfirmDialog: React.FC<CancelAviationConfirmDialogProps>;
|
|
18
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Position, DraggableSize, HeaderSize } from '@opengeoweb/shared';
|
|
3
|
-
import type { AviationProduct } from '@opengeoweb/sigmet-airmet';
|
|
4
|
-
import type { uiTypes } from '@opengeoweb/store';
|
|
5
|
-
import type { WarningType } from '../../store/warningsForm/types';
|
|
6
|
-
export interface PublicWarningsFormDialogProps {
|
|
7
|
-
bounds?: string;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
onMouseDown?: () => void;
|
|
10
|
-
isOpen: boolean;
|
|
11
|
-
order?: number;
|
|
12
|
-
source?: uiTypes.Source;
|
|
13
|
-
size?: DraggableSize;
|
|
14
|
-
startPosition?: Position;
|
|
15
|
-
headerSize?: HeaderSize;
|
|
16
|
-
children: React.ReactNode;
|
|
17
|
-
isLoading?: boolean;
|
|
18
|
-
isReadOnly?: boolean;
|
|
19
|
-
onChangeFormMode?: (isReadOnly: boolean) => void;
|
|
20
|
-
shouldHideFormMode?: boolean;
|
|
21
|
-
publicWarningEditor?: string;
|
|
22
|
-
selectedAviationProduct?: AviationProduct;
|
|
23
|
-
warningType?: WarningType;
|
|
24
|
-
}
|
|
25
|
-
export declare const PublicWarningsFormDialog: React.FC<PublicWarningsFormDialogProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { PublicWarningsFormDialog } from './PublicWarningsFormDialog';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
tags: string[];
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
type Story = StoryObj<typeof PublicWarningsFormDialog>;
|
|
9
|
-
export declare const PublicWarningsFormDialogLight: Story;
|
|
10
|
-
export declare const PublicWarningsFormDialogDark: Story;
|
|
11
|
-
export declare const PublicWarningsFormDialogBigLight: Story;
|
|
12
|
-
export declare const PublicWarningsFormDialogBigDark: Story;
|
|
13
|
-
export declare const PublicWarningsFormDialogBigErrorLight: Story;
|
|
14
|
-
export declare const PublicWarningsFormDialogBigErrorDark: Story;
|
|
15
|
-
export declare const PublicWarningsFormDialogReadOnlyLight: Story;
|
|
16
|
-
export declare const PublicWarningsFormDialogReadOnlyDark: Story;
|
|
17
|
-
export declare const PublicWarningsFormDialogTakeoverWarningLight: Story;
|
|
18
|
-
export declare const PublicWarningsFormDialogTakeoverWarningDark: Story;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { TFunction } from 'i18next';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { ConfirmationOptions, Position } from '@opengeoweb/shared';
|
|
4
|
-
import { uiTypes } from '@opengeoweb/store';
|
|
5
|
-
import type { MapPreset } from '@opengeoweb/store';
|
|
6
|
-
export declare const warningFormConfirmationOptions: (t: TFunction) => ConfirmationOptions;
|
|
7
|
-
export declare const isAlreadyEdited: (publicWarningEditor: string | undefined, username: string | undefined) => boolean;
|
|
8
|
-
export declare const PublicWarningsFormDialogConnect: React.FC<{
|
|
9
|
-
bounds?: string;
|
|
10
|
-
source?: uiTypes.Source;
|
|
11
|
-
startPosition?: Position;
|
|
12
|
-
defaultMapPreset?: MapPreset;
|
|
13
|
-
}>;
|
package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.stories.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
tags: string[];
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const PublicWarningsFormDialogConnectMap: () => React.ReactElement;
|
|
8
|
-
export declare const PublicWarningsFormDialogConnectWithoutMap: () => React.ReactElement;
|
|
9
|
-
export declare const PublicWarningsFormDialogConnectWithoutMapWithValues: () => React.ReactElement;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { TooltipProps } from '@mui/material';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface WarningAvatarProps {
|
|
4
|
-
editor: string;
|
|
5
|
-
status?: string;
|
|
6
|
-
tooltipPlacement?: TooltipProps['placement'];
|
|
7
|
-
}
|
|
8
|
-
declare const WarningAvatar: React.FC<WarningAvatarProps>;
|
|
9
|
-
export default WarningAvatar;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { FeatureCollection } from 'geojson';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { MapPreset } from '@opengeoweb/store';
|
|
4
|
-
export declare const EXTENT_PADDING = 50;
|
|
5
|
-
interface WarningsMapViewProps {
|
|
6
|
-
geojsonFeature?: FeatureCollection | undefined;
|
|
7
|
-
defaultMapPreset?: MapPreset;
|
|
8
|
-
isSnapshot?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const WarningsMapView: React.FC<WarningsMapViewProps>;
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Warning } from '../../store/warningsForm/types';
|
|
3
|
-
interface WarningBlockProps {
|
|
4
|
-
warning: Warning;
|
|
5
|
-
left: number;
|
|
6
|
-
top: number;
|
|
7
|
-
width: number;
|
|
8
|
-
}
|
|
9
|
-
export declare const WarningBlock: React.FC<WarningBlockProps>;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { WarningsTimeline } from './WarningsTimeline';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: import("react").FC<import("./WarningsTimeline").WarningsTimelineProps>;
|
|
6
|
-
tags: string[];
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
type Story = StoryObj<typeof WarningsTimeline>;
|
|
10
|
-
export declare const ShortRange: Story;
|
|
11
|
-
export declare const LongRange: Story;
|
|
12
|
-
export declare const NoWarnings: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PublicWarningStatus } from '../../store/warningsForm/types';
|
|
2
|
-
import { WarningLevel } from '../PublicWarningsForm/LevelField';
|
|
3
|
-
/**
|
|
4
|
-
* Timeline Block Color Theme
|
|
5
|
-
*
|
|
6
|
-
* Organized by warning type (public warnings by level, aviation)
|
|
7
|
-
* Each type has colors for each status: published, draft, expired
|
|
8
|
-
*/
|
|
9
|
-
export interface BlockStyle {
|
|
10
|
-
background: string;
|
|
11
|
-
border: string;
|
|
12
|
-
borderColor: string;
|
|
13
|
-
iconColor: string;
|
|
14
|
-
letterColor: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const getBlockStyle: (level: WarningLevel | null, status: PublicWarningStatus | undefined, isAviation: boolean) => BlockStyle;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const EDGE_PADDING = 24;
|
|
2
|
-
export type TickType = 'day' | 'major' | 'dashed';
|
|
3
|
-
export interface Tick {
|
|
4
|
-
time: Date;
|
|
5
|
-
type: TickType;
|
|
6
|
-
}
|
|
7
|
-
export type BlockSize = 'xxs' | 'xs' | 's' | 'l';
|
|
8
|
-
export declare const getTimelineX: (targetTime: Date, timelineStart: Date, timelineEnd: Date, drawableWidth: number) => number;
|
|
9
|
-
export declare const getTimeFromX: (x: number, timelineStart: Date, timelineEnd: Date, drawableWidth: number) => Date;
|
|
10
|
-
export declare const generateTicks: (timelineStart: Date, timelineEnd: Date) => Tick[];
|
|
11
|
-
export declare const getTickLineStyle: (tickType: TickType) => {
|
|
12
|
-
width: string;
|
|
13
|
-
borderLeft: string;
|
|
14
|
-
};
|
|
15
|
-
export declare const getBlockSize: (width: number) => BlockSize;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/src/lib/store/index.d.ts
DELETED
package/src/lib/store/store.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Store } from '@reduxjs/toolkit';
|
|
2
|
-
import type { SnackbarModuleStore } from '@opengeoweb/snackbar';
|
|
3
|
-
import type { DrawtoolModuleStore, UIModuleState, WebMapStateModuleState } from '@opengeoweb/store';
|
|
4
|
-
import type { WarningModuleStore } from './types';
|
|
5
|
-
export declare const warningsReducersMap: {
|
|
6
|
-
webmap: import("redux").Reducer<import("dist/libs/store/src/store/map/types").WebMapState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").WebMapState>;
|
|
7
|
-
layers: import("redux").Reducer<import("dist/libs/store/src/store/map/types").LayerState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").LayerState>;
|
|
8
|
-
ui: import("redux").Reducer<import("dist/libs/store/src/store/ui/types").UIStoreType, import("redux").UnknownAction, import("dist/libs/store/src/store/ui/types").UIStoreType>;
|
|
9
|
-
drawingtools: import("redux").Reducer<import("dist/libs/store/src/store/drawingTool/reducer").DrawingToolState, import("redux").UnknownAction, import("dist/libs/store/src/store/drawingTool/reducer").DrawingToolState>;
|
|
10
|
-
drawings: import("redux").Reducer<import("./warningsDrawings/types").DrawState>;
|
|
11
|
-
warningsForm: import("redux").Reducer<import("./warningsForm/reducer").WarningFormState>;
|
|
12
|
-
warningsFilters: import("redux").Reducer<import("./warningsFilters/types").WarningsFiltersState>;
|
|
13
|
-
snackbar: import("redux").Reducer<import("dist/libs/snackbar/src/lib/store/types").SnackbarState, import("redux").UnknownAction, import("dist/libs/snackbar/src/lib/store/types").SnackbarState>;
|
|
14
|
-
syncGroups: import("redux").Reducer<import("dist/libs/store/src/store/generic/syncGroups/types").SynchronizationGroupState, import("redux").UnknownAction, import("dist/libs/store/src/store/generic/syncGroups/types").SynchronizationGroupState>;
|
|
15
|
-
};
|
|
16
|
-
export declare const warningsMiddlewares: (import("@reduxjs/toolkit").ListenerMiddleware<WarningModuleStore, import("redux-thunk").ThunkDispatch<WarningModuleStore, unknown, import("redux").UnknownAction>, unknown> | import("@reduxjs/toolkit").ListenerMiddleware<SnackbarModuleStore, import("redux-thunk").ThunkDispatch<SnackbarModuleStore, unknown, import("redux").UnknownAction>, unknown>)[];
|
|
17
|
-
export declare const createMockStore: (mockState?: WebMapStateModuleState | DrawtoolModuleStore | UIModuleState | WarningModuleStore | SnackbarModuleStore) => Store;
|
package/src/lib/store/types.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CoreAppStore } from '@opengeoweb/store';
|
|
2
|
-
import type { DrawState } from './warningsDrawings/types';
|
|
3
|
-
import type { WarningsFiltersState } from './warningsFilters/types';
|
|
4
|
-
import type { WarningFormState } from './warningsForm/reducer';
|
|
5
|
-
export interface WarningModuleStore extends CoreAppStore {
|
|
6
|
-
drawings?: DrawState;
|
|
7
|
-
warningsForm?: WarningFormState;
|
|
8
|
-
warningsFilters?: WarningsFiltersState;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { warningsDrawingsReducer, warningsDrawingsActions } from './reducer';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
|
-
import type { DrawItem, DrawState, SetDrawValuesPayload, SubmitDrawValuesPayload } from './types';
|
|
3
|
-
export declare const drawAdapter: import("@reduxjs/toolkit").EntityAdapter<DrawItem, string>;
|
|
4
|
-
export declare const initialState: DrawState;
|
|
5
|
-
export declare const warningsDrawingsReducer: import("redux").Reducer<DrawState>, warningsDrawingsActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
6
|
-
setDrawValues: (draft: Draft<DrawState>, action: PayloadAction<SetDrawValuesPayload>) => void;
|
|
7
|
-
submitDrawValues: (draft: Draft<DrawState>, action: PayloadAction<SubmitDrawValuesPayload>) => void;
|
|
8
|
-
setFormDirty: (draft: Draft<DrawState>, action: PayloadAction<{
|
|
9
|
-
drawingInstanceId: string;
|
|
10
|
-
isFormDirty: boolean;
|
|
11
|
-
}>) => void;
|
|
12
|
-
}, "drawingForm">;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { DrawState } from './types';
|
|
2
|
-
import type { WarningModuleStore } from '../types';
|
|
3
|
-
export declare const getDrawStore: (store: WarningModuleStore) => DrawState;
|
|
4
|
-
export declare const selectDrawByInstanceId: (state: WarningModuleStore, id: string) => {
|
|
5
|
-
id: string;
|
|
6
|
-
objectName: string;
|
|
7
|
-
drawingInstanceId: string;
|
|
8
|
-
isFormDirty?: boolean | undefined;
|
|
9
|
-
};
|
|
10
|
-
export declare const getWarningFormDirty: ((state: WarningModuleStore, id: string) => boolean) & {
|
|
11
|
-
clearCache: () => void;
|
|
12
|
-
resultsCount: () => number;
|
|
13
|
-
resetResultsCount: () => void;
|
|
14
|
-
} & {
|
|
15
|
-
resultFunc: (resultFuncArgs_0: {
|
|
16
|
-
id: string;
|
|
17
|
-
objectName: string;
|
|
18
|
-
drawingInstanceId: string;
|
|
19
|
-
isFormDirty?: boolean | undefined;
|
|
20
|
-
}) => boolean;
|
|
21
|
-
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
22
|
-
id: string;
|
|
23
|
-
objectName: string;
|
|
24
|
-
drawingInstanceId: string;
|
|
25
|
-
isFormDirty?: boolean | undefined;
|
|
26
|
-
}) => boolean) & {
|
|
27
|
-
clearCache: () => void;
|
|
28
|
-
resultsCount: () => number;
|
|
29
|
-
resetResultsCount: () => void;
|
|
30
|
-
};
|
|
31
|
-
lastResult: () => boolean;
|
|
32
|
-
dependencies: [(state: WarningModuleStore, id: string) => {
|
|
33
|
-
id: string;
|
|
34
|
-
objectName: string;
|
|
35
|
-
drawingInstanceId: string;
|
|
36
|
-
isFormDirty?: boolean | undefined;
|
|
37
|
-
}];
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { EntityState } from '@reduxjs/toolkit';
|
|
2
|
-
export interface DrawItem {
|
|
3
|
-
id: string;
|
|
4
|
-
objectName: string;
|
|
5
|
-
drawingInstanceId: string;
|
|
6
|
-
isFormDirty?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export type DrawState = EntityState<DrawItem, string>;
|
|
9
|
-
export type DrawingScope = 'user' | 'global';
|
|
10
|
-
export interface BaseDrawingListItem {
|
|
11
|
-
id: string;
|
|
12
|
-
objectName: string;
|
|
13
|
-
lastUpdatedTime: string;
|
|
14
|
-
}
|
|
15
|
-
export interface DrawingListItem extends BaseDrawingListItem {
|
|
16
|
-
scope: DrawingScope;
|
|
17
|
-
geoJSON: GeoJSON.FeatureCollection;
|
|
18
|
-
keywords?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface DrawingFromBE extends DrawingListItem {
|
|
21
|
-
username: string;
|
|
22
|
-
}
|
|
23
|
-
export interface DrawingDetails extends Omit<DrawingFromBE, 'id' | 'lastUpdatedTime'> {
|
|
24
|
-
id?: string;
|
|
25
|
-
lastUpdatedTime?: string;
|
|
26
|
-
}
|
|
27
|
-
export type DrawingFromFE = Omit<DrawingDetails, 'username'>;
|
|
28
|
-
export interface FetchDrawingParams {
|
|
29
|
-
keywords?: string;
|
|
30
|
-
search?: string;
|
|
31
|
-
}
|
|
32
|
-
export type SetDrawValuesPayload = DrawItem;
|
|
33
|
-
export type SubmitDrawValuesPayload = DrawingFromFE;
|
|
@@ -1,4 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
export { warningsFiltersReducer, warningsFiltersActions } from './reducer';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import type { WarningsFiltersState } from './types';
|
|
3
|
-
import type { FilterState } from '../../components/FilterList/filter-hooks';
|
|
4
|
-
export declare const initialState: WarningsFiltersState;
|
|
5
|
-
export declare const warningsFiltersReducer: import("redux").Reducer<WarningsFiltersState>, warningsFiltersActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
6
|
-
setWarningFilters: (draft: Draft<WarningsFiltersState>, action: PayloadAction<{
|
|
7
|
-
filterState: Partial<FilterState>;
|
|
8
|
-
panelId?: string;
|
|
9
|
-
systemUpdate: boolean;
|
|
10
|
-
}>) => void;
|
|
11
|
-
}, "warningsFilters">;
|