@opengeoweb/warnings 8.1.0 → 8.2.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 +10383 -9752
- package/package.json +9 -9
- package/src/index.d.ts +1 -0
- package/src/lib/Warnings.stories.d.ts +0 -1
- package/src/lib/WarningsErrors.stories.d.ts +4 -2
- package/src/lib/components/DrawingTool/DrawingToolDialog.d.ts +3 -3
- package/src/lib/components/DrawingTool/useObjectDrawDialogAction.d.ts +0 -2
- package/src/lib/components/ObjectManager/ObjectManager.d.ts +3 -3
- package/src/lib/components/ObjectManager/ObjectManager.stories.d.ts +9 -0
- package/src/lib/components/ObjectManager/Objects.d.ts +11 -0
- package/src/lib/components/PublicWarnings/PublicWarnings.d.ts +4 -4
- package/src/lib/components/PublicWarnings/PublicWarnings.stories.d.ts +20 -0
- package/src/lib/components/PublicWarnings/PublicWarningsConnect.d.ts +2 -0
- package/src/lib/components/PublicWarningsForm/AreaField.d.ts +14 -0
- package/src/lib/components/PublicWarningsForm/AreaField.spec.d.ts +1 -0
- package/src/lib/components/PublicWarningsForm/AreaField.stories.d.ts +13 -0
- package/src/lib/components/PublicWarningsForm/DescriptionField.d.ts +2 -0
- package/src/lib/components/PublicWarningsForm/DescriptionField.spec.d.ts +1 -0
- package/src/lib/components/PublicWarningsForm/DescriptionField.stories.d.ts +13 -0
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.d.ts +16 -0
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.spec.d.ts +1 -0
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.stories.d.ts +13 -0
- package/src/lib/components/PublicWarningsForm/index.d.ts +1 -0
- package/src/lib/store/drawings/sagas.d.ts +0 -3
- package/src/lib/store/drawings/utils.d.ts +3 -0
- package/src/lib/storybookUtils/storyComponents.d.ts +5 -0
- package/src/lib/components/ObjectManager/Drawings.d.ts +0 -10
- /package/src/lib/components/ObjectManager/{Drawings.spec.d.ts → ObjectManagerConnect.integration.spec.d.ts} +0 -0
- /package/src/lib/components/ObjectManager/{ObjectManagerConnect.spec.d.ts → Objects.spec.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/warnings",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"description": "GeoWeb warinings library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@mui/material": "5.12.0",
|
|
12
|
-
"@opengeoweb/api": "8.
|
|
13
|
-
"@opengeoweb/core": "8.
|
|
14
|
-
"@opengeoweb/form-fields": "8.
|
|
15
|
-
"@opengeoweb/shared": "8.
|
|
16
|
-
"@opengeoweb/store": "8.
|
|
17
|
-
"@opengeoweb/theme": "8.
|
|
18
|
-
"@opengeoweb/webmap": "8.
|
|
19
|
-
"@opengeoweb/webmap-react": "8.
|
|
12
|
+
"@opengeoweb/api": "8.2.0",
|
|
13
|
+
"@opengeoweb/core": "8.2.0",
|
|
14
|
+
"@opengeoweb/form-fields": "8.2.0",
|
|
15
|
+
"@opengeoweb/shared": "8.2.0",
|
|
16
|
+
"@opengeoweb/store": "8.2.0",
|
|
17
|
+
"@opengeoweb/theme": "8.2.0",
|
|
18
|
+
"@opengeoweb/webmap": "8.2.0",
|
|
19
|
+
"@opengeoweb/webmap-react": "8.2.0",
|
|
20
20
|
"@reduxjs/toolkit": "1.9.5",
|
|
21
21
|
"axios": "1.5.0",
|
|
22
22
|
"immer": "9.0.21",
|
package/src/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export * from './lib/components/ObjectManager';
|
|
|
2
2
|
export * from './lib/components/WarningsModuleProvider';
|
|
3
3
|
export * from './lib/components/DrawingTool';
|
|
4
4
|
export * from './lib/components/DrawingToolForm';
|
|
5
|
+
export * from './lib/components/PublicWarnings';
|
|
5
6
|
export * from './lib/store/config';
|
|
@@ -3,5 +3,7 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
6
|
+
export declare const ErrorSaveDrawing: () => React.ReactElement;
|
|
7
|
+
export declare const ErrorGetList: () => React.ReactElement;
|
|
8
|
+
export declare const ErrorEditDrawing: () => React.ReactElement;
|
|
9
|
+
export declare const ErrorDeleteDrawing: () => React.ReactElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { HeaderSize,
|
|
2
|
+
import { HeaderSize, Position, DraggableSize } from '@opengeoweb/shared';
|
|
3
3
|
import { uiTypes } from '@opengeoweb/store';
|
|
4
4
|
interface DrawingToolDialogProps {
|
|
5
5
|
bounds?: string;
|
|
@@ -11,8 +11,8 @@ interface DrawingToolDialogProps {
|
|
|
11
11
|
source?: uiTypes.Source;
|
|
12
12
|
isLoading?: boolean;
|
|
13
13
|
isDocked?: boolean;
|
|
14
|
-
size?:
|
|
15
|
-
startPosition?:
|
|
14
|
+
size?: DraggableSize;
|
|
15
|
+
startPosition?: Position;
|
|
16
16
|
setFocused?: (focused: boolean) => void;
|
|
17
17
|
headerSize?: HeaderSize;
|
|
18
18
|
children: React.ReactNode;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { uiTypes } from '@opengeoweb/store';
|
|
2
|
-
export declare const objectDialogType = uiTypes.DialogTypes.ObjectManager;
|
|
3
|
-
export declare const drawingDialogType = uiTypes.DialogTypes.DrawingTool;
|
|
4
2
|
export declare const useCloseDrawDialog: ({ mapId, source, }: {
|
|
5
3
|
mapId: string;
|
|
6
4
|
source?: uiTypes.Source | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { HeaderSize,
|
|
2
|
+
import { HeaderSize, Position, DraggableSize } from '@opengeoweb/shared';
|
|
3
3
|
import { uiTypes } from '@opengeoweb/store';
|
|
4
4
|
import { DrawingListItem } from '../../store/drawings/types';
|
|
5
5
|
export declare const ObjectManager: React.FC<{
|
|
@@ -10,8 +10,8 @@ export declare const ObjectManager: React.FC<{
|
|
|
10
10
|
isOpen: boolean;
|
|
11
11
|
order?: number;
|
|
12
12
|
source?: uiTypes.Source;
|
|
13
|
-
size?:
|
|
14
|
-
startPosition?:
|
|
13
|
+
size?: DraggableSize;
|
|
14
|
+
startPosition?: Position;
|
|
15
15
|
setFocused?: (focused: boolean) => void;
|
|
16
16
|
headerSize?: HeaderSize;
|
|
17
17
|
drawingListItems: DrawingListItem[];
|
|
@@ -31,3 +31,12 @@ export declare const ObjectManagerDarkNoResults: {
|
|
|
31
31
|
(): React.ReactElement;
|
|
32
32
|
storyName: string;
|
|
33
33
|
};
|
|
34
|
+
export declare const ObjectManagerLoading: () => React.ReactElement;
|
|
35
|
+
export declare const ObjectManagerErrorLight: {
|
|
36
|
+
(): React.ReactElement;
|
|
37
|
+
storyName: string;
|
|
38
|
+
};
|
|
39
|
+
export declare const ObjectManagerErrorDark: {
|
|
40
|
+
(): React.ReactElement;
|
|
41
|
+
storyName: string;
|
|
42
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { DrawingListItem } from '../../store/drawings/types';
|
|
3
|
+
export declare const NO_OBJECTS_FOUND = "No objects found";
|
|
4
|
+
export declare const Objects: FC<{
|
|
5
|
+
objects: DrawingListItem[];
|
|
6
|
+
onClickObject: (object: DrawingListItem) => void;
|
|
7
|
+
onClickEdit: (objectId: string) => void;
|
|
8
|
+
onClickDelete: (drawingId: string) => void;
|
|
9
|
+
activeObject: string;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Position, DraggableSize, HeaderSize } from '@opengeoweb/shared';
|
|
3
3
|
import { uiTypes } from '@opengeoweb/store';
|
|
4
|
-
export declare const DIALOG_TITLE = "Public
|
|
4
|
+
export declare const DIALOG_TITLE = "Public Warning";
|
|
5
5
|
export declare const PublicWarnings: React.FC<{
|
|
6
6
|
bounds?: string;
|
|
7
7
|
title?: string;
|
|
@@ -10,8 +10,8 @@ export declare const PublicWarnings: React.FC<{
|
|
|
10
10
|
isOpen: boolean;
|
|
11
11
|
order?: number;
|
|
12
12
|
source?: uiTypes.Source;
|
|
13
|
-
size?:
|
|
14
|
-
startPosition?:
|
|
13
|
+
size?: DraggableSize;
|
|
14
|
+
startPosition?: Position;
|
|
15
15
|
setFocused?: (focused: boolean) => void;
|
|
16
16
|
headerSize?: HeaderSize;
|
|
17
17
|
}>;
|
|
@@ -5,9 +5,29 @@ declare const _default: {
|
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const PublicWarningsLight: {
|
|
7
7
|
(): React.ReactElement;
|
|
8
|
+
parameters: {
|
|
9
|
+
zeplinLink: {
|
|
10
|
+
name: string;
|
|
11
|
+
link: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
8
14
|
storyName: string;
|
|
9
15
|
};
|
|
10
16
|
export declare const PublicWarningsDark: {
|
|
17
|
+
(): React.ReactElement;
|
|
18
|
+
parameters: {
|
|
19
|
+
zeplinLink: {
|
|
20
|
+
name: string;
|
|
21
|
+
link: string;
|
|
22
|
+
}[];
|
|
23
|
+
};
|
|
24
|
+
storyName: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const PublicWarningsLightBig: {
|
|
27
|
+
(): React.ReactElement;
|
|
28
|
+
storyName: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const PublicWarningsDarkBig: {
|
|
11
31
|
(): React.ReactElement;
|
|
12
32
|
storyName: string;
|
|
13
33
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { uiTypes } from '@opengeoweb/store';
|
|
3
|
+
import { Position } from '@opengeoweb/shared';
|
|
3
4
|
export declare const publicWarningDialogType = uiTypes.DialogTypes.PublicWarnings;
|
|
4
5
|
export declare const PublicWarningsConnect: React.FC<{
|
|
5
6
|
bounds?: string;
|
|
6
7
|
source?: uiTypes.Source;
|
|
8
|
+
startPosition?: Position;
|
|
7
9
|
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const LABEL_AREA = "Area";
|
|
3
|
+
export declare const BUTTON_ADD_OBJECT = "Add object";
|
|
4
|
+
export declare const BUTTON_DELETE = "Delete";
|
|
5
|
+
export declare const BUTTON_VIEW = "View";
|
|
6
|
+
export declare const BUTTON_EDIT = "Edit";
|
|
7
|
+
export declare const OBJECTS_MENU = "Object options";
|
|
8
|
+
export declare const AreaField: React.FC<{
|
|
9
|
+
onEditObject: () => void;
|
|
10
|
+
onViewObject: () => void;
|
|
11
|
+
onDeleteObject: () => void;
|
|
12
|
+
onAddObject: () => void;
|
|
13
|
+
isDisabled?: boolean;
|
|
14
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const AreaFieldLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const AreaFieldDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const DescriptionFieldLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const DescriptionFieldDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const LABEL_PHENOMENON = "Phenomenon";
|
|
3
|
+
export declare const LABEL_VALID_FROM = "Valid from";
|
|
4
|
+
export declare const LABEL_VALID_UNTIL = "Valid until";
|
|
5
|
+
export declare const LABEL_CURRENT = "Current";
|
|
6
|
+
export declare const LABEL_EARLY = "Early";
|
|
7
|
+
export declare const LABEL_LEVEL = "Level";
|
|
8
|
+
export declare const LABEL_PROBABILITY = "Probability";
|
|
9
|
+
export declare const BUTTON_CANCEL = "Cancel";
|
|
10
|
+
export declare const BUTTON_SAVE = "Save";
|
|
11
|
+
export declare const BUTTON_PUBLISH = "Publish";
|
|
12
|
+
interface FormProps {
|
|
13
|
+
isDisabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const PublicWarningsForm: React.FC<FormProps>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const PublicWarningsFormDemo: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const PublicWarningsFormDemoDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PublicWarningsForm';
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { uiTypes } from '@opengeoweb/store';
|
|
2
1
|
import { SagaIterator } from 'redux-saga';
|
|
3
2
|
import { SubmitDrawValuesPayload } from './types';
|
|
4
3
|
export declare const getSnackbarMessage: (objectName: string, id: string) => string;
|
|
5
|
-
export declare const drawDialogType = uiTypes.DialogTypes.DrawingTool;
|
|
6
|
-
export declare const objectDialogType = uiTypes.DialogTypes.ObjectManager;
|
|
7
4
|
export declare function submitDrawValuesSaga({ payload, }: {
|
|
8
5
|
payload: SubmitDrawValuesPayload;
|
|
9
6
|
}): SagaIterator;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { DrawingListItem } from '../../store/drawings/types';
|
|
3
|
-
export declare const NO_OBJECTS_FOUND = "No objects found";
|
|
4
|
-
export declare const Drawings: FC<{
|
|
5
|
-
drawings: DrawingListItem[];
|
|
6
|
-
onClickDrawing: (drawing: DrawingListItem) => void;
|
|
7
|
-
onClickEdit: (drawingId: string) => void;
|
|
8
|
-
onClickDelete: (drawingId: string) => void;
|
|
9
|
-
activeDrawing: string;
|
|
10
|
-
}>;
|
|
File without changes
|
/package/src/lib/components/ObjectManager/{ObjectManagerConnect.spec.d.ts → Objects.spec.d.ts}
RENAMED
|
File without changes
|