survey-react-ui 1.9.127 → 1.9.128

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.127
2
+ * surveyjs - Survey JavaScript library v1.9.128
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
  */
@@ -2166,14 +2166,14 @@ __webpack_require__.r(__webpack_exports__);
2166
2166
  /* harmony import */ var _react_reactquestion_paneldynamic__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ../react/reactquestion_paneldynamic */ "./src/react/reactquestion_paneldynamic.tsx");
2167
2167
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamic", function() { return _react_reactquestion_paneldynamic__WEBPACK_IMPORTED_MODULE_39__["SurveyQuestionPanelDynamic"]; });
2168
2168
 
2169
- /* harmony import */ var _react_reactSurveyProgress__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../react/reactSurveyProgress */ "./src/react/reactSurveyProgress.tsx");
2170
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgress", function() { return _react_reactSurveyProgress__WEBPACK_IMPORTED_MODULE_40__["SurveyProgress"]; });
2169
+ /* harmony import */ var _react_progress__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../react/progress */ "./src/react/progress.tsx");
2170
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgress", function() { return _react_progress__WEBPACK_IMPORTED_MODULE_40__["SurveyProgress"]; });
2171
2171
 
2172
- /* harmony import */ var _react_reactSurveyProgressButtons__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ../react/reactSurveyProgressButtons */ "./src/react/reactSurveyProgressButtons.tsx");
2173
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressButtons", function() { return _react_reactSurveyProgressButtons__WEBPACK_IMPORTED_MODULE_41__["SurveyProgressButtons"]; });
2172
+ /* harmony import */ var _react_progressButtons__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ../react/progressButtons */ "./src/react/progressButtons.tsx");
2173
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressButtons", function() { return _react_progressButtons__WEBPACK_IMPORTED_MODULE_41__["SurveyProgressButtons"]; });
2174
2174
 
2175
- /* harmony import */ var _react_reactSurveyProgressToc__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../react/reactSurveyProgressToc */ "./src/react/reactSurveyProgressToc.tsx");
2176
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressToc", function() { return _react_reactSurveyProgressToc__WEBPACK_IMPORTED_MODULE_42__["SurveyProgressToc"]; });
2175
+ /* harmony import */ var _react_progressToc__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../react/progressToc */ "./src/react/progressToc.tsx");
2176
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressToc", function() { return _react_progressToc__WEBPACK_IMPORTED_MODULE_42__["SurveyProgressToc"]; });
2177
2177
 
2178
2178
  /* harmony import */ var _react_reactquestion_rating__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../react/reactquestion_rating */ "./src/react/reactquestion_rating.tsx");
2179
2179
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRating", function() { return _react_reactquestion_rating__WEBPACK_IMPORTED_MODULE_43__["SurveyQuestionRating"]; });
@@ -2620,7 +2620,7 @@ __webpack_require__.r(__webpack_exports__);
2620
2620
 
2621
2621
 
2622
2622
 
2623
- Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.127", "survey-react-ui");
2623
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.128", "survey-react-ui");
2624
2624
 
2625
2625
 
2626
2626
  /***/ }),
@@ -7701,8 +7701,15 @@ var JsonObjectProperty = /** @class */ (function () {
7701
7701
  var isLayout = !this.layout || this.layout == layout;
7702
7702
  if (!this.visible || !isLayout)
7703
7703
  return false;
7704
- if (!!this.visibleIf && !!obj)
7704
+ if (!!this.visibleIf && !!obj) {
7705
+ if (obj.getOriginalObj) {
7706
+ var orjObj = obj.getOriginalObj();
7707
+ if (orjObj && Serializer.findProperty(orjObj.getType(), this.name)) {
7708
+ obj = orjObj;
7709
+ }
7710
+ }
7705
7711
  return this.visibleIf(obj);
7712
+ }
7706
7713
  return true;
7707
7714
  };
7708
7715
  Object.defineProperty(JsonObjectProperty.prototype, "visible", {
@@ -9903,6 +9910,8 @@ var englishStrings = {
9903
9910
  startSurveyText: "Start",
9904
9911
  otherItemText: "Other (describe)",
9905
9912
  noneItemText: "None",
9913
+ refuseItemText: "Refuse to answer",
9914
+ dontKnowItemText: "Don't know",
9906
9915
  selectAllItemText: "Select All",
9907
9916
  progressText: "Page {0} of {1}",
9908
9917
  indexText: "{0} of {1}",
@@ -14578,6 +14587,289 @@ _element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.re
14578
14587
  });
14579
14588
 
14580
14589
 
14590
+ /***/ }),
14591
+
14592
+ /***/ "./src/react/progress.tsx":
14593
+ /*!********************************!*\
14594
+ !*** ./src/react/progress.tsx ***!
14595
+ \********************************/
14596
+ /*! exports provided: SurveyProgress */
14597
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
14598
+
14599
+ "use strict";
14600
+ __webpack_require__.r(__webpack_exports__);
14601
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyProgress", function() { return SurveyProgress; });
14602
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
14603
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14604
+ /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
14605
+ /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
14606
+ /* harmony import */ var _reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactSurveyNavigationBase */ "./src/react/reactSurveyNavigationBase.tsx");
14607
+ /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./element-factory */ "./src/react/element-factory.tsx");
14608
+ var __extends = (undefined && undefined.__extends) || (function () {
14609
+ var extendStatics = function (d, b) {
14610
+ extendStatics = Object.setPrototypeOf ||
14611
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14612
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
14613
+ return extendStatics(d, b);
14614
+ };
14615
+ return function (d, b) {
14616
+ if (typeof b !== "function" && b !== null)
14617
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
14618
+ extendStatics(d, b);
14619
+ function __() { this.constructor = d; }
14620
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14621
+ };
14622
+ })();
14623
+
14624
+
14625
+
14626
+
14627
+ var SurveyProgress = /** @class */ (function (_super) {
14628
+ __extends(SurveyProgress, _super);
14629
+ function SurveyProgress(props) {
14630
+ return _super.call(this, props) || this;
14631
+ }
14632
+ Object.defineProperty(SurveyProgress.prototype, "isTop", {
14633
+ get: function () {
14634
+ return this.props.isTop;
14635
+ },
14636
+ enumerable: false,
14637
+ configurable: true
14638
+ });
14639
+ Object.defineProperty(SurveyProgress.prototype, "progress", {
14640
+ get: function () {
14641
+ return this.survey.progressValue;
14642
+ },
14643
+ enumerable: false,
14644
+ configurable: true
14645
+ });
14646
+ Object.defineProperty(SurveyProgress.prototype, "progressText", {
14647
+ get: function () {
14648
+ return this.survey.progressText;
14649
+ },
14650
+ enumerable: false,
14651
+ configurable: true
14652
+ });
14653
+ SurveyProgress.prototype.render = function () {
14654
+ var progressStyle = {
14655
+ width: this.progress + "%",
14656
+ };
14657
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.survey.getProgressCssClasses(this.props.container) },
14658
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { style: progressStyle, className: this.css.progressBar, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": "progress" },
14659
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: survey_core__WEBPACK_IMPORTED_MODULE_1__["SurveyProgressModel"].getProgressTextInBarCss(this.css) }, this.progressText)),
14660
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: survey_core__WEBPACK_IMPORTED_MODULE_1__["SurveyProgressModel"].getProgressTextUnderBarCss(this.css) }, this.progressText)));
14661
+ };
14662
+ return SurveyProgress;
14663
+ }(_reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_2__["SurveyNavigationBase"]));
14664
+
14665
+ _element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.registerElement("sv-progress-pages", function (props) {
14666
+ return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyProgress, props);
14667
+ });
14668
+ _element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.registerElement("sv-progress-questions", function (props) {
14669
+ return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyProgress, props);
14670
+ });
14671
+ _element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.registerElement("sv-progress-correctquestions", function (props) {
14672
+ return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyProgress, props);
14673
+ });
14674
+ _element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.registerElement("sv-progress-requiredquestions", function (props) {
14675
+ return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyProgress, props);
14676
+ });
14677
+
14678
+
14679
+ /***/ }),
14680
+
14681
+ /***/ "./src/react/progressButtons.tsx":
14682
+ /*!***************************************!*\
14683
+ !*** ./src/react/progressButtons.tsx ***!
14684
+ \***************************************/
14685
+ /*! exports provided: SurveyProgressButtons */
14686
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
14687
+
14688
+ "use strict";
14689
+ __webpack_require__.r(__webpack_exports__);
14690
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressButtons", function() { return SurveyProgressButtons; });
14691
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
14692
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14693
+ /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
14694
+ /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
14695
+ /* harmony import */ var _reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactSurveyNavigationBase */ "./src/react/reactSurveyNavigationBase.tsx");
14696
+ /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./element-factory */ "./src/react/element-factory.tsx");
14697
+ var __extends = (undefined && undefined.__extends) || (function () {
14698
+ var extendStatics = function (d, b) {
14699
+ extendStatics = Object.setPrototypeOf ||
14700
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14701
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
14702
+ return extendStatics(d, b);
14703
+ };
14704
+ return function (d, b) {
14705
+ if (typeof b !== "function" && b !== null)
14706
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
14707
+ extendStatics(d, b);
14708
+ function __() { this.constructor = d; }
14709
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14710
+ };
14711
+ })();
14712
+
14713
+
14714
+
14715
+
14716
+ var SurveyProgressButtons = /** @class */ (function (_super) {
14717
+ __extends(SurveyProgressButtons, _super);
14718
+ function SurveyProgressButtons(props) {
14719
+ var _this = _super.call(this, props) || this;
14720
+ _this.listContainerRef = react__WEBPACK_IMPORTED_MODULE_0__["createRef"]();
14721
+ return _this;
14722
+ }
14723
+ Object.defineProperty(SurveyProgressButtons.prototype, "model", {
14724
+ get: function () {
14725
+ return this.props.model;
14726
+ },
14727
+ enumerable: false,
14728
+ configurable: true
14729
+ });
14730
+ Object.defineProperty(SurveyProgressButtons.prototype, "container", {
14731
+ get: function () {
14732
+ return this.props.container;
14733
+ },
14734
+ enumerable: false,
14735
+ configurable: true
14736
+ });
14737
+ SurveyProgressButtons.prototype.onResize = function (canShowItemTitles) {
14738
+ this.setState({ canShowItemTitles: canShowItemTitles });
14739
+ this.setState({ canShowHeader: !canShowItemTitles });
14740
+ };
14741
+ SurveyProgressButtons.prototype.onUpdateScroller = function (hasScroller) {
14742
+ this.setState({ hasScroller: hasScroller });
14743
+ };
14744
+ SurveyProgressButtons.prototype.onUpdateSettings = function () {
14745
+ this.setState({ canShowItemTitles: this.model.showItemTitles });
14746
+ this.setState({ canShowFooter: !this.model.showItemTitles });
14747
+ };
14748
+ SurveyProgressButtons.prototype.render = function () {
14749
+ var _this = this;
14750
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.model.getRootCss(this.props.container), role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": "progress" },
14751
+ this.state.canShowHeader ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsHeader },
14752
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsPageTitle, title: this.model.headerText }, this.model.headerText)) : null,
14753
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsContainer },
14754
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.model.getScrollButtonCss(this.state.hasScroller, true), role: "button", onClick: function () {
14755
+ return _this.clickScrollButton(_this.listContainerRef.current, true);
14756
+ } }),
14757
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsListContainer, ref: this.listContainerRef },
14758
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("ul", { className: this.css.progressButtonsList }, this.getListElements())),
14759
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.model.getScrollButtonCss(this.state.hasScroller, false), role: "button", onClick: function () {
14760
+ return _this.clickScrollButton(_this.listContainerRef.current, false);
14761
+ } })),
14762
+ this.state.canShowFooter ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsFooter },
14763
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsPageTitle, title: this.model.footerText }, this.model.footerText)) : null));
14764
+ };
14765
+ SurveyProgressButtons.prototype.getListElements = function () {
14766
+ var _this = this;
14767
+ var buttons = [];
14768
+ this.survey.visiblePages.forEach(function (page, index) {
14769
+ buttons.push(_this.renderListElement(page, index));
14770
+ });
14771
+ return buttons;
14772
+ };
14773
+ SurveyProgressButtons.prototype.renderListElement = function (page, index) {
14774
+ var _this = this;
14775
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("li", { key: "listelement" + index, className: this.model.getListElementCss(index), onClick: this.model.isListElementClickable(index)
14776
+ ? function () { return _this.model.clickListElement(page); }
14777
+ : undefined, "data-page-number": this.model.getItemNumber(page) },
14778
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsConnector }),
14779
+ this.state.canShowItemTitles ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null,
14780
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsPageTitle, title: page.renderedNavigationTitle }, page.renderedNavigationTitle),
14781
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsPageDescription, title: page.navigationDescription }, page.navigationDescription)) : null));
14782
+ };
14783
+ SurveyProgressButtons.prototype.clickScrollButton = function (listContainerElement, isLeftScroll) {
14784
+ if (!!listContainerElement) {
14785
+ listContainerElement.scrollLeft += (isLeftScroll ? -1 : 1) * 70;
14786
+ }
14787
+ };
14788
+ SurveyProgressButtons.prototype.componentDidMount = function () {
14789
+ var _this = this;
14790
+ _super.prototype.componentDidMount.call(this);
14791
+ setTimeout(function () {
14792
+ _this.respManager = new survey_core__WEBPACK_IMPORTED_MODULE_1__["ProgressButtonsResponsivityManager"](_this.model, _this.listContainerRef.current, _this);
14793
+ }, 10);
14794
+ };
14795
+ SurveyProgressButtons.prototype.componentWillUnmount = function () {
14796
+ this.respManager.dispose();
14797
+ _super.prototype.componentWillUnmount.call(this);
14798
+ };
14799
+ return SurveyProgressButtons;
14800
+ }(_reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_2__["SurveyNavigationBase"]));
14801
+
14802
+ _element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.registerElement("sv-progress-buttons", function (props) {
14803
+ return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyProgressButtons, props);
14804
+ });
14805
+
14806
+
14807
+ /***/ }),
14808
+
14809
+ /***/ "./src/react/progressToc.tsx":
14810
+ /*!***********************************!*\
14811
+ !*** ./src/react/progressToc.tsx ***!
14812
+ \***********************************/
14813
+ /*! exports provided: SurveyProgressToc */
14814
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
14815
+
14816
+ "use strict";
14817
+ __webpack_require__.r(__webpack_exports__);
14818
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressToc", function() { return SurveyProgressToc; });
14819
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
14820
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14821
+ /* harmony import */ var _reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reactSurveyNavigationBase */ "./src/react/reactSurveyNavigationBase.tsx");
14822
+ /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./element-factory */ "./src/react/element-factory.tsx");
14823
+ /* harmony import */ var _components_list_list__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/list/list */ "./src/react/components/list/list.tsx");
14824
+ /* harmony import */ var _components_popup_popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/popup/popup */ "./src/react/components/popup/popup.tsx");
14825
+ /* 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");
14826
+ var __extends = (undefined && undefined.__extends) || (function () {
14827
+ var extendStatics = function (d, b) {
14828
+ extendStatics = Object.setPrototypeOf ||
14829
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14830
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
14831
+ return extendStatics(d, b);
14832
+ };
14833
+ return function (d, b) {
14834
+ if (typeof b !== "function" && b !== null)
14835
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
14836
+ extendStatics(d, b);
14837
+ function __() { this.constructor = d; }
14838
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14839
+ };
14840
+ })();
14841
+
14842
+
14843
+
14844
+
14845
+
14846
+
14847
+ var SurveyProgressToc = /** @class */ (function (_super) {
14848
+ __extends(SurveyProgressToc, _super);
14849
+ function SurveyProgressToc() {
14850
+ return _super !== null && _super.apply(this, arguments) || this;
14851
+ }
14852
+ SurveyProgressToc.prototype.render = function () {
14853
+ var tocModel = this.props.model;
14854
+ var content;
14855
+ if (tocModel.isMobile) {
14856
+ content = react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { onClick: tocModel.togglePopup },
14857
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_5__["SvgIcon"], { iconName: tocModel.icon, size: 24 }),
14858
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_popup_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"], { model: tocModel.popupModel }));
14859
+ }
14860
+ else {
14861
+ content = react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_list_list__WEBPACK_IMPORTED_MODULE_3__["List"], { model: tocModel.listModel });
14862
+ }
14863
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: tocModel.containerCss }, content));
14864
+ };
14865
+ return SurveyProgressToc;
14866
+ }(_reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_1__["SurveyNavigationBase"]));
14867
+
14868
+ _element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.registerElement("sv-navigation-toc", function (props) {
14869
+ return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyProgressToc, props);
14870
+ });
14871
+
14872
+
14581
14873
  /***/ }),
14582
14874
 
14583
14875
  /***/ "./src/react/rating-dropdown.tsx":
@@ -15197,275 +15489,6 @@ var SurveyNavigationBase = /** @class */ (function (_super) {
15197
15489
 
15198
15490
 
15199
15491
 
15200
- /***/ }),
15201
-
15202
- /***/ "./src/react/reactSurveyProgress.tsx":
15203
- /*!*******************************************!*\
15204
- !*** ./src/react/reactSurveyProgress.tsx ***!
15205
- \*******************************************/
15206
- /*! exports provided: SurveyProgress */
15207
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15208
-
15209
- "use strict";
15210
- __webpack_require__.r(__webpack_exports__);
15211
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyProgress", function() { return SurveyProgress; });
15212
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
15213
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
15214
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
15215
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
15216
- /* harmony import */ var _reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactSurveyNavigationBase */ "./src/react/reactSurveyNavigationBase.tsx");
15217
- /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./element-factory */ "./src/react/element-factory.tsx");
15218
- var __extends = (undefined && undefined.__extends) || (function () {
15219
- var extendStatics = function (d, b) {
15220
- extendStatics = Object.setPrototypeOf ||
15221
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15222
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
15223
- return extendStatics(d, b);
15224
- };
15225
- return function (d, b) {
15226
- if (typeof b !== "function" && b !== null)
15227
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15228
- extendStatics(d, b);
15229
- function __() { this.constructor = d; }
15230
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15231
- };
15232
- })();
15233
-
15234
-
15235
-
15236
-
15237
- var SurveyProgress = /** @class */ (function (_super) {
15238
- __extends(SurveyProgress, _super);
15239
- function SurveyProgress(props) {
15240
- return _super.call(this, props) || this;
15241
- }
15242
- Object.defineProperty(SurveyProgress.prototype, "isTop", {
15243
- get: function () {
15244
- return this.props.isTop;
15245
- },
15246
- enumerable: false,
15247
- configurable: true
15248
- });
15249
- Object.defineProperty(SurveyProgress.prototype, "progress", {
15250
- get: function () {
15251
- return this.survey.progressValue;
15252
- },
15253
- enumerable: false,
15254
- configurable: true
15255
- });
15256
- Object.defineProperty(SurveyProgress.prototype, "progressText", {
15257
- get: function () {
15258
- return this.survey.progressText;
15259
- },
15260
- enumerable: false,
15261
- configurable: true
15262
- });
15263
- SurveyProgress.prototype.render = function () {
15264
- var progressStyle = {
15265
- width: this.progress + "%",
15266
- };
15267
- return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.survey.getProgressCssClasses(this.props.container) },
15268
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { style: progressStyle, className: this.css.progressBar, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": "progress" },
15269
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: survey_core__WEBPACK_IMPORTED_MODULE_1__["SurveyProgressModel"].getProgressTextInBarCss(this.css) }, this.progressText)),
15270
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: survey_core__WEBPACK_IMPORTED_MODULE_1__["SurveyProgressModel"].getProgressTextUnderBarCss(this.css) }, this.progressText)));
15271
- };
15272
- return SurveyProgress;
15273
- }(_reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_2__["SurveyNavigationBase"]));
15274
-
15275
- _element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.registerElement("sv-progress-pages", function (props) {
15276
- return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyProgress, props);
15277
- });
15278
- _element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.registerElement("sv-progress-questions", function (props) {
15279
- return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyProgress, props);
15280
- });
15281
- _element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.registerElement("sv-progress-correctquestions", function (props) {
15282
- return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyProgress, props);
15283
- });
15284
- _element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.registerElement("sv-progress-requiredquestions", function (props) {
15285
- return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyProgress, props);
15286
- });
15287
-
15288
-
15289
- /***/ }),
15290
-
15291
- /***/ "./src/react/reactSurveyProgressButtons.tsx":
15292
- /*!**************************************************!*\
15293
- !*** ./src/react/reactSurveyProgressButtons.tsx ***!
15294
- \**************************************************/
15295
- /*! exports provided: SurveyProgressButtons */
15296
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15297
-
15298
- "use strict";
15299
- __webpack_require__.r(__webpack_exports__);
15300
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressButtons", function() { return SurveyProgressButtons; });
15301
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
15302
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
15303
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
15304
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
15305
- /* harmony import */ var _reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactSurveyNavigationBase */ "./src/react/reactSurveyNavigationBase.tsx");
15306
- /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./element-factory */ "./src/react/element-factory.tsx");
15307
- var __extends = (undefined && undefined.__extends) || (function () {
15308
- var extendStatics = function (d, b) {
15309
- extendStatics = Object.setPrototypeOf ||
15310
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15311
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
15312
- return extendStatics(d, b);
15313
- };
15314
- return function (d, b) {
15315
- if (typeof b !== "function" && b !== null)
15316
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15317
- extendStatics(d, b);
15318
- function __() { this.constructor = d; }
15319
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15320
- };
15321
- })();
15322
-
15323
-
15324
-
15325
-
15326
- var SurveyProgressButtons = /** @class */ (function (_super) {
15327
- __extends(SurveyProgressButtons, _super);
15328
- function SurveyProgressButtons(props) {
15329
- var _this = _super.call(this, props) || this;
15330
- _this.updateScroller = undefined;
15331
- _this.progressButtonsModel = new survey_core__WEBPACK_IMPORTED_MODULE_1__["SurveyProgressButtonsModel"](_this.survey);
15332
- _this.listContainerRef = react__WEBPACK_IMPORTED_MODULE_0__["createRef"]();
15333
- return _this;
15334
- }
15335
- SurveyProgressButtons.prototype.render = function () {
15336
- var _this = this;
15337
- return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsContainerCenter },
15338
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsContainer },
15339
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.getScrollButtonCss(true), role: "button", onClick: function () {
15340
- return _this.clickScrollButton(_this.listContainerRef.current, true);
15341
- } }),
15342
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsListContainer, ref: this.listContainerRef },
15343
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("ul", { className: this.css.progressButtonsList }, this.getListElements())),
15344
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.getScrollButtonCss(false), role: "button", onClick: function () {
15345
- return _this.clickScrollButton(_this.listContainerRef.current, false);
15346
- } }))));
15347
- };
15348
- SurveyProgressButtons.prototype.getListElements = function () {
15349
- var _this = this;
15350
- var buttons = [];
15351
- this.survey.visiblePages.forEach(function (page, index) {
15352
- buttons.push(_this.renderListElement(page, index));
15353
- });
15354
- return buttons;
15355
- };
15356
- SurveyProgressButtons.prototype.renderListElement = function (page, index) {
15357
- var _this = this;
15358
- return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("li", { key: "listelement" + index, className: this.getListElementCss(index), onClick: this.isListElementClickable(index)
15359
- ? function () { return _this.clickListElement(index); }
15360
- : undefined },
15361
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsPageTitle, title: page.renderedNavigationTitle }, page.renderedNavigationTitle),
15362
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsPageDescription, title: page.navigationDescription }, page.navigationDescription)));
15363
- };
15364
- SurveyProgressButtons.prototype.isListElementClickable = function (index) {
15365
- return this.progressButtonsModel.isListElementClickable(index);
15366
- };
15367
- SurveyProgressButtons.prototype.getListElementCss = function (index) {
15368
- return this.progressButtonsModel.getListElementCss(index);
15369
- };
15370
- SurveyProgressButtons.prototype.clickListElement = function (index) {
15371
- this.progressButtonsModel.clickListElement(index);
15372
- };
15373
- SurveyProgressButtons.prototype.getScrollButtonCss = function (isLeftScroll) {
15374
- return this.progressButtonsModel.getScrollButtonCss(this.state.hasScroller, isLeftScroll);
15375
- };
15376
- SurveyProgressButtons.prototype.clickScrollButton = function (listContainerElement, isLeftScroll) {
15377
- if (!!listContainerElement) {
15378
- listContainerElement.scrollLeft += (isLeftScroll ? -1 : 1) * 70;
15379
- }
15380
- };
15381
- SurveyProgressButtons.prototype.componentDidMount = function () {
15382
- var _this = this;
15383
- this.updateScroller = setInterval(function () {
15384
- if (!!_this.listContainerRef.current) {
15385
- _this.setState({ hasScroller: _this.listContainerRef.current.scrollWidth > _this.listContainerRef.current.offsetWidth, });
15386
- }
15387
- }, 100);
15388
- };
15389
- SurveyProgressButtons.prototype.componentWillUnmount = function () {
15390
- if (typeof this.updateScroller !== "undefined") {
15391
- clearInterval(this.updateScroller);
15392
- this.updateScroller = undefined;
15393
- }
15394
- };
15395
- return SurveyProgressButtons;
15396
- }(_reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_2__["SurveyNavigationBase"]));
15397
-
15398
- _element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.registerElement("sv-progress-buttons", function (props) {
15399
- return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyProgressButtons, props);
15400
- });
15401
-
15402
-
15403
- /***/ }),
15404
-
15405
- /***/ "./src/react/reactSurveyProgressToc.tsx":
15406
- /*!**********************************************!*\
15407
- !*** ./src/react/reactSurveyProgressToc.tsx ***!
15408
- \**********************************************/
15409
- /*! exports provided: SurveyProgressToc */
15410
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15411
-
15412
- "use strict";
15413
- __webpack_require__.r(__webpack_exports__);
15414
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressToc", function() { return SurveyProgressToc; });
15415
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
15416
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
15417
- /* harmony import */ var _reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reactSurveyNavigationBase */ "./src/react/reactSurveyNavigationBase.tsx");
15418
- /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./element-factory */ "./src/react/element-factory.tsx");
15419
- /* harmony import */ var _components_list_list__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/list/list */ "./src/react/components/list/list.tsx");
15420
- /* harmony import */ var _components_popup_popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/popup/popup */ "./src/react/components/popup/popup.tsx");
15421
- /* 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");
15422
- var __extends = (undefined && undefined.__extends) || (function () {
15423
- var extendStatics = function (d, b) {
15424
- extendStatics = Object.setPrototypeOf ||
15425
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15426
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
15427
- return extendStatics(d, b);
15428
- };
15429
- return function (d, b) {
15430
- if (typeof b !== "function" && b !== null)
15431
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15432
- extendStatics(d, b);
15433
- function __() { this.constructor = d; }
15434
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15435
- };
15436
- })();
15437
-
15438
-
15439
-
15440
-
15441
-
15442
-
15443
- var SurveyProgressToc = /** @class */ (function (_super) {
15444
- __extends(SurveyProgressToc, _super);
15445
- function SurveyProgressToc() {
15446
- return _super !== null && _super.apply(this, arguments) || this;
15447
- }
15448
- SurveyProgressToc.prototype.render = function () {
15449
- var tocModel = this.props.model;
15450
- var content;
15451
- if (tocModel.isMobile) {
15452
- content = react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { onClick: tocModel.togglePopup },
15453
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_5__["SvgIcon"], { iconName: tocModel.icon, size: 24 }),
15454
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_popup_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"], { model: tocModel.popupModel }));
15455
- }
15456
- else {
15457
- content = react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_list_list__WEBPACK_IMPORTED_MODULE_3__["List"], { model: tocModel.listModel });
15458
- }
15459
- return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: tocModel.containerCss }, content));
15460
- };
15461
- return SurveyProgressToc;
15462
- }(_reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_1__["SurveyNavigationBase"]));
15463
-
15464
- _element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.registerElement("sv-navigation-toc", function (props) {
15465
- return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyProgressToc, props);
15466
- });
15467
-
15468
-
15469
15492
  /***/ }),
15470
15493
 
15471
15494
  /***/ "./src/react/reactquestion.tsx":
@@ -16345,13 +16368,27 @@ var SurveyQuestionCommentItem = /** @class */ (function (_super) {
16345
16368
  _this.state = { comment: _this.getComment() || "" };
16346
16369
  return _this;
16347
16370
  }
16348
- SurveyQuestionCommentItem.prototype.getStateComment = function () {
16349
- var comment = this.getComment();
16350
- var stateComment = this.state.comment;
16351
- if (stateComment !== undefined && stateComment.trim() !== comment) {
16352
- stateComment = comment;
16371
+ SurveyQuestionCommentItem.prototype.componentDidUpdate = function (prevProps, prevState) {
16372
+ _super.prototype.componentDidUpdate.call(this, prevProps, prevState);
16373
+ this.updateDomElement();
16374
+ };
16375
+ SurveyQuestionCommentItem.prototype.componentDidMount = function () {
16376
+ _super.prototype.componentDidMount.call(this);
16377
+ this.updateDomElement();
16378
+ };
16379
+ SurveyQuestionCommentItem.prototype.updateDomElement = function () {
16380
+ if (!!this.control) {
16381
+ var control = this.control;
16382
+ var newValue = this.getComment() || "";
16383
+ if (!survey_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].isTwoValueEquals(newValue, control.value, false, true, false)) {
16384
+ control.value = newValue;
16385
+ }
16386
+ }
16387
+ };
16388
+ SurveyQuestionCommentItem.prototype.setControl = function (element) {
16389
+ if (!!element) {
16390
+ this.control = element;
16353
16391
  }
16354
- return stateComment !== undefined ? stateComment : comment || "";
16355
16392
  };
16356
16393
  SurveyQuestionCommentItem.prototype.canRender = function () {
16357
16394
  return !!this.props.question;
@@ -16378,18 +16415,11 @@ var SurveyQuestionCommentItem = /** @class */ (function (_super) {
16378
16415
  var _this = this;
16379
16416
  var question = this.props.question;
16380
16417
  var className = this.props.otherCss || this.cssClasses.comment;
16381
- var handleOnChange = function (event) {
16382
- _this.setState({ comment: event.target.value });
16383
- // https://github.com/surveyjs/survey-library/issues/7252
16384
- if (!survey_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].isTwoValueEquals(_this.getComment(), event.target.value, false, true, false)) {
16385
- _this.setComment(event.target.value);
16386
- }
16387
- };
16388
- var comment = this.getStateComment();
16389
16418
  if (question.isReadOnlyRenderDiv()) {
16419
+ var comment = this.getComment() || "";
16390
16420
  return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", null, comment);
16391
16421
  }
16392
- 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 } }));
16422
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("textarea", { id: this.getId(), className: className, ref: function (textarea) { return (_this.setControl(textarea)); }, disabled: this.isDisplayMode, maxLength: question.getOthersMaxLength(), placeholder: this.getPlaceholder(), onBlur: function (e) { _this.onCommentChange(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 } }));
16393
16423
  };
16394
16424
  return SurveyQuestionCommentItem;
16395
16425
  }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["ReactSurveyElement"]));
@@ -20537,15 +20567,27 @@ var settings = {
20537
20567
  */
20538
20568
  showItemsInOrder: "default",
20539
20569
  /**
20540
- * A value to save in survey results when respondents select the None choice item.
20570
+ * A value to save in survey results when respondents select the "None" choice item.
20541
20571
  *
20542
20572
  * Default value: `"none"`
20543
20573
  */
20544
20574
  noneItemValue: "none",
20545
20575
  /**
20546
- * An object whose properties specify the order of the special choice items (None, Other, Select All) in select-based questions.
20576
+ * A value to save in survey results when respondents select the "Refuse to answer" choice item.
20577
+ *
20578
+ * Default value: `"refused"`
20579
+ */
20580
+ refuseItemValue: "refused",
20581
+ /**
20582
+ * A value to save in survey results when respondents select the "Don't know" choice item.
20583
+ *
20584
+ * Default value: `"dontknow"`
20585
+ */
20586
+ dontKnowItemValue: "dontknow",
20587
+ /**
20588
+ * An object whose properties specify the order of the special choice items ("None", "Other", "Select All", "Refuse to answer", "Don't know") in select-based questions.
20547
20589
  *
20548
- * Default value: `{ selectAllItem: [-1], noneItem: [1], otherItem: [2] }`
20590
+ * Default value: `{ selectAllItem: [-1], noneItem: [1], otherItem: [2], dontKnowItem: [3], otherItem: [4] }`
20549
20591
  *
20550
20592
  * Use this object to reorder special choices. Each property accepts an array of integer numbers. Negative numbers place a special choice item above regular choice items, positive numbers place it below them. For instance, the code below specifies the following order of choices: None, Select All, regular choices, Other.
20551
20593
  *
@@ -20566,7 +20608,9 @@ var settings = {
20566
20608
  specialChoicesOrder: {
20567
20609
  selectAllItem: [-1],
20568
20610
  noneItem: [1],
20569
- otherItem: [2]
20611
+ refuseItem: [2],
20612
+ dontKnowItem: [3],
20613
+ otherItem: [4]
20570
20614
  },
20571
20615
  /**
20572
20616
  * A list of supported validators by question type.
@@ -20620,6 +20664,12 @@ var settings = {
20620
20664
  * Default value: `true`
20621
20665
  */
20622
20666
  showMaxLengthIndicator: true,
20667
+ /**
20668
+ * Set to `false` to disable animations
20669
+ *
20670
+ * Default value: `true`
20671
+ */
20672
+ animationEnabled: true,
20623
20673
  /**
20624
20674
  * An object that specifies heading levels (`<h1>`, `<h2>`, etc.) to use when rendering survey, page, panel, and question titles.
20625
20675
  *
@@ -20705,7 +20755,8 @@ var settings = {
20705
20755
  "email",
20706
20756
  "impp",
20707
20757
  ]
20708
- }
20758
+ },
20759
+ legacyProgressBarView: false
20709
20760
  };
20710
20761
 
20711
20762