survey-analytics 1.11.9 → 1.11.10

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
@@ -20,7 +20,7 @@
20
20
  "lint": "eslint ./src --quiet",
21
21
  "pre-push-check": "npm run lint && npm run test"
22
22
  },
23
- "version": "1.11.9",
23
+ "version": "1.11.10",
24
24
  "name": "survey-analytics",
25
25
  "description": "SurveyJS analytics Library.",
26
26
  "main": "survey.analytics.js",
@@ -104,7 +104,7 @@
104
104
  "peerDependencies": {
105
105
  "@types/datatables.net": "^1.10.21",
106
106
  "@types/plotly.js-dist-min": "^2.3.0",
107
- "survey-core": "1.11.9"
107
+ "survey-core": "1.11.10"
108
108
  },
109
109
  "husky": {
110
110
  "hooks": {
@@ -100,6 +100,7 @@ export declare abstract class Table {
100
100
  clearCreatedRows(): void;
101
101
  get useNamesAsTitles(): boolean;
102
102
  protected buildColumns: (survey: SurveyModel) => IColumn[];
103
+ private isNonValueQuestion;
103
104
  isColumnVisible(column: IColumn): boolean;
104
105
  get columns(): Array<IColumn>;
105
106
  set columns(columns: Array<IColumn>);
@@ -100,6 +100,7 @@ export declare abstract class Table {
100
100
  clearCreatedRows(): void;
101
101
  get useNamesAsTitles(): boolean;
102
102
  protected buildColumns: (survey: SurveyModel) => IColumn[];
103
+ private isNonValueQuestion;
103
104
  isColumnVisible(column: IColumn): boolean;
104
105
  get columns(): Array<IColumn>;
105
106
  set columns(columns: Array<IColumn>);
@@ -5,7 +5,7 @@ interface ITabulatorOptions extends ITableOptions {
5
5
  tabulatorOptions?: any;
6
6
  downloadHiddenColumns?: boolean;
7
7
  actionsColumnWidth?: number;
8
- downloadButtons: Array<string>;
8
+ downloadButtons?: Array<string>;
9
9
  downloadOptions?: {
10
10
  [type: string]: any;
11
11
  };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v1.11.9
2
+ * surveyjs - SurveyJS Dashboard library v1.11.10
3
3
  * Copyright (c) 2015-2024 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 v1.11.9
2
+ * surveyjs - SurveyJS Dashboard library v1.11.10
3
3
  * Copyright (c) 2015-2024 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 v1.11.9
2
+ * surveyjs - SurveyJS Dashboard library v1.11.10
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -2664,8 +2664,10 @@ var Table = /** @class */ (function () {
2664
2664
  this.buildColumns = function (survey) {
2665
2665
  var columns = [];
2666
2666
  _this._survey.getAllQuestions().forEach(function (question) {
2667
- var builder = _columnbuilder__WEBPACK_IMPORTED_MODULE_7__.ColumnsBuilderFactory.Instance.getColumnsBuilder(question.getTemplate());
2668
- columns = columns.concat(builder.buildColumns(question, _this));
2667
+ if (!_this.isNonValueQuestion(question)) {
2668
+ var builder = _columnbuilder__WEBPACK_IMPORTED_MODULE_7__.ColumnsBuilderFactory.Instance.getColumnsBuilder(question.getTemplate());
2669
+ columns = columns.concat(builder.buildColumns(question, _this));
2670
+ }
2669
2671
  });
2670
2672
  return columns;
2671
2673
  };
@@ -2759,6 +2761,9 @@ var Table = /** @class */ (function () {
2759
2761
  enumerable: false,
2760
2762
  configurable: true
2761
2763
  });
2764
+ Table.prototype.isNonValueQuestion = function (question) {
2765
+ return survey_core__WEBPACK_IMPORTED_MODULE_1__.Serializer.isDescendantOf(question.getType(), "nonvalue");
2766
+ };
2762
2767
  Table.prototype.isColumnVisible = function (column) {
2763
2768
  if (column.location !== _config__WEBPACK_IMPORTED_MODULE_2__.QuestionLocation.Column)
2764
2769
  return false;