survey-analytics 1.8.70 → 1.8.74

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.8.70",
18
+ "version": "1.8.74",
19
19
  "name": "survey-analytics",
20
20
  "description": "SurveyJS analytics Library.",
21
21
  "main": "survey.analytics.js",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Analytics library v1.8.70
2
+ * surveyjs - SurveyJS Analytics library v1.8.74
3
3
  * Copyright (c) 2015-2021 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1,4 +1,4 @@
1
- /*Type definitions for SurveyJS Analytics library v1.8.70
1
+ /*Type definitions for SurveyJS Analytics library v1.8.74
2
2
  Copyright (c) 2015-2021 Devsoft Baltic OÜ - http://surveyjs.io/
3
3
  Definitions by: Devsoft Baltic OÜ <https://github.com/surveyjs/>
4
4
  */
@@ -54,6 +54,8 @@ export var surveyStrings: {
54
54
  entriesLabel: string;
55
55
  visualizer_text: string;
56
56
  visualizer_wordcloud: string;
57
+ visualizer_histogram: string;
58
+ visualizer_number: string;
57
59
  chartType_bar: string;
58
60
  chartType_stackedbar: string;
59
61
  chartType_doughnut: string;
@@ -178,6 +180,7 @@ export class VisualizerBase implements IDataInfo {
178
180
  }>, options?: {
179
181
  [index: string]: any;
180
182
  }, _name?: string);
183
+ protected get questionOptions(): any;
181
184
  protected onDataChanged(): void;
182
185
  /**
183
186
  * Name of the data field of data object from the data array.
@@ -993,21 +996,6 @@ export class SelectBasePlotly extends SelectBase {
993
996
  getData(): any[];
994
997
  }
995
998
 
996
- export class PlotlyGaugeAdapter {
997
- constructor(model: GaugePlotly);
998
- get chart(): Promise<Plotly.PlotlyHTMLElement>;
999
- create(chartNode: HTMLElement): any;
1000
- destroy(node: HTMLElement): void;
1001
- }
1002
- export class GaugePlotly extends NumberModel {
1003
- static types: string[];
1004
- constructor(question: Question, data: Array<{
1005
- [index: string]: any;
1006
- }>, options?: Object, name?: string);
1007
- protected destroyContent(container: HTMLElement): void;
1008
- protected renderContent(container: HTMLElement): void;
1009
- }
1010
-
1011
999
  export class MatrixPlotly extends Matrix {
1012
1000
  static types: string[];
1013
1001
  constructor(question: Question, data: Array<{
@@ -1037,23 +1025,33 @@ export class RankingPlotly extends SelectBasePlotly {
1037
1025
  applyResultToPlotlyData(result: any[], plotlyData: any, choices: any): void;
1038
1026
  }
1039
1027
 
1040
- export class PlotlyDateTimeAdapter {
1041
- constructor(model: DateTimePlotly);
1042
- get chart(): Promise<Plotly.PlotlyHTMLElement>;
1043
- create(chartNode: HTMLElement): any;
1044
- destroy(node: HTMLElement): void;
1028
+ export class MatrixDropdownGroupedPlotly extends MatrixDropdownGrouped {
1029
+ static types: string[];
1030
+ constructor(question: QuestionMatrixDropdownModel, data: Array<{
1031
+ [index: string]: any;
1032
+ }>, options?: Object, name?: string);
1033
+ protected destroyContent(container: HTMLElement): void;
1034
+ protected renderContent(container: HTMLElement): void;
1045
1035
  }
1046
- export class DateTimePlotly extends DateTimeModel {
1036
+
1037
+ export class HistogramPlotly extends HistogramModel {
1047
1038
  static types: string[];
1048
1039
  constructor(question: Question, data: Array<{
1049
1040
  [index: string]: any;
1050
1041
  }>, options?: Object, name?: string);
1042
+ protected destroyContent(container: HTMLElement): void;
1051
1043
  protected renderContent(container: HTMLElement): void;
1052
1044
  }
1053
1045
 
1054
- export class MatrixDropdownGroupedPlotly extends MatrixDropdownGrouped {
1046
+ export class PlotlyGaugeAdapter {
1047
+ constructor(model: GaugePlotly);
1048
+ get chart(): Promise<Plotly.PlotlyHTMLElement>;
1049
+ create(chartNode: HTMLElement): any;
1050
+ destroy(node: HTMLElement): void;
1051
+ }
1052
+ export class GaugePlotly extends NumberModel {
1055
1053
  static types: string[];
1056
- constructor(question: QuestionMatrixDropdownModel, data: Array<{
1054
+ constructor(question: Question, data: Array<{
1057
1055
  [index: string]: any;
1058
1056
  }>, options?: Object, name?: string);
1059
1057
  protected destroyContent(container: HTMLElement): void;
@@ -1087,27 +1085,6 @@ export class TableExtensions {
1087
1085
  }
1088
1086
  export {};
1089
1087
 
1090
- export class NumberModel extends VisualizerBase {
1091
- static stepsCount: number;
1092
- static generateTextsCallback: (question: Question, maxValue: number, minValue: number, stepsCount: number, texts: string[]) => string[];
1093
- protected chartTypes: Array<string>;
1094
- chartType: String;
1095
- static showAsPercentage: boolean;
1096
- constructor(question: Question, data: Array<{
1097
- [index: string]: any;
1098
- }>, options?: {
1099
- [index: string]: any;
1100
- }, name?: string);
1101
- protected onDataChanged(): void;
1102
- protected onChartTypeChanged(): void;
1103
- protected setChartType(chartType: string): void;
1104
- destroy(): void;
1105
- generateText(maxValue: number, minValue: number, stepsCount: number): any;
1106
- generateValues(maxValue: number, stepsCount: number): any[];
1107
- generateColors(maxValue: number, minValue: number, stepsCount: number): any[];
1108
- getData(): number[];
1109
- }
1110
-
1111
1088
  export class Matrix extends SelectBase {
1112
1089
  constructor(question: Question, data: Array<{
1113
1090
  [index: string]: any;
@@ -1135,17 +1112,6 @@ export class BooleanModel extends SelectBase {
1135
1112
  getLabels(): Array<string>;
1136
1113
  }
1137
1114
 
1138
- export class DateTimeModel extends VisualizerBase {
1139
- protected chartTypes: Array<string>;
1140
- chartType: String;
1141
- constructor(question: Question, data: Array<{
1142
- [index: string]: any;
1143
- }>, options?: {
1144
- [index: string]: any;
1145
- }, name?: string);
1146
- getData(): any[][];
1147
- }
1148
-
1149
1115
  export class MatrixDropdownGrouped extends SelectBase {
1150
1116
  constructor(question: Question, data: Array<{
1151
1117
  [index: string]: any;
@@ -1158,4 +1124,55 @@ export class MatrixDropdownGrouped extends SelectBase {
1158
1124
  getData(): any[];
1159
1125
  }
1160
1126
 
1127
+ export class HistogramModel extends SelectBase {
1128
+ protected valueType: "date" | "number";
1129
+ protected chartTypes: string[];
1130
+ chartType: string;
1131
+ static IntervalsCount: number;
1132
+ static UseIntervalsFrom: number;
1133
+ constructor(question: Question, data: Array<{
1134
+ [index: string]: any;
1135
+ }>, options?: Object, name?: string);
1136
+ getContiniousValue(value: any): number;
1137
+ getString(value: number): string;
1138
+ getSelectedItemByText(itemText: string): ItemValue;
1139
+ /**
1140
+ * Updates visualizer data.
1141
+ */
1142
+ updateData(data: Array<{
1143
+ [index: string]: any;
1144
+ }>): void;
1145
+ protected onDataChanged(): void;
1146
+ protected getContiniousValues(): {
1147
+ original: any;
1148
+ continious: number;
1149
+ }[];
1150
+ getValues(): Array<any>;
1151
+ getLabels(): Array<string>;
1152
+ get hasCustomIntervals(): boolean;
1153
+ get intervals(): any;
1154
+ getData(): any;
1155
+ }
1156
+
1157
+ export class NumberModel extends VisualizerBase {
1158
+ static stepsCount: number;
1159
+ static generateTextsCallback: (question: Question, maxValue: number, minValue: number, stepsCount: number, texts: string[]) => string[];
1160
+ protected chartTypes: Array<string>;
1161
+ chartType: String;
1162
+ static showAsPercentage: boolean;
1163
+ constructor(question: Question, data: Array<{
1164
+ [index: string]: any;
1165
+ }>, options?: {
1166
+ [index: string]: any;
1167
+ }, name?: string);
1168
+ protected onDataChanged(): void;
1169
+ protected onChartTypeChanged(): void;
1170
+ protected setChartType(chartType: string): void;
1171
+ destroy(): void;
1172
+ generateText(maxValue: number, minValue: number, stepsCount: number): any;
1173
+ generateValues(maxValue: number, stepsCount: number): any[];
1174
+ generateColors(maxValue: number, minValue: number, stepsCount: number): any[];
1175
+ getData(): number[];
1176
+ }
1177
+
1161
1178
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Analytics library v1.8.70
2
+ * surveyjs - SurveyJS Analytics library v1.8.74
3
3
  * Copyright (c) 2015-2021 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */