@opengeoweb/form-fields 9.20.2 → 9.21.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 +1335 -1311
- package/package.json +2 -2
- package/src/lib/components/index.d.ts +1 -1
- package/src/lib/components/utils.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/form-fields",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.21.0",
|
|
4
4
|
"description": "GeoWeb form-fields library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"react-hook-form": "^7.50.1",
|
|
14
14
|
"@mui/x-date-pickers": "^6.18.5",
|
|
15
15
|
"lodash": "^4.17.21",
|
|
16
|
-
"@opengeoweb/shared": "9.
|
|
16
|
+
"@opengeoweb/shared": "9.21.0"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"react": "18"
|
|
@@ -8,5 +8,5 @@ export * from './ReactHookFormDateTime';
|
|
|
8
8
|
export { default as ReactHookFormProvider } from './ReactHookFormProvider';
|
|
9
9
|
export { default as ReactHookFormHiddenInput } from './ReactHookFormHiddenInput';
|
|
10
10
|
export { defaultFormOptions } from './ReactHookFormProvider';
|
|
11
|
-
export { errorMessages, isMaximumOneDrawing, hasValidGeometry, isGeometryDirty, isValidGeoJsonCoordinates, hasIntersectionWithFIR, isValidMax, isValidMin, isInteger, hasMulitpleIntersections, isLatitude, isLongitude, isNonOrBothCoordinates, isEmpty, isXHoursAfter, isXHoursBefore, } from './utils';
|
|
11
|
+
export { errorMessages, isMaximumOneDrawing, hasValidGeometry, isGeometryDirty, isValidGeoJsonCoordinates, hasIntersectionWithFIR, countIntersectionPoints, isValidMax, isValidMin, isInteger, hasMulitpleIntersections, isLatitude, isLongitude, isNonOrBothCoordinates, isEmpty, isXHoursAfter, isXHoursBefore, } from './utils';
|
|
12
12
|
export { getDeepProperty } from './formUtils';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Polygon } from 'geojson';
|
|
1
2
|
export declare const defaultProps: {
|
|
2
3
|
shouldUnregister: boolean;
|
|
3
4
|
};
|
|
@@ -29,6 +30,7 @@ export declare const isValidGeoJsonCoordinates: (geojson: GeoJSON.FeatureCollect
|
|
|
29
30
|
export declare const isMaximumOneDrawing: (geojson: GeoJSON.FeatureCollection) => boolean;
|
|
30
31
|
export declare const hasIntersectionWithFIR: (geojson: GeoJSON.FeatureCollection, intersection: GeoJSON.FeatureCollection) => boolean;
|
|
31
32
|
export declare const hasMulitpleIntersections: (geojson: GeoJSON.FeatureCollection) => boolean;
|
|
33
|
+
export declare const countIntersectionPoints: (geojson: GeoJSON.FeatureCollection<Polygon>, intersection: GeoJSON.FeatureCollection<Polygon>) => number;
|
|
32
34
|
export declare const isGeometryDirty: (geoJSON?: GeoJSON.FeatureCollection | null, formGeoJSON?: GeoJSON.FeatureCollection | null) => boolean;
|
|
33
35
|
export declare const isInteger: (value: number) => boolean;
|
|
34
36
|
export declare const isNumeric: (value: any) => boolean;
|