@opengeoweb/warnings 5.1.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/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@opengeoweb/warnings",
3
+ "version": "5.1.1",
4
+ "description": "GeoWeb warinings library for the opengeoweb project",
5
+ "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
+ },
10
+ "dependencies": {
11
+ "@mui/material": "5.12.0",
12
+ "@opengeoweb/core": "5.1.1",
13
+ "@opengeoweb/form-fields": "5.1.1",
14
+ "@opengeoweb/shared": "5.1.1",
15
+ "@opengeoweb/theme": "5.1.1",
16
+ "@reduxjs/toolkit": "1.9.5",
17
+ "react": "18.2.0",
18
+ "react-hook-form": "7.41.5",
19
+ "react-redux": "8.1.1"
20
+ },
21
+ "module": "./index.js",
22
+ "main": "./index.js",
23
+ "type": "module",
24
+ "types": "./src/index.d.ts",
25
+ "peerDependencies": {}
26
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import DrawingToolMapButtonConnect from './lib/DrawingTool/DrawingToolMapButtonConnect';
2
+ export * from './lib/DrawingTool/DrawingToolConnect';
3
+ export { DrawingToolMapButtonConnect };
4
+ export declare const TODO_DELETE_THIS_LATER = "TODO_DELETE_THIS_LATER";
@@ -0,0 +1,31 @@
1
+ import * as React from 'react';
2
+ import { HeaderSize } from '@opengeoweb/shared';
3
+ import { uiTypes } from '@opengeoweb/core';
4
+ export declare type Size = {
5
+ width: number;
6
+ height: number;
7
+ };
8
+ export declare type Position = {
9
+ top: number;
10
+ left?: number;
11
+ right?: number;
12
+ };
13
+ interface DrawingToolProps {
14
+ bounds?: string;
15
+ title?: string;
16
+ onClose: () => void;
17
+ onMouseDown?: () => void;
18
+ isOpen: boolean;
19
+ order?: number;
20
+ source?: uiTypes.Source;
21
+ isLoading?: boolean;
22
+ error?: string;
23
+ isDocked?: boolean;
24
+ size?: Size;
25
+ startPosition?: Position;
26
+ setFocused?: (focused: boolean) => void;
27
+ headerSize?: HeaderSize;
28
+ }
29
+ export declare const calculateStartSize: (minSize: Size, prefSize: Size, startPosition: Position) => Size;
30
+ declare const DrawingTool: React.FC<DrawingToolProps>;
31
+ export default DrawingTool;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const DrawingToolDockedLight: {
7
+ (): React.ReactElement;
8
+ parameters: {
9
+ zeplinLink: {
10
+ name: string;
11
+ link: string;
12
+ }[];
13
+ };
14
+ storyName: string;
15
+ };
16
+ export declare const DrawingToolDockedDark: {
17
+ (): React.ReactElement;
18
+ parameters: {
19
+ zeplinLink: {
20
+ name: string;
21
+ link: string;
22
+ }[];
23
+ };
24
+ storyName: string;
25
+ };
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { uiTypes } from '@opengeoweb/core';
3
+ export declare const getDialogType: (mapId: any, isMultiMap: boolean, isDocked: boolean) => string;
4
+ interface DrawingToolConnectProps {
5
+ mapId?: string;
6
+ bounds?: string;
7
+ title?: string;
8
+ showMapIdInTitle?: boolean;
9
+ isMultiMap?: boolean;
10
+ isDocked?: boolean;
11
+ source?: uiTypes.Source;
12
+ }
13
+ declare const DrawingToolConnect: React.FC<DrawingToolConnectProps>;
14
+ export default DrawingToolConnect;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const DrawingToolConnectLight: {
7
+ (): React.ReactElement;
8
+ parameters: {
9
+ zeplinLink: {
10
+ name: string;
11
+ link: string;
12
+ }[];
13
+ };
14
+ storyName: string;
15
+ };
16
+ export declare const DrawingToolConnectDark: {
17
+ (): React.ReactElement;
18
+ parameters: {
19
+ zeplinLink: {
20
+ name: string;
21
+ link: string;
22
+ }[];
23
+ };
24
+ storyName: string;
25
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { uiTypes } from '@opengeoweb/core';
3
+ interface DrawingToolMapButtonConnectProps {
4
+ mapId: string;
5
+ source?: uiTypes.Source;
6
+ }
7
+ declare const DrawingToolMapButtonConnect: React.FC<DrawingToolMapButtonConnectProps>;
8
+ export default DrawingToolMapButtonConnect;
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ export declare const opacityOptions: number[];
3
+ export declare const SAVE_AREA_BUTTON = "Save area";
4
+ export interface DrawingToolFormProps {
5
+ opacity: number;
6
+ areaName: string;
7
+ }
8
+ export interface DrawingToolFormComponentProps {
9
+ onSubmitForm: (formValues: DrawingToolFormProps) => void;
10
+ }
11
+ declare const Wrapper: React.FC<DrawingToolFormComponentProps>;
12
+ export { Wrapper as DrawingToolForm };
13
+ export default Wrapper;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const DrawingToolFormConnect: React.FC;
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { Theme } from '@mui/material';
3
+ import { Store } from '@reduxjs/toolkit';
4
+ export interface WarningsThemeProviderProps {
5
+ children: React.ReactNode;
6
+ theme?: Theme;
7
+ }
8
+ export declare const WarningsThemeProvider: React.FC<WarningsThemeProviderProps>;
9
+ export declare const WarningssWrapperProvider: React.FC<WarningsThemeProviderProps>;
10
+ export interface WarningsThemeStoreProviderProps {
11
+ children: React.ReactNode;
12
+ theme?: Theme;
13
+ store?: Store;
14
+ }
15
+ export declare const WarningsThemeStoreProvider: React.FC<WarningsThemeStoreProviderProps>;
@@ -0,0 +1,18 @@
1
+ import { mapTypes } from '@opengeoweb/core';
2
+ export declare const initialBbox: {
3
+ srs: string;
4
+ bbox: {
5
+ left: number;
6
+ bottom: number;
7
+ right: number;
8
+ top: number;
9
+ };
10
+ };
11
+ interface UseDefaultMapSettingsProps {
12
+ mapId?: string;
13
+ baseLayers?: mapTypes.Layer[];
14
+ bbox?: mapTypes.Bbox;
15
+ srs?: string;
16
+ }
17
+ export declare const useDefaultMapSettings: (props?: UseDefaultMapSettingsProps) => void;
18
+ export {};
@@ -0,0 +1 @@
1
+ export {};