survey-react-ui 2.0.6 → 2.0.7

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.0.6
2
+ * surveyjs - Survey JavaScript library v2.0.7
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
  */
@@ -1923,7 +1923,7 @@ class PopupModal extends SurveyElementBase {
1923
1923
  PopupModal.modalDescriptors = [];
1924
1924
 
1925
1925
  /*!
1926
- * surveyjs - Survey JavaScript library v2.0.6
1926
+ * surveyjs - Survey JavaScript library v2.0.7
1927
1927
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
1928
1928
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
1929
1929
  */
@@ -1993,7 +1993,7 @@ var iconsV1 = {
1993
1993
  };
1994
1994
 
1995
1995
  /*!
1996
- * surveyjs - Survey JavaScript library v2.0.6
1996
+ * surveyjs - Survey JavaScript library v2.0.7
1997
1997
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
1998
1998
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
1999
1999
  */
@@ -3162,18 +3162,20 @@ class SurveyQuestionDropdownBase extends SurveyQuestionUncontrolledElement {
3162
3162
  return this.questionBase.renderedValue;
3163
3163
  }
3164
3164
  renderReadOnlyElement() {
3165
- return React.createElement("div", null, this.question.readOnlyText);
3165
+ if (this.question.locReadOnlyText) {
3166
+ return this.renderLocString(this.question.locReadOnlyText);
3167
+ }
3168
+ else {
3169
+ return null;
3170
+ }
3166
3171
  }
3167
3172
  renderSelect(cssClasses) {
3168
3173
  var _a, _b;
3169
3174
  let selectElement = null;
3170
3175
  if (this.question.isReadOnly) {
3171
- const text = (this.question.selectedItemLocText) ? this.renderLocString(this.question.selectedItemLocText) : "";
3172
3176
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3173
3177
  // @ts-ignore
3174
- selectElement = React.createElement("div", { id: this.question.inputId, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, tabIndex: this.question.isDisabledAttr ? undefined : 0, className: this.question.getControlClass(), ref: (div) => (this.setControl(div)) },
3175
- text,
3176
- this.renderReadOnlyElement());
3178
+ selectElement = React.createElement("div", { id: this.question.inputId, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, tabIndex: this.question.isDisabledAttr ? undefined : 0, className: this.question.getControlClass(), ref: (div) => (this.setControl(div)) }, this.renderReadOnlyElement());
3177
3179
  }
3178
3180
  else {
3179
3181
  selectElement = React.createElement(React.Fragment, null,
@@ -5542,6 +5544,9 @@ class SurveyQuestionButtonGroup extends SurveyQuestionElementBase {
5542
5544
  });
5543
5545
  }
5544
5546
  }
5547
+ ReactQuestionFactory.Instance.registerQuestion("buttongroup", (props) => {
5548
+ return React.createElement(SurveyQuestionButtonGroup, props);
5549
+ });
5545
5550
  class SurveyButtonGroupItem extends SurveyElementBase {
5546
5551
  constructor(props) {
5547
5552
  super(props);
@@ -5591,6 +5596,21 @@ class SurveyButtonGroupItem extends SurveyElementBase {
5591
5596
  // return React.createElement(SurveyQuestionButtonGroup, props);
5592
5597
  // });
5593
5598
 
5599
+ class SurveyQuestionButtonGroupDropdown extends SurveyQuestionDropdownBase {
5600
+ constructor(props) {
5601
+ super(props);
5602
+ }
5603
+ renderElement() {
5604
+ const cssClasses = this.question.cssClasses;
5605
+ const select = this.renderSelect(cssClasses);
5606
+ return (React.createElement("div", { className: this.question.cssClasses.rootDropdown }, select));
5607
+ }
5608
+ }
5609
+ ReactQuestionFactory.Instance.registerQuestion("sv-buttongroup-dropdown", (props) => {
5610
+ return React.createElement(SurveyQuestionButtonGroupDropdown, props);
5611
+ });
5612
+ RendererFactory.Instance.registerRenderer("buttongroup", "dropdown", "sv-buttongroup-dropdown");
5613
+
5594
5614
  class SurveyQuestionCustom extends SurveyQuestionUncontrolledElement {
5595
5615
  constructor(props) {
5596
5616
  super(props);
@@ -6057,7 +6077,7 @@ ReactElementFactory.Instance.registerElement(LocalizableString.editableRenderer,
6057
6077
  return React.createElement(SurveyLocStringEditor, props);
6058
6078
  });
6059
6079
 
6060
- checkLibraryVersion(`${"2.0.6"}`, "survey-react-ui");
6080
+ checkLibraryVersion(`${"2.0.7"}`, "survey-react-ui");
6061
6081
 
6062
- 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, Survey, SurveyActionBar, SurveyElementBase, SurveyElementErrors, SurveyFileChooseButton, SurveyFilePreview, SurveyFlowPanel, SurveyHeader, SurveyLocStringEditor, SurveyLocStringViewer, SurveyNavigationBase, SurveyNavigationButton, SurveyPage, SurveyPanel, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestion, SurveyQuestionAndErrorsCell, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionButtonGroup, 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, SurveyQuestionTagbox, SurveyQuestionTagboxItem, SurveyQuestionText, SurveyRow, SurveyTimerPanel, SurveyWindow, SvgBundleComponent, SvgIcon, TagboxFilterString, TitleActions, TitleElement, attachKey2click };
6082
+ 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, Survey, SurveyActionBar, SurveyElementBase, SurveyElementErrors, SurveyFileChooseButton, 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, SurveyQuestionTagbox, SurveyQuestionTagboxItem, SurveyQuestionText, SurveyRow, SurveyTimerPanel, SurveyWindow, SvgBundleComponent, SvgIcon, TagboxFilterString, TitleActions, TitleElement, attachKey2click };
6063
6083
  //# sourceMappingURL=survey-react-ui.mjs.map