survey-js-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-js-ui",
3
- "version": "1.12.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",
@@ -23,7 +23,7 @@
23
23
  "typings": "./typings/src/entries/js-ui.d.ts",
24
24
  "dependencies": {},
25
25
  "peerDependencies": {
26
- "survey-core": "1.12.12",
26
+ "survey-core": "1.12.13",
27
27
  "@types/react-dom": "*",
28
28
  "@types/react": "*"
29
29
  }
package/survey-js-ui.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.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.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.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
  */
@@ -3722,7 +3722,7 @@ var title_element_TitleElement = /** @class */ (function (_super) {
3722
3722
  if (!this.element.getCssTitleExpandableSvg())
3723
3723
  return null;
3724
3724
  var iconName = this.element.isExpanded ? "icon-collapse-16x16" : "icon-expand-16x16";
3725
- return xn.createElement(svg_icon_SvgIcon, { className: this.element.getCssTitleExpandableSvg(), iconName: iconName, size: 16 });
3725
+ return xn.createElement(svg_icon_SvgIcon, { className: this.element.getCssTitleExpandableSvg(), iconName: iconName, size: "auto" });
3726
3726
  };
3727
3727
  TitleElement.prototype.render = function () {
3728
3728
  var element = this.element;
@@ -3834,6 +3834,7 @@ var text_area_TextAreaComponent = /** @class */ (function (_super) {
3834
3834
  function TextAreaComponent(props) {
3835
3835
  var _this = _super.call(this, props) || this;
3836
3836
  _this.initialValue = _this.viewModel.getTextValue() || "";
3837
+ _this.textareaRef = xn.createRef();
3837
3838
  return _this;
3838
3839
  }
3839
3840
  Object.defineProperty(TextAreaComponent.prototype, "viewModel", {
@@ -3846,9 +3847,20 @@ var text_area_TextAreaComponent = /** @class */ (function (_super) {
3846
3847
  TextAreaComponent.prototype.canRender = function () {
3847
3848
  return !!this.viewModel.question;
3848
3849
  };
3850
+ TextAreaComponent.prototype.componentDidMount = function () {
3851
+ _super.prototype.componentDidMount.call(this);
3852
+ var el = this.textareaRef.current;
3853
+ if (!!el) {
3854
+ this.viewModel.setElement(el);
3855
+ }
3856
+ };
3857
+ TextAreaComponent.prototype.componentWillUnmount = function () {
3858
+ _super.prototype.componentWillUnmount.call(this);
3859
+ this.viewModel.resetElement();
3860
+ };
3849
3861
  TextAreaComponent.prototype.renderElement = function () {
3850
3862
  var _this = this;
3851
- return (xn.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 } }));
3863
+ return (xn.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 } }));
3852
3864
  };
3853
3865
  return TextAreaComponent;
3854
3866
  }(reactquestion_element_SurveyElementBase));
@@ -11481,7 +11493,7 @@ var preact = compat_module_namespaceObject;
11481
11493
 
11482
11494
 
11483
11495
 
11484
- Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.12", "survey-js-ui");
11496
+ Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.13", "survey-js-ui");
11485
11497
 
11486
11498
 
11487
11499
  /***/ }),