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 CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.0.0-rc.9
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.9
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.9
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
  */
@@ -1219,10 +1219,10 @@ class Tabulator extends Table {
1219
1219
  }
1220
1220
  return cellData;
1221
1221
  };
1222
- if (!!window && window["XLSX"] !== undefined && defaultOptions.downloadButtons.indexOf("xlsx") === -1) {
1222
+ if (((options && options.xlsx) || (!!window && window["XLSX"] !== undefined)) && defaultOptions.downloadButtons.indexOf("xlsx") === -1) {
1223
1223
  defaultOptions.downloadButtons.unshift("xlsx");
1224
1224
  }
1225
- if (!!window && window["jspdf"] !== undefined && defaultOptions.downloadButtons.indexOf("pdf") === -1) {
1225
+ if (((options && options.jspdf) || (!!window && window["jspdf"] !== undefined)) && defaultOptions.downloadButtons.indexOf("pdf") === -1) {
1226
1226
  defaultOptions.downloadButtons.unshift("pdf");
1227
1227
  }
1228
1228
  this._options = Object.assign({}, defaultOptions, options);
@@ -1256,13 +1256,17 @@ class Tabulator extends Table {
1256
1256
  columnMinWidth: this.options.columnMinWidth,
1257
1257
  paginationButtonCount: 3,
1258
1258
  nestedFieldSeparator: false,
1259
+ dependencies: {
1260
+ jspdf: this._options.jspdf,
1261
+ XLSX: this._options.xlsx
1262
+ },
1259
1263
  columnDefaults: {
1260
1264
  tooltip: (_, cell) => {
1261
1265
  const span = document.createElement("span");
1262
1266
  span.innerText = cell.getValue();
1263
1267
  return span.innerHTML;
1264
1268
  }
1265
- }
1269
+ },
1266
1270
  }, this._options.tabulatorOptions);
1267
1271
  if (data === undefined && typeof this.data === "function") {
1268
1272
  delete config.data;