survey-react 1.12.31 → 1.12.32

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.31
2
+ * surveyjs - Survey JavaScript library v1.12.32
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.31
2
+ * surveyjs - Survey JavaScript library v1.12.32
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.31
2
+ * surveyjs - Survey JavaScript library v1.12.32
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.31
2
+ * surveyjs - Survey JavaScript library v1.12.32
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.31",
3
+ "version": "1.12.32",
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.31
2
+ * surveyjs - Survey JavaScript library v1.12.32
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.31
2
+ * surveyjs - Survey JavaScript library v1.12.32
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.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.31
2
+ * surveyjs - Survey JavaScript library v1.12.32
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
  */
@@ -38896,7 +38896,7 @@ var panel_PanelModel = /** @class */ (function (_super) {
38896
38896
  return this.showQuestionNumbers !== "off" && this.showQuestionNumbers !== "onpanel";
38897
38897
  };
38898
38898
  PanelModel.prototype.notifySurveyOnVisibilityChanged = function () {
38899
- if (this.survey != null && !this.isLoadingFromJson && !!this.page) {
38899
+ if (this.survey != null && !this.isLoadingFromJson) {
38900
38900
  this.survey.panelVisibilityChanged(this, this.isVisible);
38901
38901
  }
38902
38902
  };
@@ -48044,14 +48044,13 @@ var survey_SurveyModel = /** @class */ (function (_super) {
48044
48044
  });
48045
48045
  };
48046
48046
  SurveyModel.prototype.panelVisibilityChanged = function (panel, newValue) {
48047
- this.updateVisibleIndexes(panel.page);
48048
- if (!newValue) {
48049
- this.changeCurrentSingleElementOnVisibilityChanged();
48047
+ if (!!panel.page) {
48048
+ this.updateVisibleIndexes(panel.page);
48049
+ if (!newValue) {
48050
+ this.changeCurrentSingleElementOnVisibilityChanged();
48051
+ }
48050
48052
  }
48051
- this.onPanelVisibleChanged.fire(this, {
48052
- panel: panel,
48053
- visible: newValue,
48054
- });
48053
+ this.onPanelVisibleChanged.fire(this, { panel: panel, visible: newValue });
48055
48054
  };
48056
48055
  SurveyModel.prototype.questionCreated = function (question) {
48057
48056
  this.onQuestionCreated.fire(this, { question: question });
@@ -51184,8 +51183,10 @@ var question_baseselect_QuestionSelectBase = /** @class */ (function (_super) {
51184
51183
  return this.getQuestionWithChoicesCore(this.findCarryForwardQuestion());
51185
51184
  };
51186
51185
  QuestionSelectBase.prototype.findCarryForwardQuestion = function (data) {
51187
- if (!data)
51188
- data = this.data;
51186
+ var _a;
51187
+ if (!data) {
51188
+ data = this.data || ((_a = this.parentQuestion) === null || _a === void 0 ? void 0 : _a.data);
51189
+ }
51189
51190
  this.carryForwardQuestion = null;
51190
51191
  if (this.choicesFromQuestion && data) {
51191
51192
  this.carryForwardQuestion = data.findQuestionByName(this.choicesFromQuestion);
@@ -68100,6 +68101,7 @@ var question_paneldynamic_QuestionPanelDynamicModel = /** @class */ (function (_
68100
68101
  return;
68101
68102
  if (!this.canBuildPanels || this.wasNotRenderedInSurvey) {
68102
68103
  this.setPropertyValue("panelCount", val);
68104
+ this.updateFooterActions();
68103
68105
  return;
68104
68106
  }
68105
68107
  if (val == this.panelsCore.length || this.useTemplatePanel)
@@ -68845,15 +68847,18 @@ var question_paneldynamic_QuestionPanelDynamicModel = /** @class */ (function (_
68845
68847
  this.panelsCore.splice(index, 1);
68846
68848
  this.updateBindings("panelCount", this.panelCount);
68847
68849
  var value = this.value;
68848
- if (!value || !Array.isArray(value) || index >= value.length)
68849
- return;
68850
- this.isValueChangingInternally = true;
68851
- value.splice(index, 1);
68852
- this.value = value;
68853
- this.updateFooterActions();
68854
- this.fireCallback(this.panelCountChangedCallback);
68855
- this.notifyOnPanelAddedRemoved(false, index, panel);
68856
- this.isValueChangingInternally = false;
68850
+ if (!value || !Array.isArray(value) || index >= value.length) {
68851
+ this.updateFooterActions();
68852
+ }
68853
+ else {
68854
+ this.isValueChangingInternally = true;
68855
+ value.splice(index, 1);
68856
+ this.value = value;
68857
+ this.updateFooterActions();
68858
+ this.fireCallback(this.panelCountChangedCallback);
68859
+ this.notifyOnPanelAddedRemoved(false, index, panel);
68860
+ this.isValueChangingInternally = false;
68861
+ }
68857
68862
  };
68858
68863
  QuestionPanelDynamicModel.prototype.notifyOnPanelAddedRemoved = function (isAdded, index, panel) {
68859
68864
  if (!panel) {
@@ -72946,9 +72951,9 @@ Serializer.addClass("currencymask", [
72946
72951
 
72947
72952
  var Version;
72948
72953
  var ReleaseDate;
72949
- Version = "" + "1.12.31";
72954
+ Version = "" + "1.12.32";
72950
72955
  settings.version = Version;
72951
- ReleaseDate = "" + "2025-04-08";
72956
+ ReleaseDate = "" + "2025-04-13";
72952
72957
  function checkLibraryVersion(ver, libraryName) {
72953
72958
  if (Version != ver) {
72954
72959
  var str = "survey-core has version '" + Version + "' and " + libraryName