@opengeoweb/sigmet-airmet 4.3.0 → 4.4.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 +128 -51
- package/index.umd.js +130 -46
- package/lib/components/ProductForms/ProductFormFields/Change.d.ts +2 -5
- package/lib/components/ProductForms/ProductFormFields/CloudLevels.d.ts +2 -6
- package/lib/components/ProductForms/ProductFormFields/IssuedAt.d.ts +1 -0
- package/lib/components/ProductForms/ProductFormFields/Levels.d.ts +2 -8
- package/lib/components/ProductForms/ProductFormFields/ObservationForecast.d.ts +2 -5
- package/lib/components/ProductForms/ProductFormFields/ObservationForecastTime.d.ts +2 -4
- package/lib/components/ProductForms/ProductFormFields/Phenomenon.d.ts +2 -7
- package/lib/components/ProductForms/ProductFormFields/Progress.d.ts +2 -6
- package/lib/components/ProductForms/ProductFormFields/SelectFIR.d.ts +2 -6
- package/lib/components/ProductForms/ProductFormFields/SurfaceVisibility.d.ts +2 -5
- package/lib/components/ProductForms/ProductFormFields/SurfaceWind.d.ts +2 -5
- package/lib/components/ProductForms/ProductFormFields/Type.d.ts +2 -5
- package/lib/components/ProductForms/ProductFormFields/ValidFrom.d.ts +2 -7
- package/lib/components/ProductForms/ProductFormFields/ValidUntil.d.ts +2 -7
- package/lib/components/ProductForms/ProductFormFields/VolcanicFields.d.ts +2 -3
- package/lib/components/ProductForms/utils.d.ts +1 -0
- package/lib/types.d.ts +6 -0
- package/lib/utils/store.d.ts +1 -1
- package/package.json +14 -12
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
isReadOnly: boolean;
|
|
5
|
-
}
|
|
6
|
-
declare const Change: React.FC<ChangeProps>;
|
|
2
|
+
import { FormFieldProps } from '../../../types';
|
|
3
|
+
declare const Change: React.FC<FormFieldProps>;
|
|
7
4
|
export default Change;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { FormFieldProps } from '../../../types';
|
|
2
3
|
export declare const invalidStepsForFeetUnitMessage = "A level must be rounded to the nearest 100 ft";
|
|
3
4
|
export declare const invalidStepsForMetersUnitBelow2970Message = "A level must be rounded to the nearest 30 m";
|
|
4
5
|
export declare const invalidStepsForMetersUnitAbove2970Message = "A level must be rounded to the nearest 300 m";
|
|
5
6
|
export declare const invalidUnitMessage = "Level unit not defined";
|
|
6
7
|
export declare const validateRoundedStep: (value: string, unit: string) => boolean | string;
|
|
7
|
-
|
|
8
|
-
isDisabled: boolean;
|
|
9
|
-
isReadOnly: boolean;
|
|
10
|
-
onChange?: () => void;
|
|
11
|
-
}
|
|
12
|
-
declare const CloudLevels: React.FC<CloudLevelsProps>;
|
|
8
|
+
declare const CloudLevels: React.FC<FormFieldProps>;
|
|
13
9
|
export default CloudLevels;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FormFieldProps } from '../../../types';
|
|
3
3
|
export declare const invalidLevelsTill4900FTStepsMessage = "Levels must be rounded to the nearest 100ft";
|
|
4
4
|
export declare const invalidLevelsFrom50FLStepsMessage = "Levels must be rounded to the nearest 5";
|
|
5
5
|
export declare const validateLevels: (value: string, unit: string) => boolean | string;
|
|
6
6
|
export declare const invalidLevelUnitCombinationMessage = "Invalid unit combination";
|
|
7
7
|
export declare const validateLevelUnitCombinations: (levelUnit: string, lowerLevelUnit: string) => boolean | string;
|
|
8
|
-
|
|
9
|
-
isDisabled: boolean;
|
|
10
|
-
isReadOnly: boolean;
|
|
11
|
-
onChange?: () => void;
|
|
12
|
-
productType: ProductType;
|
|
13
|
-
}
|
|
14
|
-
declare const Levels: React.FC<LevelsProps>;
|
|
8
|
+
declare const Levels: React.FC<FormFieldProps>;
|
|
15
9
|
export default Levels;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
isReadOnly: boolean;
|
|
5
|
-
}
|
|
6
|
-
declare const ObservationForecast: React.FC<ObservationForecastProps>;
|
|
2
|
+
import { FormFieldProps } from '../../../types';
|
|
3
|
+
declare const ObservationForecast: React.FC<FormFieldProps>;
|
|
7
4
|
export default ObservationForecast;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { FormFieldProps } from '../../../types';
|
|
2
3
|
export declare const ForecastTimeValidation = "Forecast time should lie between the valid start and valid end time";
|
|
3
|
-
interface ObservationForecastTimeProps {
|
|
4
|
-
isDisabled: boolean;
|
|
5
|
-
isReadOnly: boolean;
|
|
4
|
+
interface ObservationForecastTimeProps extends FormFieldProps {
|
|
6
5
|
helperText: string;
|
|
7
|
-
onChange?: () => void;
|
|
8
6
|
}
|
|
9
7
|
declare const ObservationForecastTime: React.FC<ObservationForecastTimeProps>;
|
|
10
8
|
export default ObservationForecastTime;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
productType: ProductType;
|
|
5
|
-
isDisabled: boolean;
|
|
6
|
-
onChange?: () => void;
|
|
7
|
-
}
|
|
8
|
-
declare const Phenomenon: React.FC<PhenomenonProps>;
|
|
2
|
+
import { FormFieldProps } from '../../../types';
|
|
3
|
+
declare const Phenomenon: React.FC<FormFieldProps>;
|
|
9
4
|
export default Phenomenon;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MapDrawMode, StartOrEndDrawing, SetMapDrawModes, MapGeoJSONS,
|
|
2
|
+
import { MapDrawMode, StartOrEndDrawing, SetMapDrawModes, MapGeoJSONS, FormFieldProps } from '../../../types';
|
|
3
3
|
export declare const movementStepValMessageKT = "Speed should be rounded to the nearest 5kt";
|
|
4
4
|
export declare const movementStepValMessageKMH = "Speed should be rounded to the nearest 10kmh";
|
|
5
5
|
export declare const noIntersectionMessage = "The end position needs to be (partly) inside the FIR";
|
|
@@ -7,14 +7,10 @@ export declare const maximum6PointsMessage = "The end position drawing allows a
|
|
|
7
7
|
export declare const validateMovementSteps: (value: string, unit: string) => boolean | string;
|
|
8
8
|
export declare const getMaxMovementSpeedValue: (unit: string) => number;
|
|
9
9
|
export declare const getMinMovementSpeedValue: (unit: string) => number;
|
|
10
|
-
interface ProgressProps {
|
|
11
|
-
productType: ProductType;
|
|
10
|
+
interface ProgressProps extends FormFieldProps {
|
|
12
11
|
drawMode?: SetMapDrawModes;
|
|
13
|
-
isDisabled?: boolean;
|
|
14
|
-
isReadOnly?: boolean;
|
|
15
12
|
geoJSONs?: MapGeoJSONS;
|
|
16
13
|
setDrawModeType?: (mapDrawMode: MapDrawMode, startOrEnd: StartOrEndDrawing) => void;
|
|
17
|
-
onChange?: () => void;
|
|
18
14
|
}
|
|
19
15
|
declare const Progress: React.FC<ProgressProps>;
|
|
20
16
|
export default Progress;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
productType: ProductType;
|
|
5
|
-
isDisabled: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare const SelectFIR: React.FC<SelectFIRProps>;
|
|
2
|
+
import { FormFieldProps } from '../../../types';
|
|
3
|
+
declare const SelectFIR: React.FC<FormFieldProps>;
|
|
8
4
|
export default SelectFIR;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { FormFieldProps } from '../../../types';
|
|
2
3
|
export declare const invalidSurfaceVisibilityTill750StepsMessage = "A visibility below 750m must be rounded to the nearest 50m";
|
|
3
4
|
export declare const invalidSurfaceVisibilityFrom750StepsMessage = "A visibility above 750m must be rounded to the nearest 100m";
|
|
4
5
|
export declare const validateSurfaceVisibility: (value: string) => boolean | string;
|
|
5
|
-
|
|
6
|
-
isDisabled: boolean;
|
|
7
|
-
onChange: () => void;
|
|
8
|
-
}
|
|
9
|
-
declare const SurfaceVisibility: React.FC<SurfaceVisibilityProps>;
|
|
6
|
+
declare const SurfaceVisibility: React.FC<FormFieldProps>;
|
|
10
7
|
export default SurfaceVisibility;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { FormFieldProps } from '../../../types';
|
|
2
3
|
export declare const invalidSurfaceWindDirectionStepsMessage = "Direction must be rounded to the nearest 10 deg.";
|
|
3
4
|
export declare const validateSurfaceWindDirection: (value: string) => boolean | string;
|
|
4
|
-
|
|
5
|
-
isDisabled: boolean;
|
|
6
|
-
onChange: () => void;
|
|
7
|
-
}
|
|
8
|
-
declare const SurfaceWind: React.FC<SurfaceWindProps>;
|
|
5
|
+
declare const SurfaceWind: React.FC<FormFieldProps>;
|
|
9
6
|
export default SurfaceWind;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
isDisabled: boolean;
|
|
5
|
-
}
|
|
6
|
-
declare const Type: React.FC<TypeProps>;
|
|
2
|
+
import { FormFieldProps } from '../../../types';
|
|
3
|
+
declare const Type: React.FC<FormFieldProps>;
|
|
7
4
|
export default Type;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FormFieldProps } from '../../../types';
|
|
3
3
|
export declare const VALID_FROM_TIME_DELAY_IN_MINUTES = 30;
|
|
4
4
|
export declare const VALID_FROM_ERROR_BEFORE_CURRENT = "Valid from time cannot be before current time";
|
|
5
5
|
export declare const getValidFromXHoursBeforeMessage: (hours: number) => string;
|
|
6
|
-
|
|
7
|
-
productType: ProductType;
|
|
8
|
-
isDisabled: boolean;
|
|
9
|
-
onChange?: () => void;
|
|
10
|
-
}
|
|
11
|
-
declare const ValidFrom: React.FC<ValidFromProps>;
|
|
6
|
+
declare const ValidFrom: React.FC<FormFieldProps>;
|
|
12
7
|
export default ValidFrom;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ProductType } from '../../../types';
|
|
3
|
-
interface ValidUntilProps {
|
|
4
|
-
productType: ProductType;
|
|
5
|
-
isDisabled: boolean;
|
|
6
|
-
onChange?: () => void;
|
|
7
|
-
}
|
|
2
|
+
import { FormFieldProps, ProductType } from '../../../types';
|
|
8
3
|
export declare const DEFAULT_VALID_TIME_SIGMET = 3;
|
|
9
4
|
export declare const DEFAULT_VALID_TIME_AIRMET = 1;
|
|
10
5
|
export declare const getDefaultHoursValid: (productType: ProductType) => number;
|
|
11
|
-
declare const ValidUntil: React.FC<
|
|
6
|
+
declare const ValidUntil: React.FC<FormFieldProps>;
|
|
12
7
|
export default ValidUntil;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
isReadOnly: boolean;
|
|
2
|
+
import { FormFieldProps } from '../../../types';
|
|
3
|
+
interface VolcanicFieldsProps extends FormFieldProps {
|
|
5
4
|
helperText: string;
|
|
6
5
|
}
|
|
7
6
|
declare const VolcanicFields: React.FC<VolcanicFieldsProps>;
|
|
@@ -38,4 +38,5 @@ export declare const getConfirmationDialogCancelLabel: (action: ProductActions)
|
|
|
38
38
|
export declare const getProductIssueDate: (initialProduct: Sigmet | Airmet, initialCancelProduct: CancelSigmet | CancelAirmet) => string;
|
|
39
39
|
export declare const getAllowedUnits: (selectedFIR: string, allowedUnits: FirAllowedUnits, config_type: string, unitType: Record<string, string>) => Record<string, string>;
|
|
40
40
|
export declare const rewindGeometry: (geoJSON: FeatureCollection) => FeatureCollection;
|
|
41
|
+
export declare const getFieldLabel: (title: string, isDisabled: boolean, action?: string) => string;
|
|
41
42
|
export {};
|
package/lib/types.d.ts
CHANGED
|
@@ -325,6 +325,12 @@ export interface GeoJSONTemplate {
|
|
|
325
325
|
FIR: MapGeoJSONS;
|
|
326
326
|
}
|
|
327
327
|
export declare type FormMode = 'new' | 'edit' | 'view';
|
|
328
|
+
export interface FormFieldProps {
|
|
329
|
+
productType?: ProductType;
|
|
330
|
+
onChange?: () => void;
|
|
331
|
+
isDisabled: boolean;
|
|
332
|
+
isReadOnly?: boolean;
|
|
333
|
+
}
|
|
328
334
|
export interface AllowedUnits {
|
|
329
335
|
unit_type: string;
|
|
330
336
|
allowed_units: string[];
|
package/lib/utils/store.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const store: import("redux-
|
|
1
|
+
declare const store: import("@redux-eggs/core").EggExt & import("@redux-eggs/redux-toolkit").DefaultEnhancedStore;
|
|
2
2
|
export { store };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/sigmet-airmet",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -12,35 +12,37 @@
|
|
|
12
12
|
"typings": "./index.d.ts",
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"react": "^17.0.2",
|
|
15
|
-
"react-redux": "^8.0.
|
|
15
|
+
"react-redux": "^8.0.4",
|
|
16
16
|
"@mui/material": "^5.10.8",
|
|
17
|
-
"@opengeoweb/shared": "4.
|
|
18
|
-
"@opengeoweb/theme": "4.
|
|
17
|
+
"@opengeoweb/shared": "4.4.0",
|
|
18
|
+
"@opengeoweb/theme": "4.4.0",
|
|
19
19
|
"react-draggable": "^4.4.5",
|
|
20
20
|
"re-resizable": "^6.9.0",
|
|
21
|
-
"
|
|
22
|
-
"@opengeoweb/form-fields": "4.
|
|
21
|
+
"@redux-eggs/core": "^2.2.0",
|
|
22
|
+
"@opengeoweb/form-fields": "4.4.0",
|
|
23
23
|
"react-hook-form": "^6.12.1",
|
|
24
24
|
"moment": "^2.29.0",
|
|
25
25
|
"moment-timezone": "^0.5.31",
|
|
26
26
|
"@mui/x-date-pickers": "^5.0.4",
|
|
27
|
+
"lodash": "^4.17.20",
|
|
27
28
|
"axios": "^0.25.0",
|
|
28
|
-
"@opengeoweb/core": "4.
|
|
29
|
+
"@opengeoweb/core": "4.4.0",
|
|
29
30
|
"react-intl": "^5.17.5",
|
|
30
|
-
"@opengeoweb/webmap": "4.
|
|
31
|
+
"@opengeoweb/webmap": "4.4.0",
|
|
31
32
|
"throttle-debounce": "^3.0.1",
|
|
32
33
|
"proj4": "^2.6.2",
|
|
33
34
|
"react-sortablejs": "^6.1.4",
|
|
34
35
|
"sortablejs": "^1.15.0",
|
|
35
36
|
"react-window": "^1.8.7",
|
|
36
|
-
"redux-dynamic-modules": "^5.2.0",
|
|
37
37
|
"immer": "^9.0.15",
|
|
38
38
|
"@reduxjs/toolkit": "^1.8.3",
|
|
39
39
|
"lodash.clonedeep": "^4.5.0",
|
|
40
40
|
"@turf/turf": "^5.1.6",
|
|
41
|
-
"
|
|
42
|
-
"redux-saga": "^1.1
|
|
43
|
-
"@
|
|
41
|
+
"@mui/system": "^5.10.8",
|
|
42
|
+
"redux-saga": "^1.2.1",
|
|
43
|
+
"@redux-eggs/redux-toolkit": "^2.2.0",
|
|
44
|
+
"@redux-eggs/saga-extension": "^2.2.0",
|
|
45
|
+
"@opengeoweb/api": "4.4.0"
|
|
44
46
|
},
|
|
45
47
|
"peerDependencies": {}
|
|
46
48
|
}
|