@opengeoweb/taf 2.2.1 → 2.4.1
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/README.md +2 -2
- package/index.d.ts +2 -3
- package/index.esm.js +2924 -1459
- package/index.umd.js +3192 -1627
- package/lib/TafDemo.stories.d.ts +2 -2
- package/lib/components/IssuesPane/IssuesButton.d.ts +5 -2
- package/lib/components/IssuesPane/IssuesPane.d.ts +8 -5
- package/lib/components/IssuesPane/IssuesPane.stories.d.ts +12 -3
- package/lib/components/IssuesPane/IssuesPaneWrapper.d.ts +4 -0
- package/lib/components/{ContentDialog/ContentDialog.spec.d.ts → IssuesPane/IssuesPaneWrapper.spec.d.ts} +0 -0
- package/lib/components/IssuesPane/types.d.ts +11 -0
- package/lib/components/IssuesPane/utils.d.ts +10 -0
- package/lib/components/{TafForm/TafFormRow → IssuesPane}/utils.spec.d.ts +0 -0
- package/lib/components/Spinner/Spinner.d.ts +2 -1
- package/lib/components/StatusIcon/StatusIcon.d.ts +8 -0
- package/lib/components/{TafForm/TafFormDialog/TafFormDialog.spec.d.ts → StatusIcon/StatusIcon.spec.d.ts} +0 -0
- package/lib/components/TabPanel/TabPanel.d.ts +8 -0
- package/lib/components/{TafForm/TafFormRow/change.spec.d.ts → TabPanel/TabPanel.spec.d.ts} +0 -0
- package/lib/components/TabPanel/index.d.ts +1 -0
- package/lib/components/TafForm/TafForm.d.ts +8 -23
- package/lib/components/TafForm/{TafFormRow/clouds.spec.d.ts → TafForm.spec.d.ts} +0 -0
- package/lib/components/TafForm/{TafFormWrapper.stories.d.ts → TafForm.stories.d.ts} +20 -0
- package/lib/components/TafForm/TafFormButtons/TafFormButtons.d.ts +5 -9
- package/lib/components/TafForm/TafFormButtons/TafFormOptionsButton.d.ts +11 -0
- package/lib/components/TafForm/{TafFormRow/probability.spec.d.ts → TafFormButtons/TafFormOptionsButton.spec.d.ts} +0 -0
- package/lib/components/TafForm/TafFormRow/types.d.ts +3 -2
- package/lib/components/TafForm/TafFormRow/{change.d.ts → validations/change.d.ts} +0 -0
- package/lib/components/TafForm/TafFormRow/{validField.spec.d.ts → validations/change.spec.d.ts} +0 -0
- package/lib/components/TafForm/TafFormRow/{clouds.d.ts → validations/clouds.d.ts} +1 -1
- package/lib/components/TafForm/TafFormRow/{visibility.spec.d.ts → validations/clouds.spec.d.ts} +0 -0
- package/lib/components/TafForm/TafFormRow/{probability.d.ts → validations/probability.d.ts} +0 -0
- package/lib/components/TafForm/TafFormRow/{weather.spec.d.ts → validations/probability.spec.d.ts} +0 -0
- package/lib/components/TafForm/TafFormRow/{utils.d.ts → validations/utils.d.ts} +0 -0
- package/lib/components/{TafList → TafForm/TafFormRow/validations}/utils.spec.d.ts +0 -0
- package/lib/components/TafForm/TafFormRow/{validField.d.ts → validations/validField.d.ts} +1 -1
- package/lib/components/TafForm/TafFormRow/{wind.spec.d.ts → validations/validField.spec.d.ts} +0 -0
- package/lib/components/TafForm/TafFormRow/{visibility.d.ts → validations/visibility.d.ts} +1 -1
- package/lib/components/TafForm/{TafFormWrapper.spec.d.ts → TafFormRow/validations/visibility.spec.d.ts} +0 -0
- package/lib/components/TafForm/TafFormRow/{weather.d.ts → validations/weather.d.ts} +1 -1
- package/lib/components/{TafList/TafList.spec.d.ts → TafForm/TafFormRow/validations/weather.spec.d.ts} +0 -0
- package/lib/components/TafForm/TafFormRow/{wind.d.ts → validations/wind.d.ts} +1 -1
- package/lib/components/{TafList/TafListAccordion.spec.d.ts → TafForm/TafFormRow/validations/wind.spec.d.ts} +0 -0
- package/lib/components/TafForm/index.d.ts +1 -2
- package/lib/components/TafForm/utils.d.ts +25 -2
- package/lib/components/TafHeader/TafHeader.d.ts +6 -0
- package/lib/components/{TafList/TafListButtons.spec.d.ts → TafHeader/TafHeader.spec.d.ts} +0 -0
- package/lib/components/TafLayout/LocationTabs/LocationTabs.d.ts +10 -0
- package/lib/components/{TafList/TafListRow.spec.d.ts → TafLayout/LocationTabs/LocationTabs.spec.d.ts} +0 -0
- package/lib/components/TafLayout/LocationTabs/LocationTabs.stories.d.ts +13 -0
- package/lib/components/TafLayout/LocationTabs/index.d.ts +1 -0
- package/lib/components/TafLayout/TacOverview/TacContainer.d.ts +8 -0
- package/lib/components/{TafList/TafListSection.spec.d.ts → TafLayout/TacOverview/TacContainer.spec.d.ts} +0 -0
- package/lib/components/TafLayout/TacOverview/TacOverview.d.ts +11 -0
- package/lib/components/TafLayout/TacOverview/TacOverview.spec.d.ts +1 -0
- package/lib/components/TafLayout/TacOverview/TacOverview.stories.d.ts +15 -0
- package/lib/components/TafLayout/TacOverview/TacOverviewMobile.d.ts +11 -0
- package/lib/components/TafLayout/TacOverview/TacOverviewMobile.spec.d.ts +1 -0
- package/lib/components/TafLayout/TacOverview/TacOverviewMobile.stories.d.ts +23 -0
- package/lib/components/TafLayout/TacOverview/index.d.ts +2 -0
- package/lib/components/TafLayout/TafLayout.d.ts +8 -0
- package/lib/components/TafLayout/TafLayout.spec.d.ts +1 -0
- package/lib/components/TafLayout/TafLayout.stories.d.ts +15 -0
- package/lib/components/TafLayout/TafPanel/TafPanel.d.ts +14 -0
- package/lib/components/TafLayout/TafPanel/TafPanel.spec.d.ts +1 -0
- package/lib/components/TafLayout/TafPanel/index.d.ts +1 -0
- package/lib/components/TafLayout/TopTabs/TopTabs.d.ts +9 -0
- package/lib/components/TafLayout/TopTabs/TopTabs.spec.d.ts +1 -0
- package/lib/components/TafLayout/TopTabs/TopTabs.stories.d.ts +13 -0
- package/lib/components/TafLayout/TopTabs/index.d.ts +1 -0
- package/lib/components/TafLayout/utils.d.ts +18 -0
- package/lib/components/TafLayout/utils.spec.d.ts +1 -0
- package/lib/components/TafModule/TafModule.d.ts +3 -0
- package/lib/components/TafModule/TafModule.spec.d.ts +1 -0
- package/lib/components/TafModule/TafModule.stories.d.ts +9 -0
- package/lib/components/TafModule/index.d.ts +1 -0
- package/lib/components/TafWrapper/TafWrapper.d.ts +6 -13
- package/lib/types.d.ts +17 -1
- package/lib/utils/__mocks__/api.d.ts +1 -0
- package/lib/utils/fakeApi.d.ts +1 -1
- package/lib/utils/mockdata/fakeTafList.d.ts +3 -0
- package/lib/utils/testUtils.d.ts +4 -5
- package/package.json +7 -6
- package/lib/components/ContentDialog/ContentDialog.d.ts +0 -14
- package/lib/components/ContentDialog/ContentDialog.stories.d.ts +0 -7
- package/lib/components/ContentDialog/index.d.ts +0 -1
- package/lib/components/IssuesPane/IssuesPane.styles.d.ts +0 -1
- package/lib/components/TafForm/TafForm.styles.d.ts +0 -1
- package/lib/components/TafForm/TafFormDialog/TafFormDialog.d.ts +0 -12
- package/lib/components/TafForm/TafFormDialog/TafFormDialog.stories.d.ts +0 -9
- package/lib/components/TafForm/TafFormWrapper.d.ts +0 -14
- package/lib/components/TafList/TafList.d.ts +0 -11
- package/lib/components/TafList/TafList.stories.d.ts +0 -8
- package/lib/components/TafList/TafListAccordion.d.ts +0 -11
- package/lib/components/TafList/TafListButtons.d.ts +0 -9
- package/lib/components/TafList/TafListRow.d.ts +0 -12
- package/lib/components/TafList/TafListSection.d.ts +0 -12
- package/lib/components/TafList/TafListSection.stories.d.ts +0 -18
- package/lib/components/TafList/index.d.ts +0 -3
- package/lib/components/TafList/utils.d.ts +0 -4
- package/lib/utils/utils.d.ts +0 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const TafModuleLightThemeWithErrorOnAction: () => React.ReactElement;
|
|
7
|
+
export declare const TafModuleLightThemeWithErrorOnLoadingList: () => React.ReactElement;
|
|
8
|
+
export declare const TafModuleLightTheme: () => React.ReactElement;
|
|
9
|
+
export declare const TafModuleDarkTheme: () => React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TafModule } from './TafModule';
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* Needs to be wrapped in the ApiProvider.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```<ApiProvider baseURL="http://test.com" appURL="http://app.com" auth={auth} onSetAuth={onSetAuth} createApi={createApi}> authTokenUrl="url/tokenrefresh"<TafWrapper /> </ApiProvider>```
|
|
11
|
-
*/
|
|
12
|
-
declare const ConfirmationWrapper: React.FC;
|
|
13
|
-
export default ConfirmationWrapper;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface TafWrapperProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
declare const TafWrapper: React.FC<TafWrapperProps>;
|
|
6
|
+
export default TafWrapper;
|
package/lib/types.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export interface BaseTaf {
|
|
|
66
66
|
uuid: string;
|
|
67
67
|
issueDate?: TafDate;
|
|
68
68
|
}
|
|
69
|
-
export declare type TafStatus = 'NEW' | 'DRAFT' | '
|
|
69
|
+
export declare type TafStatus = 'NEW' | 'DRAFT' | 'DRAFT_AMENDED' | 'DRAFT_CORRECTED' | 'PUBLISHED' | 'CORRECTED' | 'AMENDED' | 'CANCELLED' | 'EXPIRED';
|
|
70
70
|
export declare type TafActions = 'NEW' | 'DRAFT' | 'DRAFT_AMEND' | 'DRAFT_CORRECT' | 'PUBLISH' | 'CANCEL' | 'CORRECT' | 'AMEND' | 'CLOSE' | 'DISCARD';
|
|
71
71
|
export declare type TafCanbe = 'DRAFTED' | 'DISCARDED' | 'PUBLISHED' | 'CANCELLED' | 'AMENDED' | 'CORRECTED';
|
|
72
72
|
export declare type TafType = 'NORMAL' | 'TEST' | 'EXERCISE';
|
|
@@ -127,3 +127,19 @@ export interface TafFromFrontEnd {
|
|
|
127
127
|
taf: Taf;
|
|
128
128
|
changeStatusTo: TafStatus;
|
|
129
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* TAF (json) settings (libs/taf/src/lib/utils/tafConfig.json)
|
|
132
|
+
*/
|
|
133
|
+
export declare type TafConfigLocation = {
|
|
134
|
+
validity_duration: number;
|
|
135
|
+
activity_period: number;
|
|
136
|
+
label: string;
|
|
137
|
+
};
|
|
138
|
+
export declare type TafConfigLocations = Record<string, TafConfigLocation>;
|
|
139
|
+
export interface TafConfig {
|
|
140
|
+
location_indicator_mwo: string;
|
|
141
|
+
locations: TafConfigLocations;
|
|
142
|
+
locationOrder: string[];
|
|
143
|
+
}
|
|
144
|
+
export declare type TimeSlot = 'UPCOMING' | 'ACTIVE' | 'EXPIRED';
|
|
145
|
+
export declare type TafFormViewMode = 'edit' | 'view';
|
package/lib/utils/fakeApi.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const fakeTafTac = "
|
|
1
|
+
export declare const fakeTafTac = "TAF EHAM 0812/0918 20020G35KT 0500 SN BKN040\nBECMG 0814/0816 0700 BKN001=";
|
|
2
2
|
export declare const fakeAxiosInstance: {
|
|
3
3
|
get: (_url: any, _params?: any) => Promise<void>;
|
|
4
4
|
post: (_url: any, _params?: any) => Promise<void>;
|
|
@@ -9,9 +9,12 @@ export declare const fakePublishedFixedTaf: TafFromBackend;
|
|
|
9
9
|
export declare const fakeDraftTaf: TafFromBackend;
|
|
10
10
|
export declare const fakeDraftFixedTaf: TafFromBackend;
|
|
11
11
|
export declare const fakeDraftAmendmentTaf: TafFromBackend;
|
|
12
|
+
export declare const fakeDraftCorrectedTaf: TafFromBackend;
|
|
12
13
|
export declare const fakeDraftAmendmentFixedTaf: TafFromBackend;
|
|
13
14
|
export declare const fakeAmendmentTaf: TafFromBackend;
|
|
14
15
|
export declare const fakeAmendmentFixedTaf: TafFromBackend;
|
|
16
|
+
export declare const fakeCancelledFixedTaf: TafFromBackend;
|
|
17
|
+
export declare const fakeFixedTafList: TafFromBackend[];
|
|
15
18
|
export declare const fakePublishedTafWithChangeGroups: TafFromBackend;
|
|
16
19
|
export declare const fakePublishedTafWithSameDates: TafFromBackend;
|
|
17
20
|
export declare const fakePublishedTafWithSameDatesFixed: TafFromBackend;
|
package/lib/utils/testUtils.d.ts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { UseFormOptions } from 'react-hook-form';
|
|
3
|
-
|
|
4
|
-
start: string;
|
|
5
|
-
end: string;
|
|
6
|
-
};
|
|
3
|
+
import { Theme } from '@mui/material';
|
|
7
4
|
interface WrapperProps {
|
|
8
5
|
children: React.ReactNode;
|
|
6
|
+
theme?: Theme;
|
|
9
7
|
}
|
|
10
|
-
interface TestWrapperProps extends WrapperProps {
|
|
8
|
+
export interface TestWrapperProps extends WrapperProps {
|
|
11
9
|
createApiFunc?: () => void;
|
|
12
10
|
}
|
|
13
11
|
export declare const TestWrapper: React.FC<TestWrapperProps>;
|
|
14
12
|
interface TestFormWrapperProps {
|
|
15
13
|
children: React.ReactNode;
|
|
16
14
|
options?: UseFormOptions;
|
|
15
|
+
theme?: Theme;
|
|
17
16
|
}
|
|
18
17
|
export declare const TestFormWrapper: React.FC<TestFormWrapperProps>;
|
|
19
18
|
export declare const StoryWrapper: React.FC<WrapperProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/taf",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "GeoWeb TAF library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,21 +14,22 @@
|
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^17.0.2",
|
|
16
16
|
"@mui/material": "^5.2.8",
|
|
17
|
-
"
|
|
17
|
+
"react-hook-form": "^6.12.1",
|
|
18
|
+
"@opengeoweb/shared": "2.4.1",
|
|
19
|
+
"@opengeoweb/theme": "2.4.1",
|
|
18
20
|
"@mui/styles": "^5.2.3",
|
|
19
21
|
"@mui/icons-material": "^5.2.5",
|
|
20
|
-
"react-hook-form": "^6.12.1",
|
|
21
|
-
"@opengeoweb/shared": "2.2.1",
|
|
22
22
|
"react-draggable": "^4.4.3",
|
|
23
23
|
"re-resizable": "^6.9.0",
|
|
24
24
|
"lodash": "^4.17.20",
|
|
25
|
-
"@opengeoweb/form-fields": "2.
|
|
25
|
+
"@opengeoweb/form-fields": "2.4.1",
|
|
26
26
|
"moment": "^2.29.0",
|
|
27
27
|
"moment-timezone": "^0.5.31",
|
|
28
28
|
"@mui/lab": "^5.0.0-alpha.64",
|
|
29
29
|
"axios": "^0.25.0",
|
|
30
|
+
"react-dom": "^17.0.2",
|
|
30
31
|
"react-sortablejs": "^6.0.0",
|
|
31
|
-
"@opengeoweb/api": "2.
|
|
32
|
+
"@opengeoweb/api": "2.4.1",
|
|
32
33
|
"sortablejs": "^1.14.0"
|
|
33
34
|
}
|
|
34
35
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DialogProps } from '@mui/material';
|
|
3
|
-
import { Taf, TafActions } from '../../types';
|
|
4
|
-
interface ContentDialogProps extends DialogProps {
|
|
5
|
-
open: boolean;
|
|
6
|
-
toggleDialogStatus: () => void;
|
|
7
|
-
titleComponent?: React.ReactNode;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
alertBanner?: React.ReactNode;
|
|
10
|
-
onClose?: () => void;
|
|
11
|
-
onFormAction?: (action: TafActions, formValues?: Taf) => void;
|
|
12
|
-
}
|
|
13
|
-
declare const ContentDialog: React.FC<ContentDialogProps>;
|
|
14
|
-
export default ContentDialog;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ContentDialog } from './ContentDialog';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"paneContent" | "image">;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"textFieldGridItem" | "textFieldRoot" | "textFieldInput" | "textFieldLabel" | "textFieldLabelShrink" | "formRow" | "tacTitle" | "tacText" | "tacLine" | "addButton" | "lifecycleButtons" | "actionButton" | "lastButton" | "backdrop" | "emptyButtonContainer">;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Taf, TafActions, TafFromBackend } from '../../../types';
|
|
3
|
-
interface TafFormDialogProps {
|
|
4
|
-
open: boolean;
|
|
5
|
-
toggleFormDialog: () => void;
|
|
6
|
-
tafFromBackend: TafFromBackend;
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
alertBanner?: React.ReactNode;
|
|
9
|
-
onFormAction?: (action: TafActions, formValues?: Taf) => void;
|
|
10
|
-
}
|
|
11
|
-
declare const TafFormDialog: React.FC<TafFormDialogProps>;
|
|
12
|
-
export default TafFormDialog;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const DialogNewTaf: () => React.ReactElement;
|
|
7
|
-
export declare const DialogPublishedTaf: () => React.ReactElement;
|
|
8
|
-
export declare const DialogDraftTaf: () => React.ReactElement;
|
|
9
|
-
export declare const DialogDraftTafError: () => React.ReactElement;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Taf, TafActions, TafFormData, TafFromBackend } from '../../types';
|
|
3
|
-
export declare const getMessageType: (taf: Taf, tafAction: TafActions) => string;
|
|
4
|
-
export declare const getAmendedCorrectedTafTimes: (taf: Taf, tafAction: TafActions) => Taf;
|
|
5
|
-
export declare const prepareTafValues: (_taf: Taf, tafAction: TafActions, addEmptyChangeGroup?: boolean) => TafFormData;
|
|
6
|
-
export interface TafFormWrapperProps {
|
|
7
|
-
mode: string;
|
|
8
|
-
tafFromBackend: TafFromBackend;
|
|
9
|
-
tafAction?: TafActions;
|
|
10
|
-
TAC?: string;
|
|
11
|
-
onFormAction?: (action: TafActions, formValues?: Taf) => void;
|
|
12
|
-
}
|
|
13
|
-
declare const TafFormWrapper: React.FC<TafFormWrapperProps>;
|
|
14
|
-
export default TafFormWrapper;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TafActions, TafFromBackend } from '../../types';
|
|
3
|
-
interface TafListProps {
|
|
4
|
-
tafList: TafFromBackend[];
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
error: Error;
|
|
7
|
-
errorCancelTaf?: string[];
|
|
8
|
-
onClickTafActionButton: (tafUuid: string, action: TafActions) => void;
|
|
9
|
-
}
|
|
10
|
-
declare const TafList: React.FC<TafListProps>;
|
|
11
|
-
export default TafList;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TafActions, TafFromBackend } from '../../types';
|
|
3
|
-
import { ListState } from './TafListRow';
|
|
4
|
-
interface TafListAccordionProps {
|
|
5
|
-
tafListItem: TafFromBackend;
|
|
6
|
-
listType: ListState;
|
|
7
|
-
errorCancelTaf?: string[];
|
|
8
|
-
onClickTafActionButton: (tafUuid: string, action: TafActions) => void;
|
|
9
|
-
}
|
|
10
|
-
declare const TafListAccordion: React.FC<TafListAccordionProps>;
|
|
11
|
-
export default TafListAccordion;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TafActions, TafCanbe } from '../../types';
|
|
3
|
-
interface TafListButtonsProps {
|
|
4
|
-
uuid: string;
|
|
5
|
-
canBe: TafCanbe[];
|
|
6
|
-
onClickTafActionButton: (tafUuid: string, action: TafActions) => void;
|
|
7
|
-
}
|
|
8
|
-
declare const TafListButtons: React.FC<TafListButtonsProps>;
|
|
9
|
-
export default TafListButtons;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Taf, TafStatus } from '../../types';
|
|
3
|
-
export declare type ListState = 'UPCOMING' | 'ACTIVE' | 'EXPIRED';
|
|
4
|
-
export declare const getDraftTitle: (status: TafStatus) => string;
|
|
5
|
-
export interface TafListRowProps {
|
|
6
|
-
taf: Taf;
|
|
7
|
-
listType: ListState;
|
|
8
|
-
showTac?: boolean;
|
|
9
|
-
TAC?: string;
|
|
10
|
-
}
|
|
11
|
-
declare const TafListRow: React.FC<TafListRowProps>;
|
|
12
|
-
export default TafListRow;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TafActions, TafFromBackend } from '../../types';
|
|
3
|
-
import { ListState } from './TafListRow';
|
|
4
|
-
interface TafListSectionProps {
|
|
5
|
-
tafList: TafFromBackend[];
|
|
6
|
-
title: string;
|
|
7
|
-
listType: ListState;
|
|
8
|
-
errorCancelTaf?: string[];
|
|
9
|
-
onClickTafActionButton: (tafUuid: string, action: TafActions) => void;
|
|
10
|
-
}
|
|
11
|
-
declare const TafListSection: React.FC<TafListSectionProps>;
|
|
12
|
-
export default TafListSection;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const TafListRefreshDemo: React.FC;
|
|
7
|
-
export declare const ListUpcoming: {
|
|
8
|
-
(): React.ReactElement;
|
|
9
|
-
storyName: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const ListCurrent: {
|
|
12
|
-
(): React.ReactElement;
|
|
13
|
-
storyName: string;
|
|
14
|
-
};
|
|
15
|
-
export declare const ListExpired: {
|
|
16
|
-
(): React.ReactElement;
|
|
17
|
-
storyName: string;
|
|
18
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Taf, TafCanbe, TafStatus } from '../../types';
|
|
2
|
-
import { ListState } from './TafListRow';
|
|
3
|
-
export declare const getTafFormMode: (canBeOptions: TafCanbe[], status: TafStatus) => string;
|
|
4
|
-
export declare const getListType: (taf: Taf, locationSettings: unknown) => ListState;
|
package/lib/utils/utils.d.ts
DELETED