survey-react-ui 2.5.26 → 2.5.28

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.28",
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.28",
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.28
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 },
@@ -6138,23 +6138,33 @@
6138
6138
  enumerable: false,
6139
6139
  configurable: true
6140
6140
  });
6141
+ Object.defineProperty(SurveyProgress.prototype, "model", {
6142
+ get: function () {
6143
+ return this.props.model;
6144
+ },
6145
+ enumerable: false,
6146
+ configurable: true
6147
+ });
6148
+ SurveyProgress.prototype.getStateElement = function () {
6149
+ return this.model;
6150
+ };
6141
6151
  Object.defineProperty(SurveyProgress.prototype, "progress", {
6142
6152
  get: function () {
6143
- return this.survey.progressValue;
6153
+ return this.model.progressValue;
6144
6154
  },
6145
6155
  enumerable: false,
6146
6156
  configurable: true
6147
6157
  });
6148
6158
  Object.defineProperty(SurveyProgress.prototype, "progressText", {
6149
6159
  get: function () {
6150
- return this.survey.progressText;
6160
+ return this.model.progressText;
6151
6161
  },
6152
6162
  enumerable: false,
6153
6163
  configurable: true
6154
6164
  });
6155
6165
  Object.defineProperty(SurveyProgress.prototype, "progressBarAriaLabel", {
6156
6166
  get: function () {
6157
- return this.survey.progressBarAriaLabel;
6167
+ return this.model.progressBarAriaLabel;
6158
6168
  },
6159
6169
  enumerable: false,
6160
6170
  configurable: true
@@ -6163,10 +6173,10 @@
6163
6173
  var progressStyle = {
6164
6174
  width: this.progress + "%",
6165
6175
  };
6166
- return (React__namespace.createElement("div", { className: this.survey.getProgressCssClasses(this.props.container) },
6167
- React__namespace.createElement("div", { style: progressStyle, className: this.css.progressBar, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": this.progressBarAriaLabel },
6168
- React__namespace.createElement("span", { className: surveyCore.SurveyProgressModel.getProgressTextInBarCss(this.css) }, this.progressText)),
6169
- React__namespace.createElement("span", { className: surveyCore.SurveyProgressModel.getProgressTextUnderBarCss(this.css) }, this.progressText)));
6176
+ return (React__namespace.createElement("div", { className: this.model.getProgressCssClasses(this.props.container) },
6177
+ React__namespace.createElement("div", { style: progressStyle, className: this.model.css.progressBar, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": this.progressBarAriaLabel },
6178
+ React__namespace.createElement("span", { className: surveyCore.SurveyProgressModel.getProgressTextInBarCss(this.model.css) }, this.progressText)),
6179
+ React__namespace.createElement("span", { className: surveyCore.SurveyProgressModel.getProgressTextUnderBarCss(this.model.css) }, this.progressText)));
6170
6180
  };
6171
6181
  return SurveyProgress;
6172
6182
  }(SurveyNavigationBase));
@@ -7469,6 +7479,15 @@
7469
7479
  };
7470
7480
  return _this;
7471
7481
  }
7482
+ Object.defineProperty(SurveyQuestionPanelDynamicAddButton.prototype, "isActionEnabled", {
7483
+ get: function () {
7484
+ if (this.props.item)
7485
+ return this.props.item.enabled !== false;
7486
+ return this.question.enableAddPanel !== false;
7487
+ },
7488
+ enumerable: false,
7489
+ configurable: true
7490
+ });
7472
7491
  SurveyQuestionPanelDynamicAddButton.prototype.renderElement = function () {
7473
7492
  if (!this.question.canAddPanel)
7474
7493
  return null;
@@ -7837,7 +7856,7 @@
7837
7856
  return React__namespace.createElement(SurveyLocStringEditor, props);
7838
7857
  });
7839
7858
 
7840
- surveyCore.checkLibraryVersion("".concat("2.5.26"), "survey-react-ui");
7859
+ surveyCore.checkLibraryVersion("".concat("2.5.28"), "survey-react-ui");
7841
7860
 
7842
7861
  Object.defineProperty(exports, "Model", {
7843
7862
  enumerable: true,