devexpress-gantt 4.1.44 → 4.1.46

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/dist/dx-gantt.css CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt)
3
- * Version: 4.1.44
4
- * Build date: Fri May 19 2023
3
+ * Version: 4.1.46
4
+ * Build date: Fri May 26 2023
5
5
  *
6
6
  * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
package/dist/dx-gantt.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt)
3
- * Version: 4.1.44
4
- * Build date: Fri May 19 2023
3
+ * Version: 4.1.46
4
+ * Build date: Fri May 26 2023
5
5
  *
6
6
  * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
@@ -11338,10 +11338,12 @@ var GanttExportCalculator = (function () {
11338
11338
  var resources = wrapper.getElementsByClassName(GridLayoutCalculator_1.GridLayoutCalculator.taskResourceClassName);
11339
11339
  for (var i = 0; i < resources.length; i++) {
11340
11340
  var resource = resources[i];
11341
- var style = getComputedStyle(resource);
11342
- left += this.getMargin(style).left;
11343
- result.push(new TaskResourcesInfo_1.PdfTaskResourcesInfo(resource.textContent, new StyleDef_1.StyleDef(style), left, top_1));
11344
- left += dom_1.DomUtils.pxToInt(style.width);
11341
+ if (this.taskAreaHelper.isElementVisible(resource)) {
11342
+ var style = getComputedStyle(resource);
11343
+ left += this.getMargin(style).left;
11344
+ result.push(new TaskResourcesInfo_1.PdfTaskResourcesInfo(resource.textContent, new StyleDef_1.StyleDef(style), left, top_1));
11345
+ left += dom_1.DomUtils.pxToInt(style.width);
11346
+ }
11345
11347
  }
11346
11348
  }
11347
11349
  return result;
@@ -12055,6 +12057,9 @@ var TaskAreaExportHelper = (function () {
12055
12057
  var taskWrapper = this.getTaskWrapper(taskIndex);
12056
12058
  return this.getElementStyle(taskWrapper.getElementsByClassName(className)[0]);
12057
12059
  };
12060
+ TaskAreaExportHelper.prototype.isElementVisible = function (element) {
12061
+ return element && getComputedStyle(element).display !== "none";
12062
+ };
12058
12063
  Object.defineProperty(TaskAreaExportHelper.prototype, "hasTasks", {
12059
12064
  get: function () {
12060
12065
  return this.visibleTaskIndices.length > 0;
@@ -12254,7 +12259,7 @@ var TaskAreaExportHelper = (function () {
12254
12259
  get: function () {
12255
12260
  var _this = this;
12256
12261
  var _a;
12257
- (_a = this._resourcesElements) !== null && _a !== void 0 ? _a : (this._resourcesElements = this.visibleTaskIndices.map(function (tIndex) { return _this._owner.renderHelper.resourcesElements[tIndex]; }).filter(function (r) { return r && r.parentElement; }));
12262
+ (_a = this._resourcesElements) !== null && _a !== void 0 ? _a : (this._resourcesElements = this.visibleTaskIndices.map(function (tIndex) { return _this._owner.renderHelper.resourcesElements[tIndex]; }).filter(function (r) { return _this.isElementVisible(r) && r.parentElement; }));
12258
12263
  return this._resourcesElements;
12259
12264
  },
12260
12265
  enumerable: false,
@@ -20846,8 +20851,8 @@ var GanttViewApi = (function () {
20846
20851
  this.resetAndUpdate();
20847
20852
  if (autoPositioning)
20848
20853
  this.scrollLeftByViewType();
20849
- if (this.ganttOwner.UpdateGanttViewType)
20850
- this.ganttOwner.UpdateGanttViewType(viewType);
20854
+ if (this.ganttOwner.updateGanttViewType)
20855
+ this.ganttOwner.updateGanttViewType(viewType);
20851
20856
  }
20852
20857
  };
20853
20858
  GanttViewApi.prototype.setViewTypeRange = function (min, max) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt.min)
3
- * Version: 4.1.44
4
- * Build date: Fri May 19 2023
3
+ * Version: 4.1.46
4
+ * Build date: Fri May 26 2023
5
5
  *
6
6
  * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs