survey-js-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-js-ui.mjs +11 -8
- package/fesm/survey-js-ui.mjs.map +1 -1
- package/package.json +33 -11
- package/survey-js-ui.js +35 -32
- package/survey-js-ui.js.map +1 -1
- package/survey-js-ui.min.js +1 -1
- package/survey-js-ui.min.js.LICENSE.txt +1 -1
package/fesm/survey-js-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
|
*/
|
|
@@ -491,7 +491,7 @@ class SurveyAction extends SurveyElementBase {
|
|
|
491
491
|
const itemComponent = ReactElementFactory.Instance.createElement(this.item.component || "sv-action-bar-item", {
|
|
492
492
|
item: this.item,
|
|
493
493
|
});
|
|
494
|
-
return (_$1("div", { className: itemClass, id: this.item.
|
|
494
|
+
return (_$1("div", { className: itemClass, id: "" + this.item.uniqueId, ref: this.ref },
|
|
495
495
|
_$1("div", { className: "sv-action__content" },
|
|
496
496
|
separator,
|
|
497
497
|
itemComponent)));
|
|
@@ -1109,7 +1109,7 @@ class PopupModal extends SurveyElementBase {
|
|
|
1109
1109
|
PopupModal.modalDescriptors = [];
|
|
1110
1110
|
|
|
1111
1111
|
/*!
|
|
1112
|
-
* surveyjs - Survey JavaScript library v2.
|
|
1112
|
+
* surveyjs - Survey JavaScript library v2.4.0
|
|
1113
1113
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
1114
1114
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
1115
1115
|
*/
|
|
@@ -1179,7 +1179,7 @@ var iconsV1 = {
|
|
|
1179
1179
|
};
|
|
1180
1180
|
|
|
1181
1181
|
/*!
|
|
1182
|
-
* surveyjs - Survey JavaScript library v2.
|
|
1182
|
+
* surveyjs - Survey JavaScript library v2.4.0
|
|
1183
1183
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
1184
1184
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
1185
1185
|
*/
|
|
@@ -3721,15 +3721,18 @@ class SurveyQuestionFile extends SurveyQuestionElementBase {
|
|
|
3721
3721
|
const video = this.question.isPlayingVideo ? this.renderVideo() : null;
|
|
3722
3722
|
const fileDecorator = this.question.showFileDecorator ? this.renderFileDecorator() : null;
|
|
3723
3723
|
const fileNavigator = this.question.fileNavigatorVisible ? (_$1(SurveyActionBar, { model: this.question.fileNavigator })) : null;
|
|
3724
|
+
const acceptedTypes = this.question.renderedAcceptedTypes;
|
|
3725
|
+
const className = !this.isDisplayMode ? this.question.cssClasses.fileInput : this.question.getReadOnlyFileCss();
|
|
3726
|
+
const style = this.isDisplayMode ? { color: "transparent" } : {};
|
|
3724
3727
|
let fileInput;
|
|
3725
3728
|
if (this.question.isReadOnlyAttr) {
|
|
3726
|
-
fileInput = _$1("input", { readOnly: true, type: "file", className:
|
|
3729
|
+
fileInput = _$1("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 });
|
|
3727
3730
|
}
|
|
3728
3731
|
else if (this.question.isDisabledAttr) {
|
|
3729
|
-
fileInput = _$1("input", { disabled: true, type: "file", className:
|
|
3732
|
+
fileInput = _$1("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 });
|
|
3730
3733
|
}
|
|
3731
3734
|
else if (this.question.hasFileUI) {
|
|
3732
|
-
fileInput = _$1("input", { type: "file", disabled: this.isDisplayMode, tabIndex: -1, className:
|
|
3735
|
+
fileInput = _$1("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 });
|
|
3733
3736
|
}
|
|
3734
3737
|
else {
|
|
3735
3738
|
fileInput = null;
|
|
@@ -6255,7 +6258,7 @@ SurveyModel.prototype["render"] = function (element = null) {
|
|
|
6255
6258
|
}
|
|
6256
6259
|
};
|
|
6257
6260
|
const preact = React;
|
|
6258
|
-
checkLibraryVersion(`${"2.
|
|
6261
|
+
checkLibraryVersion(`${"2.4.0"}`, "survey-js-ui");
|
|
6259
6262
|
|
|
6260
6263
|
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, SliderLabelItem, Cn as StrictMode, 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, P as Suspense, B as SuspenseList, SvgBundleComponent, SvgIcon, TagboxFilterString, TitleActions, TitleElement, attachKey2click, _n as cloneElement, Q$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, pn as isFragment, yn as isMemo, mn 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 };
|
|
6261
6264
|
//# sourceMappingURL=survey-js-ui.mjs.map
|