@opengeoweb/shared 2.1.1 → 2.1.2
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/lib/components/DraggableDialog/DraggableDialog.d.ts +16 -0
- package/lib/components/DraggableDialog/DraggableDialog.spec.d.ts +1 -0
- package/lib/components/DraggableDialog/DraggableDialog.stories.d.ts +6 -0
- package/lib/components/DraggableDialog/index.d.ts +1 -0
- package/lib/components/index.d.ts +1 -0
- package/package.json +5 -5
- package/shared.esm.js +130 -35
- package/shared.umd.js +115 -33
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const Z_INDEX_TOP = 600;
|
|
3
|
+
export declare const Z_INDEX_BOTTOM = 550;
|
|
4
|
+
interface DraggableDialogProps {
|
|
5
|
+
handleClose: () => void;
|
|
6
|
+
title: string;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
dialogStyling?: {
|
|
9
|
+
dialogWidth?: string;
|
|
10
|
+
dialogMaxHeight?: string;
|
|
11
|
+
dialogTop?: string;
|
|
12
|
+
};
|
|
13
|
+
zIndex?: number;
|
|
14
|
+
}
|
|
15
|
+
declare const DraggableDialog: React.FC<DraggableDialogProps>;
|
|
16
|
+
export default DraggableDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DraggableDialog, Z_INDEX_TOP, Z_INDEX_BOTTOM, } from './DraggableDialog';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/shared",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "GeoWeb shared library with shared components and utils for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "16.14.0",
|
|
16
16
|
"@material-ui/lab": "^4.0.0-alpha.56",
|
|
17
|
-
"@opengeoweb/theme": "2.1.
|
|
17
|
+
"@opengeoweb/theme": "2.1.2",
|
|
18
18
|
"@material-ui/core": "^4.11.0",
|
|
19
19
|
"@material-ui/icons": "^4.9.1",
|
|
20
20
|
"react-draggable": "^4.4.3",
|
|
21
21
|
"re-resizable": "^6.9.0",
|
|
22
22
|
"lodash": "^4.17.20",
|
|
23
|
-
"@opengeoweb/form-fields": "2.1.
|
|
23
|
+
"@opengeoweb/form-fields": "2.1.2",
|
|
24
24
|
"react-hook-form": "^6.12.1",
|
|
25
|
-
"@material-ui/pickers": "^3.2.10",
|
|
26
|
-
"@date-io/moment": "^1.3.13",
|
|
27
25
|
"moment": "^2.29.0",
|
|
26
|
+
"@material-ui/pickers": "^3.2.10",
|
|
28
27
|
"moment-timezone": "^0.5.31",
|
|
28
|
+
"@date-io/moment": "^1.3.13",
|
|
29
29
|
"axios": "^0.21.4"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/shared.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { Box, Typography, makeStyles, Dialog, DialogTitle, IconButton, DialogContent, DialogActions, Button, SvgIcon, Grid, useTheme, Link, Avatar, Paper, ClickAwayListener, MenuList, MenuItem, RadioGroup, FormControlLabel, Radio, List, ListItem, Tabs, Tab, Backdrop, withStyles, Slider } from '@material-ui/core';
|
|
3
|
+
import { Box, Typography, makeStyles, Dialog, DialogTitle, IconButton, DialogContent, DialogActions, Button, SvgIcon, Grid, useTheme, Link, Avatar, Paper, ClickAwayListener, MenuList, MenuItem, RadioGroup, FormControlLabel, Radio, List, ListItem, Tabs, Tab, Backdrop, withStyles, Slider, createStyles } from '@material-ui/core';
|
|
4
4
|
import { Close, DragIndicator } from '@material-ui/icons';
|
|
5
5
|
import { useFormContext } from 'react-hook-form';
|
|
6
6
|
import { isEmpty, errorMessages } from '@opengeoweb/form-fields';
|
|
@@ -103,7 +103,7 @@ function __rest(s, e) {
|
|
|
103
103
|
return t;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
var useStyles$
|
|
106
|
+
var useStyles$e = makeStyles(function () {
|
|
107
107
|
return {
|
|
108
108
|
dialogHeader: {
|
|
109
109
|
zIndex: 1,
|
|
@@ -135,7 +135,7 @@ var ConfirmationDialog = function ConfirmationDialog(_a) {
|
|
|
135
135
|
content = _a$content === void 0 ? null : _a$content,
|
|
136
136
|
other = __rest(_a, ["open", "title", "description", "confirmLabel", "cancelLabel", "onSubmit", "onClose", "content"]);
|
|
137
137
|
|
|
138
|
-
var classes = useStyles$
|
|
138
|
+
var classes = useStyles$e();
|
|
139
139
|
|
|
140
140
|
other.catchOnCancel;
|
|
141
141
|
var rest = __rest(other, ["catchOnCancel"]); // remove unwanted props
|
|
@@ -654,7 +654,7 @@ var ConfirmationServiceProvider = function ConfirmationServiceProvider(_ref) {
|
|
|
654
654
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
655
655
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
656
656
|
* */
|
|
657
|
-
var useStyles$
|
|
657
|
+
var useStyles$d = makeStyles(function () {
|
|
658
658
|
return {
|
|
659
659
|
title: {
|
|
660
660
|
fontSize: '14px',
|
|
@@ -724,7 +724,7 @@ var AlertBanner = function AlertBanner(_ref) {
|
|
|
724
724
|
info = _ref$info === void 0 ? '' : _ref$info,
|
|
725
725
|
_ref$dataTestId = _ref.dataTestId,
|
|
726
726
|
dataTestId = _ref$dataTestId === void 0 ? 'alert-banner' : _ref$dataTestId;
|
|
727
|
-
var classes = useStyles$
|
|
727
|
+
var classes = useStyles$d();
|
|
728
728
|
return /*#__PURE__*/React.createElement(Alert, {
|
|
729
729
|
"data-testid": dataTestId,
|
|
730
730
|
severity: severity,
|
|
@@ -752,7 +752,7 @@ var AlertBanner = function AlertBanner(_ref) {
|
|
|
752
752
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
753
753
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
754
754
|
* */
|
|
755
|
-
var useStyles$
|
|
755
|
+
var useStyles$c = makeStyles(function () {
|
|
756
756
|
return {
|
|
757
757
|
wrapper: {
|
|
758
758
|
height: '100vh',
|
|
@@ -769,7 +769,7 @@ var useStyles$b = makeStyles(function () {
|
|
|
769
769
|
var AppLayout = function AppLayout(_ref) {
|
|
770
770
|
var header = _ref.header,
|
|
771
771
|
children = _ref.children;
|
|
772
|
-
var classes = useStyles$
|
|
772
|
+
var classes = useStyles$c();
|
|
773
773
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
774
774
|
className: classes.wrapper
|
|
775
775
|
}, header, /*#__PURE__*/React__default.createElement("main", {
|
|
@@ -779,7 +779,7 @@ var AppLayout = function AppLayout(_ref) {
|
|
|
779
779
|
|
|
780
780
|
var img = "data:image/svg+xml,%3c!--Licensed under the Apache License%2c Version 2.0 (the 'License')%3byou may not use this file except in compliance with the License.You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing%2c softwaredistributed under the License is distributed on an 'AS IS' BASIS%2cWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND%2c either express or implied.See the License for the specific language governing permissions andlimitations under the License.Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)Copyright 2021 - Finnish Meteorological Institute (FMI)--%3e%3csvg id='svg4550' xmlnsRdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23' xmlns='http://www.w3.org/2000/svg' height='55.156mm' viewBox='0 0 289.84072 195.43326' width='81.799mm' version='1.1' xmlnsCc='http://creativecommons.org/ns%23' xmlnsXlink='http://www.w3.org/1999/xlink' xmlnsDc='http://purl.org/dc/elements/1.1/'%3e %3cdefs id='defs14'%3e %3clinearGradient id='linearGradient4263' y2='113.1' gradientUnits='userSpaceOnUse' y1='76.066' gradientTransform='translate(0 -.0012816)' x2='199.26' x1='160.9'%3e %3cstop id='stop4259' stop-color='white' stop-opacity='.33333' offset='0'/%3e %3cstop id='stop4261' stop-color='white' stop-opacity='0' offset='1'/%3e %3c/linearGradient%3e %3clinearGradient id='linearGradient4240' y2='79.833' gradientUnits='userSpaceOnUse' x2='120.82' y1='120.77' x1='128.56'%3e %3cstop id='stop4236' stop-color='white' stop-opacity='0' offset='0'/%3e %3cstop id='stop4238' stop-color='white' stop-opacity='.33333' offset='1'/%3e %3c/linearGradient%3e %3c/defs%3e %3cg id='layer1' transform='translate(353.49 -626.07)'%3e %3cg id='g4'%3e %3cpath id='path4220' d='m-207 679.86c-7.6546-3.9726-16.149-6.0541-24.773-6.0703-24.585 0.0315-46.045 16.665-52.207 40.465-2.23-0.35755-4.4838-0.54689-6.7422-0.56642-24.881-0.00043-45.051 20.17-45.051 45.051-0.00043 24.881 20.17 45.051 45.051 45.051 36.152-0.20272 72.845-0.0898 109.18-0.0898 8.9834 0 22.962 0.009 36.879 0.0165 9.7409 0.38215 35.645-0.43398 53.537-23.548 17.892-23.115 7.1203-72.79-0.31513-94.017s-30.566-42.361-53.247-42.361c-26.664 0-50.367 14.562-62.311 36.07z' style='color-rendering:auto%3bcolor:black%3bisolation:auto%3bmix-blend-mode:normal%3bshape-rendering:auto%3bsolid-color:black%3bimage-rendering:auto' fill='%230b9ee5'/%3e %3cpath id='path4220-7' opacity='.98' d='m-335.78 758.74c-0.00043 24.881 20.17 45.051 45.051 45.051 36.152-0.20272 72.845-0.0898 109.18-0.0898 10.101 0 27.126 0.009 42.523 0.0156 11.975-0.4199 32.775-4.017 47.893-23.547 4.439-5.7347 7.1108-13.107 8.5098-21.271-35.448-0.0105-239.67-0.15823-253.16-0.15823z' fill='%2360bce9'/%3e %3c/g%3e %3cpath id='path4220-2' d='m-144.69 643.79c-19.529 0-37.464 7.8167-50.359 20.447-4.6476 4.6419-8.6513 9.9041-11.953 15.623 0 40.944 0.0195 77.914 0.0195 123.83 8.4824 0.007 16.983 0.0137 25.438 0.0137 10.101 0 27.126 0.009 42.523 0.0156 11.975-0.4199 32.775-4.017 47.893-23.547 17.892-23.115 7.1209-72.791-0.31446-94.018s-30.565-42.361-53.246-42.361z' style='color-rendering:auto%3bcolor:black%3bisolation:auto%3bmix-blend-mode:normal%3bshape-rendering:auto%3bsolid-color:black%3bimage-rendering:auto' fill='white' fill-opacity='.31373'/%3e %3c/g%3e %3cg id='g4244' transform='translate(2.926 -1.3827)'%3e %3cpath id='path4329' style='color-rendering:auto%3bcolor:black%3bisolation:auto%3bmix-blend-mode:normal%3bshape-rendering:auto%3bsolid-color:black%3bimage-rendering:auto' fill='%23003232' d='m211.54 98.88c11.484 8.7901 14.857 8.43 22.486 19.238 3.6519 5.1733 5.5602 11.69 5.5645 18.164-0.00018 17.949-14.551 32.499-32.5 32.498-17.948-0.00018-32.498-14.55-32.498-32.498 0.006-0.50098 0.0236-1.0018 0.0527-1.502-3.4629-1.1175-6.9173-1.9297-9.6543-1.9297-2.7565 0-6.2409 0.82134-9.7285 1.9512 0.036 0.49286 0.0607 0.98649 0.0742 1.4805-0.00018 17.948-14.55 32.498-32.498 32.498-17.948-0.00019-32.498-14.55-32.498-32.498 0.006-3.5239 0.71774-6.9687 1.8781-10.26 5.474-20.521 8.7944-44.229 27.665-46.855 8.2552-1.1488 15.952 8.848 25.107 8.848 9.1558-0.00028 9.318-14.58 23.088-14.836 16.828-0.3123 31.185 16.304 43.462 25.701zm-4.7539 13.92c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-84.125 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z'/%3e %3cpath id='path4329-2' style='color-rendering:auto%3bcolor:black%3bisolation:auto%3bmix-blend-mode:normal%3bshape-rendering:auto%3bsolid-color:black%3bimage-rendering:auto' fill='url(%23linearGradient4263)' d='m157.24 77.869c-2.1199 2.1753-3.6401 4.4832-5.4018 6.5241-0.53185 0.61614-1.2448 1.3191-1.8477 1.7949-1.2058 0.9517-2.5477 1.6107-4.168 1.7793-0.27005 0.0281-0.54787 0.04296-0.83398 0.04297 5.0928 13.298 11.821 26.014 20 44.834 2.737 0 6.1914 0.8122 9.6543 1.9297-0.0291 0.5002-0.0467 1.001-0.0527 1.502 0 8.4131 3.196 16.08 8.4414 21.852 0.34969 0.38474 0.70861 0.75939 1.0762 1.127 5.881 5.8809 14.007 9.5194 22.98 9.5195 0.5609 0.00004 1.118-0.0149 1.6719-0.043 3.3236-0.16829 6.5154-0.83435 9.502-1.9277 0.99554-0.36446 1.9688-0.77802 2.916-1.2344 1.4208-0.68453 2.7833-1.4677 4.0801-2.3438 8.645-5.84 14.33-15.731 14.33-26.949-0.004-6.474-2.0849-12.873-5.5645-18.164-7.0668-10.745-14.684-12.763-22.486-19.238-11.815-9.8048-26.968-25.716-42.627-25.716-6.2104 0-9.3385 2.3185-11.67 4.7112zm49.543 34.924c4.9706 0 9.5876 1.5119 13.418 4.0996 0.6384 0.43129 1.255 0.89176 1.8476 1.3809 0.59266 0.4891 1.1622 1.0059 1.7051 1.5488 4.3431 4.3431 7.0293 10.343 7.0293 16.971 0 12.841-10.085 23.326-22.766 23.969-0.40906 0.0207-0.82015 0.0312-1.2344 0.0312-4.97 0-9.5878-1.5105-13.418-4.0976-0.00044-0.0003-0.002 0.00029-0.002 0-6.384-4.3129-10.58-11.618-10.58-19.902 0-6.6275 2.6862-12.628 7.0293-16.971 0.54288-0.54289 1.1124-1.0597 1.7051-1.5488 0.59266-0.4891 1.2073-0.94957 1.8457-1.3809 3.8304-2.5878 8.4493-4.0996 13.42-4.0996z'/%3e %3cpath id='path4329-7' style='color-rendering:auto%3bcolor:black%3bisolation:auto%3bmix-blend-mode:normal%3bshape-rendering:auto%3bsolid-color:black%3bimage-rendering:auto' d='m121.43 79.077c-0.51208-0.01011-1.027 0.01805-1.543 0.08985-18.871 2.626-22.19 26.335-27.664 46.856-1.1604 3.2913-1.8729 6.7359-1.8789 10.26 0 17.948 14.55 32.498 32.498 32.498s32.498-14.55 32.498-32.498c-0.0135-0.49402-0.0382-0.98762-0.0742-1.4805 3.5012-1.0071 5.7853-1.8693 9.6893-1.9248-4.8944-11.377-14.29-31.914-19.961-44.863-8.5828 0.000001-15.883-8.7859-23.565-8.9376zm1.2344 33.723c13.255 0 24 10.745 24 24s-10.745 24-24 24-24-10.745-24-24 10.745-24 24-24z' fill='url(%23linearGradient4240)'/%3e %3c/g%3e%3c/svg%3e";
|
|
781
781
|
|
|
782
|
-
var useStyles$
|
|
782
|
+
var useStyles$b = makeStyles(function (theme) {
|
|
783
783
|
var _header;
|
|
784
784
|
|
|
785
785
|
return {
|
|
@@ -816,7 +816,7 @@ var AppHeader = function AppHeader(_ref) {
|
|
|
816
816
|
userMenu = _ref.userMenu,
|
|
817
817
|
_ref$title = _ref.title,
|
|
818
818
|
title = _ref$title === void 0 ? 'GeoWeb' : _ref$title;
|
|
819
|
-
var classes = useStyles$
|
|
819
|
+
var classes = useStyles$b();
|
|
820
820
|
return /*#__PURE__*/React__default.createElement("header", {
|
|
821
821
|
className: classes.header
|
|
822
822
|
}, /*#__PURE__*/React__default.createElement(Grid, {
|
|
@@ -900,7 +900,7 @@ var DraggableComponent$1 = function DraggableComponent(_a) {
|
|
|
900
900
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
901
901
|
* */
|
|
902
902
|
|
|
903
|
-
var useStyles$
|
|
903
|
+
var useStyles$a = function useStyles(isRightAligned) {
|
|
904
904
|
return makeStyles(function () {
|
|
905
905
|
return {
|
|
906
906
|
icon: Object.assign(Object.assign({
|
|
@@ -923,7 +923,7 @@ var useStyles$9 = function useStyles(isRightAligned) {
|
|
|
923
923
|
var ResizeHandle = function ResizeHandle(_ref2) {
|
|
924
924
|
var isRightAligned = _ref2.isRightAligned;
|
|
925
925
|
var theme = useTheme();
|
|
926
|
-
var styles = useStyles$
|
|
926
|
+
var styles = useStyles$a(isRightAligned)();
|
|
927
927
|
return /*#__PURE__*/React__default.createElement(SvgIcon, {
|
|
928
928
|
className: styles.icon,
|
|
929
929
|
"data-testid": "resizeHandle"
|
|
@@ -1107,7 +1107,7 @@ ErrorBoundary.defaultProps = {
|
|
|
1107
1107
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1108
1108
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
1109
1109
|
* */
|
|
1110
|
-
var useStyles$
|
|
1110
|
+
var useStyles$9 = makeStyles(function (theme) {
|
|
1111
1111
|
return {
|
|
1112
1112
|
container: {
|
|
1113
1113
|
position: 'absolute',
|
|
@@ -1155,7 +1155,7 @@ var UserMenu = function UserMenu(_ref) {
|
|
|
1155
1155
|
} : _ref$onClose,
|
|
1156
1156
|
children = _ref.children,
|
|
1157
1157
|
initials = _ref.initials;
|
|
1158
|
-
var classes = useStyles$
|
|
1158
|
+
var classes = useStyles$9();
|
|
1159
1159
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(IconButton, {
|
|
1160
1160
|
"data-testid": "userButton",
|
|
1161
1161
|
onClick: onToggle,
|
|
@@ -1235,7 +1235,7 @@ var MenuItemTheme = function MenuItemTheme() {
|
|
|
1235
1235
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1236
1236
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
1237
1237
|
* */
|
|
1238
|
-
var useStyles$
|
|
1238
|
+
var useStyles$8 = makeStyles(function (theme) {
|
|
1239
1239
|
return {
|
|
1240
1240
|
footer: {
|
|
1241
1241
|
boxShadow: theme.shadows[1],
|
|
@@ -1248,7 +1248,7 @@ var useStyles$7 = makeStyles(function (theme) {
|
|
|
1248
1248
|
}); // drag handles will be handled by DraggableResizable/Resizable
|
|
1249
1249
|
|
|
1250
1250
|
var ToolFooter = function ToolFooter() {
|
|
1251
|
-
var classes = useStyles$
|
|
1251
|
+
var classes = useStyles$8();
|
|
1252
1252
|
return /*#__PURE__*/React__default.createElement("footer", {
|
|
1253
1253
|
className: classes.footer
|
|
1254
1254
|
});
|
|
@@ -1315,7 +1315,7 @@ var getStyle = function getStyle(size) {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
};
|
|
1317
1317
|
|
|
1318
|
-
var useStyles$
|
|
1318
|
+
var useStyles$7 = makeStyles(function (theme) {
|
|
1319
1319
|
return {
|
|
1320
1320
|
header: {
|
|
1321
1321
|
boxShadow: theme.shadows[1],
|
|
@@ -1365,7 +1365,7 @@ var ToolHeader = function ToolHeader(_ref) {
|
|
|
1365
1365
|
_ref$className = _ref.className,
|
|
1366
1366
|
className = _ref$className === void 0 ? '' : _ref$className;
|
|
1367
1367
|
var styles = getStyle(size);
|
|
1368
|
-
var classes = useStyles$
|
|
1368
|
+
var classes = useStyles$7({
|
|
1369
1369
|
styles: styles,
|
|
1370
1370
|
isDraggable: isDraggable
|
|
1371
1371
|
});
|
|
@@ -1432,7 +1432,7 @@ var ToolHeader = function ToolHeader(_ref) {
|
|
|
1432
1432
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1433
1433
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
1434
1434
|
* */
|
|
1435
|
-
var useStyles$
|
|
1435
|
+
var useStyles$6 = makeStyles(function () {
|
|
1436
1436
|
return {
|
|
1437
1437
|
container: {
|
|
1438
1438
|
overflow: 'hidden',
|
|
@@ -1470,7 +1470,7 @@ var ToolContainer = function ToolContainer(_a) {
|
|
|
1470
1470
|
headerClassName = _a$headerClassName === void 0 ? '' : _a$headerClassName,
|
|
1471
1471
|
props = __rest(_a, ["title", "size", "children", "onClose", "isResizable", "isDraggable", "maxHeight", "elevation", "headerClassName"]);
|
|
1472
1472
|
|
|
1473
|
-
var classes = useStyles$
|
|
1473
|
+
var classes = useStyles$6();
|
|
1474
1474
|
return /*#__PURE__*/React__default.createElement(Paper, Object.assign({
|
|
1475
1475
|
elevation: elevation,
|
|
1476
1476
|
className: classes.container
|
|
@@ -1659,7 +1659,7 @@ var DraggableComponent = function DraggableComponent(_a) {
|
|
|
1659
1659
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1660
1660
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
1661
1661
|
* */
|
|
1662
|
-
var useStyles$
|
|
1662
|
+
var useStyles$5 = makeStyles(function (theme) {
|
|
1663
1663
|
return {
|
|
1664
1664
|
icon: {
|
|
1665
1665
|
backgroundColor: theme.palette.geowebColors.textInputField["default"].rgba,
|
|
@@ -1699,7 +1699,7 @@ var ShortCutSegment = function ShortCutSegment(_ref) {
|
|
|
1699
1699
|
var _ref$type = _ref.type,
|
|
1700
1700
|
type = _ref$type === void 0 ? 'text' : _ref$type,
|
|
1701
1701
|
children = _ref.children;
|
|
1702
|
-
var classes = useStyles$
|
|
1702
|
+
var classes = useStyles$5();
|
|
1703
1703
|
|
|
1704
1704
|
if (type === 'divider') {
|
|
1705
1705
|
return /*#__PURE__*/React__default.createElement(Typography, {
|
|
@@ -1749,7 +1749,7 @@ var ShortCutSegment = function ShortCutSegment(_ref) {
|
|
|
1749
1749
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1750
1750
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
1751
1751
|
* */
|
|
1752
|
-
var useStyles$
|
|
1752
|
+
var useStyles$4 = makeStyles(function (theme) {
|
|
1753
1753
|
return {
|
|
1754
1754
|
icon: {
|
|
1755
1755
|
fill: theme.palette.geowebColors.typographyAndIcons.text
|
|
@@ -1757,7 +1757,7 @@ var useStyles$3 = makeStyles(function (theme) {
|
|
|
1757
1757
|
};
|
|
1758
1758
|
});
|
|
1759
1759
|
var OptionIcon = function OptionIcon() {
|
|
1760
|
-
var classes = useStyles$
|
|
1760
|
+
var classes = useStyles$4();
|
|
1761
1761
|
return /*#__PURE__*/React__default.createElement(SvgIcon, {
|
|
1762
1762
|
viewBox: "0 0 12 11",
|
|
1763
1763
|
style: {
|
|
@@ -1780,7 +1780,7 @@ var OptionIcon = function OptionIcon() {
|
|
|
1780
1780
|
}))));
|
|
1781
1781
|
};
|
|
1782
1782
|
var CommandIcon = function CommandIcon() {
|
|
1783
|
-
var classes = useStyles$
|
|
1783
|
+
var classes = useStyles$4();
|
|
1784
1784
|
return /*#__PURE__*/React__default.createElement(SvgIcon, {
|
|
1785
1785
|
viewBox: "0 0 12 12",
|
|
1786
1786
|
style: {
|
|
@@ -1803,7 +1803,7 @@ var CommandIcon = function CommandIcon() {
|
|
|
1803
1803
|
}))));
|
|
1804
1804
|
};
|
|
1805
1805
|
var ArrowLeftIcon = function ArrowLeftIcon() {
|
|
1806
|
-
var classes = useStyles$
|
|
1806
|
+
var classes = useStyles$4();
|
|
1807
1807
|
return /*#__PURE__*/React__default.createElement(SvgIcon, {
|
|
1808
1808
|
viewBox: "0 0 12 6",
|
|
1809
1809
|
style: {
|
|
@@ -1827,7 +1827,7 @@ var ArrowLeftIcon = function ArrowLeftIcon() {
|
|
|
1827
1827
|
}))));
|
|
1828
1828
|
};
|
|
1829
1829
|
var ArrowRightIcon = function ArrowRightIcon() {
|
|
1830
|
-
var classes = useStyles$
|
|
1830
|
+
var classes = useStyles$4();
|
|
1831
1831
|
return /*#__PURE__*/React__default.createElement(SvgIcon, {
|
|
1832
1832
|
viewBox: "0 0 12 6",
|
|
1833
1833
|
style: {
|
|
@@ -1851,7 +1851,7 @@ var ArrowRightIcon = function ArrowRightIcon() {
|
|
|
1851
1851
|
}))));
|
|
1852
1852
|
};
|
|
1853
1853
|
var ArrowDownIcon = function ArrowDownIcon() {
|
|
1854
|
-
var classes = useStyles$
|
|
1854
|
+
var classes = useStyles$4();
|
|
1855
1855
|
return /*#__PURE__*/React__default.createElement(SvgIcon, {
|
|
1856
1856
|
viewBox: "0 0 6 12",
|
|
1857
1857
|
style: {
|
|
@@ -1874,7 +1874,7 @@ var ArrowDownIcon = function ArrowDownIcon() {
|
|
|
1874
1874
|
}))));
|
|
1875
1875
|
};
|
|
1876
1876
|
var ArrowUpIcon = function ArrowUpIcon() {
|
|
1877
|
-
var classes = useStyles$
|
|
1877
|
+
var classes = useStyles$4();
|
|
1878
1878
|
return /*#__PURE__*/React__default.createElement(SvgIcon, {
|
|
1879
1879
|
viewBox: "0 0 6 11",
|
|
1880
1880
|
style: {
|
|
@@ -2041,7 +2041,7 @@ var getShortcutList = function getShortcutList(shortcutList) {
|
|
|
2041
2041
|
});
|
|
2042
2042
|
});
|
|
2043
2043
|
};
|
|
2044
|
-
var useStyles$
|
|
2044
|
+
var useStyles$3 = makeStyles(function () {
|
|
2045
2045
|
return {
|
|
2046
2046
|
row: {
|
|
2047
2047
|
minHeight: 56
|
|
@@ -2061,7 +2061,7 @@ var useStyles$2 = makeStyles(function () {
|
|
|
2061
2061
|
var ShortcutList = function ShortcutList(_ref2) {
|
|
2062
2062
|
var _ref2$platform = _ref2.platform,
|
|
2063
2063
|
platform = _ref2$platform === void 0 ? 'windows' : _ref2$platform;
|
|
2064
|
-
var classes = useStyles$
|
|
2064
|
+
var classes = useStyles$3();
|
|
2065
2065
|
var rows = getShortcutList(shortcuts, platform);
|
|
2066
2066
|
return /*#__PURE__*/React__default.createElement(List, {
|
|
2067
2067
|
"data-testid": "list-".concat(platform)
|
|
@@ -2098,7 +2098,7 @@ var TabPanel = function TabPanel(_ref) {
|
|
|
2098
2098
|
}, value === index && children);
|
|
2099
2099
|
};
|
|
2100
2100
|
|
|
2101
|
-
var useStyles$
|
|
2101
|
+
var useStyles$2 = makeStyles(function () {
|
|
2102
2102
|
return {
|
|
2103
2103
|
container: {
|
|
2104
2104
|
margin: '0px 20px'
|
|
@@ -2110,7 +2110,7 @@ var useStyles$1 = makeStyles(function () {
|
|
|
2110
2110
|
});
|
|
2111
2111
|
|
|
2112
2112
|
var CheatSheet = function CheatSheet() {
|
|
2113
|
-
var classes = useStyles$
|
|
2113
|
+
var classes = useStyles$2();
|
|
2114
2114
|
|
|
2115
2115
|
var _React$useState = React__default.useState(0),
|
|
2116
2116
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -2144,7 +2144,7 @@ var CheatSheet = function CheatSheet() {
|
|
|
2144
2144
|
})));
|
|
2145
2145
|
};
|
|
2146
2146
|
|
|
2147
|
-
var useStyles = makeStyles(function () {
|
|
2147
|
+
var useStyles$1 = makeStyles(function () {
|
|
2148
2148
|
return {
|
|
2149
2149
|
backdrop: {
|
|
2150
2150
|
zIndex: 1
|
|
@@ -2153,7 +2153,7 @@ var useStyles = makeStyles(function () {
|
|
|
2153
2153
|
});
|
|
2154
2154
|
|
|
2155
2155
|
var UserMenuItemCheatSheet = function UserMenuItemCheatSheet() {
|
|
2156
|
-
var classes = useStyles();
|
|
2156
|
+
var classes = useStyles$1();
|
|
2157
2157
|
|
|
2158
2158
|
var _React$useState = React__default.useState(false),
|
|
2159
2159
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -2359,6 +2359,101 @@ var CustomSlider = function CustomSlider(_a) {
|
|
|
2359
2359
|
}, props));
|
|
2360
2360
|
};
|
|
2361
2361
|
|
|
2362
|
+
/* *
|
|
2363
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2364
|
+
* you may not use this file except in compliance with the License.
|
|
2365
|
+
* You may obtain a copy of the License at
|
|
2366
|
+
*
|
|
2367
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2368
|
+
*
|
|
2369
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2370
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2371
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2372
|
+
* See the License for the specific language governing permissions and
|
|
2373
|
+
* limitations under the License.
|
|
2374
|
+
*
|
|
2375
|
+
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
2376
|
+
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
2377
|
+
* */
|
|
2378
|
+
var Z_INDEX_TOP = 600;
|
|
2379
|
+
var Z_INDEX_BOTTOM = 550;
|
|
2380
|
+
var useStyles = makeStyles(function (theme) {
|
|
2381
|
+
return createStyles({
|
|
2382
|
+
draggableDialog: function draggableDialog(props) {
|
|
2383
|
+
return {
|
|
2384
|
+
width: props.dialogWidth ? props.dialogWidth : '90%',
|
|
2385
|
+
position: 'absolute',
|
|
2386
|
+
top: props.dialogTop ? props.dialogTop : '2%',
|
|
2387
|
+
left: '5%',
|
|
2388
|
+
maxWidth: '90%',
|
|
2389
|
+
maxHeight: props.dialogMaxHeight ? props.dialogMaxHeight : '95%',
|
|
2390
|
+
display: 'flex',
|
|
2391
|
+
flexDirection: 'column',
|
|
2392
|
+
overflow: 'hidden',
|
|
2393
|
+
zIndex: props.zIndex
|
|
2394
|
+
};
|
|
2395
|
+
},
|
|
2396
|
+
dialogContent: {
|
|
2397
|
+
marginTop: '40px',
|
|
2398
|
+
overflowY: 'scroll'
|
|
2399
|
+
},
|
|
2400
|
+
dialogHeader: function dialogHeader(props) {
|
|
2401
|
+
return {
|
|
2402
|
+
position: 'absolute',
|
|
2403
|
+
display: 'flex',
|
|
2404
|
+
justifyContent: 'space-between',
|
|
2405
|
+
alignItems: 'center',
|
|
2406
|
+
boxShadow: '0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)',
|
|
2407
|
+
width: '100%',
|
|
2408
|
+
backgroundColor: '#ffffff',
|
|
2409
|
+
zIndex: props.zIndex + 10
|
|
2410
|
+
};
|
|
2411
|
+
},
|
|
2412
|
+
iconClose: {
|
|
2413
|
+
padding: theme.spacing(1)
|
|
2414
|
+
},
|
|
2415
|
+
iconDrag: {
|
|
2416
|
+
padding: theme.spacing(1)
|
|
2417
|
+
}
|
|
2418
|
+
});
|
|
2419
|
+
});
|
|
2420
|
+
|
|
2421
|
+
var DraggableDialog = function DraggableDialog(_ref) {
|
|
2422
|
+
var handleClose = _ref.handleClose,
|
|
2423
|
+
title = _ref.title,
|
|
2424
|
+
children = _ref.children,
|
|
2425
|
+
_ref$dialogStyling = _ref.dialogStyling,
|
|
2426
|
+
dialogStyling = _ref$dialogStyling === void 0 ? {} : _ref$dialogStyling,
|
|
2427
|
+
_ref$zIndex = _ref.zIndex,
|
|
2428
|
+
zIndex = _ref$zIndex === void 0 ? Z_INDEX_TOP : _ref$zIndex;
|
|
2429
|
+
var classes = useStyles(Object.assign(Object.assign({}, dialogStyling), {
|
|
2430
|
+
zIndex: zIndex
|
|
2431
|
+
}));
|
|
2432
|
+
return /*#__PURE__*/React.createElement(Draggable, {
|
|
2433
|
+
handle: "strong",
|
|
2434
|
+
bounds: "body"
|
|
2435
|
+
}, /*#__PURE__*/React.createElement(Paper, {
|
|
2436
|
+
"data-testid": title,
|
|
2437
|
+
className: classes.draggableDialog,
|
|
2438
|
+
elevation: 24
|
|
2439
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2440
|
+
className: classes.dialogHeader
|
|
2441
|
+
}, /*#__PURE__*/React.createElement("strong", null, /*#__PURE__*/React.createElement(IconButton, {
|
|
2442
|
+
"data-testid": "dragDialog",
|
|
2443
|
+
size: "small",
|
|
2444
|
+
className: classes.iconDrag
|
|
2445
|
+
}, /*#__PURE__*/React.createElement(DragIndicator, null))), /*#__PURE__*/React.createElement(Typography, {
|
|
2446
|
+
variant: "subtitle1"
|
|
2447
|
+
}, title), /*#__PURE__*/React.createElement(IconButton, {
|
|
2448
|
+
"data-testid": "closeDialog",
|
|
2449
|
+
size: "small",
|
|
2450
|
+
onClick: handleClose,
|
|
2451
|
+
className: classes.iconClose
|
|
2452
|
+
}, /*#__PURE__*/React.createElement(Close, null))), /*#__PURE__*/React.createElement("div", {
|
|
2453
|
+
className: classes.dialogContent
|
|
2454
|
+
}, children)));
|
|
2455
|
+
};
|
|
2456
|
+
|
|
2362
2457
|
/* *
|
|
2363
2458
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2364
2459
|
* you may not use this file except in compliance with the License.
|
|
@@ -2393,4 +2488,4 @@ var getAxiosErrorMessage = function getAxiosErrorMessage(error) {
|
|
|
2393
2488
|
return 'An error has occurred';
|
|
2394
2489
|
};
|
|
2395
2490
|
|
|
2396
|
-
export { AlertBanner, AppHeader, AppLayout, ConfirmationDialog, ConfirmationServiceProvider, CustomSlider, DraggableComponent$1 as Draggable, ErrorBoundary, HIDDEN_INPUT_HELPER_IS_DRAFT, ResizeComponent as Resizable, StatusTag, ToolContainer, DraggableComponent as ToolContainerDraggable, ToolFooter, ToolHeader, UserMenu, UserMenuItemCheatSheet, MenuItemTheme as UserMenuItemTheme, getAxiosErrorMessage, getInitials, isAxiosError, showPrompt, sliderStyles, useConfirmationDialog, useDialogActions, useDraftFormHelpers, useIsMounted, usePoller, usePreventBrowserClose, usePrevious, useUserMenu };
|
|
2491
|
+
export { AlertBanner, AppHeader, AppLayout, ConfirmationDialog, ConfirmationServiceProvider, CustomSlider, DraggableComponent$1 as Draggable, DraggableDialog, ErrorBoundary, HIDDEN_INPUT_HELPER_IS_DRAFT, ResizeComponent as Resizable, StatusTag, ToolContainer, DraggableComponent as ToolContainerDraggable, ToolFooter, ToolHeader, UserMenu, UserMenuItemCheatSheet, MenuItemTheme as UserMenuItemTheme, Z_INDEX_BOTTOM, Z_INDEX_TOP, getAxiosErrorMessage, getInitials, isAxiosError, showPrompt, sliderStyles, useConfirmationDialog, useDialogActions, useDraftFormHelpers, useIsMounted, usePoller, usePreventBrowserClose, usePrevious, useUserMenu };
|
package/shared.umd.js
CHANGED
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
}, content));
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
-
var useStyles$
|
|
158
|
+
var useStyles$e = core.makeStyles(function () {
|
|
159
159
|
return {
|
|
160
160
|
dialogHeader: {
|
|
161
161
|
zIndex: 1,
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
content = _e === void 0 ? null : _e,
|
|
188
188
|
other = __rest(_a, ["open", "title", "description", "confirmLabel", "cancelLabel", "onSubmit", "onClose", "content"]);
|
|
189
189
|
|
|
190
|
-
var classes = useStyles$
|
|
190
|
+
var classes = useStyles$e();
|
|
191
191
|
|
|
192
192
|
other.catchOnCancel;
|
|
193
193
|
var rest = __rest(other, ["catchOnCancel"]); // remove unwanted props
|
|
@@ -500,7 +500,7 @@
|
|
|
500
500
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
501
501
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
502
502
|
* */
|
|
503
|
-
var useStyles$
|
|
503
|
+
var useStyles$d = core.makeStyles(function () {
|
|
504
504
|
return {
|
|
505
505
|
title: {
|
|
506
506
|
fontSize: '14px',
|
|
@@ -570,7 +570,7 @@
|
|
|
570
570
|
info = _c === void 0 ? '' : _c,
|
|
571
571
|
_d = _a.dataTestId,
|
|
572
572
|
dataTestId = _d === void 0 ? 'alert-banner' : _d;
|
|
573
|
-
var classes = useStyles$
|
|
573
|
+
var classes = useStyles$d();
|
|
574
574
|
return /*#__PURE__*/React__namespace.createElement(lab.Alert, {
|
|
575
575
|
"data-testid": dataTestId,
|
|
576
576
|
severity: severity,
|
|
@@ -598,7 +598,7 @@
|
|
|
598
598
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
599
599
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
600
600
|
* */
|
|
601
|
-
var useStyles$
|
|
601
|
+
var useStyles$c = core.makeStyles(function () {
|
|
602
602
|
return {
|
|
603
603
|
wrapper: {
|
|
604
604
|
height: '100vh',
|
|
@@ -615,7 +615,7 @@
|
|
|
615
615
|
var AppLayout = function AppLayout(_a) {
|
|
616
616
|
var header = _a.header,
|
|
617
617
|
children = _a.children;
|
|
618
|
-
var classes = useStyles$
|
|
618
|
+
var classes = useStyles$c();
|
|
619
619
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
620
620
|
className: classes.wrapper
|
|
621
621
|
}, header, /*#__PURE__*/React__default["default"].createElement("main", {
|
|
@@ -641,7 +641,7 @@
|
|
|
641
641
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
642
642
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
643
643
|
* */
|
|
644
|
-
var useStyles$
|
|
644
|
+
var useStyles$b = core.makeStyles(function (theme) {
|
|
645
645
|
var _a;
|
|
646
646
|
|
|
647
647
|
return {
|
|
@@ -678,7 +678,7 @@
|
|
|
678
678
|
userMenu = _a.userMenu,
|
|
679
679
|
_b = _a.title,
|
|
680
680
|
title = _b === void 0 ? 'GeoWeb' : _b;
|
|
681
|
-
var classes = useStyles$
|
|
681
|
+
var classes = useStyles$b();
|
|
682
682
|
return /*#__PURE__*/React__default["default"].createElement("header", {
|
|
683
683
|
className: classes.header
|
|
684
684
|
}, /*#__PURE__*/React__default["default"].createElement(core.Grid, {
|
|
@@ -762,7 +762,7 @@
|
|
|
762
762
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
763
763
|
* */
|
|
764
764
|
|
|
765
|
-
var useStyles$
|
|
765
|
+
var useStyles$a = function useStyles(isRightAligned) {
|
|
766
766
|
return core.makeStyles(function () {
|
|
767
767
|
return {
|
|
768
768
|
icon: __assign(__assign({
|
|
@@ -785,7 +785,7 @@
|
|
|
785
785
|
var ResizeHandle = function ResizeHandle(_a) {
|
|
786
786
|
var isRightAligned = _a.isRightAligned;
|
|
787
787
|
var theme = core.useTheme();
|
|
788
|
-
var styles = useStyles$
|
|
788
|
+
var styles = useStyles$a(isRightAligned)();
|
|
789
789
|
return /*#__PURE__*/React__default["default"].createElement(core.SvgIcon, {
|
|
790
790
|
className: styles.icon,
|
|
791
791
|
"data-testid": "resizeHandle"
|
|
@@ -961,7 +961,7 @@
|
|
|
961
961
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
962
962
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
963
963
|
* */
|
|
964
|
-
var useStyles$
|
|
964
|
+
var useStyles$9 = core.makeStyles(function (theme) {
|
|
965
965
|
return {
|
|
966
966
|
container: {
|
|
967
967
|
position: 'absolute',
|
|
@@ -1009,7 +1009,7 @@
|
|
|
1009
1009
|
} : _d,
|
|
1010
1010
|
children = _a.children,
|
|
1011
1011
|
initials = _a.initials;
|
|
1012
|
-
var classes = useStyles$
|
|
1012
|
+
var classes = useStyles$9();
|
|
1013
1013
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(core.IconButton, {
|
|
1014
1014
|
"data-testid": "userButton",
|
|
1015
1015
|
onClick: onToggle,
|
|
@@ -1089,7 +1089,7 @@
|
|
|
1089
1089
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1090
1090
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
1091
1091
|
* */
|
|
1092
|
-
var useStyles$
|
|
1092
|
+
var useStyles$8 = core.makeStyles(function (theme) {
|
|
1093
1093
|
return {
|
|
1094
1094
|
footer: {
|
|
1095
1095
|
boxShadow: theme.shadows[1],
|
|
@@ -1102,7 +1102,7 @@
|
|
|
1102
1102
|
}); // drag handles will be handled by DraggableResizable/Resizable
|
|
1103
1103
|
|
|
1104
1104
|
var ToolFooter = function ToolFooter() {
|
|
1105
|
-
var classes = useStyles$
|
|
1105
|
+
var classes = useStyles$8();
|
|
1106
1106
|
return /*#__PURE__*/React__default["default"].createElement("footer", {
|
|
1107
1107
|
className: classes.footer
|
|
1108
1108
|
});
|
|
@@ -1169,7 +1169,7 @@
|
|
|
1169
1169
|
}
|
|
1170
1170
|
};
|
|
1171
1171
|
|
|
1172
|
-
var useStyles$
|
|
1172
|
+
var useStyles$7 = core.makeStyles(function (theme) {
|
|
1173
1173
|
return {
|
|
1174
1174
|
header: {
|
|
1175
1175
|
boxShadow: theme.shadows[1],
|
|
@@ -1219,7 +1219,7 @@
|
|
|
1219
1219
|
_d = _a.className,
|
|
1220
1220
|
className = _d === void 0 ? '' : _d;
|
|
1221
1221
|
var styles = getStyle(size);
|
|
1222
|
-
var classes = useStyles$
|
|
1222
|
+
var classes = useStyles$7({
|
|
1223
1223
|
styles: styles,
|
|
1224
1224
|
isDraggable: isDraggable
|
|
1225
1225
|
});
|
|
@@ -1286,7 +1286,7 @@
|
|
|
1286
1286
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1287
1287
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
1288
1288
|
* */
|
|
1289
|
-
var useStyles$
|
|
1289
|
+
var useStyles$6 = core.makeStyles(function () {
|
|
1290
1290
|
return {
|
|
1291
1291
|
container: {
|
|
1292
1292
|
overflow: 'hidden',
|
|
@@ -1326,7 +1326,7 @@
|
|
|
1326
1326
|
headerClassName = _h === void 0 ? '' : _h,
|
|
1327
1327
|
props = __rest(_a, ["title", "size", "children", "onClose", "isResizable", "isDraggable", "maxHeight", "elevation", "headerClassName"]);
|
|
1328
1328
|
|
|
1329
|
-
var classes = useStyles$
|
|
1329
|
+
var classes = useStyles$6();
|
|
1330
1330
|
return /*#__PURE__*/React__default["default"].createElement(core.Paper, __assign({
|
|
1331
1331
|
elevation: elevation,
|
|
1332
1332
|
className: classes.container
|
|
@@ -1528,7 +1528,7 @@
|
|
|
1528
1528
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1529
1529
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
1530
1530
|
* */
|
|
1531
|
-
var useStyles$
|
|
1531
|
+
var useStyles$5 = core.makeStyles(function (theme) {
|
|
1532
1532
|
return {
|
|
1533
1533
|
icon: {
|
|
1534
1534
|
backgroundColor: theme.palette.geowebColors.textInputField["default"].rgba,
|
|
@@ -1568,7 +1568,7 @@
|
|
|
1568
1568
|
var _b = _a.type,
|
|
1569
1569
|
type = _b === void 0 ? 'text' : _b,
|
|
1570
1570
|
children = _a.children;
|
|
1571
|
-
var classes = useStyles$
|
|
1571
|
+
var classes = useStyles$5();
|
|
1572
1572
|
|
|
1573
1573
|
if (type === 'divider') {
|
|
1574
1574
|
return /*#__PURE__*/React__default["default"].createElement(core.Typography, {
|
|
@@ -1618,7 +1618,7 @@
|
|
|
1618
1618
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1619
1619
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
1620
1620
|
* */
|
|
1621
|
-
var useStyles$
|
|
1621
|
+
var useStyles$4 = core.makeStyles(function (theme) {
|
|
1622
1622
|
return {
|
|
1623
1623
|
icon: {
|
|
1624
1624
|
fill: theme.palette.geowebColors.typographyAndIcons.text
|
|
@@ -1626,7 +1626,7 @@
|
|
|
1626
1626
|
};
|
|
1627
1627
|
});
|
|
1628
1628
|
var OptionIcon = function OptionIcon() {
|
|
1629
|
-
var classes = useStyles$
|
|
1629
|
+
var classes = useStyles$4();
|
|
1630
1630
|
return /*#__PURE__*/React__default["default"].createElement(core.SvgIcon, {
|
|
1631
1631
|
viewBox: "0 0 12 11",
|
|
1632
1632
|
style: {
|
|
@@ -1649,7 +1649,7 @@
|
|
|
1649
1649
|
}))));
|
|
1650
1650
|
};
|
|
1651
1651
|
var CommandIcon = function CommandIcon() {
|
|
1652
|
-
var classes = useStyles$
|
|
1652
|
+
var classes = useStyles$4();
|
|
1653
1653
|
return /*#__PURE__*/React__default["default"].createElement(core.SvgIcon, {
|
|
1654
1654
|
viewBox: "0 0 12 12",
|
|
1655
1655
|
style: {
|
|
@@ -1672,7 +1672,7 @@
|
|
|
1672
1672
|
}))));
|
|
1673
1673
|
};
|
|
1674
1674
|
var ArrowLeftIcon = function ArrowLeftIcon() {
|
|
1675
|
-
var classes = useStyles$
|
|
1675
|
+
var classes = useStyles$4();
|
|
1676
1676
|
return /*#__PURE__*/React__default["default"].createElement(core.SvgIcon, {
|
|
1677
1677
|
viewBox: "0 0 12 6",
|
|
1678
1678
|
style: {
|
|
@@ -1696,7 +1696,7 @@
|
|
|
1696
1696
|
}))));
|
|
1697
1697
|
};
|
|
1698
1698
|
var ArrowRightIcon = function ArrowRightIcon() {
|
|
1699
|
-
var classes = useStyles$
|
|
1699
|
+
var classes = useStyles$4();
|
|
1700
1700
|
return /*#__PURE__*/React__default["default"].createElement(core.SvgIcon, {
|
|
1701
1701
|
viewBox: "0 0 12 6",
|
|
1702
1702
|
style: {
|
|
@@ -1720,7 +1720,7 @@
|
|
|
1720
1720
|
}))));
|
|
1721
1721
|
};
|
|
1722
1722
|
var ArrowDownIcon = function ArrowDownIcon() {
|
|
1723
|
-
var classes = useStyles$
|
|
1723
|
+
var classes = useStyles$4();
|
|
1724
1724
|
return /*#__PURE__*/React__default["default"].createElement(core.SvgIcon, {
|
|
1725
1725
|
viewBox: "0 0 6 12",
|
|
1726
1726
|
style: {
|
|
@@ -1743,7 +1743,7 @@
|
|
|
1743
1743
|
}))));
|
|
1744
1744
|
};
|
|
1745
1745
|
var ArrowUpIcon = function ArrowUpIcon() {
|
|
1746
|
-
var classes = useStyles$
|
|
1746
|
+
var classes = useStyles$4();
|
|
1747
1747
|
return /*#__PURE__*/React__default["default"].createElement(core.SvgIcon, {
|
|
1748
1748
|
viewBox: "0 0 6 11",
|
|
1749
1749
|
style: {
|
|
@@ -1897,7 +1897,7 @@
|
|
|
1897
1897
|
});
|
|
1898
1898
|
});
|
|
1899
1899
|
};
|
|
1900
|
-
var useStyles$
|
|
1900
|
+
var useStyles$3 = core.makeStyles(function () {
|
|
1901
1901
|
return {
|
|
1902
1902
|
row: {
|
|
1903
1903
|
minHeight: 56
|
|
@@ -1917,7 +1917,7 @@
|
|
|
1917
1917
|
var ShortcutList = function ShortcutList(_a) {
|
|
1918
1918
|
var _b = _a.platform,
|
|
1919
1919
|
platform = _b === void 0 ? 'windows' : _b;
|
|
1920
|
-
var classes = useStyles$
|
|
1920
|
+
var classes = useStyles$3();
|
|
1921
1921
|
var rows = getShortcutList(shortcuts, platform);
|
|
1922
1922
|
return /*#__PURE__*/React__default["default"].createElement(core.List, {
|
|
1923
1923
|
"data-testid": "list-" + platform
|
|
@@ -1954,7 +1954,7 @@
|
|
|
1954
1954
|
}, value === index && children);
|
|
1955
1955
|
};
|
|
1956
1956
|
|
|
1957
|
-
var useStyles$
|
|
1957
|
+
var useStyles$2 = core.makeStyles(function () {
|
|
1958
1958
|
return {
|
|
1959
1959
|
container: {
|
|
1960
1960
|
margin: '0px 20px'
|
|
@@ -1966,7 +1966,7 @@
|
|
|
1966
1966
|
});
|
|
1967
1967
|
|
|
1968
1968
|
var CheatSheet = function CheatSheet() {
|
|
1969
|
-
var classes = useStyles$
|
|
1969
|
+
var classes = useStyles$2();
|
|
1970
1970
|
|
|
1971
1971
|
var _a = __read(React__default["default"].useState(0), 2),
|
|
1972
1972
|
activeTab = _a[0],
|
|
@@ -1999,7 +1999,7 @@
|
|
|
1999
1999
|
})));
|
|
2000
2000
|
};
|
|
2001
2001
|
|
|
2002
|
-
var useStyles = core.makeStyles(function () {
|
|
2002
|
+
var useStyles$1 = core.makeStyles(function () {
|
|
2003
2003
|
return {
|
|
2004
2004
|
backdrop: {
|
|
2005
2005
|
zIndex: 1
|
|
@@ -2008,7 +2008,7 @@
|
|
|
2008
2008
|
});
|
|
2009
2009
|
|
|
2010
2010
|
var UserMenuItemCheatSheet = function UserMenuItemCheatSheet() {
|
|
2011
|
-
var classes = useStyles();
|
|
2011
|
+
var classes = useStyles$1();
|
|
2012
2012
|
|
|
2013
2013
|
var _a = __read(React__default["default"].useState(false), 2),
|
|
2014
2014
|
open = _a[0],
|
|
@@ -2245,6 +2245,85 @@
|
|
|
2245
2245
|
}, props));
|
|
2246
2246
|
};
|
|
2247
2247
|
|
|
2248
|
+
var Z_INDEX_TOP = 600;
|
|
2249
|
+
var Z_INDEX_BOTTOM = 550;
|
|
2250
|
+
var useStyles = core.makeStyles(function (theme) {
|
|
2251
|
+
return core.createStyles({
|
|
2252
|
+
draggableDialog: function draggableDialog(props) {
|
|
2253
|
+
return {
|
|
2254
|
+
width: props.dialogWidth ? props.dialogWidth : '90%',
|
|
2255
|
+
position: 'absolute',
|
|
2256
|
+
top: props.dialogTop ? props.dialogTop : '2%',
|
|
2257
|
+
left: '5%',
|
|
2258
|
+
maxWidth: '90%',
|
|
2259
|
+
maxHeight: props.dialogMaxHeight ? props.dialogMaxHeight : '95%',
|
|
2260
|
+
display: 'flex',
|
|
2261
|
+
flexDirection: 'column',
|
|
2262
|
+
overflow: 'hidden',
|
|
2263
|
+
zIndex: props.zIndex
|
|
2264
|
+
};
|
|
2265
|
+
},
|
|
2266
|
+
dialogContent: {
|
|
2267
|
+
marginTop: '40px',
|
|
2268
|
+
overflowY: 'scroll'
|
|
2269
|
+
},
|
|
2270
|
+
dialogHeader: function dialogHeader(props) {
|
|
2271
|
+
return {
|
|
2272
|
+
position: 'absolute',
|
|
2273
|
+
display: 'flex',
|
|
2274
|
+
justifyContent: 'space-between',
|
|
2275
|
+
alignItems: 'center',
|
|
2276
|
+
boxShadow: '0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)',
|
|
2277
|
+
width: '100%',
|
|
2278
|
+
backgroundColor: '#ffffff',
|
|
2279
|
+
zIndex: props.zIndex + 10
|
|
2280
|
+
};
|
|
2281
|
+
},
|
|
2282
|
+
iconClose: {
|
|
2283
|
+
padding: theme.spacing(1)
|
|
2284
|
+
},
|
|
2285
|
+
iconDrag: {
|
|
2286
|
+
padding: theme.spacing(1)
|
|
2287
|
+
}
|
|
2288
|
+
});
|
|
2289
|
+
});
|
|
2290
|
+
|
|
2291
|
+
var DraggableDialog = function DraggableDialog(_a) {
|
|
2292
|
+
var handleClose = _a.handleClose,
|
|
2293
|
+
title = _a.title,
|
|
2294
|
+
children = _a.children,
|
|
2295
|
+
_b = _a.dialogStyling,
|
|
2296
|
+
dialogStyling = _b === void 0 ? {} : _b,
|
|
2297
|
+
_c = _a.zIndex,
|
|
2298
|
+
zIndex = _c === void 0 ? Z_INDEX_TOP : _c;
|
|
2299
|
+
var classes = useStyles(__assign(__assign({}, dialogStyling), {
|
|
2300
|
+
zIndex: zIndex
|
|
2301
|
+
}));
|
|
2302
|
+
return /*#__PURE__*/React__namespace.createElement(Draggable__default["default"], {
|
|
2303
|
+
handle: "strong",
|
|
2304
|
+
bounds: "body"
|
|
2305
|
+
}, /*#__PURE__*/React__namespace.createElement(core.Paper, {
|
|
2306
|
+
"data-testid": title,
|
|
2307
|
+
className: classes.draggableDialog,
|
|
2308
|
+
elevation: 24
|
|
2309
|
+
}, /*#__PURE__*/React__namespace.createElement("div", {
|
|
2310
|
+
className: classes.dialogHeader
|
|
2311
|
+
}, /*#__PURE__*/React__namespace.createElement("strong", null, /*#__PURE__*/React__namespace.createElement(core.IconButton, {
|
|
2312
|
+
"data-testid": "dragDialog",
|
|
2313
|
+
size: "small",
|
|
2314
|
+
className: classes.iconDrag
|
|
2315
|
+
}, /*#__PURE__*/React__namespace.createElement(icons.DragIndicator, null))), /*#__PURE__*/React__namespace.createElement(core.Typography, {
|
|
2316
|
+
variant: "subtitle1"
|
|
2317
|
+
}, title), /*#__PURE__*/React__namespace.createElement(core.IconButton, {
|
|
2318
|
+
"data-testid": "closeDialog",
|
|
2319
|
+
size: "small",
|
|
2320
|
+
onClick: handleClose,
|
|
2321
|
+
className: classes.iconClose
|
|
2322
|
+
}, /*#__PURE__*/React__namespace.createElement(icons.Close, null))), /*#__PURE__*/React__namespace.createElement("div", {
|
|
2323
|
+
className: classes.dialogContent
|
|
2324
|
+
}, children)));
|
|
2325
|
+
};
|
|
2326
|
+
|
|
2248
2327
|
/* *
|
|
2249
2328
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2250
2329
|
* you may not use this file except in compliance with the License.
|
|
@@ -2286,6 +2365,7 @@
|
|
|
2286
2365
|
exports.ConfirmationServiceProvider = ConfirmationServiceProvider;
|
|
2287
2366
|
exports.CustomSlider = CustomSlider;
|
|
2288
2367
|
exports.Draggable = DraggableComponent$1;
|
|
2368
|
+
exports.DraggableDialog = DraggableDialog;
|
|
2289
2369
|
exports.ErrorBoundary = ErrorBoundary;
|
|
2290
2370
|
exports.HIDDEN_INPUT_HELPER_IS_DRAFT = HIDDEN_INPUT_HELPER_IS_DRAFT;
|
|
2291
2371
|
exports.Resizable = ResizeComponent;
|
|
@@ -2297,6 +2377,8 @@
|
|
|
2297
2377
|
exports.UserMenu = UserMenu;
|
|
2298
2378
|
exports.UserMenuItemCheatSheet = UserMenuItemCheatSheet;
|
|
2299
2379
|
exports.UserMenuItemTheme = MenuItemTheme;
|
|
2380
|
+
exports.Z_INDEX_BOTTOM = Z_INDEX_BOTTOM;
|
|
2381
|
+
exports.Z_INDEX_TOP = Z_INDEX_TOP;
|
|
2300
2382
|
exports.getAxiosErrorMessage = getAxiosErrorMessage;
|
|
2301
2383
|
exports.getInitials = getInitials;
|
|
2302
2384
|
exports.isAxiosError = isAxiosError;
|