survey-analytics 2.1.1 → 2.2.1

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.1.1
2
+ * surveyjs - SurveyJS Dashboard library v2.2.1
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
@@ -17,7 +17,7 @@
17
17
  "lint": "eslint ./src --quiet",
18
18
  "pre-push-check": "npm run lint && npm run test"
19
19
  },
20
- "version": "2.1.1",
20
+ "version": "2.2.1",
21
21
  "name": "survey-analytics",
22
22
  "description": "SurveyJS analytics Library.",
23
23
  "main": "survey.analytics.js",
@@ -88,7 +88,7 @@
88
88
  "peerDependencies": {
89
89
  "@types/plotly.js-dist-min": "^2.3.0",
90
90
  "@types/tabulator-tables": "^6.2.3",
91
- "survey-core": "2.1.1"
91
+ "survey-core": "2.2.1"
92
92
  },
93
93
  "husky": {
94
94
  "hooks": {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.1.1
2
+ * surveyjs - SurveyJS Dashboard library v2.2.1
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
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.1.1
2
+ * surveyjs - SurveyJS Dashboard library v2.2.1
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
  */
@@ -7487,7 +7487,7 @@ var finnishStrings = {
7487
7487
  filterPlaceholder: "Etsi...",
7488
7488
  removeRows: "Poista rivejä",
7489
7489
  showLabel: "Näytä",
7490
- entriesLabel: "vastsuksia",
7490
+ entriesLabel: "vastauksia",
7491
7491
  visualizer_text: "Tekstitaulukko",
7492
7492
  visualizer_wordcloud: "Sanapilvi",
7493
7493
  visualizer_histogram: "Histogrammi",
@@ -10787,6 +10787,10 @@ var PlotlySetup = /** @class */ (function () {
10787
10787
  layout.showlegend = true;
10788
10788
  if (model.chartType == "stackedbar") {
10789
10789
  layout.barmode = "stack";
10790
+ layout.height =
10791
+ (seriesLabels.length + 1) * lineHeight +
10792
+ topMargin +
10793
+ bottomMargin;
10790
10794
  }
10791
10795
  else {
10792
10796
  layout.height =
@@ -11485,7 +11489,7 @@ var SelectBase = /** @class */ (function (_super) {
11485
11489
  if (!!question.choicesFromQuestion && !!question.survey) {
11486
11490
  question = question.survey.getQuestionByName(question.choicesFromQuestion);
11487
11491
  }
11488
- return question["activeChoices"];
11492
+ return question["activeChoices"] || question.visibleChoices || question.choices || [];
11489
11493
  };
11490
11494
  SelectBase.prototype.getValues = function () {
11491
11495
  var values = this.valuesSource().map(function (choice) { return choice.value; });