survey-analytics 2.5.21 → 2.5.23

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.5.21
2
+ * surveyjs - SurveyJS Dashboard library v2.5.23
3
3
  * Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: SEE LICENSE IN LICENSE
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.5.21
2
+ * surveyjs - SurveyJS Dashboard library v2.5.23
3
3
  * Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: SEE LICENSE IN LICENSE
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.5.21
2
+ * surveyjs - SurveyJS Dashboard library v2.5.23
3
3
  * Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: SEE LICENSE IN LICENSE
5
5
  */
@@ -13805,6 +13805,12 @@ var SelectBase = /** @class */ (function (_super) {
13805
13805
  question.visibleChoicesChangedCallback = function () {
13806
13806
  _this.dataProvider.raiseDataChanged();
13807
13807
  };
13808
+ if (typeof question.getSurvey == "function") {
13809
+ var survey = question.getSurvey();
13810
+ if (!!survey) {
13811
+ survey.showInvisibleElements = true;
13812
+ }
13813
+ }
13808
13814
  }
13809
13815
  _this._supportSelection = true;
13810
13816
  _this._showOnlyPercentages = _this.options.showOnlyPercentages === true;
@@ -14021,7 +14027,7 @@ var SelectBase = /** @class */ (function (_super) {
14021
14027
  var correctAnswerValue = _super.prototype.getCorrectAnswerText.call(this);
14022
14028
  var resultValues = Array.isArray(correctAnswerValue) ? correctAnswerValue : [correctAnswerValue];
14023
14029
  var selectBaseQuestion = this.question;
14024
- return resultValues.map(function (value) { return survey_core__WEBPACK_IMPORTED_MODULE_1__.ItemValue.getTextOrHtmlByValue(selectBaseQuestion.choices, value); }).join(", ");
14030
+ return resultValues.map(function (value) { return survey_core__WEBPACK_IMPORTED_MODULE_1__.ItemValue.getTextOrHtmlByValue(selectBaseQuestion.visibleChoices, value); }).join(", ");
14025
14031
  };
14026
14032
  SelectBase.prototype.isSupportSoftUpdateContent = function () {
14027
14033
  return !this._hideEmptyAnswers;
@@ -14049,7 +14055,7 @@ var SelectBase = /** @class */ (function (_super) {
14049
14055
  return selBase.otherItem;
14050
14056
  }
14051
14057
  else {
14052
- return selBase.choices.filter(function (choice) { return choice.text === itemText; })[0];
14058
+ return selBase.visibleChoices.filter(function (choice) { return choice.text === itemText; })[0];
14053
14059
  }
14054
14060
  };
14055
14061
  SelectBase.prototype.onDataChanged = function () {