survey-react 1.12.23 → 1.12.25

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/survey.react.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.23
2
+ * surveyjs - Survey JavaScript library v1.12.25
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
  */
@@ -1703,7 +1703,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
1703
1703
 
1704
1704
  /***/ "./src/entries/react.ts":
1705
1705
  /*!********************************************!*\
1706
- !*** ./src/entries/react.ts + 288 modules ***!
1706
+ !*** ./src/entries/react.ts + 289 modules ***!
1707
1707
  \********************************************/
1708
1708
  /*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, slk, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedErrorRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionFilePage, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryFocusPage, createTOCListModel, getTocRootCss, TOCModel, SurveyProgressModel, ProgressButtons, ProgressButtonsResponsivityManager, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, SurveyTriggerSkip, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, Cover, CoverCell, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, getLocaleString, getLocaleStrings, setupLocale, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, chooseFiles, sanitizeEditableContent, prepareElementForVerticalAnimation, cleanHtmlElementAfterAnimation, classesToSelector, renamedIcons, getIconNameFromProxy, InputMaskBase, InputMaskPattern, InputMaskNumeric, InputMaskDateTime, InputMaskCurrency, CssClassBuilder, TextAreaModel, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank, StylesManager, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgThemeSets, addIconsToThemeSet, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, getElement, activateLazyRenderingChecks, createDropdownActionModel, createDropdownActionModelAdvanced, createPopupModelWithListModel, getActionDropdownButtonTarget, BaseAction, Action, ActionDropdownViewModel, AnimationUtils, AnimationPropertyUtils, AnimationGroupUtils, AnimationProperty, AnimationBoolean, AnimationGroup, AnimationTab, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, DragOrClickHelper, Model, bootstrapThemeName, bootstrapThemeColors, bootstrapThemeCssRules, bootstrapMaterialThemeName, bootstrapMaterialThemeColors, bootstrapMaterialThemeCssRules, defaultBootstrapCss, defaultBootstrapMaterialCss, Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, SurveyQuestionRankingItemContent, RatingItem, RatingItemStar, RatingItemSmiley, RatingDropdownItem, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionMatrixCell, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyFilePreview, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, ListItemContent, ListItemGroup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, QuestionErrorComponent, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, HeaderMobile, HeaderCell, Header, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent, SvgBundleComponent, PopupModal */
1709
1709
  /*! ModuleConcatenation bailout: Cannot concat with external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"} (<- Module is not an ECMAScript module) */
@@ -1747,7 +1747,7 @@ __webpack_require__.d(__webpack_exports__, "CustomError", function() { return /*
1747
1747
  __webpack_require__.d(__webpack_exports__, "AnswerRequiredError", function() { return /* reexport */ AnswerRequiredError; });
1748
1748
  __webpack_require__.d(__webpack_exports__, "OneAnswerRequiredError", function() { return /* reexport */ OneAnswerRequiredError; });
1749
1749
  __webpack_require__.d(__webpack_exports__, "RequreNumericError", function() { return /* reexport */ RequreNumericError; });
1750
- __webpack_require__.d(__webpack_exports__, "ExceedSizeError", function() { return /* reexport */ error_ExceedSizeError; });
1750
+ __webpack_require__.d(__webpack_exports__, "ExceedSizeError", function() { return /* reexport */ ExceedSizeError; });
1751
1751
  __webpack_require__.d(__webpack_exports__, "LocalizableString", function() { return /* reexport */ localizablestring_LocalizableString; });
1752
1752
  __webpack_require__.d(__webpack_exports__, "LocalizableStrings", function() { return /* reexport */ localizablestring_LocalizableStrings; });
1753
1753
  __webpack_require__.d(__webpack_exports__, "HtmlConditionItem", function() { return /* reexport */ HtmlConditionItem; });
@@ -2239,6 +2239,9 @@ var helpers_Helpers = /** @class */ (function () {
2239
2239
  }
2240
2240
  return !value && value !== 0 && value !== false;
2241
2241
  };
2242
+ Helpers.isValueUndefined = function (value) {
2243
+ return (value === undefined || value === null) || (typeof value === "number" && isNaN(value));
2244
+ };
2242
2245
  Helpers.isArrayContainsEqual = function (x, y) {
2243
2246
  if (!Array.isArray(x) || !Array.isArray(y))
2244
2247
  return false;
@@ -10187,9 +10190,6 @@ var base_Base = /** @class */ (function () {
10187
10190
  return value.trim();
10188
10191
  return value;
10189
10192
  };
10190
- Base.prototype.isPropertyEmpty = function (value) {
10191
- return value !== "" && this.isValueEmpty(value);
10192
- };
10193
10193
  Base.createPropertiesHash = function () {
10194
10194
  return {};
10195
10195
  };
@@ -10400,11 +10400,11 @@ var base_Base = /** @class */ (function () {
10400
10400
  */
10401
10401
  Base.prototype.getPropertyValue = function (name, defaultValue, calcFunc) {
10402
10402
  var res = this.getPropertyValueWithoutDefault(name);
10403
- if (this.isPropertyEmpty(res)) {
10403
+ if (this.isValueUndefined(res)) {
10404
10404
  var locStr = this.localizableStrings ? this.localizableStrings[name] : undefined;
10405
10405
  if (locStr)
10406
10406
  return locStr.text;
10407
- if (defaultValue !== null && defaultValue !== undefined)
10407
+ if (!this.isValueUndefined(defaultValue))
10408
10408
  return defaultValue;
10409
10409
  if (!!calcFunc) {
10410
10410
  var newVal = calcFunc();
@@ -10426,6 +10426,9 @@ var base_Base = /** @class */ (function () {
10426
10426
  }
10427
10427
  return res;
10428
10428
  };
10429
+ Base.prototype.isValueUndefined = function (value) {
10430
+ return helpers_Helpers.isValueUndefined(value);
10431
+ };
10429
10432
  Base.prototype.getDefaultPropertyValue = function (name) {
10430
10433
  var prop = this.getPropertyByName(name);
10431
10434
  if (!prop || prop.isCustom && this.isCreating)
@@ -10433,7 +10436,7 @@ var base_Base = /** @class */ (function () {
10433
10436
  if (!!prop.defaultValueFunc)
10434
10437
  return prop.defaultValueFunc(this);
10435
10438
  var dValue = prop.getDefaultValue(this);
10436
- if (!this.isPropertyEmpty(dValue) && !Array.isArray(dValue))
10439
+ if (!this.isValueUndefined(dValue) && !Array.isArray(dValue))
10437
10440
  return dValue;
10438
10441
  var locStr = this.localizableStrings ? this.localizableStrings[name] : undefined;
10439
10442
  if (locStr && locStr.localizationName)
@@ -12680,9 +12683,6 @@ var action_BaseAction = /** @class */ (function (_super) {
12680
12683
  action_decorate([
12681
12684
  jsonobject_property()
12682
12685
  ], BaseAction.prototype, "pressed", void 0);
12683
- action_decorate([
12684
- jsonobject_property()
12685
- ], BaseAction.prototype, "data", void 0);
12686
12686
  action_decorate([
12687
12687
  jsonobject_property()
12688
12688
  ], BaseAction.prototype, "popupModel", void 0);
@@ -14142,7 +14142,7 @@ var survey_element_SurveyElement = /** @class */ (function (_super) {
14142
14142
  },
14143
14143
  set: function (val) {
14144
14144
  this.setPropertyValue("state", val);
14145
- this.renderedIsExpanded = !(this.state === "collapsed" && !this.isDesignMode);
14145
+ this.renderedIsExpanded = !this.isCollapsed;
14146
14146
  },
14147
14147
  enumerable: false,
14148
14148
  configurable: true
@@ -14344,6 +14344,9 @@ var survey_element_SurveyElement = /** @class */ (function (_super) {
14344
14344
  this.updateDescriptionVisibility(this.description);
14345
14345
  this.clearCssClasses();
14346
14346
  }
14347
+ this.blockAnimations();
14348
+ this.renderedIsExpanded = !this.isCollapsed;
14349
+ this.releaseAnimations();
14347
14350
  };
14348
14351
  SurveyElement.prototype.canRunConditions = function () {
14349
14352
  return _super.prototype.canRunConditions.call(this) && !!this.data;
@@ -17579,7 +17582,6 @@ var error_extends = (undefined && undefined.__extends) || (function () {
17579
17582
  };
17580
17583
  })();
17581
17584
 
17582
-
17583
17585
  var AnswerRequiredError = /** @class */ (function (_super) {
17584
17586
  error_extends(AnswerRequiredError, _super);
17585
17587
  function AnswerRequiredError(text, errorOwner) {
@@ -17634,7 +17636,7 @@ var RequreNumericError = /** @class */ (function (_super) {
17634
17636
  return RequreNumericError;
17635
17637
  }(survey_error_SurveyError));
17636
17638
 
17637
- var error_ExceedSizeError = /** @class */ (function (_super) {
17639
+ var ExceedSizeError = /** @class */ (function (_super) {
17638
17640
  error_extends(ExceedSizeError, _super);
17639
17641
  function ExceedSizeError(maxSize, errorOwner) {
17640
17642
  if (errorOwner === void 0) { errorOwner = null; }
@@ -17647,7 +17649,7 @@ var error_ExceedSizeError = /** @class */ (function (_super) {
17647
17649
  return "exceedsize";
17648
17650
  };
17649
17651
  ExceedSizeError.prototype.getDefaultText = function () {
17650
- return getLocaleString("exceedMaxSize")["format"](this.getTextSize());
17652
+ return this.getLocalizationString("exceedMaxSize")["format"](this.getTextSize());
17651
17653
  };
17652
17654
  ExceedSizeError.prototype.getTextSize = function () {
17653
17655
  var sizes = ["Bytes", "KB", "MB", "GB", "TB"];
@@ -17766,7 +17768,7 @@ var EachRowUniqueError = /** @class */ (function (_super) {
17766
17768
  return EachRowUniqueError;
17767
17769
  }(survey_error_SurveyError));
17768
17770
 
17769
- var error_MinRowCountError = /** @class */ (function (_super) {
17771
+ var MinRowCountError = /** @class */ (function (_super) {
17770
17772
  error_extends(MinRowCountError, _super);
17771
17773
  function MinRowCountError(minRowCount, errorOwner) {
17772
17774
  if (errorOwner === void 0) { errorOwner = null; }
@@ -17778,7 +17780,7 @@ var error_MinRowCountError = /** @class */ (function (_super) {
17778
17780
  return "minrowcounterror";
17779
17781
  };
17780
17782
  MinRowCountError.prototype.getDefaultText = function () {
17781
- return getLocaleString("minRowCountError")["format"](this.minRowCount);
17783
+ return this.getLocalizationString("minRowCountError")["format"](this.minRowCount);
17782
17784
  };
17783
17785
  return MinRowCountError;
17784
17786
  }(survey_error_SurveyError));
@@ -22514,9 +22516,6 @@ var itemvalue_ItemValue = /** @class */ (function (_super) {
22514
22516
  _this.ownerPropertyName = "";
22515
22517
  _this.locTextValue = new localizablestring_LocalizableString(_this, true, "text");
22516
22518
  _this.locTextValue.onStrChanged = function (oldValue, newValue) {
22517
- if (newValue == _this.value) {
22518
- newValue = undefined;
22519
- }
22520
22519
  _this.propertyValueChanged("text", oldValue, newValue);
22521
22520
  };
22522
22521
  _this.locTextValue.onGetTextCallback = function (txt) {
@@ -30956,8 +30955,11 @@ var question_matrixdropdownbase_QuestionMatrixDropdownModelBase = /** @class */
30956
30955
  var rows = this.generatedVisibleRows;
30957
30956
  if (rowIndex >= rows.length)
30958
30957
  return null;
30959
- var newValue = this.createNewValue();
30960
- return this.getRowValueCore(rows[rowIndex], newValue);
30958
+ var val = this.value;
30959
+ var rowVal = this.getRowValueCore(rows[rowIndex], val);
30960
+ if (this.isValueSurveyElement(val))
30961
+ return rowVal;
30962
+ return helpers_Helpers.getUnbindValue(rowVal);
30961
30963
  };
30962
30964
  QuestionMatrixDropdownModelBase.prototype.checkIfValueInRowDuplicated = function (checkedRow, cellQuestion) {
30963
30965
  if (!this.generatedVisibleRows)
@@ -33906,7 +33908,7 @@ var question_matrixdynamic_QuestionMatrixDynamicModel = /** @class */ (function
33906
33908
  QuestionMatrixDynamicModel.prototype.onCheckForErrors = function (errors, isOnValueChanged, fireCallback) {
33907
33909
  _super.prototype.onCheckForErrors.call(this, errors, isOnValueChanged, fireCallback);
33908
33910
  if (!isOnValueChanged && this.hasErrorInMinRows()) {
33909
- errors.push(new error_MinRowCountError(this.minRowCount, this));
33911
+ errors.push(new MinRowCountError(this.minRowCount, this));
33910
33912
  }
33911
33913
  };
33912
33914
  QuestionMatrixDynamicModel.prototype.hasErrorInMinRows = function () {
@@ -38218,7 +38220,8 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
38218
38220
  return false;
38219
38221
  };
38220
38222
  PanelModelBase.prototype.getIsPageVisible = function (exceptionQuestion) {
38221
- return this.visible && this.getIsContentVisible(exceptionQuestion);
38223
+ var isContentVisible = this.getIsContentVisible(exceptionQuestion);
38224
+ return this.visible && isContentVisible;
38222
38225
  };
38223
38226
  PanelModelBase.prototype.setVisibleIndex = function (index) {
38224
38227
  if (!this.isVisible || index < 0) {
@@ -39449,11 +39452,13 @@ var page_PageModel = /** @class */ (function (_super) {
39449
39452
  });
39450
39453
  PageModel.prototype.getElementsForRows = function () {
39451
39454
  var _a;
39452
- var q = (_a = this.survey) === null || _a === void 0 ? void 0 : _a.currentSingleQuestion;
39453
- if (!!q) {
39454
- if (q.page === this)
39455
- return [q];
39456
- return [];
39455
+ if (!this.isStartPage) {
39456
+ var q = (_a = this.survey) === null || _a === void 0 ? void 0 : _a.currentSingleQuestion;
39457
+ if (!!q) {
39458
+ if (q.page === this)
39459
+ return [q];
39460
+ return [];
39461
+ }
39457
39462
  }
39458
39463
  return _super.prototype.getElementsForRows.call(this);
39459
39464
  };
@@ -44441,7 +44446,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
44441
44446
  if (goToFirstPage) {
44442
44447
  this.currentPage = this.firstVisiblePage;
44443
44448
  if (this.currentSingleQuestion) {
44444
- var questions = this.getAllQuestions(true);
44449
+ var questions = this.getSingleQuestions();
44445
44450
  this.currentSingleQuestion = questions.length > 0 ? questions[0] : undefined;
44446
44451
  }
44447
44452
  }
@@ -44750,10 +44755,13 @@ var survey_SurveyModel = /** @class */ (function (_super) {
44750
44755
  return this.nextPage();
44751
44756
  if (!q.validate(true))
44752
44757
  return false;
44753
- var questions = this.getAllQuestions(true);
44758
+ var questions = this.getSingleQuestions();
44754
44759
  var index = questions.indexOf(q);
44755
44760
  if (index < 0 || index === questions.length - 1)
44756
44761
  return false;
44762
+ var key = {};
44763
+ key[q.name] = q.value;
44764
+ this.checkTriggers(key, false, false, true, q.name);
44757
44765
  this.currentSingleQuestion = questions[index + 1];
44758
44766
  return true;
44759
44767
  };
@@ -44761,7 +44769,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
44761
44769
  var q = this.currentSingleQuestion;
44762
44770
  if (!q)
44763
44771
  return this.prevPage();
44764
- var questions = this.getAllQuestions(true);
44772
+ var questions = this.getSingleQuestions();
44765
44773
  var index = questions.indexOf(q);
44766
44774
  if (index === 0)
44767
44775
  return false;
@@ -45343,11 +45351,22 @@ var survey_SurveyModel = /** @class */ (function (_super) {
45343
45351
  });
45344
45352
  this.updateButtonsVisibility();
45345
45353
  };
45354
+ SurveyModel.prototype.getSingleQuestions = function () {
45355
+ var res = new Array();
45356
+ var pages = this.pages;
45357
+ for (var i = 0; i < pages.length; i++) {
45358
+ var p = pages[i];
45359
+ if (!p.isStartPage && p.isVisible) {
45360
+ p.addQuestionsToList(res, true);
45361
+ }
45362
+ }
45363
+ return res;
45364
+ };
45346
45365
  Object.defineProperty(SurveyModel.prototype, "currentSingleQuestion", {
45347
45366
  get: function () { return this.currentSingleQuestionValue; },
45348
45367
  set: function (val) {
45349
45368
  var oldVal = this.currentSingleQuestion;
45350
- if (val !== oldVal) {
45369
+ if (val !== oldVal && !this.isCompleted) {
45351
45370
  var options = !!val && !!oldVal ? this.createPageChangeEventOptions(val.page, oldVal.page, val, oldVal) : undefined;
45352
45371
  if (!!options && !this.currentPageChangingFromOptions(options))
45353
45372
  return;
@@ -45387,7 +45406,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
45387
45406
  this.updatePagesContainer();
45388
45407
  }
45389
45408
  if (this.isSingleVisibleQuestion) {
45390
- var questions = this.getAllQuestions(true);
45409
+ var questions = this.getSingleQuestions();
45391
45410
  if (questions.length > 0) {
45392
45411
  this.currentSingleQuestion = questions[0];
45393
45412
  }
@@ -45483,7 +45502,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
45483
45502
  var lVal = undefined;
45484
45503
  var q = this.currentSingleQuestion;
45485
45504
  if (!!q) {
45486
- var questions = this.getAllQuestions(true);
45505
+ var questions = this.getSingleQuestions();
45487
45506
  var index = questions.indexOf(q);
45488
45507
  if (index >= 0) {
45489
45508
  fVal = index === 0;
@@ -46985,8 +47004,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
46985
47004
  }
46986
47005
  return result;
46987
47006
  };
46988
- SurveyModel.prototype.checkTriggers = function (key, isOnNextPage, isOnComplete, name) {
47007
+ SurveyModel.prototype.checkTriggers = function (key, isOnNextPage, isOnComplete, isOnNavigation, name) {
46989
47008
  if (isOnComplete === void 0) { isOnComplete = false; }
47009
+ if (isOnNavigation === void 0) { isOnNavigation = false; }
46990
47010
  if (this.isCompleted || this.triggers.length == 0 || this.isDisplayMode)
46991
47011
  return;
46992
47012
  if (this.isTriggerIsRunning) {
@@ -47010,7 +47030,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
47010
47030
  var trigger = this.triggers[i];
47011
47031
  if (isQuestionInvalid && trigger.requireValidQuestion)
47012
47032
  continue;
47013
- trigger.checkExpression(isOnNextPage, isOnComplete, this.triggerKeys, this.triggerValues, properties);
47033
+ var options = { isOnNextPage: isOnNextPage, isOnComplete: isOnComplete, isOnNavigation: isOnNavigation,
47034
+ keys: this.triggerKeys, values: this.triggerValues, properties: properties };
47035
+ trigger.checkExpression(options);
47014
47036
  }
47015
47037
  if (prevCanBeCompleted !== this.canBeCompletedByTrigger) {
47016
47038
  this.updateButtonsVisibility();
@@ -47021,7 +47043,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
47021
47043
  var triggerKeys = {};
47022
47044
  triggerKeys[name] = { newValue: newValue, oldValue: oldValue };
47023
47045
  this.runConditionOnValueChanged(name, newValue);
47024
- this.checkTriggers(triggerKeys, false, false, name);
47046
+ this.checkTriggers(triggerKeys, false, false, false, name);
47025
47047
  };
47026
47048
  Object.defineProperty(SurveyModel.prototype, "hasRequiredValidQuestionTrigger", {
47027
47049
  get: function () {
@@ -49706,6 +49728,14 @@ var question_baseselect_QuestionSelectBase = /** @class */ (function (_super) {
49706
49728
  res.text = text;
49707
49729
  return res;
49708
49730
  };
49731
+ QuestionSelectBase.prototype.hasErrors = function (fireCallback, rec) {
49732
+ if (fireCallback === void 0) { fireCallback = true; }
49733
+ if (rec === void 0) { rec = null; }
49734
+ if (!rec || rec.isOnValueChanged !== true) {
49735
+ this.clearIncorrectValues();
49736
+ }
49737
+ return _super.prototype.hasErrors.call(this, fireCallback, rec);
49738
+ };
49709
49739
  Object.defineProperty(QuestionSelectBase.prototype, "isUsingCarryForward", {
49710
49740
  get: function () {
49711
49741
  return !!this.carryForwardQuestionType;
@@ -52408,7 +52438,7 @@ var popup_view_model_PopupBaseViewModel = /** @class */ (function (_super) {
52408
52438
  this.footerToolbarValue.setItems(footerActions);
52409
52439
  };
52410
52440
  PopupBaseViewModel.prototype.resetDimensionsAndPositionStyleProperties = function () {
52411
- var nullableValue = "inherit";
52441
+ var nullableValue = "";
52412
52442
  this.top = nullableValue;
52413
52443
  this.left = nullableValue;
52414
52444
  this.height = nullableValue;
@@ -53408,7 +53438,7 @@ var dropdownListModel_DropdownListModel = /** @class */ (function (_super) {
53408
53438
  });
53409
53439
  Object.defineProperty(DropdownListModel.prototype, "showHintString", {
53410
53440
  get: function () {
53411
- return !!this.question.searchEnabled && this.hintStringLC && this.hintStringLC.indexOf(this.inputStringLC) >= 0 ||
53441
+ return !!this.question.searchEnabled && !!(this.hintStringLC || this.inputStringLC) ||
53412
53442
  !this.question.searchEnabled && this.hintStringLC && this.question.isEmpty();
53413
53443
  },
53414
53444
  enumerable: false,
@@ -53622,8 +53652,7 @@ var dropdownListModel_DropdownListModel = /** @class */ (function (_super) {
53622
53652
  };
53623
53653
  DropdownListModel.prototype.onBlur = function (event) {
53624
53654
  this.focused = false;
53625
- if (this.popupModel.isVisible && IsTouch) {
53626
- this._popupModel.show();
53655
+ if (this.popupModel.isVisible && this.popupModel.displayMode == "overlay") {
53627
53656
  return;
53628
53657
  }
53629
53658
  doKey2ClickBlur(event);
@@ -58386,7 +58415,6 @@ var question_checkbox_QuestionCheckboxModel = /** @class */ (function (_super) {
58386
58415
  QuestionCheckboxModel.prototype.getSelectAllEnabled = function () {
58387
58416
  if (!this.hasSelectAll)
58388
58417
  return true;
58389
- var items = this.activeChoices;
58390
58418
  var visCount = this.getVisibleEnableItems().length;
58391
58419
  var max = this.maxSelectedChoices;
58392
58420
  if (max > 0 && max < visCount)
@@ -58395,10 +58423,10 @@ var question_checkbox_QuestionCheckboxModel = /** @class */ (function (_super) {
58395
58423
  };
58396
58424
  QuestionCheckboxModel.prototype.getVisibleEnableItems = function () {
58397
58425
  var res = new Array();
58398
- var items = this.activeChoices;
58426
+ var items = this.visibleChoices;
58399
58427
  for (var i = 0; i < items.length; i++) {
58400
58428
  var item = items[i];
58401
- if (item.isEnabled && item.isVisible) {
58429
+ if (item.isEnabled && !this.isBuiltInChoice(item)) {
58402
58430
  res.push(item);
58403
58431
  }
58404
58432
  }
@@ -58682,7 +58710,7 @@ var question_checkbox_QuestionCheckboxModel = /** @class */ (function (_super) {
58682
58710
  return [_super.prototype.valueFromData.call(this, val)];
58683
58711
  var value = [];
58684
58712
  for (var i = 0; i < val.length; i++) {
58685
- var choiceitem = itemvalue_ItemValue.getItemByValue(this.activeChoices, val[i]);
58713
+ var choiceitem = itemvalue_ItemValue.getItemByValue(this.visibleChoices, val[i]);
58686
58714
  if (!!choiceitem) {
58687
58715
  value.push(choiceitem.value);
58688
58716
  }
@@ -59588,11 +59616,11 @@ var choices_DragDropChoices = /** @class */ (function (_super) {
59588
59616
  dragOverChoice = this.parentElement.choices.filter(function (choice) { return "" + choice.value == dataAttributeValue; })[0];
59589
59617
  return dragOverChoice;
59590
59618
  };
59591
- DragDropChoices.prototype.getVisibleChoices = function () {
59619
+ DragDropChoices.prototype.getChoices = function () {
59592
59620
  var parent = this.parentElement;
59593
59621
  if (parent.getType() === "ranking") {
59594
59622
  if (parent.selectToRankEnabled) {
59595
- return parent.visibleChoices;
59623
+ return parent.unRankingChoices;
59596
59624
  }
59597
59625
  else {
59598
59626
  return parent.rankingChoices;
@@ -59601,7 +59629,7 @@ var choices_DragDropChoices = /** @class */ (function (_super) {
59601
59629
  return parent.visibleChoices;
59602
59630
  };
59603
59631
  DragDropChoices.prototype.isDropTargetValid = function (dropTarget, dropTargetNode) {
59604
- var choices = this.getVisibleChoices();
59632
+ var choices = this.getChoices();
59605
59633
  if (this.parentElement.getType() !== "imagepicker") {
59606
59634
  var dropTargetIndex = choices.indexOf(this.dropTarget);
59607
59635
  var draggedElementIndex = choices.indexOf(this.draggedElement);
@@ -59628,7 +59656,7 @@ var choices_DragDropChoices = /** @class */ (function (_super) {
59628
59656
  };
59629
59657
  DragDropChoices.prototype.afterDragOver = function (dropTargetNode) {
59630
59658
  //if (this.isDropTargetDoesntChanged(this.isBottom)) return;
59631
- var choices = this.getVisibleChoices();
59659
+ var choices = this.getChoices();
59632
59660
  var dropTargetIndex = choices.indexOf(this.dropTarget);
59633
59661
  var draggedElementIndex = choices.indexOf(this.draggedElement);
59634
59662
  if (draggedElementIndex < dropTargetIndex && this.isBottom === true) {
@@ -59662,7 +59690,7 @@ var choices_DragDropChoices = /** @class */ (function (_super) {
59662
59690
  };
59663
59691
  DragDropChoices.prototype.doDrop = function () {
59664
59692
  var choices = this.parentElement.choices;
59665
- var filteredChoices = this.getVisibleChoices().filter(function (item) {
59693
+ var filteredChoices = this.getChoices().filter(function (item) {
59666
59694
  return choices.indexOf(item) !== -1;
59667
59695
  });
59668
59696
  var oldIndex = choices.indexOf(this.draggedElement);
@@ -59737,6 +59765,9 @@ var ranking_choices_DragDropRankingChoices = /** @class */ (function (_super) {
59737
59765
  }
59738
59766
  var node = _this.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item");
59739
59767
  node.style.cursor = "not-allowed";
59768
+ if (IsTouch) {
59769
+ _this.parentElement.updateRankingChoices(true);
59770
+ }
59740
59771
  };
59741
59772
  return _this;
59742
59773
  }
@@ -60079,7 +60110,7 @@ var question_ranking_QuestionRankingModel = /** @class */ (function (_super) {
60079
60110
  }
60080
60111
  };
60081
60112
  _this.startDrag = function (event) {
60082
- var choice = itemvalue_ItemValue.getItemByValue(_this.activeChoices, _this.draggedChoiceValue);
60113
+ var choice = itemvalue_ItemValue.getItemByValue(_this.visibleChoices, _this.draggedChoiceValue);
60083
60114
  _this.dragDropRankingChoices.startDrag(event, choice, _this, _this.draggedTargetNode);
60084
60115
  };
60085
60116
  _this.handlePointerUp = function (event, choice, node) {
@@ -62312,7 +62343,7 @@ var question_file_QuestionFileModel = /** @class */ (function (_super) {
62312
62343
  var errorLength = this.errors ? this.errors.length : 0;
62313
62344
  (files || []).forEach(function (file) {
62314
62345
  if (_this.maxSize > 0 && file.size > _this.maxSize) {
62315
- _this.errors.push(new error_ExceedSizeError(_this.maxSize, _this));
62346
+ _this.errors.push(new ExceedSizeError(_this.maxSize, _this));
62316
62347
  }
62317
62348
  });
62318
62349
  return errorLength === this.errors.length;
@@ -70048,21 +70079,21 @@ var trigger_Trigger = /** @class */ (function (_super) {
70048
70079
  Trigger.prototype.canBeExecutedOnComplete = function () {
70049
70080
  return false;
70050
70081
  };
70051
- Trigger.prototype.checkExpression = function (isOnNextPage, isOnComplete, keys, values, properties) {
70052
- if (properties === void 0) { properties = null; }
70053
- this.isExecutingOnNextPage = isOnNextPage;
70054
- if (!this.canBeExecuted(isOnNextPage))
70082
+ Trigger.prototype.checkExpression = function (options) {
70083
+ this.isExecutingOnNextPage = options.isOnNextPage;
70084
+ this.isExecutingOnNavigation = options.isOnNavigation || options.isOnNextPage;
70085
+ if (!this.canBeExecuted(options.isOnNextPage))
70055
70086
  return;
70056
- if (isOnComplete && !this.canBeExecutedOnComplete())
70087
+ if (options.isOnComplete && !this.canBeExecutedOnComplete())
70057
70088
  return;
70058
- if (!this.isCheckRequired(keys))
70089
+ if (!this.isCheckRequired(options.keys))
70059
70090
  return;
70060
70091
  if (!!this.conditionRunner) {
70061
- this.perform(values, properties);
70092
+ this.perform(options.values, options.properties || null);
70062
70093
  }
70063
70094
  else {
70064
70095
  if (this.canSuccessOnEmptyExpression()) {
70065
- this.triggerResult(true, values, properties);
70096
+ this.triggerResult(true, options.values, options.properties || null);
70066
70097
  }
70067
70098
  }
70068
70099
  };
@@ -70260,7 +70291,7 @@ var trigger_SurveyTriggerComplete = /** @class */ (function (_super) {
70260
70291
  configurable: true
70261
70292
  });
70262
70293
  SurveyTriggerComplete.prototype.isRealExecution = function () {
70263
- return !settings.triggers.executeCompleteOnValueChanged === this.isExecutingOnNextPage;
70294
+ return !settings.triggers.executeCompleteOnValueChanged === this.isExecutingOnNavigation;
70264
70295
  };
70265
70296
  SurveyTriggerComplete.prototype.onSuccess = function (values, properties) {
70266
70297
  if (!this.owner)
@@ -71871,8 +71902,8 @@ var mask_numeric_InputMaskNumeric = /** @class */ (function (_super) {
71871
71902
  InputMaskNumeric.prototype.getType = function () {
71872
71903
  return "numericmask";
71873
71904
  };
71874
- InputMaskNumeric.prototype.isPropertyEmpty = function (value) {
71875
- return value === "" || value === undefined || value === null;
71905
+ InputMaskNumeric.prototype.isValueUndefined = function (value) {
71906
+ return value === "" || _super.prototype.isValueUndefined.call(this, value);
71876
71907
  };
71877
71908
  mask_numeric_decorate([
71878
71909
  jsonobject_property()
@@ -72733,9 +72764,9 @@ Serializer.addClass("currencymask", [
72733
72764
 
72734
72765
  var Version;
72735
72766
  var ReleaseDate;
72736
- Version = "" + "1.12.23";
72767
+ Version = "" + "1.12.25";
72737
72768
  settings.version = Version;
72738
- ReleaseDate = "" + "2025-02-11";
72769
+ ReleaseDate = "" + "2025-02-25";
72739
72770
  function checkLibraryVersion(ver, libraryName) {
72740
72771
  if (Version != ver) {
72741
72772
  var str = "survey-core has version '" + Version + "' and " + libraryName
@@ -82695,6 +82726,120 @@ setupLocale({ localeCode: "fil", strings: philippinesStrings, nativeName: "filip
82695
82726
  // tabTitlePlaceholder: "New Panel" => "Bagong Panel"// deselectAllItemText: "Deselect all" => "Alisin ang pagpili ng lahat"
82696
82727
  // textNoDigitsAllow: "Numbers are not allowed." => "Bawal ang mga numero."
82697
82728
 
82729
+ // CONCATENATED MODULE: ./packages/survey-core/src/localization/slovenian.ts
82730
+
82731
+ var slovenianStrings = {
82732
+ pagePrevText: "Prejšnja",
82733
+ pageNextText: "Naslednja",
82734
+ completeText: "Zaključi",
82735
+ previewText: "Predogled",
82736
+ editText: "Uredi",
82737
+ startSurveyText: "Začni",
82738
+ otherItemText: "Drugo (opišite)",
82739
+ noneItemText: "Noben",
82740
+ refuseItemText: "Zavrni odgovor",
82741
+ dontKnowItemText: "Ne vem",
82742
+ selectAllItemText: "Izberi vse",
82743
+ deselectAllItemText: "Odstrani izbiro",
82744
+ progressText: "Stran {0} od {1}",
82745
+ indexText: "{0} od {1}",
82746
+ panelDynamicProgressText: "{0} od {1}",
82747
+ panelDynamicTabTextFormat: "Plošča {panelIndex}",
82748
+ questionsProgressText: "Odgovorjeno {0}/{1} vprašanj",
82749
+ emptySurvey: "Anketa ne vsebuje vidnih elementov.",
82750
+ completingSurvey: "Hvala, ker ste izpolnili anketo",
82751
+ completingSurveyBefore: "To anketo ste že izpolnili.",
82752
+ loadingSurvey: "Nalaganje ankete...",
82753
+ placeholder: "Izberite...",
82754
+ ratingOptionsCaption: "Izberite...",
82755
+ value: "vrednost",
82756
+ requiredError: "Odgovor je obvezen.",
82757
+ requiredErrorInPanel: "Obvezen odgovor: odgovorite na vsaj eno vprašanje.",
82758
+ requiredInAllRowsError: "Obvezen odgovor: odgovorite na vsa vprašanja v vrsticah.",
82759
+ eachRowUniqueError: "Vsaka vrstica mora imeti edinstveno vrednost.",
82760
+ numericError: "Vrednost mora biti številčna.",
82761
+ minError: "Vrednost ne sme biti manjša od {0}",
82762
+ maxError: "Vrednost ne sme biti večja od {0}",
82763
+ textNoDigitsAllow: "Številke niso dovoljene.",
82764
+ textMinLength: "Vnesite vsaj {0} znakov.",
82765
+ textMaxLength: "Vnesite največ {0} znakov.",
82766
+ textMinMaxLength: "Vnesite vsaj {0} in največ {1} znakov.",
82767
+ minRowCountError: "Izpolnite vsaj {0} vrstic.",
82768
+ minSelectError: "Izberite vsaj {0} možnosti.",
82769
+ maxSelectError: "Izberite največ {0} možnosti.",
82770
+ numericMinMax: "'{0}' mora biti vsaj {1} in največ {2}",
82771
+ numericMin: "'{0}' mora biti vsaj {1}",
82772
+ numericMax: "'{0}' mora biti največ {1}",
82773
+ invalidEmail: "Vnesite veljaven e-poštni naslov.",
82774
+ invalidExpression: "Izraz: {0} mora vrniti 'true'.",
82775
+ urlRequestError: "Zahteva je vrnila napako '{0}'. {1}",
82776
+ urlGetChoicesError: "Zahteva je vrnila prazne podatke ali lastnost 'path' ni pravilna.",
82777
+ exceedMaxSize: "Velikost datoteke ne sme presegati {0}.",
82778
+ noUploadFilesHandler: "Datotek ni mogoče naložiti. Dodajte obravnavo za dogodek 'onUploadFiles'.",
82779
+ otherRequiredError: "Obvezen odgovor: vnesite drugo vrednost.",
82780
+ uploadingFile: "Vaša datoteka se nalaga. Počakajte nekaj sekund in poskusite znova.",
82781
+ loadingFile: "Nalaganje...",
82782
+ chooseFile: "Izberite datoteko...",
82783
+ noFileChosen: "Ni izbrane datoteke",
82784
+ filePlaceholder: "Povlecite in spustite datoteko tukaj ali kliknite spodnji gumb za izbiro datoteke za nalaganje.",
82785
+ confirmDelete: "Ste prepričani, da želite izbrisati ta zapis?",
82786
+ keyDuplicationError: "Ta vrednost mora biti edinstvena.",
82787
+ addColumn: "Dodaj stolpec",
82788
+ addRow: "Dodaj vrstico",
82789
+ removeRow: "Odstrani",
82790
+ noRowsText: "Ni vrstic.",
82791
+ addPanel: "Dodaj novo",
82792
+ removePanel: "Odstrani",
82793
+ showDetails: "Prikaži podrobnosti",
82794
+ hideDetails: "Skrij podrobnosti",
82795
+ choices_Item: "postavka",
82796
+ choices_Choice: "Možnost izbire",
82797
+ matrix_column: "Stolpec",
82798
+ matrix_row: "Vrstica",
82799
+ multipletext_itemname: "besedilo",
82800
+ savingData: "Rezultati se shranjujejo na strežnik...",
82801
+ savingDataError: "Prišlo je do napake in rezultatov ni bilo mogoče shraniti.",
82802
+ savingDataSuccess: "Rezultati so bili uspešno shranjeni!",
82803
+ savingExceedSize: "Vaš odgovor presega 64 KB. Zmanjšajte velikost datotek in poskusite znova ali se obrnite na lastnika ankete.",
82804
+ saveAgainButton: "Poskusite znova",
82805
+ timerMin: "min",
82806
+ timerSec: "sek",
82807
+ timerSpentAll: "Na tej strani ste porabili {0}, skupno {1}.",
82808
+ timerSpentPage: "Na tej strani ste porabili {0}.",
82809
+ timerSpentSurvey: "Skupaj ste porabili {0}.",
82810
+ timerLimitAll: "Na tej strani ste porabili {0} od {1} in skupno {2} od {3}.",
82811
+ timerLimitPage: "Na tej strani ste porabili {0} od {1}.",
82812
+ timerLimitSurvey: "Skupaj ste porabili {0} od {1}.",
82813
+ clearCaption: "Počisti",
82814
+ signaturePlaceHolder: "Podpišite se tukaj",
82815
+ signaturePlaceHolderReadOnly: "Ni podpisa",
82816
+ chooseFileCaption: "Izberi datoteko",
82817
+ takePhotoCaption: "Slikaj",
82818
+ photoPlaceholder: "Kliknite spodnji gumb, da posnamete fotografijo s kamero.",
82819
+ fileOrPhotoPlaceholder: "Povlecite in spustite datoteko za nalaganje ali posnemite fotografijo s kamero.",
82820
+ replaceFileCaption: "Zamenjaj datoteko",
82821
+ removeFileCaption: "Odstrani to datoteko",
82822
+ booleanCheckedLabel: "Da",
82823
+ booleanUncheckedLabel: "Ne",
82824
+ confirmRemoveFile: "Ste prepričani, da želite odstraniti to datoteko: {0}?",
82825
+ confirmRemoveAllFiles: "Ste prepričani, da želite odstraniti vse datoteke?",
82826
+ questionTitlePatternText: "Naslov vprašanja",
82827
+ modalCancelButtonText: "Prekliči",
82828
+ modalApplyButtonText: "Uporabi",
82829
+ filterStringPlaceholder: "Vnesite za iskanje...",
82830
+ emptyMessage: "Ni podatkov za prikaz",
82831
+ noEntriesText: "Ni še vnosov.\nKliknite spodnji gumb za dodajanje novega vnosa.",
82832
+ noEntriesReadonlyText: "Ni vnosov",
82833
+ tabTitlePlaceholder: "Nova plošča",
82834
+ more: "Več",
82835
+ tagboxDoneButtonCaption: "V redu",
82836
+ selectToRankEmptyRankedAreaText: "Vse možnosti so izbrane za razvrščanje",
82837
+ selectToRankEmptyUnrankedAreaText: "Povlecite izbire sem, da jih razvrstite",
82838
+ ok: "V redu",
82839
+ cancel: "Prekliči",
82840
+ };
82841
+ setupLocale({ localeCode: "sl", strings: slovenianStrings, nativeName: "slovenščina", englishName: "Slovenian" });
82842
+
82698
82843
  // CONCATENATED MODULE: ./packages/survey-core/entries/chunks/localization.ts
82699
82844
 
82700
82845
 
@@ -82746,6 +82891,7 @@ setupLocale({ localeCode: "fil", strings: philippinesStrings, nativeName: "filip
82746
82891
 
82747
82892
 
82748
82893
 
82894
+
82749
82895
 
82750
82896
 
82751
82897
  // CONCATENATED MODULE: ./src/entries/chunks/localization.ts
@@ -83324,19 +83470,17 @@ var element_SurveyRowElement = /** @class */ (function (_super) {
83324
83470
  el.focusIn();
83325
83471
  }
83326
83472
  };
83327
- return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: css.questionWrapper, style: element.rootStyle, "data-key": innerElement.key, key: innerElement.key, onFocus: focusIn, ref: this.rootRef }, innerElement));
83473
+ return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: css.questionWrapper, style: element.rootStyle, "data-key": element.name + this.index, onFocus: focusIn, ref: this.rootRef }, innerElement));
83328
83474
  };
83329
83475
  SurveyRowElement.prototype.createElement = function (element, elementIndex) {
83330
- var index = elementIndex ? "-" + elementIndex : 0;
83331
83476
  if (!this.row.isNeedRender) {
83332
- return ReactElementFactory.Instance.createElement(element.skeletonComponentName, { key: element.name + index, element: element, css: this.css, });
83477
+ return ReactElementFactory.Instance.createElement(element.skeletonComponentName, { element: element, css: this.css, });
83333
83478
  }
83334
83479
  var elementType = element.getTemplate();
83335
83480
  if (!ReactElementFactory.Instance.isElementRegistered(elementType)) {
83336
83481
  elementType = "question";
83337
83482
  }
83338
83483
  return ReactElementFactory.Instance.createElement(elementType, {
83339
- key: element.name + index,
83340
83484
  element: element,
83341
83485
  creator: this.creator,
83342
83486
  survey: this.survey,
@@ -83416,9 +83560,7 @@ var row_SurveyRow = /** @class */ (function (_super) {
83416
83560
  SurveyRow.prototype.renderElementContent = function () {
83417
83561
  var _this = this;
83418
83562
  var elements = this.row.visibleElements.map(function (element, elementIndex) {
83419
- var index = elementIndex ? "-" + elementIndex : 0;
83420
- var key = element.name + index;
83421
- return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](element_SurveyRowElement, { element: element, index: elementIndex, row: _this.row, survey: _this.survey, creator: _this.creator, css: _this.css, key: key }));
83563
+ return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](element_SurveyRowElement, { element: element, index: elementIndex, row: _this.row, survey: _this.survey, creator: _this.creator, css: _this.css, key: element.id }));
83422
83564
  });
83423
83565
  return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { ref: this.rootRef, className: this.row.getRowCss() }, elements));
83424
83566
  };
@@ -84730,7 +84872,6 @@ var reactquestion_SurveyQuestion = /** @class */ (function (_super) {
84730
84872
  var el = this.rootRef.current;
84731
84873
  if (el && el.getAttribute("data-rendered") !== "r") {
84732
84874
  el.setAttribute("data-rendered", "r");
84733
- el.setAttribute("data-name", this.question.name);
84734
84875
  if (this.question.afterRender) {
84735
84876
  this.question.afterRender(el);
84736
84877
  }
@@ -84781,7 +84922,7 @@ var reactquestion_SurveyQuestion = /** @class */ (function (_super) {
84781
84922
  var rootStyle = question.getRootStyle();
84782
84923
  var questionContent = this.wrapQuestionContent(this.renderQuestionContent());
84783
84924
  return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](external_root_React_commonjs2_react_commonjs_react_amd_react_["Fragment"], null,
84784
- external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { ref: this.rootRef, id: question.id, className: question.getRootCss(), style: rootStyle, role: question.ariaRole, "aria-required": this.question.ariaRequired, "aria-invalid": this.question.ariaInvalid, "aria-labelledby": question.ariaLabelledBy, "aria-describedby": question.ariaDescribedBy, "aria-expanded": question.ariaExpanded },
84925
+ external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { ref: this.rootRef, id: question.id, className: question.getRootCss(), style: rootStyle, role: question.ariaRole, "aria-required": this.question.ariaRequired, "aria-invalid": this.question.ariaInvalid, "aria-labelledby": question.ariaLabelledBy, "aria-describedby": question.ariaDescribedBy, "aria-expanded": question.ariaExpanded, "data-name": question.name },
84785
84926
  errorsAboveQuestion,
84786
84927
  headerTop,
84787
84928
  questionContent,
@@ -90820,7 +90961,7 @@ var imagepicker_SurveyQuestionImagePickerItem = /** @class */ (function (_super)
90820
90961
  }
90821
90962
  var renderedItem = (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: itemClass },
90822
90963
  external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("label", { className: cssClasses.label },
90823
- external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("input", { className: cssClasses.itemControl, id: this.question.getItemId(item), type: this.question.inputType, name: this.question.questionName, checked: isChecked, value: item.value, disabled: !this.question.getItemEnabled(item), readOnly: this.question.isReadOnlyAttr, onChange: this.handleOnChange, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage }),
90964
+ external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("input", { className: cssClasses.itemControl, id: this.question.getItemId(item), type: this.question.inputType, name: this.question.questionName, checked: isChecked, value: item.value, disabled: !this.question.getItemEnabled(item), readOnly: this.question.isReadOnlyAttr, onChange: this.handleOnChange, "aria-required": this.question.ariaRequired, "aria-label": item.locText.renderedHtml, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage }),
90824
90965
  external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.question.cssClasses.itemDecorator },
90825
90966
  external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.question.cssClasses.imageContainer },
90826
90967
  !!this.question.cssClasses.checkedItemDecorator ?