@syncfusion/ej2-gantt 20.4.40 → 20.4.42
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/CHANGELOG.md +9 -0
- package/README.md +1 -1
- package/dist/ej2-gantt.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-gantt.es2015.js +17 -7
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +17 -7
- package/dist/es6/ej2-gantt.es5.js.map +1 -1
- package/dist/global/ej2-gantt.min.js +2 -2
- package/dist/global/ej2-gantt.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +19 -19
- package/src/gantt/actions/edit.js +9 -1
- package/src/gantt/renderer/chart-rows.js +8 -6
- package/styles/bootstrap4.css +1 -1
- package/styles/gantt/bootstrap4.css +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.4.
|
|
3
|
+
* version : 20.4.42
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-gantt@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-gantt@20.4.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@20.4.40",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-gHDE1AaHulcoFWykplaK7TaEyMlx6eEyGjBMHQYI49gc3TJMCF9ruq1dj4e2APbA6YmV4jgO7EBa3+HJHv73gQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-gantt",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-gantt",
|
|
24
24
|
"/@syncfusion/ej2-vue-gantt"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.4.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.4.40.tgz",
|
|
27
|
+
"_shasum": "c5f2b6d0f703865e3c0bb43566cfbb8a5fc9dedc",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,20 +35,20 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~20.4.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~20.4.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~20.4.
|
|
41
|
-
"@syncfusion/ej2-data": "~20.4.
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~20.4.
|
|
43
|
-
"@syncfusion/ej2-grids": "~20.4.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~20.4.
|
|
45
|
-
"@syncfusion/ej2-layouts": "~20.4.
|
|
46
|
-
"@syncfusion/ej2-lists": "~20.4.
|
|
47
|
-
"@syncfusion/ej2-navigations": "~20.4.
|
|
48
|
-
"@syncfusion/ej2-notifications": "~20.4.
|
|
49
|
-
"@syncfusion/ej2-popups": "~20.4.
|
|
50
|
-
"@syncfusion/ej2-richtexteditor": "~20.4.
|
|
51
|
-
"@syncfusion/ej2-treegrid": "~20.4.
|
|
38
|
+
"@syncfusion/ej2-base": "~20.4.42",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~20.4.42",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~20.4.42",
|
|
41
|
+
"@syncfusion/ej2-data": "~20.4.42",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~20.4.42",
|
|
43
|
+
"@syncfusion/ej2-grids": "~20.4.42",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~20.4.42",
|
|
45
|
+
"@syncfusion/ej2-layouts": "~20.4.42",
|
|
46
|
+
"@syncfusion/ej2-lists": "~20.4.42",
|
|
47
|
+
"@syncfusion/ej2-navigations": "~20.4.42",
|
|
48
|
+
"@syncfusion/ej2-notifications": "~20.4.42",
|
|
49
|
+
"@syncfusion/ej2-popups": "~20.4.42",
|
|
50
|
+
"@syncfusion/ej2-richtexteditor": "~20.4.42",
|
|
51
|
+
"@syncfusion/ej2-treegrid": "~20.4.42"
|
|
52
52
|
},
|
|
53
53
|
"deprecated": false,
|
|
54
54
|
"description": "Essential JS 2 Gantt Component",
|
|
@@ -73,6 +73,6 @@
|
|
|
73
73
|
"url": "git+https://github.com/syncfusion/ej2-gantt.git"
|
|
74
74
|
},
|
|
75
75
|
"typings": "index.d.ts",
|
|
76
|
-
"version": "20.4.
|
|
76
|
+
"version": "20.4.42",
|
|
77
77
|
"sideEffects": false
|
|
78
78
|
}
|
|
@@ -479,7 +479,9 @@ var Edit = /** @class */ (function () {
|
|
|
479
479
|
if ((key === tasks.baselineStartDate || key === tasks.baselineEndDate) &&
|
|
480
480
|
(ganttData.ganttProperties.baselineStartDate && ganttData.ganttProperties.baselineEndDate)) {
|
|
481
481
|
ganttObj.setRecordValue('baselineStartDate', ganttObj.dataOperation.checkBaselineStartDate(ganttData.ganttProperties.baselineStartDate), ganttData.ganttProperties, true);
|
|
482
|
-
|
|
482
|
+
if (ganttData.ganttProperties.baselineEndDate && ganttData.ganttProperties.baselineEndDate.getHours() === 0 && this.parent.defaultEndTime !== 86400) {
|
|
483
|
+
ganttObj.dataOperation.setTime(this.parent.defaultEndTime, ganttData.ganttProperties.baselineEndDate);
|
|
484
|
+
}
|
|
483
485
|
ganttObj.setRecordValue('baselineEndDate', ganttObj.dataOperation.checkBaselineEndDate(ganttData.ganttProperties.baselineEndDate), ganttData.ganttProperties, true);
|
|
484
486
|
ganttObj.setRecordValue('baselineLeft', ganttObj.dataOperation.calculateBaselineLeft(ganttData.ganttProperties), ganttData.ganttProperties, true);
|
|
485
487
|
ganttObj.setRecordValue('baselineWidth', ganttObj.dataOperation.calculateBaselineWidth(ganttData.ganttProperties), ganttData.ganttProperties, true);
|
|
@@ -2812,6 +2814,12 @@ var Edit = /** @class */ (function () {
|
|
|
2812
2814
|
else {
|
|
2813
2815
|
_this.parent.showSpinner();
|
|
2814
2816
|
}
|
|
2817
|
+
var tasks = _this.parent.taskFields;
|
|
2818
|
+
var ganttData = _this.parent.viewType === 'ResourceView' ?
|
|
2819
|
+
_this.parent.flatData[_this.parent.getTaskIds().indexOf('T' + args.data[tasks.id])] : _this.parent.getRecordByID(args.data[tasks.id]);
|
|
2820
|
+
if (!isNullOrUndefined(ganttData)) {
|
|
2821
|
+
_this.validateUpdateValues(args.newTaskData, ganttData, true);
|
|
2822
|
+
}
|
|
2815
2823
|
if (!isNullOrUndefined(args.data[tempTaskID])) {
|
|
2816
2824
|
if (args.data[tempTaskID] != args.data['ganttProperties']['taskId']) {
|
|
2817
2825
|
args.data['ganttProperties']['taskId'] = args.data[tempTaskID];
|
|
@@ -473,7 +473,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
473
473
|
var splitStartDate = this.parent.dataOperation.checkStartDate(splitDate, ganttProp, false);
|
|
474
474
|
if (splitStartDate.getTime() !== ganttProp.startDate.getTime()) {
|
|
475
475
|
if (ganttProp.isAutoSchedule) {
|
|
476
|
-
if (!isNullOrUndefined(segments)) {
|
|
476
|
+
if (!isNullOrUndefined(segments) && segments.length > 0) {
|
|
477
477
|
segmentIndex = this.getSegmentIndex(splitStartDate, splitRecord);
|
|
478
478
|
}
|
|
479
479
|
//check atleast one day difference is there to split
|
|
@@ -792,11 +792,11 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
792
792
|
'width:' + data.ganttProperties.width + 'px;' +
|
|
793
793
|
'height:' + taskbarHeight + 'px;>' + innerDiv + ((data.ganttProperties.startDate && data.ganttProperties.endDate &&
|
|
794
794
|
data.ganttProperties.duration) || data.ganttProperties.duration ? '<div class="e-gantt-manualparenttaskbar-left" style=' +
|
|
795
|
-
(this.parent.enableRtl ? 'margin-right:0px;' : '') + '"height:' + taskbarHeight + 'px;border-left-width:' + taskbarHeight / 5 +
|
|
795
|
+
(this.parent.enableRtl ? 'margin-right:0px;' : '') + '"height:' + ((taskbarHeight / 5) + 8) + 'px;border-left-width:' + taskbarHeight / 5 +
|
|
796
796
|
'px; border-bottom:' + taskbarHeight / 5 + 'px solid transparent;"></div>' +
|
|
797
797
|
'<div class="e-gantt-manualparenttaskbar-right" style=' + (this.parent.enableRtl ? 'margin-right:-8px;' : '') +
|
|
798
|
-
(this.parent.enableRtl ? 'right:' : 'left:') + (data.ganttProperties.width - taskbarHeight / 5) + 'px;height:' +
|
|
799
|
-
(taskbarHeight) + 'px;border-right-width:' + taskbarHeight / 5 + 'px;border-bottom:' +
|
|
798
|
+
(this.parent.enableRtl ? 'right:' : 'left:') + (data.ganttProperties.width - Math.floor(((taskbarHeight / 5) + 8) / 5)) + 'px;height:' +
|
|
799
|
+
((taskbarHeight / 5) + 8) + 'px;border-right-width:' + taskbarHeight / 5 + 'px;border-bottom:' +
|
|
800
800
|
taskbarHeight / 5 + 'px solid transparent;>' + '</div></div>' : '');
|
|
801
801
|
var milestoneTemplate = '<div class="' + cls.manualParentMilestone + '" style="position:absolute;' +
|
|
802
802
|
(this.parent.enableRtl ? 'right:' : 'left:') +
|
|
@@ -860,7 +860,8 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
860
860
|
}
|
|
861
861
|
if (isNaN(parseInt(labelString))) {
|
|
862
862
|
labelDiv = '<span class="' + cls.taskLabel + '" style="line-height:' +
|
|
863
|
-
(
|
|
863
|
+
(data['isManual'] && data.hasChildRecords ? (Math.floor((60 / 100) * this.taskBarHeight)) : (this.taskBarHeight - 1)) +
|
|
864
|
+
'px; text-align:' + (this.parent.enableRtl ? 'right;' : 'left;') +
|
|
864
865
|
'display:' + 'inline-block;' +
|
|
865
866
|
'width:' + (data.ganttProperties.width - 10) + 'px; height:' +
|
|
866
867
|
this.taskBarHeight + 'px;">' + labelString + '</span>';
|
|
@@ -868,7 +869,8 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
868
869
|
else {
|
|
869
870
|
labelDiv = '<span class="' +
|
|
870
871
|
cls.taskLabel + '" style="line-height:' +
|
|
871
|
-
(
|
|
872
|
+
(data['isManual'] && data.hasChildRecords ? (Math.floor((60 / 100) * this.taskBarHeight)) : (this.taskBarHeight - 1)) + 'px;' +
|
|
873
|
+
(this.parent.viewType === 'ResourceView' ? 'display:inline-flex;' : '') +
|
|
872
874
|
(this.parent.viewType === 'ResourceView' ? 'width:' + (data.ganttProperties.width - 10) : '') + 'px; height:' +
|
|
873
875
|
(this.taskBarHeight - 1) + 'px;' + (this.parent.viewType === 'ResourceView' ? 'display: inline-flex;' : '') +
|
|
874
876
|
(this.parent.viewType === 'ResourceView' ? 'width:' + (data.ganttProperties.width - 10) : '') + 'px; height:' +
|
package/styles/bootstrap4.css
CHANGED