@syncfusion/ej2-gantt 20.3.50 → 20.3.56
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/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 +15 -4
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +15 -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.d.ts +1 -0
- package/src/gantt/actions/dependency.js +5 -0
- package/src/gantt/actions/edit.js +7 -1
- package/src/gantt/actions/rowdragdrop.js +3 -3
|
@@ -11051,6 +11051,11 @@ var Dependency = /** @__PURE__ @class */ (function () {
|
|
|
11051
11051
|
this.validatePredecessor(record, undefined, 'successor');
|
|
11052
11052
|
}
|
|
11053
11053
|
}
|
|
11054
|
+
if (record && record.hasChildRecords && record.ganttProperties.taskId !== this.isValidatedParentTaskID &&
|
|
11055
|
+
this.parent.editModule['taskbarMoved']) {
|
|
11056
|
+
this.parent.editModule['updateChildItems'](record);
|
|
11057
|
+
this.isValidatedParentTaskID = record.ganttProperties.taskId;
|
|
11058
|
+
}
|
|
11054
11059
|
}
|
|
11055
11060
|
};
|
|
11056
11061
|
/**
|
|
@@ -23033,6 +23038,7 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
23033
23038
|
this.parent.predecessorModule.validatePredecessor(child, [], '');
|
|
23034
23039
|
}
|
|
23035
23040
|
}
|
|
23041
|
+
this.parent.predecessorModule.isValidatedParentTaskID = '';
|
|
23036
23042
|
/** validating predecessor for current edited records */
|
|
23037
23043
|
if (ganttRecord.ganttProperties.predecessor) {
|
|
23038
23044
|
this.parent.isMileStoneEdited = ganttRecord.ganttProperties.isMilestone;
|
|
@@ -23042,7 +23048,7 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
23042
23048
|
this.parent.predecessorModule.validatePredecessor(ganttRecord, [], '');
|
|
23043
23049
|
}
|
|
23044
23050
|
if (ganttRecord.hasChildRecords && this.parent.previousRecords[ganttRecord.uniqueID].ganttProperties.startDate &&
|
|
23045
|
-
(args.action === "DrawConnectorLine" || args.action === "DialogEditing")) {
|
|
23051
|
+
(args.action === "DrawConnectorLine" || args.action === "CellEditing" || args.action === "DialogEditing")) {
|
|
23046
23052
|
this.updateChildItems(ganttRecord);
|
|
23047
23053
|
}
|
|
23048
23054
|
this.updateParentItemOnEditing();
|
|
@@ -23050,6 +23056,11 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
23050
23056
|
/** Update parent up-to zeroth level */
|
|
23051
23057
|
if (ganttRecord.parentItem) {
|
|
23052
23058
|
this.parent.dataOperation.updateParentItems(ganttRecord, true);
|
|
23059
|
+
var parentData = this.parent.getRecordByID(ganttRecord.parentItem.taskId);
|
|
23060
|
+
if (parentData.ganttProperties.predecessor) {
|
|
23061
|
+
this.parent.predecessorModule.validatePredecessor(parentData, [], '');
|
|
23062
|
+
this.updateParentItemOnEditing();
|
|
23063
|
+
}
|
|
23053
23064
|
}
|
|
23054
23065
|
this.initiateSaveAction(args);
|
|
23055
23066
|
};
|
|
@@ -29638,20 +29649,20 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
29638
29649
|
var draggedParent = void 0;
|
|
29639
29650
|
var toParent_1;
|
|
29640
29651
|
if (draggedRecord.parentItem) {
|
|
29641
|
-
draggedParent = this.parent.
|
|
29652
|
+
draggedParent = this.parent.flatData[this.parent.ids.indexOf(draggedRecord.parentItem.taskId)];
|
|
29642
29653
|
}
|
|
29643
29654
|
else {
|
|
29644
29655
|
draggedParent = draggedRecord;
|
|
29645
29656
|
}
|
|
29646
29657
|
if (droppedRecord.parentItem) {
|
|
29647
|
-
toParent_1 = this.parent.
|
|
29658
|
+
toParent_1 = this.parent.flatData[this.parent.ids.indexOf(droppedRecord.parentItem.taskId)];
|
|
29648
29659
|
}
|
|
29649
29660
|
else {
|
|
29650
29661
|
toParent_1 = droppedRecord;
|
|
29651
29662
|
}
|
|
29652
29663
|
var validateRecords = void 0;
|
|
29653
29664
|
if (toParent_1.uniqueID === draggedParent.uniqueID || (draggedParent.parentItem &&
|
|
29654
|
-
toParent_1.uniqueID == this.parent.
|
|
29665
|
+
toParent_1.uniqueID == this.parent.flatData[this.parent.ids.indexOf(draggedParent.parentItem.taskId)].uniqueID)) {
|
|
29655
29666
|
validateRecords = this.parent.currentViewData.filter(function (data) {
|
|
29656
29667
|
if ((data.ganttProperties.predecessor && data.ganttProperties.predecessor.length > 0)) {
|
|
29657
29668
|
for (var i = 0; i < data.ganttProperties.predecessor.length; i++) {
|