survey-analytics 2.0.0-rc.8 → 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/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-rc.8",
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-rc.8"
91
+ "survey-core": "2.0.0"
93
92
  },
94
93
  "husky": {
95
94
  "hooks": {
@@ -15,6 +15,8 @@ interface ITabulatorOptions extends ITableOptions {
15
15
  onDownloadCallbacks?: {
16
16
  [type: string]: (tabulator: Tabulator, options: any) => void;
17
17
  };
18
+ xlsx?: any;
19
+ jspdf?: any;
18
20
  }
19
21
  export declare const defaultDownloadOptions: {
20
22
  fileName: string;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.0.0-rc.8
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
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.0.0-rc.8
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
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.0.0-rc.8
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
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.0.0-rc.8
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
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.0.0-rc.8
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
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.0.0-rc.8
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;