survey-analytics 2.3.11 → 2.3.13

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/shared2.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.3.11
2
+ * surveyjs - SurveyJS Dashboard library v2.3.13
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.3.11
2
+ * surveyjs - SurveyJS Dashboard library v2.3.13
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.3.11
2
+ * surveyjs - SurveyJS Dashboard library v2.3.13
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.3.11
2
+ * surveyjs - SurveyJS Dashboard library v2.3.13
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.3.11
2
+ * surveyjs - SurveyJS Dashboard library v2.3.13
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
  */
@@ -190,6 +190,9 @@ TableExtensions.registerExtension({
190
190
  name: "showentries",
191
191
  visibleIndex: 3,
192
192
  render: function (table) {
193
+ if (table.options.paginationEnabled === false) {
194
+ return DocumentHelper.createElement("div");
195
+ }
193
196
  function getEntriesDropdown(table) {
194
197
  const el = DocumentHelper.createElement("select");
195
198
  var optionsValues = table.paginationSizeSelector || ["1", "5", "10", "25", "50", "75", "100"];
@@ -1042,10 +1045,14 @@ class Table {
1042
1045
  getLocales() {
1043
1046
  return [].concat(this._survey.getUsedLocales());
1044
1047
  }
1045
- refresh(hard = false) {
1046
- if (hard) {
1047
- this.initTableData(this.data);
1048
- }
1048
+ supportSoftRefresh() {
1049
+ return false;
1050
+ }
1051
+ softRefresh() {
1052
+ this.hardRefresh();
1053
+ }
1054
+ hardRefresh() {
1055
+ this.initTableData(this.data);
1049
1056
  if (this.isRendered) {
1050
1057
  this.currentPageNumber = this.getPageNumber();
1051
1058
  const targetNode = this.renderResult;
@@ -1055,6 +1062,14 @@ class Table {
1055
1062
  this.setPageNumber(this.currentPageNumber);
1056
1063
  }
1057
1064
  }
1065
+ refresh(hard = false) {
1066
+ if (hard || !this.supportSoftRefresh()) {
1067
+ this.hardRefresh();
1068
+ }
1069
+ else {
1070
+ this.softRefresh();
1071
+ }
1072
+ }
1058
1073
  destroy() {
1059
1074
  this.clearCreatedRows();
1060
1075
  this.extensions.destroy();
@@ -1335,6 +1350,14 @@ class Tabulator extends Table {
1335
1350
  }
1336
1351
  this._options = Object.assign({}, defaultOptions, options);
1337
1352
  }
1353
+ supportSoftRefresh() {
1354
+ return true;
1355
+ }
1356
+ softRefresh() {
1357
+ if (!this.isRendered)
1358
+ return;
1359
+ this.layout(true);
1360
+ }
1338
1361
  render(targetNode) {
1339
1362
  super.render(targetNode);
1340
1363
  if (typeof targetNode === "string") {
@@ -1352,7 +1375,8 @@ class Tabulator extends Table {
1352
1375
  Object.assign(config, {
1353
1376
  data,
1354
1377
  layout: "fitColumns",
1355
- pagination: "local",
1378
+ pagination: this.options.paginationEnabled !== false,
1379
+ paginationMode: "local",
1356
1380
  paginationSize: this.currentPageSize,
1357
1381
  movableColumns: true,
1358
1382
  // maxHeight: "100%",
@@ -1380,7 +1404,8 @@ class Tabulator extends Table {
1380
1404
  delete config.data;
1381
1405
  config.pagination = true;
1382
1406
  config.paginationMode = "remote";
1383
- config.ajaxFiltering = true; // Tabulator v4.8
1407
+ config.paginationSize = this.currentPageSize,
1408
+ config.ajaxFiltering = true; // Tabulator v4.8
1384
1409
  config.filterMode = "remote"; // Tabulator v6.2
1385
1410
  config.ajaxSorting = true; // Tabulator v4.8
1386
1411
  config.sortMode = "remote"; // Tabulator v6.2