survey-react-ui 2.3.6 → 2.3.8

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.3.6
2
+ * surveyjs - Survey JavaScript library v2.3.8
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1563,9 +1563,9 @@ class SurveyElementErrors extends ReactSurveyElement {
1563
1563
  }
1564
1564
  renderElement() {
1565
1565
  const errors = [];
1566
- for (let i = 0; i < this.element.errors.length; i++) {
1566
+ for (let i = 0; i < this.element.renderedErrors.length; i++) {
1567
1567
  const key = "error" + i;
1568
- errors.push(this.creator.renderError(key, this.element.errors[i], this.cssClasses, this.element));
1568
+ errors.push(this.creator.renderError(key, this.element.renderedErrors[i], this.cssClasses, this.element));
1569
1569
  }
1570
1570
  return (React.createElement("div", { className: this.element.cssError, id: this.id }, errors));
1571
1571
  }
@@ -1932,7 +1932,7 @@ class PopupModal extends SurveyElementBase {
1932
1932
  PopupModal.modalDescriptors = [];
1933
1933
 
1934
1934
  /*!
1935
- * surveyjs - Survey JavaScript library v2.3.6
1935
+ * surveyjs - Survey JavaScript library v2.3.8
1936
1936
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
1937
1937
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
1938
1938
  */
@@ -2002,7 +2002,7 @@ var iconsV1 = {
2002
2002
  };
2003
2003
 
2004
2004
  /*!
2005
- * surveyjs - Survey JavaScript library v2.3.6
2005
+ * surveyjs - Survey JavaScript library v2.3.8
2006
2006
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
2007
2007
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
2008
2008
  */
@@ -4481,7 +4481,7 @@ class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElementBase {
4481
4481
  return this.renderTableDiv();
4482
4482
  }
4483
4483
  renderTableDiv() {
4484
- return (React.createElement("div", { className: this.question.cssClasses.tableWrapper, ref: (root) => (this.setControl(root)) },
4484
+ return (React.createElement("div", { className: this.question.cssClasses.tableWrapper, "data-sv-drop-target-matrix-row": this.question.renderedTable.wrapperDropTargetId, ref: (root) => (this.setControl(root)) },
4485
4485
  React.createElement(SurveyQuestionMatrixTable, { question: this.question, creator: this.creator, wrapCell: (cell, element, reason) => this.wrapCell(cell, element, reason) })));
4486
4486
  }
4487
4487
  }
@@ -5635,7 +5635,9 @@ class SurveyQuestionSignaturePad extends SurveyQuestionElementBase {
5635
5635
  return null;
5636
5636
  var cssClasses = this.question.cssClasses;
5637
5637
  return React.createElement("div", { className: cssClasses.controls },
5638
- React.createElement("button", { type: "button", className: cssClasses.clearButton, title: this.question.clearButtonCaption, onClick: () => this.question.clearValue(true) }, this.question.cssClasses.clearButtonIconId ? React.createElement(SvgIcon, { iconName: this.question.cssClasses.clearButtonIconId, size: "auto" }) : React.createElement("span", null, "\u2716")));
5638
+ React.createElement("button", { type: "button", className: cssClasses.clearButton, title: this.question.clearButtonCaption, onClick: () => this.question.clearValue(true) },
5639
+ this.question.cssClasses.clearButtonIconId ? React.createElement(SvgIcon, { iconName: this.question.cssClasses.clearButtonIconId, size: "auto" }) : React.createElement("span", null, "\u2716"),
5640
+ " "));
5639
5641
  }
5640
5642
  }
5641
5643
  ReactQuestionFactory.Instance.registerQuestion("signaturepad", (props) => {
@@ -6052,10 +6054,12 @@ ReactElementFactory.Instance.registerElement(LocalizableString.defaultRenderer,
6052
6054
 
6053
6055
  class QuestionErrorComponent extends React.Component {
6054
6056
  render() {
6057
+ const error = this.props.error;
6058
+ const classes = this.props.cssClasses;
6055
6059
  return (React.createElement("div", null,
6056
- React.createElement("span", { className: this.props.cssClasses.error.icon || undefined, "aria-hidden": "true" }),
6060
+ React.createElement("span", { className: error.getCssIcon(classes), "aria-hidden": "true" }),
6057
6061
  React.createElement("span", { className: this.props.cssClasses.error.item || undefined },
6058
- React.createElement(SurveyLocStringViewer, { locStr: this.props.error.locText }))));
6062
+ React.createElement(SurveyLocStringViewer, { locStr: error.locText }))));
6059
6063
  }
6060
6064
  }
6061
6065
  ReactElementFactory.Instance.registerElement("sv-question-error", (props) => {
@@ -6220,7 +6224,7 @@ ReactElementFactory.Instance.registerElement(LocalizableString.editableRenderer,
6220
6224
  return React.createElement(SurveyLocStringEditor, props);
6221
6225
  });
6222
6226
 
6223
- checkLibraryVersion(`${"2.3.6"}`, "survey-react-ui");
6227
+ checkLibraryVersion(`${"2.3.8"}`, "survey-react-ui");
6224
6228
 
6225
6229
  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, 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 };
6226
6230
  //# sourceMappingURL=survey-react-ui.mjs.map