survey-react-ui 2.5.2 → 2.5.4

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,10 +1,10 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v2.5.2
2
+ * surveyjs - Survey JavaScript library v2.5.4
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
6
6
 
7
- import { SurveyModel, Helpers, createSvg, LocalizableString, createPopupViewModel, CssClassBuilder, ActionDropdownViewModel, RendererFactory, doKey2ClickUp, SvgRegistry, settings, createPopupModalViewModel, ScrollViewModel, doKey2ClickBlur, doKey2ClickDown, addIconsToThemeSet, Question, SurveyProgressModel, ProgressButtonsResponsivityManager, PopupSurveyModel, ButtonGroupItemModel, checkLibraryVersion } from 'survey-core';
7
+ import { SurveyModel, Helpers, createSvg, LocalizableString, createPopupViewModel, CssClassBuilder, ActionDropdownViewModel, RendererFactory, doKey2ClickUp, SvgRegistry, settings, createPopupModalViewModel, ScrollViewModel, addIconsToThemeSet, doKey2ClickBlur, doKey2ClickDown, Question, SurveyProgressModel, ProgressButtonsResponsivityManager, PopupSurveyModel, ButtonGroupItemModel, checkLibraryVersion } from 'survey-core';
8
8
  export { SurveyModel as Model, SurveyModel, SurveyWindowModel, settings, surveyLocalization, surveyStrings } from 'survey-core';
9
9
  import * as React from 'react';
10
10
  import * as ReactDOM from 'react-dom';
@@ -1114,7 +1114,7 @@ class PopupModal extends SurveyElementBase {
1114
1114
  PopupModal.modalDescriptors = [];
1115
1115
 
1116
1116
  /*!
1117
- * surveyjs - Survey JavaScript library v2.5.2
1117
+ * surveyjs - Survey JavaScript library v2.5.4
1118
1118
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
1119
1119
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
1120
1120
  */
@@ -1184,7 +1184,7 @@ var iconsV1 = {
1184
1184
  };
1185
1185
 
1186
1186
  /*!
1187
- * surveyjs - Survey JavaScript library v2.5.2
1187
+ * surveyjs - Survey JavaScript library v2.5.4
1188
1188
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
1189
1189
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
1190
1190
  */
@@ -1543,29 +1543,33 @@ ReactElementFactory.Instance.registerElement("survey", (props) => {
1543
1543
  return React.createElement(Survey, props);
1544
1544
  });
1545
1545
  function attachKey2click(element, viewModel, options = { processEsc: true, disableTabStop: false }) {
1546
+ let props = {};
1546
1547
  if ((!!viewModel && viewModel.disableTabStop) || (!!options && options.disableTabStop)) {
1547
- return React.cloneElement(element, { tabIndex: -1 });
1548
+ props = { tabIndex: -1 };
1548
1549
  }
1549
- options = Object.assign({}, options);
1550
- return React.cloneElement(element, {
1551
- tabIndex: 0,
1552
- onPointerUp: (evt) => {
1553
- if (evt.pointerType === "pen") {
1550
+ else {
1551
+ options = Object.assign({}, options);
1552
+ props = {
1553
+ tabIndex: 0,
1554
+ onKeyUp: (evt) => {
1554
1555
  evt.preventDefault();
1555
1556
  evt.stopPropagation();
1556
- const element = evt.target;
1557
- if (element === null || element === void 0 ? void 0 : element.click)
1558
- element.click();
1559
- }
1560
- },
1561
- onKeyUp: (evt) => {
1557
+ doKey2ClickUp(evt, options);
1558
+ },
1559
+ onKeyDown: (evt) => doKey2ClickDown(evt, options),
1560
+ onBlur: (evt) => doKey2ClickBlur(evt),
1561
+ };
1562
+ }
1563
+ props["onPointerUp"] = (evt) => {
1564
+ if (evt.pointerType === "pen") {
1562
1565
  evt.preventDefault();
1563
1566
  evt.stopPropagation();
1564
- doKey2ClickUp(evt, options);
1565
- },
1566
- onKeyDown: (evt) => doKey2ClickDown(evt, options),
1567
- onBlur: (evt) => doKey2ClickBlur(evt),
1568
- });
1567
+ const element = evt.target;
1568
+ if (element === null || element === void 0 ? void 0 : element.click)
1569
+ element.click();
1570
+ }
1571
+ };
1572
+ return React.cloneElement(element, props);
1569
1573
  }
1570
1574
 
1571
1575
  class SurveyNavigationBase extends React.Component {
@@ -6171,7 +6175,7 @@ ReactElementFactory.Instance.registerElement(LocalizableString.editableRenderer,
6171
6175
  return React.createElement(SurveyLocStringEditor, props);
6172
6176
  });
6173
6177
 
6174
- checkLibraryVersion(`${"2.5.2"}`, "survey-react-ui");
6178
+ checkLibraryVersion(`${"2.5.4"}`, "survey-react-ui");
6175
6179
 
6176
6180
  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, 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 };
6177
6181
  //# sourceMappingURL=survey-react-ui.mjs.map