survey-react 1.12.48 → 1.12.50

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.50
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.50
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.50
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.50
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.50",
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.50
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.50
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.50
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
  */
@@ -29678,7 +29678,7 @@ var question_matrixdropdownbase_MatrixDropdownRowModelBase = /** @class */ (func
29678
29678
  };
29679
29679
  MatrixDropdownRowModelBase.prototype.getEditingSurveyElement = function () { return undefined; };
29680
29680
  MatrixDropdownRowModelBase.prototype.setValueCore = function (name, newColumnValue, isComment) {
29681
- if (this.isSettingValue)
29681
+ if (this.isSettingValue || this.isCreatingDetailPanel)
29682
29682
  return;
29683
29683
  this.updateQuestionsValue(name, newColumnValue, isComment);
29684
29684
  if (!isComment) {
@@ -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;
@@ -43267,12 +43276,17 @@ var survey_SurveyModel = /** @class */ (function (_super) {
43267
43276
  * [View Demo](https://surveyjs.io/form-library/examples/survey-changenavigation/ (linkStyle))
43268
43277
  */
43269
43278
  SurveyModel.prototype.addNavigationItem = function (val) {
43279
+ var _this = this;
43270
43280
  if (!val.component) {
43271
43281
  val.component = "sv-nav-btn";
43272
43282
  }
43273
43283
  if (!val.innerCss) {
43274
43284
  val.innerCss = this.cssSurveyNavigationButton;
43275
43285
  }
43286
+ var originalActionFunc = val.action;
43287
+ val.action = function () {
43288
+ _this.taskManager.waitAndExecute(function () { return originalActionFunc(); });
43289
+ };
43276
43290
  return this.navigationBar.addAction(val);
43277
43291
  };
43278
43292
  Object.defineProperty(SurveyModel.prototype, "startSurveyText", {
@@ -47176,6 +47190,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
47176
47190
  this.onValueChanging.fire(this, options);
47177
47191
  return options.value;
47178
47192
  };
47193
+ SurveyModel.prototype.getLocNotification = function (loc, value, oldValue) {
47194
+ return loc || helpers_Helpers.isTwoValueEquals(value, oldValue, false, true, false);
47195
+ };
47179
47196
  SurveyModel.prototype.updateQuestionValue = function (valueName, newValue) {
47180
47197
  if (this.isLoadingFromJson)
47181
47198
  return;
@@ -48012,6 +48029,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
48012
48029
  newValue = this.getUnbindValue(newValue);
48013
48030
  this.setDataValueCore(this.valuesHash, name, newValue);
48014
48031
  }
48032
+ locNotification = this.getLocNotification(locNotification, newValue, oldValue);
48015
48033
  this.updateOnSetValue(name, newValue, oldValue, locNotification, allowNotifyValueChanged, questionName);
48016
48034
  };
48017
48035
  SurveyModel.prototype.isValueEmpyOnSetValue = function (name, val) {
@@ -48171,6 +48189,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
48171
48189
  return;
48172
48190
  var commentName = name + this.commentSuffix;
48173
48191
  newValue = this.questionOnValueChanging(commentName, newValue, name);
48192
+ locNotification = this.getLocNotification(locNotification, newValue, this.getComment(name));
48174
48193
  if (this.isValueEmpty(newValue)) {
48175
48194
  this.deleteDataValueCore(this.valuesHash, commentName);
48176
48195
  }
@@ -73333,9 +73352,9 @@ Serializer.addClass("currencymask", [
73333
73352
 
73334
73353
  var Version;
73335
73354
  var ReleaseDate;
73336
- Version = "" + "1.12.48";
73355
+ Version = "" + "1.12.50";
73337
73356
  settings.version = Version;
73338
- ReleaseDate = "" + "2025-08-06";
73357
+ ReleaseDate = "" + "2025-08-19";
73339
73358
  function checkLibraryVersion(ver, libraryName) {
73340
73359
  if (Version != ver) {
73341
73360
  var str = "survey-core has version '" + Version + "' and " + libraryName