survey-analytics 1.9.2 → 1.9.6

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
@@ -15,7 +15,7 @@
15
15
  "lint": "eslint ./src --quiet",
16
16
  "pre-push-check": "npm run lint && npm run test"
17
17
  },
18
- "version": "1.9.2",
18
+ "version": "1.9.6",
19
19
  "name": "survey-analytics",
20
20
  "description": "SurveyJS analytics Library.",
21
21
  "main": "survey.analytics.js",
@@ -111,7 +111,8 @@
111
111
  "webpack": "^4.43.0",
112
112
  "webpack-cli": "^3.3.11",
113
113
  "webpack-dev-server": "^3.11.0",
114
- "webpack-svgstore-plugin": "^4.1.0"
114
+ "webpack-svgstore-plugin": "^4.1.0",
115
+ "colors": "1.4.0"
115
116
  },
116
117
  "husky": {
117
118
  "hooks": {
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Analytics library v1.9.2
3
- * Copyright (c) 2015-2021 Devsoft Baltic OÜ - http://surveyjs.io/
2
+ * surveyjs - SurveyJS Analytics library v1.9.6
3
+ * Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
6
6
  .sa-visualizer__content {
@@ -1,5 +1,5 @@
1
- /*Type definitions for SurveyJS Analytics library v1.9.2
2
- Copyright (c) 2015-2021 Devsoft Baltic OÜ - http://surveyjs.io/
1
+ /*Type definitions for SurveyJS Analytics library v1.9.6
2
+ Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
3
3
  Definitions by: Devsoft Baltic OÜ <https://github.com/surveyjs/>
4
4
  */
5
5
  // Dependencies for this module:
@@ -89,6 +89,9 @@ export var surveyStrings: {
89
89
  topNValueText5: string;
90
90
  topNValueText10: string;
91
91
  topNValueText20: string;
92
+ hideMissingAnswers: string;
93
+ showMissingAnswers: string;
94
+ missingAnswersLabel: string;
92
95
  noVisualizerForQuestion: string;
93
96
  noResults: string;
94
97
  showPerValues: string;
@@ -116,7 +119,7 @@ export class DataProvider {
116
119
  [index: string]: any;
117
120
  };
118
121
  constructor(_data?: Array<any>, _getDataCore?: (dataInfo: IDataInfo) => number[][]);
119
- reset(): void;
122
+ reset(dataInfo?: IDataInfo): void;
120
123
  get data(): Array<any>;
121
124
  set data(data: Array<any>);
122
125
  get filteredData(): {
@@ -185,7 +188,7 @@ export class VisualizerBase implements IDataInfo {
185
188
  /**
186
189
  * Name of the data field of data object from the data array.
187
190
  */
188
- get dataName(): string;
191
+ get dataName(): string | Array<string>;
189
192
  /**
190
193
  * Indicates whether visualizer has footer. Usually it is true then a question has comment or choices question has other item.
191
194
  */
@@ -522,7 +525,7 @@ export class VisualizationMatrixDynamic extends VisualizationPanelDynamic {
522
525
  [index: string]: any;
523
526
  }>, options?: Object);
524
527
  get name(): string;
525
- getQuestions(): Question[];
528
+ getQuestions(): any;
526
529
  }
527
530
 
528
531
  export class VisualizationMatrixDropdown extends VisualizerBase {
@@ -536,7 +539,7 @@ export class VisualizationMatrixDropdown extends VisualizerBase {
536
539
  updateData(data: Array<{
537
540
  [index: string]: any;
538
541
  }>): void;
539
- getQuestions(): import("survey-core").Question[];
542
+ getQuestions(): any;
540
543
  destroyContent(container: HTMLElement): void;
541
544
  renderContent(container: HTMLElement): void;
542
545
  destroy(): void;
@@ -775,6 +778,9 @@ export class SelectBase extends VisualizerBase implements IVisualizerWithSelecti
775
778
  set transposeData(value: boolean);
776
779
  get topN(): number;
777
780
  set topN(value: number);
781
+ protected isSupportMissingAnswers(): boolean;
782
+ get showMissingAnswers(): boolean;
783
+ set showMissingAnswers(value: boolean);
778
784
  refreshContent(): void;
779
785
  onDataItemSelected: (selectedValue: any, selectedText: string) => void;
780
786
  valuesSource(): Array<ItemValue>;
@@ -1093,6 +1099,7 @@ export class Matrix extends SelectBase {
1093
1099
  [index: string]: any;
1094
1100
  }>, options?: Object, name?: string);
1095
1101
  protected get matrixQuestion(): QuestionMatrixModel;
1102
+ protected isSupportMissingAnswers(): boolean;
1096
1103
  getSeriesValues(): Array<string>;
1097
1104
  getSeriesLabels(): Array<string>;
1098
1105
  getSelectedItemByText(itemText: string): any;
@@ -1120,10 +1127,11 @@ export class MatrixDropdownGrouped extends SelectBase {
1120
1127
  [index: string]: any;
1121
1128
  }>, options?: Object, name?: string);
1122
1129
  protected get matrixQuestion(): QuestionMatrixDropdownModel;
1123
- get dataName(): string;
1130
+ get dataName(): string | Array<string>;
1124
1131
  getSeriesValues(): Array<string>;
1125
1132
  getSeriesLabels(): Array<string>;
1126
1133
  valuesSource(): Array<ItemValue>;
1134
+ protected isSupportMissingAnswers(): boolean;
1127
1135
  getData(): any[];
1128
1136
  }
1129
1137
 
@@ -1150,6 +1158,7 @@ export class HistogramModel extends SelectBase {
1150
1158
  original: any;
1151
1159
  continious: number;
1152
1160
  }[];
1161
+ protected isSupportMissingAnswers(): boolean;
1153
1162
  getValues(): Array<any>;
1154
1163
  getLabels(): Array<string>;
1155
1164
  get hasCustomIntervals(): boolean;
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Analytics library v1.9.2
3
- * Copyright (c) 2015-2021 Devsoft Baltic OÜ - http://surveyjs.io/
2
+ * surveyjs - SurveyJS Analytics library v1.9.6
3
+ * Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
6
6
  .sa-table {