survey-analytics 1.9.39 → 1.9.42
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 +5 -3
- package/survey.analytics.css +1 -1
- package/survey.analytics.d.ts +19 -10
- package/survey.analytics.datatables.css +1 -1
- package/survey.analytics.datatables.js +76 -18
- package/survey.analytics.datatables.min.css +1 -1
- package/survey.analytics.datatables.min.js +2 -2
- package/survey.analytics.js +45 -38
- package/survey.analytics.min.css +1 -1
- package/survey.analytics.min.js +2 -2
- package/survey.analytics.tabulator.css +1 -1
- package/survey.analytics.tabulator.js +107 -35
- package/survey.analytics.tabulator.min.css +1 -1
- package/survey.analytics.tabulator.min.js +2 -2
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"lint": "eslint ./src --quiet",
|
|
20
20
|
"pre-push-check": "npm run lint && npm run test"
|
|
21
21
|
},
|
|
22
|
-
"version": "1.9.
|
|
22
|
+
"version": "1.9.42",
|
|
23
23
|
"name": "survey-analytics",
|
|
24
24
|
"description": "SurveyJS analytics Library.",
|
|
25
25
|
"main": "survey.analytics.js",
|
|
@@ -74,12 +74,10 @@
|
|
|
74
74
|
"wordcloud": "^1.2.2"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@types/datatables.net": "^1.10.21",
|
|
78
77
|
"@types/jest": "^26.0.24",
|
|
79
78
|
"@types/jquery": "3.3.29",
|
|
80
79
|
"@types/lodash": "4.14.121",
|
|
81
80
|
"@types/node": "7.0.4",
|
|
82
|
-
"@types/plotly.js-dist-min": "^2.3.0",
|
|
83
81
|
"@types/wordcloud": "^1.1.3",
|
|
84
82
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
85
83
|
"@typescript-eslint/parser": "^4.33.0",
|
|
@@ -117,6 +115,10 @@
|
|
|
117
115
|
"webpack-dev-server": "^3.11.3",
|
|
118
116
|
"webpack-svgstore-plugin": "^4.1.0"
|
|
119
117
|
},
|
|
118
|
+
"peerDependencies": {
|
|
119
|
+
"@types/datatables.net": "^1.10.21",
|
|
120
|
+
"@types/plotly.js-dist-min": "^2.3.0"
|
|
121
|
+
},
|
|
120
122
|
"husky": {
|
|
121
123
|
"hooks": {
|
|
122
124
|
"pre-push": "npm run pre-push-check"
|
package/survey.analytics.css
CHANGED
package/survey.analytics.d.ts
CHANGED
|
@@ -663,7 +663,6 @@ declare module "visualizerBase" {
|
|
|
663
663
|
import { Question } from "survey-core";
|
|
664
664
|
import { IDataInfo, DataProvider } from "dataProvider";
|
|
665
665
|
import { Event } from "survey-core";
|
|
666
|
-
import "./visualizerBase.scss";
|
|
667
666
|
/**
|
|
668
667
|
* VisualizerBase is a base object for all visuzlizers. It responsible for the rendering and destroying visualizer.
|
|
669
668
|
*
|
|
@@ -1022,6 +1021,7 @@ declare module "histogram" {
|
|
|
1022
1021
|
continious: number;
|
|
1023
1022
|
}[];
|
|
1024
1023
|
protected isSupportMissingAnswers(): boolean;
|
|
1024
|
+
protected get needUseRateValues(): boolean;
|
|
1025
1025
|
getValues(): Array<any>;
|
|
1026
1026
|
getLabels(): Array<string>;
|
|
1027
1027
|
get hasCustomIntervals(): boolean;
|
|
@@ -1125,7 +1125,6 @@ declare module "visualizationPanel" {
|
|
|
1125
1125
|
import { IVisualizerPanelElement, IState, IPermission } from "config";
|
|
1126
1126
|
import { LayoutEngine } from "layoutEngine";
|
|
1127
1127
|
import { DataProvider } from "dataProvider";
|
|
1128
|
-
import "./visualizationPanel.scss";
|
|
1129
1128
|
export interface IVisualizerPanelRenderedElement extends IVisualizerPanelElement {
|
|
1130
1129
|
renderedElement?: HTMLElement;
|
|
1131
1130
|
}
|
|
@@ -1139,6 +1138,7 @@ declare module "visualizationPanel" {
|
|
|
1139
1138
|
export interface IVisualizationPanelOptions {
|
|
1140
1139
|
/**
|
|
1141
1140
|
* The number of label characters after which truncation starts.
|
|
1141
|
+
*
|
|
1142
1142
|
* Set this property to -1 to disable truncation.
|
|
1143
1143
|
*
|
|
1144
1144
|
* Default value: 27
|
|
@@ -1158,6 +1158,7 @@ declare module "visualizationPanel" {
|
|
|
1158
1158
|
dataProvider?: DataProvider;
|
|
1159
1159
|
/**
|
|
1160
1160
|
* Allows users to change the visibility of individual charts.
|
|
1161
|
+
*
|
|
1161
1162
|
* This property adds a Hide button to each chart.
|
|
1162
1163
|
*
|
|
1163
1164
|
* Default value: `true`
|
|
@@ -1165,7 +1166,8 @@ declare module "visualizationPanel" {
|
|
|
1165
1166
|
allowHideQuestions?: boolean;
|
|
1166
1167
|
/**
|
|
1167
1168
|
* Specifies whether to arrange charts based on the available screen space and allow users to reorder them via drag and drop.
|
|
1168
|
-
*
|
|
1169
|
+
*
|
|
1170
|
+
* If this property is disabled, charts are displayed one under the other and users cannot reorder them.
|
|
1169
1171
|
*
|
|
1170
1172
|
* Default value: `true`
|
|
1171
1173
|
*
|
|
@@ -1176,6 +1178,7 @@ declare module "visualizationPanel" {
|
|
|
1176
1178
|
allowDynamicLayout?: boolean;
|
|
1177
1179
|
/**
|
|
1178
1180
|
* A layout engine used to arrange charts on the Visualization Panel.
|
|
1181
|
+
*
|
|
1179
1182
|
* You can use this property to integrate a third-party layout engine with SurveyJS Analytics.
|
|
1180
1183
|
*
|
|
1181
1184
|
* @see allowDynamicLayout
|
|
@@ -1183,6 +1186,7 @@ declare module "visualizationPanel" {
|
|
|
1183
1186
|
layoutEngine?: LayoutEngine;
|
|
1184
1187
|
/**
|
|
1185
1188
|
* Allows users to switch between absolute and percentage values in bar charts.
|
|
1189
|
+
*
|
|
1186
1190
|
* This property adds a Show Percentages button to each bar chart.
|
|
1187
1191
|
*
|
|
1188
1192
|
* Default value: `false`
|
|
@@ -1194,6 +1198,7 @@ declare module "visualizationPanel" {
|
|
|
1194
1198
|
allowShowPercentages?: boolean;
|
|
1195
1199
|
/**
|
|
1196
1200
|
* Specifies whether bar charts display percentages in addition to absolute values.
|
|
1201
|
+
*
|
|
1197
1202
|
* Users can change this property value if you enable the `allowShowPercentages` property.
|
|
1198
1203
|
*
|
|
1199
1204
|
* Default value: `false`
|
|
@@ -1205,7 +1210,8 @@ declare module "visualizationPanel" {
|
|
|
1205
1210
|
showPercentages?: boolean;
|
|
1206
1211
|
/**
|
|
1207
1212
|
* Specifies whether bar charts display only percentages, without absolute values.
|
|
1208
|
-
*
|
|
1213
|
+
*
|
|
1214
|
+
* Applies only if the `allowShowPercentages` or `showPercentages` property is enabled.
|
|
1209
1215
|
*
|
|
1210
1216
|
* Default value: `false`
|
|
1211
1217
|
*
|
|
@@ -1234,6 +1240,7 @@ declare module "visualizationPanel" {
|
|
|
1234
1240
|
haveCommercialLicense?: boolean;
|
|
1235
1241
|
/**
|
|
1236
1242
|
* Allows users to sort answers by answer count. Applies only to bar and scatter charts.
|
|
1243
|
+
*
|
|
1237
1244
|
* This property adds a Sorting dropdown to each bar and scatter chart.
|
|
1238
1245
|
*
|
|
1239
1246
|
* Default value: `true`
|
|
@@ -1256,6 +1263,7 @@ declare module "visualizationPanel" {
|
|
|
1256
1263
|
answersOrder?: "default" | "asc" | "desc";
|
|
1257
1264
|
/**
|
|
1258
1265
|
* Allows users to hide answers with zero count in bar and scatter charts.
|
|
1266
|
+
*
|
|
1259
1267
|
* This property adds a Hide Empty Answers button to each bar and scatter chart.
|
|
1260
1268
|
*
|
|
1261
1269
|
* Default value: `false`
|
|
@@ -1263,6 +1271,7 @@ declare module "visualizationPanel" {
|
|
|
1263
1271
|
allowHideEmptyAnswers?: boolean;
|
|
1264
1272
|
/**
|
|
1265
1273
|
* Hides answers with zero count in bar and scatter charts.
|
|
1274
|
+
*
|
|
1266
1275
|
* Users can change this property value if you enable the `allowHideEmptyAnswers` property.
|
|
1267
1276
|
*
|
|
1268
1277
|
* Default value: `false`
|
|
@@ -1272,6 +1281,7 @@ declare module "visualizationPanel" {
|
|
|
1272
1281
|
hideEmptyAnswers?: boolean;
|
|
1273
1282
|
/**
|
|
1274
1283
|
* Allows users to select whether to show top 5, 10, or 20 answers by answer count.
|
|
1284
|
+
*
|
|
1275
1285
|
* This property adds a Top N Answers dropdown to each chart.
|
|
1276
1286
|
*
|
|
1277
1287
|
* Default value: `false`
|
|
@@ -1279,6 +1289,7 @@ declare module "visualizationPanel" {
|
|
|
1279
1289
|
allowTopNAnswers?: boolean;
|
|
1280
1290
|
/**
|
|
1281
1291
|
* Allows users to show the number of respondents who did not answer a particular question.
|
|
1292
|
+
*
|
|
1282
1293
|
* This property adds a Show Missing Answers button to each chart.
|
|
1283
1294
|
*
|
|
1284
1295
|
* Default value: `false`
|
|
@@ -1307,13 +1318,14 @@ declare module "visualizationPanel" {
|
|
|
1307
1318
|
defaultChartType?: string;
|
|
1308
1319
|
/**
|
|
1309
1320
|
* Allows users to transpose a visualized matrix question.
|
|
1310
|
-
*
|
|
1321
|
+
*
|
|
1322
|
+
* This property adds a Transpose button to charts that visualize matrixes. When users select Per Values, matrix rows go to chart arguments and matrix columns form chart series. When users select Per Columns, matrix rows form chart series and matrix columns go to chart arguments.
|
|
1311
1323
|
*
|
|
1312
1324
|
* Default value: `false`
|
|
1313
1325
|
*/
|
|
1314
1326
|
allowTransposeData?: boolean;
|
|
1315
1327
|
/**
|
|
1316
|
-
* Allows users to cross-filter charts. The filter applies when users
|
|
1328
|
+
* Allows users to cross-filter charts. The filter applies when users select a series point.
|
|
1317
1329
|
*
|
|
1318
1330
|
* Default value: `true`
|
|
1319
1331
|
*/
|
|
@@ -1322,6 +1334,7 @@ declare module "visualizationPanel" {
|
|
|
1322
1334
|
destroyContent?: Function;
|
|
1323
1335
|
/**
|
|
1324
1336
|
* Removes HTML tags from survey element titles.
|
|
1337
|
+
*
|
|
1325
1338
|
* Survey element titles can contain HTML markup and are specified by users. An attacker can inject malicious code into the titles. To guard against it, keep this property set to `true`.
|
|
1326
1339
|
*
|
|
1327
1340
|
* Default value: `true`
|
|
@@ -1572,7 +1585,6 @@ declare module "plotly/setup" {
|
|
|
1572
1585
|
declare module "plotly/selectBase" {
|
|
1573
1586
|
import { Question } from "survey-core";
|
|
1574
1587
|
import { SelectBase } from "selectBase";
|
|
1575
|
-
import Plotly from "plotly.js-dist-min";
|
|
1576
1588
|
export class PlotlyChartAdapter {
|
|
1577
1589
|
protected model: SelectBase;
|
|
1578
1590
|
private _chart;
|
|
@@ -1682,7 +1694,6 @@ declare module "plotly/histogram" {
|
|
|
1682
1694
|
declare module "plotly/rating" {
|
|
1683
1695
|
import { Question } from "survey-core";
|
|
1684
1696
|
import { NumberModel } from "number";
|
|
1685
|
-
import Plotly from "plotly.js-dist-min";
|
|
1686
1697
|
export class PlotlyGaugeAdapter {
|
|
1687
1698
|
private model;
|
|
1688
1699
|
private _chart;
|
|
@@ -1754,7 +1765,6 @@ declare module "wordcloud/wordcloud" {
|
|
|
1754
1765
|
declare module "text" {
|
|
1755
1766
|
import { Question } from "survey-core";
|
|
1756
1767
|
import { VisualizerBase } from "visualizerBase";
|
|
1757
|
-
import "./text.scss";
|
|
1758
1768
|
export class TextTableAdapter {
|
|
1759
1769
|
private model;
|
|
1760
1770
|
constructor(model: Text);
|
|
@@ -1778,7 +1788,6 @@ declare module "text" {
|
|
|
1778
1788
|
declare module "choices-table" {
|
|
1779
1789
|
import { Question } from "survey-core";
|
|
1780
1790
|
import { SelectBase } from "selectBase";
|
|
1781
|
-
import "./choices-table.scss";
|
|
1782
1791
|
export class ChoicesTableAdapter {
|
|
1783
1792
|
private model;
|
|
1784
1793
|
constructor(model: ChoicesTable);
|