survey-js-ui 2.5.47 → 2.5.48

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v2.5.47
2
+ * surveyjs - Survey JavaScript library v2.5.48
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
  */
@@ -5259,7 +5259,7 @@ class SurveyProgressButtons extends SurveyNavigationBase {
5259
5259
  render() {
5260
5260
  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 },
5261
5261
  this.state.canShowHeader ? _$1("div", { className: this.css.progressButtonsHeader },
5262
- _$1("div", { className: this.css.progressButtonsPageTitle, title: this.model.headerText }, this.model.headerText)) : null,
5262
+ _$1("div", { className: this.css.progressButtonsPageTitle, title: this.model.headerTitle }, this.renderHeaderText())) : null,
5263
5263
  _$1("div", { className: this.css.progressButtonsContainer },
5264
5264
  _$1("div", { className: this.model.getScrollButtonCss(this.state.hasScroller, true), role: "button", onClick: () => this.clickScrollButton(this.listContainerRef.current, true) }),
5265
5265
  _$1("div", { className: this.css.progressButtonsListContainer, ref: this.listContainerRef },
@@ -5268,6 +5268,10 @@ class SurveyProgressButtons extends SurveyNavigationBase {
5268
5268
  this.state.canShowFooter ? _$1("div", { className: this.css.progressButtonsFooter },
5269
5269
  _$1("div", { className: this.css.progressButtonsPageTitle, title: this.model.footerText }, this.model.footerText)) : null));
5270
5270
  }
5271
+ renderHeaderText() {
5272
+ const page = this.model.survey.currentPage;
5273
+ return page ? SurveyElementBase.renderLocString(page.locNavigationTitle) : "";
5274
+ }
5271
5275
  getListElements() {
5272
5276
  let buttons = [];
5273
5277
  this.model.visiblePages.forEach((page, index) => {
@@ -5282,7 +5286,7 @@ class SurveyProgressButtons extends SurveyNavigationBase {
5282
5286
  : undefined, "data-page-number": this.model.getItemNumber(page) },
5283
5287
  _$1("div", { className: this.css.progressButtonsConnector }),
5284
5288
  this.state.canShowItemTitles ? _$1(k$3, null,
5285
- _$1("div", { className: this.css.progressButtonsPageTitle, title: page.renderedNavigationTitle }, text),
5289
+ _$1("div", { className: this.css.progressButtonsPageTitle, title: this.model.getItemTitle(page) }, text),
5286
5290
  _$1("div", { className: this.css.progressButtonsPageDescription, title: page.navigationDescription }, page.navigationDescription)) : null,
5287
5291
  _$1("div", { className: this.css.progressButtonsButton },
5288
5292
  _$1("div", { className: this.css.progressButtonsButtonBackground }),
@@ -6626,7 +6630,7 @@ SurveyModel.prototype["render"] = function (element = null) {
6626
6630
  }
6627
6631
  };
6628
6632
  const preact = React;
6629
- checkLibraryVersion(`${"2.5.47"}`, "survey-js-ui");
6633
+ checkLibraryVersion(`${"2.5.48"}`, "survey-js-ui");
6630
6634
 
6631
6635
  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 };
6632
6636
  //# sourceMappingURL=survey-js-ui.mjs.map