@opengeoweb/sigmet-airmet 9.10.2 → 9.11.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
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { FormControlLabel, Radio, Grid, Typography, Box, Button, Checkbox, MenuItem, FormHelperText, useTheme, Dialog, DialogTitle, DialogContent, Card, LinearProgress, List, ListItemButton, Backdrop, CircularProgress } from '@mui/material';
|
|
4
4
|
import { useFormContext } from 'react-hook-form';
|
|
5
|
-
import { useDraftFormHelpers, ReactHookFormRadioGroup, ReactHookFormSelect, ReactHookFormNumberField, isInteger, isValidMax, isValidMin, isEmpty, ReactHookFormDateTime, isValidDate, isBefore, isBetween, hasMaxFeaturePoints, hasMulitpleIntersections, ReactHookFormHiddenInput, isMaximumOneDrawing, hasIntersectionWithFIR, isValidGeoJsonCoordinates, isXHoursBefore, isAfter, isXHoursAfter, ReactHookFormTextField, isLatitude, isNonOrBothCoordinates, isLongitude, ReactHookFormFormControl, isGeometryDirty, ReactHookFormProvider, defaultFormOptions } from '@opengeoweb/form-fields';
|
|
5
|
+
import { useDraftFormHelpers, ReactHookFormRadioGroup, DATE_FORMAT_FNS, ReactHookFormSelect, ReactHookFormNumberField, isInteger, isValidMax, isValidMin, isEmpty, ReactHookFormDateTime, isValidDate, isBefore, isBetween, hasMaxFeaturePoints, hasMulitpleIntersections, ReactHookFormHiddenInput, isMaximumOneDrawing, hasIntersectionWithFIR, isValidGeoJsonCoordinates, isXHoursBefore, isAfter, isXHoursAfter, ReactHookFormTextField, isLatitude, isNonOrBothCoordinates, isLongitude, ReactHookFormFormControl, isGeometryDirty, ReactHookFormProvider, defaultFormOptions } from '@opengeoweb/form-fields';
|
|
6
6
|
import { useApiContext, useApi, createApiInstance, createNonAuthApiInstance, createFakeApiInstance, ApiProvider } from '@opengeoweb/api';
|
|
7
7
|
import { defaultGeoJSONStyleProperties, defaultIntersectionStyleProperties, defaultPoint, addGeoJSONProperties, defaultBox, defaultPolygon, DRAWMODE, addSelectionTypeToGeoJSON, defaultDelete, getIcon, MapControls, MapViewLayer, useMapDrawTool, addFeatureProperties, rewindGeometry } from '@opengeoweb/webmap-react';
|
|
8
8
|
import { dateUtils, ToggleMenu, CustomTooltip, useIsMounted, StatusTag, AlertBanner, ConfirmationServiceProvider, usePreventBrowserClose, useConfirmationDialog, isAxiosError, getAxiosErrorMessage, usePoller, ErrorBoundary } from '@opengeoweb/shared';
|
|
@@ -11,8 +11,7 @@ import { LayerType, webmapUtils } from '@opengeoweb/webmap';
|
|
|
11
11
|
import { debounce } from 'lodash';
|
|
12
12
|
import { useDispatch, useSelector, shallowEqual } from 'react-redux';
|
|
13
13
|
import { mapSelectors, syncGroupsActions, mapStoreActions, defaultLayers, syncConstants } from '@opengeoweb/store';
|
|
14
|
-
import { LayerManagerMapButtonConnect, LegendMapButtonConnect, MultiDimensionSelectMapButtonsConnect, MapViewConnect, LegendConnect, LayerManagerConnect } from '@opengeoweb/core';
|
|
15
|
-
import { TimeSliderConnect } from '@opengeoweb/timeslider';
|
|
14
|
+
import { LayerManagerMapButtonConnect, LegendMapButtonConnect, MultiDimensionSelectMapButtonsConnect, MapViewConnect, TimeSliderConnect, LegendConnect, LayerManagerConnect } from '@opengeoweb/core';
|
|
16
15
|
import { useAuthenticationContext } from '@opengeoweb/authentication';
|
|
17
16
|
import { Box as Box$1 } from '@mui/system';
|
|
18
17
|
|
|
@@ -1288,10 +1287,10 @@ var getConfirmationDialogCancelLabel = function getConfirmationDialogCancelLabel
|
|
|
1288
1287
|
};
|
|
1289
1288
|
var getProductIssueDate = function getProductIssueDate(initialProduct, initialCancelProduct) {
|
|
1290
1289
|
if (initialProduct !== null && (initialProduct.status === 'PUBLISHED' || initialProduct.status === 'EXPIRED') && initialProduct.issueDate) {
|
|
1291
|
-
return "".concat(dateUtils.dateToString(dateUtils.utc(initialProduct.issueDate),
|
|
1290
|
+
return "".concat(dateUtils.dateToString(dateUtils.utc(initialProduct.issueDate), DATE_FORMAT_FNS), " UTC");
|
|
1292
1291
|
}
|
|
1293
1292
|
if (initialCancelProduct !== null && initialCancelProduct.issueDate) {
|
|
1294
|
-
return "".concat(dateUtils.dateToString(dateUtils.utc(initialCancelProduct.issueDate),
|
|
1293
|
+
return "".concat(dateUtils.dateToString(dateUtils.utc(initialCancelProduct.issueDate), DATE_FORMAT_FNS), " UTC");
|
|
1295
1294
|
}
|
|
1296
1295
|
return '(Not published)';
|
|
1297
1296
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/sigmet-airmet",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.11.0",
|
|
4
4
|
"description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"@opengeoweb/webmap-react": "*",
|
|
18
18
|
"react-redux": "^8.1.3",
|
|
19
19
|
"@opengeoweb/core": "*",
|
|
20
|
-
"@opengeoweb/timeslider": "*",
|
|
21
20
|
"@opengeoweb/authentication": "*",
|
|
22
21
|
"@mui/system": "^5.15.1",
|
|
23
22
|
"@opengeoweb/form-fields": "*",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Airmet, AirmetFromBackend, CancelAirmet } from '../../types';
|
|
2
|
-
export declare const dateFormatUTC = "YYYY-MM-DDTHH:mmZ";
|
|
3
2
|
export declare const fakeAirmetList: AirmetFromBackend[];
|
|
4
3
|
export declare const fakeDraftAirmet: Airmet;
|
|
5
4
|
export declare const fakePublishedAirmet: Airmet;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Sigmet, SigmetFromBackend } from '../../types';
|
|
2
|
-
export declare const dateFormatUTC = "yyyy-MM-dd'T'HH:mm'Z'";
|
|
3
2
|
export declare const fakeSigmetList: SigmetFromBackend[];
|
|
4
3
|
export declare const fakeDataBox: SigmetFromBackend;
|
|
5
4
|
export declare const fakeDataPoly: SigmetFromBackend;
|