survey-react-ui 1.9.107 → 1.9.108

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.9.107",
3
+ "version": "1.9.108",
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": "survey-react-ui.d.ts",
23
23
  "dependencies": {
24
- "survey-core": "1.9.107",
24
+ "survey-core": "1.9.108",
25
25
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0",
26
26
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
27
27
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.107
2
+ * surveyjs - Survey JavaScript library v1.9.108
3
3
  * Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -696,7 +696,7 @@ __webpack_require__.r(__webpack_exports__);
696
696
 
697
697
 
698
698
 
699
- Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.107", "survey-react-ui");
699
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.108", "survey-react-ui");
700
700
 
701
701
 
702
702
  /***/ }),
@@ -3964,6 +3964,129 @@ var SurveyElementHeader = /** @class */ (function (_super) {
3964
3964
 
3965
3965
 
3966
3966
 
3967
+ /***/ }),
3968
+
3969
+ /***/ "./src/react/element.tsx":
3970
+ /*!*******************************!*\
3971
+ !*** ./src/react/element.tsx ***!
3972
+ \*******************************/
3973
+ /*! exports provided: SurveyRowElement */
3974
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3975
+
3976
+ "use strict";
3977
+ __webpack_require__.r(__webpack_exports__);
3978
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyRowElement", function() { return SurveyRowElement; });
3979
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
3980
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
3981
+ /* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reactquestion_element */ "./src/react/reactquestion_element.tsx");
3982
+ /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./element-factory */ "./src/react/element-factory.tsx");
3983
+ var __extends = (undefined && undefined.__extends) || (function () {
3984
+ var extendStatics = function (d, b) {
3985
+ extendStatics = Object.setPrototypeOf ||
3986
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3987
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
3988
+ return extendStatics(d, b);
3989
+ };
3990
+ return function (d, b) {
3991
+ if (typeof b !== "function" && b !== null)
3992
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
3993
+ extendStatics(d, b);
3994
+ function __() { this.constructor = d; }
3995
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3996
+ };
3997
+ })();
3998
+
3999
+
4000
+
4001
+ var SurveyRowElement = /** @class */ (function (_super) {
4002
+ __extends(SurveyRowElement, _super);
4003
+ function SurveyRowElement(props) {
4004
+ var _this = _super.call(this, props) || this;
4005
+ _this.element.cssClasses;
4006
+ return _this;
4007
+ }
4008
+ SurveyRowElement.prototype.getStateElement = function () {
4009
+ return this.element;
4010
+ };
4011
+ Object.defineProperty(SurveyRowElement.prototype, "element", {
4012
+ get: function () {
4013
+ return this.props.element;
4014
+ },
4015
+ enumerable: false,
4016
+ configurable: true
4017
+ });
4018
+ Object.defineProperty(SurveyRowElement.prototype, "index", {
4019
+ get: function () {
4020
+ return this.props.index;
4021
+ },
4022
+ enumerable: false,
4023
+ configurable: true
4024
+ });
4025
+ Object.defineProperty(SurveyRowElement.prototype, "row", {
4026
+ get: function () {
4027
+ return this.props.row;
4028
+ },
4029
+ enumerable: false,
4030
+ configurable: true
4031
+ });
4032
+ Object.defineProperty(SurveyRowElement.prototype, "survey", {
4033
+ get: function () {
4034
+ return this.props.survey;
4035
+ },
4036
+ enumerable: false,
4037
+ configurable: true
4038
+ });
4039
+ Object.defineProperty(SurveyRowElement.prototype, "creator", {
4040
+ get: function () {
4041
+ return this.props.creator;
4042
+ },
4043
+ enumerable: false,
4044
+ configurable: true
4045
+ });
4046
+ Object.defineProperty(SurveyRowElement.prototype, "css", {
4047
+ get: function () {
4048
+ return this.props.css;
4049
+ },
4050
+ enumerable: false,
4051
+ configurable: true
4052
+ });
4053
+ SurveyRowElement.prototype.shouldComponentUpdate = function (nextProps, nextState) {
4054
+ if (!_super.prototype.shouldComponentUpdate.call(this, nextProps, nextState))
4055
+ return false;
4056
+ this.element.cssClasses;
4057
+ return true;
4058
+ };
4059
+ SurveyRowElement.prototype.renderElement = function () {
4060
+ var element = this.element;
4061
+ var innerElement = this.createElement(element, this.index);
4062
+ var css = element.cssClassesValue;
4063
+ var focusIn = function () {
4064
+ var el = element;
4065
+ if (el && el.isQuestion) {
4066
+ el.focusIn();
4067
+ }
4068
+ };
4069
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: css.questionWrapper, style: element.rootStyle, "data-key": innerElement.key, key: innerElement.key, onFocus: focusIn }, this.row.isNeedRender ? innerElement : _element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.createElement(element.skeletonComponentName, { element: element, css: this.css, })));
4070
+ };
4071
+ SurveyRowElement.prototype.createElement = function (element, elementIndex) {
4072
+ var index = elementIndex ? "-" + elementIndex : 0;
4073
+ var elementType = element.getType();
4074
+ if (!_element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.isElementRegistered(elementType)) {
4075
+ elementType = "question";
4076
+ }
4077
+ return _element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.createElement(elementType, {
4078
+ key: element.name + index,
4079
+ element: element,
4080
+ creator: this.creator,
4081
+ survey: this.survey,
4082
+ css: this.css,
4083
+ });
4084
+ };
4085
+ return SurveyRowElement;
4086
+ }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["SurveyElementBase"]));
4087
+
4088
+
4089
+
3967
4090
  /***/ }),
3968
4091
 
3969
4092
  /***/ "./src/react/flow-panel.tsx":
@@ -5536,7 +5659,7 @@ var SurveyProgressButtons = /** @class */ (function (_super) {
5536
5659
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("li", { key: "listelement" + index, className: this.getListElementCss(index), onClick: this.isListElementClickable(index)
5537
5660
  ? function () { return _this.clickListElement(index); }
5538
5661
  : undefined },
5539
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsPageTitle, title: page.navigationTitle || page.name }, page.navigationTitle || page.name),
5662
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsPageTitle, title: page.renderedNavigationTitle }, page.renderedNavigationTitle),
5540
5663
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsPageDescription, title: page.navigationDescription }, page.navigationDescription)));
5541
5664
  };
5542
5665
  SurveyProgressButtons.prototype.isListElementClickable = function (index) {
@@ -6253,7 +6376,7 @@ var SurveyQuestionCheckbox = /** @class */ (function (_super) {
6253
6376
  SurveyQuestionCheckbox.prototype.renderElement = function () {
6254
6377
  var _this = this;
6255
6378
  var cssClasses = this.question.cssClasses;
6256
- return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("fieldset", { role: "presentation", className: this.question.getSelectBaseRootCss(), ref: function (fieldset) { return (_this.setControl(fieldset)); } },
6379
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("fieldset", { className: this.question.getSelectBaseRootCss(), ref: function (fieldset) { return (_this.setControl(fieldset)); }, role: this.question.a11y_input_ariaRole, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-describedby": this.question.a11y_input_ariaDescribedBy },
6257
6380
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("legend", { role: "presentation", className: "sv-hidden" }),
6258
6381
  this.getHeader(),
6259
6382
  this.question.hasColumns
@@ -6433,8 +6556,8 @@ var SurveyQuestionCheckboxItem = /** @class */ (function (_super) {
6433
6556
  : this.handleOnChange;
6434
6557
  var itemLabel = !this.hideCaption ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.cssClasses.controlLabel }, this.renderLocString(this.item.locText, this.textStyle)) : null;
6435
6558
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: itemClass, role: "presentation" },
6436
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { className: labelClass, "aria-label": this.question.getAriaItemLabel(this.item) },
6437
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { className: this.cssClasses.itemControl, role: "option", type: "checkbox", name: this.question.name, value: this.item.value != "selectall" ? this.item.value : undefined, id: id, style: this.inputStyle, disabled: !this.question.getItemEnabled(this.item), checked: isChecked, onChange: onItemChanged, "aria-describedby": this.question.ariaDescribedBy }),
6559
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { className: labelClass },
6560
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { className: this.cssClasses.itemControl, type: "checkbox", name: this.question.name, value: this.item.value != "selectall" ? this.item.value : undefined, id: id, style: this.inputStyle, disabled: !this.question.getItemEnabled(this.item), checked: isChecked, onChange: onItemChanged }),
6438
6561
  this.cssClasses.materialDecorator ?
6439
6562
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
6440
6563
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", { className: this.cssClasses.itemDecorator },
@@ -6563,7 +6686,7 @@ var SurveyQuestionCommentItem = /** @class */ (function (_super) {
6563
6686
  if (question.isReadOnlyRenderDiv()) {
6564
6687
  return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", null, comment);
6565
6688
  }
6566
- return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("textarea", { id: this.getId(), className: className, value: comment, disabled: this.isDisplayMode, maxLength: question.getOthersMaxLength(), placeholder: this.getPlaceholder(), onChange: handleOnChange, onBlur: function (e) { _this.onCommentChange(e); handleOnChange(e); }, onInput: function (e) { return _this.onCommentInput(e); }, "aria-required": question.isRequired, "aria-label": question.locTitle.renderedHtml, style: { resize: question.resizeStyle } }));
6689
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("textarea", { id: this.getId(), className: className, value: comment, disabled: this.isDisplayMode, maxLength: question.getOthersMaxLength(), placeholder: this.getPlaceholder(), onChange: handleOnChange, onBlur: function (e) { _this.onCommentChange(e); handleOnChange(e); }, onInput: function (e) { return _this.onCommentInput(e); }, "aria-required": question.isRequired || question.a11y_input_ariaRequired, "aria-label": question.ariaLabel || question.a11y_input_ariaLabel, style: { resize: question.resizeStyle } }));
6567
6690
  };
6568
6691
  return SurveyQuestionCommentItem;
6569
6692
  }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["ReactSurveyElement"]));
@@ -7324,7 +7447,7 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
7324
7447
  var fileDecorator = this.renderFileDecorator();
7325
7448
  var clearButton = this.question.showRemoveButton ? this.renderClearButton(this.question.cssClasses.removeButton) : null;
7326
7449
  var clearButtonBottom = this.question.showRemoveButtonBottom ? this.renderClearButton(this.question.cssClasses.removeButtonBottom) : null;
7327
- var mobileFileNavigator = this.question.mobileFileNavigatorVisible ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__["SurveyActionBar"], { model: this.question.mobileFileNavigator })) : null;
7450
+ var fileNavigator = this.question.fileNavigatorVisible ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__["SurveyActionBar"], { model: this.question.fileNavigator })) : null;
7328
7451
  fileInput = (this.isDisplayMode ?
7329
7452
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "file", disabled: this.isDisplayMode, className: !this.isDisplayMode ? this.question.cssClasses.fileInput : this.question.getReadOnlyFileCss(), id: this.question.inputId, ref: function (input) { return (_this.setControl(input)); }, style: !this.isDisplayMode ? {} : { color: "transparent" }, onChange: !this.isDisplayMode ? this.question.doChange : (function () { }), multiple: this.question.allowMultiple, placeholder: this.question.title, accept: this.question.acceptedTypes })
7330
7453
  :
@@ -7336,7 +7459,7 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
7336
7459
  clearButton,
7337
7460
  preview,
7338
7461
  clearButtonBottom,
7339
- mobileFileNavigator)));
7462
+ fileNavigator)));
7340
7463
  };
7341
7464
  SurveyQuestionFile.prototype.renderFileDecorator = function () {
7342
7465
  var loadingIndicator = this.renderLoadingIndicator();
@@ -8297,7 +8420,7 @@ var SurveyQuestionMultipleText = /** @class */ (function (_super) {
8297
8420
  rows.push(this.renderRow(i, tableRows[i].cells, cssClasses));
8298
8421
  }
8299
8422
  }
8300
- return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("table", { className: cssClasses.root },
8423
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("table", { className: this.question.getQuestionRootCss() },
8301
8424
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("tbody", null, rows)));
8302
8425
  };
8303
8426
  SurveyQuestionMultipleText.prototype.renderCell = function (cell, cssClasses, index) {
@@ -8677,7 +8800,7 @@ var SurveyQuestionRadiogroup = /** @class */ (function (_super) {
8677
8800
  clearButton = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", null,
8678
8801
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "button", className: this.question.cssClasses.clearButton, onClick: function () { return _this.question.clearValue(); }, value: this.question.clearButtonCaption })));
8679
8802
  }
8680
- return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("fieldset", { className: this.question.getSelectBaseRootCss(), role: "presentation", ref: function (fieldset) { return (_this.setControl(fieldset)); } },
8803
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("fieldset", { className: this.question.getSelectBaseRootCss(), ref: function (fieldset) { return (_this.setControl(fieldset)); }, role: this.question.a11y_input_ariaRole, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-describedby": this.question.a11y_input_ariaDescribedBy },
8681
8804
  this.question.hasColumns
8682
8805
  ? this.getColumnedBody(cssClasses)
8683
8806
  : this.getBody(cssClasses),
@@ -8836,7 +8959,7 @@ var SurveyQuestionRadioItem = /** @class */ (function (_super) {
8836
8959
  var controlLabelClass = this.question.getControlLabelClass(this.item);
8837
8960
  var itemLabel = !this.hideCaption ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: controlLabelClass }, this.renderLocString(this.item.locText, this.textStyle)) : null;
8838
8961
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: itemClass, role: "presentation" },
8839
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { onMouseDown: this.handleOnMouseDown, className: labelClass, "aria-label": this.question.getAriaItemLabel(this.item) },
8962
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { onMouseDown: this.handleOnMouseDown, className: labelClass },
8840
8963
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { "aria-describedby": this.question.ariaDescribedBy, className: this.cssClasses.itemControl, id: this.question.getItemId(this.item), type: "radio", name: this.question.questionName, checked: this.isChecked, value: this.item.value, disabled: !this.question.getItemEnabled(this.item), onChange: this.handleOnChange }),
8841
8964
  this.cssClasses.materialDecorator ?
8842
8965
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
@@ -9490,8 +9613,9 @@ __webpack_require__.r(__webpack_exports__);
9490
9613
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
9491
9614
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
9492
9615
  /* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reactquestion_element */ "./src/react/reactquestion_element.tsx");
9493
- /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./element-factory */ "./src/react/element-factory.tsx");
9494
- /* harmony import */ var _reactsurveymodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactsurveymodel */ "./src/react/reactsurveymodel.tsx");
9616
+ /* harmony import */ var _element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./element */ "./src/react/element.tsx");
9617
+ /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./element-factory */ "./src/react/element-factory.tsx");
9618
+ /* harmony import */ var _reactsurveymodel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reactsurveymodel */ "./src/react/reactsurveymodel.tsx");
9495
9619
  var __extends = (undefined && undefined.__extends) || (function () {
9496
9620
  var extendStatics = function (d, b) {
9497
9621
  extendStatics = Object.setPrototypeOf ||
@@ -9511,6 +9635,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
9511
9635
 
9512
9636
 
9513
9637
 
9638
+
9514
9639
  var SurveyRow = /** @class */ (function (_super) {
9515
9640
  __extends(SurveyRow, _super);
9516
9641
  function SurveyRow(props) {
@@ -9558,23 +9683,17 @@ var SurveyRow = /** @class */ (function (_super) {
9558
9683
  };
9559
9684
  SurveyRow.prototype.renderElementContent = function () {
9560
9685
  var _this = this;
9561
- var elements = this.row.visibleElements.map(function (element, index) {
9562
- var innerElement = _this.createElement(element, index);
9563
- var css = element.cssClassesValue;
9564
- var focusIn = function () {
9565
- var el = element;
9566
- if (el && el.isQuestion) {
9567
- el.focusIn();
9568
- }
9569
- };
9570
- return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: css.questionWrapper, style: element.rootStyle, "data-key": innerElement.key, key: innerElement.key, onFocus: focusIn }, _this.row.isNeedRender ? innerElement : _element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.createElement(element.skeletonComponentName, { element: element, css: _this.css, })));
9686
+ var elements = this.row.visibleElements.map(function (element, elementIndex) {
9687
+ var index = elementIndex ? "-" + elementIndex : 0;
9688
+ var key = element.name + index;
9689
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_element__WEBPACK_IMPORTED_MODULE_2__["SurveyRowElement"], { element: element, index: elementIndex, row: _this.row, survey: _this.survey, creator: _this.creator, css: _this.css, key: key }));
9571
9690
  });
9572
9691
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { ref: this.rootRef, className: this.row.getRowCss() }, elements));
9573
9692
  };
9574
9693
  SurveyRow.prototype.renderElement = function () {
9575
9694
  var survey = this.survey;
9576
9695
  var content = this.renderElementContent();
9577
- var wrapper = _reactsurveymodel__WEBPACK_IMPORTED_MODULE_3__["ReactSurveyElementsWrapper"].wrapRow(survey, content, this.row);
9696
+ var wrapper = _reactsurveymodel__WEBPACK_IMPORTED_MODULE_4__["ReactSurveyElementsWrapper"].wrapRow(survey, content, this.row);
9578
9697
  return wrapper || content;
9579
9698
  };
9580
9699
  SurveyRow.prototype.componentDidMount = function () {
@@ -9609,10 +9728,10 @@ var SurveyRow = /** @class */ (function (_super) {
9609
9728
  SurveyRow.prototype.createElement = function (element, elementIndex) {
9610
9729
  var index = elementIndex ? "-" + elementIndex : 0;
9611
9730
  var elementType = element.getType();
9612
- if (!_element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.isElementRegistered(elementType)) {
9731
+ if (!_element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.isElementRegistered(elementType)) {
9613
9732
  elementType = "question";
9614
9733
  }
9615
- return _element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.createElement(elementType, {
9734
+ return _element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.createElement(elementType, {
9616
9735
  key: element.name + index,
9617
9736
  element: element,
9618
9737
  creator: this.creator,
@@ -10832,7 +10951,11 @@ var ResponsivityManager = /** @class */ (function () {
10832
10951
  setTimeout(function () { _this.process(); }, 1);
10833
10952
  };
10834
10953
  if (typeof ResizeObserver !== "undefined") {
10835
- this.resizeObserver = new ResizeObserver(function (_) { return _this.process(); });
10954
+ this.resizeObserver = new ResizeObserver(function (entries) {
10955
+ window.requestAnimationFrame(function () {
10956
+ _this.process();
10957
+ });
10958
+ });
10836
10959
  this.resizeObserver.observe(this.container.parentElement);
10837
10960
  }
10838
10961
  }