@syncfusion/ej2-gantt 20.1.59 → 20.1.60

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 +11 -0
  2. package/dist/ej2-gantt.umd.min.js +2 -2
  3. package/dist/ej2-gantt.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-gantt.es2015.js +11 -7
  5. package/dist/es6/ej2-gantt.es2015.js.map +1 -1
  6. package/dist/es6/ej2-gantt.es5.js +11 -7
  7. package/dist/es6/ej2-gantt.es5.js.map +1 -1
  8. package/dist/global/ej2-gantt.min.js +2 -2
  9. package/dist/global/ej2-gantt.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +11 -11
  12. package/src/gantt/actions/dialog-edit.js +1 -1
  13. package/src/gantt/actions/taskbar-edit.js +1 -3
  14. package/src/gantt/actions/toolbar.js +2 -0
  15. package/src/gantt/base/task-processor.js +7 -3
  16. package/styles/bootstrap-dark.css +3 -3
  17. package/styles/bootstrap.css +3 -3
  18. package/styles/bootstrap4.css +3 -3
  19. package/styles/bootstrap5-dark.css +5 -5
  20. package/styles/bootstrap5.css +5 -5
  21. package/styles/fabric-dark.css +3 -3
  22. package/styles/fabric.css +3 -3
  23. package/styles/fluent-dark.css +3 -3
  24. package/styles/fluent.css +3 -3
  25. package/styles/gantt/_bootstrap5-definition.scss +1 -1
  26. package/styles/gantt/_layout.scss +4 -4
  27. package/styles/gantt/_tailwind-definition.scss +1 -1
  28. package/styles/gantt/bootstrap-dark.css +3 -3
  29. package/styles/gantt/bootstrap.css +3 -3
  30. package/styles/gantt/bootstrap4.css +3 -3
  31. package/styles/gantt/bootstrap5-dark.css +5 -5
  32. package/styles/gantt/bootstrap5.css +5 -5
  33. package/styles/gantt/fabric-dark.css +3 -3
  34. package/styles/gantt/fabric.css +3 -3
  35. package/styles/gantt/fluent-dark.css +3 -3
  36. package/styles/gantt/fluent.css +3 -3
  37. package/styles/gantt/highcontrast-light.css +3 -3
  38. package/styles/gantt/highcontrast.css +3 -3
  39. package/styles/gantt/material-dark.css +3 -3
  40. package/styles/gantt/material.css +3 -3
  41. package/styles/gantt/tailwind-dark.css +5 -5
  42. package/styles/gantt/tailwind.css +5 -5
  43. package/styles/highcontrast-light.css +3 -3
  44. package/styles/highcontrast.css +3 -3
  45. package/styles/material-dark.css +3 -3
  46. package/styles/material.css +3 -3
  47. package/styles/tailwind-dark.css +5 -5
  48. package/styles/tailwind.css +5 -5
@@ -2108,6 +2108,13 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
2108
2108
  work = parseFloat(work.toFixed(2));
2109
2109
  }
2110
2110
  }
2111
+ if (ganttData.childRecords.length > 0) {
2112
+ var childCompletedWorks = 0;
2113
+ for (var i = 0; i < ganttData.childRecords.length; i++) {
2114
+ childCompletedWorks += ganttData.childRecords[i][this.parent.taskFields.work];
2115
+ }
2116
+ work += childCompletedWorks;
2117
+ }
2111
2118
  this.parent.setRecordValue('work', work, ganttData.ganttProperties, true);
2112
2119
  if (!isNullOrUndefined(this.parent.taskFields.work)) {
2113
2120
  this.parent.dataOperation.updateMappingData(ganttData, 'work');
@@ -3668,7 +3675,6 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
3668
3675
  var maxEndDate = null;
3669
3676
  var milestoneCount = 0;
3670
3677
  var totalProgress = 0;
3671
- var childCompletedWorks = 0;
3672
3678
  var childData = void 0;
3673
3679
  for (var count = 0; count < childLength; count++) {
3674
3680
  childData = childRecords[count];
@@ -3706,7 +3712,6 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
3706
3712
  else {
3707
3713
  milestoneCount++;
3708
3714
  }
3709
- childCompletedWorks += childData.ganttProperties.work;
3710
3715
  }
3711
3716
  if (!deleteUpdate) {
3712
3717
  if (this.compareDates(previousStartDate, minStartDate) !== 0) {
@@ -3732,7 +3737,6 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
3732
3737
  }
3733
3738
  this.updateWorkWithDuration(parentData);
3734
3739
  var parentWork = parentProp.work;
3735
- parentWork += childCompletedWorks;
3736
3740
  this.parent.setRecordValue('work', parentWork, parentProp, true);
3737
3741
  this.parent.setRecordValue('taskType', 'FixedDuration', parentProp, true);
3738
3742
  if (!isNullOrUndefined(this.parent.taskFields.type)) {
@@ -16899,9 +16903,7 @@ var TaskbarEdit = /** @__PURE__ @class */ (function (_super) {
16899
16903
  addClass([element], [activeParentTask]);
16900
16904
  }
16901
16905
  }
16902
- if (isShowProgressResizer) {
16903
- addClass(this.parent.ganttChartModule.scrollElement.querySelectorAll('.' + connectorLineContainer), [connectorLineZIndex]);
16904
- }
16906
+ addClass(this.parent.ganttChartModule.scrollElement.querySelectorAll('.' + connectorLineContainer), [connectorLineZIndex]);
16905
16907
  if (!isNullOrUndefined(this.parent.taskFields.dependency)
16906
16908
  && (element.querySelector('.' + connectorPointLeft)
16907
16909
  || element.parentElement.querySelector('.' + connectorPointLeft))
@@ -19356,7 +19358,7 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
19356
19358
  }
19357
19359
  else if (isScheduledTask(ganttProp) || !isNullOrUndefined(ganttProp.startDate)) {
19358
19360
  if (ganttData.ganttProperties.isMilestone && ganttData.ganttProperties.duration !== 0) {
19359
- this.parent.dateValidationModule.calculateStartDate(ganttData);
19361
+ this.parent.dateValidationModule.checkStartDate(ganttProp.startDate);
19360
19362
  }
19361
19363
  this.parent.dateValidationModule.calculateEndDate(ganttData);
19362
19364
  }
@@ -26366,6 +26368,8 @@ var Toolbar$3 = /** @__PURE__ @class */ (function () {
26366
26368
  disableItems.push(gID + '_edit');
26367
26369
  disableItems.push(gID + '_update');
26368
26370
  disableItems.push(gID + '_cancel');
26371
+ disableItems.push(gID + '_indent');
26372
+ disableItems.push(gID + '_outdent');
26369
26373
  }
26370
26374
  for (var e = 0; e < enableItems.length; e++) {
26371
26375
  var index = void 0;