survey-react 1.12.42 → 1.12.44

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.42
2
+ * surveyjs - Survey JavaScript library v1.12.44
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.42
2
+ * surveyjs - Survey JavaScript library v1.12.44
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.42
2
+ * surveyjs - Survey JavaScript library v1.12.44
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.42
2
+ * surveyjs - Survey JavaScript library v1.12.44
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.42",
3
+ "version": "1.12.44",
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.42
2
+ * surveyjs - Survey JavaScript library v1.12.44
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.42
2
+ * surveyjs - Survey JavaScript library v1.12.44
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
@@ -12503,6 +12503,7 @@ declare module "packages/survey-core/src/survey" {
12503
12503
  */
12504
12504
  setValue(name: string, newQuestionValue: any, locNotification?: any, allowNotifyValueChanged?: boolean, questionName?: string): void;
12505
12505
  private isValueEmpyOnSetValue;
12506
+ private nofifyQuesitonHash;
12506
12507
  private updateOnSetValue;
12507
12508
  private isValueEqual;
12508
12509
  protected doOnPageAdded(page: PageModel): void;
package/survey.react.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.42
2
+ * surveyjs - Survey JavaScript library v1.12.44
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
  */
@@ -19003,7 +19003,6 @@ var question_decorate = (undefined && undefined.__decorate) || function (decorat
19003
19003
 
19004
19004
 
19005
19005
 
19006
-
19007
19006
  var TriggerExpressionInfo = /** @class */ (function () {
19008
19007
  function TriggerExpressionInfo(name, canRun, doComplete) {
19009
19008
  this.name = name;
@@ -19577,7 +19576,7 @@ var question_Question = /** @class */ (function (_super) {
19577
19576
  Question.prototype.ensureSetValueExpressionRunner = function () {
19578
19577
  var _this = this;
19579
19578
  if (!this.setValueExpressionRunner) {
19580
- this.setValueExpressionRunner = new ExpressionRunner(this.setValueExpression);
19579
+ this.setValueExpressionRunner = this.createExpressionRunner(this.setValueExpression);
19581
19580
  this.setValueExpressionRunner.onRunComplete = function (res) {
19582
19581
  _this.runExpressionSetValue(res);
19583
19582
  };
@@ -19610,7 +19609,7 @@ var question_Question = /** @class */ (function (_super) {
19610
19609
  return;
19611
19610
  }
19612
19611
  if (!info.runner) {
19613
- info.runner = new ExpressionRunner(expression);
19612
+ info.runner = this.createExpressionRunner(expression);
19614
19613
  info.runner.onRunComplete = function (res) {
19615
19614
  if (res === true) {
19616
19615
  info.doComplete();
@@ -23914,7 +23913,7 @@ var choicesRestful_ChoicesRestful = /** @class */ (function (_super) {
23914
23913
  * @see titleName
23915
23914
  */
23916
23915
  get: function () {
23917
- return this.getPropertyValue("valueName", "");
23916
+ return this.getPropertyValue("valueName") || "";
23918
23917
  },
23919
23918
  set: function (val) {
23920
23919
  this.setPropertyValue("valueName", val);
@@ -23931,7 +23930,7 @@ var choicesRestful_ChoicesRestful = /** @class */ (function (_super) {
23931
23930
  * @see valueName
23932
23931
  */
23933
23932
  get: function () {
23934
- return this.getPropertyValue("titleName", "");
23933
+ return this.getPropertyValue("titleName") || "";
23935
23934
  },
23936
23935
  set: function (val) {
23937
23936
  this.setPropertyValue("titleName", val);
@@ -23948,7 +23947,7 @@ var choicesRestful_ChoicesRestful = /** @class */ (function (_super) {
23948
23947
  * @see valueName
23949
23948
  */
23950
23949
  get: function () {
23951
- return this.getPropertyValue("imageLinkName", "");
23950
+ return this.getPropertyValue("imageLinkName") || "";
23952
23951
  },
23953
23952
  set: function (val) {
23954
23953
  this.setPropertyValue("imageLinkName", val);
@@ -40422,6 +40421,9 @@ function getTOCItems(survey, onAction) {
40422
40421
  if (page.isPage) {
40423
40422
  return survey.tryNavigateToPage(page);
40424
40423
  }
40424
+ else if (page.isPanel) {
40425
+ return tryFocusPage(survey, page);
40426
+ }
40425
40427
  },
40426
40428
  visible: new ComputedUpdater(function () {
40427
40429
  return page.isVisible && !(page["isStartPage"]);
@@ -41354,6 +41356,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
41354
41356
  _this.conditionUpdateVisibleIndexes = false;
41355
41357
  _this.conditionNotifyElementsOnAnyValueOrVariableChanged = false;
41356
41358
  _this.isEndLoadingFromJson = null;
41359
+ _this.nofifyQuesitonHash = {};
41357
41360
  _this.questionHashes = {
41358
41361
  names: {},
41359
41362
  namesInsensitive: {},
@@ -48001,12 +48004,16 @@ var survey_SurveyModel = /** @class */ (function (_super) {
48001
48004
  if (locNotification === true || this.isDisposed || this.isRunningElementsBindings)
48002
48005
  return;
48003
48006
  questionName = questionName || name;
48007
+ this.nofifyQuesitonHash[name] = true;
48004
48008
  this.checkTriggersAndRunConditions(name, newValue, oldValue);
48005
- if (allowNotifyValueChanged) {
48006
- this.notifyQuestionOnValueChanged(name, newValue, questionName);
48007
- }
48008
- if (locNotification !== "text") {
48009
- this.tryGoNextPageAutomatic(name);
48009
+ if (this.nofifyQuesitonHash[name]) {
48010
+ if (allowNotifyValueChanged) {
48011
+ this.notifyQuestionOnValueChanged(name, newValue, questionName);
48012
+ }
48013
+ if (locNotification !== "text") {
48014
+ this.tryGoNextPageAutomatic(name);
48015
+ }
48016
+ delete this.nofifyQuesitonHash[name];
48010
48017
  }
48011
48018
  };
48012
48019
  SurveyModel.prototype.isValueEqual = function (name, newValue) {
@@ -49048,7 +49055,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
49048
49055
  var processor = new conditionProcessValue_ProcessValue();
49049
49056
  value = processor.getValue(fromName, this.getFilteredValues());
49050
49057
  }
49051
- this.setTriggerValue(name, value, false);
49058
+ this.setTriggerValue(name, helpers_Helpers.getUnbindValue(value), false);
49052
49059
  };
49053
49060
  SurveyModel.prototype.triggerExecuted = function (trigger) {
49054
49061
  this.onTriggerExecuted.fire(this, { trigger: trigger });
@@ -73283,9 +73290,9 @@ Serializer.addClass("currencymask", [
73283
73290
 
73284
73291
  var Version;
73285
73292
  var ReleaseDate;
73286
- Version = "" + "1.12.42";
73293
+ Version = "" + "1.12.44";
73287
73294
  settings.version = Version;
73288
- ReleaseDate = "" + "2025-06-24";
73295
+ ReleaseDate = "" + "2025-07-09";
73289
73296
  function checkLibraryVersion(ver, libraryName) {
73290
73297
  if (Version != ver) {
73291
73298
  var str = "survey-core has version '" + Version + "' and " + libraryName