@opengeoweb/warnings 9.21.0 → 9.23.1
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 +4766 -2084
- package/package.json +2 -2
- package/src/index.d.ts +1 -0
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.d.ts +19 -0
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.spec.d.ts +1 -0
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.stories.d.ts +40 -0
- package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.d.ts +6 -0
- package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.integration.spec.d.ts +1 -0
- package/src/lib/components/AreaObjectLoader/AreasObjects.d.ts +18 -0
- package/src/lib/components/AreaObjectLoader/AreasObjects.spec.d.ts +1 -0
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.d.ts +1 -0
- package/src/lib/store/drawings/types.d.ts +1 -0
- package/src/lib/store/drawings/utils.d.ts +1 -0
- package/src/lib/utils/i18n.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/warnings",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.23.1",
|
|
4
4
|
"description": "GeoWeb warinings library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@opengeoweb/store": "*",
|
|
14
14
|
"@opengeoweb/webmap-react": "*",
|
|
15
15
|
"react-redux": "^8.1.3",
|
|
16
|
-
"@mui/material": "
|
|
16
|
+
"@mui/material": "^5.16.0",
|
|
17
17
|
"@opengeoweb/theme": "*",
|
|
18
18
|
"@opengeoweb/form-fields": "*",
|
|
19
19
|
"react-hook-form": "^7.50.1",
|
package/src/index.d.ts
CHANGED
|
@@ -6,4 +6,5 @@ export * from './lib/components/DrawingToolForm';
|
|
|
6
6
|
export * from './lib/components/PublicWarningsFormDialog';
|
|
7
7
|
export * from './lib/components/ComponentsLookUp';
|
|
8
8
|
export * from './lib/store/config';
|
|
9
|
+
export { WARN_NAMESPACE } from './lib/utils/i18n';
|
|
9
10
|
export { warningsTranslations };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { HeaderSize, Position, DraggableSize } from '@opengeoweb/shared';
|
|
3
|
+
import { uiTypes } from '@opengeoweb/store';
|
|
4
|
+
import { DrawingListItem } from '../../store/drawings/types';
|
|
5
|
+
export declare const AreaObjectLoader: 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?: DraggableSize;
|
|
14
|
+
startPosition?: Position;
|
|
15
|
+
headerSize?: HeaderSize;
|
|
16
|
+
drawingListItems: DrawingListItem[];
|
|
17
|
+
error?: string;
|
|
18
|
+
isLoading?: boolean;
|
|
19
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const AreaObjectLoaderSmall: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
tags: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare const AreaObjectLoaderLight: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
parameters: {
|
|
13
|
+
zeplinLink: {
|
|
14
|
+
name: string;
|
|
15
|
+
link: string;
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
18
|
+
tags: string[];
|
|
19
|
+
};
|
|
20
|
+
export declare const AreaObjectLoaderDark: {
|
|
21
|
+
(): React.ReactElement;
|
|
22
|
+
tags: string[];
|
|
23
|
+
};
|
|
24
|
+
export declare const AreaObjectLoaderLightNoResults: {
|
|
25
|
+
(): React.ReactElement;
|
|
26
|
+
tags: string[];
|
|
27
|
+
};
|
|
28
|
+
export declare const AreaObjectLoaderDarkNoResults: {
|
|
29
|
+
(): React.ReactElement;
|
|
30
|
+
tags: string[];
|
|
31
|
+
};
|
|
32
|
+
export declare const AreaObjectLoaderLoading: () => React.ReactElement;
|
|
33
|
+
export declare const AreaObjectLoaderErrorLight: {
|
|
34
|
+
(): React.ReactElement;
|
|
35
|
+
tags: string[];
|
|
36
|
+
};
|
|
37
|
+
export declare const AreaObjectLoaderErrorDark: {
|
|
38
|
+
(): React.ReactElement;
|
|
39
|
+
tags: string[];
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { TFunction } from 'i18next';
|
|
3
|
+
import { DrawingListItem } from '../../store/drawings/types';
|
|
4
|
+
interface ObjectAreaList {
|
|
5
|
+
title: string;
|
|
6
|
+
items: DrawingListItem[];
|
|
7
|
+
}
|
|
8
|
+
export declare const getListInclHeaders: (items: DrawingListItem[], translateFn: TFunction) => {
|
|
9
|
+
objects: ObjectAreaList;
|
|
10
|
+
areas: ObjectAreaList;
|
|
11
|
+
};
|
|
12
|
+
export declare const getDisplayDate: (date: string) => string;
|
|
13
|
+
export declare const AreasObjects: FC<{
|
|
14
|
+
drawingListItems: DrawingListItem[];
|
|
15
|
+
isLoading?: boolean;
|
|
16
|
+
hasError?: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -15,6 +15,7 @@ export interface BaseDrawingListItem {
|
|
|
15
15
|
export interface DrawingListItem extends BaseDrawingListItem {
|
|
16
16
|
scope: DrawingScope;
|
|
17
17
|
geoJSON: GeoJSON.FeatureCollection;
|
|
18
|
+
keywords?: string;
|
|
18
19
|
}
|
|
19
20
|
export interface DrawingFromBE extends DrawingListItem {
|
|
20
21
|
username: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
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 areaObjectLoaderType = uiTypes.DialogTypes.AreaObjectLoader;
|
package/src/lib/utils/i18n.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ export declare const WARN_NAMESPACE = "warn";
|
|
|
4
4
|
export declare const initWarnI18n: () => void;
|
|
5
5
|
export declare const translateKeyOutsideComponents: (key: string, params?: Record<string, string | number> | undefined) => string;
|
|
6
6
|
export declare const useWarningsTranslation: () => UseTranslationResponse<typeof WARN_NAMESPACE, typeof i18n>;
|
|
7
|
+
export { i18n };
|