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.
@@ -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
  */
@@ -90,7 +90,7 @@ SurveyModel.platform = "react";
90
90
  class SurveyElementBase extends React.Component {
91
91
  static renderLocString(locStr, style = null, key) {
92
92
  return ReactElementFactory.Instance.createElement(locStr.renderAs, {
93
- locStr: locStr.renderAsData,
93
+ model: locStr.renderAsData,
94
94
  style: style,
95
95
  key: key
96
96
  });
@@ -394,6 +394,9 @@ class SvgIcon extends React.Component {
394
394
  if (this.props.className) {
395
395
  className += " " + this.props.className;
396
396
  }
397
+ if (this.props.css) {
398
+ className = this.props.css;
399
+ }
397
400
  return (this.props.iconName ?
398
401
  React.createElement("svg", { className: className, style: this.props.style, onClick: this.props.onClick, ref: this.svgIconRef, role: "presentation" },
399
402
  React.createElement("use", null))
@@ -431,7 +434,7 @@ class SurveyLocStringViewer extends React.Component {
431
434
  this.rootRef = React.createRef();
432
435
  }
433
436
  get locStr() {
434
- return this.props.locStr;
437
+ return this.props.model;
435
438
  }
436
439
  get style() {
437
440
  return this.props.style;
@@ -539,7 +542,7 @@ class SurveyActionBarItem extends SurveyElementBase {
539
542
  renderText() {
540
543
  if (!this.item.hasTitle)
541
544
  return null;
542
- return React.createElement(SurveyLocStringViewer, { locStr: this.item.locTitle, textClass: this.item.getActionBarItemTitleCss() });
545
+ return React.createElement(SurveyLocStringViewer, { model: this.item.locTitle, textClass: this.item.getActionBarItemTitleCss() });
543
546
  }
544
547
  renderButtonContent() {
545
548
  const text = this.renderText();
@@ -5180,9 +5183,7 @@ class SurveyProgressButtons extends SurveyNavigationBase {
5180
5183
  }
5181
5184
  componentDidMount() {
5182
5185
  super.componentDidMount();
5183
- setTimeout(() => {
5184
- this.respManager = new ProgressButtonsResponsivityManager(this.model, this.listContainerRef.current, this);
5185
- }, 10);
5186
+ this.respManager = new ProgressButtonsResponsivityManager(this.model, this.listContainerRef.current, this);
5186
5187
  }
5187
5188
  componentWillUnmount() {
5188
5189
  if (!!this.respManager) {
@@ -6243,7 +6244,7 @@ class QuestionErrorComponent extends React.Component {
6243
6244
  return (React.createElement("div", null,
6244
6245
  React.createElement("span", { className: error.getCssIcon(classes), "aria-hidden": "true" }),
6245
6246
  React.createElement("span", { className: this.props.cssClasses.error.item || undefined },
6246
- React.createElement(SurveyLocStringViewer, { locStr: error.locText }))));
6247
+ React.createElement(SurveyLocStringViewer, { model: error.locText }))));
6247
6248
  }
6248
6249
  }
6249
6250
  ReactElementFactory.Instance.registerElement("sv-question-error", (props) => {
@@ -6386,7 +6387,7 @@ class SurveyLocStringEditor extends React.Component {
6386
6387
  this.state = { changed: 0 };
6387
6388
  }
6388
6389
  get locStr() {
6389
- return this.props.locStr;
6390
+ return this.props.model;
6390
6391
  }
6391
6392
  get style() {
6392
6393
  return this.props.style;
@@ -6419,7 +6420,7 @@ ReactElementFactory.Instance.registerElement(LocalizableString.editableRenderer,
6419
6420
  return React.createElement(SurveyLocStringEditor, props);
6420
6421
  });
6421
6422
 
6422
- checkLibraryVersion(`${"2.5.11"}`, "survey-react-ui");
6423
+ checkLibraryVersion(`${"2.5.13"}`, "survey-react-ui");
6423
6424
 
6424
6425
  export { CharacterCounterComponent, ComponentsContainer, Header, HeaderCell, HeaderMobile, List, ListItemContent, ListItemGroup, LoadingIndicatorComponent, LogoImage, MatrixRow, NotifierComponent, Popup, PopupModal, PopupSurvey, QuestionErrorComponent, RatingDropdownItem, RatingItem, RatingItemSmiley, RatingItemStar, ReactElementFactory, ReactQuestionFactory, ReactSurveyElement, ReactSurveyElementsWrapper, Scroll, Skeleton, SliderLabelItem, Survey, SurveyActionBar, SurveyElementBase, SurveyElementErrors, SurveyFileChooseButton, SurveyFileItem, SurveyFilePreview, SurveyFlowPanel, SurveyHeader, SurveyLocStringEditor, SurveyLocStringViewer, SurveyNavigationBase, SurveyNavigationButton, SurveyPage, SurveyPanel, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestion, SurveyQuestionAndErrorsCell, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionButtonGroup, SurveyQuestionButtonGroupDropdown, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionComment, SurveyQuestionCommentItem, SurveyQuestionComposite, SurveyQuestionCustom, SurveyQuestionDropdown, SurveyQuestionDropdownBase, SurveyQuestionDropdownSelect, SurveyQuestionElementBase, SurveyQuestionEmpty, SurveyQuestionExpression, SurveyQuestionFile, SurveyQuestionHtml, SurveyQuestionImage, SurveyQuestionImageMap, SurveyQuestionImagePicker, SurveyQuestionMatrix, SurveyQuestionMatrixCell, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixRow, SurveyQuestionMultipleText, SurveyQuestionOptionItem, SurveyQuestionPanelDynamic, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicProgressText, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionRadioItem, SurveyQuestionRadiogroup, SurveyQuestionRanking, SurveyQuestionRankingItem, SurveyQuestionRankingItemContent, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionSignaturePad, SurveyQuestionSlider, SurveyQuestionTagbox, SurveyQuestionTagboxItem, SurveyQuestionText, SurveyRow, SurveyTimerPanel, SurveyWindow, SvgBundleComponent, SvgIcon, TagboxFilterString, TitleActions, TitleElement, attachKey2click };
6425
6426
  //# sourceMappingURL=survey-react-ui.mjs.map