survey-js-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
  */
@@ -143,7 +143,7 @@ SurveyModel.platform = "react";
143
143
  class SurveyElementBase extends x$2 {
144
144
  static renderLocString(locStr, style = null, key) {
145
145
  return ReactElementFactory.Instance.createElement(locStr.renderAs, {
146
- locStr: locStr.renderAsData,
146
+ model: locStr.renderAsData,
147
147
  style: style,
148
148
  key: key
149
149
  });
@@ -447,6 +447,9 @@ class SvgIcon extends x$2 {
447
447
  if (this.props.className) {
448
448
  className += " " + this.props.className;
449
449
  }
450
+ if (this.props.css) {
451
+ className = this.props.css;
452
+ }
450
453
  return (this.props.iconName ?
451
454
  _$1("svg", { className: className, style: this.props.style, onClick: this.props.onClick, ref: this.svgIconRef, role: "presentation" },
452
455
  _$1("use", null))
@@ -484,7 +487,7 @@ class SurveyLocStringViewer extends x$2 {
484
487
  this.rootRef = b$1();
485
488
  }
486
489
  get locStr() {
487
- return this.props.locStr;
490
+ return this.props.model;
488
491
  }
489
492
  get style() {
490
493
  return this.props.style;
@@ -592,7 +595,7 @@ class SurveyActionBarItem extends SurveyElementBase {
592
595
  renderText() {
593
596
  if (!this.item.hasTitle)
594
597
  return null;
595
- return _$1(SurveyLocStringViewer, { locStr: this.item.locTitle, textClass: this.item.getActionBarItemTitleCss() });
598
+ return _$1(SurveyLocStringViewer, { model: this.item.locTitle, textClass: this.item.getActionBarItemTitleCss() });
596
599
  }
597
600
  renderButtonContent() {
598
601
  const text = this.renderText();
@@ -5233,9 +5236,7 @@ class SurveyProgressButtons extends SurveyNavigationBase {
5233
5236
  }
5234
5237
  componentDidMount() {
5235
5238
  super.componentDidMount();
5236
- setTimeout(() => {
5237
- this.respManager = new ProgressButtonsResponsivityManager(this.model, this.listContainerRef.current, this);
5238
- }, 10);
5239
+ this.respManager = new ProgressButtonsResponsivityManager(this.model, this.listContainerRef.current, this);
5239
5240
  }
5240
5241
  componentWillUnmount() {
5241
5242
  if (!!this.respManager) {
@@ -6296,7 +6297,7 @@ class QuestionErrorComponent extends x$2 {
6296
6297
  return (_$1("div", null,
6297
6298
  _$1("span", { className: error.getCssIcon(classes), "aria-hidden": "true" }),
6298
6299
  _$1("span", { className: this.props.cssClasses.error.item || undefined },
6299
- _$1(SurveyLocStringViewer, { locStr: error.locText }))));
6300
+ _$1(SurveyLocStringViewer, { model: error.locText }))));
6300
6301
  }
6301
6302
  }
6302
6303
  ReactElementFactory.Instance.registerElement("sv-question-error", (props) => {
@@ -6439,7 +6440,7 @@ class SurveyLocStringEditor extends x$2 {
6439
6440
  this.state = { changed: 0 };
6440
6441
  }
6441
6442
  get locStr() {
6442
- return this.props.locStr;
6443
+ return this.props.model;
6443
6444
  }
6444
6445
  get style() {
6445
6446
  return this.props.style;
@@ -6521,7 +6522,7 @@ SurveyModel.prototype["render"] = function (element = null) {
6521
6522
  }
6522
6523
  };
6523
6524
  const preact = React;
6524
- checkLibraryVersion(`${"2.5.11"}`, "survey-js-ui");
6525
+ checkLibraryVersion(`${"2.5.13"}`, "survey-js-ui");
6525
6526
 
6526
6527
  export { CharacterCounterComponent, O as Children, x$2 as Component, ComponentsContainer, k$2 as Fragment, Header, HeaderCell, HeaderMobile, List, ListItemContent, ListItemGroup, LoadingIndicatorComponent, LogoImage, MatrixRow, NotifierComponent, Popup, PopupModal, PopupSurvey, N as PureComponent, QuestionErrorComponent, RatingDropdownItem, RatingItem, RatingItemSmiley, RatingItemStar, ReactElementFactory, ReactQuestionFactory, ReactSurveyElement, ReactSurveyElementsWrapper, Scroll, Skeleton, SliderLabelItem, Cn as StrictMode, 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, P as Suspense, B as SuspenseList, SvgBundleComponent, SvgIcon, TagboxFilterString, TitleActions, TitleElement, attachKey2click, _n as cloneElement, Q$1 as createContext, _$1 as createElement, dn as createFactory, $ as createPortal, b$1 as createRef, Sn as findDOMNode, En as flushSync, D as forwardRef, tn as hydrate, pn as isFragment, yn as isMemo, mn as isValidElement, z as lazy, M as memo, preact, nn as render, renderPopupSurvey, renderSurvey, R as startTransition, bn as unmountComponentAtNode, gn as unstable_batchedUpdates, q$1 as useCallback, x$1 as useContext, P$1 as useDebugValue, w as useDeferredValue, y as useEffect, g$1 as useId, F$1 as useImperativeHandle, I as useInsertionEffect, _ as useLayoutEffect, T$1 as useMemo, h as useReducer, A$1 as useRef, d as useState, C as useSyncExternalStore, k as useTransition, vn as version };
6527
6528
  //# sourceMappingURL=survey-js-ui.mjs.map