@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
|
@@ -4706,7 +4706,12 @@ var GanttChart = /** @__PURE__ @class */ (function () {
|
|
|
4706
4706
|
* @private
|
|
4707
4707
|
*/
|
|
4708
4708
|
GanttChart.prototype.getChartRows = function () {
|
|
4709
|
-
|
|
4709
|
+
if (document.getElementById(this.parent.element.id + 'GanttTaskTableBody') != null) {
|
|
4710
|
+
return document.getElementById(this.parent.element.id + 'GanttTaskTableBody').querySelectorAll('.e-chart-row');
|
|
4711
|
+
}
|
|
4712
|
+
else {
|
|
4713
|
+
return null;
|
|
4714
|
+
}
|
|
4710
4715
|
};
|
|
4711
4716
|
/**
|
|
4712
4717
|
* Expand Collapse operations from gantt chart side
|
|
@@ -10862,7 +10867,7 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
10862
10867
|
(Math.floor(this.parent.chartRowsModule.milestoneHeight)) : childGanttRecord.width;
|
|
10863
10868
|
connectorObj.parentIndex = parentIndex;
|
|
10864
10869
|
connectorObj.childIndex = childIndex;
|
|
10865
|
-
var rowHeight = this.parent.ganttChartModule.getChartRows()[0] &&
|
|
10870
|
+
var rowHeight = !isNullOrUndefined(this.parent.ganttChartModule.getChartRows()) && this.parent.ganttChartModule.getChartRows()[0] &&
|
|
10866
10871
|
this.parent.ganttChartModule.getChartRows()[0].getBoundingClientRect().height;
|
|
10867
10872
|
connectorObj.rowHeight = rowHeight && !isNaN(rowHeight) ? rowHeight : this.parent.rowHeight;
|
|
10868
10873
|
connectorObj.type = predecessor.type;
|
|
@@ -12983,10 +12988,7 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
12983
12988
|
this.treeGrid.dataSource = { result: this.flatData, count: count };
|
|
12984
12989
|
}
|
|
12985
12990
|
else {
|
|
12986
|
-
this.treeGrid.dataSource
|
|
12987
|
-
if (!isNullOrUndefined(document.getElementsByClassName('e-listview')[0])) {
|
|
12988
|
-
this.treeGrid.dataBind();
|
|
12989
|
-
}
|
|
12991
|
+
this.treeGrid.setProperties({ dataSource: this.flatData }, false);
|
|
12990
12992
|
}
|
|
12991
12993
|
}
|
|
12992
12994
|
else {
|
|
@@ -13103,7 +13105,7 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
13103
13105
|
var expandedRecords = this.virtualScrollModule && this.enableVirtualization ?
|
|
13104
13106
|
this.currentViewData : this.getExpandedRecords(this.currentViewData);
|
|
13105
13107
|
var height = void 0;
|
|
13106
|
-
var chartRow$$1 = this.ganttChartModule.getChartRows()[0];
|
|
13108
|
+
var chartRow$$1 = !isNullOrUndefined(this.ganttChartModule.getChartRows()) ? this.ganttChartModule.getChartRows()[0] : null;
|
|
13107
13109
|
if (!isNullOrUndefined(chartRow$$1) && chartRow$$1.getBoundingClientRect().height > 0) {
|
|
13108
13110
|
height = chartRow$$1.getBoundingClientRect().height;
|
|
13109
13111
|
}
|
|
@@ -21819,8 +21821,12 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
21819
21821
|
if (!isNullOrUndefined(this.parent.editModule) && ganttData) {
|
|
21820
21822
|
this.parent.isOnEdit = true;
|
|
21821
21823
|
this.validateUpdateValues(data, ganttData, true);
|
|
21822
|
-
if (data[this.parent.taskFields.resourceInfo]
|
|
21824
|
+
if (data[this.parent.taskFields.resourceInfo]) {
|
|
21825
|
+
if (ganttData.ganttProperties.duration === 0) {
|
|
21826
|
+
this.parent.dataOperation.updateWorkWithDuration(ganttData);
|
|
21827
|
+
}
|
|
21823
21828
|
this.updateResourceRelatedFields(ganttData, 'resource');
|
|
21829
|
+
this.parent.dateValidationModule.calculateEndDate(ganttData);
|
|
21824
21830
|
}
|
|
21825
21831
|
var keys = Object.keys(data);
|
|
21826
21832
|
if (keys.indexOf(tasks.startDate) !== -1 || keys.indexOf(tasks.endDate) !== -1 ||
|