survey-react-ui 2.5.19 → 2.5.21
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.
package/fesm/survey-react-ui.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v2.5.
|
|
2
|
+
* surveyjs - Survey JavaScript library v2.5.21
|
|
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
|
*/
|
|
@@ -3514,12 +3514,13 @@ class SurveyQuestionDropdownBase extends SurveyQuestionUncontrolledElement {
|
|
|
3514
3514
|
return this.questionBase.renderedValue;
|
|
3515
3515
|
}
|
|
3516
3516
|
renderReadOnlyElement() {
|
|
3517
|
+
if (this.question.showInputFieldComponent) {
|
|
3518
|
+
return (React.createElement("div", { className: this.question.cssClasses.controlValue }, this.renderValueElement()));
|
|
3519
|
+
}
|
|
3517
3520
|
if (this.question.readOnlyText) {
|
|
3518
3521
|
return (React.createElement("div", { className: this.question.cssClasses.controlValue }, this.renderLocString(this.question.locReadOnlyText)));
|
|
3519
3522
|
}
|
|
3520
|
-
|
|
3521
|
-
return null;
|
|
3522
|
-
}
|
|
3523
|
+
return null;
|
|
3523
3524
|
}
|
|
3524
3525
|
renderSelect(cssClasses) {
|
|
3525
3526
|
let selectElement = null;
|
|
@@ -3540,7 +3541,9 @@ class SurveyQuestionDropdownBase extends SurveyQuestionUncontrolledElement {
|
|
|
3540
3541
|
}
|
|
3541
3542
|
renderValueElement() {
|
|
3542
3543
|
if (this.question.showInputFieldComponent) {
|
|
3543
|
-
|
|
3544
|
+
const listModel = this.dropdownListModel;
|
|
3545
|
+
const actionItem = !!listModel ? listModel.getSelectedAction() : this.question.selectedItem;
|
|
3546
|
+
return ReactElementFactory.Instance.createElement(this.question.inputFieldComponentName, { item: actionItem, question: this.question });
|
|
3544
3547
|
}
|
|
3545
3548
|
else if (this.question.showSelectedItemLocText) {
|
|
3546
3549
|
return this.renderLocString(this.question.selectedItemLocText);
|
|
@@ -6434,7 +6437,7 @@ ReactElementFactory.Instance.registerElement(LocalizableString.editableRenderer,
|
|
|
6434
6437
|
return React.createElement(SurveyLocStringEditor, props);
|
|
6435
6438
|
});
|
|
6436
6439
|
|
|
6437
|
-
checkLibraryVersion(`${"2.5.
|
|
6440
|
+
checkLibraryVersion(`${"2.5.21"}`, "survey-react-ui");
|
|
6438
6441
|
|
|
6439
6442
|
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 };
|
|
6440
6443
|
//# sourceMappingURL=survey-react-ui.mjs.map
|