@syncfusion/ej2-gantt 19.4.53 → 19.4.54
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.umd.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-gantt.es2015.js +11 -3
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +11 -3
- 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 +11 -11
- package/src/gantt/actions/cell-edit.js +2 -1
- package/src/gantt/actions/rowdragdrop.js +7 -1
- package/src/gantt/base/date-processor.js +2 -1
|
@@ -478,7 +478,8 @@ class DateProcessor {
|
|
|
478
478
|
calculateDuration(ganttData) {
|
|
479
479
|
const ganttProperties = ganttData.ganttProperties;
|
|
480
480
|
let tDuration;
|
|
481
|
-
if (!isNullOrUndefined(ganttProperties.segments) && ganttProperties.segments.length > 0
|
|
481
|
+
if (!isNullOrUndefined(ganttProperties.segments) && ganttProperties.segments.length > 0 &&
|
|
482
|
+
!isNullOrUndefined(this.parent.editModule.taskbarEditModule)) {
|
|
482
483
|
tDuration = this.parent.editModule.taskbarEditModule.sumOfDuration(ganttProperties.segments);
|
|
483
484
|
}
|
|
484
485
|
else {
|
|
@@ -15638,7 +15639,8 @@ class CellEdit {
|
|
|
15638
15639
|
if (!ganttRecord.ganttProperties.isAutoSchedule) {
|
|
15639
15640
|
this.parent.setRecordValue('autoWidth', this.parent.dataOperation.calculateWidth(ganttRecord, false), ganttRecord.ganttProperties, true);
|
|
15640
15641
|
}
|
|
15641
|
-
if (!isNullOrUndefined(args.data.ganttProperties.segments) && args.data.ganttProperties.segments.length > 0
|
|
15642
|
+
if (!isNullOrUndefined(args.data.ganttProperties.segments) && args.data.ganttProperties.segments.length > 0 &&
|
|
15643
|
+
!isNullOrUndefined(this.parent.editModule.taskbarEditModule)) {
|
|
15642
15644
|
this.parent.editModule.taskbarEditModule.updateSegmentProgress(args.data.ganttProperties);
|
|
15643
15645
|
}
|
|
15644
15646
|
if (!args.data.hasChildRecords) {
|
|
@@ -27106,7 +27108,13 @@ class RowDD$1 {
|
|
|
27106
27108
|
}
|
|
27107
27109
|
else {
|
|
27108
27110
|
startIndex = droppedRecord.index;
|
|
27109
|
-
|
|
27111
|
+
let rootChildRecord = draggedRecord;
|
|
27112
|
+
if (rootChildRecord.childRecords.length > 0) {
|
|
27113
|
+
do {
|
|
27114
|
+
rootChildRecord = rootChildRecord.childRecords[rootChildRecord.childRecords.length - 1];
|
|
27115
|
+
} while (rootChildRecord.childRecords.length > 0);
|
|
27116
|
+
}
|
|
27117
|
+
endIndex = rootChildRecord.index;
|
|
27110
27118
|
}
|
|
27111
27119
|
for (let i = startIndex; i <= endIndex; i++) {
|
|
27112
27120
|
if (!isNullOrUndefined(data[i])) {
|