survey-react-ui 2.5.11 → 2.5.13

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.11",
3
+ "version": "2.5.13",
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.11",
54
+ "survey-core": "2.5.13",
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.11
2
+ * surveyjs - Survey JavaScript library v2.5.13
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
  */
@@ -191,7 +191,7 @@
191
191
  SurveyElementBase.renderLocString = function (locStr, style, key) {
192
192
  if (style === void 0) { style = null; }
193
193
  return ReactElementFactory.Instance.createElement(locStr.renderAs, {
194
- locStr: locStr.renderAsData,
194
+ model: locStr.renderAsData,
195
195
  style: style,
196
196
  key: key
197
197
  });
@@ -514,6 +514,9 @@
514
514
  if (this.props.className) {
515
515
  className += " " + this.props.className;
516
516
  }
517
+ if (this.props.css) {
518
+ className = this.props.css;
519
+ }
517
520
  return (this.props.iconName ?
518
521
  React__namespace.createElement("svg", { className: className, style: this.props.style, onClick: this.props.onClick, ref: this.svgIconRef, role: "presentation" },
519
522
  React__namespace.createElement("use", null))
@@ -557,7 +560,7 @@
557
560
  }
558
561
  Object.defineProperty(SurveyLocStringViewer.prototype, "locStr", {
559
562
  get: function () {
560
- return this.props.locStr;
563
+ return this.props.model;
561
564
  },
562
565
  enumerable: false,
563
566
  configurable: true
@@ -693,7 +696,7 @@
693
696
  SurveyActionBarItem.prototype.renderText = function () {
694
697
  if (!this.item.hasTitle)
695
698
  return null;
696
- return React__namespace.createElement(SurveyLocStringViewer, { locStr: this.item.locTitle, textClass: this.item.getActionBarItemTitleCss() });
699
+ return React__namespace.createElement(SurveyLocStringViewer, { model: this.item.locTitle, textClass: this.item.getActionBarItemTitleCss() });
697
700
  };
698
701
  SurveyActionBarItem.prototype.renderButtonContent = function () {
699
702
  var text = this.renderText();
@@ -6254,11 +6257,8 @@
6254
6257
  }
6255
6258
  };
6256
6259
  SurveyProgressButtons.prototype.componentDidMount = function () {
6257
- var _this = this;
6258
6260
  _super.prototype.componentDidMount.call(this);
6259
- setTimeout(function () {
6260
- _this.respManager = new surveyCore.ProgressButtonsResponsivityManager(_this.model, _this.listContainerRef.current, _this);
6261
- }, 10);
6261
+ this.respManager = new surveyCore.ProgressButtonsResponsivityManager(this.model, this.listContainerRef.current, this);
6262
6262
  };
6263
6263
  SurveyProgressButtons.prototype.componentWillUnmount = function () {
6264
6264
  if (!!this.respManager) {
@@ -7563,7 +7563,7 @@
7563
7563
  return (React__namespace.createElement("div", null,
7564
7564
  React__namespace.createElement("span", { className: error.getCssIcon(classes), "aria-hidden": "true" }),
7565
7565
  React__namespace.createElement("span", { className: this.props.cssClasses.error.item || undefined },
7566
- React__namespace.createElement(SurveyLocStringViewer, { locStr: error.locText }))));
7566
+ React__namespace.createElement(SurveyLocStringViewer, { model: error.locText }))));
7567
7567
  };
7568
7568
  return QuestionErrorComponent;
7569
7569
  }(React__namespace.Component));
@@ -7755,7 +7755,7 @@
7755
7755
  }
7756
7756
  Object.defineProperty(SurveyLocStringEditor.prototype, "locStr", {
7757
7757
  get: function () {
7758
- return this.props.locStr;
7758
+ return this.props.model;
7759
7759
  },
7760
7760
  enumerable: false,
7761
7761
  configurable: true
@@ -7796,7 +7796,7 @@
7796
7796
  return React__namespace.createElement(SurveyLocStringEditor, props);
7797
7797
  });
7798
7798
 
7799
- surveyCore.checkLibraryVersion("".concat("2.5.11"), "survey-react-ui");
7799
+ surveyCore.checkLibraryVersion("".concat("2.5.13"), "survey-react-ui");
7800
7800
 
7801
7801
  Object.defineProperty(exports, "Model", {
7802
7802
  enumerable: true,