survey-analytics 2.5.14 → 2.5.16

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.5.14",
2
+ "version": "2.5.16",
3
3
  "name": "survey-analytics",
4
4
  "scripts": {
5
5
  "start": "webpack-dev-server --env buildType=dev",
@@ -93,7 +93,7 @@
93
93
  "@types/mongodb": "^4.0.6",
94
94
  "@types/plotly.js-dist-min": "^2.3.0",
95
95
  "@types/tabulator-tables": "^6.2.3",
96
- "survey-core": "2.5.14"
96
+ "survey-core": "2.5.16"
97
97
  },
98
98
  "husky": {
99
99
  "hooks": {
@@ -97,6 +97,7 @@ export declare abstract class Table {
97
97
  protected currentPageNumber: number;
98
98
  protected _rows: TableRow[];
99
99
  protected isColumnReorderEnabled: boolean;
100
+ isInitialized: boolean;
100
101
  protected initialize(): void;
101
102
  getTableData(): Array<any>;
102
103
  /**
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.5.14
2
+ * surveyjs - SurveyJS Dashboard library v2.5.16
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.14
2
+ * surveyjs - SurveyJS Dashboard library v2.5.16
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.14
2
+ * surveyjs - SurveyJS Dashboard library v2.5.16
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.14
2
+ * surveyjs - SurveyJS Dashboard library v2.5.16
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.14
2
+ * surveyjs - SurveyJS Dashboard library v2.5.16
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.14
2
+ * surveyjs - SurveyJS Dashboard library v2.5.16
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.14
2
+ * surveyjs - SurveyJS Dashboard library v2.5.16
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.14
2
+ * surveyjs - SurveyJS Dashboard library v2.5.16
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.14
2
+ * surveyjs - SurveyJS Dashboard library v2.5.16
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.14
2
+ * surveyjs - SurveyJS Dashboard library v2.5.16
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.14
2
+ * surveyjs - SurveyJS Dashboard library v2.5.16
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.14
2
+ * surveyjs - SurveyJS Dashboard library v2.5.16
3
3
  * Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: SEE LICENSE IN LICENSE
5
5
  */
@@ -3554,6 +3554,8 @@ __webpack_require__.r(__webpack_exports__);
3554
3554
  /* harmony export */ });
3555
3555
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/utils/helpers.ts");
3556
3556
  /* harmony import */ var _columns__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./columns */ "./src/tables/columns.ts");
3557
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./config */ "./src/tables/config.ts");
3558
+
3557
3559
 
3558
3560
 
3559
3561
  var DefaultColumnsBuilder = /** @class */ (function () {
@@ -3681,10 +3683,15 @@ var MatrixDropdownColumnBuilder = /** @class */ (function (_super) {
3681
3683
  }
3682
3684
  MatrixDropdownColumnBuilder.prototype.buildColumns = function (questionBase, table) {
3683
3685
  var question = questionBase;
3686
+ var isDetailRowLocation = question.rows.length > 5;
3684
3687
  var columns = [];
3685
3688
  question.rows.forEach(function (row) {
3686
3689
  question.columns.forEach(function (col) {
3687
- columns.push(new _columns__WEBPACK_IMPORTED_MODULE_1__.MatrixDropdownColumn(question, row, col, table));
3690
+ var column = new _columns__WEBPACK_IMPORTED_MODULE_1__.MatrixDropdownColumn(question, row, col, table);
3691
+ if (isDetailRowLocation) {
3692
+ column.location = _config__WEBPACK_IMPORTED_MODULE_2__.QuestionLocation.Row;
3693
+ }
3694
+ columns.push(column);
3688
3695
  });
3689
3696
  });
3690
3697
  return columns;
@@ -3792,9 +3799,11 @@ var BaseColumn = /** @class */ (function () {
3792
3799
  this.updateWhenQuestionIsReady(question, table);
3793
3800
  }
3794
3801
  BaseColumn.prototype.updateWhenQuestionIsReady = function (question, table) {
3795
- if (!question)
3802
+ if (!question || question.isReady)
3796
3803
  return;
3797
3804
  question.waitForQuestionIsReady().then(function () {
3805
+ if (!table.isInitialized)
3806
+ return;
3798
3807
  try {
3799
3808
  table.lockStateChanged();
3800
3809
  table.refresh(!table.isInitTableDataProcessing);
@@ -4764,6 +4773,7 @@ var Table = /** @class */ (function () {
4764
4773
  this.haveCommercialLicense = false;
4765
4774
  this.currentPageSize = 5;
4766
4775
  this._rows = [];
4776
+ this.isInitialized = false;
4767
4777
  /**
4768
4778
  * Sets pagination selector content.
4769
4779
  */
@@ -4800,6 +4810,7 @@ var Table = /** @class */ (function () {
4800
4810
  : false));
4801
4811
  }
4802
4812
  Table.prototype.initialize = function () {
4813
+ this.isInitialized = false;
4803
4814
  this.currentPageSize = this.options.pageSize || 5;
4804
4815
  this.currentPageNumber = 1;
4805
4816
  this._columns = this.buildColumns(this._survey);
@@ -4808,6 +4819,7 @@ var Table = /** @class */ (function () {
4808
4819
  if (this._columnsData.length !== 0) {
4809
4820
  this.updateColumnsFromData(this._columnsData);
4810
4821
  }
4822
+ this.isInitialized = true;
4811
4823
  };
4812
4824
  Table.prototype.getTableData = function () {
4813
4825
  return [].concat(this.tableData || []);