survey-react-ui 2.5.8 → 2.5.10

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.8",
3
+ "version": "2.5.10",
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.8",
54
+ "survey-core": "2.5.10",
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.8
2
+ * surveyjs - Survey JavaScript library v2.5.10
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
  */
@@ -28,7 +28,7 @@ __webpack_require__.r(__webpack_exports__);
28
28
  /* harmony export */ icons: () => (/* binding */ iconsV1)
29
29
  /* harmony export */ });
30
30
  /*!
31
- * surveyjs - Survey JavaScript library v2.5.8
31
+ * surveyjs - Survey JavaScript library v2.5.10
32
32
  * Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
33
33
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
34
34
  */
@@ -114,7 +114,7 @@ __webpack_require__.r(__webpack_exports__);
114
114
  /* harmony export */ icons: () => (/* binding */ iconsV2)
115
115
  /* harmony export */ });
116
116
  /*!
117
- * surveyjs - Survey JavaScript library v2.5.8
117
+ * surveyjs - Survey JavaScript library v2.5.10
118
118
  * Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
119
119
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
120
120
  */
@@ -3148,6 +3148,7 @@ __webpack_require__.r(__webpack_exports__);
3148
3148
  /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../element-factory */ "./src/element-factory.tsx");
3149
3149
  /* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../reactquestion_element */ "./src/reactquestion_element.tsx");
3150
3150
  /* harmony import */ var _action_bar_action_bar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../action-bar/action-bar */ "./src/components/action-bar/action-bar.tsx");
3151
+ /* harmony import */ var _svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../svg-icon/svg-icon */ "./src/components/svg-icon/svg-icon.tsx");
3151
3152
  var __extends = (undefined && undefined.__extends) || (function () {
3152
3153
  var extendStatics = function (d, b) {
3153
3154
  extendStatics = Object.setPrototypeOf ||
@@ -3168,6 +3169,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
3168
3169
 
3169
3170
 
3170
3171
 
3172
+
3171
3173
  var Popup = /** @class */ (function (_super) {
3172
3174
  __extends(Popup, _super);
3173
3175
  function Popup(props) {
@@ -3290,7 +3292,9 @@ var PopupContainer = /** @class */ (function (_super) {
3290
3292
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "sv-popup__content" }, contentComponent);
3291
3293
  };
3292
3294
  PopupContainer.prototype.renderHeaderPopup = function (popupModel) {
3293
- return null;
3295
+ var _this = this;
3296
+ return popupModel.showCloseButton ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { tabIndex: -1, className: "sv-popup__close-button sd-action sd-action--icon", onClick: function () { return _this.model.clickClose(); } },
3297
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_5__.SvgIcon, { className: "sv-popup__close-button-icon", iconName: "icon-close-24x24", size: "auto" })) : null;
3294
3298
  };
3295
3299
  PopupContainer.prototype.renderFooter = function (popuModel) {
3296
3300
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "sv-popup__body-footer" },
@@ -6190,8 +6194,9 @@ var SurveyProgressButtons = /** @class */ (function (_super) {
6190
6194
  this.setState({ canShowFooter: !this.model.showItemTitles });
6191
6195
  };
6192
6196
  SurveyProgressButtons.prototype.render = function () {
6197
+ var _a;
6193
6198
  var _this = this;
6194
- 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": this.model.progressBarAriaLabel },
6199
+ return (react__WEBPACK_IMPORTED_MODULE_0__.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 },
6195
6200
  this.state.canShowHeader ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.progressButtonsHeader },
6196
6201
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.progressButtonsPageTitle, title: this.model.headerText }, this.model.headerText)) : null,
6197
6202
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.progressButtonsContainer },
@@ -12181,7 +12186,7 @@ __webpack_require__.r(__webpack_exports__);
12181
12186
 
12182
12187
 
12183
12188
 
12184
- (0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.5.8"), "survey-react-ui");
12189
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.5.10"), "survey-react-ui");
12185
12190
 
12186
12191
  })();
12187
12192