@iobroker/adapter-react-v5 3.0.15 → 3.1.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/FileBrowser.js +76 -57
- package/Components/FileBrowser.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigAlive.js +1 -1
- package/Components/JsonConfigComponent/ConfigAlive.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigAutocomplete.js +0 -1
- package/Components/JsonConfigComponent/ConfigAutocomplete.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCRON.js +3 -3
- package/Components/JsonConfigComponent/ConfigCRON.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCheckbox.js +1 -1
- package/Components/JsonConfigComponent/ConfigCheckbox.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCoordinates.js +2 -2
- package/Components/JsonConfigComponent/ConfigCoordinates.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCustom.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigGeneric.js +25 -25
- package/Components/JsonConfigComponent/ConfigGeneric.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigIP.js +2 -2
- package/Components/JsonConfigComponent/ConfigIP.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigInstanceSelect.js +1 -1
- package/Components/JsonConfigComponent/ConfigInstanceSelect.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigJsonEditor.js +1 -1
- package/Components/JsonConfigComponent/ConfigJsonEditor.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigLanguage.js +1 -1
- package/Components/JsonConfigComponent/ConfigLanguage.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigNumber.js +94 -22
- package/Components/JsonConfigComponent/ConfigNumber.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigPanel.js +4 -0
- package/Components/JsonConfigComponent/ConfigPanel.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigPassword.js +4 -4
- package/Components/JsonConfigComponent/ConfigPassword.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSelect.js +2 -2
- package/Components/JsonConfigComponent/ConfigSelect.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSelectSendTo.js +7 -7
- package/Components/JsonConfigComponent/ConfigSelectSendTo.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSendto.js +6 -6
- package/Components/JsonConfigComponent/ConfigSendto.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSetState.js +4 -4
- package/Components/JsonConfigComponent/ConfigSetState.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTable.js +26 -13
- package/Components/JsonConfigComponent/ConfigTable.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigText.js.map +1 -1
- package/Components/ObjectBrowser.js +39 -16
- package/Components/ObjectBrowser.js.map +1 -1
- package/Components/ToggleThemeMenu.js.map +1 -1
- package/Components/Utils.js +14 -3
- package/Components/Utils.js.map +1 -1
- package/Connection.js +1 -5
- package/Connection.js.map +1 -1
- package/README.md +6 -0
- package/i18n/de.json +24 -3
- package/i18n/en.json +23 -2
- package/i18n/es.json +23 -2
- package/i18n/fr.json +23 -2
- package/i18n/it.json +23 -2
- package/i18n/nl.json +23 -2
- package/i18n/pl.json +23 -2
- package/i18n/pt.json +23 -2
- package/i18n/ru.json +23 -2
- package/i18n/zh-cn.json +24 -3
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigText.js","names":["styles","theme","indeterminate","opacity","ConfigText","value","ConfigGeneric","getValue","props","data","attr","setState","error","disabled","defaultValue","isIndeterminate","Array","isArray","state","DIFFERENT_LABEL","arr","map","item","label","toString","unshift","DIFFERENT_VALUE","classes","option","_","onChange","params","getText","schema","placeholder","renderHelp","help","helpLink","noTranslation","undefined","maxLength","max","e","target","trim","propTypes","socket","PropTypes","object","isRequired","themeType","string","themeName","style","className","onError","func","withStyles"],"sources":["JsonConfigComponent/ConfigText.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@mui/styles';\n\nimport { Autocomplete, TextField } from '@mui/material';\n\nimport ConfigGeneric from './ConfigGeneric';\n\nconst styles = theme => ({\n indeterminate: {\n opacity: 0.5\n }\n});\n\nclass ConfigText extends ConfigGeneric {\n componentDidMount() {\n super.componentDidMount();\n const value = ConfigGeneric.getValue(this.props.data, this.props.attr);\n this.setState({value});\n }\n\n static getDerivedStateFromProps(props, state) {\n const value = ConfigGeneric.getValue(props.data, props.attr);\n if (value === null || value === undefined || value.toString().trim() !== (state.value || '').toString().trim()) {\n return {value};\n } else {\n return null;\n }\n }\n\n renderItem(error, disabled, defaultValue) {\n let isIndeterminate = Array.isArray(this.state.value) || this.state.value === ConfigGeneric.DIFFERENT_LABEL;\n\n if (isIndeterminate) {\n const arr = [...this.state.value].map(item => ({label: item.toString(), value: item}));\n arr.unshift({label: ConfigGeneric.DIFFERENT_LABEL, value: ConfigGeneric.DIFFERENT_VALUE});\n\n return <Autocomplete\n className={this.props.classes.indeterminate}\n fullWidth\n value={arr[0]}\n getOptionSelected={(option, value) => option.label === value.label}\n onChange={(_, value) =>\n this.onChange(this.props.attr, value ? value.value : '')}\n options={arr}\n getOptionLabel={option => option.label}\n renderInput={params => <TextField\n variant=\"standard\"\n {...params}\n error={!!error}\n placeholder={this.getText(this.props.schema.placeholder)}\n label={this.getText(this.props.schema.label)}\n helperText={this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation)}\n disabled={!!disabled}\n />}\n />;\n } else {\n return <TextField\n variant=\"standard\"\n fullWidth\n value={this.state.value === null || this.state.value === undefined ? '' : this.state.value}\n error={!!error}\n disabled={!!disabled}\n inputProps={{maxLength: this.props.schema.maxLength || this.props.schema.max || undefined}}\n onChange={e => {\n const value = e.target.value;\n this.setState({value}, () =>\n this.onChange(this.props.attr, this.props.schema.trim === false ? value : (value || '').trim()));\n }}\n placeholder={this.getText(this.props.schema.placeholder)}\n label={this.getText(this.props.schema.label)}\n helperText={this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation)}\n />;\n }\n }\n}\n\nConfigText.propTypes = {\n socket: PropTypes.object.isRequired,\n themeType: PropTypes.string,\n themeName: PropTypes.string,\n style: PropTypes.object,\n className: PropTypes.string,\n data: PropTypes.object.isRequired,\n schema: PropTypes.object,\n onError: PropTypes.func,\n onChange: PropTypes.func,\n};\n\nexport default withStyles(styles)(ConfigText);"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAEA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;EAAA,OAAK;IACrBC,aAAa,EAAE;MACXC,OAAO,EAAE;IADE;EADM,CAAL;AAAA,CAApB;;IAMMC,U;;;;;;;;;;;;WACF,6BAAoB;MAChB;;MACA,IAAMC,KAAK,GAAGC,0BAAA,CAAcC,QAAd,CAAuB,KAAKC,KAAL,CAAWC,IAAlC,EAAwC,KAAKD,KAAL,CAAWE,IAAnD,CAAd;;MACA,KAAKC,QAAL,CAAc;
|
|
1
|
+
{"version":3,"file":"ConfigText.js","names":["styles","theme","indeterminate","opacity","ConfigText","value","ConfigGeneric","getValue","props","data","attr","setState","error","disabled","defaultValue","isIndeterminate","Array","isArray","state","DIFFERENT_LABEL","arr","map","item","label","toString","unshift","DIFFERENT_VALUE","classes","option","_","onChange","params","getText","schema","placeholder","renderHelp","help","helpLink","noTranslation","undefined","maxLength","max","e","target","trim","propTypes","socket","PropTypes","object","isRequired","themeType","string","themeName","style","className","onError","func","withStyles"],"sources":["JsonConfigComponent/ConfigText.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@mui/styles';\n\nimport { Autocomplete, TextField } from '@mui/material';\n\nimport ConfigGeneric from './ConfigGeneric';\n\nconst styles = theme => ({\n indeterminate: {\n opacity: 0.5\n }\n});\n\nclass ConfigText extends ConfigGeneric {\n componentDidMount() {\n super.componentDidMount();\n const value = ConfigGeneric.getValue(this.props.data, this.props.attr);\n this.setState({ value });\n }\n\n static getDerivedStateFromProps(props, state) {\n const value = ConfigGeneric.getValue(props.data, props.attr);\n if (value === null || value === undefined || value.toString().trim() !== (state.value || '').toString().trim()) {\n return {value};\n } else {\n return null;\n }\n }\n\n renderItem(error, disabled, defaultValue) {\n let isIndeterminate = Array.isArray(this.state.value) || this.state.value === ConfigGeneric.DIFFERENT_LABEL;\n\n if (isIndeterminate) {\n const arr = [...this.state.value].map(item => ({label: item.toString(), value: item}));\n arr.unshift({label: ConfigGeneric.DIFFERENT_LABEL, value: ConfigGeneric.DIFFERENT_VALUE});\n\n return <Autocomplete\n className={this.props.classes.indeterminate}\n fullWidth\n value={arr[0]}\n getOptionSelected={(option, value) => option.label === value.label}\n onChange={(_, value) =>\n this.onChange(this.props.attr, value ? value.value : '')}\n options={arr}\n getOptionLabel={option => option.label}\n renderInput={params => <TextField\n variant=\"standard\"\n {...params}\n error={!!error}\n placeholder={this.getText(this.props.schema.placeholder)}\n label={this.getText(this.props.schema.label)}\n helperText={this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation)}\n disabled={!!disabled}\n />}\n />;\n } else {\n return <TextField\n variant=\"standard\"\n fullWidth\n value={this.state.value === null || this.state.value === undefined ? '' : this.state.value}\n error={!!error}\n disabled={!!disabled}\n inputProps={{maxLength: this.props.schema.maxLength || this.props.schema.max || undefined}}\n onChange={e => {\n const value = e.target.value;\n this.setState({value}, () =>\n this.onChange(this.props.attr, this.props.schema.trim === false ? value : (value || '').trim()));\n }}\n placeholder={this.getText(this.props.schema.placeholder)}\n label={this.getText(this.props.schema.label)}\n helperText={this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation)}\n />;\n }\n }\n}\n\nConfigText.propTypes = {\n socket: PropTypes.object.isRequired,\n themeType: PropTypes.string,\n themeName: PropTypes.string,\n style: PropTypes.object,\n className: PropTypes.string,\n data: PropTypes.object.isRequired,\n schema: PropTypes.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,KAAK,IAAV,IAAkBA,KAAK,KAAKkC,SAA5B,IAAyClC,KAAK,CAACmB,QAAN,GAAiBoB,IAAjB,OAA4B,CAAC1B,KAAK,CAACb,KAAN,IAAgB,EAAjB,EAAqBmB,QAArB,GAAgCoB,IAAhC,EAAzE,EAAiH;QAC7G,OAAO;UAACvC,KAAK,EAALA;QAAD,CAAP;MACH,CAFD,MAEO;QACH,OAAO,IAAP;MACH;IACJ;;;EAdoBC,0B;;AA+DzBF,UAAU,CAACyC,SAAX,GAAuB;EACnBC,MAAM,EAAEC,qBAAA,CAAUC,MAAV,CAAiBC,UADN;EAEnBC,SAAS,EAAEH,qBAAA,CAAUI,MAFF;EAGnBC,SAAS,EAAEL,qBAAA,CAAUI,MAHF;EAInBE,KAAK,EAAEN,qBAAA,CAAUC,MAJE;EAKnBM,SAAS,EAAEP,qBAAA,CAAUI,MALF;EAMnB1C,IAAI,EAAEsC,qBAAA,CAAUC,MAAV,CAAiBC,UANJ;EAOnBhB,MAAM,EAAEc,qBAAA,CAAUC,MAPC;EAQnBO,OAAO,EAAER,qBAAA,CAAUS,IARA;EASnB1B,QAAQ,EAAEiB,qBAAA,CAAUS;AATD,CAAvB;;eAYe,IAAAC,kBAAA,EAAWzD,MAAX,EAAmBI,UAAnB,C"}
|
|
@@ -175,6 +175,8 @@ var _IconClearFilter = _interopRequireDefault(require("../icons/IconClearFilter"
|
|
|
175
175
|
|
|
176
176
|
var _Icon = _interopRequireDefault(require("./Icon"));
|
|
177
177
|
|
|
178
|
+
var _withWidth = _interopRequireDefault(require("./withWidth"));
|
|
179
|
+
|
|
178
180
|
var _Utils = _interopRequireDefault(require("./Utils"));
|
|
179
181
|
|
|
180
182
|
var _TabContainer = _interopRequireDefault(require("./TabContainer"));
|
|
@@ -183,8 +185,6 @@ var _TabContent = _interopRequireDefault(require("./TabContent"));
|
|
|
183
185
|
|
|
184
186
|
var _TabHeader = _interopRequireDefault(require("./TabHeader"));
|
|
185
187
|
|
|
186
|
-
var _withWidth = _interopRequireDefault(require("./withWidth"));
|
|
187
|
-
|
|
188
188
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
189
189
|
|
|
190
190
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -517,6 +517,19 @@ var styles = function styles(theme) {
|
|
|
517
517
|
display: 'block'
|
|
518
518
|
}
|
|
519
519
|
},
|
|
520
|
+
cellValueWritable: {
|
|
521
|
+
'&:after': {
|
|
522
|
+
content: '"*"',
|
|
523
|
+
color: theme.palette.mode === 'dark' ? 'white' : 'black',
|
|
524
|
+
position: 'absolute',
|
|
525
|
+
zIndex: 1,
|
|
526
|
+
top: -6,
|
|
527
|
+
left: 0,
|
|
528
|
+
fontSize: 9,
|
|
529
|
+
width: 4,
|
|
530
|
+
height: 4
|
|
531
|
+
}
|
|
532
|
+
},
|
|
520
533
|
cellValueFile: {
|
|
521
534
|
color: '#2837b9'
|
|
522
535
|
},
|
|
@@ -602,6 +615,9 @@ var styles = function styles(theme) {
|
|
|
602
615
|
cellButtonsButtonWithCustoms: {
|
|
603
616
|
color: theme.palette.secondary.main
|
|
604
617
|
},
|
|
618
|
+
cellButtonsButtonWithoutCustoms: {
|
|
619
|
+
opacity: 0.2
|
|
620
|
+
},
|
|
605
621
|
cellButtonsValueButton: {
|
|
606
622
|
position: 'absolute',
|
|
607
623
|
display: 'inline-block',
|
|
@@ -886,7 +902,7 @@ function applyFilter(item, filters, lang, objects, context, counter, customFilte
|
|
|
886
902
|
data.fID = data.id.toLowerCase();
|
|
887
903
|
}
|
|
888
904
|
|
|
889
|
-
filteredOut = data.fID.
|
|
905
|
+
filteredOut = !data.fID.includes(context.id);
|
|
890
906
|
}
|
|
891
907
|
|
|
892
908
|
if (!filteredOut && context.name) {
|
|
@@ -950,10 +966,10 @@ function applyFilter(item, filters, lang, objects, context, counter, customFilte
|
|
|
950
966
|
data.hasVisibleChildren = true;
|
|
951
967
|
}
|
|
952
968
|
});
|
|
953
|
-
} //const visible = data.visible || data.hasVisibleChildren;
|
|
969
|
+
} // const visible = data.visible || data.hasVisibleChildren;
|
|
954
970
|
|
|
955
971
|
|
|
956
|
-
data.sumVisibility = data.visible || data.hasVisibleChildren || data.hasVisibleParent;
|
|
972
|
+
data.sumVisibility = data.visible || data.hasVisibleChildren; // || data.hasVisibleParent;
|
|
957
973
|
|
|
958
974
|
if (counter && data.sumVisibility) {
|
|
959
975
|
counter.count++;
|
|
@@ -1452,8 +1468,10 @@ function formatValue(id, state, obj, texts, dateFormat, isFloatComma) {
|
|
|
1452
1468
|
|
|
1453
1469
|
|
|
1454
1470
|
if (states && states[v] !== undefined) {
|
|
1455
|
-
|
|
1456
|
-
|
|
1471
|
+
if (v !== states[v]) {
|
|
1472
|
+
valText.s = v;
|
|
1473
|
+
v = states[v];
|
|
1474
|
+
}
|
|
1457
1475
|
}
|
|
1458
1476
|
|
|
1459
1477
|
var valFull;
|
|
@@ -2837,6 +2855,9 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
2837
2855
|
value: function componentWillUnmount() {
|
|
2838
2856
|
var _this5 = this;
|
|
2839
2857
|
|
|
2858
|
+
this.filterTimer && clearTimeout(this.filterTimer);
|
|
2859
|
+
this.filterTimer = null;
|
|
2860
|
+
|
|
2840
2861
|
if (this.props.objectsWorker) {
|
|
2841
2862
|
this.props.objectsWorker.unregisterHandler(this.onObjectChange, true);
|
|
2842
2863
|
} else {
|
|
@@ -3575,7 +3596,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
3575
3596
|
id: name,
|
|
3576
3597
|
placeholder: this.texts['filter_' + name],
|
|
3577
3598
|
defaultValue: this.state.filter[name],
|
|
3578
|
-
onChange: function onChange(
|
|
3599
|
+
onChange: function onChange() {
|
|
3579
3600
|
_this17.filterTimer && clearTimeout(_this17.filterTimer);
|
|
3580
3601
|
_this17.filterTimer = setTimeout(function () {
|
|
3581
3602
|
return _this17.onFilter();
|
|
@@ -3622,7 +3643,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
3622
3643
|
key: name + '_' + this.state.filterKey,
|
|
3623
3644
|
ref: this.filterRefs[name],
|
|
3624
3645
|
className: this.props.classes.headerCellInput + ' no-underline',
|
|
3625
|
-
onChange: function onChange(
|
|
3646
|
+
onChange: function onChange() {
|
|
3626
3647
|
_this18.filterTimer && clearTimeout(_this18.filterTimer);
|
|
3627
3648
|
_this18.filterTimer = setTimeout(function () {
|
|
3628
3649
|
return _this18.onFilter();
|
|
@@ -4340,7 +4361,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
4340
4361
|
}, /*#__PURE__*/_react["default"].createElement(_Delete["default"], {
|
|
4341
4362
|
className: classes.cellButtonsButtonIcon
|
|
4342
4363
|
})) : null, this.props.objectCustomDialog && this.info.hasSomeCustoms && item.data.obj.type === 'state' && ((_item$data$obj$common3 = item.data.obj.common) === null || _item$data$obj$common3 === void 0 ? void 0 : _item$data$obj$common3.type) !== 'file' ? /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
4343
|
-
className: _Utils["default"].clsx(classes.cellButtonsButton, item.data.hasCustoms
|
|
4364
|
+
className: _Utils["default"].clsx(classes.cellButtonsButton, item.data.hasCustoms ? classes.cellButtonsButtonWithCustoms : classes.cellButtonsButtonWithoutCustoms),
|
|
4344
4365
|
key: "custom",
|
|
4345
4366
|
size: "small",
|
|
4346
4367
|
"aria-label": "config",
|
|
@@ -4428,19 +4449,21 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
4428
4449
|
}, {
|
|
4429
4450
|
key: "renderColumnValue",
|
|
4430
4451
|
value: function renderColumnValue(id, item, classes) {
|
|
4431
|
-
var
|
|
4452
|
+
var _obj$common4,
|
|
4432
4453
|
_this29 = this;
|
|
4433
4454
|
|
|
4434
|
-
|
|
4455
|
+
var obj = item.data.obj;
|
|
4456
|
+
|
|
4457
|
+
if (!obj || !this.states) {
|
|
4435
4458
|
return null;
|
|
4436
4459
|
}
|
|
4437
4460
|
|
|
4438
|
-
if (((
|
|
4461
|
+
if (((_obj$common4 = obj.common) === null || _obj$common4 === void 0 ? void 0 : _obj$common4.type) === 'file') {
|
|
4439
4462
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4440
4463
|
className: _Utils["default"].clsx(classes.cellValueText, classes.cellValueFile)
|
|
4441
4464
|
}, "[file]");
|
|
4442
4465
|
} else if (!this.states[id]) {
|
|
4443
|
-
if (
|
|
4466
|
+
if (obj.type === 'state') {
|
|
4444
4467
|
!this.recordStates.includes(id) && this.recordStates.push(id);
|
|
4445
4468
|
this.states[id] = {
|
|
4446
4469
|
val: null
|
|
@@ -4457,7 +4480,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
4457
4480
|
var info = item.data.state;
|
|
4458
4481
|
|
|
4459
4482
|
if (!info) {
|
|
4460
|
-
info = item.data.state = item.data.state || formatValue(id, state,
|
|
4483
|
+
info = item.data.state = item.data.state || formatValue(id, state, obj, this.texts, this.props.dateFormat, this.props.isFloatComma);
|
|
4461
4484
|
info.valFull = info.valFull.map(function (item) {
|
|
4462
4485
|
if (item.t === _this29.texts.quality && state.q) {
|
|
4463
4486
|
return [/*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -4535,7 +4558,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
4535
4558
|
}
|
|
4536
4559
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4537
4560
|
style: info.style,
|
|
4538
|
-
className: classes.cellValueText
|
|
4561
|
+
className: _Utils["default"].clsx(classes.cellValueText, obj.common && obj.common.write !== false && classes.cellValueWritable)
|
|
4539
4562
|
}, val));
|
|
4540
4563
|
}
|
|
4541
4564
|
/**
|