survey-react-ui 2.0.2 → 2.0.4

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": "2.0.2",
3
+ "version": "2.0.4",
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",
@@ -15,17 +15,17 @@
15
15
  "**/*"
16
16
  ],
17
17
  "main": "survey-react-ui.js",
18
- "module": "fesm/survey-react-ui.js",
18
+ "module": "fesm/survey-react-ui.mjs",
19
19
  "typings": "./typings/entries/index.d.ts",
20
20
  "exports": {
21
21
  ".": {
22
22
  "types": "./typings/entries/index.d.ts",
23
- "import": "./fesm/survey-react-ui.js",
23
+ "import": "./fesm/survey-react-ui.mjs",
24
24
  "require": "./survey-react-ui.js"
25
25
  }
26
26
  },
27
27
  "peerDependencies": {
28
- "survey-core": "2.0.2",
28
+ "survey-core": "2.0.4",
29
29
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
30
30
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0"
31
31
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v2.0.2
2
+ * surveyjs - Survey JavaScript library v2.0.4
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -17,18 +17,18 @@ return /******/ (() => { // webpackBootstrap
17
17
  /******/ "use strict";
18
18
  /******/ var __webpack_modules__ = ({
19
19
 
20
- /***/ "../survey-core/build/fesm/icons/iconsV1.js":
21
- /*!**************************************************!*\
22
- !*** ../survey-core/build/fesm/icons/iconsV1.js ***!
23
- \**************************************************/
24
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
20
+ /***/ "../survey-core/build/fesm/icons/iconsV1.mjs":
21
+ /*!***************************************************!*\
22
+ !*** ../survey-core/build/fesm/icons/iconsV1.mjs ***!
23
+ \***************************************************/
24
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
25
 
26
26
  __webpack_require__.r(__webpack_exports__);
27
27
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
28
28
  /* harmony export */ icons: () => (/* binding */ iconsV1)
29
29
  /* harmony export */ });
30
30
  /*!
31
- * surveyjs - Survey JavaScript library v2.0.2
31
+ * surveyjs - Survey JavaScript library v2.0.4
32
32
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
33
33
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
34
34
  */
@@ -96,23 +96,23 @@ var iconsV1 = {
96
96
  };
97
97
 
98
98
 
99
- //# sourceMappingURL=iconsV1.js.map
99
+ //# sourceMappingURL=iconsV1.mjs.map
100
100
 
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ "../survey-core/build/fesm/icons/iconsV2.js":
105
- /*!**************************************************!*\
106
- !*** ../survey-core/build/fesm/icons/iconsV2.js ***!
107
- \**************************************************/
108
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
104
+ /***/ "../survey-core/build/fesm/icons/iconsV2.mjs":
105
+ /*!***************************************************!*\
106
+ !*** ../survey-core/build/fesm/icons/iconsV2.mjs ***!
107
+ \***************************************************/
108
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
109
109
 
110
110
  __webpack_require__.r(__webpack_exports__);
111
111
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
112
112
  /* harmony export */ icons: () => (/* binding */ iconsV2)
113
113
  /* harmony export */ });
114
114
  /*!
115
- * surveyjs - Survey JavaScript library v2.0.2
115
+ * surveyjs - Survey JavaScript library v2.0.4
116
116
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
117
117
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
118
118
  */
@@ -180,7 +180,7 @@ var iconsV2 = {
180
180
  };
181
181
 
182
182
 
183
- //# sourceMappingURL=iconsV2.js.map
183
+ //# sourceMappingURL=iconsV2.mjs.map
184
184
 
185
185
 
186
186
  /***/ }),
@@ -193,20 +193,20 @@ var iconsV2 = {
193
193
 
194
194
  __webpack_require__.r(__webpack_exports__);
195
195
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
196
- /* harmony export */ CharacterCounterComponent: () => (/* reexport safe */ _src_components_character_counter__WEBPACK_IMPORTED_MODULE_78__.CharacterCounterComponent),
197
- /* harmony export */ ComponentsContainer: () => (/* reexport safe */ _src_components_components_container__WEBPACK_IMPORTED_MODULE_77__.ComponentsContainer),
198
- /* harmony export */ Header: () => (/* reexport safe */ _src_components_header__WEBPACK_IMPORTED_MODULE_79__.Header),
199
- /* harmony export */ HeaderCell: () => (/* reexport safe */ _src_components_header__WEBPACK_IMPORTED_MODULE_79__.HeaderCell),
200
- /* harmony export */ HeaderMobile: () => (/* reexport safe */ _src_components_header__WEBPACK_IMPORTED_MODULE_79__.HeaderMobile),
196
+ /* harmony export */ CharacterCounterComponent: () => (/* reexport safe */ _src_components_character_counter__WEBPACK_IMPORTED_MODULE_79__.CharacterCounterComponent),
197
+ /* harmony export */ ComponentsContainer: () => (/* reexport safe */ _src_components_components_container__WEBPACK_IMPORTED_MODULE_78__.ComponentsContainer),
198
+ /* harmony export */ Header: () => (/* reexport safe */ _src_components_header__WEBPACK_IMPORTED_MODULE_80__.Header),
199
+ /* harmony export */ HeaderCell: () => (/* reexport safe */ _src_components_header__WEBPACK_IMPORTED_MODULE_80__.HeaderCell),
200
+ /* harmony export */ HeaderMobile: () => (/* reexport safe */ _src_components_header__WEBPACK_IMPORTED_MODULE_80__.HeaderMobile),
201
201
  /* harmony export */ List: () => (/* reexport safe */ _src_components_list_list__WEBPACK_IMPORTED_MODULE_57__.List),
202
202
  /* harmony export */ ListItemContent: () => (/* reexport safe */ _src_components_list_list_item_content__WEBPACK_IMPORTED_MODULE_55__.ListItemContent),
203
203
  /* harmony export */ ListItemGroup: () => (/* reexport safe */ _src_components_list_list_item_group__WEBPACK_IMPORTED_MODULE_56__.ListItemGroup),
204
- /* harmony export */ LoadingIndicatorComponent: () => (/* reexport safe */ _src_components_loading_indicator__WEBPACK_IMPORTED_MODULE_82__.LoadingIndicatorComponent),
204
+ /* harmony export */ LoadingIndicatorComponent: () => (/* reexport safe */ _src_components_loading_indicator__WEBPACK_IMPORTED_MODULE_83__.LoadingIndicatorComponent),
205
205
  /* harmony export */ LogoImage: () => (/* reexport safe */ _src_components_survey_header_logo_image__WEBPACK_IMPORTED_MODULE_61__.LogoImage),
206
206
  /* harmony export */ MatrixRow: () => (/* reexport safe */ _src_components_matrix_row__WEBPACK_IMPORTED_MODULE_74__.MatrixRow),
207
- /* harmony export */ NotifierComponent: () => (/* reexport safe */ _src_components_notifier__WEBPACK_IMPORTED_MODULE_76__.NotifierComponent),
207
+ /* harmony export */ NotifierComponent: () => (/* reexport safe */ _src_components_notifier__WEBPACK_IMPORTED_MODULE_77__.NotifierComponent),
208
208
  /* harmony export */ Popup: () => (/* reexport safe */ _src_components_popup_popup__WEBPACK_IMPORTED_MODULE_54__.Popup),
209
- /* harmony export */ PopupModal: () => (/* reexport safe */ _src_components_popup_popup_modal__WEBPACK_IMPORTED_MODULE_84__.PopupModal),
209
+ /* harmony export */ PopupModal: () => (/* reexport safe */ _src_components_popup_popup_modal__WEBPACK_IMPORTED_MODULE_85__.PopupModal),
210
210
  /* harmony export */ PopupSurvey: () => (/* reexport safe */ _src_react_popup_survey__WEBPACK_IMPORTED_MODULE_46__.PopupSurvey),
211
211
  /* harmony export */ QuestionErrorComponent: () => (/* reexport safe */ _src_components_question_error__WEBPACK_IMPORTED_MODULE_73__.QuestionErrorComponent),
212
212
  /* harmony export */ RatingDropdownItem: () => (/* reexport safe */ _src_components_rating_rating_dropdown_item__WEBPACK_IMPORTED_MODULE_16__.RatingDropdownItem),
@@ -217,6 +217,7 @@ __webpack_require__.r(__webpack_exports__);
217
217
  /* harmony export */ ReactQuestionFactory: () => (/* reexport safe */ _src_reactquestion_factory__WEBPACK_IMPORTED_MODULE_47__.ReactQuestionFactory),
218
218
  /* harmony export */ ReactSurveyElement: () => (/* reexport safe */ _src_reactquestion_element__WEBPACK_IMPORTED_MODULE_9__.ReactSurveyElement),
219
219
  /* harmony export */ ReactSurveyElementsWrapper: () => (/* reexport safe */ _src_reactsurveymodel__WEBPACK_IMPORTED_MODULE_1__.ReactSurveyElementsWrapper),
220
+ /* harmony export */ Scroll: () => (/* reexport safe */ _src_components_scroll__WEBPACK_IMPORTED_MODULE_76__.Scroll),
220
221
  /* harmony export */ Skeleton: () => (/* reexport safe */ _src_components_skeleton__WEBPACK_IMPORTED_MODULE_75__.Skeleton),
221
222
  /* harmony export */ Survey: () => (/* reexport safe */ _src_reactSurvey__WEBPACK_IMPORTED_MODULE_0__.Survey),
222
223
  /* harmony export */ SurveyActionBar: () => (/* reexport safe */ _src_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_60__.SurveyActionBar),
@@ -226,8 +227,8 @@ __webpack_require__.r(__webpack_exports__);
226
227
  /* harmony export */ SurveyFilePreview: () => (/* reexport safe */ _src_components_file_file_preview__WEBPACK_IMPORTED_MODULE_28__.SurveyFilePreview),
227
228
  /* harmony export */ SurveyFlowPanel: () => (/* reexport safe */ _src_flow_panel__WEBPACK_IMPORTED_MODULE_7__.SurveyFlowPanel),
228
229
  /* harmony export */ SurveyHeader: () => (/* reexport safe */ _src_components_survey_header_survey_header__WEBPACK_IMPORTED_MODULE_62__.SurveyHeader),
229
- /* harmony export */ SurveyLocStringEditor: () => (/* reexport safe */ _src_string_editor__WEBPACK_IMPORTED_MODULE_81__.SurveyLocStringEditor),
230
- /* harmony export */ SurveyLocStringViewer: () => (/* reexport safe */ _src_string_viewer__WEBPACK_IMPORTED_MODULE_80__.SurveyLocStringViewer),
230
+ /* harmony export */ SurveyLocStringEditor: () => (/* reexport safe */ _src_string_editor__WEBPACK_IMPORTED_MODULE_82__.SurveyLocStringEditor),
231
+ /* harmony export */ SurveyLocStringViewer: () => (/* reexport safe */ _src_string_viewer__WEBPACK_IMPORTED_MODULE_81__.SurveyLocStringViewer),
231
232
  /* harmony export */ SurveyNavigationBase: () => (/* reexport safe */ _src_reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_2__.SurveyNavigationBase),
232
233
  /* harmony export */ SurveyNavigationButton: () => (/* reexport safe */ _src_components_survey_actions_survey_nav_button__WEBPACK_IMPORTED_MODULE_72__.SurveyNavigationButton),
233
234
  /* harmony export */ SurveyPage: () => (/* reexport safe */ _src_page__WEBPACK_IMPORTED_MODULE_4__.SurveyPage),
@@ -290,7 +291,7 @@ __webpack_require__.r(__webpack_exports__);
290
291
  /* harmony export */ SurveyRow: () => (/* reexport safe */ _src_row__WEBPACK_IMPORTED_MODULE_5__.SurveyRow),
291
292
  /* harmony export */ SurveyTimerPanel: () => (/* reexport safe */ _src_reacttimerpanel__WEBPACK_IMPORTED_MODULE_3__.SurveyTimerPanel),
292
293
  /* harmony export */ SurveyWindow: () => (/* reexport safe */ _src_react_popup_survey__WEBPACK_IMPORTED_MODULE_46__.SurveyWindow),
293
- /* harmony export */ SvgBundleComponent: () => (/* reexport safe */ _src_svgbundle__WEBPACK_IMPORTED_MODULE_83__.SvgBundleComponent),
294
+ /* harmony export */ SvgBundleComponent: () => (/* reexport safe */ _src_svgbundle__WEBPACK_IMPORTED_MODULE_84__.SvgBundleComponent),
294
295
  /* harmony export */ SvgIcon: () => (/* reexport safe */ _src_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_63__.SvgIcon),
295
296
  /* harmony export */ TagboxFilterString: () => (/* reexport safe */ _src_tagbox_filter__WEBPACK_IMPORTED_MODULE_17__.TagboxFilterString),
296
297
  /* harmony export */ TitleActions: () => (/* reexport safe */ _src_components_title_title_actions__WEBPACK_IMPORTED_MODULE_58__.TitleActions),
@@ -373,15 +374,16 @@ __webpack_require__.r(__webpack_exports__);
373
374
  /* harmony import */ var _src_components_question_error__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ../src/components/question-error */ "./src/components/question-error.tsx");
374
375
  /* harmony import */ var _src_components_matrix_row__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ../src/components/matrix/row */ "./src/components/matrix/row.tsx");
375
376
  /* harmony import */ var _src_components_skeleton__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ../src/components/skeleton */ "./src/components/skeleton.tsx");
376
- /* harmony import */ var _src_components_notifier__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ../src/components/notifier */ "./src/components/notifier.tsx");
377
- /* harmony import */ var _src_components_components_container__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ../src/components/components-container */ "./src/components/components-container.tsx");
378
- /* harmony import */ var _src_components_character_counter__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ../src/components/character-counter */ "./src/components/character-counter.tsx");
379
- /* harmony import */ var _src_components_header__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ../src/components/header */ "./src/components/header.tsx");
380
- /* harmony import */ var _src_string_viewer__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ../src/string-viewer */ "./src/string-viewer.tsx");
381
- /* harmony import */ var _src_string_editor__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ../src/string-editor */ "./src/string-editor.tsx");
382
- /* harmony import */ var _src_components_loading_indicator__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ../src/components/loading-indicator */ "./src/components/loading-indicator.tsx");
383
- /* harmony import */ var _src_svgbundle__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ../src/svgbundle */ "./src/svgbundle.tsx");
384
- /* harmony import */ var _src_components_popup_popup_modal__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ../src/components/popup/popup-modal */ "./src/components/popup/popup-modal.tsx");
377
+ /* harmony import */ var _src_components_scroll__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ../src/components/scroll */ "./src/components/scroll.tsx");
378
+ /* harmony import */ var _src_components_notifier__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ../src/components/notifier */ "./src/components/notifier.tsx");
379
+ /* harmony import */ var _src_components_components_container__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ../src/components/components-container */ "./src/components/components-container.tsx");
380
+ /* harmony import */ var _src_components_character_counter__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ../src/components/character-counter */ "./src/components/character-counter.tsx");
381
+ /* harmony import */ var _src_components_header__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ../src/components/header */ "./src/components/header.tsx");
382
+ /* harmony import */ var _src_string_viewer__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ../src/string-viewer */ "./src/string-viewer.tsx");
383
+ /* harmony import */ var _src_string_editor__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ../src/string-editor */ "./src/string-editor.tsx");
384
+ /* harmony import */ var _src_components_loading_indicator__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ../src/components/loading-indicator */ "./src/components/loading-indicator.tsx");
385
+ /* harmony import */ var _src_svgbundle__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ../src/svgbundle */ "./src/svgbundle.tsx");
386
+ /* harmony import */ var _src_components_popup_popup_modal__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ../src/components/popup/popup-modal */ "./src/components/popup/popup-modal.tsx");
385
387
  // react
386
388
 
387
389
 
@@ -466,6 +468,7 @@ __webpack_require__.r(__webpack_exports__);
466
468
 
467
469
 
468
470
 
471
+
469
472
 
470
473
 
471
474
  //Uncomment to include the "date" question type.
@@ -528,7 +531,7 @@ var SurveyQuestionBooleanCheckbox = /** @class */ (function (_super) {
528
531
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { className: cssClasses.checkboxLabel },
529
532
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { ref: this.checkRef, type: "checkbox", name: this.question.name, value: this.question.booleanValue === null
530
533
  ? ""
531
- : this.question.booleanValue, id: this.question.inputId, className: cssClasses.controlCheckbox, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.booleanValue || false, onChange: this.handleOnChange, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage }),
534
+ : this.question.booleanValue, id: this.question.inputId, className: cssClasses.controlCheckbox, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.booleanValue || false, onChange: this.handleOnChange, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage }),
532
535
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: cssClasses.checkboxMaterialDecorator },
533
536
  this.question.svgIcon ?
534
537
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", { className: cssClasses.checkboxItemDecorator },
@@ -3505,6 +3508,77 @@ _element_factory__WEBPACK_IMPORTED_MODULE_1__.ReactElementFactory.Instance.regis
3505
3508
  });
3506
3509
 
3507
3510
 
3511
+ /***/ }),
3512
+
3513
+ /***/ "./src/components/scroll.tsx":
3514
+ /*!***********************************!*\
3515
+ !*** ./src/components/scroll.tsx ***!
3516
+ \***********************************/
3517
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3518
+
3519
+ __webpack_require__.r(__webpack_exports__);
3520
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3521
+ /* harmony export */ Scroll: () => (/* binding */ Scroll)
3522
+ /* harmony export */ });
3523
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
3524
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
3525
+ /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../element-factory */ "./src/element-factory.tsx");
3526
+ /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-core */ "survey-core");
3527
+ /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_2__);
3528
+ var __extends = (undefined && undefined.__extends) || (function () {
3529
+ var extendStatics = function (d, b) {
3530
+ extendStatics = Object.setPrototypeOf ||
3531
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3532
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
3533
+ return extendStatics(d, b);
3534
+ };
3535
+ return function (d, b) {
3536
+ if (typeof b !== "function" && b !== null)
3537
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
3538
+ extendStatics(d, b);
3539
+ function __() { this.constructor = d; }
3540
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3541
+ };
3542
+ })();
3543
+
3544
+
3545
+
3546
+ var Scroll = /** @class */ (function (_super) {
3547
+ __extends(Scroll, _super);
3548
+ function Scroll(props) {
3549
+ var _this = _super.call(this, props) || this;
3550
+ _this.rootRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
3551
+ _this.model = new survey_core__WEBPACK_IMPORTED_MODULE_2__.ScrollViewModel();
3552
+ return _this;
3553
+ }
3554
+ Scroll.prototype.componentDidMount = function () {
3555
+ var container = this.rootRef.current;
3556
+ if (!container)
3557
+ return;
3558
+ this.model.setRootElement(container);
3559
+ };
3560
+ Scroll.prototype.componentWillUnmount = function () {
3561
+ this.model.unsubscribeRootElement();
3562
+ this.model.setRootElement(undefined);
3563
+ };
3564
+ Scroll.prototype.render = function () {
3565
+ var _this = this;
3566
+ return this.props.disabled ?
3567
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, this.props.children) :
3568
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { ref: this.rootRef, className: "sv-scroll__wrapper" },
3569
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "sv-scroll__scroller sv-drag-target-skipped", onScroll: function () { return _this.model.onScrollContainer(); } },
3570
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "sv-scroll__container" }, this.props.children)),
3571
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "sv-scroll__scrollbar", onScroll: function () { return _this.model.onScrollScrollbar(); } },
3572
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "sv-scroll__scrollbar-sizer" })));
3573
+ };
3574
+ return Scroll;
3575
+ }(react__WEBPACK_IMPORTED_MODULE_0__.Component));
3576
+
3577
+ _element_factory__WEBPACK_IMPORTED_MODULE_1__.ReactElementFactory.Instance.registerElement("svc-scroll", function (props) {
3578
+ return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Scroll, props);
3579
+ });
3580
+
3581
+
3508
3582
  /***/ }),
3509
3583
 
3510
3584
  /***/ "./src/components/skeleton.tsx":
@@ -4385,7 +4459,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
4385
4459
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.noTabIndex ? undefined : 0,
4386
4460
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
4387
4461
  // @ts-ignore
4388
- disabled: this.question.isDisabledAttr, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, onFocus: this.focus, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, "aria-expanded": this.question.ariaExpanded, "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant, ref: function (div) { return (_this.setControl(div)); } },
4462
+ disabled: this.question.isDisabledAttr, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, onFocus: this.focus, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-labelledby": this.question.ariaLabelledBy, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, "aria-expanded": this.question.ariaExpanded, "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant, ref: function (div) { return (_this.setControl(div)); } },
4389
4463
  dropdownListModel.showHintPrefix ?
4390
4464
  (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.hintPrefix },
4391
4465
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, dropdownListModel.hintStringPrefix))) : null,
@@ -5942,6 +6016,11 @@ var SurveyProgressToc = /** @class */ (function (_super) {
5942
6016
  function SurveyProgressToc() {
5943
6017
  return _super !== null && _super.apply(this, arguments) || this;
5944
6018
  }
6019
+ SurveyProgressToc.prototype.componentDidMount = function () {
6020
+ _super.prototype.componentDidMount.call(this);
6021
+ var tocModel = this.props.model;
6022
+ tocModel.updateStickyTOCSize(this.survey.rootElement);
6023
+ };
5945
6024
  SurveyProgressToc.prototype.render = function () {
5946
6025
  var tocModel = this.props.model;
5947
6026
  var content;
@@ -6209,8 +6288,9 @@ __webpack_require__.r(__webpack_exports__);
6209
6288
  /* harmony import */ var _components_components_container__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/components-container */ "./src/components/components-container.tsx");
6210
6289
  /* harmony import */ var _svgbundle__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./svgbundle */ "./src/svgbundle.tsx");
6211
6290
  /* harmony import */ var _components_popup_popup_modal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/popup/popup-modal */ "./src/components/popup/popup-modal.tsx");
6212
- /* harmony import */ var survey_core_icons_iconsV1__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! survey-core/icons/iconsV1 */ "../survey-core/build/fesm/icons/iconsV1.js");
6213
- /* harmony import */ var survey_core_icons_iconsV2__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! survey-core/icons/iconsV2 */ "../survey-core/build/fesm/icons/iconsV2.js");
6291
+ /* harmony import */ var survey_core_icons_iconsV1__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! survey-core/icons/iconsV1 */ "../survey-core/build/fesm/icons/iconsV1.mjs");
6292
+ /* harmony import */ var survey_core_icons_iconsV2__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! survey-core/icons/iconsV2 */ "../survey-core/build/fesm/icons/iconsV2.mjs");
6293
+ /* harmony import */ var _components_scroll__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/scroll */ "./src/components/scroll.tsx");
6214
6294
  var __extends = (undefined && undefined.__extends) || (function () {
6215
6295
  var extendStatics = function (d, b) {
6216
6296
  extendStatics = Object.setPrototypeOf ||
@@ -6251,6 +6331,7 @@ var __assign = (undefined && undefined.__assign) || function () {
6251
6331
 
6252
6332
 
6253
6333
 
6334
+
6254
6335
  (0,survey_core__WEBPACK_IMPORTED_MODULE_1__.addIconsToThemeSet)("v1", survey_core_icons_iconsV1__WEBPACK_IMPORTED_MODULE_12__.icons);
6255
6336
  (0,survey_core__WEBPACK_IMPORTED_MODULE_1__.addIconsToThemeSet)("v2", survey_core_icons_iconsV2__WEBPACK_IMPORTED_MODULE_13__.icons);
6256
6337
  survey_core__WEBPACK_IMPORTED_MODULE_1__.SvgRegistry.registerIcons(survey_core_icons_iconsV2__WEBPACK_IMPORTED_MODULE_13__.icons);
@@ -6343,18 +6424,20 @@ var Survey = /** @class */ (function (_super) {
6343
6424
  var rootCss = this.survey.getRootCss();
6344
6425
  var cssClasses = this.rootNodeClassName ? this.rootNodeClassName + " " + rootCss : rootCss;
6345
6426
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { id: this.rootNodeId, ref: this.rootRef, className: cssClasses, style: this.survey.themeVariables, lang: this.survey.locale || "en", dir: this.survey.localeDir },
6346
- this.survey.needRenderIcons ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svgbundle__WEBPACK_IMPORTED_MODULE_10__.SvgBundleComponent, null) : null,
6347
- react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_popup_popup_modal__WEBPACK_IMPORTED_MODULE_11__.PopupModal, null),
6348
- react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.survey.wrapperFormCss },
6349
- backgroundImage,
6350
- react__WEBPACK_IMPORTED_MODULE_0__.createElement("form", { onSubmit: onSubmit },
6351
- customHeader,
6352
- react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.container },
6353
- header,
6354
- react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_9__.ComponentsContainer, { survey: this.survey, container: "header", needRenderWrapper: false }),
6355
- renderResult,
6356
- react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_9__.ComponentsContainer, { survey: this.survey, container: "footer", needRenderWrapper: false }))),
6357
- react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_notifier__WEBPACK_IMPORTED_MODULE_8__.NotifierComponent, { notifier: this.survey.notifier }))));
6427
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_scroll__WEBPACK_IMPORTED_MODULE_14__.Scroll, { disabled: this.survey.rootScrollDisabled },
6428
+ this.survey.needRenderIcons ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svgbundle__WEBPACK_IMPORTED_MODULE_10__.SvgBundleComponent, null) : null,
6429
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_popup_popup_modal__WEBPACK_IMPORTED_MODULE_11__.PopupModal, null),
6430
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.survey.wrapperFormCss },
6431
+ backgroundImage,
6432
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement("form", { onSubmit: onSubmit },
6433
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_scroll__WEBPACK_IMPORTED_MODULE_14__.Scroll, { disabled: this.survey.formScrollDisabled },
6434
+ customHeader,
6435
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.container },
6436
+ header,
6437
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_9__.ComponentsContainer, { survey: this.survey, container: "header", needRenderWrapper: false }),
6438
+ renderResult,
6439
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_9__.ComponentsContainer, { survey: this.survey, container: "footer", needRenderWrapper: false })))),
6440
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_notifier__WEBPACK_IMPORTED_MODULE_8__.NotifierComponent, { notifier: this.survey.notifier })))));
6358
6441
  };
6359
6442
  Survey.prototype.renderElement = function () {
6360
6443
  return this.doRender();
@@ -6759,7 +6842,7 @@ var SurveyQuestion = /** @class */ (function (_super) {
6759
6842
  var rootStyle = question.getRootStyle();
6760
6843
  var questionContent = this.wrapQuestionContent(this.renderQuestionContent());
6761
6844
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
6762
- react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { ref: this.rootRef, id: question.id, className: question.getRootCss(), style: rootStyle, role: question.ariaRole, "aria-required": this.question.ariaRequired, "aria-invalid": this.question.ariaInvalid, "aria-labelledby": question.ariaLabelledBy, "aria-describedby": question.ariaDescribedBy, "aria-expanded": question.ariaExpanded, "data-name": question.name },
6845
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { ref: this.rootRef, id: question.id, className: question.getRootCss(), style: rootStyle, role: question.ariaRole, "aria-required": this.question.ariaRequired, "aria-invalid": this.question.ariaInvalid, "aria-label": this.question.ariaLabel, "aria-labelledby": question.ariaLabelledBy, "aria-describedby": question.ariaDescribedBy, "aria-expanded": question.ariaExpanded, "data-name": question.name },
6763
6846
  errorsAboveQuestion,
6764
6847
  headerTop,
6765
6848
  questionContent,
@@ -11481,6 +11564,7 @@ __webpack_require__.r(__webpack_exports__);
11481
11564
  /* harmony export */ ReactQuestionFactory: () => (/* reexport safe */ _react_ui_model__WEBPACK_IMPORTED_MODULE_1__.ReactQuestionFactory),
11482
11565
  /* harmony export */ ReactSurveyElement: () => (/* reexport safe */ _react_ui_model__WEBPACK_IMPORTED_MODULE_1__.ReactSurveyElement),
11483
11566
  /* harmony export */ ReactSurveyElementsWrapper: () => (/* reexport safe */ _react_ui_model__WEBPACK_IMPORTED_MODULE_1__.ReactSurveyElementsWrapper),
11567
+ /* harmony export */ Scroll: () => (/* reexport safe */ _react_ui_model__WEBPACK_IMPORTED_MODULE_1__.Scroll),
11484
11568
  /* harmony export */ Skeleton: () => (/* reexport safe */ _react_ui_model__WEBPACK_IMPORTED_MODULE_1__.Skeleton),
11485
11569
  /* harmony export */ Survey: () => (/* reexport safe */ _react_ui_model__WEBPACK_IMPORTED_MODULE_1__.Survey),
11486
11570
  /* harmony export */ SurveyActionBar: () => (/* reexport safe */ _react_ui_model__WEBPACK_IMPORTED_MODULE_1__.SurveyActionBar),
@@ -11572,7 +11656,7 @@ __webpack_require__.r(__webpack_exports__);
11572
11656
 
11573
11657
 
11574
11658
 
11575
- (0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.0.2"), "survey-react-ui");
11659
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.0.4"), "survey-react-ui");
11576
11660
 
11577
11661
  })();
11578
11662