@syncfusion/ej2-gantt 20.4.42 → 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 +19 -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 +24 -4
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +40 -20
- 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/actions/rowdragdrop.js +25 -16
- package/src/gantt/actions/toolbar.js +3 -0
- package/src/gantt/base/date-processor.js +1 -1
- package/src/gantt/renderer/timeline.js +1 -1
- package/styles/bootstrap-dark.css +1 -1
- package/styles/bootstrap.css +1 -1
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/gantt/_theme.scss +1 -1
- package/styles/gantt/bootstrap-dark.css +1 -1
- package/styles/gantt/bootstrap.css +1 -1
- package/styles/gantt/bootstrap4.css +1 -1
- package/styles/gantt/bootstrap5-dark.css +1 -1
- package/styles/gantt/bootstrap5.css +1 -1
- package/styles/gantt/fabric-dark.css +1 -1
- package/styles/gantt/fabric.css +1 -1
- package/styles/gantt/fluent-dark.css +1 -1
- package/styles/gantt/fluent.css +1 -1
- package/styles/gantt/highcontrast-light.css +1 -1
- package/styles/gantt/highcontrast.css +1 -1
- package/styles/gantt/material-dark.css +1 -1
- package/styles/gantt/material.css +1 -1
- package/styles/gantt/tailwind-dark.css +1 -1
- package/styles/gantt/tailwind.css +1 -1
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/material.css +1 -1
- package/styles/tailwind-dark.css +1 -1
- package/styles/tailwind.css +1 -1
|
@@ -401,7 +401,7 @@ class DateProcessor {
|
|
|
401
401
|
if (hour > this.parent.defaultEndTime) {
|
|
402
402
|
this.setTime(this.parent.defaultEndTime, cloneDate);
|
|
403
403
|
}
|
|
404
|
-
else if (hour
|
|
404
|
+
else if (hour < this.parent.defaultStartTime && !isNullOrUndefined(ganttProp) && !ganttProp.isMilestone) {
|
|
405
405
|
cloneDate.setDate(cloneDate.getDate() - 1);
|
|
406
406
|
this.setTime(this.parent.defaultEndTime, cloneDate);
|
|
407
407
|
}
|
|
@@ -6116,7 +6116,7 @@ class Timeline {
|
|
|
6116
6116
|
break;
|
|
6117
6117
|
case 'Month':
|
|
6118
6118
|
difference = Math.round((timeDifference / (1000 * 3600 * 24)) / 28);
|
|
6119
|
-
tierCount = tierCount <= difference ? tierCount : difference > 0 ? difference : 1;
|
|
6119
|
+
tierCount = tierCount <= difference ? tierCount : difference > 0 ? (difference + 1) : 1;
|
|
6120
6120
|
if (this.topTier !== 'None' && tier === 'bottomTier') {
|
|
6121
6121
|
tierCount = this.validateBottomTierCount(mode, tierCount);
|
|
6122
6122
|
}
|
|
@@ -10938,6 +10938,14 @@ class Dependency {
|
|
|
10938
10938
|
}
|
|
10939
10939
|
}
|
|
10940
10940
|
if (record && record.ganttProperties.taskId !== this.isValidatedParentTaskID && ganttProp) {
|
|
10941
|
+
let validUpdate = false;
|
|
10942
|
+
let predecessorNames = ganttProp.ganttProperties.predecessorsName ?
|
|
10943
|
+
ganttProp.ganttProperties.predecessorsName.split(',').length : ganttProp.ganttProperties.predecessorsName;
|
|
10944
|
+
let predecessorLength = ganttProp.ganttProperties.predecessor ?
|
|
10945
|
+
ganttProp.ganttProperties.predecessor.length : ganttProp.ganttProperties.predecessor;
|
|
10946
|
+
if ((predecessorLength && predecessorNames !== predecessorLength)) {
|
|
10947
|
+
validUpdate = true;
|
|
10948
|
+
}
|
|
10941
10949
|
if ((taskBarModule.taskBarEditAction !== 'ParentDrag' && taskBarModule.taskBarEditAction !== 'ChildDrag')) {
|
|
10942
10950
|
if (!ganttProp.hasChildRecords && record.hasChildRecords) {
|
|
10943
10951
|
this.parent.editModule['updateChildItems'](record);
|
|
@@ -10945,7 +10953,7 @@ class Dependency {
|
|
|
10945
10953
|
}
|
|
10946
10954
|
}
|
|
10947
10955
|
else if ((record.hasChildRecords && taskBarModule.taskBarEditAction == 'ChildDrag') ||
|
|
10948
|
-
(
|
|
10956
|
+
(validUpdate && taskBarModule.taskBarEditAction == 'ParentDrag')) {
|
|
10949
10957
|
this.parent.editModule['updateChildItems'](record);
|
|
10950
10958
|
this.isValidatedParentTaskID = record.ganttProperties.taskId;
|
|
10951
10959
|
}
|
|
@@ -23384,7 +23392,7 @@ class Edit$2 {
|
|
|
23384
23392
|
}
|
|
23385
23393
|
this.parent.predecessorModule.isValidatedParentTaskID = '';
|
|
23386
23394
|
/** validating predecessor for current edited records */
|
|
23387
|
-
if (ganttRecord.ganttProperties.
|
|
23395
|
+
if (ganttRecord.ganttProperties.predecessorsName) {
|
|
23388
23396
|
this.parent.isMileStoneEdited = ganttRecord.ganttProperties.isMilestone;
|
|
23389
23397
|
if (this.taskbarMoved) {
|
|
23390
23398
|
this.parent.editedTaskBarItem = ganttRecord;
|
|
@@ -27660,6 +27668,9 @@ class Toolbar$3 {
|
|
|
27660
27668
|
* @private
|
|
27661
27669
|
*/
|
|
27662
27670
|
zoomToFit() {
|
|
27671
|
+
if (this.parent.timelineModule.isZoomIn) {
|
|
27672
|
+
this.parent.timelineModule.isZoomIn = false;
|
|
27673
|
+
}
|
|
27663
27674
|
this.parent.timelineModule.processZoomToFit();
|
|
27664
27675
|
this.parent.ganttChartModule.updateScrollLeft(0);
|
|
27665
27676
|
}
|
|
@@ -30073,6 +30084,15 @@ class RowDD$1 {
|
|
|
30073
30084
|
delete droppedRecord.taskData[this.parent.taskFields.segments];
|
|
30074
30085
|
}
|
|
30075
30086
|
}
|
|
30087
|
+
if (this.treeGridData.length != 0) {
|
|
30088
|
+
for (let i = 0; i < this.treeGridData.length; i++) {
|
|
30089
|
+
this.treeGridData[parseInt(i.toString(), 10)].index = i;
|
|
30090
|
+
if (!isNullOrUndefined(this.treeGridData[parseInt(i.toString(), 10)].parentItem)) {
|
|
30091
|
+
let updatedParent = getValue('uniqueIDCollection.' + this.treeGridData[parseInt(i.toString(), 10)].parentUniqueID, this.parent.treeGrid);
|
|
30092
|
+
this.treeGridData[parseInt(i.toString(), 10)].parentItem.index = updatedParent.index;
|
|
30093
|
+
}
|
|
30094
|
+
}
|
|
30095
|
+
}
|
|
30076
30096
|
// eslint-disable-next-line
|
|
30077
30097
|
if (!isNullOrUndefined(draggedRecord.parentItem && this.updateParentRecords.indexOf(draggedRecord.parentItem) !== -1)) {
|
|
30078
30098
|
this.updateParentRecords.push(draggedRecord.parentItem);
|