survey-react 1.12.41 → 1.12.42

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/defaultV2.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.41
2
+ * surveyjs - Survey JavaScript library v1.12.42
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/defaultV2.min.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.41
2
+ * surveyjs - Survey JavaScript library v1.12.42
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/modern.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.41
2
+ * surveyjs - Survey JavaScript library v1.12.42
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/modern.min.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.41
2
+ * surveyjs - Survey JavaScript library v1.12.42
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-react",
3
- "version": "1.12.41",
3
+ "version": "1.12.42",
4
4
  "description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
5
5
  "keywords": [
6
6
  "Survey",
package/survey.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.41
2
+ * surveyjs - Survey JavaScript library v1.12.42
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/survey.min.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.41
2
+ * surveyjs - Survey JavaScript library v1.12.42
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/survey.react.d.ts CHANGED
@@ -463,6 +463,7 @@ declare module "packages/survey-core/src/expressions/expressions" {
463
463
  get expression(): Operand;
464
464
  getType(): string;
465
465
  toString(func?: (op: Operand) => string): string;
466
+ private get isRigtOperator();
466
467
  protected isContentEqual(op: Operand): boolean;
467
468
  hasFunction(): boolean;
468
469
  protected addChildrenToList(list: Array<Operand>): void;
@@ -611,7 +612,6 @@ declare module "packages/survey-core/src/conditionsParser" {
611
612
  }
612
613
  export class ConditionsParser {
613
614
  private conditionError;
614
- private static parserCache;
615
615
  private patchExpression;
616
616
  createCondition(text: string): Operand;
617
617
  parseExpression(text: string): Operand;
@@ -3308,7 +3308,7 @@ declare module "packages/survey-core/src/question_custom" {
3308
3308
  private getValueForContentPanel;
3309
3309
  private setNewValueIntoQuestion;
3310
3310
  addConditionObjectsByContext(objects: Array<IConditionObject>, context: any): void;
3311
- protected collectNestedQuestionsCore(questions: Question[], visibleOnly: boolean): void;
3311
+ protected collectNestedQuestionsCore(questions: Question[], visibleOnly: boolean, includeItSelf: boolean): void;
3312
3312
  protected convertDataValue(name: string, newValue: any): any;
3313
3313
  protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
3314
3314
  private setValuesIntoQuestions;
@@ -7230,7 +7230,7 @@ declare module "packages/survey-core/src/question_paneldynamic" {
7230
7230
  private iscorrectValueWithPostPrefix;
7231
7231
  getSharedQuestionFromArray(name: string, panelIndex: number): Question;
7232
7232
  addConditionObjectsByContext(objects: Array<IConditionObject>, context: any): void;
7233
- protected collectNestedQuestionsCore(questions: Question[], visibleOnly: boolean): void;
7233
+ protected collectNestedQuestionsCore(questions: Question[], visibleOnly: boolean, includeItSelf: boolean): void;
7234
7234
  getConditionJson(operator?: string, path?: string): any;
7235
7235
  protected onReadOnlyChanged(): void;
7236
7236
  private updateNoEntriesTextDefaultLoc;
@@ -9254,6 +9254,7 @@ declare module "packages/survey-core/src/question_text" {
9254
9254
  get maskInstance(): IInputMask;
9255
9255
  get inputValue(): string;
9256
9256
  set inputValue(val: string);
9257
+ getExpressionValue(val: any): any;
9257
9258
  protected convertToCorrectValue(val: any): any;
9258
9259
  protected onChangeQuestionValue(newValue: any): void;
9259
9260
  private updateInputValue;
@@ -9561,7 +9562,7 @@ declare module "packages/survey-core/src/question_multipletext" {
9561
9562
  getItemByName(name: string): MultipleTextItemModel;
9562
9563
  getElementsInDesign(includeHidden?: boolean): Array<IElement>;
9563
9564
  addConditionObjectsByContext(objects: Array<IConditionObject>, context: any): void;
9564
- protected collectNestedQuestionsCore(questions: Question[], visibleOnly: boolean): void;
9565
+ protected collectNestedQuestionsCore(questions: Question[], visibleOnly: boolean, includeItSelf: boolean): void;
9565
9566
  getConditionJson(operator?: string, path?: string): any;
9566
9567
  locStrsChanged(): void;
9567
9568
  localeChanged(): void;
@@ -14200,9 +14201,9 @@ declare module "packages/survey-core/src/question" {
14200
14201
  * @param visibleOnly A Boolean value that specifies whether to include only visible nested questions.
14201
14202
  * @returns An array of nested questions.
14202
14203
  */
14203
- getNestedQuestions(visibleOnly?: boolean): Array<Question>;
14204
- collectNestedQuestions(questions: Array<Question>, visibleOnly?: boolean): void;
14205
- protected collectNestedQuestionsCore(questions: Array<Question>, visibleOnly: boolean): void;
14204
+ getNestedQuestions(visibleOnly?: boolean, includeItSelf?: boolean): Array<Question>;
14205
+ collectNestedQuestions(questions: Array<Question>, visibleOnly?: boolean, includeItSelf?: boolean): void;
14206
+ protected collectNestedQuestionsCore(questions: Array<Question>, visibleOnly: boolean, includeItSelf: boolean): void;
14206
14207
  getConditionJson(operator?: string, path?: string): any;
14207
14208
  hasErrors(fireCallback?: boolean, rec?: any): boolean;
14208
14209
  /**
@@ -14248,6 +14249,7 @@ declare module "packages/survey-core/src/question" {
14248
14249
  protected isTextValue(): boolean;
14249
14250
  protected getIsInputTextUpdate(): boolean;
14250
14251
  get requireStrictCompare(): boolean;
14252
+ getExpressionValue(val: any): any;
14251
14253
  private getDataLocNotification;
14252
14254
  get isInputTextUpdate(): boolean;
14253
14255
  protected setNewValueInData(newValue: any): void;
@@ -14943,6 +14945,7 @@ declare module "packages/survey-core/src/question_matrixdropdownbase" {
14943
14945
  onShowInMultipleColumnsChanged(column: MatrixDropdownColumn): void;
14944
14946
  onColumnVisibilityChanged(column: MatrixDropdownColumn): void;
14945
14947
  onColumnCellTypeChanged(column: MatrixDropdownColumn): void;
14948
+ private updateDefaultRowValue;
14946
14949
  private resetTableAndRows;
14947
14950
  getRowTitleWidth(): string;
14948
14951
  get hasFooter(): boolean;
@@ -15058,8 +15061,8 @@ declare module "packages/survey-core/src/question_matrixdropdownbase" {
15058
15061
  addConditionObjectsByContext(objects: Array<IConditionObject>, context: any): void;
15059
15062
  onHidingContent(): void;
15060
15063
  protected getIsReadyNestedQuestions(): Array<Question>;
15061
- protected collectNestedQuestionsCore(questions: Question[], visibleOnly: boolean): void;
15062
- protected collectNestedQuestonsInRows(rows: Array<MatrixDropdownRowModelBase>, questions: Question[], visibleOnly: boolean): void;
15064
+ protected collectNestedQuestionsCore(questions: Question[], visibleOnly: boolean, includeItSelf: boolean): void;
15065
+ protected collectNestedQuestonsInRows(rows: Array<MatrixDropdownRowModelBase>, questions: Question[], visibleOnly: boolean, includeItSelf: boolean): void;
15063
15066
  protected getConditionObjectRowName(index: number): string;
15064
15067
  protected getConditionObjectRowText(index: number): string;
15065
15068
  protected getConditionObjectsRowIndeces(): Array<number>;
package/survey.react.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.41
2
+ * surveyjs - Survey JavaScript library v1.12.42
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -2903,6 +2903,8 @@ var surveyLocalization = {
2903
2903
  loc = "cs";
2904
2904
  if (loc === "ua")
2905
2905
  loc = "uk";
2906
+ if (loc === "rs")
2907
+ loc = "sr";
2906
2908
  return loc;
2907
2909
  },
2908
2910
  getLocaleStrings: function (loc) {
@@ -5097,7 +5099,7 @@ var conditionProcessValue_ProcessValue = /** @class */ (function () {
5097
5099
  if (!values)
5098
5100
  values = this.values;
5099
5101
  var res = this.getValueCore(text, values);
5100
- return res.value;
5102
+ return res.onProcessValue ? res.onProcessValue(res.value) : res.value;
5101
5103
  };
5102
5104
  ProcessValue.prototype.setValue = function (obj, text, value) {
5103
5105
  if (!text)
@@ -5128,6 +5130,7 @@ var conditionProcessValue_ProcessValue = /** @class */ (function () {
5128
5130
  valueInfo.value = res.value;
5129
5131
  valueInfo.hasValue = res.hasValue;
5130
5132
  valueInfo.path = res.hasValue ? res.path : null;
5133
+ valueInfo.onProcessValue = res.onProcessValue;
5131
5134
  valueInfo.sctrictCompare = res.sctrictCompare;
5132
5135
  };
5133
5136
  ProcessValue.prototype.isAnyKeyChanged = function (keys, usedNames) {
@@ -5180,7 +5183,7 @@ var conditionProcessValue_ProcessValue = /** @class */ (function () {
5180
5183
  ProcessValue.prototype.getValueCore = function (text, values) {
5181
5184
  var question = this.getQuestionDirectly(text);
5182
5185
  if (question) {
5183
- return { hasValue: true, value: question.value, path: [text], sctrictCompare: question.requireStrictCompare };
5186
+ return { hasValue: true, value: question.value, onProcessValue: function (val) { return question.getExpressionValue(val); }, path: [text], sctrictCompare: question.requireStrictCompare };
5184
5187
  }
5185
5188
  var res = this.getValueFromValues(text, values);
5186
5189
  if (!!text && !res.hasValue) {
@@ -6036,10 +6039,18 @@ var UnaryOperand = /** @class */ (function (_super) {
6036
6039
  if (!!res)
6037
6040
  return res;
6038
6041
  }
6039
- return (expressions_OperandMaker.operatorToString(this.operatorName) +
6040
- " " +
6041
- this.expression.toString(func));
6042
+ var opName = expressions_OperandMaker.operatorToString(this.operator);
6043
+ var exp = this.expression.toString(func);
6044
+ return this.isRigtOperator ? exp + " " + opName : opName + " " + exp;
6042
6045
  };
6046
+ Object.defineProperty(UnaryOperand.prototype, "isRigtOperator", {
6047
+ get: function () {
6048
+ var st = this.operatorName.toLowerCase();
6049
+ return st === "notempty" || st === "empty";
6050
+ },
6051
+ enumerable: false,
6052
+ configurable: true
6053
+ });
6043
6054
  UnaryOperand.prototype.isContentEqual = function (op) {
6044
6055
  var uOp = op;
6045
6056
  return uOp.operator == this.operator && this.areOperatorsEquals(this.expression, uOp.expression);
@@ -6244,9 +6255,13 @@ var expressions_Variable = /** @class */ (function (_super) {
6244
6255
  Variable.prototype.evaluate = function (processValue) {
6245
6256
  this.valueInfo.name = this.variableName;
6246
6257
  processValue.getValueInfo(this.valueInfo);
6247
- return this.valueInfo.hasValue
6248
- ? this.getCorrectValue(this.valueInfo.value)
6249
- : null;
6258
+ if (!this.valueInfo.hasValue)
6259
+ return null;
6260
+ var val = this.valueInfo.value;
6261
+ if (this.valueInfo.onProcessValue) {
6262
+ val = this.valueInfo.onProcessValue(val);
6263
+ }
6264
+ return this.getCorrectValue(val);
6250
6265
  };
6251
6266
  Variable.prototype.setVariables = function (variables) {
6252
6267
  variables.push(this.variableName);
@@ -9608,14 +9623,7 @@ var conditionsParser_ConditionsParser = /** @class */ (function () {
9608
9623
  };
9609
9624
  ConditionsParser.prototype.parseExpression = function (text) {
9610
9625
  try {
9611
- var result = ConditionsParser.parserCache[text];
9612
- if (result === undefined) {
9613
- result = parse(this.patchExpression(text));
9614
- if (!result.hasAsyncFunction()) {
9615
- ConditionsParser.parserCache[text] = result;
9616
- }
9617
- }
9618
- return result;
9626
+ return parse(this.patchExpression(text));
9619
9627
  }
9620
9628
  catch (e) {
9621
9629
  if (e instanceof SyntaxError) {
@@ -9630,7 +9638,6 @@ var conditionsParser_ConditionsParser = /** @class */ (function () {
9630
9638
  enumerable: false,
9631
9639
  configurable: true
9632
9640
  });
9633
- ConditionsParser.parserCache = {};
9634
9641
  return ConditionsParser;
9635
9642
  }());
9636
9643
 
@@ -19634,14 +19641,19 @@ var question_Question = /** @class */ (function (_super) {
19634
19641
  if (run1 === "var")
19635
19642
  return true;
19636
19643
  if (!secondRunner)
19637
- return run1 === "func";
19644
+ return run1 === "func" || run1 === "const";
19638
19645
  var run2 = this.canExecuteTriggerByKeysCore(keys, secondRunner);
19639
19646
  return run2 !== "";
19640
19647
  };
19641
19648
  Question.prototype.canExecuteTriggerByKeysCore = function (keys, runner) {
19649
+ if (!runner.expression)
19650
+ return "";
19642
19651
  var vars = runner.getVariables();
19643
- if ((!vars || vars.length === 0) && runner.hasFunction())
19644
- return "func";
19652
+ if ((!Array.isArray(vars) || vars.length === 0)) {
19653
+ if (runner.hasFunction())
19654
+ return "func";
19655
+ return "const";
19656
+ }
19645
19657
  return new conditionProcessValue_ProcessValue().isAnyKeyChanged(keys, vars) ? "var" : "";
19646
19658
  };
19647
19659
  Question.prototype.runTriggers = function (name, value, keys) {
@@ -21644,21 +21656,23 @@ var question_Question = /** @class */ (function (_super) {
21644
21656
  * @param visibleOnly A Boolean value that specifies whether to include only visible nested questions.
21645
21657
  * @returns An array of nested questions.
21646
21658
  */
21647
- Question.prototype.getNestedQuestions = function (visibleOnly) {
21659
+ Question.prototype.getNestedQuestions = function (visibleOnly, includeItSelf) {
21648
21660
  if (visibleOnly === void 0) { visibleOnly = false; }
21661
+ if (includeItSelf === void 0) { includeItSelf = false; }
21649
21662
  var res = [];
21650
- this.collectNestedQuestions(res, visibleOnly);
21651
- if (res.length === 1 && res[0] === this)
21663
+ this.collectNestedQuestions(res, visibleOnly, includeItSelf);
21664
+ if (!includeItSelf && res.length === 1 && res[0] === this)
21652
21665
  return [];
21653
21666
  return res;
21654
21667
  };
21655
- Question.prototype.collectNestedQuestions = function (questions, visibleOnly) {
21668
+ Question.prototype.collectNestedQuestions = function (questions, visibleOnly, includeItSelf) {
21656
21669
  if (visibleOnly === void 0) { visibleOnly = false; }
21670
+ if (includeItSelf === void 0) { includeItSelf = false; }
21657
21671
  if (visibleOnly && !this.isVisible)
21658
21672
  return;
21659
- this.collectNestedQuestionsCore(questions, visibleOnly);
21673
+ this.collectNestedQuestionsCore(questions, visibleOnly, includeItSelf);
21660
21674
  };
21661
- Question.prototype.collectNestedQuestionsCore = function (questions, visibleOnly) {
21675
+ Question.prototype.collectNestedQuestionsCore = function (questions, visibleOnly, includeItSelf) {
21662
21676
  questions.push(this);
21663
21677
  };
21664
21678
  Question.prototype.getConditionJson = function (operator, path) {
@@ -21882,6 +21896,7 @@ var question_Question = /** @class */ (function (_super) {
21882
21896
  enumerable: false,
21883
21897
  configurable: true
21884
21898
  });
21899
+ Question.prototype.getExpressionValue = function (val) { return val; };
21885
21900
  Question.prototype.getDataLocNotification = function () {
21886
21901
  return this.isInputTextUpdate ? "text" : false;
21887
21902
  };
@@ -25927,9 +25942,12 @@ var question_custom_QuestionCompositeModel = /** @class */ (function (_super) {
25927
25942
  });
25928
25943
  }
25929
25944
  };
25930
- QuestionCompositeModel.prototype.collectNestedQuestionsCore = function (questions, visibleOnly) {
25945
+ QuestionCompositeModel.prototype.collectNestedQuestionsCore = function (questions, visibleOnly, includeItSelf) {
25931
25946
  if (!this.contentPanel)
25932
25947
  return;
25948
+ if (includeItSelf) {
25949
+ questions.push(this);
25950
+ }
25933
25951
  this.contentPanel.questions.forEach(function (q) { return q.collectNestedQuestions(questions, visibleOnly); });
25934
25952
  };
25935
25953
  QuestionCompositeModel.prototype.convertDataValue = function (name, newValue) {
@@ -30593,8 +30611,21 @@ var question_matrixdropdownbase_QuestionMatrixDropdownModelBase = /** @class */
30593
30611
  this.resetTableAndRows();
30594
30612
  };
30595
30613
  QuestionMatrixDropdownModelBase.prototype.onColumnCellTypeChanged = function (column) {
30614
+ this.updateDefaultRowValue(column);
30596
30615
  this.resetTableAndRows();
30597
30616
  };
30617
+ QuestionMatrixDropdownModelBase.prototype.updateDefaultRowValue = function (column) {
30618
+ var val = this.defaultRowValue;
30619
+ if (!!val) {
30620
+ if (column.cellType === "file" && val[column.name]) {
30621
+ delete val[column.name];
30622
+ if (Object.keys(val).length === 0) {
30623
+ val = undefined;
30624
+ }
30625
+ this.defaultRowValue = val;
30626
+ }
30627
+ }
30628
+ };
30598
30629
  QuestionMatrixDropdownModelBase.prototype.resetTableAndRows = function () {
30599
30630
  this.clearGeneratedRows();
30600
30631
  this.resetRenderedTable();
@@ -31280,20 +31311,23 @@ var question_matrixdropdownbase_QuestionMatrixDropdownModelBase = /** @class */
31280
31311
  if (!this.generatedVisibleRows)
31281
31312
  return [];
31282
31313
  var res = new Array();
31283
- this.collectNestedQuestonsInRows(this.generatedVisibleRows, res, false);
31314
+ this.collectNestedQuestonsInRows(this.generatedVisibleRows, res, false, false);
31284
31315
  if (!!this.generatedTotalRow) {
31285
- this.collectNestedQuestonsInRows([this.generatedTotalRow], res, false);
31316
+ this.collectNestedQuestonsInRows([this.generatedTotalRow], res, false, false);
31286
31317
  }
31287
31318
  return res;
31288
31319
  };
31289
- QuestionMatrixDropdownModelBase.prototype.collectNestedQuestionsCore = function (questions, visibleOnly) {
31290
- this.collectNestedQuestonsInRows(this.visibleRows, questions, visibleOnly);
31320
+ QuestionMatrixDropdownModelBase.prototype.collectNestedQuestionsCore = function (questions, visibleOnly, includeItSelf) {
31321
+ if (includeItSelf) {
31322
+ questions.push(this);
31323
+ }
31324
+ this.collectNestedQuestonsInRows(this.visibleRows, questions, visibleOnly, includeItSelf);
31291
31325
  };
31292
- QuestionMatrixDropdownModelBase.prototype.collectNestedQuestonsInRows = function (rows, questions, visibleOnly) {
31326
+ QuestionMatrixDropdownModelBase.prototype.collectNestedQuestonsInRows = function (rows, questions, visibleOnly, includeItSelf) {
31293
31327
  if (!Array.isArray(rows))
31294
31328
  return;
31295
31329
  rows.forEach(function (row) {
31296
- row.questions.forEach(function (q) { return q.collectNestedQuestions(questions, visibleOnly); });
31330
+ row.questions.forEach(function (q) { return q.collectNestedQuestions(questions, visibleOnly, includeItSelf); });
31297
31331
  });
31298
31332
  };
31299
31333
  QuestionMatrixDropdownModelBase.prototype.getConditionObjectRowName = function (index) {
@@ -47016,8 +47050,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
47016
47050
  SurveyModel.prototype.getNestedQuestionsByQuestionArray = function (res, visibleOnly) {
47017
47051
  var res2 = [];
47018
47052
  res.forEach(function (q) {
47019
- res2.push(q);
47020
- q.getNestedQuestions(visibleOnly).forEach(function (nQ) { return res2.push(nQ); });
47053
+ q.getNestedQuestions(visibleOnly, true).forEach(function (nQ) { return res2.push(nQ); });
47021
47054
  });
47022
47055
  return res2;
47023
47056
  };
@@ -56238,6 +56271,11 @@ var question_text_QuestionTextModel = /** @class */ (function (_super) {
56238
56271
  enumerable: false,
56239
56272
  configurable: true
56240
56273
  });
56274
+ QuestionTextModel.prototype.getExpressionValue = function (val) {
56275
+ if (!this.maskTypeIsEmpty && this.maskSettings.saveMaskedValue)
56276
+ return this.maskInstance.getUnmaskedValue(val);
56277
+ return val;
56278
+ };
56241
56279
  QuestionTextModel.prototype.convertToCorrectValue = function (val) {
56242
56280
  if (val !== undefined && val !== null && typeof val !== "string" && !this.maskTypeIsEmpty && this.maskSettings.saveMaskedValue) {
56243
56281
  return this.maskInstance.getMaskedValue(val);
@@ -57475,7 +57513,10 @@ var question_multipletext_QuestionMultipleTextModel = /** @class */ (function (_
57475
57513
  });
57476
57514
  }
57477
57515
  };
57478
- QuestionMultipleTextModel.prototype.collectNestedQuestionsCore = function (questions, visibleOnly) {
57516
+ QuestionMultipleTextModel.prototype.collectNestedQuestionsCore = function (questions, visibleOnly, includeItSelf) {
57517
+ if (includeItSelf) {
57518
+ questions.push(this);
57519
+ }
57479
57520
  this.items.forEach(function (item) { return item.editor.collectNestedQuestions(questions, visibleOnly); });
57480
57521
  };
57481
57522
  QuestionMultipleTextModel.prototype.getConditionJson = function (operator, path) {
@@ -69246,12 +69287,15 @@ var question_paneldynamic_QuestionPanelDynamicModel = /** @class */ (function (_
69246
69287
  }
69247
69288
  }
69248
69289
  };
69249
- QuestionPanelDynamicModel.prototype.collectNestedQuestionsCore = function (questions, visibleOnly) {
69290
+ QuestionPanelDynamicModel.prototype.collectNestedQuestionsCore = function (questions, visibleOnly, includeItSelf) {
69291
+ if (includeItSelf) {
69292
+ questions.push(this);
69293
+ }
69250
69294
  var panels = visibleOnly ? this.visiblePanelsCore : this.panelsCore;
69251
69295
  if (!Array.isArray(panels))
69252
69296
  return;
69253
69297
  panels.forEach(function (panel) {
69254
- panel.questions.forEach(function (q) { return q.collectNestedQuestions(questions, visibleOnly); });
69298
+ panel.questions.forEach(function (q) { return q.collectNestedQuestions(questions, visibleOnly, includeItSelf); });
69255
69299
  });
69256
69300
  };
69257
69301
  QuestionPanelDynamicModel.prototype.getConditionJson = function (operator, path) {
@@ -73239,9 +73283,9 @@ Serializer.addClass("currencymask", [
73239
73283
 
73240
73284
  var Version;
73241
73285
  var ReleaseDate;
73242
- Version = "" + "1.12.41";
73286
+ Version = "" + "1.12.42";
73243
73287
  settings.version = Version;
73244
- ReleaseDate = "" + "2025-06-17";
73288
+ ReleaseDate = "" + "2025-06-24";
73245
73289
  function checkLibraryVersion(ver, libraryName) {
73246
73290
  if (Version != ver) {
73247
73291
  var str = "survey-core has version '" + Version + "' and " + libraryName
@@ -81236,7 +81280,7 @@ var serbianStrings = {
81236
81280
  ok: "U redu",
81237
81281
  cancel: "Otkaži"
81238
81282
  };
81239
- setupLocale({ localeCode: "rs", strings: serbianStrings, nativeName: "srpski", englishName: "Serbian" });
81283
+ setupLocale({ localeCode: "sr", strings: serbianStrings, nativeName: "srpski", englishName: "Serbian" });
81240
81284
  // The following strings have been translated by a machine translation service
81241
81285
  // Remove those strings that you have corrected manually
81242
81286
  // indexText: "{0} of {1}" => "{0} {1}"