devexpress-gantt 4.1.8 → 4.1.9

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.8
4
- * Build date: Wed Jan 26 2022
3
+ * Version: 4.1.9
4
+ * Build date: Wed Feb 02 2022
5
5
  *
6
6
  * Copyright (c) 2012 - 2022 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.8
4
- * Build date: Wed Jan 26 2022
3
+ * Version: 4.1.9
4
+ * Build date: Wed Feb 02 2022
5
5
  *
6
6
  * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
@@ -2908,7 +2908,8 @@ var GridLayoutCalculator = (function () {
2908
2908
  return new size_1.Size(width, 0);
2909
2909
  };
2910
2910
  GridLayoutCalculator.prototype.getTaskProgressWidth = function (index) {
2911
- return this.getTaskWidth(index) * this.getTask(index).progress / 100;
2911
+ var progress = Math.max(Math.min(this.getTask(index).progress, 100), 0);
2912
+ return this.getTaskWidth(index) * progress / 100;
2912
2913
  };
2913
2914
  GridLayoutCalculator.prototype.getTaskTextElementInfo = function (index, isInsideText) {
2914
2915
  var result = new GridElementInfo_1.GridElementInfo();
@@ -3087,7 +3088,10 @@ var GridLayoutCalculator = (function () {
3087
3088
  return this.getWidthByDateRange(this.range.start, date);
3088
3089
  };
3089
3090
  GridLayoutCalculator.prototype.getWidthByDateRange = function (start, end) {
3090
- return Math.max(DateUtils_1.DateUtils.getRangeTickCount(start, end, this.viewType) * this.tickSize.width, 0);
3091
+ return Math.max(this.getDistanceBetweenDates(start, end), 0);
3092
+ };
3093
+ GridLayoutCalculator.prototype.getDistanceBetweenDates = function (start, end) {
3094
+ return DateUtils_1.DateUtils.getRangeTickCount(start, end, this.viewType) * this.tickSize.width;
3091
3095
  };
3092
3096
  GridLayoutCalculator.prototype.getDateByPos = function (position) {
3093
3097
  if (this.viewType === Enums_1.ViewType.Months || this.viewType === Enums_1.ViewType.Quarter)
@@ -12393,7 +12397,7 @@ var TaskAreaExportHelper = (function () {
12393
12397
  Object.defineProperty(TaskAreaExportHelper.prototype, "customRangeLeftOffset", {
12394
12398
  get: function () {
12395
12399
  var _a;
12396
- (_a = this._customRangeLeftOffset) !== null && _a !== void 0 ? _a : (this._customRangeLeftOffset = Math.max(this.layoutCalculator.getWidthByDateRange(this.startDate, this.ownerStartDate), 0));
12400
+ (_a = this._customRangeLeftOffset) !== null && _a !== void 0 ? _a : (this._customRangeLeftOffset = this.layoutCalculator.getDistanceBetweenDates(this.startDate, this.ownerStartDate));
12397
12401
  return this._customRangeLeftOffset;
12398
12402
  },
12399
12403
  enumerable: false,
@@ -12740,7 +12744,7 @@ var TaskAreaExportHelper = (function () {
12740
12744
  get: function () {
12741
12745
  var _this = this;
12742
12746
  var _a;
12743
- (_a = this._connectorLines) !== null && _a !== void 0 ? _a : (this._connectorLines = this._owner.renderHelper.renderedConnectorLines.filter(function (l) { return _this.isLineVisible(l); }));
12747
+ (_a = this._connectorLines) !== null && _a !== void 0 ? _a : (this._connectorLines = this._owner.renderHelper.allConnectorLines.filter(function (l) { return _this.isLineVisible(l); }));
12744
12748
  return this._connectorLines;
12745
12749
  },
12746
12750
  enumerable: false,
@@ -12873,7 +12877,7 @@ var TaskAreaExportHelper = (function () {
12873
12877
  });
12874
12878
  Object.defineProperty(TaskAreaExportHelper.prototype, "hasCustomRangeOutOfRender", {
12875
12879
  get: function () {
12876
- return this.startDate.getTime() < this.ownerStartDate.getTime() || this.endDate.getTime() > this.ownerEndDate.getTime();
12880
+ return this.startDate.getTime() !== this.ownerStartDate.getTime() || this.endDate.getTime() !== this.ownerEndDate.getTime();
12877
12881
  },
12878
12882
  enumerable: false,
12879
12883
  configurable: true
@@ -13025,6 +13029,10 @@ var GanttPdfExportProps = (function () {
13025
13029
  this.pageSize = new size_1.Size(width, height);
13026
13030
  }
13027
13031
  }
13032
+ else if ((0, common_1.isDefined)(source.pageSize)) {
13033
+ var size = source.pageSize;
13034
+ this.pageSize = size instanceof size_1.Size ? size.clone() : new size_1.Size(size.width, size.height);
13035
+ }
13028
13036
  if ((0, common_1.isDefined)(source.exportMode))
13029
13037
  this.exportMode = this.getEnumValue(Enums_1.ExportMode, source.exportMode);
13030
13038
  if ((0, common_1.isDefined)(source.dateRange)) {
@@ -16035,6 +16043,14 @@ var RenderHelper = (function () {
16035
16043
  enumerable: false,
16036
16044
  configurable: true
16037
16045
  });
16046
+ Object.defineProperty(RenderHelper.prototype, "allConnectorLines", {
16047
+ get: function () {
16048
+ var lines = this.gridLayoutCalculator.tileToDependencyMap.reduce(function (acc, tile) { return acc = acc.concat(tile); }, []);
16049
+ return lines;
16050
+ },
16051
+ enumerable: false,
16052
+ configurable: true
16053
+ });
16038
16054
  Object.defineProperty(RenderHelper.prototype, "resourcesElements", {
16039
16055
  get: function () {
16040
16056
  return this._resourceRender.resourcesElements;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt.min)
3
- * Version: 4.1.8
4
- * Build date: Wed Jan 26 2022
3
+ * Version: 4.1.9
4
+ * Build date: Wed Feb 02 2022
5
5
  *
6
6
  * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs