survey-react-ui 2.5.26 → 2.5.27

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.5.26",
3
+ "version": "2.5.27",
4
4
  "license": "MIT",
5
5
  "author": "DevSoft Baltic OU <info@devsoftbaltic.com>",
6
6
  "homepage": "https://surveyjs.io/",
@@ -51,7 +51,7 @@
51
51
  }
52
52
  },
53
53
  "peerDependencies": {
54
- "survey-core": "2.5.26",
54
+ "survey-core": "2.5.27",
55
55
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
56
56
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0"
57
57
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v2.5.26
2
+ * surveyjs - Survey JavaScript library v2.5.27
3
3
  * Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -5313,7 +5313,7 @@
5313
5313
  };
5314
5314
  return (React__namespace.createElement("div", { role: "presentation", className: this.question.getRadioItemClass(cssClasses, value) },
5315
5315
  React__namespace.createElement("label", { className: cssClasses.radioLabel },
5316
- React__namespace.createElement("input", { type: "radio", name: this.question.name, value: value, "aria-errormessage": this.question.ariaErrormessage, checked: value === this.question.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, className: cssClasses.itemRadioControl, onChange: handleOnChange }),
5316
+ React__namespace.createElement("input", { type: "radio", name: this.question.questionName, value: value, "aria-errormessage": this.question.ariaErrormessage, checked: value === this.question.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, className: cssClasses.itemRadioControl, onChange: handleOnChange }),
5317
5317
  this.question.cssClasses.materialRadioDecorator ?
5318
5318
  (React__namespace.createElement("span", { className: cssClasses.materialRadioDecorator }, this.question.itemSvgIcon ?
5319
5319
  (React__namespace.createElement("svg", { className: cssClasses.itemRadioDecorator },
@@ -7469,6 +7469,15 @@
7469
7469
  };
7470
7470
  return _this;
7471
7471
  }
7472
+ Object.defineProperty(SurveyQuestionPanelDynamicAddButton.prototype, "isActionEnabled", {
7473
+ get: function () {
7474
+ if (this.props.item)
7475
+ return this.props.item.enabled !== false;
7476
+ return this.question.enableAddPanel !== false;
7477
+ },
7478
+ enumerable: false,
7479
+ configurable: true
7480
+ });
7472
7481
  SurveyQuestionPanelDynamicAddButton.prototype.renderElement = function () {
7473
7482
  if (!this.question.canAddPanel)
7474
7483
  return null;
@@ -7837,7 +7846,7 @@
7837
7846
  return React__namespace.createElement(SurveyLocStringEditor, props);
7838
7847
  });
7839
7848
 
7840
- surveyCore.checkLibraryVersion("".concat("2.5.26"), "survey-react-ui");
7849
+ surveyCore.checkLibraryVersion("".concat("2.5.27"), "survey-react-ui");
7841
7850
 
7842
7851
  Object.defineProperty(exports, "Model", {
7843
7852
  enumerable: true,