@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.
Files changed (48) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/ej2-gantt.min.js +2 -2
  3. package/dist/ej2-gantt.umd.min.js +2 -2
  4. package/dist/ej2-gantt.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-gantt.es2015.js +15 -6
  6. package/dist/es6/ej2-gantt.es2015.js.map +1 -1
  7. package/dist/es6/ej2-gantt.es5.js +15 -6
  8. package/dist/es6/ej2-gantt.es5.js.map +1 -1
  9. package/dist/global/ej2-gantt.min.js +2 -2
  10. package/dist/global/ej2-gantt.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +14 -14
  13. package/src/gantt/actions/edit.js +5 -3
  14. package/src/gantt/actions/selection.js +3 -0
  15. package/src/gantt/base/gantt-chart.js +3 -0
  16. package/src/gantt/base/tree-grid.js +3 -2
  17. package/src/gantt/renderer/timeline.js +1 -1
  18. package/styles/bootstrap-dark.css +64 -124
  19. package/styles/bootstrap.css +65 -126
  20. package/styles/bootstrap4.css +64 -124
  21. package/styles/bootstrap5-dark.css +64 -124
  22. package/styles/bootstrap5.css +64 -124
  23. package/styles/fabric-dark.css +64 -124
  24. package/styles/fabric.css +64 -124
  25. package/styles/fluent-dark.css +64 -124
  26. package/styles/fluent.css +64 -124
  27. package/styles/gantt/_layout.scss +3 -2
  28. package/styles/gantt/bootstrap-dark.css +64 -124
  29. package/styles/gantt/bootstrap.css +65 -126
  30. package/styles/gantt/bootstrap4.css +64 -124
  31. package/styles/gantt/bootstrap5-dark.css +64 -124
  32. package/styles/gantt/bootstrap5.css +64 -124
  33. package/styles/gantt/fabric-dark.css +64 -124
  34. package/styles/gantt/fabric.css +64 -124
  35. package/styles/gantt/fluent-dark.css +64 -124
  36. package/styles/gantt/fluent.css +64 -124
  37. package/styles/gantt/highcontrast-light.css +64 -124
  38. package/styles/gantt/highcontrast.css +64 -124
  39. package/styles/gantt/material-dark.css +67 -130
  40. package/styles/gantt/material.css +67 -130
  41. package/styles/gantt/tailwind-dark.css +66 -128
  42. package/styles/gantt/tailwind.css +66 -128
  43. package/styles/highcontrast-light.css +64 -124
  44. package/styles/highcontrast.css +64 -124
  45. package/styles/material-dark.css +67 -130
  46. package/styles/material.css +67 -130
  47. package/styles/tailwind-dark.css +66 -128
  48. package/styles/tailwind.css +66 -128
@@ -4532,6 +4532,9 @@ var GanttChart = /** @__PURE__ @class */ (function () {
4532
4532
  * @private
4533
4533
  */
4534
4534
  GanttChart.prototype.mouseUp = function (e) {
4535
+ if (!isNullOrUndefined(this.parent.editModule) && !isNullOrUndefined(this.parent.editModule.taskbarEditModule)) {
4536
+ this.parent.editModule.taskbarEditModule.removeFalseLine(false);
4537
+ }
4535
4538
  if (this.parent.allowRowDragAndDrop) {
4536
4539
  var ganttDragElemet = this.parent.element.querySelector('.e-ganttdrag');
4537
4540
  if (ganttDragElemet) {
@@ -6807,7 +6810,7 @@ var Timeline = /** @__PURE__ @class */ (function () {
6807
6810
  var validStartLeft = this.parent.dataOperation.getTaskLeft(validStartDate, false);
6808
6811
  var validEndLeft = this.parent.dataOperation.getTaskLeft(validEndDate, false);
6809
6812
  var isChanged = void 0;
6810
- if (!isNullOrUndefined(maxStartLeft) && (maxStartLeft < this.bottomTierCellWidth || maxStartLeft <= validStartLeft)) {
6813
+ if (!isNullOrUndefined(maxStartLeft) && ((minStartDate < this.timelineStartDate) || (!isNullOrUndefined(this.parent.editModule.taskbarEditModule)) && (!isNullOrUndefined(this.parent.editModule.taskbarEditModule.taskBarEditAction))) && (maxStartLeft < this.bottomTierCellWidth || maxStartLeft <= validStartLeft)) {
6811
6814
  isChanged = 'prevTimeSpan';
6812
6815
  minStartDate = minStartDate > this.timelineStartDate ? this.timelineStartDate : minStartDate;
6813
6816
  }
@@ -7076,7 +7079,8 @@ var GanttTreeGrid = /** @__PURE__ @class */ (function () {
7076
7079
  if (!isNullOrUndefined(this.parent.toolbarModule) && !isNullOrUndefined(this.parent.toolbarModule.element)) {
7077
7080
  toolbarHeight = this.parent.toolbarModule.element.offsetHeight;
7078
7081
  }
7079
- this.parent.treeGrid.height = this.parent.ganttHeight - toolbarHeight - 46;
7082
+ this.parent.treeGrid.height =
7083
+ this.parent.element.getElementsByClassName('e-chart-scroll-container e-content')[0]['offsetHeight'] - 19;
7080
7084
  };
7081
7085
  GanttTreeGrid.prototype.getContentDiv = function () {
7082
7086
  return this.treeGridElement.querySelector('.e-content');
@@ -7546,7 +7550,7 @@ var GanttTreeGrid = /** @__PURE__ @class */ (function () {
7546
7550
  break;
7547
7551
  }
7548
7552
  }
7549
- if (typeof (taskIDName) === "string") {
7553
+ if (typeof (taskIDName) === "string" || isNullOrUndefined(taskIDName)) {
7550
7554
  if (this.parent.viewType === 'ResourceView') {
7551
7555
  column.allowEditing = column.allowEditing ? column.allowEditing : false;
7552
7556
  }
@@ -23297,7 +23301,9 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
23297
23301
  previousStartDate = new Date(ganttRecord.ganttProperties.startDate.getTime());
23298
23302
  }
23299
23303
  else {
23300
- previousStartDate = new Date(previousData.ganttProperties.startDate.getTime());
23304
+ if (!isNullOrUndefined(previousData.ganttProperties.startDate)) {
23305
+ previousStartDate = new Date(previousData.ganttProperties.startDate.getTime());
23306
+ }
23301
23307
  }
23302
23308
  var currentStartDate = ganttRecord.ganttProperties.startDate;
23303
23309
  var childRecords = [];
@@ -23310,7 +23316,7 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
23310
23316
  if (childRecords.length === 0) {
23311
23317
  return;
23312
23318
  }
23313
- if (previousStartDate.getTime() > currentStartDate.getTime()) {
23319
+ if (!isNullOrUndefined(previousStartDate) && !isNullOrUndefined(currentStartDate) && previousStartDate.getTime() > currentStartDate.getTime()) {
23314
23320
  validStartDate = this.parent.dateValidationModule.checkStartDate(currentStartDate);
23315
23321
  validEndDate = this.parent.dateValidationModule.checkEndDate(previousStartDate, ganttRecord.ganttProperties);
23316
23322
  isRightMove = false;
@@ -23321,7 +23327,7 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
23321
23327
  isRightMove = true;
23322
23328
  }
23323
23329
  //Get Duration
23324
- if (validStartDate.getTime() >= validEndDate.getTime()) {
23330
+ if (!isNullOrUndefined(validStartDate) && !isNullOrUndefined(validEndDate) && validStartDate.getTime() >= validEndDate.getTime()) {
23325
23331
  durationDiff = 0;
23326
23332
  }
23327
23333
  else {
@@ -26687,6 +26693,9 @@ var Selection$1 = /** @__PURE__ @class */ (function () {
26687
26693
  this.selectRows(this.selectedRowIndexes);
26688
26694
  };
26689
26695
  Selection$$1.prototype.addRemoveClass = function (records) {
26696
+ if (typeof (records) == "number") {
26697
+ records = Array.from(String(records), function (num) { return Number(num); });
26698
+ }
26690
26699
  var ganttRow = [].slice.call(this.parent.ganttChartModule.chartBodyContent.querySelector('tbody').children);
26691
26700
  var _loop_1 = function (i) {
26692
26701
  var selectedRow = ganttRow.filter(function (e) {