@opengeoweb/shared 8.2.0 → 8.3.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { useRef, useContext } from 'react';
|
|
3
|
-
import { Box, Typography, Tooltip, IconButton, Dialog, DialogTitle, DialogContent, DialogActions, Button, CircularProgress, Alert, AlertTitle, useTheme, Drawer, Link, Avatar as Avatar$1, Paper, ClickAwayListener, MenuList, MenuItem, Grid, RadioGroup, FormControlLabel, Radio, List, ListItem, Tabs, Tab, Backdrop, Slider, ToggleButton, Menu, ListSubheader, ListItemIcon, Select, Accordion, AccordionSummary, AccordionDetails, FormLabel, Switch } from '@mui/material';
|
|
3
|
+
import { Box, Typography, Tooltip, IconButton, Dialog, DialogTitle, DialogContent, DialogActions, Button, CircularProgress, Alert, AlertTitle, useTheme, Drawer, Link, Avatar as Avatar$1, Paper, ClickAwayListener, MenuList, MenuItem, Grid, RadioGroup, FormControlLabel, Radio, List, ListItem, Tabs, Tab, Backdrop, Slider, ToggleButton, Menu, ListSubheader, ListItemText, ListItemIcon, Select, Accordion, AccordionSummary, AccordionDetails, FormLabel, Switch } from '@mui/material';
|
|
4
4
|
import { Close, Exclamation, Success, Info, ChevronRight, GeoWebLogo, HamburgerMenu, Resize, useThemeContext, DragHandle, ArrowLeft, ArrowRight, KeyOption, ArrowUp, ArrowDown, KeyCommand, Options, ChevronDown } from '@opengeoweb/theme';
|
|
5
5
|
import require$$2, { flushSync } from 'react-dom';
|
|
6
6
|
import { parseISO, parse, format, isEqual, add as add$1, sub as sub$1, differenceInMinutes as differenceInMinutes$1, differenceInHours as differenceInHours$1, isBefore as isBefore$1, isAfter as isAfter$1, isValid as isValid$1, getUnixTime, set as set$1 } from 'date-fns';
|
|
@@ -22403,7 +22403,8 @@ var ToolFooter = function ToolFooter() {
|
|
|
22403
22403
|
textAlign: 'right',
|
|
22404
22404
|
height: 18,
|
|
22405
22405
|
zIndex: 1
|
|
22406
|
-
}
|
|
22406
|
+
},
|
|
22407
|
+
role: "contentinfo"
|
|
22407
22408
|
});
|
|
22408
22409
|
};
|
|
22409
22410
|
|
|
@@ -22500,7 +22501,9 @@ var ToolHeader = function ToolHeader(_ref) {
|
|
|
22500
22501
|
backgroundColor: 'geowebColors.background.surface',
|
|
22501
22502
|
zIndex: 2,
|
|
22502
22503
|
cursor: isDraggable ? 'move' : null
|
|
22503
|
-
}
|
|
22504
|
+
},
|
|
22505
|
+
role: "heading",
|
|
22506
|
+
"aria-label": "toolheader"
|
|
22504
22507
|
}, /*#__PURE__*/React__default.createElement(Grid, {
|
|
22505
22508
|
container: true,
|
|
22506
22509
|
alignItems: "center",
|
|
@@ -22539,7 +22542,8 @@ var ToolHeader = function ToolHeader(_ref) {
|
|
|
22539
22542
|
sx: {
|
|
22540
22543
|
fontSize: styles.fontSize,
|
|
22541
22544
|
fontWeight: styles.fontWeight
|
|
22542
|
-
}
|
|
22545
|
+
},
|
|
22546
|
+
role: "heading"
|
|
22543
22547
|
}, title), size === 'xxs' && /*#__PURE__*/React__default.createElement(CustomIconButton, {
|
|
22544
22548
|
"data-testid": "dragBtn-xxs",
|
|
22545
22549
|
disableRipple: true,
|
|
@@ -22958,7 +22962,8 @@ var DraggableComponent = function DraggableComponent(_a) {
|
|
|
22958
22962
|
}
|
|
22959
22963
|
}),
|
|
22960
22964
|
ref: nodeRef,
|
|
22961
|
-
className: "toolContainerDraggable"
|
|
22965
|
+
className: "toolContainerDraggable",
|
|
22966
|
+
role: "dialog"
|
|
22962
22967
|
}, /*#__PURE__*/React__default.createElement(ResizeComponent, Object.assign({}, props, {
|
|
22963
22968
|
size: size,
|
|
22964
22969
|
setSize: setSize,
|
|
@@ -23517,7 +23522,16 @@ var CustomSlider = function CustomSlider(_a) {
|
|
|
23517
23522
|
sx: sliderStyle,
|
|
23518
23523
|
ref: element,
|
|
23519
23524
|
value: value,
|
|
23520
|
-
orientation: orientation
|
|
23525
|
+
orientation: orientation,
|
|
23526
|
+
role: "slider",
|
|
23527
|
+
slotProps: {
|
|
23528
|
+
thumb: {
|
|
23529
|
+
role: 'button'
|
|
23530
|
+
},
|
|
23531
|
+
mark: {
|
|
23532
|
+
role: 'listitem'
|
|
23533
|
+
}
|
|
23534
|
+
}
|
|
23521
23535
|
}, props));
|
|
23522
23536
|
};
|
|
23523
23537
|
|
|
@@ -23675,14 +23689,31 @@ var ToggleMenu = function ToggleMenu(_ref) {
|
|
|
23675
23689
|
}, menuTitle)), menuItems && menuItems.length ? menuItems.map(function (menuItem) {
|
|
23676
23690
|
var text = menuItem.text,
|
|
23677
23691
|
icon = menuItem.icon,
|
|
23678
|
-
action = menuItem.action
|
|
23692
|
+
action = menuItem.action,
|
|
23693
|
+
isDisabled = menuItem.isDisabled;
|
|
23679
23694
|
return /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
23680
23695
|
key: text,
|
|
23681
23696
|
onClick: function onClick(event) {
|
|
23682
23697
|
action(event);
|
|
23683
23698
|
handleClose(event);
|
|
23699
|
+
},
|
|
23700
|
+
disabled: isDisabled
|
|
23701
|
+
}, /*#__PURE__*/React$1.createElement(Grid, {
|
|
23702
|
+
container: true,
|
|
23703
|
+
spacing: 2,
|
|
23704
|
+
justifyContent: "space-between"
|
|
23705
|
+
}, /*#__PURE__*/React$1.createElement(Grid, {
|
|
23706
|
+
item: true
|
|
23707
|
+
}, /*#__PURE__*/React$1.createElement(ListItemText, null, text)), icon && /*#__PURE__*/React$1.createElement(Grid, {
|
|
23708
|
+
item: true,
|
|
23709
|
+
alignItems: "flex-end"
|
|
23710
|
+
}, /*#__PURE__*/React$1.createElement(ListItemIcon, {
|
|
23711
|
+
sx: {
|
|
23712
|
+
'&.MuiListItemIcon-root': {
|
|
23713
|
+
minWidth: '24px'
|
|
23714
|
+
}
|
|
23684
23715
|
}
|
|
23685
|
-
}, icon
|
|
23716
|
+
}, icon))));
|
|
23686
23717
|
}) : /*#__PURE__*/React$1.createElement("div", null) // Needed to make the menu work without any menuItems
|
|
23687
23718
|
, children));
|
|
23688
23719
|
};
|
|
@@ -24973,7 +25004,8 @@ var SearchHighlight = function SearchHighlight(_ref) {
|
|
|
24973
25004
|
})) {
|
|
24974
25005
|
return /*#__PURE__*/React__default.createElement("mark", {
|
|
24975
25006
|
key: key,
|
|
24976
|
-
style: highlightStyle
|
|
25007
|
+
style: highlightStyle,
|
|
25008
|
+
"data-testid": "mark"
|
|
24977
25009
|
}, part);
|
|
24978
25010
|
}
|
|
24979
25011
|
return /*#__PURE__*/React__default.createElement("span", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/shared",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0",
|
|
4
4
|
"description": "GeoWeb shared library with shared components and utils for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"@mui/material": "5.12.0",
|
|
16
|
-
"@opengeoweb/theme": "8.
|
|
16
|
+
"@opengeoweb/theme": "8.3.0",
|
|
17
17
|
"@redux-eggs/core": "2.2.0",
|
|
18
18
|
"@reduxjs/toolkit": "1.9.5",
|
|
19
19
|
"axios": "1.5.0",
|
|
@@ -3,10 +3,6 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const AlertBannersGWTheme: {
|
|
7
|
-
(): React.ReactElement;
|
|
8
|
-
storyName: string;
|
|
9
|
-
};
|
|
10
6
|
export declare const AlertBannersLight: {
|
|
11
7
|
(): React.ReactElement;
|
|
12
8
|
storyName: string;
|