survey-react 1.12.16 → 1.12.18

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,6 +1,6 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.16
3
- * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
2
+ * surveyjs - Survey JavaScript library v1.12.18
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
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -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 + 287 modules ***!
1706
+ !*** ./src/entries/react.ts + 288 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) */
@@ -11898,13 +11898,13 @@ var list_ListModel = /** @class */ (function (_super) {
11898
11898
  var _this = this;
11899
11899
  this.isEmpty = this.renderedActions.filter(function (action) { return _this.isItemVisible(action); }).length === 0;
11900
11900
  };
11901
- ListModel.prototype.scrollToItem = function (selector, ms) {
11901
+ ListModel.prototype.scrollToItem = function (classes, ms) {
11902
11902
  var _this = this;
11903
11903
  if (ms === void 0) { ms = 0; }
11904
11904
  setTimeout(function () {
11905
11905
  if (!_this.listContainerHtmlElement)
11906
11906
  return;
11907
- var item = _this.listContainerHtmlElement.querySelector("." + selector);
11907
+ var item = _this.listContainerHtmlElement.querySelector(classesToSelector(classes));
11908
11908
  if (item) {
11909
11909
  setTimeout(function () {
11910
11910
  item.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "start" });
@@ -11972,7 +11972,7 @@ var list_ListModel = /** @class */ (function (_super) {
11972
11972
  });
11973
11973
  Object.defineProperty(ListModel.prototype, "scrollableContainer", {
11974
11974
  get: function () {
11975
- return this.listContainerHtmlElement.querySelector("." + this.cssClasses.itemsContainer);
11975
+ return this.listContainerHtmlElement.querySelector(classesToSelector(this.cssClasses.itemsContainer));
11976
11976
  },
11977
11977
  enumerable: false,
11978
11978
  configurable: true
@@ -14978,11 +14978,11 @@ var survey_element_SurveyElement = /** @class */ (function (_super) {
14978
14978
  var columns = this.parent.getColumsForElement(this);
14979
14979
  _width = columns.reduce(function (sum, col) { return col.effectiveWidth + sum; }, 0);
14980
14980
  if (!!_width && _width !== 100) {
14981
- style["flexGrow"] = 0;
14981
+ style["flexGrow"] = 1;
14982
14982
  style["flexShrink"] = 0;
14983
14983
  style["flexBasis"] = _width + "%";
14984
14984
  style["minWidth"] = undefined;
14985
- style["maxWidth"] = undefined;
14985
+ style["maxWidth"] = this.maxWidth;
14986
14986
  }
14987
14987
  }
14988
14988
  if (Object.keys(style).length == 0) {
@@ -16705,8 +16705,8 @@ function cleanHtmlElementAfterAnimation(el) {
16705
16705
  delete el["__sv_created_properties"];
16706
16706
  }
16707
16707
  }
16708
- function roundTo2Decimals(number) {
16709
- return Math.round(number * 100) / 100;
16708
+ function floorTo2Decimals(number) {
16709
+ return Math.floor(number * 100) / 100;
16710
16710
  }
16711
16711
 
16712
16712
 
@@ -16749,6 +16749,7 @@ var columnWidthsByType = {
16749
16749
  * ```
16750
16750
  */
16751
16751
  var settings = {
16752
+ version: "",
16752
16753
  /**
16753
16754
  * An object that configures survey appearance when the survey is being designed in Survey Creator.
16754
16755
  *
@@ -21233,7 +21234,7 @@ var question_Question = /** @class */ (function (_super) {
21233
21234
  /**
21234
21235
  * A correct answer to this question. Specify this property if you want to [create a quiz](https://surveyjs.io/form-library/documentation/design-survey-create-a-quiz).
21235
21236
  * @see SurveyModel.getCorrectAnswerCount
21236
- * @see SurveyModel.getInCorrectAnswerCount
21237
+ * @see SurveyModel.getIncorrectAnswerCount
21237
21238
  */
21238
21239
  get: function () {
21239
21240
  return this.getPropertyValue("correctAnswer");
@@ -21282,7 +21283,14 @@ var question_Question = /** @class */ (function (_super) {
21282
21283
  Question.prototype.checkIfAnswerCorrect = function () {
21283
21284
  var isEqual = helpers_Helpers.isTwoValueEquals(this.value, this.correctAnswer, this.getAnswerCorrectIgnoreOrder(), settings.comparator.caseSensitive, true);
21284
21285
  var correct = isEqual ? 1 : 0;
21285
- var options = { result: isEqual, correctAnswer: correct, correctAnswers: correct, incorrectAnswers: this.quizQuestionCount - correct };
21286
+ var incorrect = this.quizQuestionCount - correct;
21287
+ var options = {
21288
+ result: isEqual,
21289
+ correctAnswers: correct,
21290
+ correctAnswerCount: correct,
21291
+ incorrectAnswers: incorrect,
21292
+ incorrectAnswerCount: incorrect,
21293
+ };
21286
21294
  if (!!this.survey) {
21287
21295
  this.survey.onCorrectQuestionAnswer(this, options);
21288
21296
  }
@@ -27656,6 +27664,9 @@ var question_matrixdropdownrendered_spreadArray = (undefined && undefined.__spre
27656
27664
 
27657
27665
 
27658
27666
 
27667
+ function getId(id, isError, isDetail) {
27668
+ return id + (isError ? "-error" : "") + (isDetail ? "-detail" : "");
27669
+ }
27659
27670
  var question_matrixdropdownrendered_QuestionMatrixDropdownRenderedCell = /** @class */ (function () {
27660
27671
  function QuestionMatrixDropdownRenderedCell() {
27661
27672
  this.minWidth = "";
@@ -27698,7 +27709,11 @@ var question_matrixdropdownrendered_QuestionMatrixDropdownRenderedCell = /** @cl
27698
27709
  });
27699
27710
  Object.defineProperty(QuestionMatrixDropdownRenderedCell.prototype, "id", {
27700
27711
  get: function () {
27701
- return this.idValue;
27712
+ var id = this.question ? this.question.id : this.idValue.toString();
27713
+ if (this.isChoice) {
27714
+ id += "-" + (Number.isInteger(this.choiceIndex) ? "index" + this.choiceIndex.toString() : this.item.id);
27715
+ }
27716
+ return getId(id, this.isErrorsCell, this.isDetailRowCell);
27702
27717
  },
27703
27718
  enumerable: false,
27704
27719
  configurable: true
@@ -27880,7 +27895,8 @@ var question_matrixdropdownrendered_QuestionMatrixDropdownRenderedRow = /** @cla
27880
27895
  }
27881
27896
  Object.defineProperty(QuestionMatrixDropdownRenderedRow.prototype, "id", {
27882
27897
  get: function () {
27883
- return this.idValue;
27898
+ var _a;
27899
+ return getId(((_a = this.row) === null || _a === void 0 ? void 0 : _a.id) || this.idValue.toString(), this.isErrorsRow, this.isDetailRow);
27884
27900
  },
27885
27901
  enumerable: false,
27886
27902
  configurable: true
@@ -34910,6 +34926,7 @@ var defaultV2Css = {
34910
34926
  itemBody: "sv-list__item-body sd-list__item-body",
34911
34927
  itemSelected: "sv-list__item--selected sd-list__item--selected",
34912
34928
  itemFocused: "sv-list__item--focused sd-list__item--focused",
34929
+ itemHovered: "sv-list__item--hovered sd-list__item--hovered",
34913
34930
  },
34914
34931
  actionBar: {
34915
34932
  root: "sd-action-bar",
@@ -36563,7 +36580,7 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
36563
36580
  _this.isRandomizing = false;
36564
36581
  _this.onColumnPropertyValueChangedCallback = function (name, oldValue, newValue, sender, arrayChanges) {
36565
36582
  if (_this._columnsReady) {
36566
- _this.updateColumnWidth(_this.layoutColumns);
36583
+ _this.updateColumnWidth(_this.gridLayoutColumns);
36567
36584
  _this.updateRootStyle();
36568
36585
  }
36569
36586
  };
@@ -36607,7 +36624,8 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
36607
36624
  isAnimationEnabled: function () { return _this.animationAllowed; },
36608
36625
  getAnimatedElement: function (row) { return row.getRootElement(); },
36609
36626
  getLeaveOptions: function (row, info) {
36610
- return { cssClass: _this.cssClasses.rowLeave,
36627
+ return {
36628
+ cssClass: _this.cssClasses.rowLeave,
36611
36629
  onBeforeRunAnimation: prepareElementForVerticalAnimation,
36612
36630
  onAfterRunAnimation: cleanHtmlElementAfterAnimation,
36613
36631
  };
@@ -36660,7 +36678,7 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
36660
36678
  this.updateDescriptionVisibility(this.description);
36661
36679
  this.markQuestionListDirty();
36662
36680
  this.onRowsChanged();
36663
- this.layoutColumns.forEach(function (col) {
36681
+ this.gridLayoutColumns.forEach(function (col) {
36664
36682
  col.onPropertyValueChangedCallback = _this.onColumnPropertyValueChangedCallback;
36665
36683
  });
36666
36684
  };
@@ -37488,7 +37506,7 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
37488
37506
  }
37489
37507
  });
37490
37508
  if (!!remainingColCount) {
37491
- var oneColumnWidth = roundTo2Decimals((100 - remainingSpace) / remainingColCount);
37509
+ var oneColumnWidth = floorTo2Decimals((100 - remainingSpace) / remainingColCount);
37492
37510
  for (var index = 0; index < columns.length; index++) {
37493
37511
  if (!columns[index].width) {
37494
37512
  columns[index].setPropertyValue("effectiveWidth", oneColumnWidth);
@@ -37577,12 +37595,12 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
37577
37595
  });
37578
37596
  PanelModelBase.prototype.generateColumns = function () {
37579
37597
  var maxRowColSpan = this.calcMaxRowColSpan();
37580
- var columns = [].concat(this.layoutColumns);
37581
- if (maxRowColSpan <= this.layoutColumns.length) {
37582
- columns = this.layoutColumns.slice(0, maxRowColSpan);
37598
+ var columns = [].concat(this.gridLayoutColumns);
37599
+ if (maxRowColSpan <= this.gridLayoutColumns.length) {
37600
+ columns = this.gridLayoutColumns.slice(0, maxRowColSpan);
37583
37601
  }
37584
37602
  else {
37585
- for (var index = this.layoutColumns.length; index < maxRowColSpan; index++) {
37603
+ for (var index = this.gridLayoutColumns.length; index < maxRowColSpan; index++) {
37586
37604
  var newCol = new panel_layout_column_PanelLayoutColumnModel();
37587
37605
  newCol.onPropertyValueChangedCallback = this.onColumnPropertyValueChangedCallback;
37588
37606
  columns.push(newCol);
@@ -37596,7 +37614,13 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
37596
37614
  finally {
37597
37615
  this._columnsReady = true;
37598
37616
  }
37599
- this.layoutColumns = columns;
37617
+ this.gridLayoutColumns = columns;
37618
+ };
37619
+ PanelModelBase.prototype.updateGridColumns = function () {
37620
+ this.updateColumns();
37621
+ this.elements.forEach(function (el) {
37622
+ el.isPanel && el.updateGridColumns();
37623
+ });
37600
37624
  };
37601
37625
  PanelModelBase.prototype.getColumsForElement = function (el) {
37602
37626
  var row = this.findRowByElement(el);
@@ -38452,13 +38476,13 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
38452
38476
  };
38453
38477
  PanelModelBase.prototype.getSerializableColumnsValue = function () {
38454
38478
  var tailIndex = -1;
38455
- for (var index = this.layoutColumns.length - 1; index >= 0; index--) {
38456
- if (!this.layoutColumns[index].isEmpty()) {
38479
+ for (var index = this.gridLayoutColumns.length - 1; index >= 0; index--) {
38480
+ if (!this.gridLayoutColumns[index].isEmpty()) {
38457
38481
  tailIndex = index;
38458
38482
  break;
38459
38483
  }
38460
38484
  }
38461
- return this.layoutColumns.slice(0, tailIndex + 1);
38485
+ return this.gridLayoutColumns.slice(0, tailIndex + 1);
38462
38486
  };
38463
38487
  PanelModelBase.prototype.afterRender = function (el) {
38464
38488
  this.afterRenderCore(el);
@@ -38482,7 +38506,7 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
38482
38506
  PanelModelBase.panelCounter = 100;
38483
38507
  panel_decorate([
38484
38508
  propertyArray()
38485
- ], PanelModelBase.prototype, "layoutColumns", void 0);
38509
+ ], PanelModelBase.prototype, "gridLayoutColumns", void 0);
38486
38510
  panel_decorate([
38487
38511
  jsonobject_property({ defaultValue: true })
38488
38512
  ], PanelModelBase.prototype, "showTitle", void 0);
@@ -38655,13 +38679,18 @@ var panel_PanelModel = /** @class */ (function (_super) {
38655
38679
  * @see visibleIf
38656
38680
  */
38657
38681
  get: function () {
38658
- return this.getPropertyValue("no", "");
38682
+ var _this = this;
38683
+ return this.getPropertyValue("no", undefined, function () { return _this.calcNo(); });
38659
38684
  },
38660
38685
  enumerable: false,
38661
38686
  configurable: true
38662
38687
  });
38663
- PanelModel.prototype.setNo = function (visibleIndex) {
38664
- this.setPropertyValue("no", helpers_Helpers.getNumberByIndex(this.visibleIndex, this.getStartIndex()));
38688
+ PanelModel.prototype.calcNo = function () {
38689
+ var no = helpers_Helpers.getNumberByIndex(this.visibleIndex, this.getStartIndex());
38690
+ if (this.survey) {
38691
+ no = this.survey.getUpdatedPanelNo(this, no);
38692
+ }
38693
+ return no || "";
38665
38694
  };
38666
38695
  PanelModel.prototype.notifyStateChanged = function (prevState) {
38667
38696
  if (!this.isLoadingFromJson) {
@@ -38688,7 +38717,7 @@ var panel_PanelModel = /** @class */ (function (_super) {
38688
38717
  visibleIndex = index;
38689
38718
  }
38690
38719
  this.setPropertyValue("visibleIndex", visibleIndex);
38691
- this.setNo(visibleIndex);
38720
+ this.resetPropertyValue("no");
38692
38721
  return visibleIndex < 0 ? 0 : 1;
38693
38722
  };
38694
38723
  PanelModel.prototype.getPanelStartIndex = function (index) {
@@ -38976,7 +39005,7 @@ Serializer.addClass("panelbase", [
38976
39005
  choices: ["default", "top", "bottom", "left", "hidden"],
38977
39006
  },
38978
39007
  {
38979
- name: "layoutColumns:panellayoutcolumns",
39008
+ name: "gridLayoutColumns:panellayoutcolumns",
38980
39009
  className: "panellayoutcolumn", isArray: true,
38981
39010
  onSerializeValue: function (obj) { return obj.getSerializableColumnsValue(); },
38982
39011
  visibleIf: function (obj) { return !!obj && !!obj.survey && obj.survey.gridLayoutEnabled; }
@@ -40216,6 +40245,7 @@ var survey_decorate = (undefined && undefined.__decorate) || function (decorator
40216
40245
 
40217
40246
 
40218
40247
 
40248
+
40219
40249
  /**
40220
40250
  * The `SurveyModel` object contains properties and methods that allow you to control the survey and access its elements.
40221
40251
  *
@@ -40507,9 +40537,16 @@ var survey_SurveyModel = /** @class */ (function (_super) {
40507
40537
  */
40508
40538
  _this.onGetQuestionNumber = _this.addEvent();
40509
40539
  /**
40510
- * This event is obsolete. Use the [`onGetQuestionNumber`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetQuestionNumber) event instead.
40540
+ * Obsolete. Use the [`onGetQuestionNumber`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetQuestionNumber) event instead.
40541
+ * @deprecated
40511
40542
  */
40512
40543
  _this.onGetQuestionNo = _this.onGetQuestionNumber;
40544
+ /**
40545
+ * An event that is raised before the survey calculates a panel number. Handle this event to modify panel numbers.
40546
+ *
40547
+ * This event is raised only for the panels with a [specified title](https://surveyjs.io/form-library/documentation/api-reference/panel-model#title) and [visible number](https://surveyjs.io/form-library/documentation/api-reference/panel-model#showNumber).
40548
+ */
40549
+ _this.onGetPanelNumber = _this.addEvent();
40513
40550
  /**
40514
40551
  * An event that is raised before the survey calculates a page number. Handle this event to modify page numbers.
40515
40552
  *
@@ -40525,7 +40562,12 @@ var survey_SurveyModel = /** @class */ (function (_super) {
40525
40562
  * @see showProgressBar
40526
40563
  * @see progressBarType
40527
40564
  */
40528
- _this.onProgressText = _this.addEvent();
40565
+ _this.onGetProgressText = _this.addEvent();
40566
+ /**
40567
+ * Obsolete. Use the [`onGetProgressText`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetProgressText) event instead.
40568
+ * @deprecated
40569
+ */
40570
+ _this.onProgressText = _this.onGetProgressText;
40529
40571
  /**
40530
40572
  * An event that is raised to convert Markdown content to HTML.
40531
40573
  *
@@ -40727,7 +40769,8 @@ var survey_SurveyModel = /** @class */ (function (_super) {
40727
40769
  */
40728
40770
  _this.onMatrixRowAdding = _this.addEvent();
40729
40771
  /**
40730
- * This event is obsolete. Use the [`onMatrixRowAdding`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixRowAdding) event instead.
40772
+ * Obsolete. Use the [`onMatrixRowAdding`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixRowAdding) event instead.
40773
+ * @deprecated
40731
40774
  */
40732
40775
  _this.onMatrixBeforeRowAdded = _this.onMatrixRowAdding;
40733
40776
  /**
@@ -40747,7 +40790,8 @@ var survey_SurveyModel = /** @class */ (function (_super) {
40747
40790
  */
40748
40791
  _this.onMatrixRenderRemoveButton = _this.addEvent();
40749
40792
  /**
40750
- * This event is obsolete. Use the [`onMatrixRenderRemoveButton`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixRenderRemoveButton) event instead.
40793
+ * Obsolete. Use the [`onMatrixRenderRemoveButton`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixRenderRemoveButton) event instead.
40794
+ * @deprecated
40751
40795
  */
40752
40796
  _this.onMatrixAllowRemoveRow = _this.onMatrixRenderRemoveButton;
40753
40797
  /**
@@ -40770,7 +40814,8 @@ var survey_SurveyModel = /** @class */ (function (_super) {
40770
40814
  */
40771
40815
  _this.onAfterRenderMatrixCell = _this.addEvent();
40772
40816
  /**
40773
- * This event is obsolete. Use the [`onAfterRenderMatrixCell`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onAfterRenderMatrixCell) event instead.
40817
+ * Obsolete. Use the [`onAfterRenderMatrixCell`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onAfterRenderMatrixCell) event instead.
40818
+ * @deprecated
40774
40819
  */
40775
40820
  _this.onMatrixAfterCellRender = _this.onAfterRenderMatrixCell;
40776
40821
  /**
@@ -40844,7 +40889,12 @@ var survey_SurveyModel = /** @class */ (function (_super) {
40844
40889
  /**
40845
40890
  * An event that is raised to define whether a question answer is correct. Applies only to [quiz surveys](https://surveyjs.io/form-library/documentation/design-survey/create-a-quiz).
40846
40891
  */
40847
- _this.onIsAnswerCorrect = _this.addEvent();
40892
+ _this.onCheckAnswerCorrect = _this.addEvent();
40893
+ /**
40894
+ * Obsolete. Use the [`onCheckAnswerCorrect`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onCheckAnswerCorrect) event instead.
40895
+ * @deprecated
40896
+ */
40897
+ _this.onIsAnswerCorrect = _this.onCheckAnswerCorrect;
40848
40898
  /**
40849
40899
  * An event that is raised when users drag and drop survey elements while designing the survey in [Survey Creator](https://surveyjs.io/survey-creator/documentation/overview). Use this event to control drag and drop operations.
40850
40900
  * @see isDesignMode
@@ -40853,7 +40903,12 @@ var survey_SurveyModel = /** @class */ (function (_super) {
40853
40903
  /**
40854
40904
  * An event this is raised before a survey element (usually page) is scrolled to the top. Use this event to cancel the scroll operation.
40855
40905
  */
40856
- _this.onScrollingElementToTop = _this.addEvent();
40906
+ _this.onScrollToTop = _this.addEvent();
40907
+ /**
40908
+ * Obsolete. Use the [`onScrollToTop`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onScrollToTop) event instead.
40909
+ * @deprecated
40910
+ */
40911
+ _this.onScrollingElementToTop = _this.onScrollToTop;
40857
40912
  _this.onLocaleChangedEvent = _this.addEvent();
40858
40913
  /**
40859
40914
  * An event that allows you to add, delete, or modify actions in a question title.
@@ -40892,9 +40947,6 @@ var survey_SurveyModel = /** @class */ (function (_super) {
40892
40947
  * @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
40893
40948
  */
40894
40949
  _this.onGetMatrixRowActions = _this.addEvent();
40895
- /**
40896
- * An event that is raised after a survey element is [expanded or collapsed](https://surveyjs.io/form-library/documentation/api-reference/question#state).
40897
- */
40898
40950
  _this.onElementContentVisibilityChanged = _this.addEvent();
40899
40951
  /**
40900
40952
  * An event that is raised before an [Expression](https://surveyjs.io/form-library/documentation/api-reference/expression-model) question displays a value. Use this event to override the display value.
@@ -41068,7 +41120,10 @@ var survey_SurveyModel = /** @class */ (function (_super) {
41068
41120
  _this.onGetQuestionNumber.onCallbacksChanged = function () {
41069
41121
  _this.resetVisibleIndexes();
41070
41122
  };
41071
- _this.onProgressText.onCallbacksChanged = function () {
41123
+ _this.onGetPanelNumber.onCallbacksChanged = function () {
41124
+ _this.resetVisibleIndexes();
41125
+ };
41126
+ _this.onGetProgressText.onCallbacksChanged = function () {
41072
41127
  _this.updateProgressText();
41073
41128
  };
41074
41129
  _this.onTextMarkdown.onCallbacksChanged = function () {
@@ -41211,6 +41266,16 @@ var survey_SurveyModel = /** @class */ (function (_super) {
41211
41266
  enumerable: false,
41212
41267
  configurable: true
41213
41268
  });
41269
+ Object.defineProperty(SurveyModel.prototype, "sjsVersion", {
41270
+ get: function () {
41271
+ return this.getPropertyValue("sjsVersion");
41272
+ },
41273
+ set: function (val) {
41274
+ this.setPropertyValue("sjsVersion", val);
41275
+ },
41276
+ enumerable: false,
41277
+ configurable: true
41278
+ });
41214
41279
  SurveyModel.prototype.processClosedPopup = function (question, popupModel) {
41215
41280
  throw new Error("Method not implemented.");
41216
41281
  };
@@ -43138,6 +43203,13 @@ var survey_SurveyModel = /** @class */ (function (_super) {
43138
43203
  this.onGetQuestionNumber.fire(this, options);
43139
43204
  return options.no === no ? options.number : options.no;
43140
43205
  };
43206
+ SurveyModel.prototype.getUpdatedPanelNo = function (panel, no) {
43207
+ if (this.onGetPanelNumber.isEmpty)
43208
+ return no;
43209
+ var options = { panel: panel, number: no };
43210
+ this.onGetPanelNumber.fire(this, options);
43211
+ return options.number;
43212
+ };
43141
43213
  SurveyModel.prototype.getUpdatedPageNo = function (page, no) {
43142
43214
  if (this.onGetPageNumber.isEmpty)
43143
43215
  return no;
@@ -43928,7 +44000,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
43928
44000
  this.currentPageNo = index;
43929
44001
  return true;
43930
44002
  }
43931
- for (var i = this.currentPageNo; i < index; i++) {
44003
+ if (!this.validateCurrentPage())
44004
+ return false;
44005
+ for (var i = this.currentPageNo + 1; i < index; i++) {
43932
44006
  var page_1 = this.visiblePages[i];
43933
44007
  if (!page_1.validate(true, true))
43934
44008
  return false;
@@ -44360,7 +44434,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
44360
44434
  get: function () {
44361
44435
  if (this.isDesignMode)
44362
44436
  return "none";
44363
- var page = this.currentPage;
44437
+ var page = this.activePage;
44364
44438
  if (!page)
44365
44439
  return "none";
44366
44440
  if (page.navigationButtonsVisibility === "show") {
@@ -44525,7 +44599,8 @@ var survey_SurveyModel = /** @class */ (function (_super) {
44525
44599
  };
44526
44600
  Object.defineProperty(SurveyModel.prototype, "ignoreValidation", {
44527
44601
  /**
44528
- * This property is obsolete. Use the [`validationEnabled`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#validationEnabled) property instead.
44602
+ * Obsolete. Use the [`validationEnabled`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#validationEnabled) property instead.
44603
+ * @deprecated
44529
44604
  */
44530
44605
  get: function () { return !this.validationEnabled; },
44531
44606
  set: function (val) { this.validationEnabled = !val; },
@@ -44823,7 +44898,13 @@ var survey_SurveyModel = /** @class */ (function (_super) {
44823
44898
  }
44824
44899
  if (!page)
44825
44900
  return true;
44826
- var res = !page.validate(true, isFocuseOnFirstError);
44901
+ var res = false;
44902
+ if (this.currentSingleQuestion) {
44903
+ res = !this.currentSingleQuestion.validate(true);
44904
+ }
44905
+ else {
44906
+ res = !page.validate(true, isFocuseOnFirstError);
44907
+ }
44827
44908
  this.fireValidatedErrorsOnPage(page);
44828
44909
  return res;
44829
44910
  };
@@ -44880,7 +44961,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
44880
44961
  * @see isCurrentPageValid
44881
44962
  * @see nextPage
44882
44963
  */
44883
- SurveyModel.prototype.completeLastPage = function () {
44964
+ SurveyModel.prototype.tryComplete = function () {
44884
44965
  if (this.isValidateOnComplete) {
44885
44966
  this.cancelPreview();
44886
44967
  }
@@ -44890,6 +44971,13 @@ var survey_SurveyModel = /** @class */ (function (_super) {
44890
44971
  }
44891
44972
  return res;
44892
44973
  };
44974
+ /**
44975
+ * Obsolete. Use the [`tryComplete`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#tryComplete) method instead.
44976
+ * @deprecated
44977
+ */
44978
+ SurveyModel.prototype.completeLastPage = function () {
44979
+ return this.tryComplete();
44980
+ };
44893
44981
  SurveyModel.prototype.navigationMouseDown = function () {
44894
44982
  this.isNavigationButtonPressed = true;
44895
44983
  return true;
@@ -45156,7 +45244,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
45156
45244
  configurable: true
45157
45245
  });
45158
45246
  SurveyModel.prototype.onQuestionsOnPageModeChanged = function (oldValue) {
45159
- if (this.isShowingPreview)
45247
+ if (this.isShowingPreview || this.isDesignMode)
45160
45248
  return;
45161
45249
  this.currentSingleQuestion = undefined;
45162
45250
  if (oldValue === "singlePage") {
@@ -45661,7 +45749,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
45661
45749
  };
45662
45750
  Object.defineProperty(SurveyModel.prototype, "progressText", {
45663
45751
  /**
45664
- * Returns text displayed by the progress bar (for instance, "Page 2 of 3" or "Answered 3/8 questions"). Handle the [`onProgressText`](#onProgressText) event to change this text.
45752
+ * Returns text displayed by the progress bar (for instance, "Page 2 of 3" or "Answered 3/8 questions"). Handle the [`onGetProgressText`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetProgressText) event to change this text.
45665
45753
  * @see progressValue
45666
45754
  * @see showProgressBar
45667
45755
  * @see progressBarType
@@ -45683,7 +45771,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
45683
45771
  return;
45684
45772
  if (onValueChanged &&
45685
45773
  this.progressBarType == "pages" &&
45686
- this.onProgressText.isEmpty)
45774
+ this.onGetProgressText.isEmpty)
45687
45775
  return;
45688
45776
  this.isCalculatingProgressText = true;
45689
45777
  this.setPropertyValue("progressText", this.getProgressText());
@@ -45704,7 +45792,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
45704
45792
  if (type === "questions" ||
45705
45793
  type === "requiredquestions" ||
45706
45794
  type === "correctquestions" ||
45707
- !this.onProgressText.isEmpty) {
45795
+ !this.onGetProgressText.isEmpty) {
45708
45796
  var info = this.getProgressInfo();
45709
45797
  options.questionCount = info.questionCount;
45710
45798
  options.answeredQuestionCount = info.answeredQuestionCount;
@@ -45713,7 +45801,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
45713
45801
  info.requiredAnsweredQuestionCount;
45714
45802
  }
45715
45803
  options.text = this.getProgressTextCore(options);
45716
- this.onProgressText.fire(this, options);
45804
+ this.onGetProgressText.fire(this, options);
45717
45805
  return options.text;
45718
45806
  };
45719
45807
  SurveyModel.prototype.getProgressTextCore = function (info) {
@@ -46098,29 +46186,39 @@ var survey_SurveyModel = /** @class */ (function (_super) {
46098
46186
  return this.getUpdatedPanelTitleActions(element, titleActions);
46099
46187
  return this.getUpdatedQuestionTitleActions(element, titleActions);
46100
46188
  };
46189
+ SurveyModel.prototype.getTitleActionsResult = function (titleActions, options) {
46190
+ if (titleActions != options.actions)
46191
+ return options.actions;
46192
+ if (titleActions != options.titleActions)
46193
+ return options.titleActions;
46194
+ return titleActions;
46195
+ };
46101
46196
  SurveyModel.prototype.getUpdatedQuestionTitleActions = function (question, titleActions) {
46102
46197
  var options = {
46103
46198
  question: question,
46199
+ actions: titleActions,
46104
46200
  titleActions: titleActions,
46105
46201
  };
46106
46202
  this.onGetQuestionTitleActions.fire(this, options);
46107
- return options.titleActions;
46203
+ return this.getTitleActionsResult(titleActions, options);
46108
46204
  };
46109
46205
  SurveyModel.prototype.getUpdatedPanelTitleActions = function (panel, titleActions) {
46110
46206
  var options = {
46111
46207
  panel: panel,
46208
+ actions: titleActions,
46112
46209
  titleActions: titleActions,
46113
46210
  };
46114
46211
  this.onGetPanelTitleActions.fire(this, options);
46115
- return options.titleActions;
46212
+ return this.getTitleActionsResult(titleActions, options);
46116
46213
  };
46117
46214
  SurveyModel.prototype.getUpdatedPageTitleActions = function (page, titleActions) {
46118
46215
  var options = {
46119
46216
  page: page,
46217
+ actions: titleActions,
46120
46218
  titleActions: titleActions,
46121
46219
  };
46122
46220
  this.onGetPageTitleActions.fire(this, options);
46123
- return options.titleActions;
46221
+ return this.getTitleActionsResult(titleActions, options);
46124
46222
  };
46125
46223
  SurveyModel.prototype.getUpdatedMatrixRowActions = function (question, row, actions) {
46126
46224
  var options = {
@@ -46139,9 +46237,10 @@ var survey_SurveyModel = /** @class */ (function (_super) {
46139
46237
  page: page,
46140
46238
  elementId: id,
46141
46239
  cancel: false,
46240
+ allow: true,
46142
46241
  };
46143
- this.onScrollingElementToTop.fire(this, options);
46144
- if (!options.cancel) {
46242
+ this.onScrollToTop.fire(this, options);
46243
+ if (!options.cancel && options.allow) {
46145
46244
  var elementPage_1 = this.getPageByElement(element);
46146
46245
  if (this.isLazyRendering && !!elementPage_1) {
46147
46246
  var elementsToRenderBefore = 1;
@@ -46428,13 +46527,6 @@ var survey_SurveyModel = /** @class */ (function (_super) {
46428
46527
  }
46429
46528
  return null;
46430
46529
  };
46431
- /**
46432
- * Returns an array of questions with specified [names](https://surveyjs.io/form-library/documentation/api-reference/question#name).
46433
- * @param names An array of question names.
46434
- * @param caseInsensitive *(Optional)* A Boolean value that specifies case sensitivity when searching for the questions. Default value: `false` (uppercase and lowercase letters are treated as distinct).
46435
- * @returns An array of questions with specified names
46436
- * @see getAllQuestions
46437
- */
46438
46530
  SurveyModel.prototype.getQuestionsByNames = function (names, caseInsensitive) {
46439
46531
  if (caseInsensitive === void 0) { caseInsensitive = false; }
46440
46532
  var result = [];
@@ -46479,10 +46571,6 @@ var survey_SurveyModel = /** @class */ (function (_super) {
46479
46571
  }
46480
46572
  return null;
46481
46573
  };
46482
- /**
46483
- * Returns an array of pages with specified names.
46484
- * @param names An array of page names.
46485
- */
46486
46574
  SurveyModel.prototype.getPagesByNames = function (names) {
46487
46575
  var result = [];
46488
46576
  if (!names)
@@ -47070,6 +47158,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
47070
47158
  return;
47071
47159
  this.questionHashesClear();
47072
47160
  this.jsonErrors = null;
47161
+ this.sjsVersion = undefined;
47073
47162
  var jsonConverter = new jsonobject_JsonObject();
47074
47163
  jsonConverter.toObject(json, this, options);
47075
47164
  if (jsonConverter.errors.length > 0) {
@@ -47077,6 +47166,13 @@ var survey_SurveyModel = /** @class */ (function (_super) {
47077
47166
  }
47078
47167
  this.onStateAndCurrentPageChanged();
47079
47168
  this.updateState();
47169
+ if (!!this.sjsVersion && !!settings.version) {
47170
+ if (helpers_Helpers.compareVerions(this.sjsVersion, settings.version) > 0) {
47171
+ ConsoleWarnings.warn("The version of the survey JSON schema (v"
47172
+ + this.sjsVersion + ") is newer than your current Form Library version ("
47173
+ + settings.version + "). Please update the Form Library to make sure that all survey features work as expected.");
47174
+ }
47175
+ }
47080
47176
  };
47081
47177
  SurveyModel.prototype.startLoadingFromJson = function (json) {
47082
47178
  _super.prototype.startLoadingFromJson.call(this, json);
@@ -47176,7 +47272,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
47176
47272
  mouseDown: function () { return _this.navigationMouseDown(); },
47177
47273
  },
47178
47274
  locTitle: this.locCompleteText,
47179
- action: function () { return _this.taskManager.waitAndExecute(function () { return _this.completeLastPage(); }); },
47275
+ action: function () { return _this.taskManager.waitAndExecute(function () { return _this.tryComplete(); }); },
47180
47276
  component: defaultComponent
47181
47277
  });
47182
47278
  this.updateNavigationItemCssCallback = function () {
@@ -47547,7 +47643,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
47547
47643
  _this.showPreview();
47548
47644
  }
47549
47645
  else {
47550
- _this.completeLastPage();
47646
+ _this.tryComplete();
47551
47647
  }
47552
47648
  }
47553
47649
  };
@@ -47865,7 +47961,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
47865
47961
  * For more information about quizzes, refer to the following tutorial: [Create a Quiz](https://surveyjs.io/form-library/documentation/design-survey/create-a-quiz).
47866
47962
  * @returns The number of correct answers in a quiz.
47867
47963
  * @see getQuizQuestionCount
47868
- * @see getInCorrectAnswerCount
47964
+ * @see getIncorrectAnswerCount
47869
47965
  */
47870
47966
  SurveyModel.prototype.getCorrectAnswerCount = function () {
47871
47967
  return this.getCorrectedAnswerCountCore(true);
@@ -47888,7 +47984,10 @@ var survey_SurveyModel = /** @class */ (function (_super) {
47888
47984
  return res;
47889
47985
  };
47890
47986
  SurveyModel.prototype.getInCorrectedAnswerCount = function () {
47891
- return this.getInCorrectAnswerCount();
47987
+ return this.getIncorrectAnswerCount();
47988
+ };
47989
+ SurveyModel.prototype.getInCorrectAnswerCount = function () {
47990
+ return this.getIncorrectAnswerCount();
47892
47991
  };
47893
47992
  /**
47894
47993
  * Returns the number of incorrect answers in a quiz.
@@ -47897,7 +47996,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
47897
47996
  * @returns The number of incorrect answers in a quiz.
47898
47997
  * @see getCorrectAnswerCount
47899
47998
  */
47900
- SurveyModel.prototype.getInCorrectAnswerCount = function () {
47999
+ SurveyModel.prototype.getIncorrectAnswerCount = function () {
47901
48000
  return this.getCorrectedAnswerCountCore(false);
47902
48001
  };
47903
48002
  SurveyModel.prototype.onCorrectQuestionAnswer = function (question, options) {
@@ -48044,6 +48143,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
48044
48143
  enumerable: false,
48045
48144
  configurable: true
48046
48145
  });
48146
+ SurveyModel.prototype.updateGridColumns = function () {
48147
+ this.pages.forEach(function (page) { return page.updateGridColumns(); });
48148
+ };
48047
48149
  Object.defineProperty(SurveyModel.prototype, "widthMode", {
48048
48150
  /**
48049
48151
  * Specifies how to calculate the survey width.
@@ -48389,13 +48491,13 @@ var survey_SurveyModel = /** @class */ (function (_super) {
48389
48491
  this.onTimerTick.fire(this, {});
48390
48492
  if (this.timeLimit > 0 && this.timeLimit <= this.timeSpent) {
48391
48493
  this.timeSpent = this.timeLimit;
48392
- this.completeLastPage();
48494
+ this.tryComplete();
48393
48495
  }
48394
48496
  if (page) {
48395
48497
  var pageLimit = page.getMaxTimeToFinish();
48396
48498
  if (pageLimit > 0 && pageLimit == page.timeSpent) {
48397
48499
  if (this.isLastPage) {
48398
- this.completeLastPage();
48500
+ this.tryComplete();
48399
48501
  }
48400
48502
  else {
48401
48503
  this.nextPage();
@@ -48517,6 +48619,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
48517
48619
  var isNeedWaitForPageRendered = this.activePage !== question.page && !question.page.isStartPage;
48518
48620
  if (isNeedWaitForPageRendered) {
48519
48621
  this.currentPage = question.page;
48622
+ if (this.isSingleVisibleQuestion && !this.isDesignMode) {
48623
+ this.currentSingleQuestion = question;
48624
+ }
48520
48625
  }
48521
48626
  if (!isNeedWaitForPageRendered) {
48522
48627
  this.focusQuestionInfo();
@@ -48953,7 +49058,11 @@ var survey_SurveyModel = /** @class */ (function (_super) {
48953
49058
  jsonobject_property()
48954
49059
  ], SurveyModel.prototype, "rootCss", void 0);
48955
49060
  survey_decorate([
48956
- jsonobject_property()
49061
+ jsonobject_property({
49062
+ onSet: function (newValue, target) {
49063
+ target.updateGridColumns();
49064
+ }
49065
+ })
48957
49066
  ], SurveyModel.prototype, "gridLayoutEnabled", void 0);
48958
49067
  survey_decorate([
48959
49068
  jsonobject_property()
@@ -49051,6 +49160,7 @@ Serializer.addClass("survey", [
49051
49160
  name: "calculatedValues:calculatedvalues",
49052
49161
  className: "calculatedvalue", isArray: true
49053
49162
  },
49163
+ { name: "sjsVersion", visible: false },
49054
49164
  { name: "surveyId", visible: false },
49055
49165
  { name: "surveyPostId", visible: false },
49056
49166
  { name: "surveyShowDataSaving:boolean", visible: false },
@@ -64642,10 +64752,17 @@ var question_imagepicker_QuestionImagePickerModel = /** @class */ (function (_su
64642
64752
  enumerable: false,
64643
64753
  configurable: true
64644
64754
  });
64755
+ Object.defineProperty(QuestionImagePickerModel.prototype, "imageScale", {
64756
+ get: function () {
64757
+ return this.survey ? this.survey["widthScale"] / 100 : 1;
64758
+ },
64759
+ enumerable: false,
64760
+ configurable: true
64761
+ });
64645
64762
  Object.defineProperty(QuestionImagePickerModel.prototype, "renderedImageHeight", {
64646
64763
  get: function () {
64647
- var height = this.isResponsive ? Math.floor(this.responsiveImageHeight) : this.imageHeight;
64648
- return (height ? height : 150);
64764
+ var height = this.isResponsive ? Math.floor(this.responsiveImageHeight) : this.imageHeight * this.imageScale;
64765
+ return (height ? height : 150 * this.imageScale);
64649
64766
  },
64650
64767
  enumerable: false,
64651
64768
  configurable: true
@@ -64672,8 +64789,8 @@ var question_imagepicker_QuestionImagePickerModel = /** @class */ (function (_su
64672
64789
  });
64673
64790
  Object.defineProperty(QuestionImagePickerModel.prototype, "renderedImageWidth", {
64674
64791
  get: function () {
64675
- var width = this.isResponsive ? Math.floor(this.responsiveImageWidth) : this.imageWidth;
64676
- return (width ? width : 200);
64792
+ var width = this.isResponsive ? Math.floor(this.responsiveImageWidth) : this.imageWidth * this.imageScale;
64793
+ return (width ? width : 200 * this.imageScale);
64677
64794
  },
64678
64795
  enumerable: false,
64679
64796
  configurable: true
@@ -64781,11 +64898,11 @@ var question_imagepicker_QuestionImagePickerModel = /** @class */ (function (_su
64781
64898
  };
64782
64899
  if (this.isResponsive) {
64783
64900
  var itemsCount = this.choices.length + (this.isDesignMode ? 1 : 0);
64784
- var gap = this.gapBetweenItems || 0;
64785
- var minWidth = this.minImageWidth;
64786
- var maxWidth = this.maxImageWidth;
64787
- var maxHeight = this.maxImageHeight;
64788
- var minHeight = this.minImageHeight;
64901
+ var gap = (this.gapBetweenItems || 0) * this.imageScale;
64902
+ var minWidth = this.minImageWidth * this.imageScale;
64903
+ var maxWidth = this.maxImageWidth * this.imageScale;
64904
+ var maxHeight = this.maxImageHeight * this.imageScale;
64905
+ var minHeight = this.minImageHeight * this.imageScale;
64789
64906
  var colCount = this.colCount;
64790
64907
  var width_1;
64791
64908
  if (colCount === 0) {
@@ -72398,10 +72515,12 @@ Serializer.addClass("currencymask", [
72398
72515
  // import "../../src/main.scss";
72399
72516
  //import "../../src/modern.scss";
72400
72517
 
72518
+
72401
72519
  var Version;
72402
72520
  var ReleaseDate;
72403
- Version = "" + "1.12.16";
72404
- ReleaseDate = "" + "2024-12-24";
72521
+ Version = "" + "1.12.18";
72522
+ settings.version = Version;
72523
+ ReleaseDate = "" + "2025-01-10";
72405
72524
  function checkLibraryVersion(ver, libraryName) {
72406
72525
  if (Version != ver) {
72407
72526
  var str = "survey-core has version '" + Version + "' and " + libraryName
@@ -75688,6 +75807,91 @@ setupLocale({ localeCode: "bg", strings: bulgarianStrings, nativeName: "бълг
75688
75807
  // signaturePlaceHolderReadOnly: "No signature" => "Няма подпис"// tabTitlePlaceholder: "New Panel" => "Нов панел"// deselectAllItemText: "Deselect all" => "Премахване на избора на всички"
75689
75808
  // textNoDigitsAllow: "Numbers are not allowed." => "Номерата не са позволени."
75690
75809
 
75810
+ // CONCATENATED MODULE: ./packages/survey-core/src/localization/burmese.ts
75811
+
75812
+ var burmeseStrings = {
75813
+ pagePrevText: "နောက်သို့",
75814
+ pageNextText: "ရှေ့သို့",
75815
+ completeText: "ပြီးဆုံးပါပြီ",
75816
+ previewText: "ကြိုတင်ကြည့်ရှုရန်",
75817
+ editText: "တည်းဖြတ်ရန်",
75818
+ startSurveyText: "စတင်ရန်",
75819
+ otherItemText: "အခြား (ဖော်ပြပါ)",
75820
+ noneItemText: "ဘာမျှမရှိပါ",
75821
+ refuseItemText: "ဖြေဆိုရန်ငြင်းဆန်သည်",
75822
+ dontKnowItemText: "မသိပါ",
75823
+ selectAllItemText: "အားလုံးရွေးချယ်ပါ",
75824
+ deselectAllItemText: "အားလုံးမရွေးချယ်ပါ",
75825
+ progressText: "စာမျက်နှာ {0}/{1}",
75826
+ indexText: "{0}/{1}",
75827
+ panelDynamicProgressText: "{0}/{1}",
75828
+ panelDynamicTabTextFormat: "ပန်းနယ် {panelIndex}",
75829
+ questionsProgressText: "မေးခွန်းများ {0}/{1} ဖြေဆိုပြီးပြီ",
75830
+ emptySurvey: "ဒီစစ်တမ်းတွင် မြင်သာမေးခွန်းများမရှိပါ။",
75831
+ completingSurvey: "စစ်တမ်းကိုပြီးမြောက်စွာဖြေဆိုပေးခဲ့သည့်အတွက်ကျေးဇူးတင်ပါသည်။",
75832
+ completingSurveyBefore: "ဒီစစ်တမ်းကို မျှဝေပြီးသားဖြေဆိုထားပါသည်။",
75833
+ loadingSurvey: "စစ်တမ်းကိုလုပ်ဆောင်နေသည်...",
75834
+ placeholder: "ရွေးချယ်ပါ...",
75835
+ ratingOptionsCaption: "ရွေးချယ်ပါ...",
75836
+ value: "တန်ဖိုး",
75837
+ requiredError: "ဖြေဆိုရန်လိုအပ်ပါသည်။",
75838
+ requiredErrorInPanel: "ဖြေဆိုရန်လိုအပ်ပါသည် - အနည်းဆုံးတစ်ခုကိုဖြေဆိုပါ။",
75839
+ requiredInAllRowsError: "အတန်းအားလုံးတွင်ဖြေဆိုရန်လိုအပ်ပါသည်။",
75840
+ eachRowUniqueError: "အတန်းတိုင်းတွင်ထပ်တူဖြေဆိုမှုမရှိရပါ။",
75841
+ numericError: "တန်ဖိုးသည်ကိန်းဂဏန်းဖြစ်ရပါမည်။",
75842
+ minError: "တန်ဖိုးသည် {0} ထက်မနည်းရပါ။",
75843
+ maxError: "တန်ဖိုးသည် {0} ထက်မကျော်ရပါ။",
75844
+ textNoDigitsAllow: "ကိန်းဂဏန်းများကိုခွင့်မပြုပါ။",
75845
+ textMinLength: "အနည်းဆုံး {0} လုံးဖြည့်စွက်ပါ။",
75846
+ textMaxLength: "အများဆုံး {0} လုံးထိသာဖြည့်စွက်ပါ။",
75847
+ textMinMaxLength: "အနည်းဆုံး {0} နှင့်အများဆုံး {1} လုံးဖြည့်စွက်ပါ။",
75848
+ minRowCountError: "အနည်းဆုံး {0} အတန်းဖြည့်စွက်ပါ။",
75849
+ minSelectError: "အနည်းဆုံး {0} ရွေးချယ်ချက်များရွေးပါ။",
75850
+ maxSelectError: "အများဆုံး {0} ရွေးချယ်ချက်များသာရွေးပါ။",
75851
+ numericMinMax: "‘{0}’ သည် {1} နှင့် {2} အကြားဖြစ်ရမည်။",
75852
+ numericMin: "‘{0}’ သည် {1} ထက်မနည်းရပါ။",
75853
+ numericMax: "‘{0}’ သည် {1} ထက်မကျော်ရပါ။",
75854
+ invalidEmail: "တရားဝင်သော အီးမေးလ်လိပ်စာကိုရိုက်ထည့်ပါ။",
75855
+ invalidExpression: "အထောက်အထား {0} သည် 'true' ပြန်သင့်သည်။",
75856
+ urlRequestError: "တောင်းဆိုမှုတွင် အမှား '{0}' ဖြစ်ခဲ့သည်။ {1}",
75857
+ urlGetChoicesError: "တောင်းဆိုမှုတွင်ဒေတာမရှိပါ။ သို့မဟုတ် 'path' ပိုင်ဆိုင်မှုမှာမှားနေပါသည်။",
75858
+ exceedMaxSize: "ဖိုင်အရွယ်အစားသည် {0} ထက်မကျော်ရပါ။",
75859
+ noUploadFilesHandler: "ဖိုင်များကိုအပ်လုဒ်လုပ်၍မရနိုင်ပါ။",
75860
+ otherRequiredError: "ဖြေဆိုရန်လိုအပ်ပါသည်။ တန်ဖိုးတစ်ခုရိုက်ထည့်ပါ။",
75861
+ uploadingFile: "ဖိုင်တင်နေသည်။ မိနစ်ပိုင်းစောင့်ပြီးပြန်ကြိုးစားပါ။",
75862
+ loadingFile: "တင်နေသည်...",
75863
+ chooseFile: "ဖိုင်(များ) ရွေးချယ်ပါ...",
75864
+ noFileChosen: "ဖိုင်မရွေးရသေးပါ",
75865
+ filePlaceholder: "ဖိုင်တစ်ခုအားဤနေရာတွင်ဆွဲချပြီးအောက်တွင်ရှိသောခလုတ်ကိုနှိပ်ပါ။",
75866
+ confirmDelete: "ဤမှတ်တမ်းကိုဖျက်မည်မှာ သေချာပါသလား?",
75867
+ keyDuplicationError: "ဤတန်ဖိုးသည်ထူးခြားဖြစ်ရပါမည်။",
75868
+ addColumn: "ကော်လံထည့်ရန်",
75869
+ addRow: "တန်းထည့်ရန်",
75870
+ removeRow: "ဖယ်ရှားရန်",
75871
+ emptyRowsText: "တန်းများမရှိပါ။",
75872
+ addPanel: "အသစ်ထည့်ပါ",
75873
+ removePanel: "ဖယ်ရှားပါ",
75874
+ showDetails: "အသေးစိတ်ပြရန်",
75875
+ hideDetails: "အသေးစိတ်ဖျောက်ရန်",
75876
+ choices_Item: "အရာ",
75877
+ matrix_column: "ကော်လံ",
75878
+ matrix_row: "တန်း",
75879
+ multipletext_itemname: "စာသား",
75880
+ savingData: "ရလဒ်များကိုဆာဗာတွင်သိမ်းဆည်းနေသည်...",
75881
+ savingDataError: "အမှားတစ်ခုဖြစ်ပြီး ရလဒ်များကိုသိမ်းဆည်း၍မရနိုင်ပါ။",
75882
+ savingDataSuccess: "ရလဒ်များကိုအောင်မြင်စွာသိမ်းဆည်းပြီးပါပြီ။",
75883
+ savingExceedSize: "သင့်ဖြေဆိုမှုသည် 64KB ကျော်နေပါသည်။",
75884
+ saveAgainButton: "ထပ်ကြိုးစားရန်",
75885
+ timerMin: "မိနစ်",
75886
+ timerSec: "စက္ကန့်",
75887
+ clearCaption: "ရှင်းလင်းရန်",
75888
+ signaturePlaceHolder: "ဤနေရာတွင်လက်မှတ်ရေးပါ",
75889
+ confirmRemoveFile: "ဤဖိုင်အားဖယ်ရှားမည်မှာ သေချာပါသလား: {0}?",
75890
+ ok: "အိုကေ",
75891
+ cancel: "ပယ်ဖျက်ပါ"
75892
+ };
75893
+ setupLocale({ localeCode: "mm", strings: burmeseStrings, nativeName: "မြန်မာ", englishName: "Burmese" });
75894
+
75691
75895
  // CONCATENATED MODULE: ./packages/survey-core/src/localization/catalan.ts
75692
75896
 
75693
75897
  var catalanSurveyStrings = {
@@ -82326,6 +82530,7 @@ setupLocale({ localeCode: "fil", strings: philippinesStrings, nativeName: "filip
82326
82530
 
82327
82531
 
82328
82532
 
82533
+
82329
82534
 
82330
82535
 
82331
82536
  // CONCATENATED MODULE: ./src/entries/chunks/localization.ts
@@ -86707,13 +86912,14 @@ var dropdown_base_SurveyQuestionDropdownBase = /** @class */ (function (_super)
86707
86912
  return external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", null, this.question.readOnlyText);
86708
86913
  };
86709
86914
  SurveyQuestionDropdownBase.prototype.renderSelect = function (cssClasses) {
86915
+ var _this = this;
86710
86916
  var _a, _b;
86711
86917
  var selectElement = null;
86712
86918
  if (this.question.isReadOnly) {
86713
86919
  var text = (this.question.selectedItemLocText) ? this.renderLocString(this.question.selectedItemLocText) : "";
86714
86920
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
86715
86921
  // @ts-ignore
86716
- selectElement = external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { id: this.question.inputId, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, tabIndex: this.question.isDisabledAttr ? undefined : 0, className: this.question.getControlClass() },
86922
+ selectElement = external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { id: this.question.inputId, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, tabIndex: this.question.isDisabledAttr ? undefined : 0, className: this.question.getControlClass(), ref: function (div) { return (_this.setControl(div)); } },
86717
86923
  text,
86718
86924
  this.renderReadOnlyElement());
86719
86925
  }
@@ -86747,7 +86953,7 @@ var dropdown_base_SurveyQuestionDropdownBase = /** @class */ (function (_super)
86747
86953
  return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.noTabIndex ? undefined : 0,
86748
86954
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
86749
86955
  // @ts-ignore
86750
- disabled: this.question.isDisabledAttr, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, onFocus: this.focus, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, "aria-expanded": this.question.ariaExpanded, "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant },
86956
+ disabled: this.question.isDisabledAttr, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, onFocus: this.focus, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, "aria-expanded": this.question.ariaExpanded, "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant, ref: function (div) { return (_this.setControl(div)); } },
86751
86957
  dropdownListModel.showHintPrefix ?
86752
86958
  (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.question.cssClasses.hintPrefix },
86753
86959
  external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("span", null, dropdownListModel.hintStringPrefix))) : null,
@@ -86936,7 +87142,7 @@ var reactquestion_tagbox_SurveyQuestionTagbox = /** @class */ (function (_super)
86936
87142
  return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.noTabIndex ? undefined : 0,
86937
87143
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
86938
87144
  // @ts-ignore
86939
- disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, "aria-expanded": this.question.ariaExpanded, "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant },
87145
+ disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, "aria-expanded": this.question.ariaExpanded, "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant, ref: function (div) { return (_this.setControl(div)); } },
86940
87146
  external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.question.cssClasses.controlValue },
86941
87147
  items,
86942
87148
  external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](tagbox_filter_TagboxFilterString, { model: dropdownMultiSelectListModel, question: this.question })),
@@ -88640,13 +88846,13 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable = /** @class */ (
88640
88846
  var matrixrow = [];
88641
88847
  var cells = row.cells;
88642
88848
  for (var i = 0; i < cells.length; i++) {
88643
- matrixrow.push(this.renderCell(cells[i], i, cssClasses, reason));
88849
+ matrixrow.push(this.renderCell(cells[i], cssClasses, reason));
88644
88850
  }
88645
88851
  var key = "row" + keyValue;
88646
88852
  return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](external_root_React_commonjs2_react_commonjs_react_amd_react_["Fragment"], { key: key }, (reason == "row-footer") ? external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("tr", null, matrixrow) : external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](row_MatrixRow, { model: row, parentMatrix: this.question }, matrixrow)));
88647
88853
  };
88648
- SurveyQuestionMatrixTable.prototype.renderCell = function (cell, index, cssClasses, reason) {
88649
- var key = "cell" + index;
88854
+ SurveyQuestionMatrixTable.prototype.renderCell = function (cell, cssClasses, reason) {
88855
+ var key = "cell" + cell.id;
88650
88856
  if (cell.hasQuestion) {
88651
88857
  return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownCell, { key: key, cssClasses: cssClasses, cell: cell, creator: this.creator, reason: reason }));
88652
88858
  }
@@ -89719,7 +89925,7 @@ var list_item_ListItem = /** @class */ (function (_super) {
89719
89925
  var className = this.model.getItemClass(this.item);
89720
89926
  var itemContent = this.item.component || this.model.itemComponent;
89721
89927
  var newElement = ReactElementFactory.Instance.createElement(itemContent, { item: this.item, key: this.item.id, model: this.model });
89722
- var contentWrap = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", { style: this.model.getItemStyle(this.item), className: this.model.cssClasses.itemBody, title: this.item.locTitle.calculatedText, onMouseOver: function (event) { _this.model.onItemHover(_this.item); }, onMouseLeave: function (event) { _this.model.onItemLeave(_this.item); } }, newElement);
89928
+ var contentWrap = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", { style: this.model.getItemStyle(this.item), className: this.model.cssClasses.itemBody, title: this.item.getTooltip(), onMouseOver: function (event) { _this.model.onItemHover(_this.item); }, onMouseLeave: function (event) { _this.model.onItemLeave(_this.item); } }, newElement);
89723
89929
  var separator = this.item.needSeparator ? external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", { className: this.model.cssClasses.itemSeparator }) : null;
89724
89930
  var isVisible = this.model.isItemVisible(this.item);
89725
89931
  var style = {
@@ -90399,7 +90605,7 @@ var imagepicker_SurveyQuestionImagePickerItem = /** @class */ (function (_super)
90399
90605
  external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.question.cssClasses.itemDecorator },
90400
90606
  external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.question.cssClasses.imageContainer },
90401
90607
  !!this.question.cssClasses.checkedItemDecorator ?
90402
- external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("span", { className: this.question.cssClasses.checkedItemDecorator }, !!this.question.cssClasses.checkedItemSvgIconId ? external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](svg_icon_SvgIcon, { size: "auto", className: this.question.cssClasses.checkedItemSvgIcon, iconName: this.question.cssClasses.checkedItemSvgIconId }) : null) : null,
90608
+ external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("span", { className: this.question.cssClasses.checkedItemDecorator, "aria-hidden": "true" }, !!this.question.cssClasses.checkedItemSvgIconId ? external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](svg_icon_SvgIcon, { size: "auto", className: this.question.cssClasses.checkedItemSvgIcon, iconName: this.question.cssClasses.checkedItemSvgIconId }) : null) : null,
90403
90609
  control),
90404
90610
  text))));
90405
90611
  return renderedItem;