@iobroker/adapter-react-v5 2.1.10 → 3.0.1
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 +248 -222
- package/Components/FileBrowser.js.map +1 -1
- package/Components/FileViewer.js +219 -75
- package/Components/FileViewer.js.map +1 -1
- package/Components/JsonConfigComponent/ChipInput.js +926 -0
- package/Components/JsonConfigComponent/ChipInput.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigAlive.js +135 -0
- package/Components/JsonConfigComponent/ConfigAlive.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigAutocomplete.js +204 -0
- package/Components/JsonConfigComponent/ConfigAutocomplete.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.js +311 -0
- package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigCRON.js +195 -0
- package/Components/JsonConfigComponent/ConfigCRON.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigCertificateSelect.js +178 -0
- package/Components/JsonConfigComponent/ConfigCertificateSelect.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigCheckbox.js +112 -0
- package/Components/JsonConfigComponent/ConfigCheckbox.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigChip.js +149 -0
- package/Components/JsonConfigComponent/ConfigChip.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigColor.js +156 -0
- package/Components/JsonConfigComponent/ConfigColor.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigCoordinates.js +165 -0
- package/Components/JsonConfigComponent/ConfigCoordinates.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigCustomEasyAccess.js +180 -0
- package/Components/JsonConfigComponent/ConfigCustomEasyAccess.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigDatePicker.js +117 -0
- package/Components/JsonConfigComponent/ConfigDatePicker.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigGeneric.js +660 -0
- package/Components/JsonConfigComponent/ConfigGeneric.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigIP.js +151 -0
- package/Components/JsonConfigComponent/ConfigIP.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigImageUpload.js +215 -0
- package/Components/JsonConfigComponent/ConfigImageUpload.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigInstanceSelect.js +197 -0
- package/Components/JsonConfigComponent/ConfigInstanceSelect.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigJsonEditor.js +211 -0
- package/Components/JsonConfigComponent/ConfigJsonEditor.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigLanguage.js +175 -0
- package/Components/JsonConfigComponent/ConfigLanguage.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigNumber.js +194 -0
- package/Components/JsonConfigComponent/ConfigNumber.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigObjectId.js +201 -0
- package/Components/JsonConfigComponent/ConfigObjectId.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigPanel.js +421 -0
- package/Components/JsonConfigComponent/ConfigPanel.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigPassword.js +236 -0
- package/Components/JsonConfigComponent/ConfigPassword.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigPattern.js +94 -0
- package/Components/JsonConfigComponent/ConfigPattern.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigSelect.js +163 -0
- package/Components/JsonConfigComponent/ConfigSelect.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigSelectSendTo.js +258 -0
- package/Components/JsonConfigComponent/ConfigSelectSendTo.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigSendto.js +282 -0
- package/Components/JsonConfigComponent/ConfigSendto.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigSetState.js +266 -0
- package/Components/JsonConfigComponent/ConfigSetState.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigStaticDivider.js +88 -0
- package/Components/JsonConfigComponent/ConfigStaticDivider.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigStaticHeader.js +81 -0
- package/Components/JsonConfigComponent/ConfigStaticHeader.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigStaticImage.js +88 -0
- package/Components/JsonConfigComponent/ConfigStaticImage.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigStaticText.js +104 -0
- package/Components/JsonConfigComponent/ConfigStaticText.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigTable.js +651 -0
- package/Components/JsonConfigComponent/ConfigTable.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigTabs.js +166 -0
- package/Components/JsonConfigComponent/ConfigTabs.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigText.js +170 -0
- package/Components/JsonConfigComponent/ConfigText.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigTextSendTo.js +168 -0
- package/Components/JsonConfigComponent/ConfigTextSendTo.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigTimePicker.js +111 -0
- package/Components/JsonConfigComponent/ConfigTimePicker.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigTopic.js +140 -0
- package/Components/JsonConfigComponent/ConfigTopic.js.map +1 -0
- package/Components/JsonConfigComponent/ConfigUser.js +176 -0
- package/Components/JsonConfigComponent/ConfigUser.js.map +1 -0
- package/Components/JsonConfigComponent/index.js +511 -0
- package/Components/JsonConfigComponent/index.js.map +1 -0
- package/Components/Utils.js +25 -0
- package/Components/Utils.js.map +1 -1
- package/README.md +7 -1
- package/package.json +1 -1
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
|
|
12
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
13
|
+
|
|
14
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
15
|
+
|
|
16
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
17
|
+
|
|
18
|
+
var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));
|
|
19
|
+
|
|
20
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
21
|
+
|
|
22
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
23
|
+
|
|
24
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
25
|
+
|
|
26
|
+
var _react = _interopRequireDefault(require("react"));
|
|
27
|
+
|
|
28
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
29
|
+
|
|
30
|
+
var _styles = require("@mui/styles");
|
|
31
|
+
|
|
32
|
+
var _material = require("@mui/material");
|
|
33
|
+
|
|
34
|
+
var _i18n = _interopRequireDefault(require("@iobroker/adapter-react-v5/i18n"));
|
|
35
|
+
|
|
36
|
+
var _ConfigGeneric2 = _interopRequireDefault(require("./ConfigGeneric"));
|
|
37
|
+
|
|
38
|
+
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); }; }
|
|
39
|
+
|
|
40
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
|
+
|
|
42
|
+
var styles = function styles(theme) {
|
|
43
|
+
return {
|
|
44
|
+
indeterminate: {
|
|
45
|
+
opacity: 0.5
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
var ConfigNumber = /*#__PURE__*/function (_ConfigGeneric) {
|
|
51
|
+
(0, _inherits2["default"])(ConfigNumber, _ConfigGeneric);
|
|
52
|
+
|
|
53
|
+
var _super = _createSuper(ConfigNumber);
|
|
54
|
+
|
|
55
|
+
function ConfigNumber() {
|
|
56
|
+
(0, _classCallCheck2["default"])(this, ConfigNumber);
|
|
57
|
+
return _super.apply(this, arguments);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
(0, _createClass2["default"])(ConfigNumber, [{
|
|
61
|
+
key: "componentDidMount",
|
|
62
|
+
value: function componentDidMount() {
|
|
63
|
+
(0, _get2["default"])((0, _getPrototypeOf2["default"])(ConfigNumber.prototype), "componentDidMount", this).call(this);
|
|
64
|
+
|
|
65
|
+
var value = _ConfigGeneric2["default"].getValue(this.props.data, this.props.attr);
|
|
66
|
+
|
|
67
|
+
this.setState({
|
|
68
|
+
value: value
|
|
69
|
+
}); //this.props.registerOnForceUpdate(this.props.attr, this.onUpdate);
|
|
70
|
+
}
|
|
71
|
+
}, {
|
|
72
|
+
key: "renderItem",
|
|
73
|
+
value: function renderItem(error, disabled, defaultValue) {
|
|
74
|
+
var _this = this;
|
|
75
|
+
|
|
76
|
+
var isIndeterminate = Array.isArray(this.state.value) || this.state.value === _ConfigGeneric2["default"].DIFFERENT_LABEL;
|
|
77
|
+
|
|
78
|
+
if (isIndeterminate) {
|
|
79
|
+
var arr = (0, _toConsumableArray2["default"])(this.state.value).map(function (item) {
|
|
80
|
+
return {
|
|
81
|
+
label: item.toString(),
|
|
82
|
+
value: item
|
|
83
|
+
};
|
|
84
|
+
});
|
|
85
|
+
arr.unshift({
|
|
86
|
+
label: _ConfigGeneric2["default"].DIFFERENT_LABEL,
|
|
87
|
+
value: _ConfigGeneric2["default"].DIFFERENT_VALUE
|
|
88
|
+
});
|
|
89
|
+
return /*#__PURE__*/_react["default"].createElement(_material.Autocomplete, {
|
|
90
|
+
className: this.props.classes.indeterminate,
|
|
91
|
+
fullWidth: true,
|
|
92
|
+
value: arr[0],
|
|
93
|
+
getOptionSelected: function getOptionSelected(option, value) {
|
|
94
|
+
return option.label === value.label;
|
|
95
|
+
},
|
|
96
|
+
onChange: function onChange(_, value) {
|
|
97
|
+
return _this.onChange(_this.props.attr, value ? parseFloat(value.value) : _this.props.schema.min || 0);
|
|
98
|
+
},
|
|
99
|
+
options: arr,
|
|
100
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
101
|
+
return option.label;
|
|
102
|
+
},
|
|
103
|
+
renderInput: function renderInput(params) {
|
|
104
|
+
return /*#__PURE__*/_react["default"].createElement(_material.TextField, (0, _extends2["default"])({
|
|
105
|
+
variant: "standard"
|
|
106
|
+
}, params, {
|
|
107
|
+
error: !!error,
|
|
108
|
+
placeholder: _this.getText(_this.props.schema.placeholder),
|
|
109
|
+
label: _this.getText(_this.props.schema.label),
|
|
110
|
+
helperText: _this.renderHelp(_this.props.schema.help, _this.props.schema.helpLink, _this.props.schema.noTranslation),
|
|
111
|
+
disabled: !!disabled
|
|
112
|
+
}));
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
} else {
|
|
116
|
+
if (!error && this.state.value !== null && this.state.value !== undefined) {
|
|
117
|
+
if (this.props.schema.min !== undefined && this.state.value < this.props.schema.min) {
|
|
118
|
+
error = _i18n["default"].t('Too small');
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (this.props.schema.max !== undefined && this.state.value > this.props.schema.max) {
|
|
122
|
+
error = _i18n["default"].t('Too big');
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return /*#__PURE__*/_react["default"].createElement(_material.TextField, {
|
|
127
|
+
variant: "standard",
|
|
128
|
+
type: "number",
|
|
129
|
+
fullWidth: true,
|
|
130
|
+
inputProps: {
|
|
131
|
+
min: this.props.schema.min,
|
|
132
|
+
max: this.props.schema.max,
|
|
133
|
+
step: this.props.schema.step
|
|
134
|
+
},
|
|
135
|
+
value: this.state.value === null || this.state.value === undefined ? '' : this.state.value,
|
|
136
|
+
error: !!error,
|
|
137
|
+
disabled: !!disabled,
|
|
138
|
+
onChange: function onChange(e) {
|
|
139
|
+
var value = e.target.value;
|
|
140
|
+
|
|
141
|
+
if (_this.props.schema.min !== undefined && value < _this.props.schema.min) {
|
|
142
|
+
_this.onError(_this.props.attr, _i18n["default"].t('Too small'));
|
|
143
|
+
} else if (_this.props.schema.max !== undefined && value > _this.props.schema.max) {
|
|
144
|
+
_this.onError(_this.props.attr, _i18n["default"].t('Too big'));
|
|
145
|
+
} else {
|
|
146
|
+
_this.onError(_this.props.attr); // clear error
|
|
147
|
+
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
_this.setState({
|
|
151
|
+
value: value
|
|
152
|
+
}, function () {
|
|
153
|
+
return _this.onChange(_this.props.attr, parseFloat(value) || 0);
|
|
154
|
+
});
|
|
155
|
+
},
|
|
156
|
+
placeholder: this.getText(this.props.schema.placeholder),
|
|
157
|
+
label: this.getText(this.props.schema.label),
|
|
158
|
+
helperText: error && typeof error === 'string' ? error : this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation)
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}], [{
|
|
163
|
+
key: "getDerivedStateFromProps",
|
|
164
|
+
value: function getDerivedStateFromProps(props, state) {
|
|
165
|
+
var value = _ConfigGeneric2["default"].getValue(props.data, props.attr);
|
|
166
|
+
|
|
167
|
+
if (value === null || value === undefined || value.toString() !== parseFloat(state.value).toString()) {
|
|
168
|
+
return {
|
|
169
|
+
value: value
|
|
170
|
+
};
|
|
171
|
+
} else {
|
|
172
|
+
return null;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}]);
|
|
176
|
+
return ConfigNumber;
|
|
177
|
+
}(_ConfigGeneric2["default"]);
|
|
178
|
+
|
|
179
|
+
ConfigNumber.propTypes = {
|
|
180
|
+
socket: _propTypes["default"].object.isRequired,
|
|
181
|
+
themeType: _propTypes["default"].string,
|
|
182
|
+
themeName: _propTypes["default"].string,
|
|
183
|
+
style: _propTypes["default"].object,
|
|
184
|
+
className: _propTypes["default"].string,
|
|
185
|
+
data: _propTypes["default"].object.isRequired,
|
|
186
|
+
schema: _propTypes["default"].object,
|
|
187
|
+
onError: _propTypes["default"].func,
|
|
188
|
+
onChange: _propTypes["default"].func
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
var _default = (0, _styles.withStyles)(styles)(ConfigNumber);
|
|
192
|
+
|
|
193
|
+
exports["default"] = _default;
|
|
194
|
+
//# sourceMappingURL=ConfigNumber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigNumber.js","names":["styles","theme","indeterminate","opacity","ConfigNumber","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","parseFloat","schema","min","params","getText","placeholder","renderHelp","help","helpLink","noTranslation","undefined","I18n","t","max","step","e","target","onError","propTypes","socket","PropTypes","object","isRequired","themeType","string","themeName","style","className","func","withStyles"],"sources":["JsonConfigComponent/ConfigNumber.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 I18n from '@iobroker/adapter-react-v5/i18n';\n\nimport ConfigGeneric from './ConfigGeneric';\n\nconst styles = theme => ({\n indeterminate: {\n opacity: 0.5\n }\n});\n\nclass ConfigNumber extends ConfigGeneric {\n componentDidMount() {\n super.componentDidMount();\n const value = ConfigGeneric.getValue(this.props.data, this.props.attr);\n this.setState({value});\n //this.props.registerOnForceUpdate(this.props.attr, this.onUpdate);\n }\n\n static getDerivedStateFromProps(props, state) {\n const value = ConfigGeneric.getValue(props.data, props.attr);\n if (value === null || value === undefined || value.toString() !== parseFloat(state.value).toString()) {\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 ? parseFloat(value.value) : this.props.schema.min || 0)}\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 if (!error && this.state.value !== null && this.state.value !== undefined) {\n if (this.props.schema.min !== undefined && this.state.value < this.props.schema.min) {\n error = I18n.t('Too small');\n }\n if (this.props.schema.max !== undefined && this.state.value > this.props.schema.max) {\n error = I18n.t('Too big');\n }\n }\n\n return <TextField\n variant=\"standard\"\n type=\"number\"\n fullWidth\n inputProps={{min: this.props.schema.min, max: this.props.schema.max, step: this.props.schema.step}}\n value={this.state.value === null || this.state.value === undefined ? '' : this.state.value}\n error={!!error}\n disabled={!!disabled}\n onChange={e => {\n const value = e.target.value;\n if (this.props.schema.min !== undefined && value < this.props.schema.min) {\n this.onError(this.props.attr, I18n.t('Too small'));\n } else if (this.props.schema.max !== undefined && value > this.props.schema.max) {\n this.onError(this.props.attr, I18n.t('Too big'));\n } else {\n this.onError(this.props.attr); // clear error\n }\n this.setState({value}, () => this.onChange(this.props.attr, parseFloat(value) || 0));\n }}\n placeholder={this.getText(this.props.schema.placeholder)}\n label={this.getText(this.props.schema.label)}\n helperText={error && typeof error === 'string' ? error : this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation)}\n />;\n }\n }\n}\n\nConfigNumber.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)(ConfigNumber);"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAEA;;AAEA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;EAAA,OAAK;IACrBC,aAAa,EAAE;MACXC,OAAO,EAAE;IADE;EADM,CAAL;AAAA,CAApB;;IAMMC,Y;;;;;;;;;;;;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;QAACN,KAAK,EAALA;MAAD,CAAd,EAHgB,CAIhB;IACH;;;WAWD,oBAAWO,KAAX,EAAkBC,QAAlB,EAA4BC,YAA5B,EAA0C;MAAA;;MACtC,IAAIC,eAAe,GAAGC,KAAK,CAACC,OAAN,CAAc,KAAKC,KAAL,CAAWb,KAAzB,KAAmC,KAAKa,KAAL,CAAWb,KAAX,KAAqBC,0BAAA,CAAca,eAA5F;;MAEA,IAAIJ,eAAJ,EAAqB;QACjB,IAAMK,GAAG,GAAG,oCAAI,KAAKF,KAAL,CAAWb,KAAf,EAAsBgB,GAAt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;EASrB7B,QAAQ,EAAEqB,qBAAA,CAAUQ;AATC,CAAzB;;eAYe,IAAAC,kBAAA,EAAW5D,MAAX,EAAmBI,YAAnB,C"}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
+
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
|
+
|
|
14
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
15
|
+
|
|
16
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
17
|
+
|
|
18
|
+
var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));
|
|
19
|
+
|
|
20
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
21
|
+
|
|
22
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
23
|
+
|
|
24
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
25
|
+
|
|
26
|
+
var _react = _interopRequireDefault(require("react"));
|
|
27
|
+
|
|
28
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
29
|
+
|
|
30
|
+
var _styles = require("@mui/styles");
|
|
31
|
+
|
|
32
|
+
var _InputLabel = _interopRequireDefault(require("@mui/material/InputLabel"));
|
|
33
|
+
|
|
34
|
+
var _FormControl = _interopRequireDefault(require("@mui/material/FormControl"));
|
|
35
|
+
|
|
36
|
+
var _material = require("@mui/material");
|
|
37
|
+
|
|
38
|
+
var _SelectID = _interopRequireDefault(require("@iobroker/adapter-react-v5/Dialogs/SelectID"));
|
|
39
|
+
|
|
40
|
+
var _ConfigGeneric2 = _interopRequireDefault(require("./ConfigGeneric"));
|
|
41
|
+
|
|
42
|
+
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); }; }
|
|
43
|
+
|
|
44
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
45
|
+
|
|
46
|
+
var styles = function styles(theme) {
|
|
47
|
+
return {
|
|
48
|
+
fullWidth: {
|
|
49
|
+
width: '100%'
|
|
50
|
+
},
|
|
51
|
+
flex: {
|
|
52
|
+
display: 'flex'
|
|
53
|
+
},
|
|
54
|
+
button: {
|
|
55
|
+
height: 48,
|
|
56
|
+
marginLeft: 4,
|
|
57
|
+
minWidth: 48
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
var ConfigObjectId = /*#__PURE__*/function (_ConfigGeneric) {
|
|
63
|
+
(0, _inherits2["default"])(ConfigObjectId, _ConfigGeneric);
|
|
64
|
+
|
|
65
|
+
var _super = _createSuper(ConfigObjectId);
|
|
66
|
+
|
|
67
|
+
function ConfigObjectId() {
|
|
68
|
+
(0, _classCallCheck2["default"])(this, ConfigObjectId);
|
|
69
|
+
return _super.apply(this, arguments);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
(0, _createClass2["default"])(ConfigObjectId, [{
|
|
73
|
+
key: "componentDidMount",
|
|
74
|
+
value: function () {
|
|
75
|
+
var _componentDidMount = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
76
|
+
var _this$props, data, attr, value;
|
|
77
|
+
|
|
78
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
79
|
+
while (1) {
|
|
80
|
+
switch (_context.prev = _context.next) {
|
|
81
|
+
case 0:
|
|
82
|
+
(0, _get2["default"])((0, _getPrototypeOf2["default"])(ConfigObjectId.prototype), "componentDidMount", this).call(this);
|
|
83
|
+
_this$props = this.props, data = _this$props.data, attr = _this$props.attr;
|
|
84
|
+
value = _ConfigGeneric2["default"].getValue(data, attr) || '';
|
|
85
|
+
this.setState({
|
|
86
|
+
value: value,
|
|
87
|
+
initialized: true
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
case 4:
|
|
91
|
+
case "end":
|
|
92
|
+
return _context.stop();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}, _callee, this);
|
|
96
|
+
}));
|
|
97
|
+
|
|
98
|
+
function componentDidMount() {
|
|
99
|
+
return _componentDidMount.apply(this, arguments);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return componentDidMount;
|
|
103
|
+
}()
|
|
104
|
+
}, {
|
|
105
|
+
key: "renderItem",
|
|
106
|
+
value: function renderItem(error, disabled, defaultValue) {
|
|
107
|
+
var _this = this;
|
|
108
|
+
|
|
109
|
+
if (!this.state.initialized) {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
var _this$props2 = this.props,
|
|
114
|
+
classes = _this$props2.classes,
|
|
115
|
+
schema = _this$props2.schema,
|
|
116
|
+
socket = _this$props2.socket,
|
|
117
|
+
attr = _this$props2.attr;
|
|
118
|
+
var _this$state = this.state,
|
|
119
|
+
value = _this$state.value,
|
|
120
|
+
showSelectId = _this$state.showSelectId;
|
|
121
|
+
return /*#__PURE__*/_react["default"].createElement(_FormControl["default"], {
|
|
122
|
+
className: classes.fullWidth,
|
|
123
|
+
variant: "standard"
|
|
124
|
+
}, /*#__PURE__*/_react["default"].createElement(_InputLabel["default"], {
|
|
125
|
+
shrink: true
|
|
126
|
+
}, this.getText(schema.label)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
127
|
+
className: classes.flex
|
|
128
|
+
}, /*#__PURE__*/_react["default"].createElement(_material.TextField, {
|
|
129
|
+
variant: "standard",
|
|
130
|
+
fullWidth: true,
|
|
131
|
+
value: value,
|
|
132
|
+
error: !!error,
|
|
133
|
+
disabled: disabled,
|
|
134
|
+
placeholder: this.getText(schema.placeholder),
|
|
135
|
+
label: this.getText(schema.label),
|
|
136
|
+
helperText: this.renderHelp(schema.help, schema.helpLink, schema.noTranslation),
|
|
137
|
+
onChange: function onChange(e) {
|
|
138
|
+
var value = e.target.value;
|
|
139
|
+
|
|
140
|
+
_this.setState({
|
|
141
|
+
value: value
|
|
142
|
+
}, function () {
|
|
143
|
+
return _this.onChange(attr, value);
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
}), /*#__PURE__*/_react["default"].createElement(_material.Button, {
|
|
147
|
+
color: "grey",
|
|
148
|
+
className: this.props.classes.button,
|
|
149
|
+
size: "small",
|
|
150
|
+
variant: "outlined",
|
|
151
|
+
onClick: function onClick() {
|
|
152
|
+
return _this.setState({
|
|
153
|
+
showSelectId: true
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
}, "...")), showSelectId ? /*#__PURE__*/_react["default"].createElement(_SelectID["default"], {
|
|
157
|
+
imagePrefix: "../..",
|
|
158
|
+
dateFormat: this.props.dateFormat,
|
|
159
|
+
isFloatComma: this.props.isFloatComma,
|
|
160
|
+
dialogName: 'admin.' + this.props.adapterName,
|
|
161
|
+
themeType: this.props.themeType,
|
|
162
|
+
socket: socket,
|
|
163
|
+
statesOnly: schema.all === undefined ? true : schema.all,
|
|
164
|
+
selected: value,
|
|
165
|
+
onClose: function onClose() {
|
|
166
|
+
return _this.setState({
|
|
167
|
+
showSelectId: false
|
|
168
|
+
});
|
|
169
|
+
},
|
|
170
|
+
onOk: function onOk(value) {
|
|
171
|
+
return _this.setState({
|
|
172
|
+
showSelectId: false,
|
|
173
|
+
value: value
|
|
174
|
+
}, function () {
|
|
175
|
+
return _this.onChange(attr, value);
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
}) : null);
|
|
179
|
+
}
|
|
180
|
+
}]);
|
|
181
|
+
return ConfigObjectId;
|
|
182
|
+
}(_ConfigGeneric2["default"]);
|
|
183
|
+
|
|
184
|
+
ConfigObjectId.propTypes = {
|
|
185
|
+
socket: _propTypes["default"].object.isRequired,
|
|
186
|
+
themeType: _propTypes["default"].string,
|
|
187
|
+
themeName: _propTypes["default"].string,
|
|
188
|
+
style: _propTypes["default"].object,
|
|
189
|
+
className: _propTypes["default"].string,
|
|
190
|
+
data: _propTypes["default"].object.isRequired,
|
|
191
|
+
schema: _propTypes["default"].object,
|
|
192
|
+
onError: _propTypes["default"].func,
|
|
193
|
+
onChange: _propTypes["default"].func,
|
|
194
|
+
dateFormat: _propTypes["default"].string,
|
|
195
|
+
isFloatComma: _propTypes["default"].bool
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
var _default = (0, _styles.withStyles)(styles)(ConfigObjectId);
|
|
199
|
+
|
|
200
|
+
exports["default"] = _default;
|
|
201
|
+
//# sourceMappingURL=ConfigObjectId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigObjectId.js","names":["styles","theme","fullWidth","width","flex","display","button","height","marginLeft","minWidth","ConfigObjectId","props","data","attr","value","ConfigGeneric","getValue","setState","initialized","error","disabled","defaultValue","state","classes","schema","socket","showSelectId","getText","label","placeholder","renderHelp","help","helpLink","noTranslation","e","target","onChange","dateFormat","isFloatComma","adapterName","themeType","all","undefined","propTypes","PropTypes","object","isRequired","string","themeName","style","className","onError","func","bool","withStyles"],"sources":["JsonConfigComponent/ConfigObjectId.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@mui/styles';\n\nimport InputLabel from '@mui/material/InputLabel';\nimport FormControl from '@mui/material/FormControl';\nimport { Button, TextField } from '@mui/material';\n\nimport DialogSelectID from '@iobroker/adapter-react-v5/Dialogs/SelectID';\n\nimport ConfigGeneric from './ConfigGeneric';\n\nconst styles = theme => ({\n fullWidth: {\n width: '100%'\n },\n flex: {\n display: 'flex'\n },\n button: {\n height: 48,\n marginLeft: 4,\n minWidth: 48,\n }\n});\n\nclass ConfigObjectId extends ConfigGeneric {\n async componentDidMount() {\n super.componentDidMount();\n const { data, attr } = this.props;\n const value = ConfigGeneric.getValue(data, attr) || '';\n this.setState({ value, initialized: true});\n }\n\n renderItem(error, disabled, defaultValue) {\n if (!this.state.initialized) {\n return null;\n }\n const { classes, schema, socket, attr } = this.props;\n const { value, showSelectId } = this.state;\n\n return <FormControl className={classes.fullWidth} variant=\"standard\">\n <InputLabel shrink>{this.getText(schema.label)}</InputLabel>\n <div className={classes.flex}>\n <TextField\n variant=\"standard\"\n fullWidth\n value={value}\n error={!!error}\n disabled={disabled}\n placeholder={this.getText(schema.placeholder)}\n label={this.getText(schema.label)}\n helperText={this.renderHelp(schema.help, schema.helpLink, schema.noTranslation)}\n onChange={e => {\n const value = e.target.value;\n this.setState({ value }, () =>\n this.onChange(attr, value))\n }}\n />\n <Button\n color=\"grey\"\n className={this.props.classes.button}\n size=\"small\"\n variant=\"outlined\"\n onClick={() => this.setState({ showSelectId: true })}\n >...</Button>\n </div>\n {showSelectId ? <DialogSelectID\n imagePrefix=\"../..\"\n dateFormat={this.props.dateFormat}\n isFloatComma={this.props.isFloatComma}\n dialogName={'admin.' + this.props.adapterName}\n themeType={this.props.themeType}\n socket={socket}\n statesOnly={schema.all === undefined ? true : schema.all}\n selected={value}\n onClose={() => this.setState({ showSelectId: false })}\n onOk={value =>\n this.setState({ showSelectId: false, value }, () =>\n this.onChange(attr, value))}\n /> : null}\n </FormControl>;\n }\n}\n\nConfigObjectId.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 dateFormat: PropTypes.string,\n isFloatComma: PropTypes.bool,\n};\n\nexport default withStyles(styles)(ConfigObjectId);"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AAEA;;AAEA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;EAAA,OAAK;IACrBC,SAAS,EAAE;MACPC,KAAK,EAAE;IADA,CADU;IAIrBC,IAAI,EAAE;MACFC,OAAO,EAAE;IADP,CAJe;IAOrBC,MAAM,EAAE;MACJC,MAAM,EAAE,EADJ;MAEJC,UAAU,EAAE,CAFR;MAGJC,QAAQ,EAAE;IAHN;EAPa,CAAL;AAAA,CAApB;;IAcMC,c;;;;;;;;;;;;;6GACF;QAAA;;QAAA;UAAA;YAAA;cAAA;gBACI;gBADJ,cAE2B,KAAKC,KAFhC,EAEYC,IAFZ,eAEYA,IAFZ,EAEkBC,IAFlB,eAEkBA,IAFlB;gBAGUC,KAHV,GAGkBC,0BAAA,CAAcC,QAAd,CAAuBJ,IAAvB,EAA6BC,IAA7B,KAAsC,EAHxD;gBAII,KAAKI,QAAL,CAAc;kBAAEH,KAAK,EAALA,KAAF;kBAASI,WAAW,EAAE;gBAAtB,CAAd;;cAJJ;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;WAOA,oBAAWC,KAAX,EAAkBC,QAAlB,EAA4BC,YAA5B,EAA0C;MAAA;;MACtC,IAAI,CAAC,KAAKC,KAAL,CAAWJ,WAAhB,EAA6B;QACzB,OAAO,IAAP;MACH;;MACD,mBAA0C,KAAKP,KAA/C;MAAA,IAAQY,OAAR,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