survey-react-ui 2.5.27 → 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.27",
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.27",
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.27
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
  */
@@ -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));
@@ -7846,7 +7856,7 @@
7846
7856
  return React__namespace.createElement(SurveyLocStringEditor, props);
7847
7857
  });
7848
7858
 
7849
- surveyCore.checkLibraryVersion("".concat("2.5.27"), "survey-react-ui");
7859
+ surveyCore.checkLibraryVersion("".concat("2.5.28"), "survey-react-ui");
7850
7860
 
7851
7861
  Object.defineProperty(exports, "Model", {
7852
7862
  enumerable: true,