survey-react 1.12.17 → 1.12.19

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.d.ts CHANGED
@@ -5930,7 +5930,7 @@ declare module "packages/survey-core/src/question_matrixdropdownrendered" {
5930
5930
  get hasQuestion(): boolean;
5931
5931
  get hasTitle(): boolean;
5932
5932
  get hasPanel(): boolean;
5933
- get id(): number;
5933
+ get id(): string;
5934
5934
  get item(): ItemValue;
5935
5935
  set item(val: ItemValue);
5936
5936
  get isChoice(): boolean;
@@ -5965,7 +5965,7 @@ declare module "packages/survey-core/src/question_matrixdropdownrendered" {
5965
5965
  private idValue;
5966
5966
  cells: Array<QuestionMatrixDropdownRenderedCell>;
5967
5967
  constructor(cssClasses: any, isDetailRow?: boolean);
5968
- get id(): number;
5968
+ get id(): string;
5969
5969
  get attributes(): {
5970
5970
  "data-sv-drop-target-matrix-row"?: undefined;
5971
5971
  } | {
@@ -10528,6 +10528,8 @@ declare module "packages/survey-core/src/survey" {
10528
10528
  onElementWrapperComponentName: EventBase<SurveyModel, any>;
10529
10529
  onElementWrapperComponentData: EventBase<SurveyModel, any>;
10530
10530
  constructor(jsonObj?: any, renderedElement?: any);
10531
+ get sjsVersion(): string;
10532
+ set sjsVersion(val: string);
10531
10533
  processClosedPopup(question: IQuestion, popupModel: PopupModel<any>): void;
10532
10534
  protected createTryAgainAction(): IAction;
10533
10535
  private createHtmlLocString;
@@ -12408,6 +12410,7 @@ declare module "packages/survey-core/src/survey" {
12408
12410
  protected doOnPageRemoved(page: PageModel): void;
12409
12411
  private generateNewName;
12410
12412
  protected tryGoNextPageAutomatic(name: string): void;
12413
+ private tryCompleteOrShowPreview;
12411
12414
  /**
12412
12415
  * Returns a comment value from a question with a specified `name`.
12413
12416
  * @param name A question name.
@@ -16377,6 +16380,7 @@ declare module "packages/survey-core/src/settings" {
16377
16380
  * ```
16378
16381
  */
16379
16382
  export var settings: {
16383
+ version: string;
16380
16384
  /**
16381
16385
  * An object that configures survey appearance when the survey is being designed in Survey Creator.
16382
16386
  *
@@ -22449,6 +22453,89 @@ declare module "packages/survey-core/src/localization/bulgarian" {
22449
22453
  cancel: string;
22450
22454
  };
22451
22455
  }
22456
+ declare module "packages/survey-core/src/localization/burmese" {
22457
+ export var burmeseStrings: {
22458
+ pagePrevText: string;
22459
+ pageNextText: string;
22460
+ completeText: string;
22461
+ previewText: string;
22462
+ editText: string;
22463
+ startSurveyText: string;
22464
+ otherItemText: string;
22465
+ noneItemText: string;
22466
+ refuseItemText: string;
22467
+ dontKnowItemText: string;
22468
+ selectAllItemText: string;
22469
+ deselectAllItemText: string;
22470
+ progressText: string;
22471
+ indexText: string;
22472
+ panelDynamicProgressText: string;
22473
+ panelDynamicTabTextFormat: string;
22474
+ questionsProgressText: string;
22475
+ emptySurvey: string;
22476
+ completingSurvey: string;
22477
+ completingSurveyBefore: string;
22478
+ loadingSurvey: string;
22479
+ placeholder: string;
22480
+ ratingOptionsCaption: string;
22481
+ value: string;
22482
+ requiredError: string;
22483
+ requiredErrorInPanel: string;
22484
+ requiredInAllRowsError: string;
22485
+ eachRowUniqueError: string;
22486
+ numericError: string;
22487
+ minError: string;
22488
+ maxError: string;
22489
+ textNoDigitsAllow: string;
22490
+ textMinLength: string;
22491
+ textMaxLength: string;
22492
+ textMinMaxLength: string;
22493
+ minRowCountError: string;
22494
+ minSelectError: string;
22495
+ maxSelectError: string;
22496
+ numericMinMax: string;
22497
+ numericMin: string;
22498
+ numericMax: string;
22499
+ invalidEmail: string;
22500
+ invalidExpression: string;
22501
+ urlRequestError: string;
22502
+ urlGetChoicesError: string;
22503
+ exceedMaxSize: string;
22504
+ noUploadFilesHandler: string;
22505
+ otherRequiredError: string;
22506
+ uploadingFile: string;
22507
+ loadingFile: string;
22508
+ chooseFile: string;
22509
+ noFileChosen: string;
22510
+ filePlaceholder: string;
22511
+ confirmDelete: string;
22512
+ keyDuplicationError: string;
22513
+ addColumn: string;
22514
+ addRow: string;
22515
+ removeRow: string;
22516
+ emptyRowsText: string;
22517
+ addPanel: string;
22518
+ removePanel: string;
22519
+ showDetails: string;
22520
+ hideDetails: string;
22521
+ choices_Item: string;
22522
+ matrix_column: string;
22523
+ matrix_row: string;
22524
+ multipletext_itemname: string;
22525
+ savingData: string;
22526
+ savingDataError: string;
22527
+ savingDataSuccess: string;
22528
+ savingExceedSize: string;
22529
+ saveAgainButton: string;
22530
+ timerMin: string;
22531
+ timerSec: string;
22532
+ clearCaption: string;
22533
+ signaturePlaceHolder: string;
22534
+ confirmRemoveFile: string;
22535
+ ok: string;
22536
+ cancel: string;
22537
+ };
22538
+ }
22452
22539
  declare module "packages/survey-core/src/localization/catalan" {
22453
22540
  export var catalanSurveyStrings: {
22454
22541
  pagePrevText: string;
@@ -27408,6 +27495,7 @@ declare module "packages/survey-core/entries/chunks/localization" {
27408
27495
  import "packages/survey-core/src/localization/arabic";
27409
27496
  import "packages/survey-core/src/localization/basque";
27410
27497
  import "packages/survey-core/src/localization/bulgarian";
27498
+ import "packages/survey-core/src/localization/burmese";
27411
27499
  import "packages/survey-core/src/localization/catalan";
27412
27500
  import "packages/survey-core/src/localization/croatian";
27413
27501
  import "packages/survey-core/src/localization/czech";
package/survey.react.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.17
3
- * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
2
+ * surveyjs - Survey JavaScript library v1.12.19
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) */
@@ -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
  *
@@ -27663,6 +27664,9 @@ var question_matrixdropdownrendered_spreadArray = (undefined && undefined.__spre
27663
27664
 
27664
27665
 
27665
27666
 
27667
+ function getId(id, isError, isDetail) {
27668
+ return id + (isError ? "-error" : "") + (isDetail ? "-detail" : "");
27669
+ }
27666
27670
  var question_matrixdropdownrendered_QuestionMatrixDropdownRenderedCell = /** @class */ (function () {
27667
27671
  function QuestionMatrixDropdownRenderedCell() {
27668
27672
  this.minWidth = "";
@@ -27705,7 +27709,11 @@ var question_matrixdropdownrendered_QuestionMatrixDropdownRenderedCell = /** @cl
27705
27709
  });
27706
27710
  Object.defineProperty(QuestionMatrixDropdownRenderedCell.prototype, "id", {
27707
27711
  get: function () {
27708
- 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);
27709
27717
  },
27710
27718
  enumerable: false,
27711
27719
  configurable: true
@@ -27887,7 +27895,8 @@ var question_matrixdropdownrendered_QuestionMatrixDropdownRenderedRow = /** @cla
27887
27895
  }
27888
27896
  Object.defineProperty(QuestionMatrixDropdownRenderedRow.prototype, "id", {
27889
27897
  get: function () {
27890
- 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);
27891
27900
  },
27892
27901
  enumerable: false,
27893
27902
  configurable: true
@@ -28792,6 +28801,7 @@ var question_matrixdropdownrendered_QuestionMatrixDropdownRenderedTable = /** @c
28792
28801
  var res = new question_matrixdropdownrendered_QuestionMatrixDropdownRenderedCell();
28793
28802
  res.cell = cell;
28794
28803
  res.row = cell.row;
28804
+ res.column = cell.column;
28795
28805
  res.question = cell.question;
28796
28806
  res.matrix = this.matrix;
28797
28807
  res.item = choiceItem;
@@ -37887,8 +37897,10 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
37887
37897
  PanelModelBase.prototype.onElementStartWithNewLineChanged = function (element) {
37888
37898
  if (this.locCountRowUpdates > 0)
37889
37899
  return;
37900
+ this.blockAnimations();
37890
37901
  this.updateRowsBeforeElementRemoved(element);
37891
37902
  this.updateRowsOnElementAdded(element);
37903
+ this.releaseAnimations();
37892
37904
  };
37893
37905
  PanelModelBase.prototype.updateRowsVisibility = function (element) {
37894
37906
  var rows = this.rows;
@@ -40236,6 +40248,7 @@ var survey_decorate = (undefined && undefined.__decorate) || function (decorator
40236
40248
 
40237
40249
 
40238
40250
 
40251
+
40239
40252
  /**
40240
40253
  * The `SurveyModel` object contains properties and methods that allow you to control the survey and access its elements.
40241
40254
  *
@@ -41256,6 +41269,16 @@ var survey_SurveyModel = /** @class */ (function (_super) {
41256
41269
  enumerable: false,
41257
41270
  configurable: true
41258
41271
  });
41272
+ Object.defineProperty(SurveyModel.prototype, "sjsVersion", {
41273
+ get: function () {
41274
+ return this.getPropertyValue("sjsVersion");
41275
+ },
41276
+ set: function (val) {
41277
+ this.setPropertyValue("sjsVersion", val);
41278
+ },
41279
+ enumerable: false,
41280
+ configurable: true
41281
+ });
41259
41282
  SurveyModel.prototype.processClosedPopup = function (question, popupModel) {
41260
41283
  throw new Error("Method not implemented.");
41261
41284
  };
@@ -43980,7 +44003,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
43980
44003
  this.currentPageNo = index;
43981
44004
  return true;
43982
44005
  }
43983
- for (var i = this.currentPageNo; i < index; i++) {
44006
+ if (!this.validateCurrentPage())
44007
+ return false;
44008
+ for (var i = this.currentPageNo + 1; i < index; i++) {
43984
44009
  var page_1 = this.visiblePages[i];
43985
44010
  if (!page_1.validate(true, true))
43986
44011
  return false;
@@ -44412,7 +44437,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
44412
44437
  get: function () {
44413
44438
  if (this.isDesignMode)
44414
44439
  return "none";
44415
- var page = this.currentPage;
44440
+ var page = this.activePage;
44416
44441
  if (!page)
44417
44442
  return "none";
44418
44443
  if (page.navigationButtonsVisibility === "show") {
@@ -44876,7 +44901,13 @@ var survey_SurveyModel = /** @class */ (function (_super) {
44876
44901
  }
44877
44902
  if (!page)
44878
44903
  return true;
44879
- var res = !page.validate(true, isFocuseOnFirstError);
44904
+ var res = false;
44905
+ if (this.currentSingleQuestion) {
44906
+ res = !this.currentSingleQuestion.validate(true);
44907
+ }
44908
+ else {
44909
+ res = !page.validate(true, isFocuseOnFirstError);
44910
+ }
44880
44911
  this.fireValidatedErrorsOnPage(page);
44881
44912
  return res;
44882
44913
  };
@@ -45216,7 +45247,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
45216
45247
  configurable: true
45217
45248
  });
45218
45249
  SurveyModel.prototype.onQuestionsOnPageModeChanged = function (oldValue) {
45219
- if (this.isShowingPreview)
45250
+ if (this.isShowingPreview || this.isDesignMode)
45220
45251
  return;
45221
45252
  this.currentSingleQuestion = undefined;
45222
45253
  if (oldValue === "singlePage") {
@@ -47130,6 +47161,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
47130
47161
  return;
47131
47162
  this.questionHashesClear();
47132
47163
  this.jsonErrors = null;
47164
+ this.sjsVersion = undefined;
47133
47165
  var jsonConverter = new jsonobject_JsonObject();
47134
47166
  jsonConverter.toObject(json, this, options);
47135
47167
  if (jsonConverter.errors.length > 0) {
@@ -47137,6 +47169,13 @@ var survey_SurveyModel = /** @class */ (function (_super) {
47137
47169
  }
47138
47170
  this.onStateAndCurrentPageChanged();
47139
47171
  this.updateState();
47172
+ if (!!this.sjsVersion && !!settings.version) {
47173
+ if (helpers_Helpers.compareVerions(this.sjsVersion, settings.version) > 0) {
47174
+ ConsoleWarnings.warn("The version of the survey JSON schema (v"
47175
+ + this.sjsVersion + ") is newer than your current Form Library version ("
47176
+ + settings.version + "). Please update the Form Library to make sure that all survey features work as expected.");
47177
+ }
47178
+ }
47140
47179
  };
47141
47180
  SurveyModel.prototype.startLoadingFromJson = function (json) {
47142
47181
  _super.prototype.startLoadingFromJson.call(this, json);
@@ -47584,6 +47623,22 @@ var survey_SurveyModel = /** @class */ (function (_super) {
47584
47623
  return;
47585
47624
  if (!question.validate(false) && !question.supportGoNextPageError())
47586
47625
  return;
47626
+ if (!!this.currentSingleQuestion) {
47627
+ var curQuestion_1 = this.currentSingleQuestion;
47628
+ var goNextQuestion = function () {
47629
+ if (curQuestion_1 !== _this.currentSingleQuestion)
47630
+ return;
47631
+ if (!_this.isLastElement) {
47632
+ _this.performNext();
47633
+ }
47634
+ else {
47635
+ if (_this.allowCompleteSurveyAutomatic) {
47636
+ _this.tryCompleteOrShowPreview();
47637
+ }
47638
+ }
47639
+ };
47640
+ surveyTimerFunctions.safeTimeOut(goNextQuestion, settings.autoAdvanceDelay);
47641
+ }
47587
47642
  var questions = this.getCurrentPageQuestions();
47588
47643
  if (questions.indexOf(question) < 0)
47589
47644
  return;
@@ -47603,16 +47658,19 @@ var survey_SurveyModel = /** @class */ (function (_super) {
47603
47658
  _this.nextPage();
47604
47659
  }
47605
47660
  else {
47606
- if (_this.isShowPreviewBeforeComplete) {
47607
- _this.showPreview();
47608
- }
47609
- else {
47610
- _this.tryComplete();
47611
- }
47661
+ _this.tryCompleteOrShowPreview();
47612
47662
  }
47613
47663
  };
47614
47664
  surveyTimerFunctions.safeTimeOut(goNextPage, settings.autoAdvanceDelay);
47615
47665
  };
47666
+ SurveyModel.prototype.tryCompleteOrShowPreview = function () {
47667
+ if (this.isShowPreviewBeforeComplete) {
47668
+ this.showPreview();
47669
+ }
47670
+ else {
47671
+ this.tryComplete();
47672
+ }
47673
+ };
47616
47674
  /**
47617
47675
  * Returns a comment value from a question with a specified `name`.
47618
47676
  * @param name A question name.
@@ -48583,6 +48641,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
48583
48641
  var isNeedWaitForPageRendered = this.activePage !== question.page && !question.page.isStartPage;
48584
48642
  if (isNeedWaitForPageRendered) {
48585
48643
  this.currentPage = question.page;
48644
+ if (this.isSingleVisibleQuestion && !this.isDesignMode) {
48645
+ this.currentSingleQuestion = question;
48646
+ }
48586
48647
  }
48587
48648
  if (!isNeedWaitForPageRendered) {
48588
48649
  this.focusQuestionInfo();
@@ -49121,6 +49182,7 @@ Serializer.addClass("survey", [
49121
49182
  name: "calculatedValues:calculatedvalues",
49122
49183
  className: "calculatedvalue", isArray: true
49123
49184
  },
49185
+ { name: "sjsVersion", visible: false },
49124
49186
  { name: "surveyId", visible: false },
49125
49187
  { name: "surveyPostId", visible: false },
49126
49188
  { name: "surveyShowDataSaving:boolean", visible: false },
@@ -72475,10 +72537,12 @@ Serializer.addClass("currencymask", [
72475
72537
  // import "../../src/main.scss";
72476
72538
  //import "../../src/modern.scss";
72477
72539
 
72540
+
72478
72541
  var Version;
72479
72542
  var ReleaseDate;
72480
- Version = "" + "1.12.17";
72481
- ReleaseDate = "" + "2024-12-30";
72543
+ Version = "" + "1.12.19";
72544
+ settings.version = Version;
72545
+ ReleaseDate = "" + "2025-01-15";
72482
72546
  function checkLibraryVersion(ver, libraryName) {
72483
72547
  if (Version != ver) {
72484
72548
  var str = "survey-core has version '" + Version + "' and " + libraryName
@@ -75765,6 +75829,91 @@ setupLocale({ localeCode: "bg", strings: bulgarianStrings, nativeName: "бълг
75765
75829
  // signaturePlaceHolderReadOnly: "No signature" => "Няма подпис"// tabTitlePlaceholder: "New Panel" => "Нов панел"// deselectAllItemText: "Deselect all" => "Премахване на избора на всички"
75766
75830
  // textNoDigitsAllow: "Numbers are not allowed." => "Номерата не са позволени."
75767
75831
 
75832
+ // CONCATENATED MODULE: ./packages/survey-core/src/localization/burmese.ts
75833
+
75834
+ var burmeseStrings = {
75835
+ pagePrevText: "နောက်သို့",
75836
+ pageNextText: "ရှေ့သို့",
75837
+ completeText: "ပြီးဆုံးပါပြီ",
75838
+ previewText: "ကြိုတင်ကြည့်ရှုရန်",
75839
+ editText: "တည်းဖြတ်ရန်",
75840
+ startSurveyText: "စတင်ရန်",
75841
+ otherItemText: "အခြား (ဖော်ပြပါ)",
75842
+ noneItemText: "ဘာမျှမရှိပါ",
75843
+ refuseItemText: "ဖြေဆိုရန်ငြင်းဆန်သည်",
75844
+ dontKnowItemText: "မသိပါ",
75845
+ selectAllItemText: "အားလုံးရွေးချယ်ပါ",
75846
+ deselectAllItemText: "အားလုံးမရွေးချယ်ပါ",
75847
+ progressText: "စာမျက်နှာ {0}/{1}",
75848
+ indexText: "{0}/{1}",
75849
+ panelDynamicProgressText: "{0}/{1}",
75850
+ panelDynamicTabTextFormat: "ပန်းနယ် {panelIndex}",
75851
+ questionsProgressText: "မေးခွန်းများ {0}/{1} ဖြေဆိုပြီးပြီ",
75852
+ emptySurvey: "ဒီစစ်တမ်းတွင် မြင်သာမေးခွန်းများမရှိပါ။",
75853
+ completingSurvey: "စစ်တမ်းကိုပြီးမြောက်စွာဖြေဆိုပေးခဲ့သည့်အတွက်ကျေးဇူးတင်ပါသည်။",
75854
+ completingSurveyBefore: "ဒီစစ်တမ်းကို မျှဝေပြီးသားဖြေဆိုထားပါသည်။",
75855
+ loadingSurvey: "စစ်တမ်းကိုလုပ်ဆောင်နေသည်...",
75856
+ placeholder: "ရွေးချယ်ပါ...",
75857
+ ratingOptionsCaption: "ရွေးချယ်ပါ...",
75858
+ value: "တန်ဖိုး",
75859
+ requiredError: "ဖြေဆိုရန်လိုအပ်ပါသည်။",
75860
+ requiredErrorInPanel: "ဖြေဆိုရန်လိုအပ်ပါသည် - အနည်းဆုံးတစ်ခုကိုဖြေဆိုပါ။",
75861
+ requiredInAllRowsError: "အတန်းအားလုံးတွင်ဖြေဆိုရန်လိုအပ်ပါသည်။",
75862
+ eachRowUniqueError: "အတန်းတိုင်းတွင်ထပ်တူဖြေဆိုမှုမရှိရပါ။",
75863
+ numericError: "တန်ဖိုးသည်ကိန်းဂဏန်းဖြစ်ရပါမည်။",
75864
+ minError: "တန်ဖိုးသည် {0} ထက်မနည်းရပါ။",
75865
+ maxError: "တန်ဖိုးသည် {0} ထက်မကျော်ရပါ။",
75866
+ textNoDigitsAllow: "ကိန်းဂဏန်းများကိုခွင့်မပြုပါ။",
75867
+ textMinLength: "အနည်းဆုံး {0} လုံးဖြည့်စွက်ပါ။",
75868
+ textMaxLength: "အများဆုံး {0} လုံးထိသာဖြည့်စွက်ပါ။",
75869
+ textMinMaxLength: "အနည်းဆုံး {0} နှင့်အများဆုံး {1} လုံးဖြည့်စွက်ပါ။",
75870
+ minRowCountError: "အနည်းဆုံး {0} အတန်းဖြည့်စွက်ပါ။",
75871
+ minSelectError: "အနည်းဆုံး {0} ရွေးချယ်ချက်များရွေးပါ။",
75872
+ maxSelectError: "အများဆုံး {0} ရွေးချယ်ချက်များသာရွေးပါ။",
75873
+ numericMinMax: "‘{0}’ သည် {1} နှင့် {2} အကြားဖြစ်ရမည်။",
75874
+ numericMin: "‘{0}’ သည် {1} ထက်မနည်းရပါ။",
75875
+ numericMax: "‘{0}’ သည် {1} ထက်မကျော်ရပါ။",
75876
+ invalidEmail: "တရားဝင်သော အီးမေးလ်လိပ်စာကိုရိုက်ထည့်ပါ။",
75877
+ invalidExpression: "အထောက်အထား {0} သည် 'true' ပြန်သင့်သည်။",
75878
+ urlRequestError: "တောင်းဆိုမှုတွင် အမှား '{0}' ဖြစ်ခဲ့သည်။ {1}",
75879
+ urlGetChoicesError: "တောင်းဆိုမှုတွင်ဒေတာမရှိပါ။ သို့မဟုတ် 'path' ပိုင်ဆိုင်မှုမှာမှားနေပါသည်။",
75880
+ exceedMaxSize: "ဖိုင်အရွယ်အစားသည် {0} ထက်မကျော်ရပါ။",
75881
+ noUploadFilesHandler: "ဖိုင်များကိုအပ်လုဒ်လုပ်၍မရနိုင်ပါ။",
75882
+ otherRequiredError: "ဖြေဆိုရန်လိုအပ်ပါသည်။ တန်ဖိုးတစ်ခုရိုက်ထည့်ပါ။",
75883
+ uploadingFile: "ဖိုင်တင်နေသည်။ မိနစ်ပိုင်းစောင့်ပြီးပြန်ကြိုးစားပါ။",
75884
+ loadingFile: "တင်နေသည်...",
75885
+ chooseFile: "ဖိုင်(များ) ရွေးချယ်ပါ...",
75886
+ noFileChosen: "ဖိုင်မရွေးရသေးပါ",
75887
+ filePlaceholder: "ဖိုင်တစ်ခုအားဤနေရာတွင်ဆွဲချပြီးအောက်တွင်ရှိသောခလုတ်ကိုနှိပ်ပါ။",
75888
+ confirmDelete: "ဤမှတ်တမ်းကိုဖျက်မည်မှာ သေချာပါသလား?",
75889
+ keyDuplicationError: "ဤတန်ဖိုးသည်ထူးခြားဖြစ်ရပါမည်။",
75890
+ addColumn: "ကော်လံထည့်ရန်",
75891
+ addRow: "တန်းထည့်ရန်",
75892
+ removeRow: "ဖယ်ရှားရန်",
75893
+ emptyRowsText: "တန်းများမရှိပါ။",
75894
+ addPanel: "အသစ်ထည့်ပါ",
75895
+ removePanel: "ဖယ်ရှားပါ",
75896
+ showDetails: "အသေးစိတ်ပြရန်",
75897
+ hideDetails: "အသေးစိတ်ဖျောက်ရန်",
75898
+ choices_Item: "အရာ",
75899
+ matrix_column: "ကော်လံ",
75900
+ matrix_row: "တန်း",
75901
+ multipletext_itemname: "စာသား",
75902
+ savingData: "ရလဒ်များကိုဆာဗာတွင်သိမ်းဆည်းနေသည်...",
75903
+ savingDataError: "အမှားတစ်ခုဖြစ်ပြီး ရလဒ်များကိုသိမ်းဆည်း၍မရနိုင်ပါ။",
75904
+ savingDataSuccess: "ရလဒ်များကိုအောင်မြင်စွာသိမ်းဆည်းပြီးပါပြီ။",
75905
+ savingExceedSize: "သင့်ဖြေဆိုမှုသည် 64KB ကျော်နေပါသည်။",
75906
+ saveAgainButton: "ထပ်ကြိုးစားရန်",
75907
+ timerMin: "မိနစ်",
75908
+ timerSec: "စက္ကန့်",
75909
+ clearCaption: "ရှင်းလင်းရန်",
75910
+ signaturePlaceHolder: "ဤနေရာတွင်လက်မှတ်ရေးပါ",
75911
+ confirmRemoveFile: "ဤဖိုင်အားဖယ်ရှားမည်မှာ သေချာပါသလား: {0}?",
75912
+ ok: "အိုကေ",
75913
+ cancel: "ပယ်ဖျက်ပါ"
75914
+ };
75915
+ setupLocale({ localeCode: "mm", strings: burmeseStrings, nativeName: "မြန်မာ", englishName: "Burmese" });
75916
+
75768
75917
  // CONCATENATED MODULE: ./packages/survey-core/src/localization/catalan.ts
75769
75918
 
75770
75919
  var catalanSurveyStrings = {
@@ -82403,6 +82552,7 @@ setupLocale({ localeCode: "fil", strings: philippinesStrings, nativeName: "filip
82403
82552
 
82404
82553
 
82405
82554
 
82555
+
82406
82556
 
82407
82557
 
82408
82558
  // CONCATENATED MODULE: ./src/entries/chunks/localization.ts
@@ -86784,13 +86934,14 @@ var dropdown_base_SurveyQuestionDropdownBase = /** @class */ (function (_super)
86784
86934
  return external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", null, this.question.readOnlyText);
86785
86935
  };
86786
86936
  SurveyQuestionDropdownBase.prototype.renderSelect = function (cssClasses) {
86937
+ var _this = this;
86787
86938
  var _a, _b;
86788
86939
  var selectElement = null;
86789
86940
  if (this.question.isReadOnly) {
86790
86941
  var text = (this.question.selectedItemLocText) ? this.renderLocString(this.question.selectedItemLocText) : "";
86791
86942
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
86792
86943
  // @ts-ignore
86793
- 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() },
86944
+ 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)); } },
86794
86945
  text,
86795
86946
  this.renderReadOnlyElement());
86796
86947
  }
@@ -86824,7 +86975,7 @@ var dropdown_base_SurveyQuestionDropdownBase = /** @class */ (function (_super)
86824
86975
  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,
86825
86976
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
86826
86977
  // @ts-ignore
86827
- 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 },
86978
+ 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)); } },
86828
86979
  dropdownListModel.showHintPrefix ?
86829
86980
  (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.question.cssClasses.hintPrefix },
86830
86981
  external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("span", null, dropdownListModel.hintStringPrefix))) : null,
@@ -87013,7 +87164,7 @@ var reactquestion_tagbox_SurveyQuestionTagbox = /** @class */ (function (_super)
87013
87164
  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,
87014
87165
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
87015
87166
  // @ts-ignore
87016
- 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 },
87167
+ 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)); } },
87017
87168
  external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.question.cssClasses.controlValue },
87018
87169
  items,
87019
87170
  external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](tagbox_filter_TagboxFilterString, { model: dropdownMultiSelectListModel, question: this.question })),
@@ -88717,13 +88868,13 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable = /** @class */ (
88717
88868
  var matrixrow = [];
88718
88869
  var cells = row.cells;
88719
88870
  for (var i = 0; i < cells.length; i++) {
88720
- matrixrow.push(this.renderCell(cells[i], i, cssClasses, reason));
88871
+ matrixrow.push(this.renderCell(cells[i], cssClasses, reason));
88721
88872
  }
88722
88873
  var key = "row" + keyValue;
88723
88874
  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)));
88724
88875
  };
88725
- SurveyQuestionMatrixTable.prototype.renderCell = function (cell, index, cssClasses, reason) {
88726
- var key = "cell" + index;
88876
+ SurveyQuestionMatrixTable.prototype.renderCell = function (cell, cssClasses, reason) {
88877
+ var key = "cell" + cell.id;
88727
88878
  if (cell.hasQuestion) {
88728
88879
  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 }));
88729
88880
  }
@@ -88996,7 +89147,9 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownCell = /** @cla
88996
89147
  };
88997
89148
  SurveyQuestionMatrixDropdownCell.prototype.renderCellContent = function () {
88998
89149
  var content = _super.prototype.renderCellContent.call(this);
88999
- var responsiveTitle = this.cell.showResponsiveTitle ? (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("span", { className: this.cell.responsiveTitleCss }, this.renderLocString(this.cell.responsiveLocTitle))) : null;
89150
+ var responsiveTitle = this.cell.showResponsiveTitle ? (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("span", { className: this.cell.responsiveTitleCss },
89151
+ this.renderLocString(this.cell.responsiveLocTitle),
89152
+ external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](reactquestion_matrixdropdownbase_SurveyQuestionMatrixHeaderRequired, { column: this.cell.column, question: this.cell.matrix }))) : null;
89000
89153
  return external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](external_root_React_commonjs2_react_commonjs_react_amd_react_["Fragment"], null,
89001
89154
  responsiveTitle,
89002
89155
  content);
@@ -89796,7 +89949,7 @@ var list_item_ListItem = /** @class */ (function (_super) {
89796
89949
  var className = this.model.getItemClass(this.item);
89797
89950
  var itemContent = this.item.component || this.model.itemComponent;
89798
89951
  var newElement = ReactElementFactory.Instance.createElement(itemContent, { item: this.item, key: this.item.id, model: this.model });
89799
- 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);
89952
+ 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);
89800
89953
  var separator = this.item.needSeparator ? external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", { className: this.model.cssClasses.itemSeparator }) : null;
89801
89954
  var isVisible = this.model.isItemVisible(this.item);
89802
89955
  var style = {
@@ -90476,7 +90629,7 @@ var imagepicker_SurveyQuestionImagePickerItem = /** @class */ (function (_super)
90476
90629
  external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.question.cssClasses.itemDecorator },
90477
90630
  external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.question.cssClasses.imageContainer },
90478
90631
  !!this.question.cssClasses.checkedItemDecorator ?
90479
- 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,
90632
+ 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,
90480
90633
  control),
90481
90634
  text))));
90482
90635
  return renderedItem;