@opengeoweb/taf 2.1.2 → 2.1.3

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.
@@ -14,17 +14,20 @@ export declare const invalidCloudHeightMessage = "Invalid cloud height, expected
14
14
  export declare const invalidCloudHeightStepsMessage = "Invalid cloud height, a height above 050 must be rounded to the nearest 1000ft";
15
15
  export declare const invalidCLoudTypeMessage = "Invalid cloud type, expected CB or TCU";
16
16
  export declare const invalidHeightTypeCombinationMessage = "Invalid cloud input, when cloud height is 050 or higher, CB or TCU is required";
17
- export declare const invalidVerticalVisibilityMessage = "Invalid vertical visibility, expected VV<value> with value consisting of 3 digits between 000 and 010";
17
+ export declare const invalidVerticalVisibilityMessage = "Invalid vertical visibility, expected VV<value> with value consisting of 3 digits";
18
+ export declare const invalidVerticalVisibilityHeightMessage = "Invalid vertical visibility, visibility should lie between 001 and 010";
19
+ export declare const invalidVerticalVisibilityHeightFGMessage = "Invalid vertical visibility, in case of fog visibility should lie between 001 and 005";
18
20
  export declare const invalidCloudHeightComparedToPreviousMessage = "Invalid cloud height, height must be greater than previous cloud group height";
19
- export declare const invalidCloud2CoverageTypeCombinationMessage = "Invalid cloud input, cloud type is required when coverage is FEW";
21
+ export declare const invalidCloud2CoverageTypeCombinationMessage = "Invalid cloud input, for the second cloud group (excluding any significant convective cloud groups with CB/TCU) a coverage of FEW is not allowed";
20
22
  export declare const invalidCloud2WithVerticalVisibilityMessage = "Invalid cloud input, cloud type is required when Vertical Visibility is given";
21
- export declare const invalidCloud3CoverageTypeCombinationMessage = "Invalid cloud input, cloud type is required when coverage is FEW or SCT";
23
+ export declare const invalidCloud3CoverageTypeCombinationMessage = "Invalid cloud input, for the third cloud group (excluding any significant convective cloud groups with CB/TCU) a coverage of FEW or SCT is not allowed";
22
24
  export declare const invalidCloudWithVerticalVisibilityMessage = "Invalid cloud input, third or fourth cloud group is not allowed when Vertical Visibility is given";
23
25
  export declare const invalidCloudWithPreviousEmptyCloud = "Invalid cloud input, value is not allowed when previous cloud group is empty";
24
26
  export declare const invalidCloudWithNSCMessage = "Invalid cloud input, other cloud groups are not allowed when No Significant Clouds is given";
25
- export declare const invalidCloud4WithPreviousType = "Invalid cloud input, value is not allowed when previous cloud group has a type";
27
+ export declare const invalidCloudWithPreviousType = "Invalid cloud input, only one significant convective cloud group with CB/TCU is allowed";
26
28
  export declare const invalidCloudCAVOKMessage = "Invalid cloud input, when CAVOK is used, cloud groups must be empty";
27
- export declare const validateFirstCloud: (value: string, visibilityValue: string) => boolean | string;
29
+ export declare const invalidCloud4TypeMissingMessage = "Invalid cloud input for fourth group, CB or TCU required if no other significant convective cloud group present";
30
+ export declare const validateFirstCloud: (value: string, visibilityValue: string, weatherfield1: string, weatherfield2: string, weatherfield3: string) => boolean | string;
28
31
  export declare const validateSecondCloud: (firstCloudValue: string, secondCloudValue: string, visibilityValue: string) => boolean | string;
29
32
  export declare const validateThirdCloud: (firstCloudValue: string, secondCloudValue: string, thirdCloudValue: string, visibilityValue: string) => boolean | string;
30
33
  export declare const validateFourthCloud: (firstCloudValue: string, secondCloudValue: string, thirdCloudValue: string, fourthCloudValue: string, visibilityValue: string) => boolean | string;
@@ -1,6 +1,6 @@
1
1
  import { ChangeGroupFormData, Valid } from '../../../types';
2
2
  export declare const FORMAT_DAYS_HOURS = "DDHH";
3
- export declare const FORMAT_DAYS_HOURS_MINUTS = "DDHHmm";
3
+ export declare const FORMAT_DAYS_HOURS_MINUTES = "DDHHmm";
4
4
  export declare const formatValidToString: (valid: Valid) => string;
5
5
  export declare const parseValidToObject: (value: string, tafStart: string, tafEnd: string) => Valid;
6
6
  export declare const invalidValidityDaysHoursStartMessage = "Invalid validity start period, expected a date value between 00 and 31 and an hour value between 00 and 23";
@@ -11,9 +11,11 @@ export declare const invalidValidityPeriodMessage = "Invalid validity period, va
11
11
  export declare const invalidValidityEndTimeMessage = "Invalid validity end time, change group validity must lie within the TAF validity period";
12
12
  export declare const invalidChangeValidInterFieldMessage = "Invalid validity period, expected DDHH/DDHH for BECMG and TEMPO or DDHHmm for FM";
13
13
  export declare const invalidBECMGDurationValidInterFieldMessage = "Invalid validity period, for BECMG only validity periods with a duration of 1, 2, 3 or 4 hours are allowed";
14
+ export declare const invalidChangeGroupOverlapsWithFM = "The valid time of a change group cannot overlap with the valid time of a following FM group. This change group should end before or at the hour of the start of the FM group";
14
15
  export declare const validateValidField: (value: string, tafStart: string, tafEnd: string) => boolean | string;
15
16
  export declare const validateValidChangeGroupInterField: (value: string, valueChange: string, tafStart: string, tafEnd: string) => boolean | string;
16
17
  export declare const invalidPreviousChangeGroupIsBeforeMessage = "Valid time should be after previous valid time";
17
18
  export declare const invalidPreviousChangeGroupOrderMessage: string;
18
19
  export declare const invalidPreviousChangeGroupHasSameValue = "When valid times are equal, probability/change can't have the same value as previous row value";
19
- export declare const validatePreviousChangeGroup: (currentChangeGroup: ChangeGroupFormData, nextChangeGroup: ChangeGroupFormData, tafStart: string, tafEnd: string) => boolean | string;
20
+ export declare const validatePreviousChangeGroup: (currentChangeGroup: ChangeGroupFormData, previousChangeGroup: ChangeGroupFormData, tafStart: string, tafEnd: string) => boolean | string;
21
+ export declare const validateOverlapWithFM: (currentChangeGroup: ChangeGroupFormData, nextChangeGroups: ChangeGroupFormData[], tafStart: string, tafEnd: string) => boolean | string;
@@ -13,4 +13,5 @@ export declare const invalidWindGustSpeedBelow15Message = "Invalid wind gusts, g
13
13
  export declare const invalidGustForWindP99Message = "Invalid wind speed and gust combination, if wind is P99, gusts can only be empty or P99";
14
14
  export declare const invalidWindSpeedForDirectionZeroMessage = "Invalid wind speed, if direction is 000, speed can only be 00";
15
15
  export declare const invalidWindSpeedForDirectionNonZeroMessage = "Invalid wind speed, if direction is not 000, speed can not be 00";
16
- export declare const validateWindField: (value: string) => boolean | string;
16
+ export declare const invalidWindVRBWindDirectionMessage = "Invalid wind direction, VRB can only be used in combination with windspeeds smaller than 4 or in combination with gusts and showers";
17
+ export declare const validateWindField: (value: string, weatherfield1: string, weatherfield2: string, weatherfield3: string) => boolean | string;
@@ -19,3 +19,7 @@ export declare const EditTafFormWithMultipleSameStartDates: {
19
19
  (): React.ReactElement;
20
20
  storyName: string;
21
21
  };
22
+ export declare const EditTafFormWithFMOverlap: {
23
+ (): React.ReactElement;
24
+ storyName: string;
25
+ };
@@ -15,3 +15,4 @@ export declare const fakeAmendmentFixedTaf: TafFromBackend;
15
15
  export declare const fakePublishedTafWithChangeGroups: TafFromBackend;
16
16
  export declare const fakePublishedTafWithSameDates: TafFromBackend;
17
17
  export declare const fakePublishedTafWithSameDatesFixed: TafFromBackend;
18
+ export declare const fakeTafWithFM: TafFromBackend;
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { UseFormOptions } from 'react-hook-form';
2
3
  export declare const getActiveStartEndValidSlot: () => {
3
4
  start: string;
4
5
  end: string;
@@ -10,5 +11,10 @@ interface TestWrapperProps extends WrapperProps {
10
11
  createApiFunc?: () => void;
11
12
  }
12
13
  export declare const TestWrapper: React.FC<TestWrapperProps>;
14
+ interface TestFormWrapperProps {
15
+ children: React.ReactNode;
16
+ options?: UseFormOptions;
17
+ }
18
+ export declare const TestFormWrapper: React.FC<TestFormWrapperProps>;
13
19
  export declare const StoryWrapper: React.FC<WrapperProps>;
14
20
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/taf",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "GeoWeb TAF library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,22 +14,22 @@
14
14
  "peerDependencies": {
15
15
  "react": "16.14.0",
16
16
  "@material-ui/core": "^4.11.0",
17
- "@opengeoweb/theme": "2.1.2",
17
+ "@opengeoweb/theme": "2.1.3",
18
18
  "@material-ui/lab": "^4.0.0-alpha.56",
19
19
  "@material-ui/icons": "^4.9.1",
20
20
  "react-hook-form": "^6.12.1",
21
- "@opengeoweb/shared": "2.1.2",
21
+ "@opengeoweb/shared": "2.1.3",
22
22
  "react-draggable": "^4.4.3",
23
23
  "re-resizable": "^6.9.0",
24
24
  "lodash": "^4.17.20",
25
- "@opengeoweb/form-fields": "2.1.2",
25
+ "@opengeoweb/form-fields": "2.1.3",
26
26
  "moment": "^2.29.0",
27
27
  "@material-ui/pickers": "^3.2.10",
28
28
  "moment-timezone": "^0.5.31",
29
29
  "@date-io/moment": "^1.3.13",
30
30
  "axios": "^0.21.4",
31
31
  "react-sortablejs": "^6.0.0",
32
- "@opengeoweb/api": "2.1.2",
32
+ "@opengeoweb/api": "2.1.3",
33
33
  "sortablejs": "^1.14.0"
34
34
  }
35
35
  }