@opengeoweb/taf 9.8.0 → 9.9.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 +3 -5
- package/package.json +2 -2
- package/src/lib/components/IssuesPane/types.d.ts +2 -2
- package/src/lib/components/TafForm/TafFormRow/validations/clouds.d.ts +2 -2
- package/src/lib/components/TafForm/utils.d.ts +2 -2
- package/src/lib/components/TafLayout/TafPanel/TafPanel.d.ts +2 -2
- package/src/lib/components/TafLayout/utils.d.ts +2 -2
- package/src/lib/types.d.ts +8 -8
- package/src/lib/utils/api.d.ts +2 -2
- package/src/lib/utils/weatherPhenomena.d.ts +1 -1
package/index.esm.js
CHANGED
|
@@ -1404,7 +1404,7 @@ var WeatherPhenomena;
|
|
|
1404
1404
|
WeatherPhenomena["TSSN"] = "TSSN";
|
|
1405
1405
|
WeatherPhenomena["TSSNGR"] = "TSSNGR";
|
|
1406
1406
|
WeatherPhenomena["TSSNGRRA"] = "TSSNGRRA";
|
|
1407
|
-
WeatherPhenomena["TSSNGS"] = "
|
|
1407
|
+
WeatherPhenomena["TSSNGS"] = "TSSNGS";
|
|
1408
1408
|
WeatherPhenomena["TSSNGSRA"] = "TSSNGSRA";
|
|
1409
1409
|
WeatherPhenomena["TSSNRA"] = "TSSNRA";
|
|
1410
1410
|
WeatherPhenomena["TSSNRAGR"] = "TSSNRAGR";
|
|
@@ -2337,7 +2337,8 @@ var emptyBaseForecast = {
|
|
|
2337
2337
|
var MIN_NUMBER_CHANGE_GROUP = 5;
|
|
2338
2338
|
// formatters
|
|
2339
2339
|
var formatIssueTime = function formatIssueTime(issueDate) {
|
|
2340
|
-
|
|
2340
|
+
var issueDateAsString = dateUtils.dateToString(new Date(issueDate), DATE_FORMAT_ISSUE_TIME);
|
|
2341
|
+
return issueDateAsString || 'Not issued';
|
|
2341
2342
|
};
|
|
2342
2343
|
function formatFormValues(row) {
|
|
2343
2344
|
return Object.keys(row).reduce(function (list, key) {
|
|
@@ -3362,9 +3363,6 @@ var textFieldStyle = function textFieldStyle(theme, shouldPreventUppercase) {
|
|
|
3362
3363
|
},
|
|
3363
3364
|
// root
|
|
3364
3365
|
'&': {
|
|
3365
|
-
'.Mui-error.MuiFilledInput-root': {
|
|
3366
|
-
backgroundColor: 'geowebColors.captions.captionErrorBackground.rgba'
|
|
3367
|
-
},
|
|
3368
3366
|
'.Mui-disabled:before': {
|
|
3369
3367
|
borderColor: 'transparent'
|
|
3370
3368
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/taf",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.9.0",
|
|
4
4
|
"description": "GeoWeb TAF library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@opengeoweb/api": "*",
|
|
12
12
|
"@redux-eggs/redux-toolkit": "^2.2.0",
|
|
13
13
|
"@opengeoweb/shared": "*",
|
|
14
|
-
"react-hook-form": "7.
|
|
14
|
+
"react-hook-form": "^7.50.1",
|
|
15
15
|
"@mui/material": "5.12.0",
|
|
16
16
|
"@opengeoweb/theme": "*",
|
|
17
17
|
"@redux-eggs/saga-extension": "^2.2.0",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FieldError } from 'react-hook-form';
|
|
2
|
-
export
|
|
2
|
+
export interface IssuesPanePosition {
|
|
3
3
|
left: number;
|
|
4
4
|
top: number;
|
|
5
|
-
}
|
|
5
|
+
}
|
|
6
6
|
export interface CustomErrorField extends FieldError {
|
|
7
7
|
isChangeGroup: boolean;
|
|
8
8
|
rowIndex: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Clouds } from '../../../../types';
|
|
2
|
-
|
|
2
|
+
interface CloudStrings {
|
|
3
3
|
cloud1: string;
|
|
4
4
|
cloud2?: string;
|
|
5
5
|
cloud3?: string;
|
|
6
6
|
cloud4?: string;
|
|
7
|
-
}
|
|
7
|
+
}
|
|
8
8
|
export declare const formatCloudsToString: (clouds: Clouds) => CloudStrings;
|
|
9
9
|
export declare const parseCloudsToObject: (clouds: CloudStrings) => Clouds;
|
|
10
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";
|
|
@@ -34,10 +34,10 @@ export declare const tacHasError: (tac: TAC) => boolean;
|
|
|
34
34
|
export declare const useTACGenerator: (taf: Taf, requestTAC: (postTaf: Taf, getJSON?: boolean, abortSignal?: AbortSignal) => Promise<{
|
|
35
35
|
data: TAC;
|
|
36
36
|
}>, getJSON?: boolean) => [TAC, (tafToPost: Taf) => void, (newTAC: TAC) => void];
|
|
37
|
-
export
|
|
37
|
+
export interface SortableField {
|
|
38
38
|
id: string;
|
|
39
39
|
chosen: boolean;
|
|
40
|
-
}
|
|
40
|
+
}
|
|
41
41
|
export declare const useDragOrder: (trigger: (name?: string | string[]) => Promise<boolean>, move: (oldIndex: number, newIndex: number) => void) => {
|
|
42
42
|
onChangeOrder: (event: Sortable.SortableEvent) => void;
|
|
43
43
|
onStartDrag: (event: Sortable.SortableEvent) => void;
|
|
@@ -3,12 +3,12 @@ import { AxiosError } from 'axios';
|
|
|
3
3
|
import { TafFromBackend, Taf, TafActions, TafStatus, TafFromFrontEnd } from '../../../types';
|
|
4
4
|
import { IssuesPanePosition } from '../../IssuesPane/types';
|
|
5
5
|
export declare const fromActionToStatus: (tafAction: TafActions) => TafStatus;
|
|
6
|
-
export
|
|
6
|
+
export interface TafError {
|
|
7
7
|
type: 'CANCELLED' | 'SERVER' | 'WARNING';
|
|
8
8
|
title: string;
|
|
9
9
|
message?: string;
|
|
10
10
|
testId?: string;
|
|
11
|
-
}
|
|
11
|
+
}
|
|
12
12
|
interface TafPanelProps {
|
|
13
13
|
tafFromBackend: TafFromBackend;
|
|
14
14
|
activeTafIndex: number;
|
|
@@ -7,11 +7,11 @@ export declare const getBaseTime: (baseTime: string, location: string) => {
|
|
|
7
7
|
nextBaseTime: Date;
|
|
8
8
|
};
|
|
9
9
|
export declare const getTafTimeSlot: (baseTime: string, location: string, status: TafStatus) => TimeSlot;
|
|
10
|
-
|
|
10
|
+
interface TafTimeSlots {
|
|
11
11
|
current: TafFromBackend[];
|
|
12
12
|
upcoming: TafFromBackend[];
|
|
13
13
|
expired: TafFromBackend[];
|
|
14
|
-
}
|
|
14
|
+
}
|
|
15
15
|
export declare const sortTafTimeSlots: (tafList: TafFromBackend[]) => TafTimeSlots;
|
|
16
16
|
export declare const muiTabA11yProps: (index: number) => {
|
|
17
17
|
id: string;
|
package/src/lib/types.d.ts
CHANGED
|
@@ -120,11 +120,11 @@ export interface TafFromFrontEnd {
|
|
|
120
120
|
/**
|
|
121
121
|
* TAF (json) settings (libs/taf/src/lib/utils/tafConfig.json)
|
|
122
122
|
*/
|
|
123
|
-
export
|
|
123
|
+
export interface TafConfigLocation {
|
|
124
124
|
validity_duration: number;
|
|
125
125
|
activity_period: number;
|
|
126
126
|
label: string;
|
|
127
|
-
}
|
|
127
|
+
}
|
|
128
128
|
export type TafConfigLocations = Record<string, TafConfigLocation>;
|
|
129
129
|
export interface TafConfig {
|
|
130
130
|
location_indicator_mwo: string;
|
|
@@ -132,24 +132,24 @@ export interface TafConfig {
|
|
|
132
132
|
locationOrder: string[];
|
|
133
133
|
}
|
|
134
134
|
export type TimeSlot = 'UPCOMING' | 'ACTIVE' | 'EXPIRED';
|
|
135
|
-
export
|
|
135
|
+
export interface AdverseWeatherTAC {
|
|
136
136
|
tac: {
|
|
137
137
|
text: string;
|
|
138
138
|
type?: string;
|
|
139
139
|
}[][];
|
|
140
|
-
}
|
|
140
|
+
}
|
|
141
141
|
export type TAC = string | AdverseWeatherTAC;
|
|
142
|
-
export
|
|
142
|
+
export interface CloudStrings {
|
|
143
143
|
cloud1: string;
|
|
144
144
|
cloud2?: string;
|
|
145
145
|
cloud3?: string;
|
|
146
146
|
cloud4?: string;
|
|
147
|
-
}
|
|
148
|
-
export
|
|
147
|
+
}
|
|
148
|
+
export interface WeatherStrings {
|
|
149
149
|
weather1: string;
|
|
150
150
|
weather2?: string;
|
|
151
151
|
weather3?: string;
|
|
152
|
-
}
|
|
152
|
+
}
|
|
153
153
|
export interface ConfigKey {
|
|
154
154
|
key: string;
|
|
155
155
|
size: number;
|
package/src/lib/utils/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CreateApiProps } from '@opengeoweb/api';
|
|
2
2
|
import { TAC, Taf, TafFromBackend, TafFromFrontEnd } from '../types';
|
|
3
|
-
export
|
|
3
|
+
export interface TafApi {
|
|
4
4
|
getTafList: () => Promise<{
|
|
5
5
|
data: TafFromBackend[];
|
|
6
6
|
}>;
|
|
@@ -9,5 +9,5 @@ export type TafApi = {
|
|
|
9
9
|
data: TAC;
|
|
10
10
|
}>;
|
|
11
11
|
patchTaf: (formData: TafFromFrontEnd) => Promise<void>;
|
|
12
|
-
}
|
|
12
|
+
}
|
|
13
13
|
export declare const createApi: (props: CreateApiProps) => TafApi;
|