survey-react-ui 2.5.25 → 2.5.26
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.26
|
|
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
|
*/
|
|
@@ -451,8 +451,8 @@ class SurveyLocStringViewer extends React.Component {
|
|
|
451
451
|
this.locStr.onStringChanged.remove(this.onChangedHandler);
|
|
452
452
|
}
|
|
453
453
|
componentDidUpdate(prevProps, prevState) {
|
|
454
|
-
if (!!prevProps.
|
|
455
|
-
prevProps.
|
|
454
|
+
if (!!prevProps.model) {
|
|
455
|
+
prevProps.model.onStringChanged.remove(this.onChangedHandler);
|
|
456
456
|
}
|
|
457
457
|
this.reactOnStrChanged();
|
|
458
458
|
}
|
|
@@ -4410,7 +4410,9 @@ class SurveyQuestionBooleanRadio extends SurveyQuestionBoolean {
|
|
|
4410
4410
|
renderRadioItem(value, locText) {
|
|
4411
4411
|
const cssClasses = this.question.cssClasses;
|
|
4412
4412
|
const handleOnChange = () => {
|
|
4413
|
-
this.question.
|
|
4413
|
+
if (!this.question.isInputReadOnly) {
|
|
4414
|
+
this.question.value = value;
|
|
4415
|
+
}
|
|
4414
4416
|
};
|
|
4415
4417
|
return (React.createElement("div", { role: "presentation", className: this.question.getRadioItemClass(cssClasses, value) },
|
|
4416
4418
|
React.createElement("label", { className: cssClasses.radioLabel },
|
|
@@ -4423,7 +4425,7 @@ class SurveyQuestionBooleanRadio extends SurveyQuestionBoolean {
|
|
|
4423
4425
|
}
|
|
4424
4426
|
renderElement() {
|
|
4425
4427
|
const cssClasses = this.question.cssClasses;
|
|
4426
|
-
return (React.createElement("div", { className: cssClasses.rootRadio },
|
|
4428
|
+
return (React.createElement("div", { className: cssClasses.rootRadio, onKeyDown: this.handleOnKeyDown },
|
|
4427
4429
|
React.createElement("fieldset", { role: "presentation", className: cssClasses.radioFieldset }, !this.question.swapOrder ?
|
|
4428
4430
|
(React.createElement(React.Fragment, null,
|
|
4429
4431
|
this.renderRadioItem(this.question.getValueFalse(), this.question.locLabelFalse),
|
|
@@ -6247,6 +6249,19 @@ ReactElementFactory.Instance.registerElement("sv-paneldynamic-progress-text", (p
|
|
|
6247
6249
|
});
|
|
6248
6250
|
|
|
6249
6251
|
class SurveyNavigationButton extends ReactSurveyElement {
|
|
6252
|
+
constructor() {
|
|
6253
|
+
super(...arguments);
|
|
6254
|
+
this.inputElement = null;
|
|
6255
|
+
this.inputParent = null;
|
|
6256
|
+
this.setInputRef = (element) => {
|
|
6257
|
+
var _a;
|
|
6258
|
+
if (!element && !!this.inputElement && !!this.inputParent && this.inputElement.parentNode !== this.inputParent) {
|
|
6259
|
+
this.inputParent.appendChild(this.inputElement);
|
|
6260
|
+
}
|
|
6261
|
+
this.inputElement = element;
|
|
6262
|
+
this.inputParent = (_a = element === null || element === void 0 ? void 0 : element.parentNode) !== null && _a !== void 0 ? _a : this.inputParent;
|
|
6263
|
+
};
|
|
6264
|
+
}
|
|
6250
6265
|
get item() {
|
|
6251
6266
|
return this.props.item;
|
|
6252
6267
|
}
|
|
@@ -6254,7 +6269,7 @@ class SurveyNavigationButton extends ReactSurveyElement {
|
|
|
6254
6269
|
return this.item.isVisible;
|
|
6255
6270
|
}
|
|
6256
6271
|
renderElement() {
|
|
6257
|
-
return (React.createElement("input", { className: this.item.innerCss, type: "button", disabled: this.item.disabled, onMouseDown: this.item.data && this.item.data.mouseDown, onClick: this.item.action, title: this.item.getTooltip(), value: this.item.title }));
|
|
6272
|
+
return (React.createElement("input", { ref: this.setInputRef, className: this.item.innerCss, type: "button", disabled: this.item.disabled, onMouseDown: this.item.data && this.item.data.mouseDown, onClick: this.item.action, title: this.item.getTooltip(), value: this.item.title }));
|
|
6258
6273
|
}
|
|
6259
6274
|
}
|
|
6260
6275
|
ReactElementFactory.Instance.registerElement("sv-nav-btn", (props) => {
|
|
@@ -6444,7 +6459,7 @@ ReactElementFactory.Instance.registerElement(LocalizableString.editableRenderer,
|
|
|
6444
6459
|
return React.createElement(SurveyLocStringEditor, props);
|
|
6445
6460
|
});
|
|
6446
6461
|
|
|
6447
|
-
checkLibraryVersion(`${"2.5.
|
|
6462
|
+
checkLibraryVersion(`${"2.5.26"}`, "survey-react-ui");
|
|
6448
6463
|
|
|
6449
6464
|
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 };
|
|
6450
6465
|
//# sourceMappingURL=survey-react-ui.mjs.map
|