@syncfusion/ej2-gantt 20.3.57 → 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 +19 -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 +15 -6
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +15 -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 +14 -14
- package/src/gantt/actions/edit.js +5 -3
- package/src/gantt/actions/selection.js +3 -0
- package/src/gantt/base/gantt-chart.js +3 -0
- package/src/gantt/base/tree-grid.js +3 -2
- package/src/gantt/renderer/timeline.js +1 -1
- package/styles/bootstrap-dark.css +64 -124
- package/styles/bootstrap.css +65 -126
- package/styles/bootstrap4.css +64 -124
- package/styles/bootstrap5-dark.css +64 -124
- package/styles/bootstrap5.css +64 -124
- package/styles/fabric-dark.css +64 -124
- package/styles/fabric.css +64 -124
- package/styles/fluent-dark.css +64 -124
- package/styles/fluent.css +64 -124
- package/styles/gantt/_layout.scss +3 -2
- package/styles/gantt/bootstrap-dark.css +64 -124
- package/styles/gantt/bootstrap.css +65 -126
- package/styles/gantt/bootstrap4.css +64 -124
- package/styles/gantt/bootstrap5-dark.css +64 -124
- package/styles/gantt/bootstrap5.css +64 -124
- package/styles/gantt/fabric-dark.css +64 -124
- package/styles/gantt/fabric.css +64 -124
- package/styles/gantt/fluent-dark.css +64 -124
- package/styles/gantt/fluent.css +64 -124
- package/styles/gantt/highcontrast-light.css +64 -124
- package/styles/gantt/highcontrast.css +64 -124
- package/styles/gantt/material-dark.css +67 -130
- package/styles/gantt/material.css +67 -130
- package/styles/gantt/tailwind-dark.css +66 -128
- package/styles/gantt/tailwind.css +66 -128
- package/styles/highcontrast-light.css +64 -124
- package/styles/highcontrast.css +64 -124
- package/styles/material-dark.css +67 -130
- package/styles/material.css +67 -130
- package/styles/tailwind-dark.css +66 -128
- package/styles/tailwind.css +66 -128
|
@@ -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,7 +6744,7 @@ 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) && (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
6749
|
minStartDate = minStartDate > this.timelineStartDate ? this.timelineStartDate : minStartDate;
|
|
6747
6750
|
}
|
|
@@ -7007,7 +7010,8 @@ class GanttTreeGrid {
|
|
|
7007
7010
|
if (!isNullOrUndefined(this.parent.toolbarModule) && !isNullOrUndefined(this.parent.toolbarModule.element)) {
|
|
7008
7011
|
toolbarHeight = this.parent.toolbarModule.element.offsetHeight;
|
|
7009
7012
|
}
|
|
7010
|
-
this.parent.treeGrid.height =
|
|
7013
|
+
this.parent.treeGrid.height =
|
|
7014
|
+
this.parent.element.getElementsByClassName('e-chart-scroll-container e-content')[0]['offsetHeight'] - 19;
|
|
7011
7015
|
}
|
|
7012
7016
|
getContentDiv() {
|
|
7013
7017
|
return this.treeGridElement.querySelector('.e-content');
|
|
@@ -7473,7 +7477,7 @@ class GanttTreeGrid {
|
|
|
7473
7477
|
break;
|
|
7474
7478
|
}
|
|
7475
7479
|
}
|
|
7476
|
-
if (typeof (taskIDName) === "string") {
|
|
7480
|
+
if (typeof (taskIDName) === "string" || isNullOrUndefined(taskIDName)) {
|
|
7477
7481
|
if (this.parent.viewType === 'ResourceView') {
|
|
7478
7482
|
column.allowEditing = column.allowEditing ? column.allowEditing : false;
|
|
7479
7483
|
}
|
|
@@ -22793,7 +22797,9 @@ class Edit$2 {
|
|
|
22793
22797
|
previousStartDate = new Date(ganttRecord.ganttProperties.startDate.getTime());
|
|
22794
22798
|
}
|
|
22795
22799
|
else {
|
|
22796
|
-
|
|
22800
|
+
if (!isNullOrUndefined(previousData.ganttProperties.startDate)) {
|
|
22801
|
+
previousStartDate = new Date(previousData.ganttProperties.startDate.getTime());
|
|
22802
|
+
}
|
|
22797
22803
|
}
|
|
22798
22804
|
const currentStartDate = ganttRecord.ganttProperties.startDate;
|
|
22799
22805
|
const childRecords = [];
|
|
@@ -22806,7 +22812,7 @@ class Edit$2 {
|
|
|
22806
22812
|
if (childRecords.length === 0) {
|
|
22807
22813
|
return;
|
|
22808
22814
|
}
|
|
22809
|
-
if (previousStartDate.getTime() > currentStartDate.getTime()) {
|
|
22815
|
+
if (!isNullOrUndefined(previousStartDate) && !isNullOrUndefined(currentStartDate) && previousStartDate.getTime() > currentStartDate.getTime()) {
|
|
22810
22816
|
validStartDate = this.parent.dateValidationModule.checkStartDate(currentStartDate);
|
|
22811
22817
|
validEndDate = this.parent.dateValidationModule.checkEndDate(previousStartDate, ganttRecord.ganttProperties);
|
|
22812
22818
|
isRightMove = false;
|
|
@@ -22817,7 +22823,7 @@ class Edit$2 {
|
|
|
22817
22823
|
isRightMove = true;
|
|
22818
22824
|
}
|
|
22819
22825
|
//Get Duration
|
|
22820
|
-
if (validStartDate.getTime() >= validEndDate.getTime()) {
|
|
22826
|
+
if (!isNullOrUndefined(validStartDate) && !isNullOrUndefined(validEndDate) && validStartDate.getTime() >= validEndDate.getTime()) {
|
|
22821
22827
|
durationDiff = 0;
|
|
22822
22828
|
}
|
|
22823
22829
|
else {
|
|
@@ -26160,6 +26166,9 @@ class Selection$1 {
|
|
|
26160
26166
|
this.selectRows(this.selectedRowIndexes);
|
|
26161
26167
|
}
|
|
26162
26168
|
addRemoveClass(records) {
|
|
26169
|
+
if (typeof (records) == "number") {
|
|
26170
|
+
records = Array.from(String(records), (num) => Number(num));
|
|
26171
|
+
}
|
|
26163
26172
|
const ganttRow = [].slice.call(this.parent.ganttChartModule.chartBodyContent.querySelector('tbody').children);
|
|
26164
26173
|
for (let i = 0; i < records.length; i++) {
|
|
26165
26174
|
const selectedRow = ganttRow.filter((e) =>
|