educoreapp2 1.0.76 → 1.0.78
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.
@@ -167,6 +167,29 @@ class BaseInputString extends _react.Component {
|
|
167
167
|
});
|
168
168
|
}
|
169
169
|
}
|
170
|
+
renderText() {
|
171
|
+
let className3 = this.states.className2 + "";
|
172
|
+
if (this.isReadOnly) {
|
173
|
+
return /*#__PURE__*/_react.default.createElement(_reactstrap.Input, {
|
174
|
+
className: className3,
|
175
|
+
type: typ,
|
176
|
+
name: this.states.name,
|
177
|
+
readOnly: true,
|
178
|
+
id: this.states.id,
|
179
|
+
placeholder: this.states.placeholder,
|
180
|
+
onChange: this.handleChange
|
181
|
+
});
|
182
|
+
} else {
|
183
|
+
return /*#__PURE__*/_react.default.createElement("textarea", {
|
184
|
+
className: className3,
|
185
|
+
type: typ,
|
186
|
+
name: this.states.name,
|
187
|
+
id: this.states.id,
|
188
|
+
placeholder: this.states.placeholder,
|
189
|
+
onChange: this.handleChange
|
190
|
+
});
|
191
|
+
}
|
192
|
+
}
|
170
193
|
renderSelect() {
|
171
194
|
let className3 = "form-select " + this.states.className2 + "";
|
172
195
|
return /*#__PURE__*/_react.default.createElement("select", {
|
@@ -208,6 +231,9 @@ class BaseInputString extends _react.Component {
|
|
208
231
|
case "passwordNumber":
|
209
232
|
rendObj = this.renderString("password");
|
210
233
|
break;
|
234
|
+
case "text":
|
235
|
+
rendObj = this.renderText();
|
236
|
+
break;
|
211
237
|
case "select":
|
212
238
|
rendObj = this.renderSelect();
|
213
239
|
break;
|