survey-analytics 2.5.11 → 2.5.12

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.11
2
+ * surveyjs - SurveyJS Dashboard library v2.5.12
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.11
2
+ * surveyjs - SurveyJS Dashboard library v2.5.12
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.11
2
+ * surveyjs - SurveyJS Dashboard library v2.5.12
3
3
  * Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: SEE LICENSE IN LICENSE
5
5
  */
@@ -7983,7 +7983,7 @@ var finnishStrings = {
7983
7983
  // [Auto-translated] "Chart"
7984
7984
  visualizer_boolean: "Kaavio",
7985
7985
  // [Auto-translated] "Table"
7986
- visualizer_options: "Pöytä",
7986
+ visualizer_options: "Taulukko",
7987
7987
  // "NPS"
7988
7988
  npsScore: "NPS",
7989
7989
  // "Promoters"
@@ -14853,7 +14853,9 @@ __webpack_require__.r(__webpack_exports__);
14853
14853
  /* harmony import */ var _visualizationManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./visualizationManager */ "./src/visualizationManager.ts");
14854
14854
  /* harmony import */ var _localizationManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./localizationManager */ "./src/localizationManager.ts");
14855
14855
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils */ "./src/utils/index.ts");
14856
- /* harmony import */ var _text_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./text.scss */ "./src/text.scss");
14856
+ /* harmony import */ var _statisticCalculators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./statisticCalculators */ "./src/statisticCalculators.ts");
14857
+ /* harmony import */ var _text_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./text.scss */ "./src/text.scss");
14858
+
14857
14859
 
14858
14860
 
14859
14861
 
@@ -14941,28 +14943,31 @@ var Text = /** @class */ (function (_super) {
14941
14943
  var _this = this;
14942
14944
  var result = [];
14943
14945
  var columnCount = 0;
14944
- this.surveyData.forEach(function (row) {
14945
- var rowValue = row[_this.question.name];
14946
- var dataStrings = [];
14947
- if (!!rowValue) {
14948
- if (Array.isArray(rowValue)) {
14949
- dataStrings = dataStrings.concat(rowValue);
14950
- }
14951
- else {
14952
- if (typeof rowValue === "object") {
14953
- Object.keys(rowValue).forEach(function (key) {
14954
- return dataStrings.push(rowValue[key]);
14955
- });
14946
+ this.surveyData.forEach(function (dataRow) {
14947
+ var nestedDataRows = (0,_statisticCalculators__WEBPACK_IMPORTED_MODULE_5__.getNestedDataRows)(dataRow, _this);
14948
+ nestedDataRows.forEach(function (row) {
14949
+ var rowValue = row[_this.question.name];
14950
+ var dataStrings = [];
14951
+ if (!!rowValue) {
14952
+ if (Array.isArray(rowValue)) {
14953
+ dataStrings = dataStrings.concat(rowValue);
14956
14954
  }
14957
14955
  else {
14958
- dataStrings.push(rowValue);
14956
+ if (typeof rowValue === "object") {
14957
+ Object.keys(rowValue).forEach(function (key) {
14958
+ return dataStrings.push(rowValue[key]);
14959
+ });
14960
+ }
14961
+ else {
14962
+ dataStrings.push(rowValue);
14963
+ }
14964
+ }
14965
+ result.push(dataStrings);
14966
+ if (dataStrings.length > columnCount) {
14967
+ columnCount = dataStrings.length;
14959
14968
  }
14960
14969
  }
14961
- result.push(dataStrings);
14962
- if (dataStrings.length > columnCount) {
14963
- columnCount = dataStrings.length;
14964
- }
14965
- }
14970
+ });
14966
14971
  });
14967
14972
  return { columnCount: columnCount, data: result };
14968
14973
  };
@@ -19279,6 +19284,8 @@ __webpack_require__.r(__webpack_exports__);
19279
19284
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils */ "./src/utils/index.ts");
19280
19285
  /* harmony import */ var _localizationManager__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../localizationManager */ "./src/localizationManager.ts");
19281
19286
  /* harmony import */ var _widget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./widget */ "./src/wordcloud/widget.ts");
19287
+ /* harmony import */ var _statisticCalculators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../statisticCalculators */ "./src/statisticCalculators.ts");
19288
+
19282
19289
 
19283
19290
 
19284
19291
 
@@ -19392,23 +19399,26 @@ var WordCloud = /** @class */ (function (_super) {
19392
19399
  });
19393
19400
  }
19394
19401
  };
19395
- this.surveyData.forEach(function (row) {
19396
- var rowValue = row[_this.question.name];
19397
- if (!!rowValue) {
19398
- if (Array.isArray(rowValue)) {
19399
- rowValue.forEach(processString);
19400
- }
19401
- else {
19402
- if (typeof rowValue === "object") {
19403
- Object.keys(rowValue).forEach(function (key) {
19404
- return processString(rowValue[key]);
19405
- });
19402
+ this.surveyData.forEach(function (dataRow) {
19403
+ var nestedDataRows = (0,_statisticCalculators__WEBPACK_IMPORTED_MODULE_8__.getNestedDataRows)(dataRow, _this);
19404
+ nestedDataRows.forEach(function (row) {
19405
+ var rowValue = row[_this.question.name];
19406
+ if (!!rowValue) {
19407
+ if (Array.isArray(rowValue)) {
19408
+ rowValue.forEach(processString);
19406
19409
  }
19407
19410
  else {
19408
- processString(rowValue);
19411
+ if (typeof rowValue === "object") {
19412
+ Object.keys(rowValue).forEach(function (key) {
19413
+ return processString(rowValue[key]);
19414
+ });
19415
+ }
19416
+ else {
19417
+ processString(rowValue);
19418
+ }
19409
19419
  }
19410
19420
  }
19411
- }
19421
+ });
19412
19422
  });
19413
19423
  return Object.keys(result).map(function (key) {
19414
19424
  return [key, result[key]];