@iobroker/adapter-react-v5 4.11.6 → 4.12.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/Components/ColorPicker.js +5 -7
- package/Components/ColorPicker.js.map +1 -1
- package/Components/ComplexCron.js +2 -3
- package/Components/ComplexCron.js.map +1 -1
- package/Components/FileBrowser.js +2 -1
- package/Components/FileViewer.js +2 -1
- package/Components/Icon.d.ts +2 -1
- package/Components/Icon.js +12 -1
- package/Components/Image.d.ts +1 -0
- package/Components/Image.js +8 -0
- package/Components/Logo.js +2 -1
- package/Components/ObjectBrowser.js +17 -19
- package/Components/ObjectBrowser.js.map +1 -1
- package/Components/TableResize.js +7 -9
- package/Components/TableResize.js.map +1 -1
- package/Components/TreeTable.js +2 -3
- package/Components/TreeTable.js.map +1 -1
- package/Components/UploadImage.js +2 -1
- package/LegacyConnection.js +1 -2
- package/LegacyConnection.js.map +1 -1
- package/README.md +3 -0
- package/package.json +1 -1
|
@@ -35,6 +35,7 @@ const icons_material_1 = require("@mui/icons-material");
|
|
|
35
35
|
const fa_1 = require("react-icons/fa");
|
|
36
36
|
const Utils_1 = __importDefault(require("./Utils"));
|
|
37
37
|
const i18n_1 = __importDefault(require("../i18n"));
|
|
38
|
+
const Icon_1 = __importDefault(require("./Icon"));
|
|
38
39
|
// import 'cropperjs/dist/cropper.css';
|
|
39
40
|
const cropperStyles = `
|
|
40
41
|
/*!
|
|
@@ -524,7 +525,7 @@ class UploadImage extends react_1.Component {
|
|
|
524
525
|
}
|
|
525
526
|
}) }, i18n_1.default.t('ra_Save')),
|
|
526
527
|
react_1.default.createElement(material_1.MenuItem, { onClick: () => this.setState({ anchorEl: null, cropHandler: false }) }, i18n_1.default.t('ra_Close')))),
|
|
527
|
-
icon && !cropHandler ? react_1.default.createElement(
|
|
528
|
+
icon && !cropHandler ? react_1.default.createElement(Icon_1.default, { src: icon, className: classes.image, alt: "icon" }) : null,
|
|
528
529
|
icon && crop && cropHandler ? react_1.default.createElement(react_cropper_1.Cropper, { ref: this.cropperRef, className: classes.image, src: icon, initialAspectRatio: 1, viewMode: 1, guides: false, minCropBoxHeight: 10, minCropBoxWidth: 10, background: false, checkOrientation: false }) : null)));
|
|
529
530
|
}
|
|
530
531
|
}
|
package/LegacyConnection.js
CHANGED
|
@@ -169,7 +169,7 @@ var Connection = /*#__PURE__*/function () {
|
|
|
169
169
|
* Checks if this connection is running in a web adapter and not in an admin.
|
|
170
170
|
* @returns {boolean} True if running in a web adapter or in a socketio adapter.
|
|
171
171
|
*/
|
|
172
|
-
(0, _createClass2["default"])(Connection, [{
|
|
172
|
+
return (0, _createClass2["default"])(Connection, [{
|
|
173
173
|
key: "startSocket",
|
|
174
174
|
value:
|
|
175
175
|
/**
|
|
@@ -3611,7 +3611,6 @@ var Connection = /*#__PURE__*/function () {
|
|
|
3611
3611
|
return window.adapterName === 'material' || window.adapterName === 'vis' || window.adapterName && window.adapterName.startsWith('vis-') || window.adapterName === 'echarts-show' || window.socketUrl !== undefined;
|
|
3612
3612
|
}
|
|
3613
3613
|
}]);
|
|
3614
|
-
return Connection;
|
|
3615
3614
|
}();
|
|
3616
3615
|
Connection.Connection = {
|
|
3617
3616
|
onLog: _propTypes["default"].func,
|