survey-react-ui 1.9.132 → 1.9.133

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": "1.9.132",
3
+ "version": "1.9.133",
4
4
  "description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.132
2
+ * surveyjs - Survey JavaScript library v1.9.133
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -3584,7 +3584,7 @@ __webpack_require__.r(__webpack_exports__);
3584
3584
 
3585
3585
 
3586
3586
 
3587
- Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.132", "survey-react-ui");
3587
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.133", "survey-react-ui");
3588
3588
 
3589
3589
 
3590
3590
  /***/ }),
@@ -7620,9 +7620,11 @@ function age(params) {
7620
7620
  var birthDate = new Date(params[0]);
7621
7621
  var today = new Date();
7622
7622
  var age = today.getFullYear() - birthDate.getFullYear();
7623
- var m = today.getMonth() - birthDate.getMonth();
7624
- if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) {
7625
- age -= age > 0 ? 1 : 0;
7623
+ if (age > 0) {
7624
+ var m = today.getMonth() - birthDate.getMonth();
7625
+ if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) {
7626
+ age -= 1;
7627
+ }
7626
7628
  }
7627
7629
  return age;
7628
7630
  }
@@ -16378,7 +16380,7 @@ var SurveyProgressButtons = /** @class */ (function (_super) {
16378
16380
  };
16379
16381
  SurveyProgressButtons.prototype.render = function () {
16380
16382
  var _this = this;
16381
- return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.model.getRootCss(this.props.container), role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": "progress" },
16383
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.model.getRootCss(this.props.container), style: { "maxWidth": this.model.progressWidth }, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": "progress" },
16382
16384
  this.state.canShowHeader ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsHeader },
16383
16385
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsPageTitle, title: this.model.headerText }, this.model.headerText)) : null,
16384
16386
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsContainer },