@opengeoweb/sigmet-airmet 4.2.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.
Files changed (36) hide show
  1. package/index.esm.js +1244 -1191
  2. package/index.umd.js +1186 -1152
  3. package/lib/AirmetDemo.stories.d.ts +1 -0
  4. package/lib/SigmetDemo.stories.d.ts +1 -0
  5. package/lib/components/ContentDialog/ContentDialog.stories.d.ts +80 -1
  6. package/lib/components/ProductForms/AirmetForm/AirmetForm.stories.d.ts +79 -4
  7. package/lib/components/ProductForms/ProductForm.styles.d.ts +22 -9
  8. package/lib/components/ProductForms/ProductFormDialog.Sigmet.stories.d.ts +1 -0
  9. package/lib/components/ProductForms/ProductFormFields/Change.d.ts +2 -5
  10. package/lib/components/ProductForms/ProductFormFields/CloudLevels.d.ts +2 -6
  11. package/lib/components/ProductForms/ProductFormFields/IssuedAt.d.ts +7 -0
  12. package/lib/components/ProductForms/ProductFormFields/IssuedAt.spec.d.ts +1 -0
  13. package/lib/components/ProductForms/ProductFormFields/Levels.d.ts +2 -8
  14. package/lib/components/ProductForms/ProductFormFields/ObservationForecast.d.ts +2 -5
  15. package/lib/components/ProductForms/ProductFormFields/ObservationForecastTime.d.ts +2 -4
  16. package/lib/components/ProductForms/ProductFormFields/Phenomenon.d.ts +2 -7
  17. package/lib/components/ProductForms/ProductFormFields/ProductFormFieldLayout.d.ts +8 -0
  18. package/lib/components/ProductForms/ProductFormFields/ProductFormFieldLayout.spec.d.ts +1 -0
  19. package/lib/components/ProductForms/ProductFormFields/Progress.d.ts +2 -6
  20. package/lib/components/ProductForms/ProductFormFields/SelectFIR.d.ts +2 -6
  21. package/lib/components/ProductForms/ProductFormFields/SurfaceVisibility.d.ts +2 -5
  22. package/lib/components/ProductForms/ProductFormFields/SurfaceWind.d.ts +2 -5
  23. package/lib/components/ProductForms/ProductFormFields/Tac.d.ts +7 -0
  24. package/lib/components/ProductForms/ProductFormFields/Tac.spec.d.ts +1 -0
  25. package/lib/components/ProductForms/ProductFormFields/Type.d.ts +2 -5
  26. package/lib/components/ProductForms/ProductFormFields/ValidFrom.d.ts +4 -7
  27. package/lib/components/ProductForms/ProductFormFields/ValidUntil.d.ts +2 -7
  28. package/lib/components/ProductForms/ProductFormFields/VolcanicFields.d.ts +2 -3
  29. package/lib/components/ProductForms/ProductFormLayout.d.ts +7 -0
  30. package/lib/components/ProductForms/SigmetForm/SigmetForm.stories.d.ts +88 -4
  31. package/lib/components/ProductForms/utils.d.ts +1 -0
  32. package/lib/components/ProductList/ProductList.stories.d.ts +32 -0
  33. package/lib/types.d.ts +6 -0
  34. package/lib/utils/store.d.ts +1 -1
  35. package/lib/utils/testUtils.d.ts +2 -1
  36. package/package.json +19 -16
@@ -12,3 +12,4 @@ export declare const AirmetDialogDemo: {
12
12
  }[];
13
13
  };
14
14
  };
15
+ export declare const AirmetDialogDemoDark: () => React.ReactElement;
@@ -12,3 +12,4 @@ export declare const SigmetDialogDemo: {
12
12
  }[];
13
13
  };
14
14
  };
15
+ export declare const SigmetDialogDemoDark: () => React.ReactElement;
@@ -4,4 +4,83 @@ declare const _default: {
4
4
  };
5
5
  export default _default;
6
6
  export declare const ContentDialogDemo: () => React.ReactElement;
7
- export declare const OpenDialogDemo: () => React.ReactElement;
7
+ export declare const NewDialogDemoLight: {
8
+ (): React.ReactElement;
9
+ storyName: string;
10
+ parameters: {
11
+ zeplinLink: {
12
+ name: string;
13
+ link: string;
14
+ }[];
15
+ };
16
+ };
17
+ export declare const NewDialogDemoDark: {
18
+ (): React.ReactElement;
19
+ storyName: string;
20
+ parameters: {
21
+ zeplinLink: {
22
+ name: string;
23
+ link: string;
24
+ }[];
25
+ };
26
+ };
27
+ export declare const ViewDialogDemoLight: {
28
+ (): React.ReactElement;
29
+ storyName: string;
30
+ parameters: {
31
+ zeplinLink: {
32
+ name: string;
33
+ link: string;
34
+ }[];
35
+ };
36
+ };
37
+ export declare const ViewDialogDemoDark: {
38
+ (): React.ReactElement;
39
+ storyName: string;
40
+ parameters: {
41
+ zeplinLink: {
42
+ name: string;
43
+ link: string;
44
+ }[];
45
+ };
46
+ };
47
+ export declare const ExpiredDialogDemoLight: {
48
+ (): React.ReactElement;
49
+ storyName: string;
50
+ parameters: {
51
+ zeplinLink: {
52
+ name: string;
53
+ link: string;
54
+ }[];
55
+ };
56
+ };
57
+ export declare const ExpiredDialogDemoDark: {
58
+ (): React.ReactElement;
59
+ storyName: string;
60
+ parameters: {
61
+ zeplinLink: {
62
+ name: string;
63
+ link: string;
64
+ }[];
65
+ };
66
+ };
67
+ export declare const EditDialogDemoLight: {
68
+ (): React.ReactElement;
69
+ storyName: string;
70
+ parameters: {
71
+ zeplinLink: {
72
+ name: string;
73
+ link: string;
74
+ }[];
75
+ };
76
+ };
77
+ export declare const EditDialogDemoDark: {
78
+ (): React.ReactElement;
79
+ storyName: string;
80
+ parameters: {
81
+ zeplinLink: {
82
+ name: string;
83
+ link: string;
84
+ }[];
85
+ };
86
+ };
@@ -3,19 +3,94 @@ declare const _default: {
3
3
  title: string;
4
4
  };
5
5
  export default _default;
6
- export declare const NewAirmet: {
6
+ export declare const NewAirmetLightTheme: {
7
7
  (): React.ReactElement;
8
8
  storyName: string;
9
+ parameters: {
10
+ zeplinLink: {
11
+ name: string;
12
+ link: string;
13
+ }[];
14
+ };
9
15
  };
10
- export declare const EditAirmet: {
16
+ export declare const NewAirmetDarkTheme: {
11
17
  (): React.ReactElement;
12
18
  storyName: string;
19
+ parameters: {
20
+ zeplinLink: {
21
+ name: string;
22
+ link: string;
23
+ }[];
24
+ };
13
25
  };
14
- export declare const ViewAirmet: {
26
+ export declare const ErrorAirmetLightTheme: {
15
27
  (): React.ReactElement;
16
28
  storyName: string;
29
+ parameters: {
30
+ zeplinLink: {
31
+ name: string;
32
+ link: string;
33
+ }[];
34
+ };
17
35
  };
18
- export declare const CancelledAirmet: {
36
+ export declare const ErrorAirmetDarkTheme: {
19
37
  (): React.ReactElement;
20
38
  storyName: string;
39
+ parameters: {
40
+ zeplinLink: {
41
+ name: string;
42
+ link: string;
43
+ }[];
44
+ };
21
45
  };
46
+ export declare const EditAirmetLightTheme: {
47
+ (): React.ReactElement;
48
+ storyName: string;
49
+ parameters: {
50
+ zeplinLink: {
51
+ name: string;
52
+ link: string;
53
+ }[];
54
+ };
55
+ };
56
+ export declare const EditAirmetDarkTheme: {
57
+ (): React.ReactElement;
58
+ storyName: string;
59
+ parameters: {
60
+ zeplinLink: {
61
+ name: string;
62
+ link: string;
63
+ }[];
64
+ };
65
+ };
66
+ export declare const ViewAirmetLightTheme: {
67
+ (): React.ReactElement;
68
+ storyName: string;
69
+ parameters: {
70
+ zeplinLink: {
71
+ name: string;
72
+ link: string;
73
+ }[];
74
+ };
75
+ };
76
+ export declare const ViewAirmetDarkTheme: {
77
+ (): React.ReactElement;
78
+ storyName: string;
79
+ parameters: {
80
+ zeplinLink: {
81
+ name: string;
82
+ link: string;
83
+ }[];
84
+ };
85
+ };
86
+ export declare const CancelAirmetLightTheme: {
87
+ (): React.ReactElement;
88
+ storyName: string;
89
+ parameters: {
90
+ zeplinLink: {
91
+ name: string;
92
+ link: string;
93
+ }[];
94
+ };
95
+ };
96
+ export declare const CancelAirmetDarkTheme: () => React.ReactElement;
@@ -1,18 +1,16 @@
1
1
  export declare const styles: {
2
- productForm: {
3
- overflowY: string;
4
- overflowX: string;
5
- height: string;
6
- width: string;
7
- };
8
2
  label: {
9
- paddingTop: string;
3
+ fontSize: string;
4
+ marginTop: number;
5
+ textAlign: string;
10
6
  };
11
7
  body: {
12
8
  paddingTop: string;
13
9
  };
14
10
  containerItem: {
15
- paddingTop: string;
11
+ ' .MuiTypography-subtitle1': {
12
+ marginTop: number;
13
+ };
16
14
  };
17
15
  volcanicField: {
18
16
  marginBottom: number;
@@ -40,6 +38,21 @@ export declare const styles: {
40
38
  opacity: string;
41
39
  };
42
40
  drawSection: {
43
- padding: string;
41
+ '+ .MuiGrid-item': {
42
+ paddingTop: number;
43
+ };
44
+ ' .MuiTypography-subtitle1': {
45
+ marginTop: number;
46
+ };
47
+ };
48
+ helperText: {
49
+ ' .MuiFormHelperText-root': {
50
+ position: string;
51
+ top: number;
52
+ '&.Mui-error': {
53
+ top: string;
54
+ position: string;
55
+ };
56
+ };
44
57
  };
45
58
  };
@@ -6,6 +6,7 @@ export default _default;
6
6
  export declare const NewSigmet: () => React.ReactElement;
7
7
  export declare const EditSigmet: () => React.ReactElement;
8
8
  export declare const ViewSigmet: () => React.ReactElement;
9
+ export declare const ViewSigmetDark: () => React.ReactElement;
9
10
  export declare const ViewVolcanicSigmet: () => React.ReactElement;
10
11
  export declare const ViewEmptyOptionalFieldsSigmet: () => React.ReactElement;
11
12
  export declare const CancelledSigmet: () => React.ReactElement;
@@ -1,7 +1,4 @@
1
1
  import React from 'react';
2
- interface ChangeProps {
3
- isDisabled: boolean;
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
- interface CloudLevelsProps {
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;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IssuedAtProps {
3
+ date: string;
4
+ isReadOnly?: boolean;
5
+ }
6
+ declare const IssuedAt: React.FC<IssuedAtProps>;
7
+ export default IssuedAt;
@@ -1,15 +1,9 @@
1
1
  import React from 'react';
2
- import { ProductType } from '../../../types';
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
- interface LevelsProps {
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
- interface ObservationForecastProps {
3
- isDisabled: boolean;
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 { ProductType } from '../../../types';
3
- interface PhenomenonProps {
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;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { GridProps } from '@mui/material';
3
+ interface ProductFormFieldLayoutProps extends GridProps {
4
+ title?: string;
5
+ children: React.ReactNode;
6
+ }
7
+ declare const ProductFormFieldLayout: React.FC<ProductFormFieldLayoutProps>;
8
+ export default ProductFormFieldLayout;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { MapDrawMode, StartOrEndDrawing, SetMapDrawModes, MapGeoJSONS, ProductType } from '../../../types';
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 { ProductType } from '../../../types';
3
- interface SelectFIRProps {
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
- interface SurfaceVisibilityProps {
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
- interface SurfaceWindProps {
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;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface TacProps {
3
+ tac: string;
4
+ children: React.ReactNode;
5
+ }
6
+ declare const Tac: React.FC<TacProps>;
7
+ export default Tac;
@@ -1,7 +1,4 @@
1
1
  import React from 'react';
2
- interface TypeProps {
3
- isReadOnly: boolean;
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,10 +1,7 @@
1
1
  import React from 'react';
2
- import { ProductType } from '../../../types';
2
+ import { FormFieldProps } from '../../../types';
3
3
  export declare const VALID_FROM_TIME_DELAY_IN_MINUTES = 30;
4
- interface ValidFromProps {
5
- productType: ProductType;
6
- isDisabled: boolean;
7
- onChange?: () => void;
8
- }
9
- declare const ValidFrom: React.FC<ValidFromProps>;
4
+ export declare const VALID_FROM_ERROR_BEFORE_CURRENT = "Valid from time cannot be before current time";
5
+ export declare const getValidFromXHoursBeforeMessage: (hours: number) => string;
6
+ declare const ValidFrom: React.FC<FormFieldProps>;
10
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<ValidUntilProps>;
6
+ declare const ValidUntil: React.FC<FormFieldProps>;
12
7
  export default ValidUntil;
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
- interface VolcanicFieldsProps {
3
- isDisabled: boolean;
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>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { MapViewGeoJsonProps } from '../MapViewGeoJson/MapViewGeoJson';
3
+ interface ProducFormLayoutProps extends MapViewGeoJsonProps {
4
+ children: React.ReactNode;
5
+ }
6
+ declare const ProductFormLayout: React.FC<ProducFormLayoutProps>;
7
+ export default ProductFormLayout;
@@ -3,19 +3,103 @@ declare const _default: {
3
3
  title: string;
4
4
  };
5
5
  export default _default;
6
- export declare const NewSigmet: {
6
+ export declare const NewSigmetLightTheme: {
7
7
  (): React.ReactElement;
8
8
  storyName: string;
9
+ parameters: {
10
+ zeplinLink: {
11
+ name: string;
12
+ link: string;
13
+ }[];
14
+ };
9
15
  };
10
- export declare const EditSigmet: {
16
+ export declare const NewSigmetDarkTheme: {
11
17
  (): React.ReactElement;
12
18
  storyName: string;
19
+ parameters: {
20
+ zeplinLink: {
21
+ name: string;
22
+ link: string;
23
+ }[];
24
+ };
13
25
  };
14
- export declare const ViewSigmet: {
26
+ export declare const ErrorSigmetLightTheme: {
15
27
  (): React.ReactElement;
16
28
  storyName: string;
29
+ parameters: {
30
+ zeplinLink: {
31
+ name: string;
32
+ link: string;
33
+ }[];
34
+ };
17
35
  };
18
- export declare const CancelVASigmet: {
36
+ export declare const ErrorSigmetDarkTheme: {
19
37
  (): React.ReactElement;
20
38
  storyName: string;
39
+ parameters: {
40
+ zeplinLink: {
41
+ name: string;
42
+ link: string;
43
+ }[];
44
+ };
45
+ };
46
+ export declare const EditSigmetLightTheme: {
47
+ (): React.ReactElement;
48
+ storyName: string;
49
+ parameters: {
50
+ zeplinLink: {
51
+ name: string;
52
+ link: string;
53
+ }[];
54
+ };
55
+ };
56
+ export declare const EditSigmetDarkTheme: {
57
+ (): React.ReactElement;
58
+ storyName: string;
59
+ parameters: {
60
+ zeplinLink: {
61
+ name: string;
62
+ link: string;
63
+ }[];
64
+ };
65
+ };
66
+ export declare const ViewSigmetLightTheme: {
67
+ (): React.ReactElement;
68
+ storyName: string;
69
+ parameters: {
70
+ zeplinLink: {
71
+ name: string;
72
+ link: string;
73
+ }[];
74
+ };
75
+ };
76
+ export declare const ViewSigmetDarkTheme: {
77
+ (): React.ReactElement;
78
+ storyName: string;
79
+ parameters: {
80
+ zeplinLink: {
81
+ name: string;
82
+ link: string;
83
+ }[];
84
+ };
85
+ };
86
+ export declare const CancelVASigmetLightTheme: {
87
+ (): React.ReactElement;
88
+ storyName: string;
89
+ parameters: {
90
+ zeplinLink: {
91
+ name: string;
92
+ link: string;
93
+ }[];
94
+ };
95
+ };
96
+ export declare const CancelVASigmetDarkTheme: {
97
+ (): React.ReactElement;
98
+ storyName: string;
99
+ parameters: {
100
+ zeplinLink: {
101
+ name: string;
102
+ link: string;
103
+ }[];
104
+ };
21
105
  };
@@ -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 {};
@@ -7,9 +7,41 @@ export declare const SigmetListDemo: () => React.ReactElement;
7
7
  export declare const SigmetListDemoSnapshot: {
8
8
  (): React.ReactElement;
9
9
  storyName: string;
10
+ parameters: {
11
+ zeplinLink: {
12
+ name: string;
13
+ link: string;
14
+ }[];
15
+ };
16
+ };
17
+ export declare const SigmetListDemoSnapshotDarkTheme: {
18
+ (): React.ReactElement;
19
+ storyName: string;
20
+ parameters: {
21
+ zeplinLink: {
22
+ name: string;
23
+ link: string;
24
+ }[];
25
+ };
10
26
  };
11
27
  export declare const AirmetListDemo: () => React.ReactElement;
12
28
  export declare const AirmetListDemoSnapshot: {
13
29
  (): React.ReactElement;
14
30
  storyName: string;
31
+ parameters: {
32
+ zeplinLink: {
33
+ name: string;
34
+ link: string;
35
+ }[];
36
+ };
37
+ };
38
+ export declare const AirmetListDemoSnapshotDarkTheme: {
39
+ (): React.ReactElement;
40
+ storyName: string;
41
+ parameters: {
42
+ zeplinLink: {
43
+ name: string;
44
+ link: string;
45
+ }[];
46
+ };
15
47
  };
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[];