@iobroker/adapter-react-v5 3.1.14 → 3.1.17
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/FileBrowser.js +1 -1
- package/Components/FileBrowser.js.map +1 -1
- package/Components/FileViewer.js +0 -1
- package/Components/FileViewer.js.map +1 -1
- package/Components/Image.js +0 -1
- package/Components/Image.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigJsonEditor.js +7 -32
- package/Components/JsonConfigComponent/ConfigJsonEditor.js.map +1 -1
- package/Components/Loader.js +0 -1
- package/Components/Loader.js.map +1 -1
- package/Components/Loaders/PT.js +0 -1
- package/Components/Loaders/PT.js.map +1 -1
- package/Components/Loaders/Vendor.js +0 -1
- package/Components/Loaders/Vendor.js.map +1 -1
- package/Components/ObjectBrowser.js +11 -8
- package/Components/ObjectBrowser.js.map +1 -1
- package/Components/TabContainer.js +0 -1
- package/Components/TabContainer.js.map +1 -1
- package/Components/TabContent.js +0 -1
- package/Components/TabContent.js.map +1 -1
- package/Components/TabHeader.js +0 -4
- package/Components/TabHeader.js.map +1 -1
- package/Components/Utils.js +3 -2
- package/Components/Utils.js.map +1 -1
- package/Dialogs/Confirm.js +0 -1
- package/Dialogs/Confirm.js.map +1 -1
- package/Dialogs/Error.js +0 -1
- package/Dialogs/Error.js.map +1 -1
- package/Dialogs/Message.js +0 -1
- package/Dialogs/Message.js.map +1 -1
- package/Dialogs/TextInput.js +0 -1
- package/Dialogs/TextInput.js.map +1 -1
- package/README.md +10 -0
- package/icons/IconCopy.js +0 -1
- package/icons/IconCopy.js.map +1 -1
- package/package.json +1 -1
|
@@ -49,7 +49,6 @@ var styles = {
|
|
|
49
49
|
};
|
|
50
50
|
/**
|
|
51
51
|
* @typedef {object} TabContainerProps
|
|
52
|
-
* @property {string} [key] The key to identify this component.
|
|
53
52
|
* @property {number} [elevation] The elevation of the tab container.
|
|
54
53
|
* @property {string} [overflow] Set to 'visible' show the overflow.
|
|
55
54
|
* @property {{ [key in keyof styles]: string}} classes The styling class names.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabContainer.js","names":["styles","root","width","height","overflowHidden","overflow","container","TabContainer","classes","props","isNaN","elevation","Utils","clsx","children","React","Component","propTypes","PropTypes","number","string","_export","withStyles"],"sources":["TabContainer.js"],"sourcesContent":["// please do not delete React, as without it other projects could not be compiled: ReferenceError: React is not defined\nimport React from 'react';\nimport withStyles from '@mui/styles/withStyles';\n\nimport PropTypes from 'prop-types';\nimport Utils from './Utils';\n\nimport Grid from '@mui/material/Grid';\nimport Paper from '@mui/material/Paper';\n\nconst styles = {\n root: {\n width: '100%',\n height: '100%'\n },\n overflowHidden: {\n overflow: 'hidden'\n },\n container: {\n height: '100%'\n }\n};\n\n/**\n * @typedef {object} TabContainerProps\n * @property {
|
|
1
|
+
{"version":3,"file":"TabContainer.js","names":["styles","root","width","height","overflowHidden","overflow","container","TabContainer","classes","props","isNaN","elevation","Utils","clsx","children","React","Component","propTypes","PropTypes","number","string","_export","withStyles"],"sources":["TabContainer.js"],"sourcesContent":["// please do not delete React, as without it other projects could not be compiled: ReferenceError: React is not defined\nimport React from 'react';\nimport withStyles from '@mui/styles/withStyles';\n\nimport PropTypes from 'prop-types';\nimport Utils from './Utils';\n\nimport Grid from '@mui/material/Grid';\nimport Paper from '@mui/material/Paper';\n\nconst styles = {\n root: {\n width: '100%',\n height: '100%'\n },\n overflowHidden: {\n overflow: 'hidden'\n },\n container: {\n height: '100%'\n }\n};\n\n/**\n * @typedef {object} TabContainerProps\n * @property {number} [elevation] The elevation of the tab container.\n * @property {string} [overflow] Set to 'visible' show the overflow.\n * @property {{ [key in keyof styles]: string}} classes The styling class names.\n *\n * @extends {React.Component<TabContainerProps>}\n */\nclass TabContainer extends React.Component {\n\n render() {\n const { classes } = this.props;\n\n return <Paper\n elevation={ !isNaN(this.props.elevation) ? this.props.elevation : 1 }\n className={ Utils.clsx(classes.root, {[classes.overflowHidden]: this.props.overflow !== 'visible'}) }\n >\n <Grid\n container\n direction=\"column\"\n wrap=\"nowrap\"\n className={ classes.container }\n >\n { this.props.children }\n </Grid>\n </Paper>;\n }\n}\n\nTabContainer.propTypes = {\n elevation: PropTypes.number,\n overflow: PropTypes.string\n};\n\n/** @type {typeof TabContainer} */\nconst _export = withStyles(styles)(TabContainer);\nexport default _export;"],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA;;AACA;;AAEA;;AACA;;AAEA;;AACA;;;;;;AAEA,IAAMA,MAAM,GAAG;EACXC,IAAI,EAAE;IACFC,KAAK,EAAE,MADL;IAEFC,MAAM,EAAE;EAFN,CADK;EAKXC,cAAc,EAAE;IACZC,QAAQ,EAAE;EADE,CALL;EAQXC,SAAS,EAAE;IACPH,MAAM,EAAE;EADD;AARA,CAAf;AAaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IACMI,Y;;;;;;;;;;;;WAEF,kBAAS;MACL,IAAQC,OAAR,GAAoB,KAAKC,KAAzB,CAAQD,OAAR;MAEA,oBAAO,gCAAC,iBAAD;QACH,SAAS,EAAG,CAACE,KAAK,CAAC,KAAKD,KAAL,CAAWE,SAAZ,CAAN,GAA+B,KAAKF,KAAL,CAAWE,SAA1C,GAAsD,CAD/D;QAEH,SAAS,EAAGC,iBAAA,CAAMC,IAAN,CAAWL,OAAO,CAACP,IAAnB,uCAA2BO,OAAO,CAACJ,cAAnC,EAAoD,KAAKK,KAAL,CAAWJ,QAAX,KAAwB,SAA5E;MAFT,gBAIH,gCAAC,gBAAD;QACI,SAAS,MADb;QAEI,SAAS,EAAC,QAFd;QAGI,IAAI,EAAC,QAHT;QAII,SAAS,EAAGG,OAAO,CAACF;MAJxB,GAMM,KAAKG,KAAL,CAAWK,QANjB,CAJG,CAAP;IAaH;;;EAlBsBC,iBAAA,CAAMC,S;;AAqBjCT,YAAY,CAACU,SAAb,GAAyB;EACrBN,SAAS,EAAEO,qBAAA,CAAUC,MADA;EAErBd,QAAQ,EAAEa,qBAAA,CAAUE;AAFC,CAAzB;AAKA;;AACA,IAAMC,OAAO,GAAG,IAAAC,sBAAA,EAAWtB,MAAX,EAAmBO,YAAnB,CAAhB;;eACec,O"}
|
package/Components/TabContent.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabContent.js","names":["styles","root","height","overflow","overflowAuto","TabContent","classes","props","Utils","clsx","children","React","Component","propTypes","PropTypes","string","_export","withStyles"],"sources":["TabContent.js"],"sourcesContent":["// please do not delete React, as without it other projects could not be compiled: ReferenceError: React is not defined\nimport React from 'react';\nimport withStyles from '@mui/styles/withStyles';\n\nimport PropTypes from 'prop-types';\nimport Utils from './Utils';\n\nimport Grid from '@mui/material/Grid';\n\nconst styles = {\n root: {\n height: '100%',\n overflow: 'hidden'\n },\n overflowAuto: {\n overflow: 'auto'\n }\n};\n\n/**\n * @typedef {object} TabContentProps\n * @property {string} [
|
|
1
|
+
{"version":3,"file":"TabContent.js","names":["styles","root","height","overflow","overflowAuto","TabContent","classes","props","Utils","clsx","children","React","Component","propTypes","PropTypes","string","_export","withStyles"],"sources":["TabContent.js"],"sourcesContent":["// please do not delete React, as without it other projects could not be compiled: ReferenceError: React is not defined\nimport React from 'react';\nimport withStyles from '@mui/styles/withStyles';\n\nimport PropTypes from 'prop-types';\nimport Utils from './Utils';\n\nimport Grid from '@mui/material/Grid';\n\nconst styles = {\n root: {\n height: '100%',\n overflow: 'hidden'\n },\n overflowAuto: {\n overflow: 'auto'\n }\n};\n\n/**\n * @typedef {object} TabContentProps\n * @property {string} [overflow]\n * @property {{ [key in keyof styles]: string}} classes The styling class names.\n *\n * @extends {React.Component<TabContentProps>}\n */\nclass TabContent extends React.Component {\n render() {\n const { classes } = this.props;\n\n return <Grid\n item\n className={ Utils.clsx(classes.root, {[classes.overflowAuto]: this.props.overflow === 'auto'}) }\n >\n { this.props.children }\n </Grid>;\n }\n}\n\nTabContent.propTypes = {\n overflow: PropTypes.string\n};\n\n/** @type {typeof TabContent} */\nconst _export = withStyles(styles)(TabContent);\nexport default _export;"],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA;;AACA;;AAEA;;AACA;;AAEA;;;;;;AAEA,IAAMA,MAAM,GAAG;EACXC,IAAI,EAAE;IACFC,MAAM,EAAE,MADN;IAEFC,QAAQ,EAAE;EAFR,CADK;EAKXC,YAAY,EAAE;IACVD,QAAQ,EAAE;EADA;AALH,CAAf;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;;IACME,U;;;;;;;;;;;;WACF,kBAAS;MACL,IAAQC,OAAR,GAAoB,KAAKC,KAAzB,CAAQD,OAAR;MAEA,oBAAO,gCAAC,gBAAD;QACH,IAAI,MADD;QAEH,SAAS,EAAGE,iBAAA,CAAMC,IAAN,CAAWH,OAAO,CAACL,IAAnB,uCAA2BK,OAAO,CAACF,YAAnC,EAAkD,KAAKG,KAAL,CAAWJ,QAAX,KAAwB,MAA1E;MAFT,GAID,KAAKI,KAAL,CAAWG,QAJV,CAAP;IAMH;;;EAVoBC,iBAAA,CAAMC,S;;AAa/BP,UAAU,CAACQ,SAAX,GAAuB;EACnBV,QAAQ,EAAEW,qBAAA,CAAUC;AADD,CAAvB;AAIA;;AACA,IAAMC,OAAO,GAAG,IAAAC,sBAAA,EAAWjB,MAAX,EAAmBK,UAAnB,CAAhB;;eACeW,O"}
|
package/Components/TabHeader.js
CHANGED
|
@@ -19,8 +19,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
19
19
|
|
|
20
20
|
var _react = _interopRequireDefault(require("react"));
|
|
21
21
|
|
|
22
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
23
|
-
|
|
24
22
|
var _Grid = _interopRequireDefault(require("@mui/material/Grid"));
|
|
25
23
|
|
|
26
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
@@ -29,7 +27,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
29
27
|
|
|
30
28
|
/**
|
|
31
29
|
* @typedef {object} TabHeaderProps
|
|
32
|
-
* @property {string} [key] The key to identify this component.
|
|
33
30
|
*
|
|
34
31
|
* @extends {React.Component<TabHeaderProps>}
|
|
35
32
|
*/
|
|
@@ -56,7 +53,6 @@ var TabHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
56
53
|
return TabHeader;
|
|
57
54
|
}(_react["default"].Component);
|
|
58
55
|
|
|
59
|
-
TabHeader.propTypes = {};
|
|
60
56
|
var _default = TabHeader;
|
|
61
57
|
exports["default"] = _default;
|
|
62
58
|
//# sourceMappingURL=TabHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabHeader.js","names":["TabHeader","props","children","React","Component"
|
|
1
|
+
{"version":3,"file":"TabHeader.js","names":["TabHeader","props","children","React","Component"],"sources":["TabHeader.js"],"sourcesContent":["// please do not delete React, as without it other projects could not be compiled: ReferenceError: React is not defined\nimport React from 'react';\n\nimport Grid from '@mui/material/Grid';\n\n/**\n * @typedef {object} TabHeaderProps\n *\n * @extends {React.Component<TabHeaderProps>}\n */\nclass TabHeader extends React.Component {\n render() {\n return <Grid\n item\n container\n alignItems=\"center\"\n >\n { this.props.children }\n </Grid>;\n }\n}\n\nexport default TabHeader;"],"mappings":";;;;;;;;;;;;;;;;;;;AACA;;AAEA;;;;;;AAEA;AACA;AACA;AACA;AACA;IACMA,S;;;;;;;;;;;;WACF,kBAAS;MACL,oBAAO,gCAAC,gBAAD;QACH,IAAI,MADD;QAEH,SAAS,MAFN;QAGH,UAAU,EAAC;MAHR,GAKD,KAAKC,KAAL,CAAWC,QALV,CAAP;IAOH;;;EATmBC,iBAAA,CAAMC,S;;eAYfJ,S"}
|
package/Components/Utils.js
CHANGED
|
@@ -179,12 +179,13 @@ var Utils = /*#__PURE__*/function () {
|
|
|
179
179
|
* @param {{ name: any; } | ioBroker.Languages | null } settings or language
|
|
180
180
|
* @param {{ language?: ioBroker.Languages; } } options
|
|
181
181
|
* @param {boolean} [isDesc] Set to true to get the description.
|
|
182
|
+
* @param {boolean} [noTrim] Allow to use spaces in name (by edit)
|
|
182
183
|
* @returns {string}
|
|
183
184
|
*/
|
|
184
185
|
|
|
185
186
|
}, {
|
|
186
187
|
key: "getObjectNameFromObj",
|
|
187
|
-
value: function getObjectNameFromObj(obj, settings, options, isDesc) {
|
|
188
|
+
value: function getObjectNameFromObj(obj, settings, options, isDesc, noTrim) {
|
|
188
189
|
var item = obj;
|
|
189
190
|
var text = obj && obj._id || '';
|
|
190
191
|
var attr = isDesc ? 'desc' : 'name';
|
|
@@ -222,7 +223,7 @@ var Utils = /*#__PURE__*/function () {
|
|
|
222
223
|
}
|
|
223
224
|
}
|
|
224
225
|
|
|
225
|
-
return text.trim();
|
|
226
|
+
return noTrim ? text : text.trim();
|
|
226
227
|
}
|
|
227
228
|
/**
|
|
228
229
|
* @param {ioBroker.PartialObject | ioBroker.ObjectCommon} obj
|