devexpress-gantt 4.1.12 → 4.1.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/dist/dx-gantt.css +2 -2
- package/dist/dx-gantt.js +11 -5
- package/dist/dx-gantt.min.css +2 -2
- package/dist/dx-gantt.min.js +4 -4
- package/package.json +1 -1
package/dist/dx-gantt.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* DevExpress Gantt (dx-gantt)
|
|
3
|
-
* Version: 4.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 4.1.13
|
|
4
|
+
* Build date: Thu Feb 10 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.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 4.1.13
|
|
4
|
+
* Build date: Thu Feb 10 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,8 +2908,7 @@ var GridLayoutCalculator = (function () {
|
|
|
2908
2908
|
return new size_1.Size(width, 0);
|
|
2909
2909
|
};
|
|
2910
2910
|
GridLayoutCalculator.prototype.getTaskProgressWidth = function (index) {
|
|
2911
|
-
|
|
2912
|
-
return this.getTaskWidth(index) * progress / 100;
|
|
2911
|
+
return this.getTaskWidth(index) * this.getTask(index).normalizedProgress / 100;
|
|
2913
2912
|
};
|
|
2914
2913
|
GridLayoutCalculator.prototype.getTaskTextElementInfo = function (index, isInsideText) {
|
|
2915
2914
|
var result = new GridElementInfo_1.GridElementInfo();
|
|
@@ -5206,7 +5205,7 @@ var TaskEditController = (function () {
|
|
|
5206
5205
|
TaskEditController.prototype.displayProgressEdit = function () {
|
|
5207
5206
|
if (!this.viewItem.isCustom && this.canUpdateTask() && this.isTaskUpdateAllowed() && this.wrapInfo.size.width > this.wrapInfo.size.height) {
|
|
5208
5207
|
this.progressEdit.style.display = "block";
|
|
5209
|
-
this.progressEdit.style.left = ((this.task.
|
|
5208
|
+
this.progressEdit.style.left = ((this.task.normalizedProgress / 100) * this.wrapInfo.size.width - (this.progressEdit.offsetWidth / 2)) + "px";
|
|
5210
5209
|
}
|
|
5211
5210
|
else
|
|
5212
5211
|
this.progressEdit.style.display = "none";
|
|
@@ -20448,6 +20447,13 @@ var Task = (function (_super) {
|
|
|
20448
20447
|
_this.color = "";
|
|
20449
20448
|
return _this;
|
|
20450
20449
|
}
|
|
20450
|
+
Object.defineProperty(Task.prototype, "normalizedProgress", {
|
|
20451
|
+
get: function () {
|
|
20452
|
+
return Math.max(Math.min(this.progress, 100), 0);
|
|
20453
|
+
},
|
|
20454
|
+
enumerable: false,
|
|
20455
|
+
configurable: true
|
|
20456
|
+
});
|
|
20451
20457
|
Task.prototype.assignFromObject = function (sourceObj) {
|
|
20452
20458
|
if ((0, common_1.isDefined)(sourceObj)) {
|
|
20453
20459
|
_super.prototype.assignFromObject.call(this, sourceObj);
|
package/dist/dx-gantt.min.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* DevExpress Gantt (dx-gantt.min)
|
|
3
|
-
* Version: 4.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 4.1.13
|
|
4
|
+
* Build date: Thu Feb 10 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
|