survey-analytics 2.5.15 → 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/fesm/shared.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.5.15
2
+ * surveyjs - SurveyJS Dashboard library v2.5.16
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.15
2
+ * surveyjs - SurveyJS Dashboard library v2.5.16
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
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.5.15
2
+ * surveyjs - SurveyJS Dashboard library v2.5.16
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
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.5.15
2
+ * surveyjs - SurveyJS Dashboard library v2.5.16
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
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.5.15
2
+ * surveyjs - SurveyJS Dashboard library v2.5.16
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
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.5.15
2
+ * surveyjs - SurveyJS Dashboard library v2.5.16
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
  */
@@ -468,9 +468,11 @@ class BaseColumn {
468
468
  this.updateWhenQuestionIsReady(question, table);
469
469
  }
470
470
  updateWhenQuestionIsReady(question, table) {
471
- if (!question)
471
+ if (!question || question.isReady)
472
472
  return;
473
473
  question.waitForQuestionIsReady().then(() => {
474
+ if (!table.isInitialized)
475
+ return;
474
476
  try {
475
477
  table.lockStateChanged();
476
478
  table.refresh(!table.isInitTableDataProcessing);
@@ -801,10 +803,15 @@ ColumnsBuilderFactory.Instance.registerBuilderColumn("file", new FileColumnsBuil
801
803
  class MatrixDropdownColumnBuilder extends DefaultColumnsBuilder {
802
804
  buildColumns(questionBase, table) {
803
805
  const question = questionBase;
806
+ const isDetailRowLocation = question.rows.length > 5;
804
807
  const columns = [];
805
808
  question.rows.forEach(row => {
806
809
  question.columns.forEach(col => {
807
- columns.push(new MatrixDropdownColumn(question, row, col, table));
810
+ const column = new MatrixDropdownColumn(question, row, col, table);
811
+ if (isDetailRowLocation) {
812
+ column.location = QuestionLocation.Row;
813
+ }
814
+ columns.push(column);
808
815
  });
809
816
  });
810
817
  return columns;
@@ -861,6 +868,7 @@ class Table {
861
868
  this.haveCommercialLicense = false;
862
869
  this.currentPageSize = 5;
863
870
  this._rows = [];
871
+ this.isInitialized = false;
864
872
  /**
865
873
  * Sets pagination selector content.
866
874
  */
@@ -897,6 +905,7 @@ class Table {
897
905
  : false));
898
906
  }
899
907
  initialize() {
908
+ this.isInitialized = false;
900
909
  this.currentPageSize = this.options.pageSize || 5;
901
910
  this.currentPageNumber = 1;
902
911
  this._columns = this.buildColumns(this._survey);
@@ -905,6 +914,7 @@ class Table {
905
914
  if (this._columnsData.length !== 0) {
906
915
  this.updateColumnsFromData(this._columnsData);
907
916
  }
917
+ this.isInitialized = true;
908
918
  }
909
919
  getTableData() {
910
920
  return [].concat(this.tableData || []);