@opengeoweb/warnings 8.4.0 → 9.0.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 +22 -12
- package/package.json +3 -24
package/index.esm.js
CHANGED
|
@@ -2,9 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import React__default, { useContext, useRef, useCallback, useDebugValue, createElement, PureComponent, useState, useEffect } from 'react';
|
|
3
3
|
import 'react-dom';
|
|
4
4
|
import { Polygons, Share, ExitDomain, Edit, Delete, DrawPolygon, Visibility, Add, breakpoints, CoastalEvent, Fog, TemperatureHigh, TemperatureLow, Rain, Snow, Lightning, Wind } from '@opengeoweb/theme';
|
|
5
|
-
import { uiActions, uiTypes, getSingularDrawtoolDrawLayerId, drawtoolSelectors, layerSelectors, uiSelectors, mapStoreActions, drawtoolActions, layerActions,
|
|
6
|
-
import { emptyGeoJSON, MapControlButton, getGeoJSONPropertyValue, getIcon, currentlySupportedDrawModes } from '@opengeoweb/webmap-react';
|
|
7
|
-
import {
|
|
5
|
+
import { uiActions, uiTypes, getSingularDrawtoolDrawLayerId, drawtoolSelectors, layerSelectors, uiSelectors, mapStoreActions, drawtoolActions, layerActions, useSetupDialog } from '@opengeoweb/store';
|
|
6
|
+
import { emptyGeoJSON, MapControlButton, getGeoJSONPropertyValue, getIcon, rewindGeometry, currentlySupportedDrawModes } from '@opengeoweb/webmap-react';
|
|
7
|
+
import { snackbarActions } from '@opengeoweb/snackbar';
|
|
8
8
|
import { dateUtils, ToggleMenu, getHeight, calculateStartSize, ToolContainerDraggable, AlertBanner, ConfirmationDialog, getAxiosErrorMessage, CustomIconButton, SwitchButton, isAxiosError } from '@opengeoweb/shared';
|
|
9
9
|
import { Box, Typography, ListItem, Paper, ListItemButton, Stack, LinearProgress, Button, Grid, FormHelperText, MenuItem, Tabs, Tab, FormControl, Card, CardContent, styled, ListItemIcon, FormControlLabel, Radio } from '@mui/material';
|
|
10
10
|
import { getApi, createApiInstance, createNonAuthApiInstance, createFakeApiInstance, ApiProvider } from '@opengeoweb/api';
|
|
@@ -23385,9 +23385,13 @@ var DrawingToolForm = function DrawingToolForm(_ref) {
|
|
|
23385
23385
|
handleSubmit(function (formValues) {
|
|
23386
23386
|
// remove unneeded properties
|
|
23387
23387
|
formValues.opacity;
|
|
23388
|
-
var
|
|
23388
|
+
var geoJSON = formValues.geoJSON,
|
|
23389
|
+
allFormValues = __rest(formValues, ["opacity", "geoJSON"]);
|
|
23390
|
+
// rewind geometry
|
|
23391
|
+
var rewindedGeometry = rewindGeometry(geoJSON);
|
|
23389
23392
|
onSubmitForm(Object.assign(Object.assign({}, allFormValues), {
|
|
23390
|
-
id: id
|
|
23393
|
+
id: id,
|
|
23394
|
+
geoJSON: rewindedGeometry
|
|
23391
23395
|
}));
|
|
23392
23396
|
})();
|
|
23393
23397
|
};
|
|
@@ -23600,7 +23604,7 @@ var DrawingToolFormConnect = function DrawingToolFormConnect() {
|
|
|
23600
23604
|
});
|
|
23601
23605
|
var onSubmitForm = function onSubmitForm(formValues) {
|
|
23602
23606
|
dispatch(drawActions.submitDrawValues({
|
|
23603
|
-
geoJSON:
|
|
23607
|
+
geoJSON: formValues.geoJSON,
|
|
23604
23608
|
objectName: formValues.objectName,
|
|
23605
23609
|
scope: 'user',
|
|
23606
23610
|
id: drawing === null || drawing === void 0 ? void 0 : drawing.id
|
|
@@ -23719,7 +23723,7 @@ var DrawingToolConnect = function DrawingToolConnect(_ref) {
|
|
|
23719
23723
|
React.useEffect(function () {
|
|
23720
23724
|
dispatch(drawtoolActions.registerDrawTool({
|
|
23721
23725
|
drawToolId: drawingDialogType,
|
|
23722
|
-
|
|
23726
|
+
defaultDrawModes: currentlySupportedDrawModes
|
|
23723
23727
|
}));
|
|
23724
23728
|
return function () {
|
|
23725
23729
|
dispatch(drawtoolActions.unregisterDrawTool({
|
|
@@ -24089,15 +24093,18 @@ var probablityOptions = [100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 0];
|
|
|
24089
24093
|
var levelOptions = [{
|
|
24090
24094
|
title: 'Moderate',
|
|
24091
24095
|
key: 'moderate',
|
|
24092
|
-
color: '#FAE21E'
|
|
24096
|
+
color: '#FAE21E',
|
|
24097
|
+
textColor: '#051039'
|
|
24093
24098
|
}, {
|
|
24094
24099
|
title: 'Severe',
|
|
24095
24100
|
key: 'severe',
|
|
24096
|
-
color: '#E27000'
|
|
24101
|
+
color: '#E27000',
|
|
24102
|
+
textColor: '#051039'
|
|
24097
24103
|
}, {
|
|
24098
24104
|
title: 'Extreme',
|
|
24099
24105
|
key: 'extreme',
|
|
24100
|
-
color: '#D62A20'
|
|
24106
|
+
color: '#D62A20',
|
|
24107
|
+
textColor: '#ffffff'
|
|
24101
24108
|
}];
|
|
24102
24109
|
var warningPhenomena = [{
|
|
24103
24110
|
title: 'Coastal event',
|
|
@@ -24293,6 +24300,7 @@ var Form = function Form(_ref5) {
|
|
|
24293
24300
|
rules: {},
|
|
24294
24301
|
sx: {
|
|
24295
24302
|
'& .MuiSelect-select.MuiSelect-filled': {
|
|
24303
|
+
color: (levelDetails === null || levelDetails === void 0 ? void 0 : levelDetails.textColor) || 'none',
|
|
24296
24304
|
backgroundColor: (levelDetails === null || levelDetails === void 0 ? void 0 : levelDetails.color) || 'none',
|
|
24297
24305
|
backgroundClip: 'content-box'
|
|
24298
24306
|
}
|
|
@@ -24303,20 +24311,22 @@ var Form = function Form(_ref5) {
|
|
|
24303
24311
|
key: level.key,
|
|
24304
24312
|
sx: {
|
|
24305
24313
|
'&.MuiMenuItem-root ': {
|
|
24314
|
+
color: level.textColor,
|
|
24306
24315
|
background: level.color,
|
|
24307
24316
|
backgroundClip: 'content-box',
|
|
24317
|
+
padding: '12px 8px',
|
|
24308
24318
|
'&:hover': {
|
|
24309
24319
|
backgroundColor: "".concat(level.color),
|
|
24310
24320
|
backgroundClip: 'content-box',
|
|
24311
24321
|
boxShadow: function boxShadow(theme) {
|
|
24312
|
-
return "inset -
|
|
24322
|
+
return "inset -8px -12px ".concat(theme.palette.geowebColors.cards.cardContainerMouseOver, ", inset 8px 12px ").concat(theme.palette.geowebColors.cards.cardContainerMouseOver);
|
|
24313
24323
|
}
|
|
24314
24324
|
},
|
|
24315
24325
|
'&.Mui-selected': {
|
|
24316
24326
|
backgroundColor: "".concat(level.color),
|
|
24317
24327
|
'&:hover': {
|
|
24318
24328
|
boxShadow: function boxShadow(theme) {
|
|
24319
|
-
return "inset 4px 0px 0px 0px ".concat(theme.palette.geowebColors.typographyAndIcons.iconLinkActive, ", inset -
|
|
24329
|
+
return "inset 4px 0px 0px 0px ".concat(theme.palette.geowebColors.typographyAndIcons.iconLinkActive, ", inset -8px -12px ").concat(theme.palette.geowebColors.cards.cardContainerMouseOver, ", inset 8px 12px ").concat(theme.palette.geowebColors.cards.cardContainerMouseOver);
|
|
24320
24330
|
}
|
|
24321
24331
|
}
|
|
24322
24332
|
}
|
package/package.json
CHANGED
|
@@ -1,35 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/warnings",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "GeoWeb warinings library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
|
-
"dependencies": {
|
|
11
|
-
"@mui/material": "5.12.0",
|
|
12
|
-
"@opengeoweb/api": "8.4.0",
|
|
13
|
-
"@opengeoweb/core": "8.4.0",
|
|
14
|
-
"@opengeoweb/form-fields": "8.4.0",
|
|
15
|
-
"@opengeoweb/shared": "8.4.0",
|
|
16
|
-
"@opengeoweb/store": "8.4.0",
|
|
17
|
-
"@opengeoweb/theme": "8.4.0",
|
|
18
|
-
"@opengeoweb/webmap": "8.4.0",
|
|
19
|
-
"@opengeoweb/webmap-react": "8.4.0",
|
|
20
|
-
"@redux-eggs/redux-toolkit": "2.2.0",
|
|
21
|
-
"@redux-eggs/saga-extension": "2.2.0",
|
|
22
|
-
"@reduxjs/toolkit": "1.9.7",
|
|
23
|
-
"axios": "1.5.0",
|
|
24
|
-
"lodash": "4.17.21",
|
|
25
|
-
"react": "18.2.0",
|
|
26
|
-
"react-hook-form": "7.47.0",
|
|
27
|
-
"react-redux": "8.1.3",
|
|
28
|
-
"react-window": "1.8.9",
|
|
29
|
-
"redux-saga": "1.2.3"
|
|
30
|
-
},
|
|
10
|
+
"dependencies": {},
|
|
31
11
|
"module": "./index.esm.js",
|
|
32
12
|
"type": "module",
|
|
33
|
-
"main": "./index.esm.js"
|
|
34
|
-
"peerDependencies": {}
|
|
13
|
+
"main": "./index.esm.js"
|
|
35
14
|
}
|