survey-js-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
  */
@@ -1976,7 +1976,7 @@ class PopupModal extends SurveyElementBase {
1976
1976
  PopupModal.modalDescriptors = [];
1977
1977
 
1978
1978
  /*!
1979
- * surveyjs - Survey JavaScript library v2.0.6
1979
+ * surveyjs - Survey JavaScript library v2.0.7
1980
1980
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
1981
1981
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
1982
1982
  */
@@ -2046,7 +2046,7 @@ var iconsV1 = {
2046
2046
  };
2047
2047
 
2048
2048
  /*!
2049
- * surveyjs - Survey JavaScript library v2.0.6
2049
+ * surveyjs - Survey JavaScript library v2.0.7
2050
2050
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
2051
2051
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
2052
2052
  */
@@ -3215,18 +3215,20 @@ class SurveyQuestionDropdownBase extends SurveyQuestionUncontrolledElement {
3215
3215
  return this.questionBase.renderedValue;
3216
3216
  }
3217
3217
  renderReadOnlyElement() {
3218
- return _$1("div", null, this.question.readOnlyText);
3218
+ if (this.question.locReadOnlyText) {
3219
+ return this.renderLocString(this.question.locReadOnlyText);
3220
+ }
3221
+ else {
3222
+ return null;
3223
+ }
3219
3224
  }
3220
3225
  renderSelect(cssClasses) {
3221
3226
  var _a, _b;
3222
3227
  let selectElement = null;
3223
3228
  if (this.question.isReadOnly) {
3224
- const text = (this.question.selectedItemLocText) ? this.renderLocString(this.question.selectedItemLocText) : "";
3225
3229
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3226
3230
  // @ts-ignore
3227
- selectElement = _$1("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)) },
3228
- text,
3229
- this.renderReadOnlyElement());
3231
+ selectElement = _$1("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());
3230
3232
  }
3231
3233
  else {
3232
3234
  selectElement = _$1(k$2, null,
@@ -5595,6 +5597,9 @@ class SurveyQuestionButtonGroup extends SurveyQuestionElementBase {
5595
5597
  });
5596
5598
  }
5597
5599
  }
5600
+ ReactQuestionFactory.Instance.registerQuestion("buttongroup", (props) => {
5601
+ return _$1(SurveyQuestionButtonGroup, props);
5602
+ });
5598
5603
  class SurveyButtonGroupItem extends SurveyElementBase {
5599
5604
  constructor(props) {
5600
5605
  super(props);
@@ -5644,6 +5649,21 @@ class SurveyButtonGroupItem extends SurveyElementBase {
5644
5649
  // return React.createElement(SurveyQuestionButtonGroup, props);
5645
5650
  // });
5646
5651
 
5652
+ class SurveyQuestionButtonGroupDropdown extends SurveyQuestionDropdownBase {
5653
+ constructor(props) {
5654
+ super(props);
5655
+ }
5656
+ renderElement() {
5657
+ const cssClasses = this.question.cssClasses;
5658
+ const select = this.renderSelect(cssClasses);
5659
+ return (_$1("div", { className: this.question.cssClasses.rootDropdown }, select));
5660
+ }
5661
+ }
5662
+ ReactQuestionFactory.Instance.registerQuestion("sv-buttongroup-dropdown", (props) => {
5663
+ return _$1(SurveyQuestionButtonGroupDropdown, props);
5664
+ });
5665
+ RendererFactory.Instance.registerRenderer("buttongroup", "dropdown", "sv-buttongroup-dropdown");
5666
+
5647
5667
  class SurveyQuestionCustom extends SurveyQuestionUncontrolledElement {
5648
5668
  constructor(props) {
5649
5669
  super(props);
@@ -6159,7 +6179,7 @@ SurveyModel.prototype["render"] = function (element = null) {
6159
6179
  }
6160
6180
  };
6161
6181
  const preact = React;
6162
- checkLibraryVersion(`${"2.0.6"}`, "survey-js-ui");
6182
+ checkLibraryVersion(`${"2.0.7"}`, "survey-js-ui");
6163
6183
 
6164
- 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, Cn as StrictMode, 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, P as Suspense, B as SuspenseList, SvgBundleComponent, SvgIcon, TagboxFilterString, TitleActions, TitleElement, attachKey2click, _n as cloneElement, K$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, mn as isFragment, yn as isMemo, pn 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 };
6184
+ 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, Cn as StrictMode, 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, P as Suspense, B as SuspenseList, SvgBundleComponent, SvgIcon, TagboxFilterString, TitleActions, TitleElement, attachKey2click, _n as cloneElement, K$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, mn as isFragment, yn as isMemo, pn 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 };
6165
6185
  //# sourceMappingURL=survey-js-ui.mjs.map