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/README.md +1 -1
- 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 +13 -3
- package/fesm/survey.analytics.tabulator.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-analytics-tabulator.types/tables/table.d.ts +1 -0
- package/survey.analytics.core.css +1 -1
- package/survey.analytics.core.js +1 -1
- package/survey.analytics.core.min.css +1 -1
- package/survey.analytics.core.min.js.LICENSE.txt +1 -1
- package/survey.analytics.css +1 -1
- package/survey.analytics.js +1 -1
- package/survey.analytics.min.css +1 -1
- package/survey.analytics.min.js.LICENSE.txt +1 -1
- package/survey.analytics.mongo.js +1 -1
- package/survey.analytics.mongo.min.js.LICENSE.txt +1 -1
- package/survey.analytics.tabulator.css +1 -1
- package/survey.analytics.tabulator.js +15 -3
- package/survey.analytics.tabulator.js.map +1 -1
- package/survey.analytics.tabulator.min.css +1 -1
- package/survey.analytics.tabulator.min.js +1 -1
- package/survey.analytics.tabulator.min.js.LICENSE.txt +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<video src="https://github.com/surveyjs/survey-analytics/assets/22315929/2ebc84e1-dc43-4873-8c72-a1b4125e8749"></video>
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
[](https://dev.azure.com/SurveyJS/V2%20Libraries/_build/latest?definitionId=161&repoName=surveyjs%2Fsurvey-analytics&branchName=master)
|
|
8
8
|
<a href="https://github.com/microsoft/playwright">
|
|
9
9
|
<img alt="Tested with Playwright" src="https://img.shields.io/badge/tested%20with-Playwright-2fa4cf.svg">
|
|
10
10
|
</a>
|
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.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
|
-
|
|
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 || []);
|