@opengeoweb/taf 15.3.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.
- package/index.esm.js +881 -348
- package/package.json +8 -8
- package/src/index.d.ts +0 -7
- package/src/lib/NafDemo.stories.d.ts +0 -7
- package/src/lib/TafDemo.stories.d.ts +0 -8
- package/src/lib/components/AutoTaf/AutoTaf.d.ts +0 -9
- package/src/lib/components/AutoTaf/AutoTaf.spec.d.ts +0 -1
- package/src/lib/components/AutoTaf/AutoTaf.stories.d.ts +0 -8
- package/src/lib/components/AutoTaf/index.d.ts +0 -1
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +0 -38
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.spec.d.ts +0 -1
- package/src/lib/components/ComponentsLookUp/index.d.ts +0 -1
- package/src/lib/components/IssuesPane/IssuesButton.d.ts +0 -10
- package/src/lib/components/IssuesPane/IssuesButton.spec.d.ts +0 -1
- package/src/lib/components/IssuesPane/IssuesPane.d.ts +0 -14
- package/src/lib/components/IssuesPane/IssuesPane.spec.d.ts +0 -1
- package/src/lib/components/IssuesPane/IssuesPane.stories.d.ts +0 -9
- package/src/lib/components/IssuesPane/IssuesPaneWrapper.d.ts +0 -4
- package/src/lib/components/IssuesPane/IssuesPaneWrapper.spec.d.ts +0 -1
- package/src/lib/components/IssuesPane/index.d.ts +0 -2
- package/src/lib/components/IssuesPane/types.d.ts +0 -16
- package/src/lib/components/IssuesPane/utils.d.ts +0 -8
- package/src/lib/components/IssuesPane/utils.spec.d.ts +0 -1
- package/src/lib/components/Providers/Providers.d.ts +0 -22
- package/src/lib/components/Providers/index.d.ts +0 -1
- package/src/lib/components/ResponsiveWrapper/ResponsiveWrapper.d.ts +0 -4
- package/src/lib/components/ResponsiveWrapper/ResponsiveWrapper.spec.d.ts +0 -1
- package/src/lib/components/Spinner/Spinner.d.ts +0 -4
- package/src/lib/components/Spinner/Spinner.spec.d.ts +0 -1
- package/src/lib/components/Spinner/Spinner.stories.d.ts +0 -10
- package/src/lib/components/StatusIcon/StatusIcon.d.ts +0 -8
- package/src/lib/components/StatusIcon/StatusIcon.spec.d.ts +0 -1
- package/src/lib/components/TabPanel/TabPanel.d.ts +0 -8
- package/src/lib/components/TabPanel/TabPanel.spec.d.ts +0 -1
- package/src/lib/components/TabPanel/index.d.ts +0 -1
- package/src/lib/components/TafAvatar/TafAvatar.d.ts +0 -8
- package/src/lib/components/TafAvatar/index.d.ts +0 -1
- package/src/lib/components/TafForm/TafForm.d.ts +0 -16
- package/src/lib/components/TafForm/TafForm.editor.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafForm.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafForm.statusChanges.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafForm.stories.d.ts +0 -27
- package/src/lib/components/TafForm/TafForm.validations.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormButtons/TafFormButtons.d.ts +0 -12
- package/src/lib/components/TafForm/TafFormButtons/TafFormButtons.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormButtons/TafFormOptionsButton.d.ts +0 -11
- package/src/lib/components/TafForm/TafFormButtons/TafFormOptionsButton.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/DragHandle.d.ts +0 -8
- package/src/lib/components/TafForm/TafFormRow/DragHandle.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/TafFormRow.d.ts +0 -4
- package/src/lib/components/TafForm/TafFormRow/TafFormRow.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/TafFormTextField.d.ts +0 -30
- package/src/lib/components/TafForm/TafFormRow/TafFormTextField.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/types.d.ts +0 -31
- package/src/lib/components/TafForm/TafFormRow/validations/change.d.ts +0 -4
- package/src/lib/components/TafForm/TafFormRow/validations/change.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/validations/clouds.d.ts +0 -34
- package/src/lib/components/TafForm/TafFormRow/validations/clouds.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/validations/probability.d.ts +0 -2
- package/src/lib/components/TafForm/TafFormRow/validations/probability.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/validations/utils.d.ts +0 -2
- package/src/lib/components/TafForm/TafFormRow/validations/utils.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/validations/validField.d.ts +0 -21
- package/src/lib/components/TafForm/TafFormRow/validations/validField.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/validations/visibility.d.ts +0 -12
- package/src/lib/components/TafForm/TafFormRow/validations/visibility.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/validations/weather.d.ts +0 -15
- package/src/lib/components/TafForm/TafFormRow/validations/weather.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/validations/wind.d.ts +0 -16
- package/src/lib/components/TafForm/TafFormRow/validations/wind.spec.d.ts +0 -1
- package/src/lib/components/TafForm/index.d.ts +0 -1
- package/src/lib/components/TafForm/utils.d.ts +0 -73
- package/src/lib/components/TafForm/utils.spec.d.ts +0 -1
- package/src/lib/components/TafHeader/TafHeader.d.ts +0 -8
- package/src/lib/components/TafHeader/TafHeader.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/LocationTabs/LocationTabs.d.ts +0 -10
- package/src/lib/components/TafLayout/LocationTabs/LocationTabs.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/LocationTabs/LocationTabs.stories.d.ts +0 -8
- package/src/lib/components/TafLayout/LocationTabs/index.d.ts +0 -1
- package/src/lib/components/TafLayout/TacOverview/AdverseWeatherTacMessage.d.ts +0 -8
- package/src/lib/components/TafLayout/TacOverview/AdverseWeatherTacMessage.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TacOverview/AdverseWeatherTacMessage.stories.d.ts +0 -8
- package/src/lib/components/TafLayout/TacOverview/ExportButton.d.ts +0 -7
- package/src/lib/components/TafLayout/TacOverview/ExportButton.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TacOverview/TacContainer.d.ts +0 -13
- package/src/lib/components/TafLayout/TacOverview/TacContainer.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TacOverview/TacContainerLayout.d.ts +0 -10
- package/src/lib/components/TafLayout/TacOverview/TacOverview.d.ts +0 -12
- package/src/lib/components/TafLayout/TacOverview/TacOverview.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TacOverview/TacOverview.stories.d.ts +0 -10
- package/src/lib/components/TafLayout/TacOverview/TacOverviewMobile.d.ts +0 -12
- package/src/lib/components/TafLayout/TacOverview/TacOverviewMobile.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TacOverview/TacOverviewMobile.stories.d.ts +0 -9
- package/src/lib/components/TafLayout/TacOverview/index.d.ts +0 -2
- package/src/lib/components/TafLayout/TafLayout.d.ts +0 -10
- package/src/lib/components/TafLayout/TafLayout.issuespane.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TafLayout.snackbar.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TafLayout.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TafLayout.stories.d.ts +0 -13
- package/src/lib/components/TafLayout/TafLayout.tacoverview.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TafPanel/TafPanel.d.ts +0 -23
- package/src/lib/components/TafLayout/TafPanel/TafPanel.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TafPanel/TafPanel.stories.d.ts +0 -11
- package/src/lib/components/TafLayout/TafPanel/index.d.ts +0 -1
- package/src/lib/components/TafLayout/TopTabs/TopTabs.d.ts +0 -9
- package/src/lib/components/TafLayout/TopTabs/TopTabs.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TopTabs/TopTabs.stories.d.ts +0 -8
- package/src/lib/components/TafLayout/TopTabs/index.d.ts +0 -1
- package/src/lib/components/TafLayout/utils.d.ts +0 -47
- package/src/lib/components/TafLayout/utils.spec.d.ts +0 -1
- package/src/lib/components/TafModule/TafModule.d.ts +0 -9
- package/src/lib/components/TafModule/TafModule.spec.d.ts +0 -1
- package/src/lib/components/TafModule/TafModule.stories.d.ts +0 -62
- package/src/lib/components/TafModule/TafModuleProvider.d.ts +0 -23
- package/src/lib/components/TafModule/index.d.ts +0 -1
- package/src/lib/components/TafRemarkField/TafRemarkField.d.ts +0 -7
- package/src/lib/components/TafRemarkField/TafRemarkField.spec.d.ts +0 -1
- package/src/lib/components/TafRemarkField/index.d.ts +0 -1
- package/src/lib/components/TafWrapper/TafConfigWrapper.d.ts +0 -13
- package/src/lib/components/TafWrapper/TafWrapper.d.ts +0 -3
- package/src/lib/components/TafWrapper/TafWrapper.spec.d.ts +0 -1
- package/src/lib/components/TafWrapper/index.d.ts +0 -1
- package/src/lib/types.d.ts +0 -173
- package/src/lib/utils/dateFormats.d.ts +0 -2
- package/src/lib/utils/i18n.d.ts +0 -6
- package/src/lib/utils/mockdata/fakeTafConfig.d.ts +0 -2
- package/src/lib/utils/mockdata/fakeTafList.d.ts +0 -26
- package/src/lib/utils/mockdata/naf/fakeNafConfig.d.ts +0 -2
- package/src/lib/utils/mockdata/naf/fakeNafList.d.ts +0 -12
- package/src/lib/utils/taf-api/api.d.ts +0 -7
- package/src/lib/utils/taf-api/fakeApi.d.ts +0 -4
- package/src/lib/utils/taf-api/hooks.d.ts +0 -25
- package/src/lib/utils/utils.d.ts +0 -1
- package/src/lib/utils/weatherPhenomena.d.ts +0 -422
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Weather, WeatherStrings } from '../../../../types';
|
|
2
|
-
export declare const invalidWeatherMessage = "Invalid weather input, expected NSW or a valid weather code";
|
|
3
|
-
export declare const invalidWeatherCodeMessage = "Invalid weather input, invalid weather code";
|
|
4
|
-
export declare const invalidWeatherNSWMessage = "Invalid weather input, NSW is not allowed in the baseforecast and can only be used in the first weather group";
|
|
5
|
-
export declare const invalidWeatherWithPreviousEmptyWeather = "Invalid weather input, value is not allowed when previous weather group(s) are empty";
|
|
6
|
-
export declare const invalidWeatherNonUniqueValue = "Invalid weather input, weather groups must be unique";
|
|
7
|
-
export declare const invalidWeatherNonEmptyNSWGroups = "Invalid weather input, when NSW is used, other weather groups must be empty";
|
|
8
|
-
export declare const invalidWeatherCAVOKMessage = "Invalid weather input, when CAVOK is used, weather groups must be empty";
|
|
9
|
-
export declare const invalidWeatherVisibilityBelow5000 = "Invalid weather input, weather codes FU, DU, HZ, DRDU and BLDU need to be combined with a visibility of 5000m or less";
|
|
10
|
-
export declare const invalidWeatherBRVisibility = "Invalid weather input, weather code BR needs to be combined with a visibility between 1000 and 5000m";
|
|
11
|
-
export declare const invalidWeatherFGVisibility = "Invalid weather input, weather code FG needs to be combined with a visibility below 1000m";
|
|
12
|
-
export declare const validateWeatherField: (value: string, visibilityFieldValue: string, NSWAllowed?: boolean) => boolean | string;
|
|
13
|
-
export declare const validateSecondWeatherField: (weather1Value: string, weather2Value: string, visibilityFieldValue: string) => boolean | string;
|
|
14
|
-
export declare const validateThirdWeatherField: (weather1Value: string, weather2Value: string, weather3Value: string, visibilityFieldValue: string) => boolean | string;
|
|
15
|
-
export declare function parseWeatherToObject(value: WeatherStrings): Weather;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Wind } from '../../../../types';
|
|
2
|
-
export declare const formatWindValues: (key: string, value: number | string) => string;
|
|
3
|
-
export declare const formatWindToString: (value: Wind) => string;
|
|
4
|
-
export declare const parseWindToObject: (value: string) => Wind;
|
|
5
|
-
export declare const invalidWindMessage = "Invalid wind, expected <direction><speed><gusts(optional)> with direction consisting of 3 digits or VRB and speed and gusts of 2 digits or P99";
|
|
6
|
-
export declare const invalidWindDirectionMessage = "Invalid wind direction, expected a direction equal to 3 digits or VRB";
|
|
7
|
-
export declare const invalidWindDirectionMinMaxMessage = "Invalid wind direction, the direction must lie between 000 and 360 degrees and must be rounded to the nearest step of 10 degrees";
|
|
8
|
-
export declare const invalidWindDirectionStepMessage = "Invalid wind direction, the direction must be rounded to the nearest step of 10 degrees";
|
|
9
|
-
export declare const invalidWindSpeedMessage = "Invalid wind speed, expected a speed equal to 2 digits or P99";
|
|
10
|
-
export declare const invalidWindGustsMessage = "Invalid wind gusts, expected gusts equal to 2 digits or P99";
|
|
11
|
-
export declare const invalidWindGustSpeedCombinationMessage = "Invalid wind gusts, gusts must at least be 10 knots greater than the wind speed";
|
|
12
|
-
export declare const invalidGustForWindP99Message = "Invalid wind speed and gust combination, if wind is P99, gusts can only be empty or P99";
|
|
13
|
-
export declare const invalidWindSpeedForDirectionZeroMessage = "Invalid wind speed, if direction is 000, speed can only be 00";
|
|
14
|
-
export declare const invalidWindSpeedForDirectionNonZeroMessage = "Invalid wind speed, if direction is not 000, speed can not be 00";
|
|
15
|
-
export declare const invalidWindVRBWindDirectionMessage = "Invalid wind direction, VRB can only be used in combination with windspeeds smaller than 3 or in combination with gusts and showers";
|
|
16
|
-
export declare const validateWindField: (value: string, weatherfield1: string, weatherfield2: string, weatherfield3: string) => boolean | string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TafForm } from './TafForm';
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import type { TFunction } from 'i18next';
|
|
2
|
-
import type Sortable from 'sortablejs';
|
|
3
|
-
import type { BaseForecast, BaseForecastFormData, ChangeGroup, ChangeGroupFormData, TAC, Taf, TafActions, TafFormData, TafStatus } from '../../types';
|
|
4
|
-
import type { FieldNames } from './TafFormRow/types';
|
|
5
|
-
import type { IssuesPanePosition } from '../IssuesPane/types';
|
|
6
|
-
export declare const emptyBaseForecast: {
|
|
7
|
-
wind: string;
|
|
8
|
-
visibility: string;
|
|
9
|
-
weather: {
|
|
10
|
-
weather1: string;
|
|
11
|
-
weather2: string;
|
|
12
|
-
weather3: string;
|
|
13
|
-
};
|
|
14
|
-
cloud: {
|
|
15
|
-
cloud1: string;
|
|
16
|
-
cloud2: string;
|
|
17
|
-
cloud3: string;
|
|
18
|
-
cloud4: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export declare const MIN_NUMBER_CHANGE_GROUP = 5;
|
|
22
|
-
export declare const formatIssueTime: (issueDate: string) => string;
|
|
23
|
-
type BaseForecastOrChangeGroupFormData<T extends BaseForecast | ChangeGroup> = T extends ChangeGroup ? ChangeGroupFormData : BaseForecastFormData;
|
|
24
|
-
export declare function formatFormValues<T extends BaseForecast | ChangeGroup>(row: T): BaseForecastOrChangeGroupFormData<T>;
|
|
25
|
-
type BaseForecastOrChangeGroup<T extends BaseForecastFormData | ChangeGroupFormData> = T extends ChangeGroupFormData ? ChangeGroup : BaseForecast;
|
|
26
|
-
export declare function parseFormValues<T extends ChangeGroupFormData | BaseForecastFormData>(row: T, tafStart: string, tafEnd: string): BaseForecastOrChangeGroup<T>;
|
|
27
|
-
export declare const convertTafValuesToObject: (formData: TafFormData) => Taf;
|
|
28
|
-
export declare const shouldRetrieveTAC: (product: Taf) => boolean;
|
|
29
|
-
export declare const getFieldNames: (isChangeGroup: boolean, index: number) => FieldNames;
|
|
30
|
-
export declare const tacHasError: (tac: TAC, t: TFunction) => boolean;
|
|
31
|
-
export declare const useTACGenerator: (taf: Taf) => [TAC, (tafToPost: Taf) => void];
|
|
32
|
-
export interface SortableField {
|
|
33
|
-
id: string;
|
|
34
|
-
chosen: boolean;
|
|
35
|
-
}
|
|
36
|
-
export declare const useDragOrder: (trigger: (name?: string | string[]) => Promise<boolean>, move: (oldIndex: number, newIndex: number) => void) => {
|
|
37
|
-
onChangeOrder: (event: Sortable.SortableEvent) => void;
|
|
38
|
-
onStartDrag: (event: Sortable.SortableEvent) => void;
|
|
39
|
-
activeDraggingIndex: number | boolean;
|
|
40
|
-
};
|
|
41
|
-
export declare const getConfirmationDialogTitle: (action: TafActions, t: TFunction) => string;
|
|
42
|
-
export declare const isTafAmendedCorrectedChanged: (originalTaf: Taf, currentTaf: Taf) => boolean;
|
|
43
|
-
export declare const getConfirmationDialogContent: (action: TafActions, isFormDirty: () => boolean, t: TFunction) => string;
|
|
44
|
-
export declare const getConfirmationDialogButtonLabel: (action: TafActions, t: TFunction) => string;
|
|
45
|
-
export declare const emptyChangegroup: {
|
|
46
|
-
valid: string;
|
|
47
|
-
wind: string;
|
|
48
|
-
visibility: string;
|
|
49
|
-
weather: {
|
|
50
|
-
weather1: string;
|
|
51
|
-
weather2: string;
|
|
52
|
-
weather3: string;
|
|
53
|
-
};
|
|
54
|
-
cloud: {
|
|
55
|
-
cloud1: string;
|
|
56
|
-
cloud2: string;
|
|
57
|
-
cloud3: string;
|
|
58
|
-
cloud4: string;
|
|
59
|
-
};
|
|
60
|
-
change: string;
|
|
61
|
-
probability: string;
|
|
62
|
-
};
|
|
63
|
-
export declare const getTafStatusLabel: (t: TFunction, status: TafStatus, action?: TafActions, isFormDisabled?: boolean) => string;
|
|
64
|
-
export declare const getMessageType: (taf: Taf, tafAction: TafActions) => string;
|
|
65
|
-
export declare const getAmendedCorrectedTafTimes: (taf: Taf, tafAction: TafActions) => Taf;
|
|
66
|
-
export declare const createChangeGroup: (changeGroup: ChangeGroupFormData) => ChangeGroupFormData;
|
|
67
|
-
export declare const prepareTafValues: (_taf: Taf, tafAction: TafActions, addEmptyChangeGroups?: boolean, shouldEnableRemark?: boolean) => TafFormData;
|
|
68
|
-
export declare const prepareTafExportValues: (tafToCopy: Taf, currentTaf: TafFormData, shouldEnableRemark?: boolean) => TafFormData;
|
|
69
|
-
export declare const clearTafFormData: (tafFormValues: TafFormData) => TafFormData;
|
|
70
|
-
export declare const getIsFormDefaultDisabled: (status: TafStatus) => boolean;
|
|
71
|
-
export declare const fromStatusToAction: (tafStatus: TafStatus) => TafActions;
|
|
72
|
-
export declare const getFormRowPosition: (formRow: Element) => IssuesPanePosition;
|
|
73
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TafFromBackend, TimeSlot } from '../../../types';
|
|
3
|
-
interface LocationTabsProps {
|
|
4
|
-
tafList: TafFromBackend[];
|
|
5
|
-
timeSlot: TimeSlot;
|
|
6
|
-
activeIndex?: number;
|
|
7
|
-
onChangeTab?: (newTabIndex: number, isFormDirty: boolean) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const LocationTabs: React.FC<LocationTabsProps>;
|
|
10
|
-
export default LocationTabs;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import LocationTabs from './LocationTabs';
|
|
3
|
-
declare const meta: Meta<typeof LocationTabs>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof LocationTabs>;
|
|
6
|
-
export declare const Component: Story;
|
|
7
|
-
export declare const LocationTabsLight: Story;
|
|
8
|
-
export declare const LocationTabsDark: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as LocationTabs } from './LocationTabs';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AdverseWeatherTAC } from '../../../types';
|
|
3
|
-
interface AdverseWeatherTACProps {
|
|
4
|
-
TAC?: AdverseWeatherTAC;
|
|
5
|
-
isActive: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const AdverseWeatherTACMessage: React.FC<AdverseWeatherTACProps>;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { AdverseWeatherTACMessage } from './AdverseWeatherTacMessage';
|
|
3
|
-
declare const meta: Meta<typeof AdverseWeatherTACMessage>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AdverseWeatherTACMessage>;
|
|
6
|
-
export declare const Component: Story;
|
|
7
|
-
export declare const TacContainerLight: Story;
|
|
8
|
-
export declare const TacContainerDark: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Taf } from '../../../types';
|
|
3
|
-
export declare const TacHighLight: React.FC<{
|
|
4
|
-
isActive: boolean;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
}>;
|
|
7
|
-
interface TacContainerProps {
|
|
8
|
-
taf: Taf;
|
|
9
|
-
isActive?: boolean;
|
|
10
|
-
isFormDisabled?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const TacContainer: React.FC<TacContainerProps>;
|
|
13
|
-
export default TacContainer;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface TacContainerLayoutProps {
|
|
3
|
-
location: string;
|
|
4
|
-
isActive?: boolean;
|
|
5
|
-
exportBtnSlot?: React.ReactNode;
|
|
6
|
-
statusSlot?: React.ReactNode;
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
}
|
|
9
|
-
declare const TacContainerLayout: React.FC<TacContainerLayoutProps>;
|
|
10
|
-
export default TacContainerLayout;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TafFromBackend } from '../../../types';
|
|
3
|
-
interface TacOverviewProps {
|
|
4
|
-
upcomingTafs: TafFromBackend[];
|
|
5
|
-
currentTafs: TafFromBackend[];
|
|
6
|
-
expiredTafs: TafFromBackend[];
|
|
7
|
-
hideTitle?: boolean;
|
|
8
|
-
activeTaf?: TafFromBackend;
|
|
9
|
-
isFormDisabled?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const TacOverview: React.FC<TacOverviewProps>;
|
|
12
|
-
export default TacOverview;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import TacOverview from './TacOverview';
|
|
3
|
-
declare const meta: Meta<typeof TacOverview>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof TacOverview>;
|
|
6
|
-
export declare const Component: Story;
|
|
7
|
-
export declare const TacOverviewWithError: Story;
|
|
8
|
-
export declare const TacOverviewWithDifferentTAC: Story;
|
|
9
|
-
export declare const TacOverviewAdverseWeatherLight: Story;
|
|
10
|
-
export declare const TacOverviewAdverseWeatherDark: Story;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TafFromBackend } from '../../../types';
|
|
3
|
-
interface TacOverviewMobileProps {
|
|
4
|
-
upcomingTafs: TafFromBackend[];
|
|
5
|
-
currentTafs: TafFromBackend[];
|
|
6
|
-
expiredTafs: TafFromBackend[];
|
|
7
|
-
autoTafs?: TafFromBackend[];
|
|
8
|
-
activeTaf?: TafFromBackend;
|
|
9
|
-
defaultOpen?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const TacOverviewMobile: React.FC<TacOverviewMobileProps>;
|
|
12
|
-
export default TacOverviewMobile;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import TacOverviewMobile from './TacOverviewMobile';
|
|
3
|
-
declare const meta: Meta<typeof TacOverviewMobile>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof TacOverviewMobile>;
|
|
6
|
-
export declare const TacOverviewMobileLight: Story;
|
|
7
|
-
export declare const TacOverviewMobileDark: Story;
|
|
8
|
-
export declare const TacOverviewMobileAutoTaf: Story;
|
|
9
|
-
export declare const TacOverviewMobileAutoTafDark: Story;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TafFromBackend } from '../../types';
|
|
3
|
-
interface TafLayoutProps {
|
|
4
|
-
tafList: TafFromBackend[];
|
|
5
|
-
onUpdateTaf: () => Promise<void>;
|
|
6
|
-
lastUpdateTime?: string;
|
|
7
|
-
isAutoTafEnabled?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const TafLayout: React.FC<TafLayoutProps>;
|
|
10
|
-
export default TafLayout;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import TafLayout from './TafLayout';
|
|
3
|
-
declare const meta: Meta<typeof TafLayout>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof TafLayout>;
|
|
6
|
-
export declare const DemoTafLayoutLightTheme: Story;
|
|
7
|
-
export declare const DemoTafLayoutDarkTheme: Story;
|
|
8
|
-
export declare const TafLayoutLight: Story;
|
|
9
|
-
export declare const TafLayoutDark: Story;
|
|
10
|
-
export declare const NafLayoutLight: Story;
|
|
11
|
-
export declare const NafLayoutDark: Story;
|
|
12
|
-
export declare const TafLayoutAutoTaf: Story;
|
|
13
|
-
export declare const TafLayoutAutoTafDark: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TafFromBackend, Taf, TafActions, TafStatus, TafFromFrontEnd } from '../../../types';
|
|
3
|
-
import type { IssuesPanePosition } from '../../IssuesPane/types';
|
|
4
|
-
import type { TafError } from '../utils';
|
|
5
|
-
export declare const fromActionToStatus: (tafAction: TafActions) => TafStatus;
|
|
6
|
-
interface TafPanelProps {
|
|
7
|
-
tafFromBackend: TafFromBackend;
|
|
8
|
-
activeTafIndex: number;
|
|
9
|
-
index: number;
|
|
10
|
-
isLoading?: boolean;
|
|
11
|
-
postTaf?: (taf: TafFromFrontEnd) => Promise<void>;
|
|
12
|
-
patchTaf?: (taf: TafFromFrontEnd) => Promise<boolean>;
|
|
13
|
-
isIssuesPaneOpen?: boolean;
|
|
14
|
-
setIsIssuesPaneOpen?: (isOpen: boolean, position: IssuesPanePosition) => void;
|
|
15
|
-
isFormDisabled?: boolean;
|
|
16
|
-
setIsFormDisabled?: (isDisabled: boolean) => void;
|
|
17
|
-
error?: TafError | null;
|
|
18
|
-
previousTaf: Taf;
|
|
19
|
-
tafAction: TafActions;
|
|
20
|
-
shouldEnableRemark?: boolean;
|
|
21
|
-
}
|
|
22
|
-
declare const TafPanel: React.FC<TafPanelProps>;
|
|
23
|
-
export default TafPanel;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import TafPanel from './TafPanel';
|
|
4
|
-
declare const meta: Meta<typeof TafPanel>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof TafPanel>;
|
|
7
|
-
export declare const TafPanelSaveErrorLight: Story;
|
|
8
|
-
export declare const TafPanelSaveErrorDark: Story;
|
|
9
|
-
export declare const TafPanelTakeOverErrorLight: Story;
|
|
10
|
-
export declare const TafPanelTakeOverErrorDark: Story;
|
|
11
|
-
export declare const TafPanelMultipleRowsWithSameDates: () => React.ReactElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TafPanel } from './TafPanel';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TafFromBackend, TimeSlot } from '../../../types';
|
|
3
|
-
interface TopTabsProps {
|
|
4
|
-
timeSlot: TimeSlot;
|
|
5
|
-
tafFromBackend?: TafFromBackend;
|
|
6
|
-
onChangeTimeSlot?: (timeSlot: TimeSlot, isFormDirty: boolean) => void;
|
|
7
|
-
}
|
|
8
|
-
declare const TopTabs: React.FC<TopTabsProps>;
|
|
9
|
-
export default TopTabs;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import TopTabs from './TopTabs';
|
|
3
|
-
declare const meta: Meta<typeof TopTabs>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof TopTabs>;
|
|
6
|
-
export declare const Component: Story;
|
|
7
|
-
export declare const TopTabsLight: Story;
|
|
8
|
-
export declare const TopTabsDark: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TopTabs } from './TopTabs';
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { AxiosError } from 'axios';
|
|
2
|
-
import type { TFunction } from 'i18next';
|
|
3
|
-
import type { AutoTAFlocations, Taf, TafConfig, TafConfigLocation, TafConfigLocations, TafConfigLocationFixedPeriod, TafConfigLocationDynamicPeriod, TafFromBackend, TafFromFrontEnd, TafStatus, TimeSlot } from '../../types';
|
|
4
|
-
export declare const isTafConfigLocationFixedPeriod: (location: TafConfigLocation) => location is TafConfigLocationFixedPeriod;
|
|
5
|
-
export declare const isTafConfigLocationDynamicPeriod: (location: TafConfigLocation) => location is TafConfigLocationDynamicPeriod;
|
|
6
|
-
export declare const getLocationSetting: (location: string, locationSettings: TafConfigLocations) => TafConfigLocation;
|
|
7
|
-
export declare const sortTafsOnLocation: (tafList?: TafFromBackend[], locationOrder?: string[]) => TafFromBackend[];
|
|
8
|
-
export declare const sortTafsOnIssueDate: (tafList?: TafFromBackend[]) => TafFromBackend[];
|
|
9
|
-
export declare const getBaseTime: (baseTime: string, location: string, tafConfig: TafConfig) => {
|
|
10
|
-
currentBaseTime: Date;
|
|
11
|
-
nextBaseTime: Date;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* If we don't have a taf to get the baseTime from, we calculate it based on the current time and the activity_period from the config.
|
|
15
|
-
* @param tafConfig
|
|
16
|
-
* @returns
|
|
17
|
-
*/
|
|
18
|
-
export declare const calculateBaseTime: (tafConfig: TafConfig) => {
|
|
19
|
-
currentBaseTime: Date;
|
|
20
|
-
nextBaseTime: Date;
|
|
21
|
-
};
|
|
22
|
-
export declare const getTafTimeSlot: (baseTime: string, location: string, status: TafStatus, tafConfig: TafConfig) => TimeSlot;
|
|
23
|
-
interface TafTimeSlots {
|
|
24
|
-
current: TafFromBackend[];
|
|
25
|
-
upcoming: TafFromBackend[];
|
|
26
|
-
expired: TafFromBackend[];
|
|
27
|
-
}
|
|
28
|
-
export declare const sortTafTimeSlots: (tafList: TafFromBackend[], tafConfig: TafConfig) => TafTimeSlots;
|
|
29
|
-
export declare const muiTabA11yProps: (index: number) => {
|
|
30
|
-
id: string;
|
|
31
|
-
"aria-controls": string;
|
|
32
|
-
};
|
|
33
|
-
export declare const getNewTafLocationIndex: (tafLocations: TafFromBackend[], previousTafLocationUUID: string) => number;
|
|
34
|
-
export declare const getPreviousTaf: (tafList: TafFromBackend[], currentTaf: TafFromBackend) => Taf;
|
|
35
|
-
export declare const getAutoTafLocations: (autoTAFlocations: AutoTAFlocations | undefined) => AutoTAFlocations | null;
|
|
36
|
-
export declare const scrollToPosition: (scrollRef: React.RefObject<HTMLElement>, activeLocation: string) => void;
|
|
37
|
-
export declare const formatBaseTime: (time: Date) => string;
|
|
38
|
-
export declare const getSnackbarMessage: (tafFromFrontEnd: TafFromFrontEnd, isAutoSaved: boolean, t: TFunction) => string;
|
|
39
|
-
export interface TafError {
|
|
40
|
-
type: 'CANCELLED' | 'SERVER' | 'WARNING';
|
|
41
|
-
title: string;
|
|
42
|
-
message?: string;
|
|
43
|
-
testId?: string;
|
|
44
|
-
}
|
|
45
|
-
export declare const isWarning: (error: TafError) => boolean;
|
|
46
|
-
export declare const parseErrorMessage: (error: AxiosError | Error, params: TafFromFrontEnd, t: TFunction) => TafError;
|
|
47
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { FC } from 'react';
|
|
2
|
-
import type { TafModuleProviderProps } from './TafModuleProvider';
|
|
3
|
-
import type { TafType } from '../../types';
|
|
4
|
-
export declare const getCurrentDate: () => string;
|
|
5
|
-
declare const Wrapper: FC<TafModuleProviderProps & {
|
|
6
|
-
isAutoTafEnabled?: boolean;
|
|
7
|
-
type?: TafType;
|
|
8
|
-
}>;
|
|
9
|
-
export default Wrapper;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import TafModule from './TafModule';
|
|
3
|
-
declare const meta: Meta<typeof TafModule>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof TafModule>;
|
|
6
|
-
export declare const TafModuleLightThemeWithErrorOnAction: {
|
|
7
|
-
parameters: {
|
|
8
|
-
msw: {
|
|
9
|
-
handlers: {
|
|
10
|
-
taf: import("msw").HttpHandler[];
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export declare const TafModuleLightThemeWithTakeoverError: {
|
|
16
|
-
parameters: {
|
|
17
|
-
msw: {
|
|
18
|
-
handlers: {
|
|
19
|
-
taf: import("msw").HttpHandler[];
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export declare const TafModuleLightThemeWithErrorOnLoadingList: {
|
|
25
|
-
parameters: {
|
|
26
|
-
msw: {
|
|
27
|
-
handlers: {
|
|
28
|
-
taf: import("msw").HttpHandler[];
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
export declare const TafModuleLightThemeWithErrorOnLoadingConfig: {
|
|
34
|
-
parameters: {
|
|
35
|
-
msw: {
|
|
36
|
-
handlers: {
|
|
37
|
-
taf: import("msw").HttpHandler[];
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
export declare const TafModuleWithNewData: {
|
|
43
|
-
parameters: {
|
|
44
|
-
msw: {
|
|
45
|
-
handlers: {
|
|
46
|
-
taf: import("msw").HttpHandler[];
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
export declare const TafModuleLightTheme: Story;
|
|
52
|
-
export declare const TafModuleDarkTheme: Story;
|
|
53
|
-
export declare const TafModuleToolContainerExample: Story;
|
|
54
|
-
export declare const TafModulePublishDraftAmendmentExample: {
|
|
55
|
-
parameters: {
|
|
56
|
-
msw: {
|
|
57
|
-
handlers: {
|
|
58
|
-
taf: import("msw").HttpHandler[];
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { FieldValues, UseFieldArrayReturn } from 'react-hook-form';
|
|
3
|
-
import type { BaseTaf, TafActions } from '../../types';
|
|
4
|
-
type ValidateFormPromise = () => Promise<void | BaseTaf>;
|
|
5
|
-
interface TafModuleMethods {
|
|
6
|
-
onPreventCloseView?: (shouldPreventClose: boolean) => void;
|
|
7
|
-
}
|
|
8
|
-
interface TafModuleContextState {
|
|
9
|
-
onValidateForm: ValidateFormPromise;
|
|
10
|
-
registerValidateForm: (promiseToRegister: ValidateFormPromise) => void;
|
|
11
|
-
tafAction: TafActions;
|
|
12
|
-
setTafAction: (action: TafActions) => void;
|
|
13
|
-
onPreventCloseView: (shouldPreventClose: boolean) => void;
|
|
14
|
-
useFieldArrayMethods: UseFieldArrayReturn<FieldValues, string>;
|
|
15
|
-
}
|
|
16
|
-
declare const TafModuleContext: React.Context<TafModuleContextState>;
|
|
17
|
-
export declare const useTafModuleContext: () => Partial<TafModuleContextState>;
|
|
18
|
-
export declare const useTafModuleState: ({ onPreventCloseView, }: TafModuleMethods) => TafModuleContextState;
|
|
19
|
-
export interface TafModuleProviderProps extends TafModuleMethods {
|
|
20
|
-
children?: React.ReactNode;
|
|
21
|
-
}
|
|
22
|
-
export declare const TafModuleProvider: React.FC<TafModuleProviderProps>;
|
|
23
|
-
export default TafModuleContext;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TafModule } from './TafModule';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TafRemarkField } from './TafRemarkField';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TafConfig, TafType } from '../../types';
|
|
3
|
-
interface TafConfigWrapperContext {
|
|
4
|
-
tafConfig?: TafConfig;
|
|
5
|
-
}
|
|
6
|
-
export declare const TafConfigContext: React.Context<TafConfigWrapperContext>;
|
|
7
|
-
export declare const useTafConfigContext: () => Partial<TafConfigWrapperContext>;
|
|
8
|
-
interface TafConfigWrapperProps {
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
type?: TafType;
|
|
11
|
-
}
|
|
12
|
-
declare const TafConfigWrapper: React.FC<TafConfigWrapperProps>;
|
|
13
|
-
export default TafConfigWrapper;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TafWrapper } from './TafWrapper';
|