survey-react-ui 1.9.107 → 1.9.109

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.109",
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.109",
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.109
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.109", "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":
@@ -5151,7 +5274,8 @@ var Survey = /** @class */ (function (_super) {
5151
5274
  return null;
5152
5275
  var htmlValue = { __html: this.survey.processedCompletedHtml };
5153
5276
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null,
5154
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { dangerouslySetInnerHTML: htmlValue, className: this.survey.completedCss })));
5277
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { dangerouslySetInnerHTML: htmlValue, className: this.survey.completedCss }),
5278
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_10__["ComponentsContainer"], { survey: this.survey, container: "completePage", needRenderWrapper: false })));
5155
5279
  };
5156
5280
  Survey.prototype.renderCompletedBefore = function () {
5157
5281
  var htmlValue = { __html: this.survey.processedCompletedBeforeHtml };
@@ -5536,7 +5660,7 @@ var SurveyProgressButtons = /** @class */ (function (_super) {
5536
5660
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("li", { key: "listelement" + index, className: this.getListElementCss(index), onClick: this.isListElementClickable(index)
5537
5661
  ? function () { return _this.clickListElement(index); }
5538
5662
  : undefined },
5539
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsPageTitle, title: page.navigationTitle || page.name }, page.navigationTitle || page.name),
5663
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsPageTitle, title: page.renderedNavigationTitle }, page.renderedNavigationTitle),
5540
5664
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsPageDescription, title: page.navigationDescription }, page.navigationDescription)));
5541
5665
  };
5542
5666
  SurveyProgressButtons.prototype.isListElementClickable = function (index) {
@@ -6253,7 +6377,7 @@ var SurveyQuestionCheckbox = /** @class */ (function (_super) {
6253
6377
  SurveyQuestionCheckbox.prototype.renderElement = function () {
6254
6378
  var _this = this;
6255
6379
  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)); } },
6380
+ 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
6381
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("legend", { role: "presentation", className: "sv-hidden" }),
6258
6382
  this.getHeader(),
6259
6383
  this.question.hasColumns
@@ -6433,8 +6557,8 @@ var SurveyQuestionCheckboxItem = /** @class */ (function (_super) {
6433
6557
  : this.handleOnChange;
6434
6558
  var itemLabel = !this.hideCaption ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.cssClasses.controlLabel }, this.renderLocString(this.item.locText, this.textStyle)) : null;
6435
6559
  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 }),
6560
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { className: labelClass },
6561
+ 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
6562
  this.cssClasses.materialDecorator ?
6439
6563
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
6440
6564
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", { className: this.cssClasses.itemDecorator },
@@ -6563,7 +6687,7 @@ var SurveyQuestionCommentItem = /** @class */ (function (_super) {
6563
6687
  if (question.isReadOnlyRenderDiv()) {
6564
6688
  return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", null, comment);
6565
6689
  }
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 } }));
6690
+ 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
6691
  };
6568
6692
  return SurveyQuestionCommentItem;
6569
6693
  }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["ReactSurveyElement"]));
@@ -7324,7 +7448,7 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
7324
7448
  var fileDecorator = this.renderFileDecorator();
7325
7449
  var clearButton = this.question.showRemoveButton ? this.renderClearButton(this.question.cssClasses.removeButton) : null;
7326
7450
  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;
7451
+ 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
7452
  fileInput = (this.isDisplayMode ?
7329
7453
  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
7454
  :
@@ -7336,7 +7460,7 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
7336
7460
  clearButton,
7337
7461
  preview,
7338
7462
  clearButtonBottom,
7339
- mobileFileNavigator)));
7463
+ fileNavigator)));
7340
7464
  };
7341
7465
  SurveyQuestionFile.prototype.renderFileDecorator = function () {
7342
7466
  var loadingIndicator = this.renderLoadingIndicator();
@@ -8297,7 +8421,7 @@ var SurveyQuestionMultipleText = /** @class */ (function (_super) {
8297
8421
  rows.push(this.renderRow(i, tableRows[i].cells, cssClasses));
8298
8422
  }
8299
8423
  }
8300
- return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("table", { className: cssClasses.root },
8424
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("table", { className: this.question.getQuestionRootCss() },
8301
8425
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("tbody", null, rows)));
8302
8426
  };
8303
8427
  SurveyQuestionMultipleText.prototype.renderCell = function (cell, cssClasses, index) {
@@ -8677,7 +8801,7 @@ var SurveyQuestionRadiogroup = /** @class */ (function (_super) {
8677
8801
  clearButton = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", null,
8678
8802
  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
8803
  }
8680
- return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("fieldset", { className: this.question.getSelectBaseRootCss(), role: "presentation", ref: function (fieldset) { return (_this.setControl(fieldset)); } },
8804
+ 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
8805
  this.question.hasColumns
8682
8806
  ? this.getColumnedBody(cssClasses)
8683
8807
  : this.getBody(cssClasses),
@@ -8836,7 +8960,7 @@ var SurveyQuestionRadioItem = /** @class */ (function (_super) {
8836
8960
  var controlLabelClass = this.question.getControlLabelClass(this.item);
8837
8961
  var itemLabel = !this.hideCaption ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: controlLabelClass }, this.renderLocString(this.item.locText, this.textStyle)) : null;
8838
8962
  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) },
8963
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { onMouseDown: this.handleOnMouseDown, className: labelClass },
8840
8964
  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
8965
  this.cssClasses.materialDecorator ?
8842
8966
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
@@ -9490,8 +9614,9 @@ __webpack_require__.r(__webpack_exports__);
9490
9614
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
9491
9615
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
9492
9616
  /* 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");
9617
+ /* harmony import */ var _element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./element */ "./src/react/element.tsx");
9618
+ /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./element-factory */ "./src/react/element-factory.tsx");
9619
+ /* harmony import */ var _reactsurveymodel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reactsurveymodel */ "./src/react/reactsurveymodel.tsx");
9495
9620
  var __extends = (undefined && undefined.__extends) || (function () {
9496
9621
  var extendStatics = function (d, b) {
9497
9622
  extendStatics = Object.setPrototypeOf ||
@@ -9511,6 +9636,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
9511
9636
 
9512
9637
 
9513
9638
 
9639
+
9514
9640
  var SurveyRow = /** @class */ (function (_super) {
9515
9641
  __extends(SurveyRow, _super);
9516
9642
  function SurveyRow(props) {
@@ -9558,23 +9684,17 @@ var SurveyRow = /** @class */ (function (_super) {
9558
9684
  };
9559
9685
  SurveyRow.prototype.renderElementContent = function () {
9560
9686
  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, })));
9687
+ var elements = this.row.visibleElements.map(function (element, elementIndex) {
9688
+ var index = elementIndex ? "-" + elementIndex : 0;
9689
+ var key = element.name + index;
9690
+ 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
9691
  });
9572
9692
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { ref: this.rootRef, className: this.row.getRowCss() }, elements));
9573
9693
  };
9574
9694
  SurveyRow.prototype.renderElement = function () {
9575
9695
  var survey = this.survey;
9576
9696
  var content = this.renderElementContent();
9577
- var wrapper = _reactsurveymodel__WEBPACK_IMPORTED_MODULE_3__["ReactSurveyElementsWrapper"].wrapRow(survey, content, this.row);
9697
+ var wrapper = _reactsurveymodel__WEBPACK_IMPORTED_MODULE_4__["ReactSurveyElementsWrapper"].wrapRow(survey, content, this.row);
9578
9698
  return wrapper || content;
9579
9699
  };
9580
9700
  SurveyRow.prototype.componentDidMount = function () {
@@ -9609,10 +9729,10 @@ var SurveyRow = /** @class */ (function (_super) {
9609
9729
  SurveyRow.prototype.createElement = function (element, elementIndex) {
9610
9730
  var index = elementIndex ? "-" + elementIndex : 0;
9611
9731
  var elementType = element.getType();
9612
- if (!_element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.isElementRegistered(elementType)) {
9732
+ if (!_element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.isElementRegistered(elementType)) {
9613
9733
  elementType = "question";
9614
9734
  }
9615
- return _element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.createElement(elementType, {
9735
+ return _element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.createElement(elementType, {
9616
9736
  key: element.name + index,
9617
9737
  element: element,
9618
9738
  creator: this.creator,
@@ -10832,7 +10952,11 @@ var ResponsivityManager = /** @class */ (function () {
10832
10952
  setTimeout(function () { _this.process(); }, 1);
10833
10953
  };
10834
10954
  if (typeof ResizeObserver !== "undefined") {
10835
- this.resizeObserver = new ResizeObserver(function (_) { return _this.process(); });
10955
+ this.resizeObserver = new ResizeObserver(function (entries) {
10956
+ window.requestAnimationFrame(function () {
10957
+ _this.process();
10958
+ });
10959
+ });
10836
10960
  this.resizeObserver.observe(this.container.parentElement);
10837
10961
  }
10838
10962
  }