survey-js-ui 2.0.4 → 2.0.5

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-js-ui",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
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",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {},
33
33
  "peerDependencies": {
34
- "survey-core": "2.0.4",
34
+ "survey-core": "2.0.5",
35
35
  "@types/react-dom": "*",
36
36
  "@types/react": "*"
37
37
  }
package/survey-js-ui.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v2.0.4
2
+ * surveyjs - Survey JavaScript library v2.0.5
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
  */
@@ -23,7 +23,7 @@ return /******/ (() => { // webpackBootstrap
23
23
  /***/ (function(module) {
24
24
 
25
25
  /*!
26
- * surveyjs - Survey JavaScript library v2.0.4
26
+ * surveyjs - Survey JavaScript library v2.0.5
27
27
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
28
28
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
29
29
  */
@@ -808,7 +808,7 @@ path.keys().forEach(function (key) {
808
808
  /***/ (function(module) {
809
809
 
810
810
  /*!
811
- * surveyjs - Survey JavaScript library v2.0.4
811
+ * surveyjs - Survey JavaScript library v2.0.5
812
812
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
813
813
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
814
814
  */
@@ -2124,7 +2124,7 @@ var SurveyQuestionBoolean = /** @class */ (function (_super) {
2124
2124
  var cssClasses = this.question.cssClasses;
2125
2125
  var itemClass = this.question.getItemCss();
2126
2126
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.root, onKeyDown: this.handleOnKeyDown },
2127
- react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { className: itemClass, onClick: this.handleOnClick },
2127
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { className: itemClass },
2128
2128
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { ref: this.checkRef, type: "checkbox", name: this.question.name, value: this.question.booleanValue === null
2129
2129
  ? ""
2130
2130
  : this.question.booleanValue, id: this.question.inputId, className: cssClasses.control, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.booleanValue || false, onChange: this.handleOnChange, role: this.question.a11y_input_ariaRole, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage }),
@@ -2907,8 +2907,7 @@ __webpack_require__.r(__webpack_exports__);
2907
2907
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/preact/compat/dist/compat.module.js");
2908
2908
  /* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../reactquestion_element */ "../survey-react-ui/src/reactquestion_element.tsx");
2909
2909
  /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../element-factory */ "../survey-react-ui/src/element-factory.tsx");
2910
- /* harmony import */ var _file_item__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./file-item */ "../survey-react-ui/src/components/file/file-item.tsx");
2911
- /* harmony import */ var _file_page__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./file-page */ "../survey-react-ui/src/components/file/file-page.tsx");
2910
+ /* harmony import */ var _file_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./file-page */ "../survey-react-ui/src/components/file/file-page.tsx");
2912
2911
  var __extends = (undefined && undefined.__extends) || (function () {
2913
2912
  var extendStatics = function (d, b) {
2914
2913
  extendStatics = Object.setPrototypeOf ||
@@ -2928,7 +2927,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
2928
2927
 
2929
2928
 
2930
2929
 
2931
-
2932
2930
  var SurveyFilePreview = /** @class */ (function (_super) {
2933
2931
  __extends(SurveyFilePreview, _super);
2934
2932
  function SurveyFilePreview() {
@@ -2952,8 +2950,7 @@ var SurveyFilePreview = /** @class */ (function (_super) {
2952
2950
  };
2953
2951
  SurveyFilePreview.prototype.renderElement = function () {
2954
2952
  var _this = this;
2955
- var content = this.question.supportFileNavigator ? this.question.renderedPages.map(function (page, index) { return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_file_page__WEBPACK_IMPORTED_MODULE_4__.SurveyFilePage, { page: page, question: _this.question, key: page.id })); })
2956
- : this.question.previewValue.map(function (item, index) { return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_file_item__WEBPACK_IMPORTED_MODULE_3__.SurveyFileItem, { item: item, question: _this.question, key: index })); });
2953
+ var content = this.question.renderedPages.map(function (page, index) { return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_file_page__WEBPACK_IMPORTED_MODULE_3__.SurveyFilePage, { page: page, question: _this.question, key: page.id })); });
2957
2954
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.fileList || undefined }, content);
2958
2955
  };
2959
2956
  SurveyFilePreview.prototype.canRender = function () {
@@ -8211,21 +8208,13 @@ var SurveyQuestion = /** @class */ (function (_super) {
8211
8208
  };
8212
8209
  var cssClasses = question.cssClasses;
8213
8210
  var questionRender = this.renderQuestion();
8214
- var errorsTop = this.question.showErrorOnTop
8215
- ? this.renderErrors(cssClasses, "top")
8216
- : null;
8217
- var errorsBottom = this.question.showErrorOnBottom
8218
- ? this.renderErrors(cssClasses, "bottom")
8219
- : null;
8220
8211
  var comment = question && question.hasComment ? this.renderComment(cssClasses) : null;
8221
8212
  var descriptionUnderInput = question.hasDescriptionUnderInput
8222
8213
  ? this.renderDescription()
8223
8214
  : null;
8224
8215
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: question.cssContent || undefined, style: contentStyle, role: "presentation" },
8225
- errorsTop,
8226
8216
  questionRender,
8227
8217
  comment,
8228
- errorsBottom,
8229
8218
  descriptionUnderInput));
8230
8219
  };
8231
8220
  SurveyQuestion.prototype.renderElement = function () {
@@ -8318,13 +8307,6 @@ var SurveyElementErrors = /** @class */ (function (_super) {
8318
8307
  enumerable: false,
8319
8308
  configurable: true
8320
8309
  });
8321
- Object.defineProperty(SurveyElementErrors.prototype, "location", {
8322
- get: function () {
8323
- return this.props.location;
8324
- },
8325
- enumerable: false,
8326
- configurable: true
8327
- });
8328
8310
  SurveyElementErrors.prototype.getState = function (prevState) {
8329
8311
  if (prevState === void 0) { prevState = null; }
8330
8312
  return !prevState ? { error: 0 } : { error: prevState.error + 1 };
@@ -8732,8 +8714,9 @@ var SurveyQuestionCheckbox = /** @class */ (function (_super) {
8732
8714
  if (this.question.blockedRow) {
8733
8715
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.rootRow }, this.getItems(cssClasses, this.question.dataChoices));
8734
8716
  }
8735
- else
8717
+ else {
8736
8718
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, this.getItems(cssClasses, this.question.bodyItems));
8719
+ }
8737
8720
  };
8738
8721
  SurveyQuestionCheckbox.prototype.getItems = function (cssClasses, choices) {
8739
8722
  var renderedItems = [];
@@ -9726,13 +9709,11 @@ __webpack_require__.r(__webpack_exports__);
9726
9709
  /* harmony export */ });
9727
9710
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/preact/compat/dist/compat.module.js");
9728
9711
  /* harmony import */ var _components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/action-bar/action-bar */ "../survey-react-ui/src/components/action-bar/action-bar.tsx");
9729
- /* harmony import */ var _components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/svg-icon/svg-icon */ "../survey-react-ui/src/components/svg-icon/svg-icon.tsx");
9730
- /* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactquestion_element */ "../survey-react-ui/src/reactquestion_element.tsx");
9731
- /* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reactquestion_factory */ "../survey-react-ui/src/reactquestion_factory.tsx");
9732
- /* harmony import */ var _components_loading_indicator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/loading-indicator */ "../survey-react-ui/src/components/loading-indicator.tsx");
9733
- /* harmony import */ var _components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/action-bar/action-bar-item */ "../survey-react-ui/src/components/action-bar/action-bar-item.tsx");
9734
- /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./element-factory */ "../survey-react-ui/src/element-factory.tsx");
9735
- /* harmony import */ var _components_file_file_choose_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/file/file-choose-button */ "../survey-react-ui/src/components/file/file-choose-button.tsx");
9712
+ /* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactquestion_element */ "../survey-react-ui/src/reactquestion_element.tsx");
9713
+ /* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactquestion_factory */ "../survey-react-ui/src/reactquestion_factory.tsx");
9714
+ /* harmony import */ var _components_loading_indicator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/loading-indicator */ "../survey-react-ui/src/components/loading-indicator.tsx");
9715
+ /* harmony import */ var _components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/action-bar/action-bar-item */ "../survey-react-ui/src/components/action-bar/action-bar-item.tsx");
9716
+ /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./element-factory */ "../survey-react-ui/src/element-factory.tsx");
9736
9717
  var __extends = (undefined && undefined.__extends) || (function () {
9737
9718
  var extendStatics = function (d, b) {
9738
9719
  extendStatics = Object.setPrototypeOf ||
@@ -9755,9 +9736,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
9755
9736
 
9756
9737
 
9757
9738
 
9758
-
9759
-
9760
- // import { ReactElementFactory, SurveyFileChooseButton } from "../entries/react-ui-model";
9761
9739
  var SurveyQuestionFile = /** @class */ (function (_super) {
9762
9740
  __extends(SurveyQuestionFile, _super);
9763
9741
  function SurveyQuestionFile(props) {
@@ -9776,8 +9754,6 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
9776
9754
  var loadingIndicator = this.question.showLoadingIndicator ? this.renderLoadingIndicator() : null;
9777
9755
  var video = this.question.isPlayingVideo ? this.renderVideo() : null;
9778
9756
  var fileDecorator = this.question.showFileDecorator ? this.renderFileDecorator() : null;
9779
- var clearButton = this.question.showRemoveButton ? this.renderClearButton(this.question.cssClasses.removeButton) : null;
9780
- var clearButtonBottom = this.question.showRemoveButtonBottom ? this.renderClearButton(this.question.cssClasses.removeButtonBottom) : null;
9781
9757
  var fileNavigator = this.question.fileNavigatorVisible ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__.SurveyActionBar, { model: this.question.fileNavigator })) : null;
9782
9758
  var fileInput;
9783
9759
  if (this.question.isReadOnlyAttr) {
@@ -9798,48 +9774,36 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
9798
9774
  fileDecorator,
9799
9775
  loadingIndicator,
9800
9776
  video,
9801
- clearButton,
9802
9777
  preview,
9803
- clearButtonBottom,
9804
9778
  fileNavigator)));
9805
9779
  };
9806
9780
  SurveyQuestionFile.prototype.renderFileDecorator = function () {
9807
- var chooseButton = this.question.showChooseButton ? this.renderChooseButton() : null;
9808
9781
  var actionsContainer = this.question.actionsContainerVisible ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__.SurveyActionBar, { model: this.question.actionsContainer }) : null;
9809
9782
  var noFileChosen = this.question.isEmpty() ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: this.question.cssClasses.noFileChosen }, this.question.noFileChosenCaption)) : null;
9810
9783
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.getFileDecoratorCss() },
9811
9784
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: this.question.cssClasses.dragAreaPlaceholder }, this.renderLocString(this.question.locRenderedPlaceholder)),
9812
9785
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.wrapper },
9813
- chooseButton,
9814
9786
  actionsContainer,
9815
9787
  noFileChosen)));
9816
9788
  };
9817
- SurveyQuestionFile.prototype.renderChooseButton = function () {
9818
- return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_file_file_choose_button__WEBPACK_IMPORTED_MODULE_8__.SurveyFileChooseButton, { data: { question: this.question } });
9819
- };
9820
- SurveyQuestionFile.prototype.renderClearButton = function (className) {
9821
- return !this.question.isUploading ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { type: "button", onClick: this.question.doClean, className: className },
9822
- react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, this.question.clearButtonCaption),
9823
- (!!this.question.cssClasses.removeButtonIconId) ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.question.cssClasses.removeButtonIconId, size: "auto", title: this.question.clearButtonCaption }) : null)) : null;
9824
- };
9825
9789
  SurveyQuestionFile.prototype.renderPreview = function () {
9826
- return _element_factory__WEBPACK_IMPORTED_MODULE_7__.ReactElementFactory.Instance.createElement("sv-file-preview", { question: this.question });
9790
+ return _element_factory__WEBPACK_IMPORTED_MODULE_6__.ReactElementFactory.Instance.createElement("sv-file-preview", { question: this.question });
9827
9791
  };
9828
9792
  SurveyQuestionFile.prototype.renderLoadingIndicator = function () {
9829
9793
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.loadingIndicator },
9830
- react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_loading_indicator__WEBPACK_IMPORTED_MODULE_5__.LoadingIndicatorComponent, null));
9794
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_loading_indicator__WEBPACK_IMPORTED_MODULE_4__.LoadingIndicatorComponent, null));
9831
9795
  };
9832
9796
  SurveyQuestionFile.prototype.renderVideo = function () {
9833
9797
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.videoContainer },
9834
- react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_6__.SurveyAction, { item: this.question.changeCameraAction }),
9835
- react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_6__.SurveyAction, { item: this.question.closeCameraAction }),
9798
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_5__.SurveyAction, { item: this.question.changeCameraAction }),
9799
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_5__.SurveyAction, { item: this.question.closeCameraAction }),
9836
9800
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("video", { autoPlay: true, playsInline: true, id: this.question.videoId, className: this.question.cssClasses.video }),
9837
- react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_6__.SurveyAction, { item: this.question.takePictureAction })));
9801
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_5__.SurveyAction, { item: this.question.takePictureAction })));
9838
9802
  };
9839
9803
  return SurveyQuestionFile;
9840
- }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_3__.SurveyQuestionElementBase));
9804
+ }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionElementBase));
9841
9805
 
9842
- _reactquestion_factory__WEBPACK_IMPORTED_MODULE_4__.ReactQuestionFactory.Instance.registerQuestion("file", function (props) {
9806
+ _reactquestion_factory__WEBPACK_IMPORTED_MODULE_3__.ReactQuestionFactory.Instance.registerQuestion("file", function (props) {
9843
9807
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionFile, props);
9844
9808
  });
9845
9809
 
@@ -10012,14 +9976,14 @@ var SurveyQuestionMatrix = /** @class */ (function (_super) {
10012
9976
  var key = "row-" + row.name + "-" + i;
10013
9977
  rows.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionMatrixRow, { key: key, question: this.question, cssClasses: cssClasses, row: row, isFirst: i == 0 }));
10014
9978
  }
10015
- var header = !this.question.showHeader ? null : (react__WEBPACK_IMPORTED_MODULE_0__.createElement("thead", null,
9979
+ var header = !this.question.showHeader ? null : (react__WEBPACK_IMPORTED_MODULE_0__.createElement("thead", { role: "presentation" },
10016
9980
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr", null,
10017
9981
  rowsTH,
10018
9982
  headers)));
10019
9983
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.tableWrapper, ref: function (root) { return (_this.setControl(root)); } },
10020
- react__WEBPACK_IMPORTED_MODULE_0__.createElement("fieldset", null,
10021
- react__WEBPACK_IMPORTED_MODULE_0__.createElement("legend", { className: "sv-hidden" }, this.question.locTitle.renderedHtml),
10022
- react__WEBPACK_IMPORTED_MODULE_0__.createElement("table", { className: this.question.getTableCss() },
9984
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement("fieldset", { role: "radiogroup" },
9985
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement("legend", { className: "sv-visuallyhidden" }, this.question.locTitle.renderedHtml),
9986
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement("table", { className: this.question.getTableCss(), role: "presentation" },
10023
9987
  header,
10024
9988
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("tbody", null, rows)))));
10025
9989
  };
@@ -10494,10 +10458,7 @@ var SurveyQuestionMatrixDropdownBase = /** @class */ (function (_super) {
10494
10458
  };
10495
10459
  SurveyQuestionMatrixDropdownBase.prototype.renderTableDiv = function () {
10496
10460
  var _this = this;
10497
- var divStyle = this.question.showHorizontalScroll
10498
- ? { overflowX: "scroll" }
10499
- : {};
10500
- return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { style: divStyle, className: this.question.cssClasses.tableWrapper, ref: function (root) { return (_this.setControl(root)); } },
10461
+ return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.tableWrapper, ref: function (root) { return (_this.setControl(root)); } },
10501
10462
  react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionMatrixTable, { question: this.question, creator: this.creator, wrapCell: function (cell, element, reason) { return _this.wrapCell(cell, element, reason); } })));
10502
10463
  };
10503
10464
  return SurveyQuestionMatrixDropdownBase;
@@ -10623,7 +10584,7 @@ var SurveyQuestionMatrixDropdownCell = /** @class */ (function (_super) {
10623
10584
  row: this.cell.row,
10624
10585
  column: this.cell.cell.column,
10625
10586
  };
10626
- this.question.survey.matrixAfterCellRender(this.question, options);
10587
+ this.question.survey.matrixAfterCellRender(options);
10627
10588
  this.question.afterRenderCore(el);
10628
10589
  }
10629
10590
  };
@@ -10989,10 +10950,7 @@ __webpack_require__.r(__webpack_exports__);
10989
10950
  /* harmony import */ var _panel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./panel */ "../survey-react-ui/src/panel.tsx");
10990
10951
  /* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactquestion_factory */ "../survey-react-ui/src/reactquestion_factory.tsx");
10991
10952
  /* harmony import */ var _components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/action-bar/action-bar */ "../survey-react-ui/src/components/action-bar/action-bar.tsx");
10992
- /* harmony import */ var _components_paneldynamic_actions_paneldynamic_next_btn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/paneldynamic-actions/paneldynamic-next-btn */ "../survey-react-ui/src/components/paneldynamic-actions/paneldynamic-next-btn.tsx");
10993
- /* harmony import */ var _components_paneldynamic_actions_paneldynamic_prev_btn__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/paneldynamic-actions/paneldynamic-prev-btn */ "../survey-react-ui/src/components/paneldynamic-actions/paneldynamic-prev-btn.tsx");
10994
- /* harmony import */ var _components_paneldynamic_actions_paneldynamic_progress_text__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/paneldynamic-actions/paneldynamic-progress-text */ "../survey-react-ui/src/components/paneldynamic-actions/paneldynamic-progress-text.tsx");
10995
- /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./element-factory */ "../survey-react-ui/src/element-factory.tsx");
10953
+ /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./element-factory */ "../survey-react-ui/src/element-factory.tsx");
10996
10954
  var __extends = (undefined && undefined.__extends) || (function () {
10997
10955
  var extendStatics = function (d, b) {
10998
10956
  extendStatics = Object.setPrototypeOf ||
@@ -11014,9 +10972,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
11014
10972
 
11015
10973
 
11016
10974
 
11017
-
11018
-
11019
-
11020
10975
  var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
11021
10976
  __extends(SurveyQuestionPanelDynamic, _super);
11022
10977
  function SurveyQuestionPanelDynamic(props) {
@@ -11060,14 +11015,8 @@ var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
11060
11015
  this.question.renderedPanels.forEach(function (panel, index) {
11061
11016
  panels.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionPanelDynamicItem, { key: panel.id, element: panel, question: _this.question, index: index, cssClasses: _this.question.cssClasses, isDisplayMode: _this.isDisplayMode, creator: _this.creator }));
11062
11017
  });
11063
- var btnAdd = this.question.isRenderModeList && this.question["showLegacyNavigation"]
11064
- ? this.renderAddRowButton()
11065
- : null;
11066
- var navTop = this.question.isProgressTopShowing
11067
- ? this.renderNavigator()
11068
- : null;
11069
- var navBottom = this.question.isProgressBottomShowing
11070
- ? this.renderNavigator()
11018
+ var rangeTop = this.question.isRangeShowing && this.question.isProgressTopShowing
11019
+ ? this.renderRange()
11071
11020
  : null;
11072
11021
  var navV2 = this.renderNavigatorV2();
11073
11022
  var noEntriesPlaceholder = this.renderPlaceholder();
@@ -11075,52 +11024,16 @@ var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
11075
11024
  this.question.hasTabbedMenu ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.getTabsContainerCss() },
11076
11025
  react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_4__.SurveyActionBar, { model: this.question.tabbedMenu })) : null,
11077
11026
  noEntriesPlaceholder,
11078
- navTop,
11027
+ rangeTop,
11079
11028
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.panelsContainer }, panels),
11080
- navBottom,
11081
- btnAdd,
11082
11029
  navV2));
11083
11030
  };
11084
- SurveyQuestionPanelDynamic.prototype.renderNavigator = function () {
11085
- if (!this.question["showLegacyNavigation"]) {
11086
- if (this.question.isRangeShowing && this.question.isProgressTopShowing) {
11087
- return this.renderRange();
11088
- }
11089
- else {
11090
- return null;
11091
- }
11092
- }
11093
- var range = this.question.isRangeShowing ? this.renderRange() : null;
11094
- var btnPrev = this.rendrerPrevButton();
11095
- var btnNext = this.rendrerNextButton();
11096
- var btnAdd = this.renderAddRowButton();
11097
- var progressClass = this.question.isProgressTopShowing
11098
- ? this.question.cssClasses.progressTop
11099
- : this.question.cssClasses.progressBottom;
11100
- return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: progressClass },
11101
- react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { style: { clear: "both" } },
11102
- react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.progressContainer },
11103
- btnPrev,
11104
- range,
11105
- btnNext),
11106
- btnAdd,
11107
- this.renderProgressText())));
11108
- };
11109
- SurveyQuestionPanelDynamic.prototype.renderProgressText = function () {
11110
- return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_paneldynamic_actions_paneldynamic_progress_text__WEBPACK_IMPORTED_MODULE_7__.SurveyQuestionPanelDynamicProgressText, { data: { question: this.question } }));
11111
- };
11112
- SurveyQuestionPanelDynamic.prototype.rendrerPrevButton = function () {
11113
- return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_paneldynamic_actions_paneldynamic_prev_btn__WEBPACK_IMPORTED_MODULE_6__.SurveyQuestionPanelDynamicPrevButton, { data: { question: this.question } }));
11114
- };
11115
- SurveyQuestionPanelDynamic.prototype.rendrerNextButton = function () {
11116
- return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_paneldynamic_actions_paneldynamic_next_btn__WEBPACK_IMPORTED_MODULE_5__.SurveyQuestionPanelDynamicNextButton, { data: { question: this.question } }));
11117
- };
11118
11031
  SurveyQuestionPanelDynamic.prototype.renderRange = function () {
11119
11032
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.progress },
11120
11033
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.progressBar, style: { width: this.question.progress }, role: "progressbar" })));
11121
11034
  };
11122
11035
  SurveyQuestionPanelDynamic.prototype.renderAddRowButton = function () {
11123
- return _element_factory__WEBPACK_IMPORTED_MODULE_8__.ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn", {
11036
+ return _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn", {
11124
11037
  data: { question: this.question }
11125
11038
  });
11126
11039
  };
@@ -11185,7 +11098,7 @@ var SurveyQuestionPanelDynamicItem = /** @class */ (function (_super) {
11185
11098
  SurveyQuestionPanelDynamicItem.prototype.renderButton = function () {
11186
11099
  if (!this.question.canRenderRemovePanelOnRight(this.panel))
11187
11100
  return null;
11188
- return _element_factory__WEBPACK_IMPORTED_MODULE_8__.ReactElementFactory.Instance.createElement("sv-paneldynamic-remove-btn", {
11101
+ return _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.createElement("sv-paneldynamic-remove-btn", {
11189
11102
  data: { question: this.question, panel: this.panel }
11190
11103
  });
11191
11104
  };
@@ -11291,8 +11204,9 @@ var SurveyQuestionRadiogroup = /** @class */ (function (_super) {
11291
11204
  if (this.question.blockedRow) {
11292
11205
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.rootRow }, this.getItems(cssClasses, this.question.dataChoices));
11293
11206
  }
11294
- else
11207
+ else {
11295
11208
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, this.getItems(cssClasses, this.question.bodyItems));
11209
+ }
11296
11210
  };
11297
11211
  SurveyQuestionRadiogroup.prototype.getItems = function (cssClasses, choices) {
11298
11212
  var items = [];
@@ -13290,7 +13204,7 @@ var preact = react__WEBPACK_IMPORTED_MODULE_0__;
13290
13204
 
13291
13205
 
13292
13206
 
13293
- (0,survey_core__WEBPACK_IMPORTED_MODULE_2__.checkLibraryVersion)("".concat("2.0.4"), "survey-js-ui");
13207
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_2__.checkLibraryVersion)("".concat("2.0.5"), "survey-js-ui");
13294
13208
 
13295
13209
  })();
13296
13210