survey-react-ui 2.3.15 → 2.4.0
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.
|
|
2
|
+
* surveyjs - Survey JavaScript library v2.4.0
|
|
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
|
*/
|
|
@@ -438,7 +438,7 @@ class SurveyAction extends SurveyElementBase {
|
|
|
438
438
|
const itemComponent = ReactElementFactory.Instance.createElement(this.item.component || "sv-action-bar-item", {
|
|
439
439
|
item: this.item,
|
|
440
440
|
});
|
|
441
|
-
return (React.createElement("div", { className: itemClass, id: this.item.
|
|
441
|
+
return (React.createElement("div", { className: itemClass, id: "" + this.item.uniqueId, ref: this.ref },
|
|
442
442
|
React.createElement("div", { className: "sv-action__content" },
|
|
443
443
|
separator,
|
|
444
444
|
itemComponent)));
|
|
@@ -1056,7 +1056,7 @@ class PopupModal extends SurveyElementBase {
|
|
|
1056
1056
|
PopupModal.modalDescriptors = [];
|
|
1057
1057
|
|
|
1058
1058
|
/*!
|
|
1059
|
-
* surveyjs - Survey JavaScript library v2.
|
|
1059
|
+
* surveyjs - Survey JavaScript library v2.4.0
|
|
1060
1060
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
1061
1061
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
1062
1062
|
*/
|
|
@@ -1126,7 +1126,7 @@ var iconsV1 = {
|
|
|
1126
1126
|
};
|
|
1127
1127
|
|
|
1128
1128
|
/*!
|
|
1129
|
-
* surveyjs - Survey JavaScript library v2.
|
|
1129
|
+
* surveyjs - Survey JavaScript library v2.4.0
|
|
1130
1130
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
1131
1131
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
1132
1132
|
*/
|
|
@@ -3668,15 +3668,18 @@ class SurveyQuestionFile extends SurveyQuestionElementBase {
|
|
|
3668
3668
|
const video = this.question.isPlayingVideo ? this.renderVideo() : null;
|
|
3669
3669
|
const fileDecorator = this.question.showFileDecorator ? this.renderFileDecorator() : null;
|
|
3670
3670
|
const fileNavigator = this.question.fileNavigatorVisible ? (React.createElement(SurveyActionBar, { model: this.question.fileNavigator })) : null;
|
|
3671
|
+
const acceptedTypes = this.question.renderedAcceptedTypes;
|
|
3672
|
+
const className = !this.isDisplayMode ? this.question.cssClasses.fileInput : this.question.getReadOnlyFileCss();
|
|
3673
|
+
const style = this.isDisplayMode ? { color: "transparent" } : {};
|
|
3671
3674
|
let fileInput;
|
|
3672
3675
|
if (this.question.isReadOnlyAttr) {
|
|
3673
|
-
fileInput = React.createElement("input", { readOnly: true, type: "file", className:
|
|
3676
|
+
fileInput = React.createElement("input", { readOnly: true, type: "file", className: className, id: this.question.inputId, ref: input => (this.setControl(input)), style: style, multiple: this.question.allowMultiple, placeholder: this.question.title, accept: acceptedTypes });
|
|
3674
3677
|
}
|
|
3675
3678
|
else if (this.question.isDisabledAttr) {
|
|
3676
|
-
fileInput = React.createElement("input", { disabled: true, type: "file", className:
|
|
3679
|
+
fileInput = React.createElement("input", { disabled: true, type: "file", className: className, id: this.question.inputId, ref: input => (this.setControl(input)), style: style, multiple: this.question.allowMultiple, placeholder: this.question.title, accept: acceptedTypes });
|
|
3677
3680
|
}
|
|
3678
3681
|
else if (this.question.hasFileUI) {
|
|
3679
|
-
fileInput = React.createElement("input", { type: "file", disabled: this.isDisplayMode, tabIndex: -1, className:
|
|
3682
|
+
fileInput = React.createElement("input", { type: "file", disabled: this.isDisplayMode, tabIndex: -1, className: className, id: this.question.inputId, ref: input => (this.setControl(input)), style: style, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, multiple: this.question.allowMultiple, title: this.question.inputTitle, accept: acceptedTypes, capture: this.question.renderCapture });
|
|
3680
3683
|
}
|
|
3681
3684
|
else {
|
|
3682
3685
|
fileInput = null;
|
|
@@ -6153,7 +6156,7 @@ ReactElementFactory.Instance.registerElement(LocalizableString.editableRenderer,
|
|
|
6153
6156
|
return React.createElement(SurveyLocStringEditor, props);
|
|
6154
6157
|
});
|
|
6155
6158
|
|
|
6156
|
-
checkLibraryVersion(`${"2.
|
|
6159
|
+
checkLibraryVersion(`${"2.4.0"}`, "survey-react-ui");
|
|
6157
6160
|
|
|
6158
6161
|
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 };
|
|
6159
6162
|
//# sourceMappingURL=survey-react-ui.mjs.map
|