@iobroker/adapter-react-v5 2.1.11 → 3.0.2
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/CustomModal.js +168 -0
- package/Components/CustomModal.js.map +1 -0
- 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/UploadImage.js +357 -0
- package/Components/UploadImage.js.map +1 -0
- package/README.md +3 -0
- package/package.json +3 -1
|
@@ -0,0 +1,236 @@
|
|
|
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 _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
+
|
|
12
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
+
|
|
14
|
+
var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));
|
|
15
|
+
|
|
16
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
17
|
+
|
|
18
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
19
|
+
|
|
20
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
21
|
+
|
|
22
|
+
var _react = _interopRequireDefault(require("react"));
|
|
23
|
+
|
|
24
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
25
|
+
|
|
26
|
+
var _styles = require("@mui/styles");
|
|
27
|
+
|
|
28
|
+
var _TextField = _interopRequireDefault(require("@mui/material/TextField"));
|
|
29
|
+
|
|
30
|
+
var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
|
|
31
|
+
|
|
32
|
+
var _InputAdornment = _interopRequireDefault(require("@mui/material/InputAdornment"));
|
|
33
|
+
|
|
34
|
+
var _Visibility = _interopRequireDefault(require("@mui/icons-material/Visibility"));
|
|
35
|
+
|
|
36
|
+
var _VisibilityOff = _interopRequireDefault(require("@mui/icons-material/VisibilityOff"));
|
|
37
|
+
|
|
38
|
+
var _i18n = _interopRequireDefault(require("@iobroker/adapter-react-v5/i18n"));
|
|
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
|
+
display: 'inline-block'
|
|
51
|
+
},
|
|
52
|
+
halfWidth1: {
|
|
53
|
+
width: "calc(50% - ".concat(theme.spacing(0.5), ")"),
|
|
54
|
+
display: 'inline-block',
|
|
55
|
+
marginRight: theme.spacing(1)
|
|
56
|
+
},
|
|
57
|
+
halfWidth2: {
|
|
58
|
+
width: "calc(50% - ".concat(theme.spacing(0.5), ")"),
|
|
59
|
+
display: 'inline-block'
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
var PASSWORD_PLACEHOLDER = '____ppp____';
|
|
65
|
+
|
|
66
|
+
var ConfigPassword = /*#__PURE__*/function (_ConfigGeneric) {
|
|
67
|
+
(0, _inherits2["default"])(ConfigPassword, _ConfigGeneric);
|
|
68
|
+
|
|
69
|
+
var _super = _createSuper(ConfigPassword);
|
|
70
|
+
|
|
71
|
+
function ConfigPassword() {
|
|
72
|
+
(0, _classCallCheck2["default"])(this, ConfigPassword);
|
|
73
|
+
return _super.apply(this, arguments);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
(0, _createClass2["default"])(ConfigPassword, [{
|
|
77
|
+
key: "componentDidMount",
|
|
78
|
+
value: function componentDidMount() {
|
|
79
|
+
(0, _get2["default"])((0, _getPrototypeOf2["default"])(ConfigPassword.prototype), "componentDidMount", this).call(this);
|
|
80
|
+
|
|
81
|
+
var value = _ConfigGeneric2["default"].getValue(this.props.data, this.props.attr);
|
|
82
|
+
|
|
83
|
+
this.setState({
|
|
84
|
+
_repeat: value ? PASSWORD_PLACEHOLDER : '',
|
|
85
|
+
_visible: false,
|
|
86
|
+
value: value ? PASSWORD_PLACEHOLDER : '',
|
|
87
|
+
_notEqual: false
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
91
|
+
key: "onChangePassword",
|
|
92
|
+
value: function onChangePassword(password, repeatPassword) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
|
|
95
|
+
if (password === undefined) {
|
|
96
|
+
password = this.state.value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (repeatPassword === undefined) {
|
|
100
|
+
repeatPassword = this.state._repeat;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
var _notEqual = this.props.schema.repeat && repeatPassword !== password;
|
|
104
|
+
|
|
105
|
+
this.setState({
|
|
106
|
+
value: password,
|
|
107
|
+
_repeat: repeatPassword,
|
|
108
|
+
_notEqual: _notEqual
|
|
109
|
+
}, function () {
|
|
110
|
+
if (_notEqual) {
|
|
111
|
+
_this.onError(_this.props.attr, _i18n["default"].t('Passwords are not equal!'));
|
|
112
|
+
} else {
|
|
113
|
+
_this.onError(_this.props.attr); // clear error
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
_this.onChange(_this.props.attr, password);
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
}, {
|
|
121
|
+
key: "renderItem",
|
|
122
|
+
value: function renderItem(error, disabled, defaultValue) {
|
|
123
|
+
var _this2 = this;
|
|
124
|
+
|
|
125
|
+
if (this.state._notEqual === undefined) {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
var password = /*#__PURE__*/_react["default"].createElement(_TextField["default"], {
|
|
130
|
+
variant: "standard",
|
|
131
|
+
fullWidth: true,
|
|
132
|
+
type: this.state._visible && this.state.value !== PASSWORD_PLACEHOLDER ? 'text' : 'password',
|
|
133
|
+
value: this.state.value,
|
|
134
|
+
error: !!error || this.state._notEqual,
|
|
135
|
+
disabled: !!disabled,
|
|
136
|
+
onChange: function onChange(e) {
|
|
137
|
+
return _this2.onChangePassword(e.target.value);
|
|
138
|
+
},
|
|
139
|
+
label: this.getText(this.props.schema.label),
|
|
140
|
+
inputProps: {
|
|
141
|
+
autoComplete: 'new-password',
|
|
142
|
+
form: {
|
|
143
|
+
autoComplete: 'off'
|
|
144
|
+
},
|
|
145
|
+
maxLength: this.props.schema.maxLength || this.props.schema.max || undefined
|
|
146
|
+
},
|
|
147
|
+
helperText: this.state._notEqual ? _i18n["default"].t('Passwords are not equal!') : this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation),
|
|
148
|
+
InputProps: {
|
|
149
|
+
endAdornment: this.state.value && this.state.value !== PASSWORD_PLACEHOLDER ? /*#__PURE__*/_react["default"].createElement(_InputAdornment["default"], {
|
|
150
|
+
position: "end"
|
|
151
|
+
}, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
152
|
+
size: "large",
|
|
153
|
+
tabIndex: -1,
|
|
154
|
+
onClick: function onClick(e) {
|
|
155
|
+
e.preventDefault();
|
|
156
|
+
e.stopPropagation();
|
|
157
|
+
|
|
158
|
+
_this2.setState({
|
|
159
|
+
_visible: !_this2.state._visible
|
|
160
|
+
});
|
|
161
|
+
},
|
|
162
|
+
edge: "end"
|
|
163
|
+
}, this.state._visible ? /*#__PURE__*/_react["default"].createElement(_VisibilityOff["default"], null) : /*#__PURE__*/_react["default"].createElement(_Visibility["default"], null))) : undefined
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
if (this.props.schema.repeat) {
|
|
168
|
+
var passwordRepeat = /*#__PURE__*/_react["default"].createElement(_TextField["default"], {
|
|
169
|
+
variant: "standard",
|
|
170
|
+
fullWidth: true,
|
|
171
|
+
type: this.state._visible && this.state._repeat !== PASSWORD_PLACEHOLDER ? 'text' : 'password',
|
|
172
|
+
value: this.state._repeat,
|
|
173
|
+
error: !!error || this.state._notEqual,
|
|
174
|
+
disabled: !!disabled,
|
|
175
|
+
onChange: function onChange(e) {
|
|
176
|
+
return _this2.onChangePassword(undefined, e.target.value);
|
|
177
|
+
},
|
|
178
|
+
label: "".concat(this.getText(this.props.schema.label), " (").concat(_i18n["default"].t('repeat'), ")"),
|
|
179
|
+
inputProps: {
|
|
180
|
+
autoComplete: 'new-password',
|
|
181
|
+
form: {
|
|
182
|
+
autoComplete: 'off'
|
|
183
|
+
},
|
|
184
|
+
maxLength: this.props.schema.maxLength || this.props.schema.max || undefined
|
|
185
|
+
},
|
|
186
|
+
helperText: this.state._notEqual ? _i18n["default"].t('Passwords are not equal!') : this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation),
|
|
187
|
+
InputProps: {
|
|
188
|
+
endAdornment: this.state._repeat && this.state._repeat !== PASSWORD_PLACEHOLDER ? /*#__PURE__*/_react["default"].createElement(_InputAdornment["default"], {
|
|
189
|
+
position: "end"
|
|
190
|
+
}, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
191
|
+
size: "large",
|
|
192
|
+
tabIndex: -1,
|
|
193
|
+
onClick: function onClick(e) {
|
|
194
|
+
e.preventDefault();
|
|
195
|
+
e.stopPropagation();
|
|
196
|
+
|
|
197
|
+
_this2.setState({
|
|
198
|
+
_visible: !_this2.state._visible
|
|
199
|
+
});
|
|
200
|
+
},
|
|
201
|
+
edge: "end"
|
|
202
|
+
}, this.state._visible ? /*#__PURE__*/_react["default"].createElement(_VisibilityOff["default"], null) : /*#__PURE__*/_react["default"].createElement(_Visibility["default"], null))) : undefined
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
207
|
+
className: this.props.classes.fullWidth
|
|
208
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
209
|
+
className: this.props.classes.halfWidth1
|
|
210
|
+
}, password), /*#__PURE__*/_react["default"].createElement("div", {
|
|
211
|
+
className: this.props.classes.halfWidth2
|
|
212
|
+
}, passwordRepeat));
|
|
213
|
+
} else {
|
|
214
|
+
return password;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}]);
|
|
218
|
+
return ConfigPassword;
|
|
219
|
+
}(_ConfigGeneric2["default"]);
|
|
220
|
+
|
|
221
|
+
ConfigPassword.propTypes = {
|
|
222
|
+
socket: _propTypes["default"].object.isRequired,
|
|
223
|
+
themeType: _propTypes["default"].string,
|
|
224
|
+
themeName: _propTypes["default"].string,
|
|
225
|
+
style: _propTypes["default"].object,
|
|
226
|
+
className: _propTypes["default"].string,
|
|
227
|
+
data: _propTypes["default"].object.isRequired,
|
|
228
|
+
schema: _propTypes["default"].object,
|
|
229
|
+
onError: _propTypes["default"].func,
|
|
230
|
+
onChange: _propTypes["default"].func
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
var _default = (0, _styles.withStyles)(styles)(ConfigPassword);
|
|
234
|
+
|
|
235
|
+
exports["default"] = _default;
|
|
236
|
+
//# sourceMappingURL=ConfigPassword.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigPassword.js","names":["styles","theme","fullWidth","width","display","halfWidth1","spacing","marginRight","halfWidth2","PASSWORD_PLACEHOLDER","ConfigPassword","value","ConfigGeneric","getValue","props","data","attr","setState","_repeat","_visible","_notEqual","password","repeatPassword","undefined","state","schema","repeat","onError","I18n","t","onChange","error","disabled","defaultValue","e","onChangePassword","target","getText","label","autoComplete","form","maxLength","max","renderHelp","help","helpLink","noTranslation","endAdornment","preventDefault","stopPropagation","passwordRepeat","classes","propTypes","socket","PropTypes","object","isRequired","themeType","string","themeName","style","className","func","withStyles"],"sources":["JsonConfigComponent/ConfigPassword.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@mui/styles';\n\nimport TextField from '@mui/material/TextField';\nimport IconButton from '@mui/material/IconButton';\nimport InputAdornment from '@mui/material/InputAdornment';\n\nimport Visibility from '@mui/icons-material/Visibility';\nimport VisibilityOff from '@mui/icons-material/VisibilityOff';\n\nimport I18n from '@iobroker/adapter-react-v5/i18n';\n\nimport ConfigGeneric from './ConfigGeneric';\n\nconst styles = theme => ({\n fullWidth: {\n width: '100%',\n display: 'inline-block'\n },\n halfWidth1: {\n width: `calc(50% - ${theme.spacing(0.5)})`,\n display: 'inline-block',\n marginRight: theme.spacing(1),\n },\n halfWidth2: {\n width: `calc(50% - ${theme.spacing(0.5)})`,\n display: 'inline-block'\n }\n});\n\nconst PASSWORD_PLACEHOLDER = '____ppp____';\n\nclass ConfigPassword extends ConfigGeneric {\n componentDidMount() {\n super.componentDidMount();\n const value = ConfigGeneric.getValue(this.props.data, this.props.attr);\n this.setState({\n _repeat: value ? PASSWORD_PLACEHOLDER : '',\n _visible: false,\n value: value ? PASSWORD_PLACEHOLDER : '',\n _notEqual: false\n });\n }\n\n onChangePassword(password, repeatPassword) {\n if (password === undefined) {\n password = this.state.value;\n }\n if (repeatPassword === undefined) {\n repeatPassword = this.state._repeat;\n }\n const _notEqual = this.props.schema.repeat && repeatPassword !== password;\n this.setState({value: password, _repeat: repeatPassword, _notEqual}, () => {\n if (_notEqual) {\n this.onError(this.props.attr, I18n.t('Passwords are not equal!'));\n } else {\n this.onError(this.props.attr); // clear error\n this.onChange(this.props.attr, password);\n }\n });\n }\n\n renderItem(error, disabled, defaultValue) {\n if (this.state._notEqual === undefined) {\n return null;\n }\n\n const password = <TextField\n variant=\"standard\"\n fullWidth\n type={this.state._visible && this.state.value !== PASSWORD_PLACEHOLDER ? 'text' : 'password'}\n value={this.state.value}\n error={!!error || this.state._notEqual}\n disabled={!!disabled}\n onChange={e => this.onChangePassword(e.target.value)}\n label={this.getText(this.props.schema.label)}\n inputProps={{\n autoComplete: 'new-password',\n form: {autoComplete: 'off'},\n maxLength: this.props.schema.maxLength || this.props.schema.max || undefined\n }}\n helperText={this.state._notEqual ? I18n.t('Passwords are not equal!') : this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation)}\n InputProps={{endAdornment: this.state.value && this.state.value !== PASSWORD_PLACEHOLDER ? <InputAdornment position='end'>\n <IconButton size=\"large\"\n tabIndex={-1}\n onClick={e => {\n e.preventDefault();\n e.stopPropagation();\n this.setState({_visible: !this.state._visible});\n }}\n edge='end'\n >\n {this.state._visible ? <VisibilityOff/> : <Visibility/>}\n </IconButton>\n </InputAdornment> : undefined\n }}\n />;\n\n if (this.props.schema.repeat) {\n const passwordRepeat = <TextField\n variant=\"standard\"\n fullWidth\n type={this.state._visible && this.state._repeat !== PASSWORD_PLACEHOLDER ? 'text' : 'password'}\n value={this.state._repeat}\n error={!!error || this.state._notEqual}\n disabled={!!disabled}\n onChange={e => this.onChangePassword(undefined, e.target.value)}\n label={`${this.getText(this.props.schema.label)} (${I18n.t('repeat')})`}\n inputProps={{\n autoComplete: 'new-password',\n form: {autoComplete: 'off'},\n maxLength: this.props.schema.maxLength || this.props.schema.max || undefined\n }}\n helperText={this.state._notEqual ? I18n.t('Passwords are not equal!') : this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation)}\n InputProps={{endAdornment: this.state._repeat && this.state._repeat !== PASSWORD_PLACEHOLDER ? <InputAdornment position='end'>\n <IconButton size=\"large\"\n tabIndex={-1}\n onClick={e => {\n e.preventDefault();\n e.stopPropagation();\n this.setState({_visible: !this.state._visible});\n }}\n edge='end'\n >\n {this.state._visible ? <VisibilityOff/> : <Visibility/>}\n </IconButton>\n </InputAdornment> : undefined\n }}\n />;\n\n return <div className={this.props.classes.fullWidth}>\n <div className={this.props.classes.halfWidth1}>{password}</div>\n <div className={this.props.classes.halfWidth2}>{passwordRepeat}</div>\n </div>;\n } else {\n return password;\n }\n }\n}\n\nConfigPassword.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)(Conf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CAA3B;;eAYe,IAAAC,kBAAA,EAAW/D,MAAX,EAAmBU,cAAnB,C"}
|
|
@@ -0,0 +1,94 @@
|
|
|
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 _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
+
|
|
12
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
+
|
|
14
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
+
|
|
16
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
17
|
+
|
|
18
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
19
|
+
|
|
20
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
21
|
+
|
|
22
|
+
var _styles = require("@mui/styles");
|
|
23
|
+
|
|
24
|
+
var _TextField = _interopRequireDefault(require("@mui/material/TextField"));
|
|
25
|
+
|
|
26
|
+
var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
|
|
27
|
+
|
|
28
|
+
var _ConfigGeneric2 = _interopRequireDefault(require("./ConfigGeneric"));
|
|
29
|
+
|
|
30
|
+
var _copyToClipboard = _interopRequireDefault(require("@iobroker/adapter-react-v5/Components/copy-to-clipboard"));
|
|
31
|
+
|
|
32
|
+
var _IconCopy = _interopRequireDefault(require("@iobroker/adapter-react-v5/icons/IconCopy"));
|
|
33
|
+
|
|
34
|
+
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); }; }
|
|
35
|
+
|
|
36
|
+
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; } }
|
|
37
|
+
|
|
38
|
+
var styles = function styles(theme) {
|
|
39
|
+
return {};
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
var ConfigPattern = /*#__PURE__*/function (_ConfigGeneric) {
|
|
43
|
+
(0, _inherits2["default"])(ConfigPattern, _ConfigGeneric);
|
|
44
|
+
|
|
45
|
+
var _super = _createSuper(ConfigPattern);
|
|
46
|
+
|
|
47
|
+
function ConfigPattern() {
|
|
48
|
+
(0, _classCallCheck2["default"])(this, ConfigPattern);
|
|
49
|
+
return _super.apply(this, arguments);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
(0, _createClass2["default"])(ConfigPattern, [{
|
|
53
|
+
key: "renderItem",
|
|
54
|
+
value: function renderItem(error, disabled) {
|
|
55
|
+
var _this = this;
|
|
56
|
+
|
|
57
|
+
return /*#__PURE__*/React.createElement(_TextField["default"], {
|
|
58
|
+
variant: "standard",
|
|
59
|
+
fullWidth: true,
|
|
60
|
+
disabled: !!disabled,
|
|
61
|
+
InputProps: {
|
|
62
|
+
endAdornment: this.props.schema.copyToClipboard ? /*#__PURE__*/React.createElement(_IconButton["default"], {
|
|
63
|
+
size: "small",
|
|
64
|
+
onClick: function onClick(e) {
|
|
65
|
+
(0, _copyToClipboard["default"])(_this.getPattern(_this.props.schema.pattern));
|
|
66
|
+
window.alert('Copied');
|
|
67
|
+
}
|
|
68
|
+
}, /*#__PURE__*/React.createElement(_IconCopy["default"], null)) : undefined
|
|
69
|
+
},
|
|
70
|
+
value: this.getPattern(this.props.schema.pattern),
|
|
71
|
+
label: this.getText(this.props.schema.label),
|
|
72
|
+
helperText: this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation)
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}]);
|
|
76
|
+
return ConfigPattern;
|
|
77
|
+
}(_ConfigGeneric2["default"]);
|
|
78
|
+
|
|
79
|
+
ConfigPattern.propTypes = {
|
|
80
|
+
socket: _propTypes["default"].object.isRequired,
|
|
81
|
+
themeType: _propTypes["default"].string,
|
|
82
|
+
themeName: _propTypes["default"].string,
|
|
83
|
+
style: _propTypes["default"].object,
|
|
84
|
+
className: _propTypes["default"].string,
|
|
85
|
+
data: _propTypes["default"].object.isRequired,
|
|
86
|
+
schema: _propTypes["default"].object,
|
|
87
|
+
onError: _propTypes["default"].func,
|
|
88
|
+
onChange: _propTypes["default"].func
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
var _default = (0, _styles.withStyles)(styles)(ConfigPattern);
|
|
92
|
+
|
|
93
|
+
exports["default"] = _default;
|
|
94
|
+
//# sourceMappingURL=ConfigPattern.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigPattern.js","names":["styles","theme","ConfigPattern","error","disabled","endAdornment","props","schema","copyToClipboard","e","copy","getPattern","pattern","window","alert","undefined","getText","label","renderHelp","help","helpLink","noTranslation","ConfigGeneric","propTypes","socket","PropTypes","object","isRequired","themeType","string","themeName","style","className","data","onError","func","onChange","withStyles"],"sources":["JsonConfigComponent/ConfigPattern.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport { withStyles } from '@mui/styles';\n\nimport TextField from '@mui/material/TextField';\n\nimport IconButton from '@mui/material/IconButton';\n\nimport ConfigGeneric from './ConfigGeneric';\n\nimport copy from '@iobroker/adapter-react-v5/Components/copy-to-clipboard';\nimport CopyIcon from '@iobroker/adapter-react-v5/icons/IconCopy';\n\nconst styles = theme => ({\n});\n\nclass ConfigPattern extends ConfigGeneric {\n renderItem(error, disabled) {\n return <TextField\n variant=\"standard\"\n fullWidth\n disabled={!!disabled}\n InputProps={{\n endAdornment: this.props.schema.copyToClipboard ?\n <IconButton\n size=\"small\"\n onClick={e => {\n copy(this.getPattern(this.props.schema.pattern));\n window.alert('Copied');\n }}>\n <CopyIcon/>\n </IconButton>\n : undefined,\n }}\n value={this.getPattern(this.props.schema.pattern)}\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\nConfigPattern.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)(ConfigPattern);"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AACA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;EAAA,OAAK,EAAL;AAAA,CAApB;;IAGMC,a;;;;;;;;;;;;WACF,oBAAWC,KAAX,EAAkBC,QAAlB,EAA4B;MAAA;;MACxB,oBAAO,oBAAC,qBAAD;QACH,OAAO,EAAC,UADL;QAEH,SAAS,MAFN;QAGH,QAAQ,EAAE,CAAC,CAACA,QAHT;QAIH,UAAU,EAAE;UACRC,YAAY,EAAE,KAAKC,KAAL,CAAWC,MAAX,CAAkBC,eAAlB,gBACV,oBAAC,sBAAD;YACI,IAAI,EAAC,OADT;YAEI,OAAO,EAAE,iBAAAC,CAAC,EAAI;cACV,IAAAC,2BAAA,EAAK,KAAI,CAACC,UAAL,CAAgB,KAAI,CAACL,KAAL,CAAWC,MAAX,CAAkBK,OAAlC,CAAL;cACAC,MAAM,CAACC,KAAP,CAAa,QAAb;YACH;UALL,gBAMI,oBAAC,oBAAD,OANJ,CADU,GASRC;QAVE,CAJT;QAgBH,KAAK,EAAE,KAAKJ,UAAL,CAAgB,KAAKL,KAAL,CAAWC,MAAX,CAAkBK,OAAlC,CAhBJ;QAiBH,KAAK,EAAE,KAAKI,OAAL,CAAa,KAAKV,KAAL,CAAWC,MAAX,CAAkBU,KAA/B,CAjBJ;QAkBH,UAAU,EAAE,KAAKC,UAAL,CAAgB,KAAKZ,KAAL,CAAWC,MAAX,CAAkBY,IAAlC,EAAwC,KAAKb,KAAL,CAAWC,MAAX,CAAkBa,QAA1D,EAAoE,KAAKd,KAAL,CAAWC,MAAX,CAAkBc,aAAtF;MAlBT,EAAP;IAoBH;;;EAtBuBC,0B;;AAyB5BpB,aAAa,CAACqB,SAAd,GAA0B;EACtBC,MAAM,EAAEC,qBAAA,CAAUC,MAAV,CAAiBC,UADH;EAEtBC,SAAS,EAAEH,qBAAA,CAAUI,MAFC;EAGtBC,SAAS,EAAEL,qBAAA,CAAUI,MAHC;EAItBE,KAAK,EAAEN,qBAAA,CAAUC,MAJK;EAKtBM,SAAS,EAAEP,qBAAA,CAAUI,MALC;EAMtBI,IAAI,EAAER,qBAAA,CAAUC,MAAV,CAAiBC,UAND;EAOtBpB,MAAM,EAAEkB,qBAAA,CAAUC,MAPI;EAQtBQ,OAAO,EAAET,qBAAA,CAAUU,IARG;EAStBC,QAAQ,EAAEX,qBAAA,CAAUU;AATE,CAA1B;;eAYe,IAAAE,kBAAA,EAAWrC,MAAX,EAAmBE,aAAnB,C"}
|
|
@@ -0,0 +1,163 @@
|
|
|
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 _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
|
+
|
|
12
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
|
+
|
|
14
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
15
|
+
|
|
16
|
+
var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));
|
|
17
|
+
|
|
18
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
19
|
+
|
|
20
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
21
|
+
|
|
22
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
23
|
+
|
|
24
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
25
|
+
|
|
26
|
+
var _styles = require("@mui/styles");
|
|
27
|
+
|
|
28
|
+
var _InputLabel = _interopRequireDefault(require("@mui/material/InputLabel"));
|
|
29
|
+
|
|
30
|
+
var _MenuItem = _interopRequireDefault(require("@mui/material/MenuItem"));
|
|
31
|
+
|
|
32
|
+
var _FormHelperText = _interopRequireDefault(require("@mui/material/FormHelperText"));
|
|
33
|
+
|
|
34
|
+
var _FormControl = _interopRequireDefault(require("@mui/material/FormControl"));
|
|
35
|
+
|
|
36
|
+
var _Select = _interopRequireDefault(require("@mui/material/Select"));
|
|
37
|
+
|
|
38
|
+
var _ConfigGeneric2 = _interopRequireDefault(require("./ConfigGeneric"));
|
|
39
|
+
|
|
40
|
+
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); }; }
|
|
41
|
+
|
|
42
|
+
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; } }
|
|
43
|
+
|
|
44
|
+
var styles = function styles(theme) {
|
|
45
|
+
return {
|
|
46
|
+
fullWidth: {
|
|
47
|
+
width: '100%'
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
var ConfigSelect = /*#__PURE__*/function (_ConfigGeneric) {
|
|
53
|
+
(0, _inherits2["default"])(ConfigSelect, _ConfigGeneric);
|
|
54
|
+
|
|
55
|
+
var _super = _createSuper(ConfigSelect);
|
|
56
|
+
|
|
57
|
+
function ConfigSelect() {
|
|
58
|
+
(0, _classCallCheck2["default"])(this, ConfigSelect);
|
|
59
|
+
return _super.apply(this, arguments);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
(0, _createClass2["default"])(ConfigSelect, [{
|
|
63
|
+
key: "componentDidMount",
|
|
64
|
+
value: function componentDidMount() {
|
|
65
|
+
(0, _get2["default"])((0, _getPrototypeOf2["default"])(ConfigSelect.prototype), "componentDidMount", this).call(this);
|
|
66
|
+
|
|
67
|
+
var value = _ConfigGeneric2["default"].getValue(this.props.data, this.props.attr);
|
|
68
|
+
|
|
69
|
+
var selectOptions = JSON.parse(JSON.stringify(this.props.schema.options)); // if __different
|
|
70
|
+
|
|
71
|
+
if (Array.isArray(value)) {
|
|
72
|
+
this.initialValue = (0, _toConsumableArray2["default"])(value);
|
|
73
|
+
selectOptions.unshift({
|
|
74
|
+
label: _ConfigGeneric2["default"].DIFFERENT_LABEL,
|
|
75
|
+
value: _ConfigGeneric2["default"].DIFFERENT_VALUE
|
|
76
|
+
});
|
|
77
|
+
this.setState({
|
|
78
|
+
value: _ConfigGeneric2["default"].DIFFERENT_VALUE,
|
|
79
|
+
selectOptions: selectOptions
|
|
80
|
+
});
|
|
81
|
+
} else {
|
|
82
|
+
this.setState({
|
|
83
|
+
value: value,
|
|
84
|
+
selectOptions: selectOptions
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}, {
|
|
89
|
+
key: "renderItem",
|
|
90
|
+
value: function renderItem(error, disabled, defaultValue) {
|
|
91
|
+
var _this = this;
|
|
92
|
+
|
|
93
|
+
if (!this.state.selectOptions) {
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
var selectOptions = (this.state.selectOptions || []).filter(function (item) {
|
|
98
|
+
if (!item.hidden) {
|
|
99
|
+
return true;
|
|
100
|
+
} else if (_this.props.custom) {
|
|
101
|
+
return !_this.executeCustom(item.hidden, _this.props.data, _this.props.customObj, _this.props.instanceObj);
|
|
102
|
+
} else {
|
|
103
|
+
return !_this.execute(item.hidden, _this.props.schema["default"], _this.props.data);
|
|
104
|
+
}
|
|
105
|
+
}); // eslint-disable-next-line
|
|
106
|
+
|
|
107
|
+
var item = selectOptions.find(function (item) {
|
|
108
|
+
return item.value == _this.state.value;
|
|
109
|
+
}); // let "==" be and not ===
|
|
110
|
+
|
|
111
|
+
return /*#__PURE__*/React.createElement(_FormControl["default"], {
|
|
112
|
+
variant: "standard",
|
|
113
|
+
className: this.props.classes.fullWidth,
|
|
114
|
+
id: "jsonSelect_".concat(this.props.schema.attr, "_").concat(this.props.index)
|
|
115
|
+
}, /*#__PURE__*/React.createElement(_InputLabel["default"], null, this.getText(this.props.schema.label)), /*#__PURE__*/React.createElement(_Select["default"], {
|
|
116
|
+
variant: "standard",
|
|
117
|
+
error: !!error,
|
|
118
|
+
disabled: !!disabled,
|
|
119
|
+
value: this.state.value || '_',
|
|
120
|
+
renderValue: function renderValue(val) {
|
|
121
|
+
return _this.getText(item === null || item === void 0 ? void 0 : item.label, _this.props.schema.noTranslation);
|
|
122
|
+
},
|
|
123
|
+
onChange: function onChange(e) {
|
|
124
|
+
_this.setState({
|
|
125
|
+
value: e.target.value === '_' ? '' : e.target.value
|
|
126
|
+
}, function () {
|
|
127
|
+
if (_this.state.value === _ConfigGeneric2["default"].DIFFERENT_VALUE) {
|
|
128
|
+
_this.onChange(_this.props.attr, _this.initialValue);
|
|
129
|
+
} else {
|
|
130
|
+
_this.onChange(_this.props.attr, _this.state.value);
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}, selectOptions.map(function (item) {
|
|
135
|
+
return /*#__PURE__*/React.createElement(_MenuItem["default"], {
|
|
136
|
+
key: item.value,
|
|
137
|
+
value: item.value,
|
|
138
|
+
style: item.value === _ConfigGeneric2["default"].DIFFERENT_VALUE ? {
|
|
139
|
+
opacity: 0.5
|
|
140
|
+
} : {}
|
|
141
|
+
}, _this.getText(item.label, _this.props.schema.noTranslation));
|
|
142
|
+
})), this.props.schema.help ? /*#__PURE__*/React.createElement(_FormHelperText["default"], null, this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation)) : null);
|
|
143
|
+
}
|
|
144
|
+
}]);
|
|
145
|
+
return ConfigSelect;
|
|
146
|
+
}(_ConfigGeneric2["default"]);
|
|
147
|
+
|
|
148
|
+
ConfigSelect.propTypes = {
|
|
149
|
+
socket: _propTypes["default"].object.isRequired,
|
|
150
|
+
themeType: _propTypes["default"].string,
|
|
151
|
+
themeName: _propTypes["default"].string,
|
|
152
|
+
style: _propTypes["default"].object,
|
|
153
|
+
className: _propTypes["default"].string,
|
|
154
|
+
data: _propTypes["default"].object.isRequired,
|
|
155
|
+
schema: _propTypes["default"].object,
|
|
156
|
+
onError: _propTypes["default"].func,
|
|
157
|
+
onChange: _propTypes["default"].func
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
var _default = (0, _styles.withStyles)(styles)(ConfigSelect);
|
|
161
|
+
|
|
162
|
+
exports["default"] = _default;
|
|
163
|
+
//# sourceMappingURL=ConfigSelect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigSelect.js","names":["styles","theme","fullWidth","width","ConfigSelect","value","ConfigGeneric","getValue","props","data","attr","selectOptions","JSON","parse","stringify","schema","options","Array","isArray","initialValue","unshift","label","DIFFERENT_LABEL","DIFFERENT_VALUE","setState","error","disabled","defaultValue","state","filter","item","hidden","custom","executeCustom","customObj","instanceObj","execute","find","classes","index","getText","val","noTranslation","e","target","onChange","map","opacity","help","renderHelp","helpLink","propTypes","socket","PropTypes","object","isRequired","themeType","string","themeName","style","className","onError","func","withStyles"],"sources":["JsonConfigComponent/ConfigSelect.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport { withStyles } from '@mui/styles';\n\nimport InputLabel from '@mui/material/InputLabel';\nimport MenuItem from '@mui/material/MenuItem';\nimport FormHelperText from '@mui/material/FormHelperText';\nimport FormControl from '@mui/material/FormControl';\nimport Select from '@mui/material/Select';\n\nimport ConfigGeneric from './ConfigGeneric';\n\nconst styles = theme => ({\n fullWidth: {\n width: '100%'\n }\n});\n\nclass ConfigSelect extends ConfigGeneric {\n componentDidMount() {\n super.componentDidMount();\n const value = ConfigGeneric.getValue(this.props.data, this.props.attr);\n\n const selectOptions = JSON.parse(JSON.stringify(this.props.schema.options));\n\n // if __different\n if (Array.isArray(value)) {\n this.initialValue = [...value];\n selectOptions.unshift({label: ConfigGeneric.DIFFERENT_LABEL, value: ConfigGeneric.DIFFERENT_VALUE});\n this.setState({value: ConfigGeneric.DIFFERENT_VALUE, selectOptions});\n } else {\n this.setState({value, selectOptions});\n }\n }\n\n renderItem(error, disabled, defaultValue) {\n if (!this.state.selectOptions) {\n return null;\n }\n\n const selectOptions = (this.state.selectOptions || []).filter(item => {\n if (!item.hidden) {\n return true;\n } else if (this.props.custom) {\n return !this.executeCustom(item.hidden, this.props.data, this.props.customObj, this.props.instanceObj);\n } else {\n return !this.execute(item.hidden, this.props.schema.default, this.props.data);\n }\n });\n\n // eslint-disable-next-line\n const item = selectOptions.find(item => item.value == this.state.value); // let \"==\" be and not ===\n\n return <FormControl variant=\"standard\" className={this.props.classes.fullWidth} id={`jsonSelect_${this.props.schema.attr}_${this.props.index}`}>\n <InputLabel>{this.getText(this.props.schema.label)}</InputLabel>\n <Select\n variant=\"standard\"\n error={!!error}\n disabled={!!disabled}\n value={this.state.value || '_'}\n renderValue={val => this.getText(item?.label, this.props.schema.noTranslation)}\n onChange={e => {\n this.setState({value: e.target.value === '_' ? '' : e.target.value}, () => {\n if (this.state.value === ConfigGeneric.DIFFERENT_VALUE) {\n this.onChange(this.props.attr, this.initialValue);\n } else {\n this.onChange(this.props.attr, this.state.value);\n }\n });\n }}\n >\n {selectOptions.map(item =>\n <MenuItem key={item.value} value={item.value} style={item.value === ConfigGeneric.DIFFERENT_VALUE ? {opacity: 0.5} : {}}>{this.getText(item.label, this.props.schema.noTranslation)}</MenuItem>)}\n </Select>\n {this.props.schema.help ? <FormHelperText>{this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation)}</FormHelperText> : null}\n </FormControl>;\n }\n}\n\nConfigSelect.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)(ConfigSelect);"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;EAAA,OAAK;IACrBC,SAAS,EAAE;MACPC,KAAK,EAAE;IADA;EADU,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;;MAEA,IAAMC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