survey-js-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-js-ui",
3
- "version": "2.5.27",
3
+ "version": "2.5.28",
4
4
  "license": "MIT",
5
5
  "description": "A free MIT-licensed UI component that renders dynamic, interactive JSON-based forms and surveys in apps built with HTML, CSS, and JavaScript. You can use it to collect responses from users and send them to your own database.",
6
6
  "homepage": "https://surveyjs.io/",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "dependencies": {},
55
55
  "peerDependencies": {
56
- "survey-core": "2.5.27",
56
+ "survey-core": "2.5.28",
57
57
  "@types/react-dom": "*",
58
58
  "@types/react": "*"
59
59
  }
package/survey-js-ui.js CHANGED
@@ -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
  */
@@ -6218,23 +6218,33 @@
6218
6218
  enumerable: false,
6219
6219
  configurable: true
6220
6220
  });
6221
+ Object.defineProperty(SurveyProgress.prototype, "model", {
6222
+ get: function () {
6223
+ return this.props.model;
6224
+ },
6225
+ enumerable: false,
6226
+ configurable: true
6227
+ });
6228
+ SurveyProgress.prototype.getStateElement = function () {
6229
+ return this.model;
6230
+ };
6221
6231
  Object.defineProperty(SurveyProgress.prototype, "progress", {
6222
6232
  get: function () {
6223
- return this.survey.progressValue;
6233
+ return this.model.progressValue;
6224
6234
  },
6225
6235
  enumerable: false,
6226
6236
  configurable: true
6227
6237
  });
6228
6238
  Object.defineProperty(SurveyProgress.prototype, "progressText", {
6229
6239
  get: function () {
6230
- return this.survey.progressText;
6240
+ return this.model.progressText;
6231
6241
  },
6232
6242
  enumerable: false,
6233
6243
  configurable: true
6234
6244
  });
6235
6245
  Object.defineProperty(SurveyProgress.prototype, "progressBarAriaLabel", {
6236
6246
  get: function () {
6237
- return this.survey.progressBarAriaLabel;
6247
+ return this.model.progressBarAriaLabel;
6238
6248
  },
6239
6249
  enumerable: false,
6240
6250
  configurable: true
@@ -6243,10 +6253,10 @@
6243
6253
  var progressStyle = {
6244
6254
  width: this.progress + "%",
6245
6255
  };
6246
- return (_$1("div", { className: this.survey.getProgressCssClasses(this.props.container) },
6247
- _$1("div", { style: progressStyle, className: this.css.progressBar, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": this.progressBarAriaLabel },
6248
- _$1("span", { className: surveyCore.SurveyProgressModel.getProgressTextInBarCss(this.css) }, this.progressText)),
6249
- _$1("span", { className: surveyCore.SurveyProgressModel.getProgressTextUnderBarCss(this.css) }, this.progressText)));
6256
+ return (_$1("div", { className: this.model.getProgressCssClasses(this.props.container) },
6257
+ _$1("div", { style: progressStyle, className: this.model.css.progressBar, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": this.progressBarAriaLabel },
6258
+ _$1("span", { className: surveyCore.SurveyProgressModel.getProgressTextInBarCss(this.model.css) }, this.progressText)),
6259
+ _$1("span", { className: surveyCore.SurveyProgressModel.getProgressTextUnderBarCss(this.model.css) }, this.progressText)));
6250
6260
  };
6251
6261
  return SurveyProgress;
6252
6262
  }(SurveyNavigationBase));
@@ -7978,7 +7988,7 @@
7978
7988
  }
7979
7989
  };
7980
7990
  var preact = React;
7981
- surveyCore.checkLibraryVersion("".concat("2.5.27"), "survey-js-ui");
7991
+ surveyCore.checkLibraryVersion("".concat("2.5.28"), "survey-js-ui");
7982
7992
 
7983
7993
  Object.defineProperty(exports, 'Model', {
7984
7994
  enumerable: true,