@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
|
@@ -479,7 +479,8 @@ var DateProcessor = /** @__PURE__ @class */ (function () {
|
|
|
479
479
|
DateProcessor.prototype.calculateDuration = function (ganttData) {
|
|
480
480
|
var ganttProperties = ganttData.ganttProperties;
|
|
481
481
|
var tDuration;
|
|
482
|
-
if (!isNullOrUndefined(ganttProperties.segments) && ganttProperties.segments.length > 0
|
|
482
|
+
if (!isNullOrUndefined(ganttProperties.segments) && ganttProperties.segments.length > 0 &&
|
|
483
|
+
!isNullOrUndefined(this.parent.editModule.taskbarEditModule)) {
|
|
483
484
|
tDuration = this.parent.editModule.taskbarEditModule.sumOfDuration(ganttProperties.segments);
|
|
484
485
|
}
|
|
485
486
|
else {
|
|
@@ -16057,7 +16058,8 @@ var CellEdit = /** @__PURE__ @class */ (function () {
|
|
|
16057
16058
|
if (!ganttRecord.ganttProperties.isAutoSchedule) {
|
|
16058
16059
|
this.parent.setRecordValue('autoWidth', this.parent.dataOperation.calculateWidth(ganttRecord, false), ganttRecord.ganttProperties, true);
|
|
16059
16060
|
}
|
|
16060
|
-
if (!isNullOrUndefined(args.data.ganttProperties.segments) && args.data.ganttProperties.segments.length > 0
|
|
16061
|
+
if (!isNullOrUndefined(args.data.ganttProperties.segments) && args.data.ganttProperties.segments.length > 0 &&
|
|
16062
|
+
!isNullOrUndefined(this.parent.editModule.taskbarEditModule)) {
|
|
16061
16063
|
this.parent.editModule.taskbarEditModule.updateSegmentProgress(args.data.ganttProperties);
|
|
16062
16064
|
}
|
|
16063
16065
|
if (!args.data.hasChildRecords) {
|
|
@@ -27651,7 +27653,13 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
27651
27653
|
}
|
|
27652
27654
|
else {
|
|
27653
27655
|
startIndex = droppedRecord.index;
|
|
27654
|
-
|
|
27656
|
+
var rootChildRecord = draggedRecord;
|
|
27657
|
+
if (rootChildRecord.childRecords.length > 0) {
|
|
27658
|
+
do {
|
|
27659
|
+
rootChildRecord = rootChildRecord.childRecords[rootChildRecord.childRecords.length - 1];
|
|
27660
|
+
} while (rootChildRecord.childRecords.length > 0);
|
|
27661
|
+
}
|
|
27662
|
+
endIndex = rootChildRecord.index;
|
|
27655
27663
|
}
|
|
27656
27664
|
var _loop_2 = function (i_1) {
|
|
27657
27665
|
if (!isNullOrUndefined(data_1[i_1])) {
|