@syncfusion/ej2-gantt 23.2.4 → 23.2.5
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 +11 -0
- package/dist/ej2-gantt.min.js +2 -2
- 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 +9 -8
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +9 -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 +10 -10
- package/src/gantt/base/date-processor.js +1 -1
- package/src/gantt/base/tree-grid.js +5 -3
- package/src/gantt/renderer/timeline.js +3 -4
|
@@ -270,7 +270,7 @@ class DateProcessor {
|
|
|
270
270
|
if (!this.parent.includeWeekend) {
|
|
271
271
|
const tempDate = new Date(cloneStartDate.getTime());
|
|
272
272
|
cloneStartDate = this.getNextWorkingDay(cloneStartDate);
|
|
273
|
-
if (tempDate.getTime() !== cloneStartDate.getTime()) {
|
|
273
|
+
if (tempDate.getTime() !== cloneStartDate.getTime() && !validateAsMilestone) {
|
|
274
274
|
this.setTime(startTime, cloneStartDate);
|
|
275
275
|
}
|
|
276
276
|
}
|
|
@@ -7410,10 +7410,9 @@ class Timeline {
|
|
|
7410
7410
|
const validEndLeft = this.parent.dataOperation.getTaskLeft(validEndDate, false);
|
|
7411
7411
|
let isChanged;
|
|
7412
7412
|
let taskbarModule = this.parent.editModule.taskbarEditModule;
|
|
7413
|
-
if (!isNullOrUndefined(maxStartLeft) && ((
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
taskbarModule.taskBarEditAction !== 'RightResizing')) && (maxStartLeft < this.bottomTierCellWidth || maxStartLeft <= validStartLeft)) {
|
|
7413
|
+
if (!isNullOrUndefined(maxStartLeft) && ((!isNullOrUndefined(taskbarModule)) && (!isNullOrUndefined(taskbarModule.taskBarEditAction)
|
|
7414
|
+
&& taskbarModule.taskBarEditAction !== 'ProgressResizing' &&
|
|
7415
|
+
taskbarModule.taskBarEditAction !== 'RightResizing' && taskbarModule.taskBarEditAction !== 'LeftResizing')) && (maxStartLeft < this.bottomTierCellWidth || maxStartLeft <= validStartLeft)) {
|
|
7417
7416
|
isChanged = 'prevTimeSpan';
|
|
7418
7417
|
minStartDate = minStartDate > this.timelineStartDate ? this.timelineStartDate : minStartDate;
|
|
7419
7418
|
}
|
|
@@ -7675,7 +7674,9 @@ class GanttTreeGrid {
|
|
|
7675
7674
|
this.parent.treeGrid.loadChildOnDemand = this.parent.loadChildOnDemand;
|
|
7676
7675
|
this.parent.treeGrid['isFromGantt'] = true;
|
|
7677
7676
|
this.parent.treeGrid.parentIdMapping = this.parent.taskFields.parentID;
|
|
7678
|
-
|
|
7677
|
+
if (this.parent.taskFields.parentID) {
|
|
7678
|
+
this.parent.treeGrid.idMapping = this.parent.taskFields.id;
|
|
7679
|
+
}
|
|
7679
7680
|
this.parent.treeGrid.showColumnMenu = this.parent.showColumnMenu;
|
|
7680
7681
|
this.parent.treeGrid.enableCollapseAll = this.parent.collapseAllParentTasks;
|
|
7681
7682
|
this.parent.treeGrid.columnMenuItems = this.parent.columnMenuItems;
|
|
@@ -7716,7 +7717,7 @@ class GanttTreeGrid {
|
|
|
7716
7717
|
toolbarHeight = this.parent.toolbarModule.element.offsetHeight;
|
|
7717
7718
|
}
|
|
7718
7719
|
this.parent.treeGrid.height =
|
|
7719
|
-
this.parent.element.getElementsByClassName('e-chart-scroll-container e-content')[0]['offsetHeight'] - 19;
|
|
7720
|
+
this.parent.element.getElementsByClassName('e-chart-scroll-container e-content')[0]['offsetHeight'] - (this.parent.flatData.length == 0 ? 0 : 19);
|
|
7720
7721
|
}
|
|
7721
7722
|
getContentDiv() {
|
|
7722
7723
|
return this.treeGridElement.querySelector('.e-content');
|
|
@@ -8370,7 +8371,7 @@ class GanttTreeGrid {
|
|
|
8370
8371
|
*/
|
|
8371
8372
|
composeIDColumn(column) {
|
|
8372
8373
|
const isProjectView = this.parent.viewType === 'ProjectView';
|
|
8373
|
-
const lengthDataSource = this.parent.dataSource['length'];
|
|
8374
|
+
const lengthDataSource = this.parent.dataSource ? this.parent.dataSource['length'] : 0;
|
|
8374
8375
|
let taskIDName;
|
|
8375
8376
|
column.isPrimaryKey = isProjectView ? true : false;
|
|
8376
8377
|
if (this.parent.isLocaleChanged) {
|