@syncfusion/ej2-gantt 20.3.50 → 20.3.52

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.
@@ -10659,6 +10659,11 @@ class Dependency {
10659
10659
  this.validatePredecessor(record, undefined, 'successor');
10660
10660
  }
10661
10661
  }
10662
+ if (record && record.hasChildRecords && record.ganttProperties.taskId !== this.isValidatedParentTaskID &&
10663
+ this.parent.editModule['taskbarMoved']) {
10664
+ this.parent.editModule['updateChildItems'](record);
10665
+ this.isValidatedParentTaskID = record.ganttProperties.taskId;
10666
+ }
10662
10667
  }
10663
10668
  }
10664
10669
  /**
@@ -22529,6 +22534,7 @@ class Edit$2 {
22529
22534
  this.parent.predecessorModule.validatePredecessor(child, [], '');
22530
22535
  }
22531
22536
  }
22537
+ this.parent.predecessorModule.isValidatedParentTaskID = '';
22532
22538
  /** validating predecessor for current edited records */
22533
22539
  if (ganttRecord.ganttProperties.predecessor) {
22534
22540
  this.parent.isMileStoneEdited = ganttRecord.ganttProperties.isMilestone;
@@ -22538,7 +22544,7 @@ class Edit$2 {
22538
22544
  this.parent.predecessorModule.validatePredecessor(ganttRecord, [], '');
22539
22545
  }
22540
22546
  if (ganttRecord.hasChildRecords && this.parent.previousRecords[ganttRecord.uniqueID].ganttProperties.startDate &&
22541
- (args.action === "DrawConnectorLine" || args.action === "DialogEditing")) {
22547
+ (args.action === "DrawConnectorLine" || args.action === "CellEditing" || args.action === "DialogEditing")) {
22542
22548
  this.updateChildItems(ganttRecord);
22543
22549
  }
22544
22550
  this.updateParentItemOnEditing();
@@ -22546,6 +22552,11 @@ class Edit$2 {
22546
22552
  /** Update parent up-to zeroth level */
22547
22553
  if (ganttRecord.parentItem) {
22548
22554
  this.parent.dataOperation.updateParentItems(ganttRecord, true);
22555
+ let parentData = this.parent.getRecordByID(ganttRecord.parentItem.taskId);
22556
+ if (parentData.ganttProperties.predecessor) {
22557
+ this.parent.predecessorModule.validatePredecessor(parentData, [], '');
22558
+ this.updateParentItemOnEditing();
22559
+ }
22549
22560
  }
22550
22561
  this.initiateSaveAction(args);
22551
22562
  }
@@ -29057,20 +29068,20 @@ class RowDD$1 {
29057
29068
  let draggedParent;
29058
29069
  let toParent;
29059
29070
  if (draggedRecord.parentItem) {
29060
- draggedParent = this.parent.currentViewData[this.parent.ids.indexOf(draggedRecord.parentItem.taskId)];
29071
+ draggedParent = this.parent.flatData[this.parent.ids.indexOf(draggedRecord.parentItem.taskId)];
29061
29072
  }
29062
29073
  else {
29063
29074
  draggedParent = draggedRecord;
29064
29075
  }
29065
29076
  if (droppedRecord.parentItem) {
29066
- toParent = this.parent.currentViewData[this.parent.ids.indexOf(droppedRecord.parentItem.taskId)];
29077
+ toParent = this.parent.flatData[this.parent.ids.indexOf(droppedRecord.parentItem.taskId)];
29067
29078
  }
29068
29079
  else {
29069
29080
  toParent = droppedRecord;
29070
29081
  }
29071
29082
  let validateRecords;
29072
29083
  if (toParent.uniqueID === draggedParent.uniqueID || (draggedParent.parentItem &&
29073
- toParent.uniqueID == this.parent.currentViewData[this.parent.ids.indexOf(draggedParent.parentItem.taskId)].uniqueID)) {
29084
+ toParent.uniqueID == this.parent.flatData[this.parent.ids.indexOf(draggedParent.parentItem.taskId)].uniqueID)) {
29074
29085
  validateRecords = this.parent.currentViewData.filter((data) => {
29075
29086
  if ((data.ganttProperties.predecessor && data.ganttProperties.predecessor.length > 0)) {
29076
29087
  for (let i = 0; i < data.ganttProperties.predecessor.length; i++) {