@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.4.47
3
+ * version : 19.4.48
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-gantt@*",
3
- "_id": "@syncfusion/ej2-gantt@19.4.43",
3
+ "_id": "@syncfusion/ej2-gantt@19.4.47",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-BMyuuEwg7q+hgA+tRyCGM4uWIzzy1m+HGTi//dBo2ZwFCY9zmbGWFh0c7LGXt2nyvH43r4bR3TvsmHwNIVkqzw==",
5
+ "_integrity": "sha512-l+YvQm0Z1/+Ef512h3b/XR3IJztpcCbx86DtxzQub3wgvn6hiCp9VWkVaaRVr+aQHi0X0dKkFM6UI2LwgnfX9A==",
6
6
  "_location": "/@syncfusion/ej2-gantt",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-gantt",
24
24
  "/@syncfusion/ej2-vue-gantt"
25
25
  ],
26
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-19.4.43.tgz",
27
- "_shasum": "166efda94ba1b891df35023e083b78e6a5128012",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-19.4.47.tgz",
27
+ "_shasum": "c0c21390db81e46ad8a05f50c02046c286b88b98",
28
28
  "_spec": "@syncfusion/ej2-gantt@*",
29
29
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
30
  "author": {
@@ -35,19 +35,19 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~19.4.42",
39
- "@syncfusion/ej2-buttons": "~19.4.42",
40
- "@syncfusion/ej2-calendars": "~19.4.42",
41
- "@syncfusion/ej2-data": "~19.4.47",
42
- "@syncfusion/ej2-dropdowns": "~19.4.47",
43
- "@syncfusion/ej2-grids": "~19.4.47",
44
- "@syncfusion/ej2-inputs": "~19.4.47",
45
- "@syncfusion/ej2-layouts": "~19.4.47",
46
- "@syncfusion/ej2-lists": "~19.4.38",
47
- "@syncfusion/ej2-navigations": "~19.4.47",
48
- "@syncfusion/ej2-popups": "~19.4.47",
49
- "@syncfusion/ej2-richtexteditor": "~19.4.47",
50
- "@syncfusion/ej2-treegrid": "~19.4.47"
38
+ "@syncfusion/ej2-base": "~19.4.48",
39
+ "@syncfusion/ej2-buttons": "~19.4.48",
40
+ "@syncfusion/ej2-calendars": "~19.4.48",
41
+ "@syncfusion/ej2-data": "~19.4.48",
42
+ "@syncfusion/ej2-dropdowns": "~19.4.48",
43
+ "@syncfusion/ej2-grids": "~19.4.48",
44
+ "@syncfusion/ej2-inputs": "~19.4.48",
45
+ "@syncfusion/ej2-layouts": "~19.4.48",
46
+ "@syncfusion/ej2-lists": "~19.4.48",
47
+ "@syncfusion/ej2-navigations": "~19.4.48",
48
+ "@syncfusion/ej2-popups": "~19.4.48",
49
+ "@syncfusion/ej2-richtexteditor": "~19.4.48",
50
+ "@syncfusion/ej2-treegrid": "~19.4.48"
51
51
  },
52
52
  "deprecated": false,
53
53
  "description": "Essential JS 2 Gantt Component",
@@ -75,6 +75,6 @@
75
75
  "url": "git+https://github.com/syncfusion/ej2-gantt.git"
76
76
  },
77
77
  "typings": "index.d.ts",
78
- "version": "19.4.47",
78
+ "version": "19.4.48",
79
79
  "sideEffects": false
80
80
  }
@@ -515,6 +515,7 @@ export declare class Edit {
515
515
  private indentOutdentSuccess;
516
516
  private refreshDataSource;
517
517
  private deleteDragRow;
518
+ private updateIndentedChildRecords;
518
519
  private dropMiddle;
519
520
  private updateChildRecordLevel;
520
521
  private updateChildRecord;
@@ -3150,6 +3150,25 @@ var Edit = /** @class */ (function () {
3150
3150
  var delRow = this.parent.getTaskByUniqueID(this.draggedRecord.uniqueID);
3151
3151
  this.removeRecords(delRow);
3152
3152
  };
3153
+ Edit.prototype.updateIndentedChildRecords = function (indentedRecord) {
3154
+ var createParentItem = {
3155
+ uniqueID: indentedRecord.uniqueID,
3156
+ expanded: indentedRecord.expanded,
3157
+ level: indentedRecord.level,
3158
+ index: indentedRecord.index,
3159
+ taskId: indentedRecord.ganttProperties.rowUniqueID
3160
+ };
3161
+ for (var i = 0; i < indentedRecord.childRecords.length; i++) {
3162
+ this.parent.setRecordValue('parentItem', createParentItem, indentedRecord.childRecords[i]);
3163
+ this.parent.setRecordValue('parentUniqueID', indentedRecord.uniqueID, indentedRecord.childRecords[i]);
3164
+ }
3165
+ if (indentedRecord.hasChildRecords) {
3166
+ indentedRecord = indentedRecord.childRecords;
3167
+ for (var j = 0; j < indentedRecord['length']; j++) {
3168
+ this.updateIndentedChildRecords(indentedRecord[j]);
3169
+ }
3170
+ }
3171
+ };
3153
3172
  Edit.prototype.dropMiddle = function (recordIndex1) {
3154
3173
  var obj = this.parent;
3155
3174
  var childRec = this.parent.editModule.getChildCount(this.droppedRecord, 0);
@@ -3165,6 +3184,10 @@ var Edit = /** @class */ (function () {
3165
3184
  this.recordLevel();
3166
3185
  if (this.draggedRecord.hasChildRecords) {
3167
3186
  this.updateChildRecord(this.draggedRecord, childRecordsLength, this.droppedRecord.expanded);
3187
+ if (this.parent.enableImmutableMode) {
3188
+ var indentedRecord = this.draggedRecord;
3189
+ this.updateIndentedChildRecords(indentedRecord);
3190
+ }
3168
3191
  }
3169
3192
  if (isNullOrUndefined(this.draggedRecord.parentItem &&
3170
3193
  this.updateParentRecords.indexOf(this.draggedRecord.parentItem) !== -1)) {