devexpress-gantt 4.0.9 → 4.0.10
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 +5 -5
- 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.0.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 4.0.10
|
|
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.0.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 4.0.10
|
|
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();
|
|
@@ -5288,7 +5287,7 @@ var TaskEditController = (function () {
|
|
|
5288
5287
|
TaskEditController.prototype.displayProgressEdit = function () {
|
|
5289
5288
|
if (!this.viewItem.isCustom && this.canUpdateTask() && this.isTaskUpdateAllowed() && this.wrapInfo.size.width > this.wrapInfo.size.height) {
|
|
5290
5289
|
this.progressEdit.style.display = "block";
|
|
5291
|
-
this.progressEdit.style.left = ((this.task.
|
|
5290
|
+
this.progressEdit.style.left = ((this.task.normalizedProgress / 100) * this.wrapInfo.size.width - (this.progressEdit.offsetWidth / 2)) + "px";
|
|
5292
5291
|
}
|
|
5293
5292
|
else
|
|
5294
5293
|
this.progressEdit.style.display = "none";
|
|
@@ -20354,6 +20353,13 @@ var Task = (function (_super) {
|
|
|
20354
20353
|
_this.color = "";
|
|
20355
20354
|
return _this;
|
|
20356
20355
|
}
|
|
20356
|
+
Object.defineProperty(Task.prototype, "normalizedProgress", {
|
|
20357
|
+
get: function () {
|
|
20358
|
+
return Math.max(Math.min(this.progress, 100), 0);
|
|
20359
|
+
},
|
|
20360
|
+
enumerable: false,
|
|
20361
|
+
configurable: true
|
|
20362
|
+
});
|
|
20357
20363
|
Task.prototype.assignFromObject = function (sourceObj) {
|
|
20358
20364
|
if ((0, common_1.isDefined)(sourceObj)) {
|
|
20359
20365
|
_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.0.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 4.0.10
|
|
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
|