@syncfusion/ej2-gantt 20.1.56 → 20.1.58

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.1.56
3
+ * version : 20.1.58
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.1.55",
3
+ "_id": "@syncfusion/ej2-gantt@20.1.56",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-NlYM3EFzTfu9JV3P/hsf5Z7oujYJgQS36jrK0YPlXdEYNFtOSAJaTlBz4ayAVbhyVG3JXAx5qV2rNeshlkhzjA==",
5
+ "_integrity": "sha512-CpXMafdif7NeUPJt4BsqoOhuPWaVRRENBLT3icf94VquQwl0shmlrPQ8kHTof7Pu4GP3O4bh4yyKE2HkNyTSbA==",
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-20.1.55.tgz",
27
- "_shasum": "879bd537763e3b358468f62c42981f4a741a45f8",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.1.56.tgz",
27
+ "_shasum": "99b4922311bc0ea1e44c8306eb35c60045d38e4f",
28
28
  "_spec": "@syncfusion/ej2-gantt@*",
29
29
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
30
  "author": {
@@ -35,18 +35,18 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~20.1.56",
38
+ "@syncfusion/ej2-base": "~20.1.57",
39
39
  "@syncfusion/ej2-buttons": "~20.1.55",
40
- "@syncfusion/ej2-calendars": "~20.1.56",
40
+ "@syncfusion/ej2-calendars": "~20.1.58",
41
41
  "@syncfusion/ej2-data": "~20.1.55",
42
- "@syncfusion/ej2-dropdowns": "~20.1.56",
43
- "@syncfusion/ej2-grids": "~20.1.56",
44
- "@syncfusion/ej2-inputs": "~20.1.55",
45
- "@syncfusion/ej2-layouts": "~20.1.55",
42
+ "@syncfusion/ej2-dropdowns": "~20.1.58",
43
+ "@syncfusion/ej2-grids": "~20.1.58",
44
+ "@syncfusion/ej2-inputs": "~20.1.58",
45
+ "@syncfusion/ej2-layouts": "~20.1.58",
46
46
  "@syncfusion/ej2-lists": "~20.1.55",
47
- "@syncfusion/ej2-navigations": "~20.1.56",
48
- "@syncfusion/ej2-popups": "~20.1.55",
49
- "@syncfusion/ej2-richtexteditor": "~20.1.56",
47
+ "@syncfusion/ej2-navigations": "~20.1.58",
48
+ "@syncfusion/ej2-popups": "~20.1.58",
49
+ "@syncfusion/ej2-richtexteditor": "~20.1.58",
50
50
  "@syncfusion/ej2-treegrid": "~20.1.56"
51
51
  },
52
52
  "deprecated": false,
@@ -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.1.56",
78
+ "version": "20.1.58",
79
79
  "sideEffects": false
80
80
  }
@@ -353,8 +353,12 @@ var Edit = /** @class */ (function () {
353
353
  if (!isNullOrUndefined(this.parent.editModule) && ganttData) {
354
354
  this.parent.isOnEdit = true;
355
355
  this.validateUpdateValues(data, ganttData, true);
356
- if (data[this.parent.taskFields.resourceInfo] && data[this.parent.taskFields.duration] != 0) {
356
+ if (data[this.parent.taskFields.resourceInfo]) {
357
+ if (ganttData.ganttProperties.duration === 0) {
358
+ this.parent.dataOperation.updateWorkWithDuration(ganttData);
359
+ }
357
360
  this.updateResourceRelatedFields(ganttData, 'resource');
361
+ this.parent.dateValidationModule.calculateEndDate(ganttData);
358
362
  }
359
363
  var keys = Object.keys(data);
360
364
  if (keys.indexOf(tasks.startDate) !== -1 || keys.indexOf(tasks.endDate) !== -1 ||
@@ -593,7 +593,12 @@ var GanttChart = /** @class */ (function () {
593
593
  * @private
594
594
  */
595
595
  GanttChart.prototype.getChartRows = function () {
596
- return document.getElementById(this.parent.element.id + 'GanttTaskTableBody').querySelectorAll('.e-chart-row');
596
+ if (document.getElementById(this.parent.element.id + 'GanttTaskTableBody') != null) {
597
+ return document.getElementById(this.parent.element.id + 'GanttTaskTableBody').querySelectorAll('.e-chart-row');
598
+ }
599
+ else {
600
+ return null;
601
+ }
597
602
  };
598
603
  /**
599
604
  * Expand Collapse operations from gantt chart side
@@ -392,10 +392,7 @@ var Gantt = /** @class */ (function (_super) {
392
392
  this.treeGrid.dataSource = { result: this.flatData, count: count };
393
393
  }
394
394
  else {
395
- this.treeGrid.dataSource = this.flatData;
396
- if (!isNullOrUndefined(document.getElementsByClassName('e-listview')[0])) {
397
- this.treeGrid.dataBind();
398
- }
395
+ this.treeGrid.setProperties({ dataSource: this.flatData }, false);
399
396
  }
400
397
  }
401
398
  else {
@@ -512,7 +509,7 @@ var Gantt = /** @class */ (function (_super) {
512
509
  var expandedRecords = this.virtualScrollModule && this.enableVirtualization ?
513
510
  this.currentViewData : this.getExpandedRecords(this.currentViewData);
514
511
  var height = void 0;
515
- var chartRow = this.ganttChartModule.getChartRows()[0];
512
+ var chartRow = !isNullOrUndefined(this.ganttChartModule.getChartRows()) ? this.ganttChartModule.getChartRows()[0] : null;
516
513
  if (!isNullOrUndefined(chartRow) && chartRow.getBoundingClientRect().height > 0) {
517
514
  height = chartRow.getBoundingClientRect().height;
518
515
  }
@@ -79,7 +79,7 @@ var ConnectorLine = /** @class */ (function () {
79
79
  (Math.floor(this.parent.chartRowsModule.milestoneHeight)) : childGanttRecord.width;
80
80
  connectorObj.parentIndex = parentIndex;
81
81
  connectorObj.childIndex = childIndex;
82
- var rowHeight = this.parent.ganttChartModule.getChartRows()[0] &&
82
+ var rowHeight = !isNullOrUndefined(this.parent.ganttChartModule.getChartRows()) && this.parent.ganttChartModule.getChartRows()[0] &&
83
83
  this.parent.ganttChartModule.getChartRows()[0].getBoundingClientRect().height;
84
84
  connectorObj.rowHeight = rowHeight && !isNaN(rowHeight) ? rowHeight : this.parent.rowHeight;
85
85
  connectorObj.type = predecessor.type;