survey-react-ui 1.9.125 → 1.9.126

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.125",
3
+ "version": "1.9.126",
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",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.125
2
+ * surveyjs - Survey JavaScript library v1.9.126
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
  */
@@ -420,6 +420,20 @@ var Base = /** @class */ (function () {
420
420
  }
421
421
  return _helpers__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isValueEmpty(value);
422
422
  };
423
+ Base.prototype.equals = function (obj) {
424
+ if (!obj)
425
+ return false;
426
+ if (this.isDisposed || obj.isDisposed)
427
+ return false;
428
+ if (this.getType() != obj.getType())
429
+ return false;
430
+ return this.equalsCore(obj);
431
+ };
432
+ Base.prototype.equalsCore = function (obj) {
433
+ if (this.name !== obj.name)
434
+ return false;
435
+ return _helpers__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(this.toJSON(), obj.toJSON(), false, true, false);
436
+ };
423
437
  Base.prototype.trimValue = function (value) {
424
438
  if (!!value && (typeof value === "string" || value instanceof String))
425
439
  return value.trim();
@@ -2606,7 +2620,7 @@ __webpack_require__.r(__webpack_exports__);
2606
2620
 
2607
2621
 
2608
2622
 
2609
- Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.125", "survey-react-ui");
2623
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.126", "survey-react-ui");
2610
2624
 
2611
2625
 
2612
2626
  /***/ }),
@@ -6941,21 +6955,11 @@ var Helpers = /** @class */ (function () {
6941
6955
  return x == y;
6942
6956
  if (!Helpers.isValueObject(x) || !Helpers.isValueObject(y))
6943
6957
  return false;
6944
- if (x["equals"])
6958
+ if (x["equals"] && y["equals"])
6945
6959
  return x.equals(y);
6946
- if (!!x.toJSON && !!y.toJSON && !!x.getType && !!y.getType) {
6947
- if (x.isDisposed || y.isDisposed)
6948
- return false;
6949
- if (x.getType() !== y.getType())
6950
- return false;
6951
- if (!!x.name && x.name !== y.name)
6952
- return false;
6953
- return this.isTwoValueEquals(x.toJSON(), y.toJSON(), ignoreOrder, caseSensitive, trimStrings);
6954
- }
6955
- if (Array.isArray(x) && Array.isArray(y))
6960
+ if (Array.isArray(x) && Array.isArray(y)) {
6956
6961
  return Helpers.isArraysEqual(x, y, ignoreOrder, caseSensitive, trimStrings);
6957
- if (!!x.equalsTo && y.equalsTo)
6958
- return x.equalsTo(y);
6962
+ }
6959
6963
  for (var p in x) {
6960
6964
  if (!x.hasOwnProperty(p))
6961
6965
  continue;
@@ -11712,8 +11716,9 @@ var SurveyQuestionPanelDynamicAddButton = /** @class */ (function (_super) {
11712
11716
  SurveyQuestionPanelDynamicAddButton.prototype.renderElement = function () {
11713
11717
  if (!this.question.canAddPanel)
11714
11718
  return null;
11719
+ var btnText = this.renderLocString(this.question.locPanelAddText);
11715
11720
  return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", { type: "button", className: this.question.getAddButtonCss(), onClick: this.handleClick },
11716
- react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", { className: this.question.cssClasses.buttonAddText }, this.question.panelAddText)));
11721
+ react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", { className: this.question.cssClasses.buttonAddText }, btnText)));
11717
11722
  };
11718
11723
  return SurveyQuestionPanelDynamicAddButton;
11719
11724
  }(SurveyQuestionPanelDynamicAction));
@@ -11931,8 +11936,9 @@ var SurveyQuestionPanelDynamicRemoveButton = /** @class */ (function (_super) {
11931
11936
  return _this;
11932
11937
  }
11933
11938
  SurveyQuestionPanelDynamicRemoveButton.prototype.renderElement = function () {
11939
+ var btnText = this.renderLocString(this.question.locPanelRemoveText);
11934
11940
  return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", { className: this.question.getPanelRemoveButtonCss(), onClick: this.handleClick, type: "button" },
11935
- react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", { className: this.question.cssClasses.buttonRemoveText }, this.question.panelRemoveText),
11941
+ react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", { className: this.question.cssClasses.buttonRemoveText }, btnText),
11936
11942
  react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", { className: this.question.cssClasses.iconRemove })));
11937
11943
  };
11938
11944
  return SurveyQuestionPanelDynamicRemoveButton;
@@ -14575,11 +14581,10 @@ __webpack_require__.r(__webpack_exports__);
14575
14581
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyWindow", function() { return SurveyWindow; });
14576
14582
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
14577
14583
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14578
- /* harmony import */ var _reactSurvey__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reactSurvey */ "./src/react/reactSurvey.tsx");
14579
- /* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactquestion_element */ "./src/react/reactquestion_element.tsx");
14580
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-core */ "survey-core");
14581
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_3__);
14582
- /* harmony import */ var _components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/svg-icon/svg-icon */ "./src/react/components/svg-icon/svg-icon.tsx");
14584
+ /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
14585
+ /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
14586
+ /* harmony import */ var _reactSurvey__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactSurvey */ "./src/react/reactSurvey.tsx");
14587
+ /* harmony import */ var _components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/svg-icon/svg-icon */ "./src/react/components/svg-icon/svg-icon.tsx");
14583
14588
  var __extends = (undefined && undefined.__extends) || (function () {
14584
14589
  var extendStatics = function (d, b) {
14585
14590
  extendStatics = Object.setPrototypeOf ||
@@ -14599,7 +14604,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
14599
14604
 
14600
14605
 
14601
14606
 
14602
-
14603
14607
  var PopupSurvey = /** @class */ (function (_super) {
14604
14608
  __extends(PopupSurvey, _super);
14605
14609
  function PopupSurvey(props) {
@@ -14617,46 +14621,65 @@ var PopupSurvey = /** @class */ (function (_super) {
14617
14621
  return _super.prototype.canRender.call(this) && this.popup.isShowing;
14618
14622
  };
14619
14623
  PopupSurvey.prototype.renderElement = function () {
14624
+ var _this = this;
14620
14625
  var header = this.renderWindowHeader();
14621
- var body = this.popup.isExpanded ? this.renderBody() : null;
14622
- var style = {
14623
- position: "fixed",
14624
- bottom: 3,
14625
- right: 10
14626
- };
14626
+ var body = this.renderBody();
14627
+ var style = {};
14627
14628
  if (!!this.popup.renderedWidth) {
14628
14629
  style.width = this.popup.renderedWidth;
14629
14630
  style.maxWidth = this.popup.renderedWidth;
14630
14631
  }
14631
- return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.popup.cssRoot, style: style },
14632
- header,
14633
- body));
14632
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.popup.cssRoot, style: style, onScroll: function () { return _this.popup.onScroll(); } },
14633
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.popup.cssRootContent },
14634
+ header,
14635
+ body)));
14634
14636
  };
14635
14637
  PopupSurvey.prototype.renderWindowHeader = function () {
14636
- var _this = this;
14637
- var styleA = { width: "100%", cursor: "pointer" };
14638
- var styleTitle = { paddingRight: "10px" };
14639
- var glyphClassName = this.popup.cssButton;
14640
- glyphClassName = "glyphicon pull-right " + glyphClassName;
14641
- var title = _reactquestion_element__WEBPACK_IMPORTED_MODULE_2__["SurveyElementBase"].renderLocString(this.survey.locTitle);
14642
- return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.popup.cssHeaderRoot },
14643
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { onClick: this.handleOnExpanded, style: styleA },
14644
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.popup.cssHeaderTitle, style: styleTitle }, title),
14645
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: glyphClassName, "aria-hidden": "true" })),
14646
- this.popup.allowClose ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.popup.cssHeaderButton, onClick: function () { _this.popup.hide(); }, style: { transform: "rotate(45deg)", float: "right", cursor: "pointer", width: "24px", height: "24px" } },
14647
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_4__["SvgIcon"], { iconName: "icon-expanddetail", size: 16 }))) : null,
14648
- this.popup.isExpanded ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.popup.cssHeaderButton, onClick: this.handleOnExpanded, style: { float: "right", cursor: "pointer", width: "24px", height: "24px" } },
14649
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_4__["SvgIcon"], { iconName: "icon-collapsedetail", size: 16 }))) : null));
14638
+ var popup = this.popup;
14639
+ var headerCss = popup.cssHeaderRoot;
14640
+ var titleCollapsed = null;
14641
+ var expandCollapseIcon;
14642
+ var closeButton = null;
14643
+ if (popup.isCollapsed) {
14644
+ headerCss += " " + popup.cssRootCollapsedMod;
14645
+ titleCollapsed = this.renderTitleCollapsed(popup);
14646
+ expandCollapseIcon = this.renderExpandIcon();
14647
+ }
14648
+ else {
14649
+ expandCollapseIcon = this.renderCollapseIcon();
14650
+ }
14651
+ if (popup.allowClose) {
14652
+ closeButton = this.renderCloseButton(this.popup);
14653
+ }
14654
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: popup.cssHeaderRoot },
14655
+ titleCollapsed,
14656
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: popup.cssHeaderButtonsContainer },
14657
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: popup.cssHeaderCollapseButton, onClick: this.handleOnExpanded }, expandCollapseIcon),
14658
+ closeButton)));
14659
+ };
14660
+ PopupSurvey.prototype.renderTitleCollapsed = function (popup) {
14661
+ if (!popup.locTitle)
14662
+ return null;
14663
+ return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: popup.cssHeaderTitleCollapsed }, popup.locTitle.renderedHtml);
14664
+ };
14665
+ PopupSurvey.prototype.renderExpandIcon = function () {
14666
+ return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { iconName: "icon-restore_16x16", size: 16 });
14667
+ };
14668
+ PopupSurvey.prototype.renderCollapseIcon = function () {
14669
+ return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { iconName: "icon-minimize_16x16", size: 16 });
14670
+ };
14671
+ PopupSurvey.prototype.renderCloseButton = function (popup) {
14672
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: popup.cssHeaderCloseButton, onClick: function () { popup.hide(); } },
14673
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { iconName: "icon-close_16x16", size: 16 })));
14650
14674
  };
14651
14675
  PopupSurvey.prototype.renderBody = function () {
14652
- var _this = this;
14653
- return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.popup.cssBody, onScroll: function () { return _this.popup.onScroll(); } }, this.doRender());
14676
+ return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.popup.cssBody }, this.doRender());
14654
14677
  };
14655
14678
  PopupSurvey.prototype.createSurvey = function (newProps) {
14656
14679
  if (!newProps)
14657
14680
  newProps = {};
14658
14681
  _super.prototype.createSurvey.call(this, newProps);
14659
- this.popup = new survey_core__WEBPACK_IMPORTED_MODULE_3__["PopupSurveyModel"](null, this.survey);
14682
+ this.popup = new survey_core__WEBPACK_IMPORTED_MODULE_1__["PopupSurveyModel"](null, this.survey);
14660
14683
  if (newProps.closeOnCompleteTimeout) {
14661
14684
  this.popup.closeOnCompleteTimeout = newProps.closeOnCompleteTimeout;
14662
14685
  }
@@ -14666,7 +14689,7 @@ var PopupSurvey = /** @class */ (function (_super) {
14666
14689
  this.popup.expand();
14667
14690
  };
14668
14691
  return PopupSurvey;
14669
- }(_reactSurvey__WEBPACK_IMPORTED_MODULE_1__["Survey"]));
14692
+ }(_reactSurvey__WEBPACK_IMPORTED_MODULE_2__["Survey"]));
14670
14693
 
14671
14694
  /**
14672
14695
  * Obsolete. Please use PopupSurvey
@@ -15319,13 +15342,11 @@ __webpack_require__.r(__webpack_exports__);
15319
15342
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressToc", function() { return SurveyProgressToc; });
15320
15343
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
15321
15344
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
15322
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
15323
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
15324
- /* harmony import */ var _reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactSurveyNavigationBase */ "./src/react/reactSurveyNavigationBase.tsx");
15325
- /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./element-factory */ "./src/react/element-factory.tsx");
15326
- /* harmony import */ var _components_list_list__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/list/list */ "./src/react/components/list/list.tsx");
15327
- /* harmony import */ var _components_popup_popup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/popup/popup */ "./src/react/components/popup/popup.tsx");
15328
- /* harmony import */ var _components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/svg-icon/svg-icon */ "./src/react/components/svg-icon/svg-icon.tsx");
15345
+ /* harmony import */ var _reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reactSurveyNavigationBase */ "./src/react/reactSurveyNavigationBase.tsx");
15346
+ /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./element-factory */ "./src/react/element-factory.tsx");
15347
+ /* harmony import */ var _components_list_list__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/list/list */ "./src/react/components/list/list.tsx");
15348
+ /* harmony import */ var _components_popup_popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/popup/popup */ "./src/react/components/popup/popup.tsx");
15349
+ /* harmony import */ var _components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/svg-icon/svg-icon */ "./src/react/components/svg-icon/svg-icon.tsx");
15329
15350
  var __extends = (undefined && undefined.__extends) || (function () {
15330
15351
  var extendStatics = function (d, b) {
15331
15352
  extendStatics = Object.setPrototypeOf ||
@@ -15347,29 +15368,28 @@ var __extends = (undefined && undefined.__extends) || (function () {
15347
15368
 
15348
15369
 
15349
15370
 
15350
-
15351
15371
  var SurveyProgressToc = /** @class */ (function (_super) {
15352
15372
  __extends(SurveyProgressToc, _super);
15353
15373
  function SurveyProgressToc() {
15354
15374
  return _super !== null && _super.apply(this, arguments) || this;
15355
15375
  }
15356
15376
  SurveyProgressToc.prototype.render = function () {
15357
- var tocModel = new survey_core__WEBPACK_IMPORTED_MODULE_1__["TOCModel"](this.props.model);
15377
+ var tocModel = this.props.model;
15358
15378
  var content;
15359
15379
  if (tocModel.isMobile) {
15360
15380
  content = react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { onClick: tocModel.togglePopup },
15361
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_6__["SvgIcon"], { iconName: tocModel.icon, size: 24 }),
15362
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_popup_popup__WEBPACK_IMPORTED_MODULE_5__["Popup"], { model: tocModel.popupModel }));
15381
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_5__["SvgIcon"], { iconName: tocModel.icon, size: 24 }),
15382
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_popup_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"], { model: tocModel.popupModel }));
15363
15383
  }
15364
15384
  else {
15365
- content = react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_list_list__WEBPACK_IMPORTED_MODULE_4__["List"], { model: tocModel.listModel });
15385
+ content = react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_list_list__WEBPACK_IMPORTED_MODULE_3__["List"], { model: tocModel.listModel });
15366
15386
  }
15367
15387
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: tocModel.containerCss }, content));
15368
15388
  };
15369
15389
  return SurveyProgressToc;
15370
- }(_reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_2__["SurveyNavigationBase"]));
15390
+ }(_reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_1__["SurveyNavigationBase"]));
15371
15391
 
15372
- _element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.registerElement("sv-progress-toc", function (props) {
15392
+ _element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.registerElement("sv-navigation-toc", function (props) {
15373
15393
  return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyProgressToc, props);
15374
15394
  });
15375
15395
 
@@ -17283,7 +17303,7 @@ var SurveyQuestionMatrix = /** @class */ (function (_super) {
17283
17303
  for (var i = 0; i < visibleRows.length; i++) {
17284
17304
  var row = visibleRows[i];
17285
17305
  var key = "row-" + row.name + "-" + i;
17286
- rows.push(react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyQuestionMatrixRow, { key: key, question: this.question, cssClasses: cssClasses, isDisplayMode: this.isDisplayMode, row: row, isFirst: i == 0 }));
17306
+ rows.push(react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyQuestionMatrixRow, { key: key, question: this.question, cssClasses: cssClasses, row: row, isFirst: i == 0 }));
17287
17307
  }
17288
17308
  var header = !this.question.showHeader ? null : (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("thead", null,
17289
17309
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("tr", null,
@@ -17304,6 +17324,11 @@ var SurveyQuestionMatrixRow = /** @class */ (function (_super) {
17304
17324
  function SurveyQuestionMatrixRow(props) {
17305
17325
  return _super.call(this, props) || this;
17306
17326
  }
17327
+ SurveyQuestionMatrixRow.prototype.getStateElement = function () {
17328
+ if (!!this.row)
17329
+ return this.row.item;
17330
+ return _super.prototype.getStateElement.call(this);
17331
+ };
17307
17332
  Object.defineProperty(SurveyQuestionMatrixRow.prototype, "question", {
17308
17333
  get: function () {
17309
17334
  return this.props.question;
@@ -17341,7 +17366,7 @@ var SurveyQuestionMatrixRow = /** @class */ (function (_super) {
17341
17366
  style.minWidth = this.question.rowTitleWidth;
17342
17367
  style.width = this.question.rowTitleWidth;
17343
17368
  }
17344
- rowsTD = react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("td", { style: style, className: this.question.cssClasses.rowTextCell }, this.wrapCell({ row: this.row }, rowText, "row-header"));
17369
+ rowsTD = react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("td", { style: style, className: this.row.rowTextClasses }, this.wrapCell({ row: this.row }, rowText, "row-header"));
17345
17370
  }
17346
17371
  var tds = this.generateTds();
17347
17372
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("tr", { className: this.row.rowClasses || undefined },
@@ -17359,9 +17384,7 @@ var SurveyQuestionMatrixRow = /** @class */ (function (_super) {
17359
17384
  var key = "value" + i;
17360
17385
  var itemClass = this_1.question.getItemClass(row, column);
17361
17386
  if (this_1.question.hasCellText) {
17362
- var getHandler = !this_1.question.isInputReadOnly
17363
- ? function (column) { return function () { return _this.cellClick(row, column); }; }
17364
- : null;
17387
+ var getHandler = function (column) { return function () { return _this.cellClick(row, column); }; };
17365
17388
  td = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("td", { key: key, className: itemClass, onClick: getHandler ? getHandler(column) : function () { } }, this_1.renderLocString(this_1.question.getCellDisplayLocText(row.name, column))));
17366
17389
  }
17367
17390
  else {
@@ -17371,7 +17394,6 @@ var SurveyQuestionMatrixRow = /** @class */ (function (_super) {
17371
17394
  column: column,
17372
17395
  columnIndex: i,
17373
17396
  cssClasses: this_1.cssClasses,
17374
- isDisplayMode: this_1.isDisplayMode,
17375
17397
  cellChanged: function () { _this.cellClick(_this.row, column); }
17376
17398
  });
17377
17399
  td = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("td", { key: key, "data-responsive-title": column.locText.renderedHtml, className: this_1.question.cssClasses.cell }, renderedCell));
@@ -17454,7 +17476,7 @@ var SurveyQuestionMatrixCell = /** @class */ (function (_super) {
17454
17476
  mobileSpan));
17455
17477
  };
17456
17478
  SurveyQuestionMatrixCell.prototype.renderInput = function (inputId, isChecked) {
17457
- return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { id: inputId, type: "radio", className: this.cssClasses.itemValue, name: this.row.fullName, value: this.column.value, disabled: this.isDisplayMode, checked: isChecked, onChange: this.handleOnChange, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.getCellAriaLabel(this.row.locText.renderedHtml, this.column.locText.renderedHtml), "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-describedby": this.question.a11y_input_ariaDescribedBy }));
17479
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { id: inputId, type: "radio", className: this.cssClasses.itemValue, name: this.row.fullName, value: this.column.value, disabled: this.row.isReadOnly, checked: isChecked, onChange: this.handleOnChange, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.getCellAriaLabel(this.row.locText.renderedHtml, this.column.locText.renderedHtml), "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-describedby": this.question.a11y_input_ariaDescribedBy }));
17458
17480
  };
17459
17481
  return SurveyQuestionMatrixCell;
17460
17482
  }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["ReactSurveyElement"]));
@@ -21115,7 +21137,7 @@ function scrollElementByChildId(id) {
21115
21137
  return;
21116
21138
  var scrollableEl = findScrollableParent(el);
21117
21139
  if (!!scrollableEl) {
21118
- scrollableEl.dispatchEvent(new CustomEvent("scroll"));
21140
+ setTimeout(function () { return scrollableEl.dispatchEvent(new CustomEvent("scroll")); }, 10);
21119
21141
  }
21120
21142
  }
21121
21143
  function navigateToUrl(url) {