@opengeoweb/warnings 9.12.0 → 9.14.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/warnings",
3
- "version": "9.12.0",
3
+ "version": "9.14.0",
4
4
  "description": "GeoWeb warinings library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -1,24 +1,14 @@
1
1
  import * as React from 'react';
2
2
  import { DrawMode } from '@opengeoweb/webmap-react';
3
3
  import { FeatureCollection, GeoJsonProperties, Geometry } from 'geojson';
4
+ import { DrawingToolFormValues } from './DrawingToolFormContents';
4
5
  export declare const opacityOptions: number[];
5
6
  export declare const getObjectName: (objectName: string) => string;
6
- export declare const SAVE_OBJECT_BUTTON = "Save new object";
7
- export declare const UPDATE_OBJECT_BUTTON = "Update object";
8
- export declare const INPUT_OBJECT = "Object name";
9
- export declare const INPUT_OPACITY = "Opacity";
10
- export declare const DRAW_EXIT_MODE_MESSAGE = "press ESC to exit draw mode";
11
- export declare const coordinatesEmptyMessage = "An object drawing is required";
12
- export interface DrawingToolFormValues {
13
- objectName: string;
14
- geoJSON: GeoJSON.FeatureCollection;
15
- id: string;
16
- }
17
7
  export interface DrawingToolFormComponentProps {
18
8
  onSubmitForm: (formValues: DrawingToolFormValues) => void;
19
9
  objectName?: string;
20
10
  isLoading?: boolean;
21
- error?: string;
11
+ dialogError?: string;
22
12
  id?: string;
23
13
  drawModes: DrawMode[];
24
14
  onChangeDrawMode: (newMode: DrawMode) => void;
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import { SelectChangeEvent } from '@mui/material';
3
+ import { DrawMode } from '@opengeoweb/webmap-react';
4
+ import { FieldErrors, FieldValues } from 'react-hook-form';
5
+ export declare const opacityOptions: number[];
6
+ export declare const SAVE_OBJECT_BUTTON = "Save new object";
7
+ export declare const UPDATE_OBJECT_BUTTON = "Update object";
8
+ export declare const INPUT_OBJECT = "Object name";
9
+ export declare const INPUT_OPACITY = "Opacity";
10
+ export declare const DRAW_EXIT_MODE_MESSAGE = "press ESC to exit draw mode";
11
+ export declare const coordinatesEmptyMessage = "An object drawing is required";
12
+ export interface DrawingToolFormValues {
13
+ objectName: string;
14
+ geoJSON: GeoJSON.FeatureCollection;
15
+ id: string;
16
+ }
17
+ export interface DrawingToolFormContentsProps {
18
+ isLoading?: boolean;
19
+ dialogError?: string;
20
+ id?: string;
21
+ drawModes: DrawMode[];
22
+ activeDrawModeId: string;
23
+ opacity: number;
24
+ isInEditMode: boolean;
25
+ isDirty: boolean;
26
+ errors: FieldErrors<FieldValues>;
27
+ onChangeDrawMode: (newMode: DrawMode) => void;
28
+ onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
29
+ onChangeOpacity: (event: SelectChangeEvent) => void;
30
+ onBlurName: (event: React.FocusEvent<HTMLInputElement>) => void;
31
+ onSubmit: () => void;
32
+ }
33
+ export declare const DrawingToolFormContentsNoMemo: React.FC<DrawingToolFormContentsProps>;
34
+ export declare const DrawingToolFormContents: React.NamedExoticComponent<DrawingToolFormContentsProps>;