survey-react-ui 2.5.13 → 2.5.15

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.13",
3
+ "version": "2.5.15",
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.13",
54
+ "survey-core": "2.5.15",
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.13
2
+ * surveyjs - Survey JavaScript library v2.5.15
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
  */
@@ -2108,7 +2108,7 @@
2108
2108
  }
2109
2109
  };
2110
2110
  return SurveyNavigationBase;
2111
- }(React__namespace.Component));
2111
+ }(SurveyElementBase));
2112
2112
 
2113
2113
  var SurveyTimerPanel = /** @class */ (function (_super) {
2114
2114
  __extends(SurveyTimerPanel, _super);
@@ -6199,6 +6199,9 @@
6199
6199
  enumerable: false,
6200
6200
  configurable: true
6201
6201
  });
6202
+ SurveyProgressButtons.prototype.getStateElement = function () {
6203
+ return this.model;
6204
+ };
6202
6205
  SurveyProgressButtons.prototype.onResize = function (canShowItemTitles) {
6203
6206
  this.setState({ canShowItemTitles: canShowItemTitles });
6204
6207
  this.setState({ canShowHeader: !canShowItemTitles });
@@ -6213,7 +6216,7 @@
6213
6216
  SurveyProgressButtons.prototype.render = function () {
6214
6217
  var _a;
6215
6218
  var _this = this;
6216
- return (React__namespace.createElement("div", { className: this.model.getRootCss(this.props.container), style: (_a = { "maxWidth": this.model.progressWidth }, _a["--sd-progress-buttons-pages-count"] = this.survey.visiblePages.length, _a), role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": this.model.progressBarAriaLabel },
6219
+ return (React__namespace.createElement("div", { className: this.model.getRootCss(this.props.container), style: (_a = { "maxWidth": this.model.progressWidth }, _a["--sd-progress-buttons-pages-count"] = this.model.visiblePages.length, _a), role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": this.model.progressBarAriaLabel },
6217
6220
  this.state.canShowHeader ? React__namespace.createElement("div", { className: this.css.progressButtonsHeader },
6218
6221
  React__namespace.createElement("div", { className: this.css.progressButtonsPageTitle, title: this.model.headerText }, this.model.headerText)) : null,
6219
6222
  React__namespace.createElement("div", { className: this.css.progressButtonsContainer },
@@ -6231,7 +6234,7 @@
6231
6234
  SurveyProgressButtons.prototype.getListElements = function () {
6232
6235
  var _this = this;
6233
6236
  var buttons = [];
6234
- this.survey.visiblePages.forEach(function (page, index) {
6237
+ this.model.visiblePages.forEach(function (page, index) {
6235
6238
  buttons.push(_this.renderListElement(page, index));
6236
6239
  });
6237
6240
  return buttons;
@@ -7796,7 +7799,7 @@
7796
7799
  return React__namespace.createElement(SurveyLocStringEditor, props);
7797
7800
  });
7798
7801
 
7799
- surveyCore.checkLibraryVersion("".concat("2.5.13"), "survey-react-ui");
7802
+ surveyCore.checkLibraryVersion("".concat("2.5.15"), "survey-react-ui");
7800
7803
 
7801
7804
  Object.defineProperty(exports, "Model", {
7802
7805
  enumerable: true,