survey-react-ui 1.12.12 → 1.12.14

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.12",
3
+ "version": "1.12.14",
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.12",
24
+ "survey-core": "1.12.14",
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
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.12
2
+ * surveyjs - Survey JavaScript library v1.12.14
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.12
113
+ * surveyjs - Survey JavaScript library v1.12.14
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.12
1046
+ * surveyjs - Survey JavaScript library v1.12.14
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: 16 });
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: function (textarea) { return (_this.viewModel.setElement(textarea)); }, 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 } }));
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));
@@ -10537,7 +10549,7 @@ var list_item_content_ListItemContent = /** @class */ (function (_super) {
10537
10549
  content.push(text);
10538
10550
  }
10539
10551
  if (this.item.markerIconName) {
10540
- var icon = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(svg_icon_SvgIcon, { key: "marker", className: this.item.cssClasses.itemMarkerIcon, iconName: this.item.markerIconName, size: this.item.markerIconSize });
10552
+ var icon = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(svg_icon_SvgIcon, { key: "marker", className: this.item.cssClasses.itemMarkerIcon, iconName: this.item.markerIconName, size: "auto" });
10541
10553
  content.push(icon);
10542
10554
  }
10543
10555
  return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Fragment, null, content);
@@ -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.12", "survey-react-ui");
11323
+ Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.14", "survey-react-ui");
11312
11324
 
11313
11325
 
11314
11326
  /***/ }),