survey-react 1.12.48 → 1.12.49

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.48
2
+ * surveyjs - Survey JavaScript library v1.12.49
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.48
2
+ * surveyjs - Survey JavaScript library v1.12.49
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.48
2
+ * surveyjs - Survey JavaScript library v1.12.49
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.48
2
+ * surveyjs - Survey JavaScript library v1.12.49
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.48",
3
+ "version": "1.12.49",
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.48
2
+ * surveyjs - Survey JavaScript library v1.12.49
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.48
2
+ * surveyjs - Survey JavaScript library v1.12.49
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
@@ -3836,6 +3836,7 @@ declare module "packages/survey-core/src/panel" {
3836
3836
  */
3837
3837
  removeElement(element: IElement): boolean;
3838
3838
  removeQuestion(question: Question): void;
3839
+ private isRunningConditions;
3839
3840
  runCondition(values: HashTable<any>, properties: HashTable<any>): void;
3840
3841
  onAnyValueChanged(name: string, questionName: string): void;
3841
3842
  checkBindings(valueName: string, value: any): void;
@@ -12368,6 +12369,7 @@ declare module "packages/survey-core/src/survey" {
12368
12369
  createNewPage(name: string): PageModel;
12369
12370
  private getValueChangeReason;
12370
12371
  protected questionOnValueChanging(valueName: string, newValue: any, questionValueName?: string): any;
12372
+ private getLocNotification;
12371
12373
  protected updateQuestionValue(valueName: string, newValue: any): void;
12372
12374
  private checkQuestionErrorOnValueChanged;
12373
12375
  private checkQuestionErrorOnValueChangedCore;
package/survey.react.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.48
2
+ * surveyjs - Survey JavaScript library v1.12.49
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
  */
@@ -38011,6 +38011,8 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
38011
38011
  configurable: true
38012
38012
  });
38013
38013
  PanelModelBase.prototype.childVisibilityChanged = function () {
38014
+ if (this.isRunningConditions)
38015
+ return;
38014
38016
  var newIsVisibleValue = this.getIsPageVisible(null);
38015
38017
  var oldIsVisibleValue = this.getPropertyValue("isVisible", true);
38016
38018
  if (newIsVisibleValue !== oldIsVisibleValue) {
@@ -38690,10 +38692,17 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
38690
38692
  if (this.isDesignMode || this.isLoadingFromJson)
38691
38693
  return;
38692
38694
  var elements = this.elements.slice();
38695
+ var prevContentVisibility = this.getIsPageVisible();
38696
+ this.isRunningConditions = true;
38693
38697
  for (var i = 0; i < elements.length; i++) {
38694
38698
  elements[i].runCondition(values, properties);
38695
38699
  }
38696
38700
  this.runConditionCore(values, properties);
38701
+ var newContentVisibility = this.getIsPageVisible();
38702
+ this.isRunningConditions = false;
38703
+ if (prevContentVisibility !== newContentVisibility) {
38704
+ this.childVisibilityChanged();
38705
+ }
38697
38706
  };
38698
38707
  PanelModelBase.prototype.onAnyValueChanged = function (name, questionName) {
38699
38708
  var els = this.elements;
@@ -47176,6 +47185,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
47176
47185
  this.onValueChanging.fire(this, options);
47177
47186
  return options.value;
47178
47187
  };
47188
+ SurveyModel.prototype.getLocNotification = function (loc, value, oldValue) {
47189
+ return loc || helpers_Helpers.isTwoValueEquals(value, oldValue, false, true, false);
47190
+ };
47179
47191
  SurveyModel.prototype.updateQuestionValue = function (valueName, newValue) {
47180
47192
  if (this.isLoadingFromJson)
47181
47193
  return;
@@ -48012,6 +48024,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
48012
48024
  newValue = this.getUnbindValue(newValue);
48013
48025
  this.setDataValueCore(this.valuesHash, name, newValue);
48014
48026
  }
48027
+ locNotification = this.getLocNotification(locNotification, newValue, oldValue);
48015
48028
  this.updateOnSetValue(name, newValue, oldValue, locNotification, allowNotifyValueChanged, questionName);
48016
48029
  };
48017
48030
  SurveyModel.prototype.isValueEmpyOnSetValue = function (name, val) {
@@ -48171,6 +48184,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
48171
48184
  return;
48172
48185
  var commentName = name + this.commentSuffix;
48173
48186
  newValue = this.questionOnValueChanging(commentName, newValue, name);
48187
+ locNotification = this.getLocNotification(locNotification, newValue, this.getComment(name));
48174
48188
  if (this.isValueEmpty(newValue)) {
48175
48189
  this.deleteDataValueCore(this.valuesHash, commentName);
48176
48190
  }
@@ -73333,9 +73347,9 @@ Serializer.addClass("currencymask", [
73333
73347
 
73334
73348
  var Version;
73335
73349
  var ReleaseDate;
73336
- Version = "" + "1.12.48";
73350
+ Version = "" + "1.12.49";
73337
73351
  settings.version = Version;
73338
- ReleaseDate = "" + "2025-08-06";
73352
+ ReleaseDate = "" + "2025-08-11";
73339
73353
  function checkLibraryVersion(ver, libraryName) {
73340
73354
  if (Version != ver) {
73341
73355
  var str = "survey-core has version '" + Version + "' and " + libraryName