@syncfusion/ej2-gantt 19.4.47 → 19.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.
@@ -23912,6 +23912,25 @@ class Edit$2 {
23912
23912
  const delRow = this.parent.getTaskByUniqueID(this.draggedRecord.uniqueID);
23913
23913
  this.removeRecords(delRow);
23914
23914
  }
23915
+ updateIndentedChildRecords(indentedRecord) {
23916
+ let createParentItem = {
23917
+ uniqueID: indentedRecord.uniqueID,
23918
+ expanded: indentedRecord.expanded,
23919
+ level: indentedRecord.level,
23920
+ index: indentedRecord.index,
23921
+ taskId: indentedRecord.ganttProperties.rowUniqueID
23922
+ };
23923
+ for (let i = 0; i < indentedRecord.childRecords.length; i++) {
23924
+ this.parent.setRecordValue('parentItem', createParentItem, indentedRecord.childRecords[i]);
23925
+ this.parent.setRecordValue('parentUniqueID', indentedRecord.uniqueID, indentedRecord.childRecords[i]);
23926
+ }
23927
+ if (indentedRecord.hasChildRecords) {
23928
+ indentedRecord = indentedRecord.childRecords;
23929
+ for (let j = 0; j < indentedRecord['length']; j++) {
23930
+ this.updateIndentedChildRecords(indentedRecord[j]);
23931
+ }
23932
+ }
23933
+ }
23915
23934
  dropMiddle(recordIndex1) {
23916
23935
  const obj = this.parent;
23917
23936
  const childRec = this.parent.editModule.getChildCount(this.droppedRecord, 0);
@@ -23927,6 +23946,10 @@ class Edit$2 {
23927
23946
  this.recordLevel();
23928
23947
  if (this.draggedRecord.hasChildRecords) {
23929
23948
  this.updateChildRecord(this.draggedRecord, childRecordsLength, this.droppedRecord.expanded);
23949
+ if (this.parent.enableImmutableMode) {
23950
+ let indentedRecord = this.draggedRecord;
23951
+ this.updateIndentedChildRecords(indentedRecord);
23952
+ }
23930
23953
  }
23931
23954
  if (isNullOrUndefined(this.draggedRecord.parentItem &&
23932
23955
  this.updateParentRecords.indexOf(this.draggedRecord.parentItem) !== -1)) {