survey-analytics 2.5.24 → 2.5.25

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.24
2
+ * surveyjs - SurveyJS Dashboard library v2.5.25
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.24
2
+ * surveyjs - SurveyJS Dashboard library v2.5.25
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.24
2
+ * surveyjs - SurveyJS Dashboard library v2.5.25
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.24
2
+ * surveyjs - SurveyJS Dashboard library v2.5.25
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.24
2
+ * surveyjs - SurveyJS Dashboard library v2.5.25
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.24
2
+ * surveyjs - SurveyJS Dashboard library v2.5.25
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
  */
@@ -884,16 +884,19 @@ class FileColumnsBuilder extends DefaultColumnsBuilder {
884
884
  ColumnsBuilderFactory.Instance.registerBuilderColumn("file", new FileColumnsBuilder());
885
885
  class MatrixDropdownColumnBuilder extends DefaultColumnsBuilder {
886
886
  buildColumns(questionBase, table) {
887
+ var _a;
887
888
  const question = questionBase;
888
- const isDetailRowLocation = question.rows.length > 5;
889
+ const detailRowThreshold = (_a = table.options.matrixDropdownDetailRowThreshold) !== null && _a !== void 0 ? _a : 5;
889
890
  const columns = [];
891
+ let columnIndex = 0;
890
892
  question.rows.forEach(row => {
891
893
  question.columns.forEach(col => {
892
894
  const column = new MatrixDropdownColumn(question, row, col, table);
893
- if (isDetailRowLocation) {
895
+ if (detailRowThreshold >= 0 && columnIndex >= detailRowThreshold) {
894
896
  column.location = QuestionLocation.Row;
895
897
  }
896
898
  columns.push(column);
899
+ columnIndex++;
897
900
  });
898
901
  });
899
902
  return columns;
@@ -991,6 +994,9 @@ class Table {
991
994
  if (typeof this._options.useNestedTables === "undefined") {
992
995
  this._options.useNestedTables = true;
993
996
  }
997
+ if (typeof this._options.matrixDropdownDetailRowThreshold === "undefined") {
998
+ this._options.matrixDropdownDetailRowThreshold = 5;
999
+ }
994
1000
  this.initialize();
995
1001
  this.extensions = new TableExtensions(this);
996
1002
  const f = hasLicense;