@iobroker/adapter-react-v5 6.0.7 → 6.0.8

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.
@@ -2106,7 +2106,7 @@ class IconSelector extends react_1.Component {
2106
2106
  react_1.default.createElement(material_1.DialogContent, null,
2107
2107
  react_1.default.createElement("div", { style: { width: '100%', textAlign: 'center' } }, this.state.icons && this.state.icons.map((icon, i) => {
2108
2108
  if (!this.state.filter || (this.state.names[i] && this.state.names[i].toLowerCase().includes(this.state.filter))) {
2109
- return react_1.default.createElement(material_1.Tooltip, { title: this.state.names[i] || '', key: i },
2109
+ return react_1.default.createElement(material_1.Tooltip, { title: this.state.names[i] || '', key: i, componentsProps: { popper: { sx: { pointerEvents: 'none' } } } },
2110
2110
  react_1.default.createElement(material_1.IconButton, { onClick: () => this.setState({ opened: false }, () => {
2111
2111
  const onApply = this.props.onSelect || this.props.onChange;
2112
2112
  if (onApply) {
@@ -188,6 +188,7 @@ interface ObjectBrowserEditObjectProps {
188
188
  roleArray: string[];
189
189
  expertMode: boolean;
190
190
  themeType: ThemeType;
191
+ theme: IobTheme;
191
192
  aliasTab: boolean;
192
193
  onClose: (obj?: ioBroker.AnyObject) => void;
193
194
  dialogName?: string;
@@ -473,7 +473,7 @@ const styles = {
473
473
  minWidth: 40,
474
474
  },
475
475
  cellButtonsButtonAlone: {
476
- ml: `${SMALL_BUTTON_SIZE + 20}px`,
476
+ ml: `${SMALL_BUTTON_SIZE + 6}px`,
477
477
  pt: 0,
478
478
  mt: '-2px',
479
479
  },
@@ -3663,7 +3663,7 @@ class ObjectBrowserClass extends react_1.Component {
3663
3663
  ? Number(aclSystemConfig).toString(16)
3664
3664
  : Number(acl).toString(16)))) :
3665
3665
  react_1.default.createElement("div", { key: "aclEmpty", style: styles.cellButtonMinWidth }),
3666
- showEdit ? react_1.default.createElement(material_1.IconButton, { key: "edit", sx: Object.assign(Object.assign({}, styles.cellButtonsButton), styles.cellButtonMinWidth), size: "small", "aria-label": "edit", title: this.texts.editObject, onClick: () => {
3666
+ showEdit ? react_1.default.createElement(material_1.IconButton, { key: "edit", sx: Object.assign({ marginRight: '2px' }, styles.cellButtonsButton), size: "small", "aria-label": "edit", title: this.texts.editObject, onClick: () => {
3667
3667
  this.localStorage.setItem(`${this.props.dialogName || 'App'}.objectSelected`, id);
3668
3668
  this.setState({ editObjectDialog: id, editObjectAlias: false });
3669
3669
  } },
@@ -4918,7 +4918,7 @@ class ObjectBrowserClass extends react_1.Component {
4918
4918
  return null;
4919
4919
  }
4920
4920
  const ObjectBrowserEditObject = this.props.objectBrowserEditObject;
4921
- return react_1.default.createElement(ObjectBrowserEditObject, { key: this.state.editObjectDialog, obj: this.objects[this.state.editObjectDialog], roleArray: this.info.roles, objects: this.objects, dateFormat: this.props.dateFormat || this.systemConfig.common.dateFormat, isFloatComma: this.props.isFloatComma === undefined ? this.systemConfig.common.isFloatComma : this.props.isFloatComma, themeType: this.props.themeType, socket: this.props.socket, dialogName: this.props.dialogName, aliasTab: this.state.editObjectAlias, t: this.props.t, expertMode: !!this.state.filter.expertMode, onNewObject: (obj) => this.props.socket
4921
+ return react_1.default.createElement(ObjectBrowserEditObject, { key: this.state.editObjectDialog, obj: this.objects[this.state.editObjectDialog], roleArray: this.info.roles, objects: this.objects, dateFormat: this.props.dateFormat || this.systemConfig.common.dateFormat, isFloatComma: this.props.isFloatComma === undefined ? this.systemConfig.common.isFloatComma : this.props.isFloatComma, themeType: this.props.themeType, theme: this.props.theme, socket: this.props.socket, dialogName: this.props.dialogName, aliasTab: this.state.editObjectAlias, t: this.props.t, expertMode: !!this.state.filter.expertMode, onNewObject: (obj) => this.props.socket
4922
4922
  .setObject(obj._id, obj)
4923
4923
  .then(() => this.setState({ editObjectDialog: obj._id, editObjectAlias: false }, () => this.onSelect(obj._id)))
4924
4924
  .catch(e => this.showError(`Cannot write object: ${e}`)), onClose: (obj) => {
@@ -9,7 +9,7 @@ const material_1 = require("@mui/material");
9
9
  const icons_material_1 = require("@mui/icons-material");
10
10
  function ToggleThemeMenu({ themeName, toggleTheme, t, className, style, size, }) {
11
11
  return react_1.default.createElement("div", { className: className || undefined, style: style || undefined },
12
- react_1.default.createElement(material_1.Tooltip, { title: t('ra_Change color theme') },
12
+ react_1.default.createElement(material_1.Tooltip, { title: t('ra_Change color theme'), componentsProps: { popper: { sx: { pointerEvents: 'none' } } } },
13
13
  react_1.default.createElement(material_1.IconButton, { onClick: () => toggleTheme(), size: size || 'medium' },
14
14
  themeName === 'dark' && react_1.default.createElement(icons_material_1.Brightness4, { className: className }),
15
15
  themeName === 'blue' && react_1.default.createElement(icons_material_1.Brightness5, { className: className }),
@@ -491,14 +491,14 @@ class UploadImage extends react_1.Component {
491
491
  i18n_1.default.t('ra_Place your files here or click here to open the browse dialog')))
492
492
  :
493
493
  removeIconFunc && !cropHandler && react_1.default.createElement("div", { style: styles.buttonRemoveWrapper },
494
- react_1.default.createElement(material_1.Tooltip, { title: i18n_1.default.t('ra_Clear') },
494
+ react_1.default.createElement(material_1.Tooltip, { title: i18n_1.default.t('ra_Clear'), componentsProps: { popper: { sx: { pointerEvents: 'none' } } } },
495
495
  react_1.default.createElement(material_1.IconButton, { size: "large", onClick: e => {
496
496
  removeIconFunc && removeIconFunc();
497
497
  e.stopPropagation();
498
498
  } },
499
499
  react_1.default.createElement(icons_material_1.Close, null)))),
500
500
  icon && crop && react_1.default.createElement("div", { style: styles.buttonCropWrapper },
501
- react_1.default.createElement(material_1.Tooltip, { title: i18n_1.default.t('ra_Crop') },
501
+ react_1.default.createElement(material_1.Tooltip, { title: i18n_1.default.t('ra_Crop'), componentsProps: { popper: { sx: { pointerEvents: 'none' } } } },
502
502
  react_1.default.createElement(material_1.IconButton, { size: "large", onClick: e => {
503
503
  if (!cropHandler) {
504
504
  this.setState({ cropHandler: true });
package/README.md CHANGED
@@ -771,8 +771,9 @@ The best practice is to replace `padding` with `p` and `margin` with `m`, so you
771
771
  -->
772
772
 
773
773
  ## Changelog
774
- ### 6.0.7 (2024-06-26)
774
+ ### 6.0.8 (2024-06-26)
775
775
  * (bluefox) Corrected types of the select ID dialog
776
+ * (bluefox) Made the tooltips neutral to the pointer events
776
777
 
777
778
  ### 6.0.6 (2024-06-24)
778
779
  * (bluefox) Synchronised with admin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/adapter-react-v5",
3
- "version": "6.0.7",
3
+ "version": "6.0.8",
4
4
  "description": "React classes to develop admin interfaces for ioBroker with react.",
5
5
  "author": {
6
6
  "name": "Denis Haev (bluefox)",