@syncfusion/ej2-gantt 20.3.58 → 20.3.59
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.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 +11 -6
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +11 -6
- 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/actions/edit.js +5 -3
- package/src/gantt/base/gantt-chart.js +3 -0
- package/src/gantt/base/tree-grid.js +1 -1
- package/src/gantt/renderer/timeline.js +2 -2
- package/styles/bootstrap-dark.css +3 -2
- package/styles/bootstrap.css +3 -2
- package/styles/bootstrap4.css +3 -2
- package/styles/bootstrap5-dark.css +3 -2
- package/styles/bootstrap5.css +3 -2
- package/styles/fabric-dark.css +3 -2
- package/styles/fabric.css +3 -2
- package/styles/fluent-dark.css +3 -2
- package/styles/fluent.css +3 -2
- package/styles/gantt/_layout.scss +3 -2
- package/styles/gantt/bootstrap-dark.css +3 -2
- package/styles/gantt/bootstrap.css +3 -2
- package/styles/gantt/bootstrap4.css +3 -2
- package/styles/gantt/bootstrap5-dark.css +3 -2
- package/styles/gantt/bootstrap5.css +3 -2
- package/styles/gantt/fabric-dark.css +3 -2
- package/styles/gantt/fabric.css +3 -2
- package/styles/gantt/fluent-dark.css +3 -2
- package/styles/gantt/fluent.css +3 -2
- package/styles/gantt/highcontrast-light.css +3 -2
- package/styles/gantt/highcontrast.css +3 -2
- package/styles/gantt/material-dark.css +3 -2
- package/styles/gantt/material.css +3 -2
- package/styles/gantt/tailwind-dark.css +3 -2
- package/styles/gantt/tailwind.css +3 -2
- package/styles/highcontrast-light.css +3 -2
- package/styles/highcontrast.css +3 -2
- package/styles/material-dark.css +3 -2
- package/styles/material.css +3 -2
- package/styles/tailwind-dark.css +3 -2
- package/styles/tailwind.css +3 -2
|
@@ -4488,6 +4488,9 @@ class GanttChart {
|
|
|
4488
4488
|
* @private
|
|
4489
4489
|
*/
|
|
4490
4490
|
mouseUp(e) {
|
|
4491
|
+
if (!isNullOrUndefined(this.parent.editModule) && !isNullOrUndefined(this.parent.editModule.taskbarEditModule)) {
|
|
4492
|
+
this.parent.editModule.taskbarEditModule.removeFalseLine(false);
|
|
4493
|
+
}
|
|
4491
4494
|
if (this.parent.allowRowDragAndDrop) {
|
|
4492
4495
|
const ganttDragElemet = this.parent.element.querySelector('.e-ganttdrag');
|
|
4493
4496
|
if (ganttDragElemet) {
|
|
@@ -6741,9 +6744,9 @@ class Timeline {
|
|
|
6741
6744
|
const validStartLeft = this.parent.dataOperation.getTaskLeft(validStartDate, false);
|
|
6742
6745
|
const validEndLeft = this.parent.dataOperation.getTaskLeft(validEndDate, false);
|
|
6743
6746
|
let isChanged;
|
|
6744
|
-
if (!isNullOrUndefined(maxStartLeft) && (minStartDate < this.timelineStartDate) && (maxStartLeft < this.bottomTierCellWidth || maxStartLeft <= validStartLeft)) {
|
|
6747
|
+
if (!isNullOrUndefined(maxStartLeft) && ((minStartDate < this.timelineStartDate) || (!isNullOrUndefined(this.parent.editModule.taskbarEditModule)) && (!isNullOrUndefined(this.parent.editModule.taskbarEditModule.taskBarEditAction))) && (maxStartLeft < this.bottomTierCellWidth || maxStartLeft <= validStartLeft)) {
|
|
6745
6748
|
isChanged = 'prevTimeSpan';
|
|
6746
|
-
minStartDate = this.timelineStartDate;
|
|
6749
|
+
minStartDate = minStartDate > this.timelineStartDate ? this.timelineStartDate : minStartDate;
|
|
6747
6750
|
}
|
|
6748
6751
|
else {
|
|
6749
6752
|
minStartDate = this.timelineStartDate;
|
|
@@ -7474,7 +7477,7 @@ class GanttTreeGrid {
|
|
|
7474
7477
|
break;
|
|
7475
7478
|
}
|
|
7476
7479
|
}
|
|
7477
|
-
if (typeof (taskIDName) === "string") {
|
|
7480
|
+
if (typeof (taskIDName) === "string" || isNullOrUndefined(taskIDName)) {
|
|
7478
7481
|
if (this.parent.viewType === 'ResourceView') {
|
|
7479
7482
|
column.allowEditing = column.allowEditing ? column.allowEditing : false;
|
|
7480
7483
|
}
|
|
@@ -22794,7 +22797,9 @@ class Edit$2 {
|
|
|
22794
22797
|
previousStartDate = new Date(ganttRecord.ganttProperties.startDate.getTime());
|
|
22795
22798
|
}
|
|
22796
22799
|
else {
|
|
22797
|
-
|
|
22800
|
+
if (!isNullOrUndefined(previousData.ganttProperties.startDate)) {
|
|
22801
|
+
previousStartDate = new Date(previousData.ganttProperties.startDate.getTime());
|
|
22802
|
+
}
|
|
22798
22803
|
}
|
|
22799
22804
|
const currentStartDate = ganttRecord.ganttProperties.startDate;
|
|
22800
22805
|
const childRecords = [];
|
|
@@ -22807,7 +22812,7 @@ class Edit$2 {
|
|
|
22807
22812
|
if (childRecords.length === 0) {
|
|
22808
22813
|
return;
|
|
22809
22814
|
}
|
|
22810
|
-
if (previousStartDate.getTime() > currentStartDate.getTime()) {
|
|
22815
|
+
if (!isNullOrUndefined(previousStartDate) && !isNullOrUndefined(currentStartDate) && previousStartDate.getTime() > currentStartDate.getTime()) {
|
|
22811
22816
|
validStartDate = this.parent.dateValidationModule.checkStartDate(currentStartDate);
|
|
22812
22817
|
validEndDate = this.parent.dateValidationModule.checkEndDate(previousStartDate, ganttRecord.ganttProperties);
|
|
22813
22818
|
isRightMove = false;
|
|
@@ -22818,7 +22823,7 @@ class Edit$2 {
|
|
|
22818
22823
|
isRightMove = true;
|
|
22819
22824
|
}
|
|
22820
22825
|
//Get Duration
|
|
22821
|
-
if (validStartDate.getTime() >= validEndDate.getTime()) {
|
|
22826
|
+
if (!isNullOrUndefined(validStartDate) && !isNullOrUndefined(validEndDate) && validStartDate.getTime() >= validEndDate.getTime()) {
|
|
22822
22827
|
durationDiff = 0;
|
|
22823
22828
|
}
|
|
22824
22829
|
else {
|