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.
package/fesm/shared.mjs CHANGED
@@ -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: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/fesm/shared2.mjs CHANGED
@@ -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: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1501,6 +1501,12 @@ class SelectBase extends VisualizerBase {
1501
1501
  question.visibleChoicesChangedCallback = () => {
1502
1502
  this.dataProvider.raiseDataChanged();
1503
1503
  };
1504
+ if (typeof question.getSurvey == "function") {
1505
+ const survey = question.getSurvey();
1506
+ if (!!survey) {
1507
+ survey.showInvisibleElements = true;
1508
+ }
1509
+ }
1504
1510
  }
1505
1511
  this._supportSelection = true;
1506
1512
  this._showOnlyPercentages = this.options.showOnlyPercentages === true;
@@ -1710,7 +1716,7 @@ class SelectBase extends VisualizerBase {
1710
1716
  const correctAnswerValue = super.getCorrectAnswerText();
1711
1717
  const resultValues = Array.isArray(correctAnswerValue) ? correctAnswerValue : [correctAnswerValue];
1712
1718
  const selectBaseQuestion = this.question;
1713
- return resultValues.map((value) => ItemValue.getTextOrHtmlByValue(selectBaseQuestion.choices, value)).join(", ");
1719
+ return resultValues.map((value) => ItemValue.getTextOrHtmlByValue(selectBaseQuestion.visibleChoices, value)).join(", ");
1714
1720
  }
1715
1721
  isSupportSoftUpdateContent() {
1716
1722
  return !this._hideEmptyAnswers;
@@ -1738,7 +1744,7 @@ class SelectBase extends VisualizerBase {
1738
1744
  return selBase.otherItem;
1739
1745
  }
1740
1746
  else {
1741
- return selBase.choices.filter((choice) => choice.text === itemText)[0];
1747
+ return selBase.visibleChoices.filter((choice) => choice.text === itemText)[0];
1742
1748
  }
1743
1749
  }
1744
1750
  onDataChanged() {