survey-js-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-js-ui.mjs +21 -10
- package/fesm/survey-js-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-js-ui.js +29 -10
- package/survey-js-ui.js.map +1 -1
- package/survey-js-ui.min.js +2 -2
- package/typings/survey-react-ui/src/components/paneldynamic-actions/paneldynamic-add-btn.d.ts +1 -0
- package/typings/survey-react-ui/src/progress.d.ts +3 -0
package/fesm/survey-js-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
|
*/
|
|
@@ -4515,7 +4515,7 @@ class SurveyQuestionBooleanRadio extends SurveyQuestionBoolean {
|
|
|
4515
4515
|
};
|
|
4516
4516
|
return (_$1("div", { role: "presentation", className: this.question.getRadioItemClass(cssClasses, value) },
|
|
4517
4517
|
_$1("label", { className: cssClasses.radioLabel },
|
|
4518
|
-
_$1("input", { type: "radio", name: this.question.
|
|
4518
|
+
_$1("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 }),
|
|
4519
4519
|
this.question.cssClasses.materialRadioDecorator ?
|
|
4520
4520
|
(_$1("span", { className: cssClasses.materialRadioDecorator }, this.question.itemSvgIcon ?
|
|
4521
4521
|
(_$1("svg", { className: cssClasses.itemRadioDecorator },
|
|
@@ -5193,23 +5193,29 @@ class SurveyProgress extends SurveyNavigationBase {
|
|
|
5193
5193
|
get isTop() {
|
|
5194
5194
|
return this.props.isTop;
|
|
5195
5195
|
}
|
|
5196
|
+
get model() {
|
|
5197
|
+
return this.props.model;
|
|
5198
|
+
}
|
|
5199
|
+
getStateElement() {
|
|
5200
|
+
return this.model;
|
|
5201
|
+
}
|
|
5196
5202
|
get progress() {
|
|
5197
|
-
return this.
|
|
5203
|
+
return this.model.progressValue;
|
|
5198
5204
|
}
|
|
5199
5205
|
get progressText() {
|
|
5200
|
-
return this.
|
|
5206
|
+
return this.model.progressText;
|
|
5201
5207
|
}
|
|
5202
5208
|
get progressBarAriaLabel() {
|
|
5203
|
-
return this.
|
|
5209
|
+
return this.model.progressBarAriaLabel;
|
|
5204
5210
|
}
|
|
5205
5211
|
render() {
|
|
5206
5212
|
var progressStyle = {
|
|
5207
5213
|
width: this.progress + "%",
|
|
5208
5214
|
};
|
|
5209
|
-
return (_$1("div", { className: this.
|
|
5210
|
-
_$1("div", { style: progressStyle, className: this.css.progressBar, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": this.progressBarAriaLabel },
|
|
5211
|
-
_$1("span", { className: SurveyProgressModel.getProgressTextInBarCss(this.css) }, this.progressText)),
|
|
5212
|
-
_$1("span", { className: SurveyProgressModel.getProgressTextUnderBarCss(this.css) }, this.progressText)));
|
|
5215
|
+
return (_$1("div", { className: this.model.getProgressCssClasses(this.props.container) },
|
|
5216
|
+
_$1("div", { style: progressStyle, className: this.model.css.progressBar, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": this.progressBarAriaLabel },
|
|
5217
|
+
_$1("span", { className: SurveyProgressModel.getProgressTextInBarCss(this.model.css) }, this.progressText)),
|
|
5218
|
+
_$1("span", { className: SurveyProgressModel.getProgressTextUnderBarCss(this.model.css) }, this.progressText)));
|
|
5213
5219
|
}
|
|
5214
5220
|
}
|
|
5215
5221
|
ReactElementFactory.Instance.registerElement("sv-progress-pages", props => {
|
|
@@ -6273,6 +6279,11 @@ class SurveyQuestionPanelDynamicAddButton extends SurveyQuestionPanelDynamicActi
|
|
|
6273
6279
|
this.question.addPanelUI();
|
|
6274
6280
|
};
|
|
6275
6281
|
}
|
|
6282
|
+
get isActionEnabled() {
|
|
6283
|
+
if (this.props.item)
|
|
6284
|
+
return this.props.item.enabled !== false;
|
|
6285
|
+
return this.question.enableAddPanel !== false;
|
|
6286
|
+
}
|
|
6276
6287
|
renderElement() {
|
|
6277
6288
|
if (!this.question.canAddPanel)
|
|
6278
6289
|
return null;
|
|
@@ -6607,7 +6618,7 @@ SurveyModel.prototype["render"] = function (element = null) {
|
|
|
6607
6618
|
}
|
|
6608
6619
|
};
|
|
6609
6620
|
const preact = React;
|
|
6610
|
-
checkLibraryVersion(`${"2.5.
|
|
6621
|
+
checkLibraryVersion(`${"2.5.28"}`, "survey-js-ui");
|
|
6611
6622
|
|
|
6612
6623
|
export { CharacterCounterComponent, O as Children, x$3 as Component, ComponentsContainer, k$3 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, 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, P as Suspense, B as SuspenseList, SvgBundleComponent, SvgIcon, TagboxFilterString, TitleActions, TitleElement, attachKey2click, _n as cloneElement, Q$2 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$2 as useCallback, x$2 as useContext, P$2 as useDebugValue, w as useDeferredValue, y as useEffect, g$2 as useId, F$2 as useImperativeHandle, I as useInsertionEffect, _ as useLayoutEffect, T$2 as useMemo, h as useReducer, A$2 as useRef, d as useState, C as useSyncExternalStore, k as useTransition, vn as version };
|
|
6613
6624
|
//# sourceMappingURL=survey-js-ui.mjs.map
|