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 +1 -1
- package/fesm/shared2.mjs +1 -1
- package/fesm/survey.analytics.core.mjs +1 -1
- package/fesm/survey.analytics.mjs +1 -1
- package/fesm/survey.analytics.mongo.mjs +1 -1
- package/fesm/survey.analytics.tabulator.mjs +9 -3
- package/fesm/survey.analytics.tabulator.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-analytics-tabulator.types/tables/table.d.ts +10 -0
- package/survey.analytics.core.css.map +1 -1
- package/survey.analytics.core.js +1 -1
- package/survey.analytics.core.min.js +1 -1
- package/survey.analytics.css.map +1 -1
- package/survey.analytics.js +1 -1
- package/survey.analytics.min.js +1 -1
- package/survey.analytics.mongo.js +1 -1
- package/survey.analytics.mongo.min.js +1 -1
- package/survey.analytics.tabulator.css.map +1 -1
- package/survey.analytics.tabulator.js +9 -3
- package/survey.analytics.tabulator.js.map +1 -1
- package/survey.analytics.tabulator.min.js +2 -2
package/fesm/shared.mjs
CHANGED
package/fesm/shared2.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - SurveyJS Dashboard library v2.5.
|
|
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
|
|
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 (
|
|
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;
|