@opengeoweb/shared 12.8.0 → 12.10.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
|
@@ -4223,7 +4223,7 @@ var tooltipContainerStyles = function tooltipContainerStyles(theme, isEnabled, h
|
|
|
4223
4223
|
'& .MuiOutlinedInput-notchedOutline': {
|
|
4224
4224
|
borderColor: 'transparent!important'
|
|
4225
4225
|
},
|
|
4226
|
-
'&:hover': {
|
|
4226
|
+
'&:hover:not(.Mui-disabled)': {
|
|
4227
4227
|
backgroundColor: theme.palette.geowebColors.buttons.tool.mouseOver.fill,
|
|
4228
4228
|
borderRadius: 0
|
|
4229
4229
|
},
|
|
@@ -4240,7 +4240,7 @@ var tooltipContainerStyles = function tooltipContainerStyles(theme, isEnabled, h
|
|
|
4240
4240
|
paddingLeft: '8px!important'
|
|
4241
4241
|
}
|
|
4242
4242
|
}, theme.palette.geowebColors.tooltips.tooltipSelect.select, hasBackgroundColor && {
|
|
4243
|
-
'&:hover': {
|
|
4243
|
+
'&:hover:not(.Mui-disabled)': {
|
|
4244
4244
|
backgroundColor: theme.palette.geowebColors.buttons.tool.mouseOver.fill,
|
|
4245
4245
|
borderRadius: 0
|
|
4246
4246
|
},
|
|
@@ -4254,7 +4254,7 @@ var tooltipContainerStyles = function tooltipContainerStyles(theme, isEnabled, h
|
|
|
4254
4254
|
borderRadius: 0,
|
|
4255
4255
|
backgroundColor: theme.palette.geowebColors.buttons.tool.mouseOver.fill
|
|
4256
4256
|
},
|
|
4257
|
-
'&:hover&.MuiButton-root': {
|
|
4257
|
+
'&:hover:not(.Mui-disabled)&.MuiButton-root': {
|
|
4258
4258
|
backgroundColor: theme.palette.geowebColors.buttons.tool.mouseOver.fill
|
|
4259
4259
|
},
|
|
4260
4260
|
'&:focus&.MuiButton-root': {
|
|
@@ -4974,6 +4974,7 @@ var FilterChip = function FilterChip(_ref) {
|
|
|
4974
4974
|
_ref$handleClick = _ref.handleClick,
|
|
4975
4975
|
handleClick = _ref$handleClick === void 0 ? function () {} : _ref$handleClick,
|
|
4976
4976
|
onClick = _ref.onClick,
|
|
4977
|
+
onClickIcon = _ref.onClickIcon,
|
|
4977
4978
|
actionIcon = _ref.actionIcon,
|
|
4978
4979
|
_ref$size = _ref.size,
|
|
4979
4980
|
size = _ref$size === void 0 ? 'small' : _ref$size;
|
|
@@ -4982,6 +4983,9 @@ var FilterChip = function FilterChip(_ref) {
|
|
|
4982
4983
|
var clickHandler = function clickHandler() {
|
|
4983
4984
|
return onClick ? onClick(chipRef.current) : handleClick(id, isSelected);
|
|
4984
4985
|
};
|
|
4986
|
+
var clickIconHandler = function clickIconHandler() {
|
|
4987
|
+
return onClickIcon == null ? void 0 : onClickIcon(chipRef.current);
|
|
4988
|
+
};
|
|
4985
4989
|
return jsx(Chip, {
|
|
4986
4990
|
ref: chipRef,
|
|
4987
4991
|
size: size,
|
|
@@ -4991,7 +4995,7 @@ var FilterChip = function FilterChip(_ref) {
|
|
|
4991
4995
|
variant: isSelected ? 'filled' : 'outlined',
|
|
4992
4996
|
color: isSelected ? 'secondary' : 'default',
|
|
4993
4997
|
sx: {
|
|
4994
|
-
borderColor:
|
|
4998
|
+
borderColor: isDisabled ? 'none' : theme.palette.geowebColors.buttons.tertiary["default"].borderColor,
|
|
4995
4999
|
padding: '0px 4px',
|
|
4996
5000
|
'& .MuiSvgIcon-root, .MuiChip-deleteIcon': {
|
|
4997
5001
|
fill: isSelected ? theme.palette.geowebColors.buttons.secondary.active.color : theme.palette.geowebColors.buttons.flat["default"].color,
|
|
@@ -5002,11 +5006,14 @@ var FilterChip = function FilterChip(_ref) {
|
|
|
5002
5006
|
},
|
|
5003
5007
|
'&.MuiChip-sizeMedium > .MuiChip-label': {
|
|
5004
5008
|
overflow: 'visible'
|
|
5009
|
+
},
|
|
5010
|
+
'&.Mui-disabled': {
|
|
5011
|
+
borderColor: 'transparent'
|
|
5005
5012
|
}
|
|
5006
5013
|
},
|
|
5007
5014
|
onClick: clickHandler,
|
|
5008
5015
|
deleteIcon: actionIcon,
|
|
5009
|
-
onDelete:
|
|
5016
|
+
onDelete: onClickIcon ? clickIconHandler : undefined
|
|
5010
5017
|
});
|
|
5011
5018
|
};
|
|
5012
5019
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/shared",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.10.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": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/theme": "12.
|
|
11
|
+
"@opengeoweb/theme": "12.10.0",
|
|
12
12
|
"react-draggable": "^4.4.6",
|
|
13
13
|
"re-resizable": "^6.9.11",
|
|
14
14
|
"lodash": "^4.17.21",
|
|
@@ -7,6 +7,7 @@ export interface FilterChipProps {
|
|
|
7
7
|
handleClick?: (label: string, isSelected?: boolean) => void;
|
|
8
8
|
actionIcon?: React.ReactElement;
|
|
9
9
|
onClick?: (ref: HTMLElement | null) => void;
|
|
10
|
+
onClickIcon?: (ref: HTMLElement | null) => void;
|
|
10
11
|
size?: 'small' | 'medium';
|
|
11
12
|
}
|
|
12
13
|
declare const FilterChip: React.FC<FilterChipProps>;
|
package/src/lib/types/types.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export interface ConfigType {
|
|
|
37
37
|
GW_FEATURE_INITIALIZE_SENTRY?: boolean;
|
|
38
38
|
GW_FEATURE_ENABLE_SPECIAL_THEMES?: boolean;
|
|
39
39
|
GW_FEATURE_TAF_AUTOTAF_ENABLED?: boolean;
|
|
40
|
+
GW_WARNINGS_MARITIME_WARNINGS?: boolean;
|
|
40
41
|
GW_LANGUAGE?: string;
|
|
41
42
|
}
|
|
42
43
|
export interface SoundingsCollection {
|