@syncfusion/ej2-gantt 20.4.49 → 20.4.51

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.4.49
3
+ * version : 20.4.51
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
Binary file
Binary file
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-gantt@*",
3
- "_id": "@syncfusion/ej2-gantt@20.4.48",
3
+ "_id": "@syncfusion/ej2-gantt@20.4.50",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-rnjgY2upWShDlY1g0oKjWptfQekBILXmySKAGiE8Oq0H40jaapxjF79SZQYYkrWbAaymi8mDLCeBZRUflj7Esg==",
5
+ "_integrity": "sha512-MTexEpLalEOVIDdEkPvbYTn56G+8FWX04g0OKhlL/UydIfhXmT4I2mLfzgIq7WX7PAqC0EAio9pupG5eCD+kAA==",
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": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.4.48.tgz",
27
- "_shasum": "b3eca9c7f1d969c339fbf495dc1863495564854b",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.4.50.tgz",
27
+ "_shasum": "d953e76107a7fddcced14ea34d77d224ae7e41f0",
28
28
  "_spec": "@syncfusion/ej2-gantt@*",
29
29
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
30
30
  "author": {
@@ -35,19 +35,19 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~20.4.48",
39
- "@syncfusion/ej2-buttons": "~20.4.49",
40
- "@syncfusion/ej2-calendars": "~20.4.48",
38
+ "@syncfusion/ej2-base": "~20.4.51",
39
+ "@syncfusion/ej2-buttons": "~20.4.50",
40
+ "@syncfusion/ej2-calendars": "~20.4.51",
41
41
  "@syncfusion/ej2-data": "~20.4.48",
42
- "@syncfusion/ej2-dropdowns": "~20.4.49",
43
- "@syncfusion/ej2-grids": "~20.4.49",
44
- "@syncfusion/ej2-inputs": "~20.4.48",
42
+ "@syncfusion/ej2-dropdowns": "~20.4.51",
43
+ "@syncfusion/ej2-grids": "~20.4.51",
44
+ "@syncfusion/ej2-inputs": "~20.4.51",
45
45
  "@syncfusion/ej2-layouts": "~20.4.48",
46
- "@syncfusion/ej2-lists": "~20.4.48",
47
- "@syncfusion/ej2-navigations": "~20.4.49",
46
+ "@syncfusion/ej2-lists": "~20.4.50",
47
+ "@syncfusion/ej2-navigations": "~20.4.51",
48
48
  "@syncfusion/ej2-notifications": "~20.4.48",
49
- "@syncfusion/ej2-popups": "~20.4.49",
50
- "@syncfusion/ej2-richtexteditor": "~20.4.49",
49
+ "@syncfusion/ej2-popups": "~20.4.51",
50
+ "@syncfusion/ej2-richtexteditor": "~20.4.51",
51
51
  "@syncfusion/ej2-treegrid": "~20.4.49"
52
52
  },
53
53
  "deprecated": false,
@@ -73,6 +73,6 @@
73
73
  "url": "git+https://github.com/syncfusion/ej2-gantt.git"
74
74
  },
75
75
  "typings": "index.d.ts",
76
- "version": "20.4.49",
76
+ "version": "20.4.51",
77
77
  "sideEffects": false
78
78
  }
@@ -1421,6 +1421,8 @@ var Edit = /** @class */ (function () {
1421
1421
  this.addRecordAsBottom(cAddedRecord);
1422
1422
  var parentRecord = this.parent.flatData[this.parent.flatData.length - 1];
1423
1423
  this.addNewRecord(updateRecord, parentRecord);
1424
+ var source = this.parent.dataSource;
1425
+ source.push(updateRecord.taskData);
1424
1426
  }
1425
1427
  var updatedData = this.parent.currentViewData.filter(function (data) {
1426
1428
  return (data.ganttProperties.taskId === updateRecord.ganttProperties.taskId &&
@@ -974,7 +974,7 @@ var GanttChart = /** @class */ (function () {
974
974
  var isTab = (e.action === 'tab') ? true : false;
975
975
  var nextElement = this.getNextElement($target, isTab, isInEditedState);
976
976
  this.tempNextElement = nextElement;
977
- if (!isNullOrUndefined(nextElement['cellIndex'])) {
977
+ if (!isNullOrUndefined(nextElement) && !isNullOrUndefined(nextElement['cellIndex'])) {
978
978
  if (this.parent.allowRowDragAndDrop) {
979
979
  this.childrenIndex = nextElement['cellIndex'];
980
980
  this.nextElementIndex = nextElement['cellIndex'] - 1;
@@ -172,7 +172,7 @@ var TaskProcessor = /** @class */ (function (_super) {
172
172
  TaskProcessor.prototype.constructResourceViewDataSource = function (resources, data, unassignedTasks) {
173
173
  var _loop_1 = function (i) {
174
174
  var tempData = data[i];
175
- var child = this_1.parent.taskFields.child;
175
+ child = this_1.parent.taskFields.child != null ? this_1.parent.taskFields.child : 'Children';
176
176
  var resourceData = tempData && tempData[this_1.parent.taskFields.resourceInfo];
177
177
  var resourceIdMapping = this_1.parent.resourceFields.id;
178
178
  if ((!tempData[child] || tempData[child].length === 0) && resourceData && resourceData.length) {
@@ -199,7 +199,7 @@ var TaskProcessor = /** @class */ (function (_super) {
199
199
  this_1.constructResourceViewDataSource(resources, tempData[this_1.parent.taskFields.child], unassignedTasks);
200
200
  }
201
201
  };
202
- var this_1 = this;
202
+ var this_1 = this, child;
203
203
  for (var i = 0; i < data.length; i++) {
204
204
  _loop_1(i);
205
205
  }
@@ -27,6 +27,7 @@ export declare class PdfGanttPredecessor {
27
27
  */
28
28
  add(): PdfGanttPredecessor;
29
29
  constructor(parent?: Gantt, pdfGantt?: PdfGantt);
30
+ findindex(num: number): number;
30
31
  /**
31
32
  * Calculate the predecesor line point and draw the predecessor
32
33
  *
@@ -27,6 +27,13 @@ var PdfGanttPredecessor = /** @class */ (function () {
27
27
  PdfGanttPredecessor.prototype.add = function () {
28
28
  return new PdfGanttPredecessor(this.parent);
29
29
  };
30
+ PdfGanttPredecessor.prototype.findindex = function (num) {
31
+ var dataindex;
32
+ this.parent.currentViewData.map(function (data, index) { if (data.index == num) {
33
+ dataindex = index;
34
+ } });
35
+ return dataindex;
36
+ };
30
37
  /**
31
38
  * Calculate the predecesor line point and draw the predecessor
32
39
  *
@@ -37,8 +44,8 @@ var PdfGanttPredecessor = /** @class */ (function () {
37
44
  PdfGanttPredecessor.prototype.drawPredecessor = function (pdfGantt) {
38
45
  this.pdfGantt = pdfGantt;
39
46
  var pages = pdfGantt.result.page.section.getPages();
40
- var parentTask = pdfGantt.taskbarCollection[this.parentIndex];
41
- var childTask = pdfGantt.taskbarCollection[this.childIndex];
47
+ var parentTask = pdfGantt.taskbarCollection[this.findindex(this.parentIndex)];
48
+ var childTask = pdfGantt.taskbarCollection[this.findindex(this.childIndex)];
42
49
  var startPage = new PdfPage();
43
50
  var endPage = new PdfPage();
44
51
  var predecessorType = '';