@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.
- package/CHANGELOG.md +10 -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 +14 -8
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +14 -8
- 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 +14 -14
- package/src/gantt/actions/edit.js +5 -1
- package/src/gantt/base/gantt-chart.js +6 -1
- package/src/gantt/base/gantt.js +2 -5
- package/src/gantt/renderer/connector-line.js +1 -1
|
@@ -4662,7 +4662,12 @@ class GanttChart {
|
|
|
4662
4662
|
* @private
|
|
4663
4663
|
*/
|
|
4664
4664
|
getChartRows() {
|
|
4665
|
-
|
|
4665
|
+
if (document.getElementById(this.parent.element.id + 'GanttTaskTableBody') != null) {
|
|
4666
|
+
return document.getElementById(this.parent.element.id + 'GanttTaskTableBody').querySelectorAll('.e-chart-row');
|
|
4667
|
+
}
|
|
4668
|
+
else {
|
|
4669
|
+
return null;
|
|
4670
|
+
}
|
|
4666
4671
|
}
|
|
4667
4672
|
/**
|
|
4668
4673
|
* Expand Collapse operations from gantt chart side
|
|
@@ -10468,7 +10473,7 @@ class ConnectorLine {
|
|
|
10468
10473
|
(Math.floor(this.parent.chartRowsModule.milestoneHeight)) : childGanttRecord.width;
|
|
10469
10474
|
connectorObj.parentIndex = parentIndex;
|
|
10470
10475
|
connectorObj.childIndex = childIndex;
|
|
10471
|
-
const rowHeight = this.parent.ganttChartModule.getChartRows()[0] &&
|
|
10476
|
+
const rowHeight = !isNullOrUndefined(this.parent.ganttChartModule.getChartRows()) && this.parent.ganttChartModule.getChartRows()[0] &&
|
|
10472
10477
|
this.parent.ganttChartModule.getChartRows()[0].getBoundingClientRect().height;
|
|
10473
10478
|
connectorObj.rowHeight = rowHeight && !isNaN(rowHeight) ? rowHeight : this.parent.rowHeight;
|
|
10474
10479
|
connectorObj.type = predecessor.type;
|
|
@@ -12569,10 +12574,7 @@ let Gantt = class Gantt extends Component {
|
|
|
12569
12574
|
this.treeGrid.dataSource = { result: this.flatData, count: count };
|
|
12570
12575
|
}
|
|
12571
12576
|
else {
|
|
12572
|
-
this.treeGrid.dataSource
|
|
12573
|
-
if (!isNullOrUndefined(document.getElementsByClassName('e-listview')[0])) {
|
|
12574
|
-
this.treeGrid.dataBind();
|
|
12575
|
-
}
|
|
12577
|
+
this.treeGrid.setProperties({ dataSource: this.flatData }, false);
|
|
12576
12578
|
}
|
|
12577
12579
|
}
|
|
12578
12580
|
else {
|
|
@@ -12689,7 +12691,7 @@ let Gantt = class Gantt extends Component {
|
|
|
12689
12691
|
const expandedRecords = this.virtualScrollModule && this.enableVirtualization ?
|
|
12690
12692
|
this.currentViewData : this.getExpandedRecords(this.currentViewData);
|
|
12691
12693
|
let height;
|
|
12692
|
-
const chartRow$$1 = this.ganttChartModule.getChartRows()[0];
|
|
12694
|
+
const chartRow$$1 = !isNullOrUndefined(this.ganttChartModule.getChartRows()) ? this.ganttChartModule.getChartRows()[0] : null;
|
|
12693
12695
|
if (!isNullOrUndefined(chartRow$$1) && chartRow$$1.getBoundingClientRect().height > 0) {
|
|
12694
12696
|
height = chartRow$$1.getBoundingClientRect().height;
|
|
12695
12697
|
}
|
|
@@ -21315,8 +21317,12 @@ class Edit$2 {
|
|
|
21315
21317
|
if (!isNullOrUndefined(this.parent.editModule) && ganttData) {
|
|
21316
21318
|
this.parent.isOnEdit = true;
|
|
21317
21319
|
this.validateUpdateValues(data, ganttData, true);
|
|
21318
|
-
if (data[this.parent.taskFields.resourceInfo]
|
|
21320
|
+
if (data[this.parent.taskFields.resourceInfo]) {
|
|
21321
|
+
if (ganttData.ganttProperties.duration === 0) {
|
|
21322
|
+
this.parent.dataOperation.updateWorkWithDuration(ganttData);
|
|
21323
|
+
}
|
|
21319
21324
|
this.updateResourceRelatedFields(ganttData, 'resource');
|
|
21325
|
+
this.parent.dateValidationModule.calculateEndDate(ganttData);
|
|
21320
21326
|
}
|
|
21321
21327
|
const keys = Object.keys(data);
|
|
21322
21328
|
if (keys.indexOf(tasks.startDate) !== -1 || keys.indexOf(tasks.endDate) !== -1 ||
|