survey-react-ui 2.0.3 → 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-react-ui",
3
- "version": "2.0.3",
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",
@@ -25,7 +25,7 @@
25
25
  }
26
26
  },
27
27
  "peerDependencies": {
28
- "survey-core": "2.0.3",
28
+ "survey-core": "2.0.5",
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.3
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
  */
@@ -28,7 +28,7 @@ __webpack_require__.r(__webpack_exports__);
28
28
  /* harmony export */ icons: () => (/* binding */ iconsV1)
29
29
  /* harmony export */ });
30
30
  /*!
31
- * surveyjs - Survey JavaScript library v2.0.3
31
+ * surveyjs - Survey JavaScript library v2.0.5
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
  */
@@ -112,7 +112,7 @@ __webpack_require__.r(__webpack_exports__);
112
112
  /* harmony export */ icons: () => (/* binding */ iconsV2)
113
113
  /* harmony export */ });
114
114
  /*!
115
- * surveyjs - Survey JavaScript library v2.0.3
115
+ * surveyjs - Survey JavaScript library v2.0.5
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
  */
@@ -531,7 +531,7 @@ var SurveyQuestionBooleanCheckbox = /** @class */ (function (_super) {
531
531
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { className: cssClasses.checkboxLabel },
532
532
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { ref: this.checkRef, type: "checkbox", name: this.question.name, value: this.question.booleanValue === null
533
533
  ? ""
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.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 }),
535
535
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: cssClasses.checkboxMaterialDecorator },
536
536
  this.question.svgIcon ?
537
537
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", { className: cssClasses.checkboxItemDecorator },
@@ -722,7 +722,7 @@ var SurveyQuestionBoolean = /** @class */ (function (_super) {
722
722
  var cssClasses = this.question.cssClasses;
723
723
  var itemClass = this.question.getItemCss();
724
724
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.root, onKeyDown: this.handleOnKeyDown },
725
- react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { className: itemClass, onClick: this.handleOnClick },
725
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { className: itemClass },
726
726
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { ref: this.checkRef, type: "checkbox", name: this.question.name, value: this.question.booleanValue === null
727
727
  ? ""
728
728
  : 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 }),
@@ -1507,8 +1507,7 @@ __webpack_require__.r(__webpack_exports__);
1507
1507
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1508
1508
  /* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../reactquestion_element */ "./src/reactquestion_element.tsx");
1509
1509
  /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../element-factory */ "./src/element-factory.tsx");
1510
- /* harmony import */ var _file_item__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./file-item */ "./src/components/file/file-item.tsx");
1511
- /* harmony import */ var _file_page__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./file-page */ "./src/components/file/file-page.tsx");
1510
+ /* harmony import */ var _file_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./file-page */ "./src/components/file/file-page.tsx");
1512
1511
  var __extends = (undefined && undefined.__extends) || (function () {
1513
1512
  var extendStatics = function (d, b) {
1514
1513
  extendStatics = Object.setPrototypeOf ||
@@ -1528,7 +1527,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
1528
1527
 
1529
1528
 
1530
1529
 
1531
-
1532
1530
  var SurveyFilePreview = /** @class */ (function (_super) {
1533
1531
  __extends(SurveyFilePreview, _super);
1534
1532
  function SurveyFilePreview() {
@@ -1552,8 +1550,7 @@ var SurveyFilePreview = /** @class */ (function (_super) {
1552
1550
  };
1553
1551
  SurveyFilePreview.prototype.renderElement = function () {
1554
1552
  var _this = this;
1555
- 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 })); })
1556
- : 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 })); });
1553
+ 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 })); });
1557
1554
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.fileList || undefined }, content);
1558
1555
  };
1559
1556
  SurveyFilePreview.prototype.canRender = function () {
@@ -4459,7 +4456,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
4459
4456
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.noTabIndex ? undefined : 0,
4460
4457
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
4461
4458
  // @ts-ignore
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-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)); } },
4459
+ 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)); } },
4463
4460
  dropdownListModel.showHintPrefix ?
4464
4461
  (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.hintPrefix },
4465
4462
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, dropdownListModel.hintStringPrefix))) : null,
@@ -6810,21 +6807,13 @@ var SurveyQuestion = /** @class */ (function (_super) {
6810
6807
  };
6811
6808
  var cssClasses = question.cssClasses;
6812
6809
  var questionRender = this.renderQuestion();
6813
- var errorsTop = this.question.showErrorOnTop
6814
- ? this.renderErrors(cssClasses, "top")
6815
- : null;
6816
- var errorsBottom = this.question.showErrorOnBottom
6817
- ? this.renderErrors(cssClasses, "bottom")
6818
- : null;
6819
6810
  var comment = question && question.hasComment ? this.renderComment(cssClasses) : null;
6820
6811
  var descriptionUnderInput = question.hasDescriptionUnderInput
6821
6812
  ? this.renderDescription()
6822
6813
  : null;
6823
6814
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: question.cssContent || undefined, style: contentStyle, role: "presentation" },
6824
- errorsTop,
6825
6815
  questionRender,
6826
6816
  comment,
6827
- errorsBottom,
6828
6817
  descriptionUnderInput));
6829
6818
  };
6830
6819
  SurveyQuestion.prototype.renderElement = function () {
@@ -6842,7 +6831,7 @@ var SurveyQuestion = /** @class */ (function (_super) {
6842
6831
  var rootStyle = question.getRootStyle();
6843
6832
  var questionContent = this.wrapQuestionContent(this.renderQuestionContent());
6844
6833
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
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-labelledby": question.ariaLabelledBy, "aria-describedby": question.ariaDescribedBy, "aria-expanded": question.ariaExpanded, "data-name": question.name },
6834
+ 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 },
6846
6835
  errorsAboveQuestion,
6847
6836
  headerTop,
6848
6837
  questionContent,
@@ -6917,13 +6906,6 @@ var SurveyElementErrors = /** @class */ (function (_super) {
6917
6906
  enumerable: false,
6918
6907
  configurable: true
6919
6908
  });
6920
- Object.defineProperty(SurveyElementErrors.prototype, "location", {
6921
- get: function () {
6922
- return this.props.location;
6923
- },
6924
- enumerable: false,
6925
- configurable: true
6926
- });
6927
6909
  SurveyElementErrors.prototype.getState = function (prevState) {
6928
6910
  if (prevState === void 0) { prevState = null; }
6929
6911
  return !prevState ? { error: 0 } : { error: prevState.error + 1 };
@@ -7331,8 +7313,9 @@ var SurveyQuestionCheckbox = /** @class */ (function (_super) {
7331
7313
  if (this.question.blockedRow) {
7332
7314
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.rootRow }, this.getItems(cssClasses, this.question.dataChoices));
7333
7315
  }
7334
- else
7316
+ else {
7335
7317
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, this.getItems(cssClasses, this.question.bodyItems));
7318
+ }
7336
7319
  };
7337
7320
  SurveyQuestionCheckbox.prototype.getItems = function (cssClasses, choices) {
7338
7321
  var renderedItems = [];
@@ -8324,13 +8307,11 @@ __webpack_require__.r(__webpack_exports__);
8324
8307
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8325
8308
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8326
8309
  /* harmony import */ var _components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/action-bar/action-bar */ "./src/components/action-bar/action-bar.tsx");
8327
- /* harmony import */ var _components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/svg-icon/svg-icon */ "./src/components/svg-icon/svg-icon.tsx");
8328
- /* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactquestion_element */ "./src/reactquestion_element.tsx");
8329
- /* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reactquestion_factory */ "./src/reactquestion_factory.tsx");
8330
- /* harmony import */ var _components_loading_indicator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/loading-indicator */ "./src/components/loading-indicator.tsx");
8331
- /* harmony import */ var _components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/action-bar/action-bar-item */ "./src/components/action-bar/action-bar-item.tsx");
8332
- /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./element-factory */ "./src/element-factory.tsx");
8333
- /* harmony import */ var _components_file_file_choose_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/file/file-choose-button */ "./src/components/file/file-choose-button.tsx");
8310
+ /* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactquestion_element */ "./src/reactquestion_element.tsx");
8311
+ /* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactquestion_factory */ "./src/reactquestion_factory.tsx");
8312
+ /* harmony import */ var _components_loading_indicator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/loading-indicator */ "./src/components/loading-indicator.tsx");
8313
+ /* harmony import */ var _components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/action-bar/action-bar-item */ "./src/components/action-bar/action-bar-item.tsx");
8314
+ /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./element-factory */ "./src/element-factory.tsx");
8334
8315
  var __extends = (undefined && undefined.__extends) || (function () {
8335
8316
  var extendStatics = function (d, b) {
8336
8317
  extendStatics = Object.setPrototypeOf ||
@@ -8353,9 +8334,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
8353
8334
 
8354
8335
 
8355
8336
 
8356
-
8357
-
8358
- // import { ReactElementFactory, SurveyFileChooseButton } from "../entries/react-ui-model";
8359
8337
  var SurveyQuestionFile = /** @class */ (function (_super) {
8360
8338
  __extends(SurveyQuestionFile, _super);
8361
8339
  function SurveyQuestionFile(props) {
@@ -8374,8 +8352,6 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
8374
8352
  var loadingIndicator = this.question.showLoadingIndicator ? this.renderLoadingIndicator() : null;
8375
8353
  var video = this.question.isPlayingVideo ? this.renderVideo() : null;
8376
8354
  var fileDecorator = this.question.showFileDecorator ? this.renderFileDecorator() : null;
8377
- var clearButton = this.question.showRemoveButton ? this.renderClearButton(this.question.cssClasses.removeButton) : null;
8378
- var clearButtonBottom = this.question.showRemoveButtonBottom ? this.renderClearButton(this.question.cssClasses.removeButtonBottom) : null;
8379
8355
  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;
8380
8356
  var fileInput;
8381
8357
  if (this.question.isReadOnlyAttr) {
@@ -8396,48 +8372,36 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
8396
8372
  fileDecorator,
8397
8373
  loadingIndicator,
8398
8374
  video,
8399
- clearButton,
8400
8375
  preview,
8401
- clearButtonBottom,
8402
8376
  fileNavigator)));
8403
8377
  };
8404
8378
  SurveyQuestionFile.prototype.renderFileDecorator = function () {
8405
- var chooseButton = this.question.showChooseButton ? this.renderChooseButton() : null;
8406
8379
  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;
8407
8380
  var noFileChosen = this.question.isEmpty() ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: this.question.cssClasses.noFileChosen }, this.question.noFileChosenCaption)) : null;
8408
8381
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.getFileDecoratorCss() },
8409
8382
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: this.question.cssClasses.dragAreaPlaceholder }, this.renderLocString(this.question.locRenderedPlaceholder)),
8410
8383
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.wrapper },
8411
- chooseButton,
8412
8384
  actionsContainer,
8413
8385
  noFileChosen)));
8414
8386
  };
8415
- SurveyQuestionFile.prototype.renderChooseButton = function () {
8416
- return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_file_file_choose_button__WEBPACK_IMPORTED_MODULE_8__.SurveyFileChooseButton, { data: { question: this.question } });
8417
- };
8418
- SurveyQuestionFile.prototype.renderClearButton = function (className) {
8419
- return !this.question.isUploading ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { type: "button", onClick: this.question.doClean, className: className },
8420
- react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, this.question.clearButtonCaption),
8421
- (!!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;
8422
- };
8423
8387
  SurveyQuestionFile.prototype.renderPreview = function () {
8424
- return _element_factory__WEBPACK_IMPORTED_MODULE_7__.ReactElementFactory.Instance.createElement("sv-file-preview", { question: this.question });
8388
+ return _element_factory__WEBPACK_IMPORTED_MODULE_6__.ReactElementFactory.Instance.createElement("sv-file-preview", { question: this.question });
8425
8389
  };
8426
8390
  SurveyQuestionFile.prototype.renderLoadingIndicator = function () {
8427
8391
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.loadingIndicator },
8428
- react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_loading_indicator__WEBPACK_IMPORTED_MODULE_5__.LoadingIndicatorComponent, null));
8392
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_loading_indicator__WEBPACK_IMPORTED_MODULE_4__.LoadingIndicatorComponent, null));
8429
8393
  };
8430
8394
  SurveyQuestionFile.prototype.renderVideo = function () {
8431
8395
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.videoContainer },
8432
- react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_6__.SurveyAction, { item: this.question.changeCameraAction }),
8433
- react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_6__.SurveyAction, { item: this.question.closeCameraAction }),
8396
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_5__.SurveyAction, { item: this.question.changeCameraAction }),
8397
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_5__.SurveyAction, { item: this.question.closeCameraAction }),
8434
8398
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("video", { autoPlay: true, playsInline: true, id: this.question.videoId, className: this.question.cssClasses.video }),
8435
- react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_6__.SurveyAction, { item: this.question.takePictureAction })));
8399
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_5__.SurveyAction, { item: this.question.takePictureAction })));
8436
8400
  };
8437
8401
  return SurveyQuestionFile;
8438
- }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_3__.SurveyQuestionElementBase));
8402
+ }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionElementBase));
8439
8403
 
8440
- _reactquestion_factory__WEBPACK_IMPORTED_MODULE_4__.ReactQuestionFactory.Instance.registerQuestion("file", function (props) {
8404
+ _reactquestion_factory__WEBPACK_IMPORTED_MODULE_3__.ReactQuestionFactory.Instance.registerQuestion("file", function (props) {
8441
8405
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionFile, props);
8442
8406
  });
8443
8407
 
@@ -8610,14 +8574,14 @@ var SurveyQuestionMatrix = /** @class */ (function (_super) {
8610
8574
  var key = "row-" + row.name + "-" + i;
8611
8575
  rows.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionMatrixRow, { key: key, question: this.question, cssClasses: cssClasses, row: row, isFirst: i == 0 }));
8612
8576
  }
8613
- var header = !this.question.showHeader ? null : (react__WEBPACK_IMPORTED_MODULE_0__.createElement("thead", null,
8577
+ var header = !this.question.showHeader ? null : (react__WEBPACK_IMPORTED_MODULE_0__.createElement("thead", { role: "presentation" },
8614
8578
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr", null,
8615
8579
  rowsTH,
8616
8580
  headers)));
8617
8581
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.tableWrapper, ref: function (root) { return (_this.setControl(root)); } },
8618
- react__WEBPACK_IMPORTED_MODULE_0__.createElement("fieldset", null,
8619
- react__WEBPACK_IMPORTED_MODULE_0__.createElement("legend", { className: "sv-hidden" }, this.question.locTitle.renderedHtml),
8620
- react__WEBPACK_IMPORTED_MODULE_0__.createElement("table", { className: this.question.getTableCss() },
8582
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement("fieldset", { role: "radiogroup" },
8583
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement("legend", { className: "sv-visuallyhidden" }, this.question.locTitle.renderedHtml),
8584
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement("table", { className: this.question.getTableCss(), role: "presentation" },
8621
8585
  header,
8622
8586
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("tbody", null, rows)))));
8623
8587
  };
@@ -9092,10 +9056,7 @@ var SurveyQuestionMatrixDropdownBase = /** @class */ (function (_super) {
9092
9056
  };
9093
9057
  SurveyQuestionMatrixDropdownBase.prototype.renderTableDiv = function () {
9094
9058
  var _this = this;
9095
- var divStyle = this.question.showHorizontalScroll
9096
- ? { overflowX: "scroll" }
9097
- : {};
9098
- return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { style: divStyle, className: this.question.cssClasses.tableWrapper, ref: function (root) { return (_this.setControl(root)); } },
9059
+ return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.tableWrapper, ref: function (root) { return (_this.setControl(root)); } },
9099
9060
  react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionMatrixTable, { question: this.question, creator: this.creator, wrapCell: function (cell, element, reason) { return _this.wrapCell(cell, element, reason); } })));
9100
9061
  };
9101
9062
  return SurveyQuestionMatrixDropdownBase;
@@ -9221,7 +9182,7 @@ var SurveyQuestionMatrixDropdownCell = /** @class */ (function (_super) {
9221
9182
  row: this.cell.row,
9222
9183
  column: this.cell.cell.column,
9223
9184
  };
9224
- this.question.survey.matrixAfterCellRender(this.question, options);
9185
+ this.question.survey.matrixAfterCellRender(options);
9225
9186
  this.question.afterRenderCore(el);
9226
9187
  }
9227
9188
  };
@@ -9587,10 +9548,7 @@ __webpack_require__.r(__webpack_exports__);
9587
9548
  /* harmony import */ var _panel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./panel */ "./src/panel.tsx");
9588
9549
  /* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactquestion_factory */ "./src/reactquestion_factory.tsx");
9589
9550
  /* harmony import */ var _components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/action-bar/action-bar */ "./src/components/action-bar/action-bar.tsx");
9590
- /* harmony import */ var _components_paneldynamic_actions_paneldynamic_next_btn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/paneldynamic-actions/paneldynamic-next-btn */ "./src/components/paneldynamic-actions/paneldynamic-next-btn.tsx");
9591
- /* harmony import */ var _components_paneldynamic_actions_paneldynamic_prev_btn__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/paneldynamic-actions/paneldynamic-prev-btn */ "./src/components/paneldynamic-actions/paneldynamic-prev-btn.tsx");
9592
- /* harmony import */ var _components_paneldynamic_actions_paneldynamic_progress_text__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/paneldynamic-actions/paneldynamic-progress-text */ "./src/components/paneldynamic-actions/paneldynamic-progress-text.tsx");
9593
- /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./element-factory */ "./src/element-factory.tsx");
9551
+ /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./element-factory */ "./src/element-factory.tsx");
9594
9552
  var __extends = (undefined && undefined.__extends) || (function () {
9595
9553
  var extendStatics = function (d, b) {
9596
9554
  extendStatics = Object.setPrototypeOf ||
@@ -9612,9 +9570,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
9612
9570
 
9613
9571
 
9614
9572
 
9615
-
9616
-
9617
-
9618
9573
  var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
9619
9574
  __extends(SurveyQuestionPanelDynamic, _super);
9620
9575
  function SurveyQuestionPanelDynamic(props) {
@@ -9658,14 +9613,8 @@ var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
9658
9613
  this.question.renderedPanels.forEach(function (panel, index) {
9659
9614
  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 }));
9660
9615
  });
9661
- var btnAdd = this.question.isRenderModeList && this.question["showLegacyNavigation"]
9662
- ? this.renderAddRowButton()
9663
- : null;
9664
- var navTop = this.question.isProgressTopShowing
9665
- ? this.renderNavigator()
9666
- : null;
9667
- var navBottom = this.question.isProgressBottomShowing
9668
- ? this.renderNavigator()
9616
+ var rangeTop = this.question.isRangeShowing && this.question.isProgressTopShowing
9617
+ ? this.renderRange()
9669
9618
  : null;
9670
9619
  var navV2 = this.renderNavigatorV2();
9671
9620
  var noEntriesPlaceholder = this.renderPlaceholder();
@@ -9673,52 +9622,16 @@ var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
9673
9622
  this.question.hasTabbedMenu ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.getTabsContainerCss() },
9674
9623
  react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_4__.SurveyActionBar, { model: this.question.tabbedMenu })) : null,
9675
9624
  noEntriesPlaceholder,
9676
- navTop,
9625
+ rangeTop,
9677
9626
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.panelsContainer }, panels),
9678
- navBottom,
9679
- btnAdd,
9680
9627
  navV2));
9681
9628
  };
9682
- SurveyQuestionPanelDynamic.prototype.renderNavigator = function () {
9683
- if (!this.question["showLegacyNavigation"]) {
9684
- if (this.question.isRangeShowing && this.question.isProgressTopShowing) {
9685
- return this.renderRange();
9686
- }
9687
- else {
9688
- return null;
9689
- }
9690
- }
9691
- var range = this.question.isRangeShowing ? this.renderRange() : null;
9692
- var btnPrev = this.rendrerPrevButton();
9693
- var btnNext = this.rendrerNextButton();
9694
- var btnAdd = this.renderAddRowButton();
9695
- var progressClass = this.question.isProgressTopShowing
9696
- ? this.question.cssClasses.progressTop
9697
- : this.question.cssClasses.progressBottom;
9698
- return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: progressClass },
9699
- react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { style: { clear: "both" } },
9700
- react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.progressContainer },
9701
- btnPrev,
9702
- range,
9703
- btnNext),
9704
- btnAdd,
9705
- this.renderProgressText())));
9706
- };
9707
- SurveyQuestionPanelDynamic.prototype.renderProgressText = function () {
9708
- return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_paneldynamic_actions_paneldynamic_progress_text__WEBPACK_IMPORTED_MODULE_7__.SurveyQuestionPanelDynamicProgressText, { data: { question: this.question } }));
9709
- };
9710
- SurveyQuestionPanelDynamic.prototype.rendrerPrevButton = function () {
9711
- return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_paneldynamic_actions_paneldynamic_prev_btn__WEBPACK_IMPORTED_MODULE_6__.SurveyQuestionPanelDynamicPrevButton, { data: { question: this.question } }));
9712
- };
9713
- SurveyQuestionPanelDynamic.prototype.rendrerNextButton = function () {
9714
- return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_paneldynamic_actions_paneldynamic_next_btn__WEBPACK_IMPORTED_MODULE_5__.SurveyQuestionPanelDynamicNextButton, { data: { question: this.question } }));
9715
- };
9716
9629
  SurveyQuestionPanelDynamic.prototype.renderRange = function () {
9717
9630
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.progress },
9718
9631
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.progressBar, style: { width: this.question.progress }, role: "progressbar" })));
9719
9632
  };
9720
9633
  SurveyQuestionPanelDynamic.prototype.renderAddRowButton = function () {
9721
- return _element_factory__WEBPACK_IMPORTED_MODULE_8__.ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn", {
9634
+ return _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn", {
9722
9635
  data: { question: this.question }
9723
9636
  });
9724
9637
  };
@@ -9783,7 +9696,7 @@ var SurveyQuestionPanelDynamicItem = /** @class */ (function (_super) {
9783
9696
  SurveyQuestionPanelDynamicItem.prototype.renderButton = function () {
9784
9697
  if (!this.question.canRenderRemovePanelOnRight(this.panel))
9785
9698
  return null;
9786
- return _element_factory__WEBPACK_IMPORTED_MODULE_8__.ReactElementFactory.Instance.createElement("sv-paneldynamic-remove-btn", {
9699
+ return _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.createElement("sv-paneldynamic-remove-btn", {
9787
9700
  data: { question: this.question, panel: this.panel }
9788
9701
  });
9789
9702
  };
@@ -9889,8 +9802,9 @@ var SurveyQuestionRadiogroup = /** @class */ (function (_super) {
9889
9802
  if (this.question.blockedRow) {
9890
9803
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.rootRow }, this.getItems(cssClasses, this.question.dataChoices));
9891
9804
  }
9892
- else
9805
+ else {
9893
9806
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, this.getItems(cssClasses, this.question.bodyItems));
9807
+ }
9894
9808
  };
9895
9809
  SurveyQuestionRadiogroup.prototype.getItems = function (cssClasses, choices) {
9896
9810
  var items = [];
@@ -11656,7 +11570,7 @@ __webpack_require__.r(__webpack_exports__);
11656
11570
 
11657
11571
 
11658
11572
 
11659
- (0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.0.3"), "survey-react-ui");
11573
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.0.5"), "survey-react-ui");
11660
11574
 
11661
11575
  })();
11662
11576