@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.3.50
3
+ * version : 20.3.52
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@20.3.49",
3
+ "_id": "@syncfusion/ej2-gantt@20.3.50",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-vgFZXyGQch31nJGDvAAnaXl50XBwr1ryX8mdnEhPJU5Y4dlCk6UMXd3bREhCE0Rhl85RfoLijbLoZXA/omIjNQ==",
5
+ "_integrity": "sha512-tZ8N8JZCWpcLimmN48sryAFv2cRtZosczDA2+K6EBfYPgHSbymj7Kr8SUcy4zEn9LrTYvXb6a40ofz44EEud9Q==",
6
6
  "_location": "/@syncfusion/ej2-gantt",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,10 +23,10 @@
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-20.3.49.tgz",
27
- "_shasum": "4d68747d121d9d64def512c6f2773a5a583d6b0a",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.3.50.tgz",
27
+ "_shasum": "4d0fe52bf76c918a2146dd208454bb4074c09152",
28
28
  "_spec": "@syncfusion/ej2-gantt@*",
29
- "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
29
+ "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
30
30
  "author": {
31
31
  "name": "Syncfusion Inc."
32
32
  },
@@ -40,14 +40,14 @@
40
40
  "@syncfusion/ej2-calendars": "~20.3.50",
41
41
  "@syncfusion/ej2-data": "~20.3.50",
42
42
  "@syncfusion/ej2-dropdowns": "~20.3.50",
43
- "@syncfusion/ej2-grids": "~20.3.50",
43
+ "@syncfusion/ej2-grids": "~20.3.52",
44
44
  "@syncfusion/ej2-inputs": "~20.3.50",
45
45
  "@syncfusion/ej2-layouts": "~20.3.48",
46
- "@syncfusion/ej2-lists": "~20.3.50",
47
- "@syncfusion/ej2-navigations": "~20.3.50",
46
+ "@syncfusion/ej2-lists": "~20.3.51",
47
+ "@syncfusion/ej2-navigations": "~20.3.52",
48
48
  "@syncfusion/ej2-popups": "~20.3.50",
49
49
  "@syncfusion/ej2-richtexteditor": "~20.3.50",
50
- "@syncfusion/ej2-treegrid": "~20.3.50"
50
+ "@syncfusion/ej2-treegrid": "~20.3.52"
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": "20.3.50",
78
+ "version": "20.3.52",
79
79
  "sideEffects": false
80
80
  }
@@ -9,6 +9,7 @@ export declare class Dependency {
9
9
  private parentRecord;
10
10
  private parentIds;
11
11
  private parentPredecessors;
12
+ isValidatedParentTaskID: string;
12
13
  constructor(gantt: Gantt);
13
14
  /**
14
15
  * Method to populate predecessor collections in records
@@ -737,6 +737,11 @@ var Dependency = /** @class */ (function () {
737
737
  this.validatePredecessor(record, undefined, 'successor');
738
738
  }
739
739
  }
740
+ if (record && record.hasChildRecords && record.ganttProperties.taskId !== this.isValidatedParentTaskID &&
741
+ this.parent.editModule['taskbarMoved']) {
742
+ this.parent.editModule['updateChildItems'](record);
743
+ this.isValidatedParentTaskID = record.ganttProperties.taskId;
744
+ }
740
745
  }
741
746
  };
742
747
  /**
@@ -798,6 +798,7 @@ var Edit = /** @class */ (function () {
798
798
  this.parent.predecessorModule.validatePredecessor(child, [], '');
799
799
  }
800
800
  }
801
+ this.parent.predecessorModule.isValidatedParentTaskID = '';
801
802
  /** validating predecessor for current edited records */
802
803
  if (ganttRecord.ganttProperties.predecessor) {
803
804
  this.parent.isMileStoneEdited = ganttRecord.ganttProperties.isMilestone;
@@ -807,7 +808,7 @@ var Edit = /** @class */ (function () {
807
808
  this.parent.predecessorModule.validatePredecessor(ganttRecord, [], '');
808
809
  }
809
810
  if (ganttRecord.hasChildRecords && this.parent.previousRecords[ganttRecord.uniqueID].ganttProperties.startDate &&
810
- (args.action === "DrawConnectorLine" || args.action === "DialogEditing")) {
811
+ (args.action === "DrawConnectorLine" || args.action === "CellEditing" || args.action === "DialogEditing")) {
811
812
  this.updateChildItems(ganttRecord);
812
813
  }
813
814
  this.updateParentItemOnEditing();
@@ -815,6 +816,11 @@ var Edit = /** @class */ (function () {
815
816
  /** Update parent up-to zeroth level */
816
817
  if (ganttRecord.parentItem) {
817
818
  this.parent.dataOperation.updateParentItems(ganttRecord, true);
819
+ var parentData = this.parent.getRecordByID(ganttRecord.parentItem.taskId);
820
+ if (parentData.ganttProperties.predecessor) {
821
+ this.parent.predecessorModule.validatePredecessor(parentData, [], '');
822
+ this.updateParentItemOnEditing();
823
+ }
818
824
  }
819
825
  this.initiateSaveAction(args);
820
826
  };
@@ -365,20 +365,20 @@ var RowDD = /** @class */ (function () {
365
365
  var draggedParent = void 0;
366
366
  var toParent_1;
367
367
  if (draggedRecord.parentItem) {
368
- draggedParent = this.parent.currentViewData[this.parent.ids.indexOf(draggedRecord.parentItem.taskId)];
368
+ draggedParent = this.parent.flatData[this.parent.ids.indexOf(draggedRecord.parentItem.taskId)];
369
369
  }
370
370
  else {
371
371
  draggedParent = draggedRecord;
372
372
  }
373
373
  if (droppedRecord.parentItem) {
374
- toParent_1 = this.parent.currentViewData[this.parent.ids.indexOf(droppedRecord.parentItem.taskId)];
374
+ toParent_1 = this.parent.flatData[this.parent.ids.indexOf(droppedRecord.parentItem.taskId)];
375
375
  }
376
376
  else {
377
377
  toParent_1 = droppedRecord;
378
378
  }
379
379
  var validateRecords = void 0;
380
380
  if (toParent_1.uniqueID === draggedParent.uniqueID || (draggedParent.parentItem &&
381
- toParent_1.uniqueID == this.parent.currentViewData[this.parent.ids.indexOf(draggedParent.parentItem.taskId)].uniqueID)) {
381
+ toParent_1.uniqueID == this.parent.flatData[this.parent.ids.indexOf(draggedParent.parentItem.taskId)].uniqueID)) {
382
382
  validateRecords = this.parent.currentViewData.filter(function (data) {
383
383
  if ((data.ganttProperties.predecessor && data.ganttProperties.predecessor.length > 0)) {
384
384
  for (var i = 0; i < data.ganttProperties.predecessor.length; i++) {