survey-js-ui 2.5.13 → 2.5.14
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 +8 -5
- package/fesm/survey-js-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-js-ui.js +9 -6
- 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/typings/survey-react-ui/src/progressButtons.d.ts +2 -1
- package/typings/survey-react-ui/src/reactSurveyNavigationBase.d.ts +2 -2
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.14
|
|
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
|
*/
|
|
@@ -1848,7 +1848,7 @@ function attachKey2click(element, viewModel, options = { processEsc: true, disab
|
|
|
1848
1848
|
return _n(element, props);
|
|
1849
1849
|
}
|
|
1850
1850
|
|
|
1851
|
-
class SurveyNavigationBase extends
|
|
1851
|
+
class SurveyNavigationBase extends SurveyElementBase {
|
|
1852
1852
|
constructor(props) {
|
|
1853
1853
|
super(props);
|
|
1854
1854
|
this.updateStateFunction = null;
|
|
@@ -5185,6 +5185,9 @@ class SurveyProgressButtons extends SurveyNavigationBase {
|
|
|
5185
5185
|
get container() {
|
|
5186
5186
|
return this.props.container;
|
|
5187
5187
|
}
|
|
5188
|
+
getStateElement() {
|
|
5189
|
+
return this.model;
|
|
5190
|
+
}
|
|
5188
5191
|
onResize(canShowItemTitles) {
|
|
5189
5192
|
this.setState({ canShowItemTitles });
|
|
5190
5193
|
this.setState({ canShowHeader: !canShowItemTitles });
|
|
@@ -5197,7 +5200,7 @@ class SurveyProgressButtons extends SurveyNavigationBase {
|
|
|
5197
5200
|
this.setState({ canShowFooter: !this.model.showItemTitles });
|
|
5198
5201
|
}
|
|
5199
5202
|
render() {
|
|
5200
|
-
return (_$1("div", { className: this.model.getRootCss(this.props.container), style: { "maxWidth": this.model.progressWidth, ["--sd-progress-buttons-pages-count"]: this.
|
|
5203
|
+
return (_$1("div", { className: this.model.getRootCss(this.props.container), style: { "maxWidth": this.model.progressWidth, ["--sd-progress-buttons-pages-count"]: this.model.visiblePages.length }, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": this.model.progressBarAriaLabel },
|
|
5201
5204
|
this.state.canShowHeader ? _$1("div", { className: this.css.progressButtonsHeader },
|
|
5202
5205
|
_$1("div", { className: this.css.progressButtonsPageTitle, title: this.model.headerText }, this.model.headerText)) : null,
|
|
5203
5206
|
_$1("div", { className: this.css.progressButtonsContainer },
|
|
@@ -5210,7 +5213,7 @@ class SurveyProgressButtons extends SurveyNavigationBase {
|
|
|
5210
5213
|
}
|
|
5211
5214
|
getListElements() {
|
|
5212
5215
|
let buttons = [];
|
|
5213
|
-
this.
|
|
5216
|
+
this.model.visiblePages.forEach((page, index) => {
|
|
5214
5217
|
buttons.push(this.renderListElement(page, index));
|
|
5215
5218
|
});
|
|
5216
5219
|
return buttons;
|
|
@@ -6522,7 +6525,7 @@ SurveyModel.prototype["render"] = function (element = null) {
|
|
|
6522
6525
|
}
|
|
6523
6526
|
};
|
|
6524
6527
|
const preact = React;
|
|
6525
|
-
checkLibraryVersion(`${"2.5.
|
|
6528
|
+
checkLibraryVersion(`${"2.5.14"}`, "survey-js-ui");
|
|
6526
6529
|
|
|
6527
6530
|
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, 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$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 };
|
|
6528
6531
|
//# sourceMappingURL=survey-js-ui.mjs.map
|