@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.
- package/CHANGELOG.md +3 -0
- 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 +23 -0
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +23 -0
- 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 +18 -18
- package/src/gantt/actions/edit.d.ts +1 -0
- package/src/gantt/actions/edit.js +23 -0
|
@@ -24421,6 +24421,25 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
24421
24421
|
var delRow = this.parent.getTaskByUniqueID(this.draggedRecord.uniqueID);
|
|
24422
24422
|
this.removeRecords(delRow);
|
|
24423
24423
|
};
|
|
24424
|
+
Edit$$1.prototype.updateIndentedChildRecords = function (indentedRecord) {
|
|
24425
|
+
var createParentItem = {
|
|
24426
|
+
uniqueID: indentedRecord.uniqueID,
|
|
24427
|
+
expanded: indentedRecord.expanded,
|
|
24428
|
+
level: indentedRecord.level,
|
|
24429
|
+
index: indentedRecord.index,
|
|
24430
|
+
taskId: indentedRecord.ganttProperties.rowUniqueID
|
|
24431
|
+
};
|
|
24432
|
+
for (var i = 0; i < indentedRecord.childRecords.length; i++) {
|
|
24433
|
+
this.parent.setRecordValue('parentItem', createParentItem, indentedRecord.childRecords[i]);
|
|
24434
|
+
this.parent.setRecordValue('parentUniqueID', indentedRecord.uniqueID, indentedRecord.childRecords[i]);
|
|
24435
|
+
}
|
|
24436
|
+
if (indentedRecord.hasChildRecords) {
|
|
24437
|
+
indentedRecord = indentedRecord.childRecords;
|
|
24438
|
+
for (var j = 0; j < indentedRecord['length']; j++) {
|
|
24439
|
+
this.updateIndentedChildRecords(indentedRecord[j]);
|
|
24440
|
+
}
|
|
24441
|
+
}
|
|
24442
|
+
};
|
|
24424
24443
|
Edit$$1.prototype.dropMiddle = function (recordIndex1) {
|
|
24425
24444
|
var obj = this.parent;
|
|
24426
24445
|
var childRec = this.parent.editModule.getChildCount(this.droppedRecord, 0);
|
|
@@ -24436,6 +24455,10 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
24436
24455
|
this.recordLevel();
|
|
24437
24456
|
if (this.draggedRecord.hasChildRecords) {
|
|
24438
24457
|
this.updateChildRecord(this.draggedRecord, childRecordsLength, this.droppedRecord.expanded);
|
|
24458
|
+
if (this.parent.enableImmutableMode) {
|
|
24459
|
+
var indentedRecord = this.draggedRecord;
|
|
24460
|
+
this.updateIndentedChildRecords(indentedRecord);
|
|
24461
|
+
}
|
|
24439
24462
|
}
|
|
24440
24463
|
if (isNullOrUndefined(this.draggedRecord.parentItem &&
|
|
24441
24464
|
this.updateParentRecords.indexOf(this.draggedRecord.parentItem) !== -1)) {
|