survey-react-ui 1.12.12 → 1.12.13
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.13",
|
|
4
4
|
"description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"typings": "./typings/src/entries/react-ui.d.ts",
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"survey-core": "1.12.
|
|
24
|
+
"survey-core": "1.12.13",
|
|
25
25
|
"react": "^16.5.0 || ^17.0.1 || ^18.2.0",
|
|
26
26
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.2.0"
|
|
27
27
|
}
|
package/survey-react-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.12.13
|
|
3
3
|
* Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -110,7 +110,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
110
110
|
/***/ (function(module, exports, __webpack_require__) {
|
|
111
111
|
|
|
112
112
|
/*!
|
|
113
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
113
|
+
* surveyjs - Survey JavaScript library v1.12.13
|
|
114
114
|
* Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
115
115
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
116
116
|
*/
|
|
@@ -1043,7 +1043,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
1043
1043
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1044
1044
|
|
|
1045
1045
|
/*!
|
|
1046
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
1046
|
+
* surveyjs - Survey JavaScript library v1.12.13
|
|
1047
1047
|
* Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
1048
1048
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
1049
1049
|
*/
|
|
@@ -3621,7 +3621,7 @@ var title_element_TitleElement = /** @class */ (function (_super) {
|
|
|
3621
3621
|
if (!this.element.getCssTitleExpandableSvg())
|
|
3622
3622
|
return null;
|
|
3623
3623
|
var iconName = this.element.isExpanded ? "icon-collapse-16x16" : "icon-expand-16x16";
|
|
3624
|
-
return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(svg_icon_SvgIcon, { className: this.element.getCssTitleExpandableSvg(), iconName: iconName, size:
|
|
3624
|
+
return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(svg_icon_SvgIcon, { className: this.element.getCssTitleExpandableSvg(), iconName: iconName, size: "auto" });
|
|
3625
3625
|
};
|
|
3626
3626
|
TitleElement.prototype.render = function () {
|
|
3627
3627
|
var element = this.element;
|
|
@@ -3733,6 +3733,7 @@ var text_area_TextAreaComponent = /** @class */ (function (_super) {
|
|
|
3733
3733
|
function TextAreaComponent(props) {
|
|
3734
3734
|
var _this = _super.call(this, props) || this;
|
|
3735
3735
|
_this.initialValue = _this.viewModel.getTextValue() || "";
|
|
3736
|
+
_this.textareaRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createRef();
|
|
3736
3737
|
return _this;
|
|
3737
3738
|
}
|
|
3738
3739
|
Object.defineProperty(TextAreaComponent.prototype, "viewModel", {
|
|
@@ -3745,9 +3746,20 @@ var text_area_TextAreaComponent = /** @class */ (function (_super) {
|
|
|
3745
3746
|
TextAreaComponent.prototype.canRender = function () {
|
|
3746
3747
|
return !!this.viewModel.question;
|
|
3747
3748
|
};
|
|
3749
|
+
TextAreaComponent.prototype.componentDidMount = function () {
|
|
3750
|
+
_super.prototype.componentDidMount.call(this);
|
|
3751
|
+
var el = this.textareaRef.current;
|
|
3752
|
+
if (!!el) {
|
|
3753
|
+
this.viewModel.setElement(el);
|
|
3754
|
+
}
|
|
3755
|
+
};
|
|
3756
|
+
TextAreaComponent.prototype.componentWillUnmount = function () {
|
|
3757
|
+
_super.prototype.componentWillUnmount.call(this);
|
|
3758
|
+
this.viewModel.resetElement();
|
|
3759
|
+
};
|
|
3748
3760
|
TextAreaComponent.prototype.renderElement = function () {
|
|
3749
3761
|
var _this = this;
|
|
3750
|
-
return (external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("textarea", { id: this.viewModel.id, className: this.viewModel.className, ref:
|
|
3762
|
+
return (external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("textarea", { id: this.viewModel.id, className: this.viewModel.className, ref: this.textareaRef, disabled: this.viewModel.isDisabledAttr, readOnly: this.viewModel.isReadOnlyAttr, rows: this.viewModel.rows, cols: this.viewModel.cols, placeholder: this.viewModel.placeholder, maxLength: this.viewModel.maxLength, defaultValue: this.initialValue, onChange: function (event) { _this.viewModel.onTextAreaInput(event); }, onFocus: function (event) { _this.viewModel.onTextAreaFocus(event); }, onBlur: function (event) { _this.viewModel.onTextAreaBlur(event); }, onKeyDown: function (event) { _this.viewModel.onTextAreaKeyDown(event); }, "aria-required": this.viewModel.ariaRequired, "aria-label": this.viewModel.ariaLabel, "aria-labelledby": this.viewModel.ariaLabelledBy, "aria-describedby": this.viewModel.ariaDescribedBy, "aria-invalid": this.viewModel.ariaInvalid, "aria-errormessage": this.viewModel.ariaErrormessage, style: { resize: this.viewModel.question.resizeStyle } }));
|
|
3751
3763
|
};
|
|
3752
3764
|
return TextAreaComponent;
|
|
3753
3765
|
}(reactquestion_element_SurveyElementBase));
|
|
@@ -11308,7 +11320,7 @@ ReactElementFactory.Instance.registerElement(external_root_Survey_commonjs2_surv
|
|
|
11308
11320
|
|
|
11309
11321
|
|
|
11310
11322
|
|
|
11311
|
-
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.
|
|
11323
|
+
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.13", "survey-react-ui");
|
|
11312
11324
|
|
|
11313
11325
|
|
|
11314
11326
|
/***/ }),
|