@opengeoweb/taf 16.0.0 → 17.0.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 (134) hide show
  1. package/index.esm.js +879 -349
  2. package/package.json +8 -8
  3. package/src/index.d.ts +0 -7
  4. package/src/lib/NafDemo.stories.d.ts +0 -7
  5. package/src/lib/TafDemo.stories.d.ts +0 -8
  6. package/src/lib/components/AutoTaf/AutoTaf.d.ts +0 -9
  7. package/src/lib/components/AutoTaf/AutoTaf.spec.d.ts +0 -1
  8. package/src/lib/components/AutoTaf/AutoTaf.stories.d.ts +0 -8
  9. package/src/lib/components/AutoTaf/index.d.ts +0 -1
  10. package/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +0 -38
  11. package/src/lib/components/ComponentsLookUp/ComponentsLookUp.spec.d.ts +0 -1
  12. package/src/lib/components/ComponentsLookUp/index.d.ts +0 -1
  13. package/src/lib/components/IssuesPane/IssuesButton.d.ts +0 -10
  14. package/src/lib/components/IssuesPane/IssuesButton.spec.d.ts +0 -1
  15. package/src/lib/components/IssuesPane/IssuesPane.d.ts +0 -14
  16. package/src/lib/components/IssuesPane/IssuesPane.spec.d.ts +0 -1
  17. package/src/lib/components/IssuesPane/IssuesPane.stories.d.ts +0 -9
  18. package/src/lib/components/IssuesPane/IssuesPaneWrapper.d.ts +0 -4
  19. package/src/lib/components/IssuesPane/IssuesPaneWrapper.spec.d.ts +0 -1
  20. package/src/lib/components/IssuesPane/index.d.ts +0 -2
  21. package/src/lib/components/IssuesPane/types.d.ts +0 -16
  22. package/src/lib/components/IssuesPane/utils.d.ts +0 -8
  23. package/src/lib/components/IssuesPane/utils.spec.d.ts +0 -1
  24. package/src/lib/components/Providers/Providers.d.ts +0 -22
  25. package/src/lib/components/Providers/index.d.ts +0 -1
  26. package/src/lib/components/ResponsiveWrapper/ResponsiveWrapper.d.ts +0 -4
  27. package/src/lib/components/ResponsiveWrapper/ResponsiveWrapper.spec.d.ts +0 -1
  28. package/src/lib/components/Spinner/Spinner.d.ts +0 -4
  29. package/src/lib/components/Spinner/Spinner.spec.d.ts +0 -1
  30. package/src/lib/components/Spinner/Spinner.stories.d.ts +0 -10
  31. package/src/lib/components/StatusIcon/StatusIcon.d.ts +0 -8
  32. package/src/lib/components/StatusIcon/StatusIcon.spec.d.ts +0 -1
  33. package/src/lib/components/TabPanel/TabPanel.d.ts +0 -8
  34. package/src/lib/components/TabPanel/TabPanel.spec.d.ts +0 -1
  35. package/src/lib/components/TabPanel/index.d.ts +0 -1
  36. package/src/lib/components/TafAvatar/TafAvatar.d.ts +0 -8
  37. package/src/lib/components/TafAvatar/index.d.ts +0 -1
  38. package/src/lib/components/TafForm/TafForm.d.ts +0 -16
  39. package/src/lib/components/TafForm/TafForm.editor.spec.d.ts +0 -1
  40. package/src/lib/components/TafForm/TafForm.spec.d.ts +0 -1
  41. package/src/lib/components/TafForm/TafForm.statusChanges.spec.d.ts +0 -1
  42. package/src/lib/components/TafForm/TafForm.stories.d.ts +0 -27
  43. package/src/lib/components/TafForm/TafForm.validations.spec.d.ts +0 -1
  44. package/src/lib/components/TafForm/TafFormButtons/TafFormButtons.d.ts +0 -12
  45. package/src/lib/components/TafForm/TafFormButtons/TafFormButtons.spec.d.ts +0 -1
  46. package/src/lib/components/TafForm/TafFormButtons/TafFormOptionsButton.d.ts +0 -11
  47. package/src/lib/components/TafForm/TafFormButtons/TafFormOptionsButton.spec.d.ts +0 -1
  48. package/src/lib/components/TafForm/TafFormRow/DragHandle.d.ts +0 -8
  49. package/src/lib/components/TafForm/TafFormRow/DragHandle.spec.d.ts +0 -1
  50. package/src/lib/components/TafForm/TafFormRow/TafFormRow.d.ts +0 -4
  51. package/src/lib/components/TafForm/TafFormRow/TafFormRow.spec.d.ts +0 -1
  52. package/src/lib/components/TafForm/TafFormRow/TafFormTextField.d.ts +0 -30
  53. package/src/lib/components/TafForm/TafFormRow/TafFormTextField.spec.d.ts +0 -1
  54. package/src/lib/components/TafForm/TafFormRow/types.d.ts +0 -31
  55. package/src/lib/components/TafForm/TafFormRow/validations/change.d.ts +0 -4
  56. package/src/lib/components/TafForm/TafFormRow/validations/change.spec.d.ts +0 -1
  57. package/src/lib/components/TafForm/TafFormRow/validations/clouds.d.ts +0 -34
  58. package/src/lib/components/TafForm/TafFormRow/validations/clouds.spec.d.ts +0 -1
  59. package/src/lib/components/TafForm/TafFormRow/validations/probability.d.ts +0 -2
  60. package/src/lib/components/TafForm/TafFormRow/validations/probability.spec.d.ts +0 -1
  61. package/src/lib/components/TafForm/TafFormRow/validations/utils.d.ts +0 -2
  62. package/src/lib/components/TafForm/TafFormRow/validations/utils.spec.d.ts +0 -1
  63. package/src/lib/components/TafForm/TafFormRow/validations/validField.d.ts +0 -21
  64. package/src/lib/components/TafForm/TafFormRow/validations/validField.spec.d.ts +0 -1
  65. package/src/lib/components/TafForm/TafFormRow/validations/visibility.d.ts +0 -12
  66. package/src/lib/components/TafForm/TafFormRow/validations/visibility.spec.d.ts +0 -1
  67. package/src/lib/components/TafForm/TafFormRow/validations/weather.d.ts +0 -15
  68. package/src/lib/components/TafForm/TafFormRow/validations/weather.spec.d.ts +0 -1
  69. package/src/lib/components/TafForm/TafFormRow/validations/wind.d.ts +0 -16
  70. package/src/lib/components/TafForm/TafFormRow/validations/wind.spec.d.ts +0 -1
  71. package/src/lib/components/TafForm/index.d.ts +0 -1
  72. package/src/lib/components/TafForm/utils.d.ts +0 -73
  73. package/src/lib/components/TafForm/utils.spec.d.ts +0 -1
  74. package/src/lib/components/TafHeader/TafHeader.d.ts +0 -8
  75. package/src/lib/components/TafHeader/TafHeader.spec.d.ts +0 -1
  76. package/src/lib/components/TafLayout/LocationTabs/LocationTabs.d.ts +0 -10
  77. package/src/lib/components/TafLayout/LocationTabs/LocationTabs.spec.d.ts +0 -1
  78. package/src/lib/components/TafLayout/LocationTabs/LocationTabs.stories.d.ts +0 -8
  79. package/src/lib/components/TafLayout/LocationTabs/index.d.ts +0 -1
  80. package/src/lib/components/TafLayout/TacOverview/AdverseWeatherTacMessage.d.ts +0 -8
  81. package/src/lib/components/TafLayout/TacOverview/AdverseWeatherTacMessage.spec.d.ts +0 -1
  82. package/src/lib/components/TafLayout/TacOverview/AdverseWeatherTacMessage.stories.d.ts +0 -8
  83. package/src/lib/components/TafLayout/TacOverview/ExportButton.d.ts +0 -7
  84. package/src/lib/components/TafLayout/TacOverview/ExportButton.spec.d.ts +0 -1
  85. package/src/lib/components/TafLayout/TacOverview/TacContainer.d.ts +0 -13
  86. package/src/lib/components/TafLayout/TacOverview/TacContainer.spec.d.ts +0 -1
  87. package/src/lib/components/TafLayout/TacOverview/TacContainerLayout.d.ts +0 -10
  88. package/src/lib/components/TafLayout/TacOverview/TacOverview.d.ts +0 -12
  89. package/src/lib/components/TafLayout/TacOverview/TacOverview.spec.d.ts +0 -1
  90. package/src/lib/components/TafLayout/TacOverview/TacOverview.stories.d.ts +0 -10
  91. package/src/lib/components/TafLayout/TacOverview/TacOverviewMobile.d.ts +0 -12
  92. package/src/lib/components/TafLayout/TacOverview/TacOverviewMobile.spec.d.ts +0 -1
  93. package/src/lib/components/TafLayout/TacOverview/TacOverviewMobile.stories.d.ts +0 -9
  94. package/src/lib/components/TafLayout/TacOverview/index.d.ts +0 -2
  95. package/src/lib/components/TafLayout/TafLayout.d.ts +0 -10
  96. package/src/lib/components/TafLayout/TafLayout.issuespane.spec.d.ts +0 -1
  97. package/src/lib/components/TafLayout/TafLayout.snackbar.spec.d.ts +0 -1
  98. package/src/lib/components/TafLayout/TafLayout.spec.d.ts +0 -1
  99. package/src/lib/components/TafLayout/TafLayout.stories.d.ts +0 -13
  100. package/src/lib/components/TafLayout/TafLayout.tacoverview.spec.d.ts +0 -1
  101. package/src/lib/components/TafLayout/TafPanel/TafPanel.d.ts +0 -23
  102. package/src/lib/components/TafLayout/TafPanel/TafPanel.spec.d.ts +0 -1
  103. package/src/lib/components/TafLayout/TafPanel/TafPanel.stories.d.ts +0 -11
  104. package/src/lib/components/TafLayout/TafPanel/index.d.ts +0 -1
  105. package/src/lib/components/TafLayout/TopTabs/TopTabs.d.ts +0 -9
  106. package/src/lib/components/TafLayout/TopTabs/TopTabs.spec.d.ts +0 -1
  107. package/src/lib/components/TafLayout/TopTabs/TopTabs.stories.d.ts +0 -8
  108. package/src/lib/components/TafLayout/TopTabs/index.d.ts +0 -1
  109. package/src/lib/components/TafLayout/utils.d.ts +0 -47
  110. package/src/lib/components/TafLayout/utils.spec.d.ts +0 -1
  111. package/src/lib/components/TafModule/TafModule.d.ts +0 -9
  112. package/src/lib/components/TafModule/TafModule.spec.d.ts +0 -1
  113. package/src/lib/components/TafModule/TafModule.stories.d.ts +0 -62
  114. package/src/lib/components/TafModule/TafModuleProvider.d.ts +0 -23
  115. package/src/lib/components/TafModule/index.d.ts +0 -1
  116. package/src/lib/components/TafRemarkField/TafRemarkField.d.ts +0 -7
  117. package/src/lib/components/TafRemarkField/TafRemarkField.spec.d.ts +0 -1
  118. package/src/lib/components/TafRemarkField/index.d.ts +0 -1
  119. package/src/lib/components/TafWrapper/TafConfigWrapper.d.ts +0 -13
  120. package/src/lib/components/TafWrapper/TafWrapper.d.ts +0 -3
  121. package/src/lib/components/TafWrapper/TafWrapper.spec.d.ts +0 -1
  122. package/src/lib/components/TafWrapper/index.d.ts +0 -1
  123. package/src/lib/types.d.ts +0 -173
  124. package/src/lib/utils/dateFormats.d.ts +0 -2
  125. package/src/lib/utils/i18n.d.ts +0 -6
  126. package/src/lib/utils/mockdata/fakeTafConfig.d.ts +0 -2
  127. package/src/lib/utils/mockdata/fakeTafList.d.ts +0 -26
  128. package/src/lib/utils/mockdata/naf/fakeNafConfig.d.ts +0 -2
  129. package/src/lib/utils/mockdata/naf/fakeNafList.d.ts +0 -12
  130. package/src/lib/utils/taf-api/api.d.ts +0 -7
  131. package/src/lib/utils/taf-api/fakeApi.d.ts +0 -4
  132. package/src/lib/utils/taf-api/hooks.d.ts +0 -25
  133. package/src/lib/utils/utils.d.ts +0 -1
  134. package/src/lib/utils/weatherPhenomena.d.ts +0 -422
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/taf",
3
- "version": "16.0.0",
3
+ "version": "17.0.0",
4
4
  "description": "GeoWeb TAF library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,15 +8,15 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/api": "16.0.0",
12
- "@opengeoweb/shared": "16.0.0",
11
+ "@opengeoweb/api": "17.0.0",
12
+ "@opengeoweb/shared": "17.0.0",
13
13
  "react-hook-form": "^7.50.1",
14
- "@opengeoweb/theme": "16.0.0",
15
- "@opengeoweb/form-fields": "16.0.0",
16
- "@opengeoweb/authentication": "16.0.0",
14
+ "@opengeoweb/theme": "17.0.0",
15
+ "@opengeoweb/form-fields": "17.0.0",
16
+ "@opengeoweb/authentication": "17.0.0",
17
17
  "@reduxjs/toolkit": "^2.6.1",
18
18
  "react-redux": "^9.2.0",
19
- "@opengeoweb/snackbar": "16.0.0",
19
+ "@opengeoweb/snackbar": "17.0.0",
20
20
  "react-sortablejs": "^6.1.4",
21
21
  "sortablejs": "^1.15.1",
22
22
  "@emotion/react": "^11.11.1",
@@ -34,7 +34,7 @@
34
34
  "@emotion/styled": "*"
35
35
  },
36
36
  "devDependencies": {
37
- "eslint-plugin-storybook": "9.0.17"
37
+ "eslint-plugin-storybook": "10.3.3"
38
38
  },
39
39
  "module": "./index.esm.js",
40
40
  "type": "module",
package/src/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import tafTranslations from '../locales/taf.json';
2
- export * from './lib/components/TafForm';
3
- export * from './lib/components/TafModule';
4
- export * from './lib/components/ComponentsLookUp';
5
- export { tafEndPoints } from './lib/utils/taf-api/fakeApi';
6
- export { TAF_NAMESPACE } from './lib/utils/i18n';
7
- export { tafTranslations };
@@ -1,7 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import { TafModule } from './components/TafModule';
3
- type Story = StoryObj<typeof TafModule>;
4
- declare const meta: Meta<typeof TafModule>;
5
- export default meta;
6
- export declare const NafModuleLightTheme: Story;
7
- export declare const NafModuleDarkTheme: Story;
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import { TafModule } from './components/TafModule';
3
- type Story = StoryObj<typeof TafModule>;
4
- declare const meta: Meta<typeof TafModule>;
5
- export default meta;
6
- export declare const TafModuleLightTheme: Story;
7
- export declare const TafModuleDarkTheme: Story;
8
- export declare const TafModuleWithAutoTaf: Story;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { TafFromBackend } from '../../types';
3
- interface AutoTafProps {
4
- tafList: TafFromBackend[];
5
- isFormDisabled?: boolean;
6
- activeTaf?: TafFromBackend;
7
- }
8
- export declare const AutoTaf: React.FC<AutoTafProps>;
9
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import { AutoTaf } from './AutoTaf';
3
- declare const meta: Meta<typeof AutoTaf>;
4
- export default meta;
5
- type Story = StoryObj<typeof AutoTaf>;
6
- export declare const Component: Story;
7
- export declare const ComponentDark: Story;
8
- export declare const ComponentActiveTaf: Story;
@@ -1 +0,0 @@
1
- export * from './AutoTaf';
@@ -1,38 +0,0 @@
1
- import React from 'react';
2
- import type { ApiModule, ApiUrls } from '@opengeoweb/api';
3
- import type { TafType } from '../../types';
4
- export declare const tafScreenPreset: {
5
- id: string;
6
- title: string;
7
- views: {
8
- byId: {
9
- taf: {
10
- title: string;
11
- componentType: string;
12
- initialProps: {};
13
- };
14
- };
15
- allIds: string[];
16
- };
17
- syncGroups: never[];
18
- mosaicNode: string;
19
- };
20
- type TafComponentType = 'TafModule';
21
- interface InitialProps {
22
- isAutoTafEnabled?: boolean;
23
- type?: TafType;
24
- }
25
- export interface ComponentsLookUpPayload {
26
- componentType: TafComponentType;
27
- id: string;
28
- title?: string;
29
- initialProps: InitialProps;
30
- }
31
- export interface ApiModuleProps extends ApiModule {
32
- config: ApiUrls;
33
- onPreventCloseView?: (shouldPreventClose: boolean) => void;
34
- initialProps?: InitialProps;
35
- }
36
- export declare const TafApiWrapper: React.FC<ApiModuleProps>;
37
- export declare const componentsLookUp: (payload: ComponentsLookUpPayload, { config, auth, onSetAuth }: ApiModuleProps, ConnectedModuleWrapper?: any) => React.ReactElement;
38
- export {};
@@ -1 +0,0 @@
1
- export * from './ComponentsLookUp';
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { FieldErrors } from 'react-hook-form';
3
- import type { IssuesPanePosition } from './types';
4
- interface IssuesButtonProps {
5
- errors?: FieldErrors;
6
- isIssuesPaneOpen?: boolean;
7
- setIsIssuesPaneOpen?: (isOpen: boolean, position: IssuesPanePosition) => void;
8
- }
9
- declare const IssuesButton: React.FC<IssuesButtonProps>;
10
- export default IssuesButton;
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import type { IssuesPaneProps, IssuesPanePosition, CustomErrorField } from './types';
3
- export declare const humanizeErrorMessage: (errorTitle: string, fieldNumberedValue: number) => string;
4
- export declare const getErrorMessage: (error: CustomErrorField, index: number) => string;
5
- export declare const MODAL_DIALOG_ELEMENT = "modal-dialog";
6
- export declare const useIssuesPane: () => {
7
- isIssuesPaneOpen: boolean;
8
- startPosition: IssuesPanePosition;
9
- onToggleIssuesPane: (isOpen: boolean, newPosition: IssuesPanePosition) => void;
10
- onCloseIssuesPane: () => void;
11
- onUserHasDragged: () => void;
12
- };
13
- declare const IssuesPane: React.FC<IssuesPaneProps>;
14
- export default IssuesPane;
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import IssuesPane from './IssuesPane';
3
- declare const meta: Meta<typeof IssuesPane>;
4
- export default meta;
5
- type Story = StoryObj<typeof IssuesPane>;
6
- export declare const Component: Story;
7
- export declare const NoIssues: Story;
8
- export declare const OneIssue: Story;
9
- export declare const MultipleIssues: Story;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { IssuesPaneProps } from './types';
3
- declare const IssuesPaneWrapper: React.FC<IssuesPaneProps>;
4
- export default IssuesPaneWrapper;
@@ -1,2 +0,0 @@
1
- export { default as IssuesButton } from './IssuesButton';
2
- export { default as IssuesPane } from './IssuesPane';
@@ -1,16 +0,0 @@
1
- import type { FieldError } from 'react-hook-form';
2
- export interface IssuesPanePosition {
3
- left: number;
4
- top: number;
5
- }
6
- export interface CustomErrorField extends FieldError {
7
- isChangeGroup: boolean;
8
- rowIndex: number;
9
- }
10
- export interface IssuesPaneProps {
11
- errorList?: CustomErrorField[];
12
- isOpen: boolean;
13
- handleClose: () => void;
14
- startPosition?: IssuesPanePosition;
15
- onUserHasDragged?: () => void;
16
- }
@@ -1,8 +0,0 @@
1
- import type { TFunction } from 'i18next';
2
- import type { FieldError, FieldErrors } from 'react-hook-form';
3
- import type { CustomErrorField } from './types';
4
- export declare const getCustomError: (error: FieldError, isChangeGroup: boolean, rowIndex: number) => CustomErrorField;
5
- export declare const getIssuesLabel: (sumOfErrors: number, t: TFunction) => string;
6
- export declare const getErrorValues: (fieldErrors: FieldErrors, isChangeGroup?: boolean, rowIndex?: number) => FieldError[];
7
- export declare const filterDuplicateErrors: (errors: CustomErrorField[]) => CustomErrorField[];
8
- export declare const getErrors: (errors: FieldErrors) => CustomErrorField[];
@@ -1 +0,0 @@
1
- export {};
@@ -1,22 +0,0 @@
1
- import type { Theme } from '@mui/material';
2
- import type { Store } from '@reduxjs/toolkit';
3
- import React from 'react';
4
- import type { UseFormProps } from 'react-hook-form';
5
- export interface TafThemeApiProviderProps {
6
- children: React.ReactNode;
7
- theme?: Theme;
8
- store?: Store;
9
- shouldIncludeTheme?: boolean;
10
- }
11
- export declare const TafThemeWrapper: React.FC<{
12
- children: React.ReactNode;
13
- theme?: Theme;
14
- }>;
15
- export declare const TafThemeApiProvider: React.FC<TafThemeApiProviderProps>;
16
- interface TafThemeFormProviderProps {
17
- children: React.ReactNode;
18
- options?: UseFormProps;
19
- theme?: Theme;
20
- }
21
- export declare const TafThemeFormProvider: React.FC<TafThemeFormProviderProps>;
22
- export {};
@@ -1 +0,0 @@
1
- export * from './Providers';
@@ -1,4 +0,0 @@
1
- import type { BoxProps } from '@mui/material';
2
- import React from 'react';
3
- export declare const TAF_MODULE_ID = "tafmodule";
4
- export declare const ResponsiveWrapper: React.FC<BoxProps>;
@@ -1,4 +0,0 @@
1
- import type { CircularProgressProps } from '@mui/material';
2
- import React from 'react';
3
- declare const Spinner: React.FC<CircularProgressProps>;
4
- export default Spinner;
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("@mui/material").CircularProgressProps>;
5
- };
6
- export default _default;
7
- export declare const SpinnerDemo: {
8
- render: () => React.ReactElement;
9
- tags: string[];
10
- };
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { TafStatus, TimeSlot } from '../../types';
3
- interface StatusIconProps {
4
- status: TafStatus;
5
- timeSlot: TimeSlot;
6
- }
7
- declare const StatusIcon: React.FC<StatusIconProps>;
8
- export default StatusIcon;
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import type { BoxProps } from '@mui/material';
2
- import React from 'react';
3
- interface TabPanelProps extends BoxProps {
4
- index: number;
5
- value: number;
6
- }
7
- declare const TabPanel: React.FC<TabPanelProps>;
8
- export default TabPanel;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export { default as TabPanel } from './TabPanel';
@@ -1,8 +0,0 @@
1
- import type { TooltipProps } from '@mui/material';
2
- import React from 'react';
3
- interface TafAvatarProps {
4
- editor: string;
5
- tooltipPlacement?: TooltipProps['placement'];
6
- }
7
- declare const TafAvatar: React.FC<TafAvatarProps>;
8
- export default TafAvatar;
@@ -1 +0,0 @@
1
- export { default as TafAvatar } from './TafAvatar';
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import type { Taf, TafActions, TafFromBackend, TafFromFrontEnd } from '../../types';
3
- import type { IssuesPanePosition } from '../IssuesPane/types';
4
- export interface TafFormProps {
5
- isDisabled?: boolean;
6
- setIsDisabled?: (isDisabled: boolean) => void;
7
- tafFromBackend: TafFromBackend;
8
- onFormAction?: (action: TafActions, formValues?: Taf) => Promise<boolean>;
9
- isIssuesPaneOpen?: boolean;
10
- setIsIssuesPaneOpen?: (isOpen: boolean, position: IssuesPanePosition) => void;
11
- onSwitchEditor?: (formValues: TafFromFrontEnd) => Promise<boolean>;
12
- previousTaf?: Taf;
13
- shouldEnableRemark?: boolean;
14
- }
15
- declare const TafForm: React.FC<TafFormProps>;
16
- export default TafForm;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,27 +0,0 @@
1
- import type { StoryObj } from '@storybook/react-webpack5';
2
- import React from 'react';
3
- import type { TafFromBackend } from '../../types';
4
- interface WrapperProps {
5
- tafFromBackend: TafFromBackend;
6
- isDisabled?: boolean;
7
- shouldEnableRemark?: boolean;
8
- }
9
- declare const Wrapper: React.FC<WrapperProps>;
10
- declare const _default: {
11
- title: string;
12
- component: React.FC<WrapperProps>;
13
- tags: string[];
14
- };
15
- export default _default;
16
- type Story = StoryObj<typeof Wrapper>;
17
- export declare const NewTafFormLight: Story;
18
- export declare const NewTafFormDark: Story;
19
- export declare const EditTafFormLight: Story;
20
- export declare const EditTafFormDark: Story;
21
- export declare const ViewTafFormLight: Story;
22
- export declare const ViewTafFormDark: Story;
23
- export declare const EditTafFormWithMultipleSameStartDatesLight: Story;
24
- export declare const EditTafFormWithMultipleSameStartDatesDark: Story;
25
- export declare const EditTafFormWithFMOverlapLight: Story;
26
- export declare const EditTafFormWithFMOverlapDark: Story;
27
- export declare const EditTafFormWithRemark: Story;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import type { TafActions, TafCanbe } from '../../../types';
3
- export declare const tafActionToDraftAction: (tafAction: TafActions) => TafActions;
4
- interface TafFormButtonsProps {
5
- isFormDisabled?: boolean;
6
- tafAction?: TafActions;
7
- canBe?: TafCanbe[];
8
- onTafEditModeButtonPress: (action: TafActions) => void;
9
- onTafViewModeButtonPress: (action: TafActions) => void;
10
- }
11
- declare const TafFormButtons: React.FC<TafFormButtonsProps>;
12
- export default TafFormButtons;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- interface TafFormOptionsButtonProps {
3
- isChangeGroup: boolean;
4
- addChangeGroupBelow: () => void;
5
- addChangeGroupAbove: () => void;
6
- removeChangeGroup: () => void;
7
- clearRow: () => void;
8
- index: number;
9
- }
10
- declare const TafFormOptionsButton: React.FC<TafFormOptionsButtonProps>;
11
- export default TafFormOptionsButton;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- export interface DragHandleProps {
3
- isSorting?: boolean;
4
- isDisabled?: boolean;
5
- index: number;
6
- }
7
- declare const DragHandle: React.FC<DragHandleProps>;
8
- export default DragHandle;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { TafFormRowProps } from './types';
3
- declare const TafFormRow: React.ForwardRefExoticComponent<Omit<TafFormRowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
- export default TafFormRow;
@@ -1,30 +0,0 @@
1
- import type { TextFieldProps } from '@mui/material';
2
- import React from 'react';
3
- import type { RegisterOptions } from 'react-hook-form';
4
- export declare const TEXTFIELD_WIDTH_PERCENTAGE: number;
5
- export declare const TEXTFIELD_MIN_WIDTH = "60px";
6
- type TextAlign = 'left' | 'center';
7
- export declare const getDisplayValue: (value: string, disabled: boolean) => string;
8
- type BaseTextFieldProps = TextFieldProps & {
9
- shouldPreventUppercase?: boolean;
10
- textAlign?: TextAlign;
11
- };
12
- export declare const BaseTextField: React.FC<BaseTextFieldProps>;
13
- interface TafFormTextFieldProps {
14
- label: string;
15
- disabled?: boolean;
16
- name: string;
17
- onChange?: (e: string) => void;
18
- defaultValue?: string;
19
- formatter?: (value: string) => string;
20
- rules?: RegisterOptions;
21
- autoComplete?: {
22
- key: string;
23
- value: string;
24
- }[];
25
- onBlur?: () => void;
26
- autoFocus?: boolean;
27
- shouldPreventUppercase?: boolean;
28
- }
29
- declare const TafFormTextField: React.FC<TafFormTextFieldProps>;
30
- export default TafFormTextField;
@@ -1,31 +0,0 @@
1
- import type { GridProps } from '@mui/material';
2
- import type { FieldValues } from 'react-hook-form';
3
- export interface TafFormRowProps extends GridProps {
4
- isNotRequiredForAction: (value: string) => boolean | string;
5
- isChangeGroup?: boolean;
6
- disabled?: boolean;
7
- index?: number;
8
- onRemoveChangeGroup?: (index: number) => void;
9
- onAddChangeGroupBelow?: (index: number) => void;
10
- onAddChangeGroupAbove?: (index: number) => void;
11
- onClearRow?: (index: number) => void;
12
- field?: FieldValues;
13
- dragHandle?: React.ReactElement;
14
- }
15
- export interface FieldNames {
16
- messageType?: string;
17
- location?: string;
18
- issueDate?: string;
19
- probability?: string;
20
- change?: string;
21
- valid: string;
22
- wind: string;
23
- visibility: string;
24
- weather1: string;
25
- weather2: string;
26
- weather3: string;
27
- cloud1: string;
28
- cloud2: string;
29
- cloud3: string;
30
- cloud4: string;
31
- }
@@ -1,4 +0,0 @@
1
- export declare const invalidChangeMessage = "Invalid Change input, only BECMG, TEMPO or FM are allowed";
2
- export declare const invalidChangeProbCombinationMessage = "A probability is only allowed in combination with TEMPO or an empty Change input";
3
- export declare const validateChangeField: (value: string) => boolean | string;
4
- export declare const validateChangeFieldInterField: (value: string, valueProb: string) => boolean | string;
@@ -1,34 +0,0 @@
1
- import type { Clouds } from '../../../../types';
2
- interface CloudStrings {
3
- cloud1: string;
4
- cloud2?: string;
5
- cloud3?: string;
6
- cloud4?: string;
7
- }
8
- export declare const formatCloudsToString: (clouds: Clouds) => CloudStrings;
9
- export declare const parseCloudsToObject: (clouds: CloudStrings) => Clouds;
10
- export declare const invalidCloud1Message = "Invalid cloud input, expected either <coverage><height><type(optional)> with coverage FEW, SCT, BKN or OVC and height consisting of 3 digits or NSC";
11
- export declare const invalidCloudMessage = "Invalid cloud input, expected <coverage><height><type(optional)> with coverage FEW, SCT, BKN or OVC and height consisting of 3 digits";
12
- export declare const invalidCloudCoverageMessage = "Invalid cloud coverage, expected FEW, SCT, BKN or OVC";
13
- export declare const invalidCloudHeightMessage = "Invalid cloud height, expected a height consisting of 3 digits";
14
- export declare const invalidCloudHeightStepsMessage = "Invalid cloud height, a height above 050 must be rounded to the nearest 1000ft";
15
- export declare const invalidCLoudTypeMessage = "Invalid cloud type, expected CB or TCU";
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";
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";
20
- export declare const invalidCloudHeightComparedToPreviousMessage = "Invalid cloud height, height must be greater than previous cloud group height";
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";
22
- export declare const invalidCloud2WithVerticalVisibilityMessage = "Invalid cloud input, cloud type is required when Vertical Visibility is given";
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";
24
- export declare const invalidCloudWithVerticalVisibilityMessage = "Invalid cloud input, third or fourth cloud group is not allowed when Vertical Visibility is given";
25
- export declare const invalidCloudWithPreviousEmptyCloud = "Invalid cloud input, value is not allowed when previous cloud group is empty";
26
- export declare const invalidCloudWithNSCMessage = "Invalid cloud input, other cloud groups are not allowed when No Significant Clouds is given";
27
- export declare const invalidCloudWithPreviousType = "Invalid cloud input, only one significant convective cloud group with CB/TCU is allowed";
28
- export declare const invalidCloudCAVOKMessage = "Invalid cloud input, when CAVOK is used, cloud groups must be empty";
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;
31
- export declare const validateSecondCloud: (firstCloudValue: string, secondCloudValue: string, visibilityFieldValue: string) => boolean | string;
32
- export declare const validateThirdCloud: (firstCloudValue: string, secondCloudValue: string, thirdCloudValue: string, visibilityFieldValue: string) => boolean | string;
33
- export declare const validateFourthCloud: (firstCloudValue: string, secondCloudValue: string, thirdCloudValue: string, fourthCloudValue: string, visibilityFieldValue: string) => boolean | string;
34
- export {};
@@ -1,2 +0,0 @@
1
- export declare const invalidProbabilityMessage = "Invalid Probability input, only PROB30 or PROB40 are allowed";
2
- export declare const validateProbabilityField: (value: string) => boolean | string;
@@ -1,2 +0,0 @@
1
- export declare const prependZeroes: (value: string | number, totalDigits: number) => string;
2
- export declare const getFieldValue: (fieldValue: string) => string;
@@ -1,21 +0,0 @@
1
- import type { ChangeGroupFormData, Valid } from '../../../../types';
2
- export declare const FORMAT_DAYS_HOURS_MINUTES = "ddHHmm";
3
- export declare const formatValidToString: (valid: Valid) => string;
4
- export declare const parseValidToObject: (value: string, tafStart: string, tafEnd: string) => Valid;
5
- export declare const invalidValidityDaysHoursStartMessage = "Invalid validity start period, expected a date value between 00 and 31 and an hour value between 00 and 23";
6
- export declare const invalidValidityDaysHoursEndMessage = "Invalid validity end period, expected a date value between 00 and 31 and an hour value between 01 and 24";
7
- export declare const invalidValidityMinutesMessage = "Invalid validity period, specified minutes should be between 00 and 59";
8
- export declare const invalidValidityStartTimeMessage = "Invalid validity start time, change group validity must lie within the TAF validity period";
9
- export declare const invalidValidityPeriodMessage = "Invalid validity period, validity end time has to be after validity start time";
10
- export declare const invalidValidityEndTimeMessage = "Invalid validity end time, change group validity must lie within the TAF validity period";
11
- export declare const invalidChangeValidInterFieldMessage = "Invalid validity period, expected DDHH/DDHH for PROB, BECMG and TEMPO or DDHHmm for FM";
12
- export declare const invalidBECMGDurationValidInterFieldMessage = "Invalid validity period, for BECMG only validity periods with a duration of 1, 2, 3 or 4 hours are allowed";
13
- export declare const invalidTEMPODurationValidInterfieldMessage = "Invalid validity period, for TEMPO a validity period of at least 1 hour is required";
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";
15
- export declare const validateValidField: (value: string, tafStart: string, tafEnd: string) => boolean | string;
16
- export declare const validateValidChangeGroupInterField: (value: string, valueChange: string, valueProb: string, tafStart: string, tafEnd: string) => boolean | string;
17
- export declare const invalidPreviousChangeGroupIsBeforeMessage = "Valid time should be after previous valid time";
18
- export declare const invalidPreviousChangeGroupOrderMessage: string;
19
- export declare const invalidPreviousChangeGroupHasSameValue = "When valid times are equal, probability/change can't have the same value as previous row value";
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;
@@ -1,12 +0,0 @@
1
- import type { Visibility } from '../../../../types';
2
- export declare const formatVisibilityToString: (value: Visibility | boolean) => string;
3
- export declare const parseVisibilityToObject: (value: string) => {
4
- visibility?: Visibility;
5
- cavOK?: boolean;
6
- };
7
- export declare const invalidVisibilityMessage = "Invalid visibility, expected either a 4 digit visibility range in meters or CAVOK";
8
- export declare const invalidVisibilityRangeMessage = "Invalid visibility, expected a 4 digit range in meters";
9
- export declare const invalidVisibilityRange50mStepMessage = "Invalid visibility, a range between 0000 and 0800 must be rounded to the nearest 50m";
10
- export declare const invalidVisibilityRange100mStepMessage = "Invalid visibility, a range between 0800 and 5000 must be rounded to the nearest 100m";
11
- export declare const invalidVisibilityRange1000mStepMessage = "Invalid visibility, a range between 5000 and 9000 must be rounded to the nearest 1000m";
12
- export declare const validateVisibilityField: (value: string) => boolean | string;