@syncfusion/ej2-gantt 20.4.43 → 20.4.49
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 +20 -0
- 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 +22 -9
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +28 -8
- 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/dependency.js +9 -1
- package/src/gantt/actions/dialog-edit.js +2 -0
- package/src/gantt/actions/edit.js +2 -2
- package/src/gantt/base/date-processor.js +1 -1
- package/src/gantt/base/task-processor.js +4 -2
- package/src/gantt/index.d.ts +1 -0
- package/src/gantt/index.js +1 -0
- package/src/gantt/renderer/timeline.js +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.49
|
|
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.48",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-rnjgY2upWShDlY1g0oKjWptfQekBILXmySKAGiE8Oq0H40jaapxjF79SZQYYkrWbAaymi8mDLCeBZRUflj7Esg==",
|
|
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.48.tgz",
|
|
27
|
+
"_shasum": "b3eca9c7f1d969c339fbf495dc1863495564854b",
|
|
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.48",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~20.4.49",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~20.4.48",
|
|
41
|
+
"@syncfusion/ej2-data": "~20.4.48",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~20.4.49",
|
|
43
|
+
"@syncfusion/ej2-grids": "~20.4.49",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~20.4.48",
|
|
45
|
+
"@syncfusion/ej2-layouts": "~20.4.48",
|
|
46
|
+
"@syncfusion/ej2-lists": "~20.4.48",
|
|
47
|
+
"@syncfusion/ej2-navigations": "~20.4.49",
|
|
48
|
+
"@syncfusion/ej2-notifications": "~20.4.48",
|
|
49
|
+
"@syncfusion/ej2-popups": "~20.4.49",
|
|
50
|
+
"@syncfusion/ej2-richtexteditor": "~20.4.49",
|
|
51
|
+
"@syncfusion/ej2-treegrid": "~20.4.49"
|
|
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.49",
|
|
77
77
|
"sideEffects": false
|
|
78
78
|
}
|
|
@@ -746,6 +746,14 @@ var Dependency = /** @class */ (function () {
|
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
748
|
if (record && record.ganttProperties.taskId !== this.isValidatedParentTaskID && ganttProp) {
|
|
749
|
+
var validUpdate = false;
|
|
750
|
+
var predecessorNames = ganttProp.ganttProperties.predecessorsName ?
|
|
751
|
+
ganttProp.ganttProperties.predecessorsName.split(',').length : ganttProp.ganttProperties.predecessorsName;
|
|
752
|
+
var predecessorLength = ganttProp.ganttProperties.predecessor ?
|
|
753
|
+
ganttProp.ganttProperties.predecessor.length : ganttProp.ganttProperties.predecessor;
|
|
754
|
+
if ((predecessorLength && predecessorNames !== predecessorLength)) {
|
|
755
|
+
validUpdate = true;
|
|
756
|
+
}
|
|
749
757
|
if ((taskBarModule.taskBarEditAction !== 'ParentDrag' && taskBarModule.taskBarEditAction !== 'ChildDrag')) {
|
|
750
758
|
if (!ganttProp.hasChildRecords && record.hasChildRecords) {
|
|
751
759
|
this.parent.editModule['updateChildItems'](record);
|
|
@@ -753,7 +761,7 @@ var Dependency = /** @class */ (function () {
|
|
|
753
761
|
}
|
|
754
762
|
}
|
|
755
763
|
else if ((record.hasChildRecords && taskBarModule.taskBarEditAction == 'ChildDrag') ||
|
|
756
|
-
(
|
|
764
|
+
(validUpdate && taskBarModule.taskBarEditAction == 'ParentDrag')) {
|
|
757
765
|
this.parent.editModule['updateChildItems'](record);
|
|
758
766
|
this.isValidatedParentTaskID = record.ganttProperties.taskId;
|
|
759
767
|
}
|
|
@@ -1081,6 +1081,8 @@ var DialogEdit = /** @class */ (function () {
|
|
|
1081
1081
|
if (taskSettings.duration === columnName) {
|
|
1082
1082
|
if (!isNullOrUndefined(value) && value !== '') {
|
|
1083
1083
|
ganttObj.dataOperation.updateDurationValue(value, ganttProp);
|
|
1084
|
+
this.parent.setRecordValue(taskSettings.duration, value, currentData);
|
|
1085
|
+
this.parent.setRecordValue('taskData.' + taskSettings.duration, ganttProp.duration, currentData);
|
|
1084
1086
|
}
|
|
1085
1087
|
else {
|
|
1086
1088
|
if (ganttObj.allowUnscheduledTasks) {
|
|
@@ -808,7 +808,7 @@ var Edit = /** @class */ (function () {
|
|
|
808
808
|
}
|
|
809
809
|
this.parent.predecessorModule.isValidatedParentTaskID = '';
|
|
810
810
|
/** validating predecessor for current edited records */
|
|
811
|
-
if (ganttRecord.ganttProperties.
|
|
811
|
+
if (ganttRecord.ganttProperties.predecessorsName) {
|
|
812
812
|
this.parent.isMileStoneEdited = ganttRecord.ganttProperties.isMilestone;
|
|
813
813
|
if (this.taskbarMoved) {
|
|
814
814
|
this.parent.editedTaskBarItem = ganttRecord;
|
|
@@ -817,7 +817,7 @@ var Edit = /** @class */ (function () {
|
|
|
817
817
|
this.parent.predecessorModule.isValidatedParentTaskID = '';
|
|
818
818
|
}
|
|
819
819
|
if (ganttRecord.hasChildRecords && this.parent.previousRecords[ganttRecord.uniqueID].ganttProperties.startDate &&
|
|
820
|
-
(args.action === "DrawConnectorLine"
|
|
820
|
+
(args.action === "DrawConnectorLine")) {
|
|
821
821
|
this.updateChildItems(ganttRecord);
|
|
822
822
|
}
|
|
823
823
|
this.updateParentItemOnEditing();
|
|
@@ -199,7 +199,7 @@ var DateProcessor = /** @class */ (function () {
|
|
|
199
199
|
if (hour > this.parent.defaultEndTime) {
|
|
200
200
|
this.setTime(this.parent.defaultEndTime, cloneDate);
|
|
201
201
|
}
|
|
202
|
-
else if (hour
|
|
202
|
+
else if (hour < this.parent.defaultStartTime && !isNullOrUndefined(ganttProp) && !ganttProp.isMilestone) {
|
|
203
203
|
cloneDate.setDate(cloneDate.getDate() - 1);
|
|
204
204
|
this.setTime(this.parent.defaultEndTime, cloneDate);
|
|
205
205
|
}
|
|
@@ -2247,8 +2247,10 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
2247
2247
|
progressValues = this.getParentProgress(childData);
|
|
2248
2248
|
totalProgress += getValue('totalProgress', progressValues);
|
|
2249
2249
|
if (childData[this.parent.taskFields.duration] < 1) {
|
|
2250
|
-
|
|
2251
|
-
|
|
2250
|
+
if (typeof (getValue('totalDuration', progressValues)) != 'object') {
|
|
2251
|
+
totalDuration += getValue('totalDuration', progressValues);
|
|
2252
|
+
totalDuration = Number(totalDuration.toFixed(4));
|
|
2253
|
+
}
|
|
2252
2254
|
}
|
|
2253
2255
|
else {
|
|
2254
2256
|
totalDuration += getValue('totalDuration', progressValues);
|
package/src/gantt/index.d.ts
CHANGED
package/src/gantt/index.js
CHANGED
|
@@ -631,7 +631,7 @@ var Timeline = /** @class */ (function () {
|
|
|
631
631
|
break;
|
|
632
632
|
case 'Month':
|
|
633
633
|
difference = Math.round((timeDifference / (1000 * 3600 * 24)) / 28);
|
|
634
|
-
tierCount = tierCount <= difference ? tierCount : difference > 0 ? difference : 1;
|
|
634
|
+
tierCount = tierCount <= difference ? tierCount : difference > 0 ? (difference + 1) : 1;
|
|
635
635
|
if (this.topTier !== 'None' && tier === 'bottomTier') {
|
|
636
636
|
tierCount = this.validateBottomTierCount(mode, tierCount);
|
|
637
637
|
}
|