@opengeoweb/shared 4.14.1 → 4.15.1
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 +25 -28
- package/index.umd.js +24 -27
- package/lib/components/AppHeader/AppHeader.d.ts +1 -0
- package/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { useRef } from 'react';
|
|
3
|
-
import { Box, Typography, Dialog, DialogTitle, IconButton, DialogContent, DialogActions, Button, CircularProgress, Alert, AlertTitle,
|
|
3
|
+
import { Box, Typography, Dialog, DialogTitle, IconButton, DialogContent, DialogActions, Button, CircularProgress, Alert, AlertTitle, useTheme, Link, Avatar as Avatar$1, Paper, ClickAwayListener, MenuList, MenuItem, Grid, RadioGroup, FormControlLabel, Radio, Tooltip, List, ListItem, Tabs, Tab, Backdrop, Slider, ToggleButton, Menu, ListItemIcon, Checkbox, Select, Accordion, AccordionSummary, AccordionDetails } from '@mui/material';
|
|
4
4
|
import { Close, Exclamation, Success, Info, ChevronRight, GeoWebLogo, Resize, useThemeContext, DragHandle, ArrowLeft, ArrowRight, KeyOption, ArrowUp, ArrowDown, KeyCommand, Options, Delete, VisibilityOff, Visibility, ChevronDown } from '@opengeoweb/theme';
|
|
5
5
|
import { throttle } from 'lodash';
|
|
6
6
|
import Draggable from 'react-draggable';
|
|
@@ -935,6 +935,7 @@ var styles$5 = {
|
|
|
935
935
|
color: theme.palette.common.white,
|
|
936
936
|
boxShadow: theme.shadows[1],
|
|
937
937
|
zIndex: 1000,
|
|
938
|
+
display: 'flex',
|
|
938
939
|
padding: '0 16px'
|
|
939
940
|
}, theme.breakpoints.up('md'), {
|
|
940
941
|
padding: '0 24px'
|
|
@@ -961,32 +962,16 @@ var styles$5 = {
|
|
|
961
962
|
var AppHeader = function AppHeader(_ref2) {
|
|
962
963
|
var menu = _ref2.menu,
|
|
963
964
|
userMenu = _ref2.userMenu,
|
|
965
|
+
workspaceTopBar = _ref2.workspaceTopBar,
|
|
964
966
|
_ref2$title = _ref2.title,
|
|
965
967
|
title = _ref2$title === void 0 ? 'GeoWeb' : _ref2$title;
|
|
966
968
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
967
969
|
component: "header",
|
|
968
970
|
sx: styles$5.header
|
|
969
|
-
}, /*#__PURE__*/React__default.createElement(Grid, {
|
|
970
|
-
sx: styles$5.container,
|
|
971
|
-
container: true,
|
|
972
|
-
alignItems: "center"
|
|
973
|
-
}, /*#__PURE__*/React__default.createElement(Grid, {
|
|
974
|
-
item: true,
|
|
975
|
-
xs: 6,
|
|
976
|
-
sm: 6
|
|
977
|
-
}, /*#__PURE__*/React__default.createElement(Grid, {
|
|
978
|
-
container: true,
|
|
979
|
-
alignItems: "center",
|
|
980
|
-
wrap: "nowrap",
|
|
981
|
-
sx: {
|
|
982
|
-
button: {
|
|
983
|
-
marginLeft: 4,
|
|
984
|
-
color: 'geowebColors.typographyAndIcons.text'
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
971
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
988
972
|
sx: {
|
|
989
|
-
display: '
|
|
973
|
+
display: 'inherit',
|
|
974
|
+
alignItems: 'center'
|
|
990
975
|
}
|
|
991
976
|
}, /*#__PURE__*/React__default.createElement(GeoWebLogo, {
|
|
992
977
|
style: {
|
|
@@ -994,16 +979,28 @@ var AppHeader = function AppHeader(_ref2) {
|
|
|
994
979
|
top: '-1px',
|
|
995
980
|
right: '-1px'
|
|
996
981
|
}
|
|
997
|
-
})
|
|
982
|
+
}), /*#__PURE__*/React__default.createElement(Typography, {
|
|
998
983
|
variant: "h1",
|
|
999
984
|
sx: styles$5.title
|
|
1000
|
-
}, title)
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
985
|
+
}, title)), /*#__PURE__*/React__default.createElement(Box, {
|
|
986
|
+
sx: {
|
|
987
|
+
flexGrow: 1,
|
|
988
|
+
display: 'flex',
|
|
989
|
+
marginLeft: 4,
|
|
990
|
+
alignItems: 'center'
|
|
991
|
+
}
|
|
992
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
993
|
+
sx: {
|
|
994
|
+
button: {
|
|
995
|
+
color: 'geowebColors.typographyAndIcons.text'
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
}, menu), workspaceTopBar), /*#__PURE__*/React__default.createElement(Box, {
|
|
999
|
+
sx: {
|
|
1000
|
+
display: 'flex',
|
|
1001
|
+
alignItems: 'center'
|
|
1002
|
+
}
|
|
1003
|
+
}, userMenu));
|
|
1007
1004
|
};
|
|
1008
1005
|
|
|
1009
1006
|
/* *
|
package/index.umd.js
CHANGED
|
@@ -815,6 +815,7 @@
|
|
|
815
815
|
color: theme.palette.common.white,
|
|
816
816
|
boxShadow: theme.shadows[1],
|
|
817
817
|
zIndex: 1000,
|
|
818
|
+
display: 'flex',
|
|
818
819
|
padding: '0 16px'
|
|
819
820
|
}, _a[theme.breakpoints.up('md')] = {
|
|
820
821
|
padding: '0 24px'
|
|
@@ -841,32 +842,16 @@
|
|
|
841
842
|
var AppHeader = function AppHeader(_a) {
|
|
842
843
|
var menu = _a.menu,
|
|
843
844
|
userMenu = _a.userMenu,
|
|
845
|
+
workspaceTopBar = _a.workspaceTopBar,
|
|
844
846
|
_b = _a.title,
|
|
845
847
|
title = _b === void 0 ? 'GeoWeb' : _b;
|
|
846
848
|
return /*#__PURE__*/React__default["default"].createElement(material.Box, {
|
|
847
849
|
component: "header",
|
|
848
850
|
sx: styles$5.header
|
|
849
|
-
}, /*#__PURE__*/React__default["default"].createElement(material.Grid, {
|
|
850
|
-
sx: styles$5.container,
|
|
851
|
-
container: true,
|
|
852
|
-
alignItems: "center"
|
|
853
|
-
}, /*#__PURE__*/React__default["default"].createElement(material.Grid, {
|
|
854
|
-
item: true,
|
|
855
|
-
xs: 6,
|
|
856
|
-
sm: 6
|
|
857
|
-
}, /*#__PURE__*/React__default["default"].createElement(material.Grid, {
|
|
858
|
-
container: true,
|
|
859
|
-
alignItems: "center",
|
|
860
|
-
wrap: "nowrap",
|
|
861
|
-
sx: {
|
|
862
|
-
button: {
|
|
863
|
-
marginLeft: 4,
|
|
864
|
-
color: 'geowebColors.typographyAndIcons.text'
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
851
|
}, /*#__PURE__*/React__default["default"].createElement(material.Box, {
|
|
868
852
|
sx: {
|
|
869
|
-
display: '
|
|
853
|
+
display: 'inherit',
|
|
854
|
+
alignItems: 'center'
|
|
870
855
|
}
|
|
871
856
|
}, /*#__PURE__*/React__default["default"].createElement(theme.GeoWebLogo, {
|
|
872
857
|
style: {
|
|
@@ -874,16 +859,28 @@
|
|
|
874
859
|
top: '-1px',
|
|
875
860
|
right: '-1px'
|
|
876
861
|
}
|
|
877
|
-
})
|
|
862
|
+
}), /*#__PURE__*/React__default["default"].createElement(material.Typography, {
|
|
878
863
|
variant: "h1",
|
|
879
864
|
sx: styles$5.title
|
|
880
|
-
}, title)
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
865
|
+
}, title)), /*#__PURE__*/React__default["default"].createElement(material.Box, {
|
|
866
|
+
sx: {
|
|
867
|
+
flexGrow: 1,
|
|
868
|
+
display: 'flex',
|
|
869
|
+
marginLeft: 4,
|
|
870
|
+
alignItems: 'center'
|
|
871
|
+
}
|
|
872
|
+
}, /*#__PURE__*/React__default["default"].createElement(material.Box, {
|
|
873
|
+
sx: {
|
|
874
|
+
button: {
|
|
875
|
+
color: 'geowebColors.typographyAndIcons.text'
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
}, menu), workspaceTopBar), /*#__PURE__*/React__default["default"].createElement(material.Box, {
|
|
879
|
+
sx: {
|
|
880
|
+
display: 'flex',
|
|
881
|
+
alignItems: 'center'
|
|
882
|
+
}
|
|
883
|
+
}, userMenu));
|
|
887
884
|
};
|
|
888
885
|
|
|
889
886
|
/* *
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/shared",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.15.1",
|
|
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,7 +14,7 @@
|
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^18.2.0",
|
|
16
16
|
"@mui/material": "^5.10.8",
|
|
17
|
-
"@opengeoweb/theme": "4.
|
|
17
|
+
"@opengeoweb/theme": "4.15.1",
|
|
18
18
|
"react-draggable": "^4.4.5",
|
|
19
19
|
"re-resizable": "^6.9.0",
|
|
20
20
|
"@redux-eggs/core": "^2.2.0",
|