@opengeoweb/sigmet-airmet 10.1.0 → 10.2.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 +10 -5
- package/package.json +1 -1
- package/src/index.d.ts +2 -1
- package/src/lib/types.d.ts +3 -2
- package/src/lib/utils/fakeApi.d.ts +4 -1
package/index.esm.js
CHANGED
|
@@ -588,6 +588,7 @@ var ProductStatusDescription;
|
|
|
588
588
|
ProductStatusDescription["PUBLISHED"] = "Published";
|
|
589
589
|
ProductStatusDescription["CANCELLED"] = "Cancelled";
|
|
590
590
|
ProductStatusDescription["EXPIRED"] = "Expired";
|
|
591
|
+
ProductStatusDescription["RENEWED"] = "Renewed";
|
|
591
592
|
ProductStatusDescription["DISCARDED"] = "Discarded";
|
|
592
593
|
})(ProductStatusDescription || (ProductStatusDescription = {}));
|
|
593
594
|
var CloudLevelUnits;
|
|
@@ -8146,10 +8147,12 @@ var SigmetForm = function SigmetForm(_ref) {
|
|
|
8146
8147
|
React__default.useEffect(function () {
|
|
8147
8148
|
var isInDrawMode = activeStartTool !== '' || activeEndTool !== '';
|
|
8148
8149
|
setDialogActionsDisabled && setDialogActionsDisabled(isInDrawMode);
|
|
8149
|
-
if (
|
|
8150
|
+
if (mode === 'view') {
|
|
8151
|
+
setIsDisabled(true);
|
|
8152
|
+
} else {
|
|
8150
8153
|
setIsDisabled(isInDrawMode);
|
|
8151
8154
|
}
|
|
8152
|
-
}, [activeStartTool, activeEndTool,
|
|
8155
|
+
}, [mode, activeStartTool, activeEndTool, setDialogActionsDisabled]);
|
|
8153
8156
|
var _useConditionalFields = useConditionalFields$1(productConfig),
|
|
8154
8157
|
hasVolcanicAshes = _useConditionalFields.hasVolcanicAshes,
|
|
8155
8158
|
omitChange = _useConditionalFields.omitChange;
|
|
@@ -8434,10 +8437,12 @@ var AirmetForm = function AirmetForm(_ref) {
|
|
|
8434
8437
|
}, [initialAirmet, updateTac, watch]);
|
|
8435
8438
|
React__default.useEffect(function () {
|
|
8436
8439
|
var isInDrawMode = activeStartTool !== '';
|
|
8437
|
-
if (
|
|
8440
|
+
if (mode === 'view') {
|
|
8441
|
+
setIsDisabled(true);
|
|
8442
|
+
} else {
|
|
8438
8443
|
setIsDisabled(isInDrawMode);
|
|
8439
8444
|
}
|
|
8440
|
-
}, [activeStartTool,
|
|
8445
|
+
}, [activeStartTool, mode]);
|
|
8441
8446
|
var _useConditionalFields = useConditionalFields(),
|
|
8442
8447
|
hasSurfaceVisiblity = _useConditionalFields.hasSurfaceVisiblity,
|
|
8443
8448
|
hasSurfaceWind = _useConditionalFields.hasSurfaceWind,
|
|
@@ -12226,4 +12231,4 @@ ConnectedModuleWrapper) {
|
|
|
12226
12231
|
}
|
|
12227
12232
|
};
|
|
12228
12233
|
|
|
12229
|
-
export { AirmetComponentsLookUp, AirmetForm, AirmetType, CloudLevelUnits, ContentDialog, DEFAULT_MINIMUM_SURFACE_LEVEL, DEFAULT_MIN_MOVEMENT_SPEED, DEFAULT_MIN_VISIBILITY, DEFAULT_MIN_WIND_SPEED, Direction, DownloadSigmetAirmetConfigWrapper, LevelUnits, MapViewGeoJson, MetInfoWrapper, MovementUnit, ProductAction, ProductFormDialog, ProductList, ProductListRow, ProductStatusDescription, SA_NAMESPACE, SigmetComponentsLookUp, SigmetForm, SigmetType, StartOrEndDrawing, VisibilityCause, WindUnit, airmetConfig, createAirmetPostParameter, createApi$1 as createApi, createApi as createFakeApi, createSigmetPostParameter, extractUnitsToShow, firSelectionType, getActiveFIRArea, getAllFirAreas, getAllowedUnits, getBaseLayers, getConfirmationDialogButtonLabel, getConfirmationDialogCancelLabel, getConfirmationDialogContent, getConfirmationDialogTitle, getDefaultPhenomena, getDefaultValidityMinutesFromConfig, getDialogtitle, getDrawTools, getFieldLabel, getFir, getFirArea, getFirOptions, getHoursBeforeValidity, getLevelInFeet, getMaxCloudLevelValue, getMaxCloudLowerLevelValue, getMaxHoursOfValidity, getMaxLevelValue, getMaxMovementSpeedValue, getMaxPolygonPoints, getMaxVisibilityValue, getMaxWindSpeedValue, getMinCloudLevelValue, getMinCloudLowerLevelValue, getMinLevelValue, getMinMovementSpeedValue, getMinVisibilityValue, getMinWindSpeedValue, getOmitChangeFromConfig, getPhenomenon, getProductFormLifecycleButtons, getProductFormMode, getProductIssueDate, getProjection, getToolIcon, getValidFromDelayTimeMinutesFromConfig, hasMaxFeaturePoints, hasValue, isFir, isInstanceOfAirmet, isInstanceOfCancelAirmet, isInstanceOfCancelSigmet, isInstanceOfCancelSigmetOrAirmet, isInstanceOfSigmet, isInstanceOfSigmetOrAirmet, isLevelLower, prepareFormValues, prepareProductValues, sigmetAirmetTranslations as saTranslations, sigmetConfig, triggerValidations, updateDrawToolsWithFir, useDelayedFormValues, useFormLayers };
|
|
12234
|
+
export { AirmetComponentsLookUp, AirmetForm, AirmetType, CloudLevelUnits, ContentDialog, DEFAULT_MINIMUM_SURFACE_LEVEL, DEFAULT_MIN_MOVEMENT_SPEED, DEFAULT_MIN_VISIBILITY, DEFAULT_MIN_WIND_SPEED, Direction, DownloadSigmetAirmetConfigWrapper, LevelUnits, MapViewGeoJson, MetInfoWrapper, MovementUnit, ProductAction, ProductFormDialog, ProductList, ProductListRow, ProductStatusDescription, SA_NAMESPACE, SigmetComponentsLookUp, SigmetForm, SigmetType, StartOrEndDrawing, VisibilityCause, WindUnit, airmetConfig, createAirmetPostParameter, createApi$1 as createApi, createApi as createFakeApi, createSigmetPostParameter, extractUnitsToShow, fakeAirmetList, fakeSigmetList, firSelectionType, getActiveFIRArea, getAllFirAreas, getAllowedUnits, getBaseLayers, getConfirmationDialogButtonLabel, getConfirmationDialogCancelLabel, getConfirmationDialogContent, getConfirmationDialogTitle, getDefaultPhenomena, getDefaultValidUntilValue, getDefaultValidityMinutesFromConfig, getDialogtitle, getDrawTools, getFieldLabel, getFir, getFirArea, getFirOptions, getHoursBeforeValidity, getLevelInFeet, getMaxCloudLevelValue, getMaxCloudLowerLevelValue, getMaxHoursOfValidity, getMaxLevelValue, getMaxMovementSpeedValue, getMaxPolygonPoints, getMaxVisibilityValue, getMaxWindSpeedValue, getMinCloudLevelValue, getMinCloudLowerLevelValue, getMinLevelValue, getMinMovementSpeedValue, getMinVisibilityValue, getMinWindSpeedValue, getOmitChangeFromConfig, getPhenomenon, getProductFormLifecycleButtons, getProductFormMode, getProductIssueDate, getProjection, getToolIcon, getValidFromDelayTimeMinutesFromConfig, hasMaxFeaturePoints, hasValue, isFir, isInstanceOfAirmet, isInstanceOfCancelAirmet, isInstanceOfCancelSigmet, isInstanceOfCancelSigmetOrAirmet, isInstanceOfSigmet, isInstanceOfSigmetOrAirmet, isLevelLower, prepareFormValues, prepareProductValues, sigmetAirmetTranslations as saTranslations, sigmetConfig, triggerValidations, updateDrawToolsWithFir, useDelayedFormValues, useFormLayers };
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import saTranslations from '../locales/sigmet-airmet.json';
|
|
2
2
|
export * from './lib/components/ProductForms';
|
|
3
3
|
export * from './lib/components/ProductForms/ProductFormDialog';
|
|
4
|
+
export * from './lib/components/ProductForms/ProductFormFields/ValidUntil';
|
|
4
5
|
export * from './lib/components/ProductForms/utils';
|
|
5
6
|
export * from './lib/components/ContentDialog';
|
|
6
7
|
export * from './lib/components/MapViewGeoJson';
|
|
7
8
|
export * from './lib/components/ProductList';
|
|
8
9
|
export * from './lib/components/MetInfoWrapper';
|
|
9
10
|
export { createApi } from './lib/utils/api';
|
|
10
|
-
export { createApi as createFakeApi } from './lib/utils/fakeApi';
|
|
11
|
+
export { createApi as createFakeApi, fakeSigmetList, fakeAirmetList, } from './lib/utils/fakeApi';
|
|
11
12
|
export { sigmetConfig, airmetConfig } from './lib/utils/config';
|
|
12
13
|
export * from './lib/types';
|
|
13
14
|
export * from './lib/components/ComponentsLookUp';
|
package/src/lib/types.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export type DateType = string;
|
|
|
66
66
|
*
|
|
67
67
|
* Note: ProductStatus from the backend should be refreshed regularly to display status updates.
|
|
68
68
|
*/
|
|
69
|
-
export type ProductStatus = 'DRAFT' | 'PUBLISHED' | 'CANCELLED' | 'EXPIRED' | 'DISCARDED';
|
|
69
|
+
export type ProductStatus = 'DRAFT' | 'PUBLISHED' | 'CANCELLED' | 'EXPIRED' | 'RENEWED' | 'DISCARDED';
|
|
70
70
|
export declare enum ProductAction {
|
|
71
71
|
PUBLISH = "PUBLISH",
|
|
72
72
|
CANCEL = "CANCEL",
|
|
@@ -80,6 +80,7 @@ export declare enum ProductStatusDescription {
|
|
|
80
80
|
'PUBLISHED' = "Published",
|
|
81
81
|
'CANCELLED' = "Cancelled",
|
|
82
82
|
'EXPIRED' = "Expired",
|
|
83
|
+
'RENEWED' = "Renewed",
|
|
83
84
|
'DISCARDED' = "Discarded"
|
|
84
85
|
}
|
|
85
86
|
/**
|
|
@@ -95,7 +96,7 @@ export type CancelProductStatus = 'PUBLISHED';
|
|
|
95
96
|
* 'PUBLISHED': product can be PUBLISHED
|
|
96
97
|
* 'CANCELLED': product can be CANCELLED
|
|
97
98
|
*/
|
|
98
|
-
export type ProductCanbe = 'DRAFTED' | 'DISCARDED' | 'PUBLISHED' | 'CANCELLED';
|
|
99
|
+
export type ProductCanbe = 'DRAFTED' | 'DISCARDED' | 'PUBLISHED' | 'RENEWED' | 'CANCELLED';
|
|
99
100
|
/**
|
|
100
101
|
* ProductSequence is a sequence label with a counter of the SIGMETs/AIRMETs issued on a day (starting at with 1 01:00),
|
|
101
102
|
* max 3 characters long; first character should be a capital letter,
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { SigmetAirmetApi } from './api';
|
|
2
|
+
import { fakeAirmetList } from './mockdata/fakeAirmetList';
|
|
3
|
+
import { fakeSigmetList } from './mockdata/fakeSigmetList';
|
|
2
4
|
export declare const fakeSigmetTAC = "EHAA SIGMET 1 VALID 121249/121449 EHDB- EHAA AMSTERDAM FIR FRQ TS OBS ENTIRE FIR FL010 STNR WKN";
|
|
3
5
|
export declare const fakeAirmetTAC = "EHAA AIRMET -1 VALID 310700/311100 EHDB- EHAA AMSTERDAM FIR ISOL CB OBS ENTIRE FIR FL020 STNR NC";
|
|
4
|
-
|
|
6
|
+
declare const createApi: () => SigmetAirmetApi;
|
|
7
|
+
export { createApi, fakeAirmetList, fakeSigmetList };
|