survey-react-ui 2.5.26 → 2.5.28
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 +21 -10
- package/fesm/survey-react-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-react-ui.js +29 -10
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +2 -2
- package/typings/src/components/paneldynamic-actions/paneldynamic-add-btn.d.ts +1 -0
- package/typings/src/progress.d.ts +3 -0
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.28
|
|
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
|
*/
|
|
@@ -4416,7 +4416,7 @@ class SurveyQuestionBooleanRadio extends SurveyQuestionBoolean {
|
|
|
4416
4416
|
};
|
|
4417
4417
|
return (React.createElement("div", { role: "presentation", className: this.question.getRadioItemClass(cssClasses, value) },
|
|
4418
4418
|
React.createElement("label", { className: cssClasses.radioLabel },
|
|
4419
|
-
React.createElement("input", { type: "radio", name: this.question.
|
|
4419
|
+
React.createElement("input", { type: "radio", name: this.question.questionName, value: value, "aria-errormessage": this.question.ariaErrormessage, checked: value === this.question.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, className: cssClasses.itemRadioControl, onChange: handleOnChange }),
|
|
4420
4420
|
this.question.cssClasses.materialRadioDecorator ?
|
|
4421
4421
|
(React.createElement("span", { className: cssClasses.materialRadioDecorator }, this.question.itemSvgIcon ?
|
|
4422
4422
|
(React.createElement("svg", { className: cssClasses.itemRadioDecorator },
|
|
@@ -5094,23 +5094,29 @@ class SurveyProgress extends SurveyNavigationBase {
|
|
|
5094
5094
|
get isTop() {
|
|
5095
5095
|
return this.props.isTop;
|
|
5096
5096
|
}
|
|
5097
|
+
get model() {
|
|
5098
|
+
return this.props.model;
|
|
5099
|
+
}
|
|
5100
|
+
getStateElement() {
|
|
5101
|
+
return this.model;
|
|
5102
|
+
}
|
|
5097
5103
|
get progress() {
|
|
5098
|
-
return this.
|
|
5104
|
+
return this.model.progressValue;
|
|
5099
5105
|
}
|
|
5100
5106
|
get progressText() {
|
|
5101
|
-
return this.
|
|
5107
|
+
return this.model.progressText;
|
|
5102
5108
|
}
|
|
5103
5109
|
get progressBarAriaLabel() {
|
|
5104
|
-
return this.
|
|
5110
|
+
return this.model.progressBarAriaLabel;
|
|
5105
5111
|
}
|
|
5106
5112
|
render() {
|
|
5107
5113
|
var progressStyle = {
|
|
5108
5114
|
width: this.progress + "%",
|
|
5109
5115
|
};
|
|
5110
|
-
return (React.createElement("div", { className: this.
|
|
5111
|
-
React.createElement("div", { style: progressStyle, className: this.css.progressBar, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": this.progressBarAriaLabel },
|
|
5112
|
-
React.createElement("span", { className: SurveyProgressModel.getProgressTextInBarCss(this.css) }, this.progressText)),
|
|
5113
|
-
React.createElement("span", { className: SurveyProgressModel.getProgressTextUnderBarCss(this.css) }, this.progressText)));
|
|
5116
|
+
return (React.createElement("div", { className: this.model.getProgressCssClasses(this.props.container) },
|
|
5117
|
+
React.createElement("div", { style: progressStyle, className: this.model.css.progressBar, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": this.progressBarAriaLabel },
|
|
5118
|
+
React.createElement("span", { className: SurveyProgressModel.getProgressTextInBarCss(this.model.css) }, this.progressText)),
|
|
5119
|
+
React.createElement("span", { className: SurveyProgressModel.getProgressTextUnderBarCss(this.model.css) }, this.progressText)));
|
|
5114
5120
|
}
|
|
5115
5121
|
}
|
|
5116
5122
|
ReactElementFactory.Instance.registerElement("sv-progress-pages", props => {
|
|
@@ -6174,6 +6180,11 @@ class SurveyQuestionPanelDynamicAddButton extends SurveyQuestionPanelDynamicActi
|
|
|
6174
6180
|
this.question.addPanelUI();
|
|
6175
6181
|
};
|
|
6176
6182
|
}
|
|
6183
|
+
get isActionEnabled() {
|
|
6184
|
+
if (this.props.item)
|
|
6185
|
+
return this.props.item.enabled !== false;
|
|
6186
|
+
return this.question.enableAddPanel !== false;
|
|
6187
|
+
}
|
|
6177
6188
|
renderElement() {
|
|
6178
6189
|
if (!this.question.canAddPanel)
|
|
6179
6190
|
return null;
|
|
@@ -6459,7 +6470,7 @@ ReactElementFactory.Instance.registerElement(LocalizableString.editableRenderer,
|
|
|
6459
6470
|
return React.createElement(SurveyLocStringEditor, props);
|
|
6460
6471
|
});
|
|
6461
6472
|
|
|
6462
|
-
checkLibraryVersion(`${"2.5.
|
|
6473
|
+
checkLibraryVersion(`${"2.5.28"}`, "survey-react-ui");
|
|
6463
6474
|
|
|
6464
6475
|
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 };
|
|
6465
6476
|
//# sourceMappingURL=survey-react-ui.mjs.map
|