survey-analytics 1.12.6 → 1.12.8

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v1.12.6
2
+ * surveyjs - SurveyJS Dashboard library v1.12.8
3
3
  * Copyright (c) 2015-2024 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 v1.12.6
2
+ * surveyjs - SurveyJS Dashboard library v1.12.8
3
3
  * Copyright (c) 2015-2024 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 v1.12.6
2
+ * surveyjs - SurveyJS Dashboard library v1.12.8
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -2832,6 +2832,7 @@ var defaultDownloadOptions = {
2832
2832
  var defaultOptions = {
2833
2833
  tabulatorOptions: {},
2834
2834
  actionsColumnWidth: 60,
2835
+ columnMinWidth: 248,
2835
2836
  downloadHiddenColumns: false,
2836
2837
  downloadButtons: ["csv"],
2837
2838
  downloadOptions: defaultDownloadOptions,
@@ -2956,7 +2957,7 @@ var Tabulator = /** @class */ (function (_super) {
2956
2957
  tooltipsHeader: true,
2957
2958
  tooltips: function (cell) { return cell.getValue(); },
2958
2959
  downloadRowRange: "all",
2959
- columnMinWidth: 248,
2960
+ columnMinWidth: this.options.columnMinWidth,
2960
2961
  paginationButtonCount: 3,
2961
2962
  nestedFieldSeparator: false,
2962
2963
  }, this._options.tabulatorOptions);
@@ -3105,12 +3106,13 @@ var Tabulator = /** @class */ (function (_super) {
3105
3106
  Tabulator.prototype.setColumnWidth = function (columnName, width) {
3106
3107
  _super.prototype.setColumnWidth.call(this, columnName, width);
3107
3108
  if (this.isRendered) {
3108
- var definition = this.tabulatorTables
3109
- .getColumn(columnName)
3110
- .getDefinition();
3111
- definition.width = width;
3112
- definition.widthShrink = 0;
3113
- this.layout();
3109
+ var column = this.tabulatorTables.getColumn(columnName);
3110
+ if (!!column) {
3111
+ var definition = column.getDefinition();
3112
+ definition.width = width;
3113
+ definition.widthShrink = !!width ? 0 : 1;
3114
+ column.setWidth(width);
3115
+ }
3114
3116
  }
3115
3117
  };
3116
3118
  Tabulator.prototype.sortByColumn = function (columnName, direction) {