@opengeoweb/warnings 8.0.0 → 8.1.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/README.md +0 -0
- package/index.esm.d.ts +0 -0
- package/index.esm.js +19239 -19054
- package/package.json +11 -10
- package/src/index.d.ts +0 -0
- package/src/lib/Warnings.stories.d.ts +0 -1
- package/src/lib/WarningsErrors.stories.d.ts +7 -0
- package/src/lib/components/DrawingTool/DrawingTool.stories.d.ts +0 -0
- package/src/lib/components/DrawingTool/DrawingToolConnect.d.ts +0 -0
- package/src/lib/components/DrawingTool/DrawingToolConnect.spec.d.ts +0 -0
- package/src/lib/components/DrawingTool/DrawingToolConnect.stories.d.ts +0 -0
- package/src/lib/components/DrawingTool/DrawingToolDialog.d.ts +3 -13
- package/src/lib/components/DrawingTool/DrawingToolDialog.spec.d.ts +0 -0
- package/src/lib/components/DrawingTool/DrawingToolMapButtonConnect.d.ts +0 -0
- package/src/lib/components/DrawingTool/DrawingToolMapButtonConnect.spec.d.ts +0 -0
- package/src/lib/components/DrawingTool/index.d.ts +0 -0
- package/src/lib/components/DrawingTool/useObjectDrawDialogAction.d.ts +15 -3
- package/src/lib/components/DrawingTool/useObjectDrawDialogAction.spec.d.ts +0 -0
- package/src/lib/components/DrawingToolForm/DrawingToolForm.d.ts +0 -0
- package/src/lib/components/DrawingToolForm/DrawingToolForm.spec.d.ts +0 -0
- package/src/lib/components/DrawingToolForm/DrawingToolFormConnect.d.ts +0 -0
- package/src/lib/components/DrawingToolForm/DrawingToolFormConnect.spec.d.ts +0 -0
- package/src/lib/components/DrawingToolForm/index.d.ts +0 -0
- package/src/lib/components/ObjectManager/ConfirmDeleteDialog.d.ts +13 -0
- package/src/lib/components/ObjectManager/ConfirmDeleteDialog.spec.d.ts +1 -0
- package/src/lib/components/ObjectManager/Drawings.d.ts +2 -0
- package/src/lib/components/ObjectManager/Drawings.spec.d.ts +0 -0
- package/src/lib/components/ObjectManager/ObjectManager.d.ts +5 -13
- package/src/lib/components/ObjectManager/ObjectManager.spec.d.ts +0 -0
- package/src/lib/components/ObjectManager/ObjectManager.stories.d.ts +0 -0
- package/src/lib/components/ObjectManager/ObjectManagerConnect.d.ts +4 -0
- package/src/lib/components/ObjectManager/ObjectManagerConnect.spec.d.ts +0 -0
- package/src/lib/components/ObjectManager/ObjectManagerConnect.stories.d.ts +0 -0
- package/src/lib/components/ObjectManager/ObjectManagerMapButtonConnect.d.ts +0 -0
- package/src/lib/components/ObjectManager/ObjectManagerMapButtonConnect.spec.d.ts +0 -0
- package/src/lib/components/ObjectManager/index.d.ts +0 -0
- package/src/lib/components/Providers/Providers.d.ts +0 -0
- package/src/lib/components/Providers/Providers.spec.d.ts +0 -0
- package/src/lib/components/PublicWarnings/PublicWarnings.d.ts +17 -0
- package/src/lib/components/PublicWarnings/PublicWarnings.spec.d.ts +1 -0
- package/src/lib/components/PublicWarnings/PublicWarnings.stories.d.ts +13 -0
- package/src/lib/components/PublicWarnings/PublicWarningsConnect.d.ts +7 -0
- package/src/lib/components/PublicWarnings/PublicWarningsConnect.spec.d.ts +1 -0
- package/src/lib/components/PublicWarnings/PublicWarningsConnect.stories.d.ts +6 -0
- package/src/lib/components/PublicWarnings/index.d.ts +2 -0
- package/src/lib/components/WarningsModuleProvider/WarningsModuleProvider.d.ts +0 -0
- package/src/lib/components/WarningsModuleProvider/index.d.ts +0 -0
- package/src/lib/store/config.d.ts +0 -0
- package/src/lib/store/drawings/reducer.d.ts +0 -0
- package/src/lib/store/drawings/reducer.spec.d.ts +0 -0
- package/src/lib/store/drawings/sagas.d.ts +0 -0
- package/src/lib/store/drawings/sagas.spec.d.ts +0 -0
- package/src/lib/store/drawings/selectors.d.ts +0 -0
- package/src/lib/store/drawings/selectors.spec.d.ts +0 -0
- package/src/lib/store/drawings/types.d.ts +0 -0
- package/src/lib/storybookUtils/defaultStorySettings.d.ts +0 -0
- package/src/lib/storybookUtils/storyComponents.d.ts +4 -0
- package/src/lib/storybookUtils/testUtils.d.ts +0 -0
- package/src/lib/storyshots/Storyshots.spec.d.ts +0 -0
- package/src/lib/utils/api.d.ts +0 -0
- package/src/lib/utils/api.spec.d.ts +0 -0
- package/src/lib/utils/fakeApi.d.ts +0 -0
- package/src/lib/utils/fakeApi.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.1.0",
|
|
4
4
|
"description": "GeoWeb warinings library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -9,19 +9,20 @@
|
|
|
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.1.0",
|
|
13
|
+
"@opengeoweb/core": "8.1.0",
|
|
14
|
+
"@opengeoweb/form-fields": "8.1.0",
|
|
15
|
+
"@opengeoweb/shared": "8.1.0",
|
|
16
|
+
"@opengeoweb/store": "8.1.0",
|
|
17
|
+
"@opengeoweb/theme": "8.1.0",
|
|
18
|
+
"@opengeoweb/webmap": "8.1.0",
|
|
19
|
+
"@opengeoweb/webmap-react": "8.1.0",
|
|
20
20
|
"@reduxjs/toolkit": "1.9.5",
|
|
21
21
|
"axios": "1.5.0",
|
|
22
|
+
"immer": "9.0.21",
|
|
22
23
|
"lodash": "4.17.21",
|
|
23
24
|
"react": "18.2.0",
|
|
24
|
-
"react-hook-form": "7.46.
|
|
25
|
+
"react-hook-form": "7.46.2",
|
|
25
26
|
"react-redux": "8.1.2",
|
|
26
27
|
"redux-saga": "1.2.3"
|
|
27
28
|
},
|
package/src/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { HeaderSize } from '@opengeoweb/shared';
|
|
2
|
+
import { HeaderSize, DialogPosition, DialogSize } from '@opengeoweb/shared';
|
|
3
3
|
import { uiTypes } from '@opengeoweb/store';
|
|
4
|
-
export type Size = {
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
};
|
|
8
|
-
export type Position = {
|
|
9
|
-
top: number;
|
|
10
|
-
left?: number;
|
|
11
|
-
right?: number;
|
|
12
|
-
};
|
|
13
4
|
interface DrawingToolDialogProps {
|
|
14
5
|
bounds?: string;
|
|
15
6
|
title?: string;
|
|
@@ -20,12 +11,11 @@ interface DrawingToolDialogProps {
|
|
|
20
11
|
source?: uiTypes.Source;
|
|
21
12
|
isLoading?: boolean;
|
|
22
13
|
isDocked?: boolean;
|
|
23
|
-
size?:
|
|
24
|
-
startPosition?:
|
|
14
|
+
size?: DialogSize;
|
|
15
|
+
startPosition?: DialogPosition;
|
|
25
16
|
setFocused?: (focused: boolean) => void;
|
|
26
17
|
headerSize?: HeaderSize;
|
|
27
18
|
children: React.ReactNode;
|
|
28
19
|
}
|
|
29
|
-
export declare const calculateStartSize: (minSize: Size, prefSize: Size, startPosition: Position) => Size;
|
|
30
20
|
declare const DrawingTool: React.FC<DrawingToolDialogProps>;
|
|
31
21
|
export default DrawingTool;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
import { uiTypes } from '@opengeoweb/store';
|
|
2
2
|
export declare const objectDialogType = uiTypes.DialogTypes.ObjectManager;
|
|
3
3
|
export declare const drawingDialogType = uiTypes.DialogTypes.DrawingTool;
|
|
4
|
+
export declare const useCloseDrawDialog: ({ mapId, source, }: {
|
|
5
|
+
mapId: string;
|
|
6
|
+
source?: uiTypes.Source | undefined;
|
|
7
|
+
}) => {
|
|
8
|
+
closeDrawDialog: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const useCloseObjectDialog: ({ mapId, source, }: {
|
|
11
|
+
mapId: string;
|
|
12
|
+
source?: uiTypes.Source | undefined;
|
|
13
|
+
}) => {
|
|
14
|
+
closeObjectDialog: (shouldReset?: boolean) => void;
|
|
15
|
+
};
|
|
4
16
|
export declare const useObjectDrawDialogAction: ({ mapId, source, }: {
|
|
5
17
|
mapId: string;
|
|
6
18
|
source?: uiTypes.Source | undefined;
|
|
7
19
|
}) => {
|
|
8
|
-
openDrawDialog: (geoJSON
|
|
20
|
+
openDrawDialog: (geoJSON?: GeoJSON.FeatureCollection) => void;
|
|
9
21
|
closeDrawDialog: () => void;
|
|
10
|
-
openObjectDialog: (
|
|
11
|
-
closeObjectDialog: () => void;
|
|
22
|
+
openObjectDialog: () => void;
|
|
23
|
+
closeObjectDialog: (shouldReset?: boolean) => void;
|
|
12
24
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const DELETE_TITLE = "Delete object";
|
|
3
|
+
export declare const DELETE_CONFIRM = "Delete";
|
|
4
|
+
export declare const CANCEL = "Cancel";
|
|
5
|
+
export declare const getDeleteDescription: (objectName: string) => string;
|
|
6
|
+
export declare const getDeleteSucces: (objectName: string) => string;
|
|
7
|
+
export declare const ConfirmDeleteDialog: React.FC<{
|
|
8
|
+
objectId: string;
|
|
9
|
+
objectName: string;
|
|
10
|
+
onDeleteSucces: (objectId: string, objectName: string) => void;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
}>;
|
|
13
|
+
export default ConfirmDeleteDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,5 +4,7 @@ export declare const NO_OBJECTS_FOUND = "No objects found";
|
|
|
4
4
|
export declare const Drawings: FC<{
|
|
5
5
|
drawings: DrawingListItem[];
|
|
6
6
|
onClickDrawing: (drawing: DrawingListItem) => void;
|
|
7
|
+
onClickEdit: (drawingId: string) => void;
|
|
8
|
+
onClickDelete: (drawingId: string) => void;
|
|
7
9
|
activeDrawing: string;
|
|
8
10
|
}>;
|
|
File without changes
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { HeaderSize } from '@opengeoweb/shared';
|
|
2
|
+
import { HeaderSize, DialogPosition, DialogSize } from '@opengeoweb/shared';
|
|
3
3
|
import { uiTypes } from '@opengeoweb/store';
|
|
4
4
|
import { DrawingListItem } from '../../store/drawings/types';
|
|
5
|
-
export type Size = {
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
};
|
|
9
|
-
export type Position = {
|
|
10
|
-
top: number;
|
|
11
|
-
left?: number;
|
|
12
|
-
right?: number;
|
|
13
|
-
};
|
|
14
|
-
export declare const calculateStartSize: (minSize: Size, prefSize: Size, startPosition: Position) => Size;
|
|
15
5
|
export declare const ObjectManager: React.FC<{
|
|
16
6
|
bounds?: string;
|
|
17
7
|
title?: string;
|
|
@@ -20,12 +10,14 @@ export declare const ObjectManager: React.FC<{
|
|
|
20
10
|
isOpen: boolean;
|
|
21
11
|
order?: number;
|
|
22
12
|
source?: uiTypes.Source;
|
|
23
|
-
size?:
|
|
24
|
-
startPosition?:
|
|
13
|
+
size?: DialogSize;
|
|
14
|
+
startPosition?: DialogPosition;
|
|
25
15
|
setFocused?: (focused: boolean) => void;
|
|
26
16
|
headerSize?: HeaderSize;
|
|
27
17
|
drawingListItems: DrawingListItem[];
|
|
28
18
|
onClickDrawing?: (drawing: DrawingListItem) => void;
|
|
19
|
+
onEditDrawing?: (drawingId: string) => void;
|
|
20
|
+
onDeleteDrawing?: (drawingId: string) => void;
|
|
29
21
|
activeDrawingId?: string;
|
|
30
22
|
error?: string;
|
|
31
23
|
isLoading?: boolean;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { uiTypes } from '@opengeoweb/store';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
export declare const DELETE_TITLE = "Delete object";
|
|
4
|
+
export declare const DELETE_CONFIRM = "Delete";
|
|
5
|
+
export declare const getDeleteDescription: (objectName: string) => string;
|
|
6
|
+
export declare const getDeleteSucces: (objectName: string) => string;
|
|
3
7
|
export declare const ObjectManagerConnect: React.FC<{
|
|
4
8
|
bounds?: string;
|
|
5
9
|
source?: uiTypes.Source;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DialogPosition, DialogSize, HeaderSize } from '@opengeoweb/shared';
|
|
3
|
+
import { uiTypes } from '@opengeoweb/store';
|
|
4
|
+
export declare const DIALOG_TITLE = "Public warnings";
|
|
5
|
+
export declare const PublicWarnings: React.FC<{
|
|
6
|
+
bounds?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
onMouseDown?: () => void;
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
order?: number;
|
|
12
|
+
source?: uiTypes.Source;
|
|
13
|
+
size?: DialogSize;
|
|
14
|
+
startPosition?: DialogPosition;
|
|
15
|
+
setFocused?: (focused: boolean) => void;
|
|
16
|
+
headerSize?: HeaderSize;
|
|
17
|
+
}>;
|
|
@@ -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 PublicWarningsLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const PublicWarningsDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/lib/utils/api.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|