@syncfusion/ej2-gantt 20.4.43 → 20.4.48
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 +10 -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 +12 -4
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +12 -4
- 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/edit.js +1 -1
- package/src/gantt/base/date-processor.js +1 -1
- 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.48
|
|
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.43",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-O2Ug+BtJwnnaZQE1MYtgayS8NwcBBBLEQ9eLSJiW1d5okDHDf1hDy1xUYCJ0wTkt1Y79uXmEeiAqrKVrogE4EA==",
|
|
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.43.tgz",
|
|
27
|
+
"_shasum": "31627e64ff0537667adbc2f5931e47ce0ce0d471",
|
|
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.48",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~20.4.48",
|
|
41
|
+
"@syncfusion/ej2-data": "~20.4.48",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~20.4.48",
|
|
43
|
+
"@syncfusion/ej2-grids": "~20.4.48",
|
|
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.48",
|
|
48
|
+
"@syncfusion/ej2-notifications": "~20.4.48",
|
|
49
|
+
"@syncfusion/ej2-popups": "~20.4.48",
|
|
50
|
+
"@syncfusion/ej2-richtexteditor": "~20.4.48",
|
|
51
|
+
"@syncfusion/ej2-treegrid": "~20.4.48"
|
|
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.48",
|
|
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
|
}
|
|
@@ -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;
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|