devexpress-gantt 2.0.4 → 2.0.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.
- package/dist/dx-gantt.css +2 -2
- package/dist/dx-gantt.js +33 -9
- package/dist/dx-gantt.min.css +2 -2
- package/dist/dx-gantt.min.js +3 -3
- 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: 2.0.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 2.0.8
|
|
4
|
+
* Build date: Wed Nov 18 2020
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2020 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: 2.0.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 2.0.8
|
|
4
|
+
* Build date: Wed Nov 18 2020
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|
|
@@ -4478,6 +4478,9 @@ var DateUtils = (function () {
|
|
|
4478
4478
|
DateUtils.parse = function (data) {
|
|
4479
4479
|
return typeof data === "function" ? new Date(data()) : new Date(data);
|
|
4480
4480
|
};
|
|
4481
|
+
DateUtils.getTimezoneOffsetDiff = function (data1, data2) {
|
|
4482
|
+
return data2.getTimezoneOffset() - data1.getTimezoneOffset();
|
|
4483
|
+
};
|
|
4481
4484
|
DateUtils.msPerHour = 3600000;
|
|
4482
4485
|
DateUtils.msPerDay = 24 * DateUtils.msPerHour;
|
|
4483
4486
|
DateUtils.msPerWeek = 7 * DateUtils.msPerDay;
|
|
@@ -4538,8 +4541,13 @@ var ElementTextHelper = (function () {
|
|
|
4538
4541
|
result.setFullYear(result.getFullYear() + index * 5);
|
|
4539
4542
|
break;
|
|
4540
4543
|
}
|
|
4544
|
+
result = this.getScaleStartDateCorrectedWithDST(result);
|
|
4541
4545
|
return result;
|
|
4542
4546
|
};
|
|
4547
|
+
ElementTextHelper.prototype.getScaleStartDateCorrectedWithDST = function (date) {
|
|
4548
|
+
var timeZoneDiff = DateUtils.getTimezoneOffsetDiff(new Date(this.startTime), date);
|
|
4549
|
+
return timeZoneDiff > 0 ? new Date(date.getTime() + timeZoneDiff * 60000) : date;
|
|
4550
|
+
};
|
|
4543
4551
|
ElementTextHelper.prototype.getScaleItemText = function (index, scaleType) {
|
|
4544
4552
|
var scaleItemStartDate = this.getScaleItemStartDate(index, scaleType);
|
|
4545
4553
|
var isViewTypeScale = this.viewType.valueOf() == scaleType.valueOf();
|
|
@@ -4897,6 +4905,7 @@ var EditingSettings = (function () {
|
|
|
4897
4905
|
this.allowResourceDelete = true;
|
|
4898
4906
|
this.allowResourceInsert = true;
|
|
4899
4907
|
this.allowResourceUpdate = true;
|
|
4908
|
+
this.allowTaskResourceUpdate = true;
|
|
4900
4909
|
}
|
|
4901
4910
|
EditingSettings.parse = function (settings) {
|
|
4902
4911
|
var result = new EditingSettings();
|
|
@@ -4919,6 +4928,8 @@ var EditingSettings = (function () {
|
|
|
4919
4928
|
result.allowResourceInsert = settings.allowResourceInsert;
|
|
4920
4929
|
if (common_1.isDefined(settings.allowResourceUpdate))
|
|
4921
4930
|
result.allowResourceUpdate = settings.allowResourceUpdate;
|
|
4931
|
+
if (common_1.isDefined(settings.allowTaskResourceUpdate))
|
|
4932
|
+
result.allowTaskResourceUpdate = settings.allowTaskResourceUpdate;
|
|
4922
4933
|
}
|
|
4923
4934
|
return result;
|
|
4924
4935
|
};
|
|
@@ -4933,6 +4944,7 @@ var EditingSettings = (function () {
|
|
|
4933
4944
|
result = result && this.allowResourceDelete === settings.allowResourceDelete;
|
|
4934
4945
|
result = result && this.allowResourceInsert === settings.allowResourceInsert;
|
|
4935
4946
|
result = result && this.allowResourceUpdate === settings.allowResourceUpdate;
|
|
4947
|
+
result = result && this.allowTaskResourceUpdate === settings.allowTaskResourceUpdate;
|
|
4936
4948
|
return result;
|
|
4937
4949
|
};
|
|
4938
4950
|
return EditingSettings;
|
|
@@ -5237,13 +5249,14 @@ var TaskEditController = (function () {
|
|
|
5237
5249
|
};
|
|
5238
5250
|
TaskEditController.prototype.getNewDate = function (referenceDate, newDate) {
|
|
5239
5251
|
if (this.gantt.settings.viewType > Enums_1.ViewType.SixHours) {
|
|
5240
|
-
var
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5252
|
+
var year = newDate.getFullYear();
|
|
5253
|
+
var month = newDate.getMonth();
|
|
5254
|
+
var day = newDate.getDate();
|
|
5255
|
+
var hours = this.gantt.settings.viewType == Enums_1.ViewType.Days ? newDate.getHours() : referenceDate.getHours();
|
|
5256
|
+
var minutes = referenceDate.getMinutes();
|
|
5257
|
+
var sec = referenceDate.getSeconds();
|
|
5258
|
+
var msec = referenceDate.getMilliseconds();
|
|
5259
|
+
return new Date(year, month, day, hours, minutes, sec, msec);
|
|
5247
5260
|
}
|
|
5248
5261
|
return newDate;
|
|
5249
5262
|
};
|
|
@@ -6655,7 +6668,9 @@ var GanttView = (function () {
|
|
|
6655
6668
|
GanttView.prototype.updateRowHeights = function (height) {
|
|
6656
6669
|
if (this.tickSize.height !== height) {
|
|
6657
6670
|
this.tickSize.height = height;
|
|
6671
|
+
var leftPosition = this.taskAreaContainer.scrollLeft;
|
|
6658
6672
|
this.resetAndUpdate();
|
|
6673
|
+
this.taskAreaContainer.scrollLeft = leftPosition;
|
|
6659
6674
|
}
|
|
6660
6675
|
};
|
|
6661
6676
|
GanttView.prototype.selectTask = function (id) {
|
|
@@ -6685,6 +6700,9 @@ var GanttView = (function () {
|
|
|
6685
6700
|
GanttView.prototype.setWidth = function (value) {
|
|
6686
6701
|
this.mainElement.style.width = value + "px";
|
|
6687
6702
|
};
|
|
6703
|
+
GanttView.prototype.setHeight = function (value) {
|
|
6704
|
+
this.mainElement.style.height = value + "px";
|
|
6705
|
+
};
|
|
6688
6706
|
GanttView.prototype.setAllowSelection = function (value) {
|
|
6689
6707
|
this.settings.allowSelectTask = value;
|
|
6690
6708
|
};
|
|
@@ -11563,6 +11581,9 @@ var AssignResourceCommand = (function (_super) {
|
|
|
11563
11581
|
}
|
|
11564
11582
|
return false;
|
|
11565
11583
|
};
|
|
11584
|
+
AssignResourceCommand.prototype.isEnabled = function () {
|
|
11585
|
+
return _super.prototype.isEnabled.call(this) && this.control.settings.editing.allowTaskResourceUpdate;
|
|
11586
|
+
};
|
|
11566
11587
|
return AssignResourceCommand;
|
|
11567
11588
|
}(ResourceCommandBase));
|
|
11568
11589
|
exports.AssignResourceCommand = AssignResourceCommand;
|
|
@@ -11582,6 +11603,9 @@ var DeassignResourceCommand = (function (_super) {
|
|
|
11582
11603
|
}
|
|
11583
11604
|
return false;
|
|
11584
11605
|
};
|
|
11606
|
+
DeassignResourceCommand.prototype.isEnabled = function () {
|
|
11607
|
+
return _super.prototype.isEnabled.call(this) && this.control.settings.editing.allowTaskResourceUpdate;
|
|
11608
|
+
};
|
|
11585
11609
|
return DeassignResourceCommand;
|
|
11586
11610
|
}(ResourceCommandBase));
|
|
11587
11611
|
exports.DeassignResourceCommand = DeassignResourceCommand;
|
package/dist/dx-gantt.min.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* DevExpress Gantt (dx-gantt.min)
|
|
3
|
-
* Version: 2.0.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 2.0.8
|
|
4
|
+
* Build date: Wed Nov 18 2020
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|