@opengeoweb/taf 2.3.0 → 2.5.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/README.md +2 -2
- package/index.d.ts +2 -3
- package/index.esm.js +3089 -1447
- package/index.umd.js +3367 -1631
- 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/{TafLayout → StatusIcon}/StatusIcon.d.ts +0 -0
- package/lib/components/{TafLayout → StatusIcon}/StatusIcon.spec.d.ts +0 -0
- package/lib/components/{TafLayout/TabPanel → TabPanel}/TabPanel.d.ts +0 -0
- package/lib/components/{TafLayout/TabPanel → TabPanel}/TabPanel.spec.d.ts +0 -0
- package/lib/components/{TafLayout/TabPanel → TabPanel}/index.d.ts +0 -0
- package/lib/components/TafForm/TafForm.d.ts +7 -22
- package/lib/components/TafForm/{TafFormDialog/TafFormDialog.spec.d.ts → TafForm.spec.d.ts} +0 -0
- package/lib/components/TafForm/{TafFormRow/change.spec.d.ts → TafForm.statusChanges.spec.d.ts} +0 -0
- package/lib/components/TafForm/{TafFormWrapper.stories.d.ts → TafForm.stories.d.ts} +0 -0
- package/lib/components/TafForm/TafFormButtons/TafFormButtons.d.ts +6 -9
- package/lib/components/TafForm/TafFormRow/{change.d.ts → validations/change.d.ts} +0 -0
- package/lib/components/TafForm/TafFormRow/{clouds.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/{probability.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/{validField.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/{visibility.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/TafFormRow/{weather.spec.d.ts → validations/visibility.spec.d.ts} +0 -0
- package/lib/components/TafForm/TafFormRow/{weather.d.ts → validations/weather.d.ts} +1 -1
- package/lib/components/TafForm/TafFormRow/{wind.spec.d.ts → validations/weather.spec.d.ts} +0 -0
- package/lib/components/TafForm/TafFormRow/{wind.d.ts → validations/wind.d.ts} +1 -1
- package/lib/components/TafForm/{TafFormWrapper.spec.d.ts → 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 -0
- package/lib/components/{TafLayout → TafHeader}/TafHeader.d.ts +0 -0
- package/lib/components/{TafLayout → TafHeader}/TafHeader.spec.d.ts +0 -0
- package/lib/components/TafLayout/TacOverview/ExportButton.d.ts +7 -0
- package/lib/components/{TafList/TafList.spec.d.ts → TafLayout/TacOverview/ExportButton.spec.d.ts} +0 -0
- package/lib/components/TafLayout/TacOverview/TacContainer.d.ts +4 -4
- package/lib/components/TafLayout/TacOverview/TacOverview.d.ts +3 -0
- package/lib/components/TafLayout/TacOverview/TacOverview.stories.d.ts +2 -0
- package/lib/components/TafLayout/TacOverview/TacOverviewMobile.d.ts +11 -0
- package/lib/components/{TafList/TafListAccordion.spec.d.ts → TafLayout/TacOverview/TacOverviewMobile.spec.d.ts} +0 -0
- package/lib/components/TafLayout/TacOverview/TacOverviewMobile.stories.d.ts +23 -0
- package/lib/components/TafLayout/TacOverview/index.d.ts +1 -0
- package/lib/components/TafLayout/TafLayout.d.ts +6 -0
- package/lib/components/{TafList/TafListButtons.spec.d.ts → TafLayout/TafLayout.spec.d.ts} +0 -0
- package/lib/components/TafLayout/TafLayout.stories.d.ts +10 -2
- package/lib/components/TafLayout/TafPanel/TafPanel.d.ts +32 -0
- package/lib/components/{TafList/TafListRow.spec.d.ts → TafLayout/TafPanel/TafPanel.spec.d.ts} +0 -0
- package/lib/components/TafLayout/TafPanel/index.d.ts +1 -0
- package/lib/components/TafLayout/TopTabs/TopTabs.d.ts +0 -2
- package/lib/components/TafLayout/utils.d.ts +17 -1
- package/lib/components/TafModule/TafModule.d.ts +3 -0
- package/lib/components/{TafList/TafListSection.spec.d.ts → TafModule/TafModule.spec.d.ts} +0 -0
- package/lib/components/TafModule/TafModule.stories.d.ts +10 -0
- package/lib/components/TafModule/TafModuleProvider.d.ts +22 -0
- package/lib/components/TafModule/index.d.ts +1 -0
- package/lib/components/TafWrapper/TafWrapper.d.ts +6 -13
- package/lib/types.d.ts +1 -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 +9 -3
- package/lib/utils/testUtils.d.ts +7 -10
- 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/Providers/Providers.d.ts +0 -11
- 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 -10
- 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
package/lib/utils/testUtils.d.ts
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { UseFormOptions } from 'react-hook-form';
|
|
3
3
|
import { Theme } from '@mui/material';
|
|
4
|
-
export declare const getActiveStartEndValidSlot: () => {
|
|
5
|
-
start: string;
|
|
6
|
-
end: string;
|
|
7
|
-
};
|
|
8
4
|
interface WrapperProps {
|
|
9
5
|
children: React.ReactNode;
|
|
10
6
|
theme?: Theme;
|
|
11
7
|
}
|
|
12
|
-
interface TestWrapperProps extends WrapperProps {
|
|
8
|
+
export interface TestWrapperProps extends WrapperProps {
|
|
13
9
|
createApiFunc?: () => void;
|
|
14
10
|
}
|
|
15
11
|
export declare const TestWrapper: React.FC<TestWrapperProps>;
|
|
12
|
+
interface ApiTestWrapperProps extends WrapperProps {
|
|
13
|
+
postTaf?: unknown;
|
|
14
|
+
getTafList?: unknown;
|
|
15
|
+
getTAC?: unknown;
|
|
16
|
+
}
|
|
17
|
+
export declare const ApiTestWrapper: React.FC<ApiTestWrapperProps>;
|
|
16
18
|
interface TestFormWrapperProps {
|
|
17
19
|
children: React.ReactNode;
|
|
18
20
|
options?: UseFormOptions;
|
|
@@ -20,9 +22,4 @@ interface TestFormWrapperProps {
|
|
|
20
22
|
}
|
|
21
23
|
export declare const TestFormWrapper: React.FC<TestFormWrapperProps>;
|
|
22
24
|
export declare const StoryWrapper: React.FC<WrapperProps>;
|
|
23
|
-
interface ThemeWrapperProps {
|
|
24
|
-
theme?: Theme;
|
|
25
|
-
children: React.ReactNode;
|
|
26
|
-
}
|
|
27
|
-
export declare const StoryWrapperWithTheme: React.FC<ThemeWrapperProps>;
|
|
28
25
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/taf",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
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.5.0",
|
|
19
|
+
"@opengeoweb/theme": "2.5.0",
|
|
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.3.0",
|
|
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.5.0",
|
|
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.5.0",
|
|
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,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface TAFThemeProviderProps {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* A Provider component which provides the GeoWeb theme
|
|
7
|
-
* @param children
|
|
8
|
-
* @returns
|
|
9
|
-
*/
|
|
10
|
-
export declare const TAFThemeProvider: React.FC<TAFThemeProviderProps>;
|
|
11
|
-
export {};
|
|
@@ -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: (action: TafActions, tafUuid: string) => void;
|
|
9
|
-
}
|
|
10
|
-
declare const TafListAccordion: React.FC<TafListAccordionProps>;
|
|
11
|
-
export default TafListAccordion;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TafActions, TafCanbe } from '../../types';
|
|
3
|
-
interface TafListButtonsProps {
|
|
4
|
-
uuid: string;
|
|
5
|
-
canBe: TafCanbe[];
|
|
6
|
-
onClickTafActionButton: (action: TafActions, tafUuid: string) => void;
|
|
7
|
-
testId?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const TafListButtons: React.FC<TafListButtonsProps>;
|
|
10
|
-
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