@iobroker/adapter-react-v5 3.1.15 → 3.1.18
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 +25 -12
- 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/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/i18n/de.json +2 -1
- package/i18n/en.json +2 -1
- package/i18n/es.json +2 -1
- package/i18n/fr.json +2 -1
- package/i18n/it.json +2 -1
- package/i18n/nl.json +2 -1
- package/i18n/pl.json +2 -1
- package/i18n/pt.json +2 -1
- package/i18n/ru.json +2 -1
- package/i18n/zh-cn.json +2 -1
- 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/Dialogs/Confirm.js
CHANGED
|
@@ -59,7 +59,6 @@ var styles = {
|
|
|
59
59
|
};
|
|
60
60
|
/**
|
|
61
61
|
* @typedef {object} DialogConfirmProps
|
|
62
|
-
* @property {string} [key] The key to identify this component.
|
|
63
62
|
* @property {string} [title] The dialog title; default: Are you sure? (translated)
|
|
64
63
|
* @property {string} text The dialog text.
|
|
65
64
|
* @property {string} [ok] The ok button text; default: OK (translated)
|
package/Dialogs/Confirm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Confirm.js","names":["styles","suppress","fontSize","suppressRoot","marginTop","DialogConfirm","props","dialogName","suppressQuestionMinutes","Error","parseInt","window","_localStorage","localStorage","getItem","Date","now","removeItem","state","setItem","onClose","setTimeout","event","reason","handleCancel","title","I18n","t","icon","text","label","classes","root","setState","suppressText","handleOk","ok","cancel","React","Component","propTypes","PropTypes","func","isRequired","string","object","number","_export","withStyles"],"sources":["Confirm.js"],"sourcesContent":["/**\n * Copyright 2019-2022 bluefox <dogafox@gmail.com>\n *\n * MIT License\n *\n **/\n\n// please do not delete React, as without it other projects could not be compiled: ReferenceError: React is not defined\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport withStyles from '@mui/styles/withStyles';\n\nimport Button from '@mui/material/Button';\nimport Dialog from '@mui/material/Dialog';\nimport DialogActions from '@mui/material/DialogActions';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogContentText from '@mui/material/DialogContentText';\nimport DialogTitle from '@mui/material/DialogTitle';\nimport FormControlLabel from '@mui/material/FormControlLabel';\nimport Checkbox from '@mui/material/Checkbox';\n\nimport IconCheck from '@mui/icons-material/Check';\nimport IconClose from '@mui/icons-material/Close';\n\nimport I18n from '../i18n';\n\nconst styles = {\n suppress: {\n fontSize: 12,\n },\n suppressRoot: {\n marginTop: 16\n }\n};\n\n/**\n * @typedef {object} DialogConfirmProps\n * @property {string} [
|
|
1
|
+
{"version":3,"file":"Confirm.js","names":["styles","suppress","fontSize","suppressRoot","marginTop","DialogConfirm","props","dialogName","suppressQuestionMinutes","Error","parseInt","window","_localStorage","localStorage","getItem","Date","now","removeItem","state","setItem","onClose","setTimeout","event","reason","handleCancel","title","I18n","t","icon","text","label","classes","root","setState","suppressText","handleOk","ok","cancel","React","Component","propTypes","PropTypes","func","isRequired","string","object","number","_export","withStyles"],"sources":["Confirm.js"],"sourcesContent":["/**\n * Copyright 2019-2022 bluefox <dogafox@gmail.com>\n *\n * MIT License\n *\n **/\n\n// please do not delete React, as without it other projects could not be compiled: ReferenceError: React is not defined\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport withStyles from '@mui/styles/withStyles';\n\nimport Button from '@mui/material/Button';\nimport Dialog from '@mui/material/Dialog';\nimport DialogActions from '@mui/material/DialogActions';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogContentText from '@mui/material/DialogContentText';\nimport DialogTitle from '@mui/material/DialogTitle';\nimport FormControlLabel from '@mui/material/FormControlLabel';\nimport Checkbox from '@mui/material/Checkbox';\n\nimport IconCheck from '@mui/icons-material/Check';\nimport IconClose from '@mui/icons-material/Close';\n\nimport I18n from '../i18n';\n\nconst styles = {\n suppress: {\n fontSize: 12,\n },\n suppressRoot: {\n marginTop: 16\n }\n};\n\n/**\n * @typedef {object} DialogConfirmProps\n * @property {string} [title] The dialog title; default: Are you sure? (translated)\n * @property {string} text The dialog text.\n * @property {string} [ok] The ok button text; default: OK (translated)\n * @property {string} [cancel] The cancel button text; default: Cancel (translated)\n * @property {string} [suppressQuestionMinutes] interval in minutes for which the confirm dialog will be suppressed if activated.\n * @property {string} [suppressText] The suppress checkbox text; default: Suppress question for next %s minutes (translated)\n * @property {string} [dialogName] Name of the dialog. Used only with suppressQuestionMinutes to store the user choice\n * @property {(ok: boolean) => void} [onClose] Close handler.\n *\n * @extends {React.Component<DialogConfirmProps>}\n */\nclass DialogConfirm extends React.Component {\n constructor(props) {\n super(props);\n\n if (!this.props.dialogName && this.props.suppressQuestionMinutes) {\n throw new Error('dialogName required if suppressQuestionMinutes used');\n }\n let suppress = false;\n\n if (this.props.suppressQuestionMinutes) {\n suppress = parseInt((window._localStorage || window.localStorage).getItem(this.props.dialogName), 10) || 0;\n\n if (!suppress) {\n suppress = false;\n } else if (Date.now() > suppress) {\n (window._localStorage || window.localStorage).removeItem(this.props.dialogName);\n suppress = false;\n }\n }\n\n this.state = {\n suppress,\n };\n }\n\n handleOk() {\n if (this.state.suppress) {\n (window._localStorage || window.localStorage).setItem(this.props.dialogName, Date.now() + this.props.suppressQuestionMinutes * 60000);\n }\n this.props.onClose && this.props.onClose(true);\n };\n\n handleCancel() {\n this.props.onClose && this.props.onClose(false);\n };\n\n render() {\n if (typeof this.state.suppress === 'number') {\n setTimeout(() => this.props.onClose && this.props.onClose(true), 100);\n return null;\n }\n\n return <Dialog\n open={true}\n maxWidth=\"md\"\n fullWidth={true}\n onClose={(event, reason) => {\n if (reason !== 'backdropClick' && reason !== 'escapeKeyDown') {\n this.handleCancel()\n }\n }}\n aria-labelledby=\"confirmation-dialog-title\"\n aria-describedby=\"confirmation-dialog-description\"\n >\n <DialogTitle id=\"confirmation-dialog-title\">{this.props.title || I18n.t('ra_Are you sure?')}</DialogTitle>\n <DialogContent>\n <DialogContentText id=\"confirmation-dialog-description\">\n {this.props.icon || null}\n {this.props.text}\n {this.props.suppressQuestionMinutes ? <br/> : null}\n {this.props.suppressQuestionMinutes ?\n <FormControlLabel\n classes={{label: this.props.classes.suppress, root: this.props.classes.suppressRoot}}\n control={<Checkbox checked={!!this.state.suppress} onChange={() => this.setState({suppress: !this.state.suppress})} />}\n label={this.props.suppressText || I18n.t('ra_Suppress question for next %s minutes', this.props.suppressQuestionMinutes)}\n /> :\n null}\n </DialogContentText>\n </DialogContent>\n <DialogActions>\n <Button variant=\"contained\" onClick={() => this.handleOk()} color=\"primary\" autoFocus startIcon={<IconCheck />}>{this.props.ok || I18n.t('ra_Ok')}</Button>\n <Button variant=\"contained\" onClick={() => this.handleCancel()} color=\"grey\" startIcon={<IconClose />}>{this.props.cancel || I18n.t('ra_Cancel')}</Button>\n </DialogActions>\n </Dialog>;\n }\n}\n\nDialogConfirm.propTypes = {\n onClose: PropTypes.func.isRequired,\n title: PropTypes.string,\n text: PropTypes.string,\n ok: PropTypes.string,\n cancel: PropTypes.string,\n icon: PropTypes.object,\n suppressQuestionMinutes: PropTypes.number,\n suppressText: PropTypes.string,\n dialogName: PropTypes.string,\n};\n\nconst _export = withStyles(styles)(DialogConfirm);\nexport default _export;"],"mappings":";;;;;;;;;;;;;;;;;;;AAQA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AAEA;;;;;;AAEA,IAAMA,MAAM,GAAG;EACXC,QAAQ,EAAE;IACNC,QAAQ,EAAE;EADJ,CADC;EAIXC,YAAY,EAAE;IACVC,SAAS,EAAE;EADD;AAJH,CAAf;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IACMC,a;;;;;EACF,uBAAYC,KAAZ,EAAmB;IAAA;;IAAA;IACf,0BAAMA,KAAN;;IAEA,IAAI,CAAC,MAAKA,KAAL,CAAWC,UAAZ,IAA0B,MAAKD,KAAL,CAAWE,uBAAzC,EAAkE;MAC9D,MAAM,IAAIC,KAAJ,CAAU,qDAAV,CAAN;IACH;;IACD,IAAIR,QAAQ,GAAG,KAAf;;IAEA,IAAI,MAAKK,KAAL,CAAWE,uBAAf,EAAwC;MACpCP,QAAQ,GAAGS,QAAQ,CAAC,CAACC,MAAM,CAACC,aAAP,IAAwBD,MAAM,CAACE,YAAhC,EAA8CC,OAA9C,CAAsD,MAAKR,KAAL,CAAW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M,MAAI,CAAC2B,QAAL,EAAN;QAAA,CAArC;QAA4D,KAAK,EAAC,SAAlE;QAA4E,SAAS,MAArF;QAAsF,SAAS,eAAE,gCAAC,iBAAD;MAAjG,GAAiH,KAAK7B,KAAL,CAAW8B,EAAX,IAAiBV,gBAAA,CAAKC,CAAL,CAAO,OAAP,CAAlI,CADJ,eAEI,gCAAC,kBAAD;QAAQ,OAAO,EAAC,WAAhB;QAA4B,OAAO,EAAE;UAAA,OAAM,MAAI,CAACH,YAAL,EAAN;QAAA,CAArC;QAAgE,KAAK,EAAC,MAAtE;QAA6E,SAAS,eAAE,gCAAC,iBAAD;MAAxF,GAAwG,KAAKlB,KAAL,CAAW+B,MAAX,IAAqBX,gBAAA,CAAKC,CAAL,CAAO,WAAP,CAA7H,CAFJ,CA3BG,CAAP;IAgCH;;;EA1EuBW,iBAAA,CAAMC,S;;AA6ElClC,aAAa,CAACmC,SAAd,GAA0B;EACtBpB,OAAO,EAAEqB,qBAAA,CAAUC,IAAV,CAAeC,UADF;EAEtBlB,KAAK,EAAEgB,qBAAA,CAAUG,MAFK;EAGtBf,IAAI,EAAEY,qBAAA,CAAUG,MAHM;EAItBR,EAAE,EAAEK,qBAAA,CAAUG,MAJQ;EAKtBP,MAAM,EAAEI,qBAAA,CAAUG,MALI;EAMtBhB,IAAI,EAAEa,qBAAA,CAAUI,MANM;EAOtBrC,uBAAuB,EAAEiC,qBAAA,CAAUK,MAPb;EAQtBZ,YAAY,EAAEO,qBAAA,CAAUG,MARF;EAStBrC,UAAU,EAAEkC,qBAAA,CAAUG;AATA,CAA1B;;AAYA,IAAMG,OAAO,GAAG,IAAAC,sBAAA,EAAWhD,MAAX,EAAmBK,aAAnB,CAAhB;;eACe0C,O"}
|
package/Dialogs/Error.js
CHANGED
|
@@ -51,7 +51,6 @@ var styles = function styles(theme) {
|
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
53
53
|
* @typedef {object} DialogErrorProps
|
|
54
|
-
* @property {string} [key] The key to identify this component.
|
|
55
54
|
* @property {string} [title] The dialog title; default: Error (translated)
|
|
56
55
|
* @property {string | JSX.Element} text The dialog text.
|
|
57
56
|
* @property {() => void} [onClose] Close handler.
|
package/Dialogs/Error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Error.js","names":["styles","theme","titleBackground","titleColor","DialogError","props","onClose","handleOk","classes","root","title","I18n","t","text","React","Component","propTypes","PropTypes","func","isRequired","string","oneOfType","element","icon","object","_export","withStyles"],"sources":["Error.js"],"sourcesContent":["/**\n * Copyright 2018-2022 bluefox <dogafox@gmail.com>\n *\n * MIT License\n *\n **/\n// please do not delete React, as without it other projects could not be compiled: ReferenceError: React is not defined\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport withStyles from '@mui/styles/withStyles';\n\nimport Button from '@mui/material/Button';\nimport Dialog from '@mui/material/Dialog';\nimport DialogActions from '@mui/material/DialogActions';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogContentText from '@mui/material/DialogContentText';\nimport DialogTitle from '@mui/material/DialogTitle';\n\nimport IconCheck from '@mui/icons-material/Check';\n\nimport I18n from '../i18n';\n\nconst styles = theme => ({\n titleBackground: {\n\n },\n titleColor: {\n\n }\n});\n\n/**\n * @typedef {object} DialogErrorProps\n * @property {string} [
|
|
1
|
+
{"version":3,"file":"Error.js","names":["styles","theme","titleBackground","titleColor","DialogError","props","onClose","handleOk","classes","root","title","I18n","t","text","React","Component","propTypes","PropTypes","func","isRequired","string","oneOfType","element","icon","object","_export","withStyles"],"sources":["Error.js"],"sourcesContent":["/**\n * Copyright 2018-2022 bluefox <dogafox@gmail.com>\n *\n * MIT License\n *\n **/\n// please do not delete React, as without it other projects could not be compiled: ReferenceError: React is not defined\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport withStyles from '@mui/styles/withStyles';\n\nimport Button from '@mui/material/Button';\nimport Dialog from '@mui/material/Dialog';\nimport DialogActions from '@mui/material/DialogActions';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogContentText from '@mui/material/DialogContentText';\nimport DialogTitle from '@mui/material/DialogTitle';\n\nimport IconCheck from '@mui/icons-material/Check';\n\nimport I18n from '../i18n';\n\nconst styles = theme => ({\n titleBackground: {\n\n },\n titleColor: {\n\n }\n});\n\n/**\n * @typedef {object} DialogErrorProps\n * @property {string} [title] The dialog title; default: Error (translated)\n * @property {string | JSX.Element} text The dialog text.\n * @property {() => void} [onClose] Close handler.\n * @property {{titleBackground: string; titleColor: string}} classes The styling class names.\n *\n * @extends {React.Component<DialogErrorProps>}\n */\nclass DialogError extends React.Component {\n handleOk() {\n this.props.onClose && this.props.onClose();\n };\n\n render() {\n return <Dialog\n open={true}\n maxWidth=\"sm\"\n fullWidth={true}\n onClose={() => this.handleOk()}\n aria-labelledby=\"alert-dialog-title\"\n aria-describedby=\"alert-dialog-description\"\n >\n <DialogTitle className={this.props.classes.titleBackground}\n classes={{root: this.props.classes.titleColor}}\n id=\"alert-dialog-title\">{this.props.title || I18n.t('ra_Error')}</DialogTitle>\n <DialogContent>\n <DialogContentText id=\"alert-dialog-description\">\n {this.props.text || I18n.t('ra_Unknown error!')}\n </DialogContentText>\n </DialogContent>\n <DialogActions>\n <Button variant=\"contained\" onClick={() => this.handleOk()} color=\"primary\" autoFocus startIcon={<IconCheck />}>{I18n.t('ra_Ok')}</Button>\n </DialogActions>\n </Dialog>;\n }\n}\n\nDialogError.propTypes = {\n onClose: PropTypes.func.isRequired,\n title: PropTypes.string,\n text: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.element\n ]),\n icon: PropTypes.object\n};\n\n/** @type {typeof DialogError} */\nconst _export = withStyles(styles)(DialogError);\nexport default _export;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAOA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AAEA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;EAAA,OAAK;IACrBC,eAAe,EAAE,EADI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BV,OAAO,EAAEW,qBAAA,CAAUC,IAAV,CAAeC,UADJ;EAEpBT,KAAK,EAAEO,qBAAA,CAAUG,MAFG;EAGpBP,IAAI,EAAEI,qBAAA,CAAUI,SAAV,CAAoB,CACtBJ,qBAAA,CAAUG,MADY,EAEtBH,qBAAA,CAAUK,OAFY,CAApB,CAHc;EAOpBC,IAAI,EAAEN,qBAAA,CAAUO;AAPI,CAAxB;AAUA;;AACA,IAAMC,OAAO,GAAG,IAAAC,sBAAA,EAAW1B,MAAX,EAAmBI,WAAnB,CAAhB;;eACeqB,O"}
|
package/Dialogs/Message.js
CHANGED
|
@@ -43,7 +43,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* @typedef {object} DialogMessageProps
|
|
46
|
-
* @property {string} [key] The key to identify this component.
|
|
47
46
|
* @property {string} [title] The dialog title; default: Message (translated)
|
|
48
47
|
* @property {string} text The dialog text.
|
|
49
48
|
* @property {() => void} [onClose] Close handler.
|
package/Dialogs/Message.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Message.js","names":["DialogMessage","props","onClose","handleOk","title","I18n","t","text","React","Component","propTypes","PropTypes","func","isRequired","string","icon","object"],"sources":["Message.js"],"sourcesContent":["/**\n * Copyright 2018-2022 bluefox <dogafox@gmail.com>\n *\n * MIT License\n *\n **/\n\n// please do not delete React, as without it other projects could not be compiled: ReferenceError: React is not defined\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nimport Button from '@mui/material/Button';\nimport Dialog from '@mui/material/Dialog';\nimport DialogActions from '@mui/material/DialogActions';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogContentText from '@mui/material/DialogContentText';\nimport DialogTitle from '@mui/material/DialogTitle';\n\nimport IconClose from '@mui/icons-material/Close';\n\nimport I18n from '../i18n';\n\n/**\n * @typedef {object} DialogMessageProps\n * @property {string} [
|
|
1
|
+
{"version":3,"file":"Message.js","names":["DialogMessage","props","onClose","handleOk","title","I18n","t","text","React","Component","propTypes","PropTypes","func","isRequired","string","icon","object"],"sources":["Message.js"],"sourcesContent":["/**\n * Copyright 2018-2022 bluefox <dogafox@gmail.com>\n *\n * MIT License\n *\n **/\n\n// please do not delete React, as without it other projects could not be compiled: ReferenceError: React is not defined\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nimport Button from '@mui/material/Button';\nimport Dialog from '@mui/material/Dialog';\nimport DialogActions from '@mui/material/DialogActions';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogContentText from '@mui/material/DialogContentText';\nimport DialogTitle from '@mui/material/DialogTitle';\n\nimport IconClose from '@mui/icons-material/Close';\n\nimport I18n from '../i18n';\n\n/**\n * @typedef {object} DialogMessageProps\n * @property {string} [title] The dialog title; default: Message (translated)\n * @property {string} text The dialog text.\n * @property {() => void} [onClose] Close handler.\n *\n * @extends {React.Component<DialogMessageProps>}\n */\nclass DialogMessage extends React.Component {\n\n handleOk() {\n this.props.onClose && this.props.onClose();\n };\n\n render() {\n return <Dialog\n open={true}\n maxWidth=\"sm\"\n fullWidth={true}\n onClose={() => this.handleOk()}\n aria-labelledby=\"message-dialog-title\"\n aria-describedby=\"message-dialog-description\"\n >\n <DialogTitle id=\"message-dialog-title\">{this.props.title || I18n.t('ra_Message')}</DialogTitle>\n <DialogContent>\n <DialogContentText id=\"message-dialog-description\">\n {this.props.text}\n </DialogContentText>\n </DialogContent>\n <DialogActions>\n <Button variant=\"contained\" onClick={() => this.handleOk()} color=\"primary\" autoFocus startIcon={<IconClose />}>{I18n.t('ra_Close')}</Button>\n </DialogActions>\n </Dialog>;\n }\n}\n\nDialogMessage.propTypes = {\n onClose: PropTypes.func.isRequired,\n title: PropTypes.string,\n text: PropTypes.string,\n icon: PropTypes.object\n};\n\nexport default DialogMessage;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAQA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AA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@@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
51
|
* @typedef {object} TextInputProps
|
|
52
|
-
* @property {string} [key] The key to identify this component.
|
|
53
52
|
* @property {(text: string | null) => void} onClose The dialog close callback.
|
|
54
53
|
* @property {string} titleText The title text.
|
|
55
54
|
* @property {string} [promptText] Prompt text (default: empty).
|
package/Dialogs/TextInput.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.js","names":["TextInput","props","state","text","input","value","error","onClose","titleText","promptText","labelText","type","e","charCode","verify","target","rule","setState","applyText","I18n","t","cancelText","React","Component","propTypes","PropTypes","func","isRequired","string","replace","_export","withWidth"],"sources":["TextInput.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport Button from '@mui/material/Button';\nimport TextField from '@mui/material/TextField';\nimport Dialog from '@mui/material/Dialog';\nimport DialogActions from '@mui/material/DialogActions';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogContentText from '@mui/material/DialogContentText';\nimport DialogTitle from '@mui/material/DialogTitle';\n\nimport I18n from '../i18n';\n\nimport IconClose from '@mui/icons-material/Close';\nimport IconCheck from '@mui/icons-material/Check';\n\nimport withWidth from '../Components/withWidth';\n\n/**\n * @typedef {object} TextInputProps\n * @property {
|
|
1
|
+
{"version":3,"file":"TextInput.js","names":["TextInput","props","state","text","input","value","error","onClose","titleText","promptText","labelText","type","e","charCode","verify","target","rule","setState","applyText","I18n","t","cancelText","React","Component","propTypes","PropTypes","func","isRequired","string","replace","_export","withWidth"],"sources":["TextInput.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport Button from '@mui/material/Button';\nimport TextField from '@mui/material/TextField';\nimport Dialog from '@mui/material/Dialog';\nimport DialogActions from '@mui/material/DialogActions';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogContentText from '@mui/material/DialogContentText';\nimport DialogTitle from '@mui/material/DialogTitle';\n\nimport I18n from '../i18n';\n\nimport IconClose from '@mui/icons-material/Close';\nimport IconCheck from '@mui/icons-material/Check';\n\nimport withWidth from '../Components/withWidth';\n\n/**\n * @typedef {object} TextInputProps\n * @property {(text: string | null) => void} onClose The dialog close callback.\n * @property {string} titleText The title text.\n * @property {string} [promptText] Prompt text (default: empty).\n * @property {string} [labelText] Label text (default: empty).\n * @property {string} cancelText The text of the cancel button.\n * @property {string} applyText The text of the apply button.\n * @property {(text: string) => string} [verify] The verification callback. Return a non-empty string if there was an error.\n * @property {(text: string) => string} [rule] The text replacement callback.\n * @property {'text' | 'number' | 'password' | 'email'} [type] The type of the textbox (default: text).\n * @property {string} [input] The input when opening the dialog.\n *\n * @extends {React.Component<TextInputProps>}\n */\nclass TextInput extends React.Component {\n /**\n * @param {Readonly<TextInputProps>} props\n */\n constructor(props) {\n super(props);\n\n this.state = {\n text: this.props.input || this.props.value || '', // input is deprectaed\n error: ''\n }\n }\n render() {\n return <Dialog open={true} onClose={() => this.props.onClose(null)} aria-labelledby=\"form-dialog-title\">\n <DialogTitle id=\"form-dialog-title\">{this.props.titleText}</DialogTitle>\n <DialogContent>\n <DialogContentText>\n {this.props.promptText}\n </DialogContentText>\n <TextField\n variant=\"standard\"\n autoFocus\n margin=\"dense\"\n error={!!this.state.error}\n title={this.state.error}\n value={this.state.text}\n label={this.props.labelText || ''}\n type={this.props.type || 'text'}\n onKeyPress={e => e.charCode === 13 && this.state.text && this.props.onClose(this.state.text)}\n onChange={e => {\n let error = '';\n if (this.props.verify) {\n error = !this.props.verify(e.target.value);\n }\n\n if (this.props.rule) {\n this.setState({text: this.props.rule(e.target.value), error});\n } else {\n this.setState({text: e.target.value, error});\n }\n }}\n fullWidth\n />\n </DialogContent>\n <DialogActions>\n <Button variant=\"contained\" disabled={!this.state.text || this.state.error} onClick={() => this.props.onClose(this.state.text)}\n color=\"primary\" startIcon={<IconCheck />}>{this.props.applyText || I18n.t('ra_Ok')}</Button>\n <Button color=\"grey\" variant=\"contained\" onClick={() => this.props.onClose(null)} startIcon={<IconClose />}>{this.props.cancelText || I18n.t('ra_Cancel')}</Button>\n </DialogActions>\n </Dialog>;\n }\n}\n\nTextInput.propTypes = {\n onClose: PropTypes.func.isRequired,\n titleText: PropTypes.string.isRequired,\n promptText: PropTypes.string,\n labelText: PropTypes.string,\n cancelText: PropTypes.string,\n applyText: PropTypes.string,\n verify: PropTypes.func,\n replace: PropTypes.func,\n type: PropTypes.string, // text, number, password, email\n value: PropTypes.string,\n};\n\n/** @type {typeof TextInput} */\nconst _export = withWidth()(TextInput);\nexport default _export;"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AAEA;;AACA;;AAEA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACMA,S;;;;;EACF;AACJ;AACA;EACI,mBAAYC,KAAZ,EAAmB;IAAA;;IAAA;IACf,0BAAMA,KAAN;IAEA,MAAKC,KAAL,GAAa;MACTC,IAAI,EAAE,MAAKF,KAAL,CAAWG,KAAX,IAAoB,MAAKH,KAAL,CAAWI,KAA/B,IAAwC,EADrC;MACyC;MAClDC,KAAK,EAAE;IAFE,CAAb;IAHe;EAOlB;;;;WACD,kBAAS;MAAA;;MACL,oBAAO,gCAAC,kBAAD;QAAQ,IAAI,EAAE,IAAd;QAAoB,OAAO,EAAE;UAAA,OAAM,MAAI,CAACL,KAAL,CAAWM,OAAX,CAAmB,IAAnB,CAAN;QAAA,CAA7B;QAA6D,mBAAgB;MAA7E,gBACH,gCAAC,uBAAD;QAAa,EAAE,EAAC;MAAhB,GAAqC,KAAKN,KAAL,CAAWO,SAAhD,CADG,eAEH,gCAAC,yBAAD,qBACI,gCAAC,6BAAD,QACK,KAAKP,KAAL,CAAWQ,UADhB,CADJ,eAII,gCAAC,qBAAD;QACI,OAAO,EAAC,UADZ;QAEI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/B,SAAZ,CAAhB;;eACe8B,O"}
|
package/README.md
CHANGED
|
@@ -624,6 +624,7 @@ The icons may not be reused in other projects without the proper flaticon licens
|
|
|
624
624
|
- All `@material-ui/icons/...` => `@mui/icons-material/...`
|
|
625
625
|
- Change `import { withStyles } from '@material-ui/core/styles';` => `import { withStyles } from '@mui/styles';`
|
|
626
626
|
- Change `import { makeStyles } from '@mui/material/styles';` => `import { makeStyles } from '@mui/styles';`
|
|
627
|
+
- Change `import withWidth from '@material-ui/core/withWidth';` => `import { withWidth } from '@iobroker/adapter-react-v5';`
|
|
627
628
|
- All `@material-ui/core...` => `@mui/material...`
|
|
628
629
|
- Change `import { MuiThemeProvider } from '@material-ui/core/styles';` => `import { ThemeProvider, StyledEngineProvider } from '@mui/material/styles';`
|
|
629
630
|
- Change all `<MuiThemeProvider theme={this.state.theme}>` to `<StyledEngineProvider injectFirst><ThemeProvider theme={this.state.theme}>`
|
|
@@ -641,6 +642,15 @@ If you still have questions, try to find an answer [here](https://mui.com/guides
|
|
|
641
642
|
-->
|
|
642
643
|
|
|
643
644
|
## Changelog
|
|
645
|
+
### 3.1.18 (2022-07-06)
|
|
646
|
+
* (bluefox) Added translation
|
|
647
|
+
|
|
648
|
+
### 3.1.17 (2022-07-05)
|
|
649
|
+
* (bluefox) Deactivate JSON editor for JSONConfig because of space
|
|
650
|
+
|
|
651
|
+
### 3.1.16 (2022-06-27)
|
|
652
|
+
* (bluefox) Update object browser
|
|
653
|
+
|
|
644
654
|
### 3.1.15 (2022-06-27)
|
|
645
655
|
* (bluefox) Allow to use spaces in name
|
|
646
656
|
|
package/i18n/de.json
CHANGED
|
@@ -315,5 +315,6 @@
|
|
|
315
315
|
"ra_Cannot retrieve options, as instance is offline": "Optionen können nicht abgerufen werden, da die Instanz offline ist",
|
|
316
316
|
"ra_File is too big. Max %sk allowed. Try use SVG.": "Datei ist zu groß. Max %sk erlaubt. Versuchen Sie, SVG zu verwenden.",
|
|
317
317
|
"ra_Cannot upload": "Kann nicht hochladen",
|
|
318
|
-
"ra_Crop": "Ernte"
|
|
318
|
+
"ra_Crop": "Ernte",
|
|
319
|
+
"ra_tooltip_comment": "Kommentar"
|
|
319
320
|
}
|
package/i18n/en.json
CHANGED
|
@@ -315,5 +315,6 @@
|
|
|
315
315
|
"ra_Cannot retrieve options, as instance is offline": "Cannot retrieve options, as instance is offline",
|
|
316
316
|
"ra_File is too big. Max %sk allowed. Try use SVG.": "File is too big. Max %sk allowed. Try use SVG.",
|
|
317
317
|
"ra_Cannot upload": "Cannot upload",
|
|
318
|
-
"ra_Crop": "Crop"
|
|
318
|
+
"ra_Crop": "Crop",
|
|
319
|
+
"ra_tooltip_comment": "Comment"
|
|
319
320
|
}
|
package/i18n/es.json
CHANGED
|
@@ -302,5 +302,6 @@
|
|
|
302
302
|
"ra_Cannot retrieve options, as instance is offline": "No se pueden recuperar las opciones, ya que la instancia está fuera de línea",
|
|
303
303
|
"ra_File is too big. Max %sk allowed. Try use SVG.": "El archivo es demasiado grande. Máximo de %sk permitido. Intenta usar SVG.",
|
|
304
304
|
"ra_Cannot upload": "no se puede cargar",
|
|
305
|
-
"ra_Crop": "Cultivo"
|
|
305
|
+
"ra_Crop": "Cultivo",
|
|
306
|
+
"ra_tooltip_comment": "Comentario"
|
|
306
307
|
}
|
package/i18n/fr.json
CHANGED
|
@@ -302,5 +302,6 @@
|
|
|
302
302
|
"ra_Cannot retrieve options, as instance is offline": "Impossible de récupérer les options, car l'instance est hors ligne",
|
|
303
303
|
"ra_File is too big. Max %sk allowed. Try use SVG.": "Le fichier est trop volumineux. Max %sk autorisé. Essayez d'utiliser SVG.",
|
|
304
304
|
"ra_Cannot upload": "Impossible de télécharger",
|
|
305
|
-
"ra_Crop": "Recadrer"
|
|
305
|
+
"ra_Crop": "Recadrer",
|
|
306
|
+
"ra_tooltip_comment": "Commentaire"
|
|
306
307
|
}
|
package/i18n/it.json
CHANGED
|
@@ -302,5 +302,6 @@
|
|
|
302
302
|
"ra_Cannot retrieve options, as instance is offline": "Impossibile recuperare le opzioni, poiché l'istanza è offline",
|
|
303
303
|
"ra_File is too big. Max %sk allowed. Try use SVG.": "Il file è troppo grande. Max %sk consentito. Prova a usare SVG.",
|
|
304
304
|
"ra_Cannot upload": "Impossibile caricare",
|
|
305
|
-
"ra_Crop": "Raccolto"
|
|
305
|
+
"ra_Crop": "Raccolto",
|
|
306
|
+
"ra_tooltip_comment": "Commento"
|
|
306
307
|
}
|
package/i18n/nl.json
CHANGED
|
@@ -302,5 +302,6 @@
|
|
|
302
302
|
"ra_Cannot retrieve options, as instance is offline": "Kan opties niet ophalen, omdat instantie offline is",
|
|
303
303
|
"ra_File is too big. Max %sk allowed. Try use SVG.": "Bestand is te groot. Max. %sk toegestaan. Probeer SVG te gebruiken.",
|
|
304
304
|
"ra_Cannot upload": "Kan niet uploaden",
|
|
305
|
-
"ra_Crop": "Bijsnijden"
|
|
305
|
+
"ra_Crop": "Bijsnijden",
|
|
306
|
+
"ra_tooltip_comment": "Opmerking"
|
|
306
307
|
}
|
package/i18n/pl.json
CHANGED
|
@@ -302,5 +302,6 @@
|
|
|
302
302
|
"ra_Cannot retrieve options, as instance is offline": "Nie można pobrać opcji, ponieważ instancja jest w trybie offline",
|
|
303
303
|
"ra_File is too big. Max %sk allowed. Try use SVG.": "Plik jest za duży. Maksymalna dozwolona liczba %sk. Spróbuj użyć SVG.",
|
|
304
304
|
"ra_Cannot upload": "Nie można przesłać",
|
|
305
|
-
"ra_Crop": "Przyciąć"
|
|
305
|
+
"ra_Crop": "Przyciąć",
|
|
306
|
+
"ra_tooltip_comment": "Komentarz"
|
|
306
307
|
}
|
package/i18n/pt.json
CHANGED
|
@@ -302,5 +302,6 @@
|
|
|
302
302
|
"ra_Cannot retrieve options, as instance is offline": "Não é possível recuperar opções, pois a instância está off-line",
|
|
303
303
|
"ra_File is too big. Max %sk allowed. Try use SVG.": "O arquivo é muito grande. Max %sk permitido. Tente usar SVG.",
|
|
304
304
|
"ra_Cannot upload": "Não é possível fazer upload",
|
|
305
|
-
"ra_Crop": "Colheita"
|
|
305
|
+
"ra_Crop": "Colheita",
|
|
306
|
+
"ra_tooltip_comment": "Comente"
|
|
306
307
|
}
|
package/i18n/ru.json
CHANGED
|
@@ -315,5 +315,6 @@
|
|
|
315
315
|
"ra_Cannot retrieve options, as instance is offline": "Невозможно получить параметры, так как экземпляр находится в автономном режиме.",
|
|
316
316
|
"ra_File is too big. Max %sk allowed. Try use SVG.": "Файл слишком большой. Разрешено максимальное количество %sk. Попробуйте использовать SVG.",
|
|
317
317
|
"ra_Cannot upload": "Невозможно загрузить",
|
|
318
|
-
"ra_Crop": "Обрезать"
|
|
318
|
+
"ra_Crop": "Обрезать",
|
|
319
|
+
"ra_tooltip_comment": "Комментарий"
|
|
319
320
|
}
|
package/i18n/zh-cn.json
CHANGED
|
@@ -302,5 +302,6 @@
|
|
|
302
302
|
"ra_Cannot retrieve options, as instance is offline": "无法检索选项,因为实例处于脱机状态",
|
|
303
303
|
"ra_File is too big. Max %sk allowed. Try use SVG.": "文件太大。允许的最大字节%s数。尝试使用 SVG。",
|
|
304
304
|
"ra_Cannot upload": "无法上传",
|
|
305
|
-
"ra_Crop": "庄稼"
|
|
305
|
+
"ra_Crop": "庄稼",
|
|
306
|
+
"ra_tooltip_comment": "评论"
|
|
306
307
|
}
|
package/icons/IconCopy.js
CHANGED
|
@@ -13,7 +13,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @typedef {object} IconCopyProps
|
|
16
|
-
* @property {string} [key] The key to identify this component.
|
|
17
16
|
* @property {number} [width] The width in pixels of the icon.
|
|
18
17
|
* @property {number} [height] The height in pixels of the icon.
|
|
19
18
|
* @property {(e: React.MouseEvent) => void} [onClick] Click handler.
|
package/icons/IconCopy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconCopy.js","names":["IconCopy","props","e","onClick","width","height","className","propTypes","PropTypes","func","oneOfType","number","string"],"sources":["IconCopy.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\n/**\n * @typedef {object} IconCopyProps\n * @property {
|
|
1
|
+
{"version":3,"file":"IconCopy.js","names":["IconCopy","props","e","onClick","width","height","className","propTypes","PropTypes","func","oneOfType","number","string"],"sources":["IconCopy.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\n/**\n * @typedef {object} IconCopyProps\n * @property {number} [width] The width in pixels of the icon.\n * @property {number} [height] The height in pixels of the icon.\n * @property {(e: React.MouseEvent) => void} [onClick] Click handler.\n * @property {string} [className] The class name for the SVG element.\n *\n * @extends {React.Component<IconCopyProps>}\n */\nconst IconCopy = props => {\n return <svg onClick={e => props.onClick && props.onClick(e)} viewBox=\"0 0 512 512\" width={props.width || 20} height={props.height || props.width || 20} xmlns=\"http://www.w3.org/2000/svg\" className={ props.className }>\n <path fill=\"currentColor\" d=\"M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z\"/>\n </svg>;\n}\n\nIconCopy.propTypes = {\n onClick: PropTypes.func,\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string\n};\n\nexport default IconCopy;"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMA,QAAQ,GAAG,SAAXA,QAAW,CAAAC,KAAK,EAAI;EACtB,oBAAO;IAAK,OAAO,EAAE,iBAAAC,CAAC;MAAA,OAAID,KAAK,CAACE,OAAN,IAAiBF,KAAK,CAACE,OAAN,CAAcD,CAAd,CAArB;IAAA,CAAf;IAAsD,OAAO,EAAC,aAA9D;IAA4E,KAAK,EAAED,KAAK,CAACG,KAAN,IAAe,EAAlG;IAAsG,MAAM,EAAEH,KAAK,CAACI,MAAN,IAAgBJ,KAAK,CAACG,KAAtB,IAA+B,EAA7I;IAAiJ,KAAK,EAAC,4BAAvJ;IAAoL,SAAS,EAAGH,KAAK,CAACK;EAAtM,gBACH;IAAM,IAAI,EAAC,cAAX;IAA0B,CAAC,EAAC;EAA5B,EADG,CAAP;AAGH,CAJD;;AAMAN,QAAQ,CAACO,SAAT,GAAqB;EACjBJ,OAAO,EAAEK,qBAAA,CAAUC,IADF;EAEjBL,KAAK,EAAEI,qBAAA,CAAUE,SAAV,CAAoB,CAACF,qBAAA,CAAUG,MAAX,EAAmBH,qBAAA,CAAUI,MAA7B,CAApB,CAFU;EAGjBP,MAAM,EAAEG,qBAAA,CAAUE,SAAV,CAAoB,CAACF,qBAAA,CAAUG,MAAX,EAAmBH,qBAAA,CAAUI,MAA7B,CAApB,CAHS;EAIjBN,SAAS,EAAEE,qBAAA,CAAUI;AAJJ,CAArB;eAOeZ,Q"}
|