@iobroker/adapter-react-v5 6.0.7 → 6.0.9
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/Components/Icon.js
CHANGED
|
@@ -97,7 +97,7 @@ function getSelectIdIcon(obj, imagePrefix) {
|
|
|
97
97
|
}
|
|
98
98
|
return src || null;
|
|
99
99
|
}
|
|
100
|
-
const REMOTE_SERVER = window.location.hostname.
|
|
100
|
+
const REMOTE_SERVER = window.location.hostname.endsWith('iobroker.in');
|
|
101
101
|
const REMOTE_PREFIX = window.location.pathname.substring(0, window.location.pathname.lastIndexOf('/') + 1);
|
|
102
102
|
function Icon(props) {
|
|
103
103
|
var _a, _b, _c;
|
|
@@ -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) {
|
|
@@ -473,7 +473,7 @@ const styles = {
|
|
|
473
473
|
minWidth: 40,
|
|
474
474
|
},
|
|
475
475
|
cellButtonsButtonAlone: {
|
|
476
|
-
ml: `${SMALL_BUTTON_SIZE +
|
|
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(
|
|
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,12 @@ 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.
|
|
774
|
+
### 6.0.9 (2024-06-26)
|
|
775
|
+
* (bluefox) Corrected Icons
|
|
776
|
+
|
|
777
|
+
### 6.0.8 (2024-06-26)
|
|
775
778
|
* (bluefox) Corrected types of the select ID dialog
|
|
779
|
+
* (bluefox) Made the tooltips neutral to the pointer events
|
|
776
780
|
|
|
777
781
|
### 6.0.6 (2024-06-24)
|
|
778
782
|
* (bluefox) Synchronised with admin
|