survey-analytics 2.0.0-rc.9 → 2.0.0
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/fesm/shared.js +1 -1
- package/fesm/survey.analytics.js +1 -1
- package/fesm/survey.analytics.tabulator.js +8 -4
- package/fesm/survey.analytics.tabulator.js.map +1 -1
- package/package.json +2 -3
- package/survey-analytics-tabulator.types/tables/tabulator.d.ts +2 -0
- 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.tabulator.css +1 -1
- package/survey.analytics.tabulator.js +8 -4
- 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/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"lint": "eslint ./src --quiet",
|
|
18
18
|
"pre-push-check": "npm run lint && npm run test"
|
|
19
19
|
},
|
|
20
|
-
"version": "2.0.0
|
|
20
|
+
"version": "2.0.0",
|
|
21
21
|
"name": "survey-analytics",
|
|
22
22
|
"description": "SurveyJS analytics Library.",
|
|
23
23
|
"main": "survey.analytics.js",
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
"homepage": "https://surveyjs.io/",
|
|
41
41
|
"license": "SEE LICENSE IN LICENSE",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"jquery": "3.5.0",
|
|
44
43
|
"muuri": "^0.8.0",
|
|
45
44
|
"plotly.js-dist-min": "^2.28.0",
|
|
46
45
|
"tabulator-tables": "^6.2.5"
|
|
@@ -89,7 +88,7 @@
|
|
|
89
88
|
"peerDependencies": {
|
|
90
89
|
"@types/plotly.js-dist-min": "^2.3.0",
|
|
91
90
|
"@types/tabulator-tables": "^6.2.3",
|
|
92
|
-
"survey-core": "2.0.0
|
|
91
|
+
"survey-core": "2.0.0"
|
|
93
92
|
},
|
|
94
93
|
"husky": {
|
|
95
94
|
"hooks": {
|
package/survey.analytics.css
CHANGED
package/survey.analytics.js
CHANGED
package/survey.analytics.min.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - SurveyJS Dashboard library v2.0.0
|
|
2
|
+
* surveyjs - SurveyJS Dashboard library v2.0.0
|
|
3
3
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -3226,10 +3226,10 @@ var Tabulator = /** @class */ (function (_super) {
|
|
|
3226
3226
|
}
|
|
3227
3227
|
return cellData;
|
|
3228
3228
|
};
|
|
3229
|
-
if (!!window && window["XLSX"] !== undefined && defaultOptions.downloadButtons.indexOf("xlsx") === -1) {
|
|
3229
|
+
if (((options && options.xlsx) || (!!window && window["XLSX"] !== undefined)) && defaultOptions.downloadButtons.indexOf("xlsx") === -1) {
|
|
3230
3230
|
defaultOptions.downloadButtons.unshift("xlsx");
|
|
3231
3231
|
}
|
|
3232
|
-
if (!!window && window["jspdf"] !== undefined && defaultOptions.downloadButtons.indexOf("pdf") === -1) {
|
|
3232
|
+
if (((options && options.jspdf) || (!!window && window["jspdf"] !== undefined)) && defaultOptions.downloadButtons.indexOf("pdf") === -1) {
|
|
3233
3233
|
defaultOptions.downloadButtons.unshift("pdf");
|
|
3234
3234
|
}
|
|
3235
3235
|
_this._options = Object.assign({}, defaultOptions, options);
|
|
@@ -3275,13 +3275,17 @@ var Tabulator = /** @class */ (function (_super) {
|
|
|
3275
3275
|
columnMinWidth: this.options.columnMinWidth,
|
|
3276
3276
|
paginationButtonCount: 3,
|
|
3277
3277
|
nestedFieldSeparator: false,
|
|
3278
|
+
dependencies: {
|
|
3279
|
+
jspdf: this._options.jspdf,
|
|
3280
|
+
XLSX: this._options.xlsx
|
|
3281
|
+
},
|
|
3278
3282
|
columnDefaults: {
|
|
3279
3283
|
tooltip: function (_, cell) {
|
|
3280
3284
|
var span = document.createElement("span");
|
|
3281
3285
|
span.innerText = cell.getValue();
|
|
3282
3286
|
return span.innerHTML;
|
|
3283
3287
|
}
|
|
3284
|
-
}
|
|
3288
|
+
},
|
|
3285
3289
|
}, this._options.tabulatorOptions);
|
|
3286
3290
|
if (data === undefined && typeof this.data === "function") {
|
|
3287
3291
|
delete config.data;
|