@opengeoweb/warnings 19.4.0 → 19.5.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/dist/index.esm.js +4098 -3554
- package/dist/src/index.d.ts +1 -1
- package/dist/src/lib/components/{AreaObjectLoader/AreaObjectFilter.d.ts → AreaDrawingLoader/AreaDrawingFilter.d.ts} +2 -2
- package/dist/src/lib/components/{AreaObjectLoader/AreaObjectLoader.d.ts → AreaDrawingLoader/AreaDrawingLoader.d.ts} +3 -3
- package/dist/src/lib/components/{ObjectManager/ObjectManagerConnect.d.ts → AreaDrawingLoader/AreaDrawingLoaderConnect.d.ts} +1 -1
- package/dist/src/lib/components/{AreaObjectLoader/AreasObjects.d.ts → AreaDrawingLoader/AreasDrawings.d.ts} +4 -4
- package/dist/src/lib/components/{ObjectManager/ObjectManager.d.ts → AreaDrawingManager/AreaDrawingManager.d.ts} +3 -3
- package/dist/src/lib/components/{AreaObjectLoader/AreaObjectLoaderConnect.d.ts → AreaDrawingManager/AreaDrawingManagerConnect.d.ts} +1 -1
- package/dist/src/lib/components/{ObjectManager/ObjectManagerMapButtonConnect.d.ts → AreaDrawingManager/AreaDrawingManagerMapButtonConnect.d.ts} +1 -1
- package/dist/src/lib/components/AreaDrawingManager/ConfirmDeleteDialog.d.ts +10 -0
- package/dist/src/lib/components/{ObjectManager/Objects.d.ts → AreaDrawingManager/Drawings.d.ts} +10 -10
- package/dist/src/lib/components/AreaDrawingManager/index.d.ts +2 -0
- package/dist/src/lib/components/DrawingTool/index.d.ts +1 -1
- package/dist/src/lib/components/DrawingTool/{useObjectDrawDialogAction.d.ts → useDrawingDialogAction.d.ts} +5 -5
- package/dist/src/lib/components/DrawingToolForm/DrawingToolForm.d.ts +2 -2
- package/dist/src/lib/components/PublicWarningsForm/AreaField/AreaField.d.ts +4 -4
- package/dist/src/lib/components/PublicWarningsForm/PublicWarningsForm.d.ts +1 -1
- package/dist/src/lib/components/WarningEvents/WarningEventDialog/WarningEventDialogConnect.d.ts +2 -1
- package/dist/src/lib/components/WarningEvents/WarningEventDialog/WarningEventFormDialog.d.ts +3 -1
- package/dist/src/lib/components/WarningEvents/WarningEventForm/WarningEventFormContent.d.ts +9 -0
- package/dist/src/lib/components/WarningEvents/WarningEventForm/WarningEventItem.d.ts +9 -0
- package/dist/src/lib/components/WarningEvents/WarningEventForm/utils.d.ts +6 -1
- package/dist/src/lib/components/WarningEvents/WarningEventForm/warningEventStoryData.d.ts +12 -1
- package/dist/src/lib/components/WarningEvents/WarningEventSummaryDialog/WarningEventSummaryDialog.d.ts +1 -0
- package/dist/src/lib/components/WarningEvents/WarningEventSummaryDialog/WarningEventSummaryForm.d.ts +3 -3
- package/dist/src/lib/components/WarningsMapView/WarningsMapView.d.ts +6 -0
- package/dist/src/lib/store/warningsDrawings/utils.d.ts +2 -2
- package/dist/src/lib/store/warningsFilters/reducer.d.ts +5 -0
- package/dist/src/lib/store/warningsFilters/selectors.d.ts +41 -0
- package/dist/src/lib/store/warningsFilters/types.d.ts +1 -0
- package/package.json +2 -1
- package/dist/src/lib/components/ObjectManager/ConfirmDeleteDialog.d.ts +0 -10
- package/dist/src/lib/components/ObjectManager/index.d.ts +0 -2
- /package/dist/src/lib/components/{ObjectManager → AreaDrawingManager}/Areas.d.ts +0 -0
package/dist/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import warningsTranslations from '../locales/warnings.json';
|
|
2
|
-
export * from './lib/components/
|
|
2
|
+
export * from './lib/components/AreaDrawingManager';
|
|
3
3
|
export * from './lib/components/DrawingTool';
|
|
4
4
|
export * from './lib/components/DrawingToolForm';
|
|
5
5
|
export * from './lib/components/PublicWarningsFormDialog';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ListFilter } from '@opengeoweb/shared';
|
|
3
|
-
export interface
|
|
3
|
+
export interface AreaDrawingFilterProps {
|
|
4
4
|
filters: ListFilter[];
|
|
5
5
|
onClickFilterChip?: (id: string, selected: boolean) => void;
|
|
6
6
|
searchQuery: string;
|
|
7
7
|
onSearch?: (searchQuery: string) => void;
|
|
8
8
|
}
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const AreaDrawingFilter: React.ForwardRefExoticComponent<AreaDrawingFilterProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { HeaderSize, Position, DraggableSize } from '@opengeoweb/shared';
|
|
3
3
|
import type { uiTypes } from '@opengeoweb/store';
|
|
4
|
-
import type {
|
|
4
|
+
import type { AreaDrawingFilterProps } from './AreaDrawingFilter';
|
|
5
5
|
import type { DrawingListItem } from '../../store/warningsDrawings/types';
|
|
6
6
|
import type { Area } from '../../store/warningsForm/types';
|
|
7
7
|
export declare const areaErrorType = "area";
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const AreaDrawingLoader: React.FC<{
|
|
9
9
|
bounds?: string;
|
|
10
10
|
title?: string;
|
|
11
11
|
onClose: () => void;
|
|
@@ -25,4 +25,4 @@ export declare const AreaObjectLoader: React.FC<{
|
|
|
25
25
|
isChangeAreaDisabled?: boolean;
|
|
26
26
|
onRetryRequest?: (errorType: string) => void;
|
|
27
27
|
shouldDisableRemoveWarning?: boolean;
|
|
28
|
-
} &
|
|
28
|
+
} & AreaDrawingFilterProps>;
|
|
@@ -3,18 +3,18 @@ import type { FC } from 'react';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import type { DrawingListItem } from '../../store/warningsDrawings/types';
|
|
5
5
|
import type { Area } from '../../store/warningsForm/types';
|
|
6
|
-
interface
|
|
6
|
+
interface DrawingAreaList {
|
|
7
7
|
title: string;
|
|
8
8
|
items: DrawingListItem[];
|
|
9
9
|
}
|
|
10
10
|
export declare const useGetFilterHeight: (filterRef?: React.RefObject<HTMLElement>) => number;
|
|
11
11
|
export declare const getListInclHeaders: (items: DrawingListItem[], translateFn: TFunction) => {
|
|
12
|
-
|
|
13
|
-
areas:
|
|
12
|
+
drawings: DrawingAreaList;
|
|
13
|
+
areas: DrawingAreaList;
|
|
14
14
|
};
|
|
15
15
|
export declare const getLabel: (selectedAreas: Area[], isAreaSelected: boolean) => string;
|
|
16
16
|
export declare const getDisplayDate: (date: string) => string;
|
|
17
|
-
export declare const
|
|
17
|
+
export declare const AreasDrawings: FC<{
|
|
18
18
|
drawingListItems: DrawingListItem[];
|
|
19
19
|
isLoading?: boolean;
|
|
20
20
|
hasError?: boolean;
|
|
@@ -3,7 +3,7 @@ import type { HeaderSize, Position, DraggableSize } from '@opengeoweb/shared';
|
|
|
3
3
|
import type { uiTypes } from '@opengeoweb/store';
|
|
4
4
|
import type { SelectedAreaFeatureNamesByAreaId } from './Areas';
|
|
5
5
|
import type { AreaListItem, DrawingListItem } from '../../store/warningsDrawings/types';
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const AreaDrawingManager: React.FC<{
|
|
7
7
|
bounds?: string;
|
|
8
8
|
title?: string;
|
|
9
9
|
onClose: () => void;
|
|
@@ -22,8 +22,8 @@ export declare const ObjectManager: React.FC<{
|
|
|
22
22
|
onHoverAreaEnd?: () => void;
|
|
23
23
|
onEditDrawing?: (drawingId: string) => void;
|
|
24
24
|
onDeleteDrawing?: (drawingId: string) => void;
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
onShareDrawing?: (drawing: DrawingListItem) => void;
|
|
26
|
+
onCreateNewDrawing?: () => void;
|
|
27
27
|
activeDrawingId?: string;
|
|
28
28
|
selectedAreaFeatureNamesByAreaId?: SelectedAreaFeatureNamesByAreaId;
|
|
29
29
|
error?: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TFunction } from 'i18next';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const getDeleteDescription: (drawingName: string, t: TFunction) => string;
|
|
4
|
+
export declare const getDeleteSucces: (drawingName: string, t: TFunction) => string;
|
|
5
|
+
export declare const ConfirmDeleteDialog: React.FC<{
|
|
6
|
+
drawingId: string;
|
|
7
|
+
drawingName: string;
|
|
8
|
+
onDeleteSucces: (drawingId: string) => void;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
}>;
|
package/dist/src/lib/components/{ObjectManager/Objects.d.ts → AreaDrawingManager/Drawings.d.ts}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import type { DrawingListItem } from '../../store/warningsDrawings/types';
|
|
3
3
|
export declare const DEFAULT_ADD_BUTTON_HEIGHT = 80;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
4
|
+
export declare const DEFAULT_AREA_DRAWING_MANAGER_TAB_HEIGHT = 40;
|
|
5
|
+
export declare const DEFAULT_AREA_DRAWING_MANAGER_MIN_SIZE: {
|
|
6
6
|
width: number;
|
|
7
7
|
height: number;
|
|
8
8
|
};
|
|
9
9
|
export declare const BUTTON_AIRMET = "AIRMET";
|
|
10
10
|
export declare const BUTTON_SIGMET = "SIGMET";
|
|
11
11
|
type ListInclHeadersType = {
|
|
12
|
-
|
|
12
|
+
isDrawing: boolean;
|
|
13
13
|
index: number;
|
|
14
14
|
}[];
|
|
15
|
-
export declare const getListInclHeaders: (
|
|
15
|
+
export declare const getListInclHeaders: (drawings: DrawingListItem[]) => {
|
|
16
16
|
listInclHeaders: ListInclHeadersType;
|
|
17
17
|
headerList: string[];
|
|
18
18
|
};
|
|
19
|
-
export declare const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
onClickEdit: (
|
|
19
|
+
export declare const Drawings: FC<{
|
|
20
|
+
drawings: DrawingListItem[];
|
|
21
|
+
onClickDrawing: (drawing: DrawingListItem) => void;
|
|
22
|
+
onClickEdit: (drawingId: string) => void;
|
|
23
23
|
onClickDelete: (drawingId: string) => void;
|
|
24
|
-
onClickShare: (
|
|
25
|
-
|
|
24
|
+
onClickShare: (drawing: DrawingListItem) => void;
|
|
25
|
+
activeDrawing: string;
|
|
26
26
|
isLoading?: boolean;
|
|
27
27
|
dialogWidth?: number;
|
|
28
28
|
}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as DrawingToolMapButtonConnect } from './DrawingToolMapButtonConnect';
|
|
2
2
|
export { default as DrawingToolConnect } from './DrawingToolConnect';
|
|
3
|
-
export {
|
|
3
|
+
export { useDrawingDrawDialogAction } from './useDrawingDialogAction';
|
|
@@ -8,18 +8,18 @@ export declare const useCloseDrawDialog: ({ mapId, source, }: {
|
|
|
8
8
|
}) => {
|
|
9
9
|
closeDrawDialog: (skipConfirmationDialog?: boolean) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const useCloseAreaDrawingDialog: ({ mapId, source, }: {
|
|
12
12
|
mapId: string;
|
|
13
13
|
source?: uiTypes.Source;
|
|
14
14
|
}) => {
|
|
15
|
-
|
|
15
|
+
closeAreaDrawingDialog: (shouldReset?: boolean) => void;
|
|
16
16
|
};
|
|
17
|
-
export declare const
|
|
17
|
+
export declare const useDrawingDrawDialogAction: ({ mapId, source, }: {
|
|
18
18
|
mapId: string;
|
|
19
19
|
source?: uiTypes.Source;
|
|
20
20
|
}) => {
|
|
21
21
|
openDrawDialog: (geoJSON?: GeoJSON.FeatureCollection) => void;
|
|
22
22
|
closeDrawDialog: () => void;
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
openAreaDrawingDialog: () => void;
|
|
24
|
+
closeAreaDrawingDialog: (shouldReset?: boolean) => void;
|
|
25
25
|
};
|
|
@@ -3,10 +3,10 @@ import React from 'react';
|
|
|
3
3
|
import type { DrawMode } from '@opengeoweb/webmap-react';
|
|
4
4
|
import type { DrawingToolFormValues } from './DrawingToolFormContents';
|
|
5
5
|
export declare const opacityOptions: number[];
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const getDrawingName: (drawingName: string) => string;
|
|
7
7
|
export interface DrawingToolFormComponentProps {
|
|
8
8
|
onSubmitForm: (formValues: DrawingToolFormValues) => void;
|
|
9
|
-
|
|
9
|
+
drawingName?: string;
|
|
10
10
|
isLoading?: boolean;
|
|
11
11
|
dialogError?: string;
|
|
12
12
|
id?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const formatDate: (lastUpdatedTime: string) => string;
|
|
3
3
|
export declare const AreaField: React.FC<{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
onEditDrawing: () => void;
|
|
5
|
+
onViewDrawing: () => void;
|
|
6
|
+
onDeleteDrawing: () => void;
|
|
7
|
+
onAddDrawing: () => void;
|
|
8
8
|
isDisabled?: boolean;
|
|
9
9
|
drawActions?: React.ReactNode;
|
|
10
10
|
}>;
|
|
@@ -29,7 +29,7 @@ export interface FormProps {
|
|
|
29
29
|
isReadOnly?: boolean;
|
|
30
30
|
onFormDirty?: (isFormDirty: boolean) => void;
|
|
31
31
|
isSnapshot?: boolean;
|
|
32
|
-
|
|
32
|
+
onAddDrawing?: () => void;
|
|
33
33
|
selectedAviationProduct?: AviationProduct;
|
|
34
34
|
warningType?: WarningType;
|
|
35
35
|
mode?: FormMode;
|
package/dist/src/lib/components/WarningEvents/WarningEventDialog/WarningEventDialogConnect.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DraggableSize, Position } from '@opengeoweb/shared';
|
|
3
|
-
import type { uiTypes } from '@opengeoweb/store';
|
|
3
|
+
import type { MapPreset, uiTypes } from '@opengeoweb/store';
|
|
4
4
|
export interface WarningEventDialogConnectProps {
|
|
5
|
+
defaultMapPreset?: MapPreset;
|
|
5
6
|
bounds?: string;
|
|
6
7
|
source?: uiTypes.Source;
|
|
7
8
|
size?: DraggableSize;
|
package/dist/src/lib/components/WarningEvents/WarningEventDialog/WarningEventFormDialog.d.ts
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { ConfirmationOptions, DraggableSize, Position } from '@opengeoweb/shared';
|
|
4
|
-
import type { uiTypes } from '@opengeoweb/store';
|
|
4
|
+
import type { MapPreset, uiTypes } from '@opengeoweb/store';
|
|
5
5
|
import type { FormError } from '../../../store/warningsEventForm/reducer';
|
|
6
6
|
import type { WarningEvent } from '../../../store/warningsForm/types';
|
|
7
7
|
export declare const warningFormConfirmationOptions: (t: TFunction) => ConfirmationOptions;
|
|
8
8
|
export interface WarningEventFormDialogProps {
|
|
9
|
+
defaultMapPreset?: MapPreset;
|
|
9
10
|
bounds?: string;
|
|
10
11
|
currentEventEditor?: string;
|
|
11
12
|
shouldHideFormToggleMode?: boolean;
|
|
12
13
|
selectedEvent?: WarningEvent;
|
|
13
14
|
error?: FormError;
|
|
14
15
|
isOpen: boolean;
|
|
16
|
+
isSnapshot?: boolean;
|
|
15
17
|
isReadOnly?: boolean;
|
|
16
18
|
order?: number;
|
|
17
19
|
size?: DraggableSize;
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { FieldErrors } from 'react-hook-form';
|
|
3
|
+
import type { MapPreset } from '@opengeoweb/store';
|
|
2
4
|
import type { FormError } from '../../../store/warningsEventForm/reducer';
|
|
3
5
|
import type { WarningEvent } from '../../../store/warningsForm/types';
|
|
6
|
+
export declare const CROSS_FIELD_VALIDATIONS: Record<string, {
|
|
7
|
+
fields: string[];
|
|
8
|
+
translationKey: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const getCrossFieldError: (anchorField: string, errors: FieldErrors) => string | undefined;
|
|
4
11
|
export interface WarningEventFormContentProps {
|
|
12
|
+
defaultMapPreset?: MapPreset;
|
|
5
13
|
error?: FormError;
|
|
6
14
|
currentEventEditor?: string;
|
|
7
15
|
isSummaryDialogOpen?: boolean;
|
|
8
16
|
selectedEvent?: WarningEvent;
|
|
9
17
|
shouldHideFormToggleMode?: boolean;
|
|
10
18
|
isReadOnly?: boolean;
|
|
19
|
+
isSnapshot?: boolean;
|
|
11
20
|
isDefaultCollapsed?: boolean;
|
|
12
21
|
onCancel?: () => void;
|
|
13
22
|
onChangeFormMode?: (isReadOnly: boolean) => void;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { MapPreset } from '@opengeoweb/store';
|
|
3
|
+
import { PublicWarningStatus } from '../../../store/warningsForm/types';
|
|
4
|
+
export declare const probablityOptions: {
|
|
5
|
+
name: string;
|
|
6
|
+
value: number;
|
|
7
|
+
}[];
|
|
2
8
|
export declare const WarningEventItem: React.FC<{
|
|
9
|
+
defaultMapPreset?: MapPreset;
|
|
3
10
|
index: number;
|
|
4
11
|
isReadOnly: boolean;
|
|
12
|
+
isSnapshot?: boolean;
|
|
5
13
|
isCompact: boolean;
|
|
6
14
|
isDeleteButtonDisabled: boolean;
|
|
15
|
+
onExpireWithdraw: (status: PublicWarningStatus, index: number) => void;
|
|
7
16
|
onToggleCompact: () => void;
|
|
8
17
|
onDeleteWarning: (index: number) => void;
|
|
9
18
|
}>;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import type { WarningEventBody, WarningEvent
|
|
1
|
+
import type { Area, WarningEventBody, WarningEvent } from '../../../store/warningsForm/types';
|
|
2
|
+
import { PublicWarningStatus } from '../../../store/warningsForm/types';
|
|
2
3
|
interface FormData extends WarningEvent {
|
|
3
4
|
IS_DRAFT?: boolean | string;
|
|
4
5
|
}
|
|
5
6
|
export declare const buildSubmitValues: (values: FormData) => WarningEvent;
|
|
6
7
|
export declare const getFormData: (warningsEvent: WarningEvent | undefined) => FormData;
|
|
7
8
|
export declare const constructWarningWithNewStatus: (warningsEvent: WarningEvent, status: PublicWarningStatus) => WarningEventBody[];
|
|
9
|
+
export declare const doAreasOverlap: (areasA?: Area[], areasB?: Area[]) => boolean;
|
|
10
|
+
export declare const doTimeRangesOverlap: (aFrom: string, aUntil: string, bFrom: string, bUntil: string) => boolean;
|
|
11
|
+
export declare const doWarningsOverlap: (warningA: WarningEventBody, warningB: WarningEventBody) => boolean;
|
|
12
|
+
export declare const getOverlappingWarnings: (warnings: WarningEventBody[], index: number) => number[];
|
|
8
13
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WarningEvent } from '../../../store/warningsForm/types';
|
|
1
|
+
import type { Area, WarningEvent } from '../../../store/warningsForm/types';
|
|
2
2
|
export declare const emptyWarning: {
|
|
3
3
|
incident: string;
|
|
4
4
|
validFrom: string;
|
|
@@ -11,5 +11,16 @@ export declare const emptyWarning: {
|
|
|
11
11
|
type: number;
|
|
12
12
|
warning_handle_uuid: string;
|
|
13
13
|
};
|
|
14
|
+
export declare const eventTexts: {
|
|
15
|
+
headlineOriginal: string;
|
|
16
|
+
headlineTranslation: string;
|
|
17
|
+
conciseSummaryOriginal: string;
|
|
18
|
+
conciseSummaryTranslation: string;
|
|
19
|
+
descriptionOriginal: string;
|
|
20
|
+
descriptionTranslation: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const warningAreas1: Area[];
|
|
23
|
+
export declare const warningAreas2: Area[];
|
|
24
|
+
export declare const warningAreas3: Area[];
|
|
14
25
|
export declare const buildEarlyWarningInitialValues: () => Partial<WarningEvent>;
|
|
15
26
|
export declare const buildLiveInitialValues: () => Partial<WarningEvent>;
|
package/dist/src/lib/components/WarningEvents/WarningEventSummaryDialog/WarningEventSummaryForm.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export declare const SUMMARY_HEADLINE_LIMIT =
|
|
4
|
-
export declare const SUMMARY_CONCISE_SUMMARY_LIMIT =
|
|
5
|
-
export declare const SUMMARY_DESCRIPTION_LIMIT =
|
|
3
|
+
export declare const SUMMARY_HEADLINE_LIMIT = 150;
|
|
4
|
+
export declare const SUMMARY_CONCISE_SUMMARY_LIMIT = 500;
|
|
5
|
+
export declare const SUMMARY_DESCRIPTION_LIMIT = 1500;
|
|
6
6
|
export declare const RemainingChars: React.FC<{
|
|
7
7
|
name: string;
|
|
8
8
|
limit: number;
|
|
@@ -6,6 +6,12 @@ interface WarningsMapViewProps {
|
|
|
6
6
|
geojsonFeature?: FeatureCollection | undefined;
|
|
7
7
|
defaultMapPreset?: MapPreset;
|
|
8
8
|
isSnapshot?: boolean;
|
|
9
|
+
size?: {
|
|
10
|
+
height: string;
|
|
11
|
+
width: string;
|
|
12
|
+
};
|
|
13
|
+
showMapMousePosition?: boolean;
|
|
14
|
+
showZoomControls?: boolean;
|
|
9
15
|
}
|
|
10
16
|
export declare const WarningsMapView: React.FC<WarningsMapViewProps>;
|
|
11
17
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { uiTypes } from '@opengeoweb/store';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const areaDrawingDialogType = uiTypes.DialogTypes.AreaDrawingManager;
|
|
3
3
|
export declare const drawingDialogType = uiTypes.DialogTypes.DrawingTool;
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const areaDrawingLoaderType = uiTypes.DialogTypes.AreaDrawingLoader;
|
|
@@ -5,6 +5,7 @@ export declare const defaultExpandedWarningSections: ExpandedWarningSections;
|
|
|
5
5
|
export declare const initialWarningFilterPanelState: {
|
|
6
6
|
expandedSections: ExpandedWarningSections;
|
|
7
7
|
hoveredWarningIds: never[];
|
|
8
|
+
hiddenWarningIds: never[];
|
|
8
9
|
source: Record<string, boolean>;
|
|
9
10
|
domain: Record<import("../../components/FilterList/filter-utils").Domain, boolean>;
|
|
10
11
|
phenomenon: Record<string, boolean>;
|
|
@@ -27,4 +28,8 @@ export declare const warningsFiltersReducer: import("redux").Reducer<WarningsFil
|
|
|
27
28
|
panelId: string;
|
|
28
29
|
warningIds?: string[];
|
|
29
30
|
}>) => void;
|
|
31
|
+
setHiddenWarningIdsForPanel: (draft: Draft<WarningsFiltersState>, action: PayloadAction<{
|
|
32
|
+
panelId: string;
|
|
33
|
+
warningIds?: string[];
|
|
34
|
+
}>) => void;
|
|
30
35
|
}, "warningsFilters">;
|
|
@@ -125,6 +125,47 @@ export declare const getHoveredWarningIdsByPanelId: ((state: WarningModuleStore,
|
|
|
125
125
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
126
126
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
127
127
|
};
|
|
128
|
+
export declare const getHiddenWarningIdsByPanelId: ((state: WarningModuleStore, panelId?: string | undefined) => string[]) & {
|
|
129
|
+
clearCache: () => void;
|
|
130
|
+
resultsCount: () => number;
|
|
131
|
+
resetResultsCount: () => void;
|
|
132
|
+
} & {
|
|
133
|
+
resultFunc: (resultFuncArgs_0: WarningsFilterPanelState | undefined) => string[];
|
|
134
|
+
memoizedResultFunc: ((resultFuncArgs_0: WarningsFilterPanelState | undefined) => string[]) & {
|
|
135
|
+
clearCache: () => void;
|
|
136
|
+
resultsCount: () => number;
|
|
137
|
+
resetResultsCount: () => void;
|
|
138
|
+
};
|
|
139
|
+
lastResult: () => string[];
|
|
140
|
+
dependencies: [((state: WarningModuleStore, panelId?: string | undefined) => WarningsFilterPanelState | undefined) & {
|
|
141
|
+
clearCache: () => void;
|
|
142
|
+
resultsCount: () => number;
|
|
143
|
+
resetResultsCount: () => void;
|
|
144
|
+
} & {
|
|
145
|
+
resultFunc: (resultFuncArgs_0: WarningsFiltersState, resultFuncArgs_1: string | undefined) => WarningsFilterPanelState | undefined;
|
|
146
|
+
memoizedResultFunc: ((resultFuncArgs_0: WarningsFiltersState, resultFuncArgs_1: string | undefined) => WarningsFilterPanelState | undefined) & {
|
|
147
|
+
clearCache: () => void;
|
|
148
|
+
resultsCount: () => number;
|
|
149
|
+
resetResultsCount: () => void;
|
|
150
|
+
};
|
|
151
|
+
lastResult: () => WarningsFilterPanelState | undefined;
|
|
152
|
+
dependencies: [(store: WarningModuleStore) => WarningsFiltersState, (_store: WarningModuleStore, panelId?: string) => string | undefined];
|
|
153
|
+
recomputations: () => number;
|
|
154
|
+
resetRecomputations: () => void;
|
|
155
|
+
dependencyRecomputations: () => number;
|
|
156
|
+
resetDependencyRecomputations: () => void;
|
|
157
|
+
} & {
|
|
158
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
159
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
160
|
+
}];
|
|
161
|
+
recomputations: () => number;
|
|
162
|
+
resetRecomputations: () => void;
|
|
163
|
+
dependencyRecomputations: () => number;
|
|
164
|
+
resetDependencyRecomputations: () => void;
|
|
165
|
+
} & {
|
|
166
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
167
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
168
|
+
};
|
|
128
169
|
export declare const getWarningsPresetById: ((state: WarningModuleStore, panelId?: string | undefined) => {
|
|
129
170
|
filterState: null;
|
|
130
171
|
expandedSections: null;
|
|
@@ -13,5 +13,6 @@ export interface ExpandedWarningSections extends Record<string, boolean> {
|
|
|
13
13
|
export interface WarningsFilterPanelState extends FilterState {
|
|
14
14
|
expandedSections: ExpandedWarningSections;
|
|
15
15
|
hoveredWarningIds: string[];
|
|
16
|
+
hiddenWarningIds: string[];
|
|
16
17
|
}
|
|
17
18
|
export type WarningsFiltersState = Record<string, WarningsFilterPanelState>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/warnings",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.5.0",
|
|
4
4
|
"description": "GeoWeb warinings library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"ol": "^10.4.0",
|
|
45
45
|
"msw": "^2.7.3",
|
|
46
46
|
"@types/geojson": "^7946.0.14",
|
|
47
|
+
"@turf/turf": "^7.2.0",
|
|
47
48
|
"react-sortablejs": "^6.1.4",
|
|
48
49
|
"@mui/x-date-pickers": "^9.3.0"
|
|
49
50
|
},
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { TFunction } from 'i18next';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export declare const getDeleteDescription: (objectName: string, t: TFunction) => string;
|
|
4
|
-
export declare const getDeleteSucces: (objectName: string, t: TFunction) => string;
|
|
5
|
-
export declare const ConfirmDeleteDialog: React.FC<{
|
|
6
|
-
objectId: string;
|
|
7
|
-
objectName: string;
|
|
8
|
-
onDeleteSucces: (objectId: string) => void;
|
|
9
|
-
onClose: () => void;
|
|
10
|
-
}>;
|
|
File without changes
|