@syncfusion/ej2-gantt 22.1.39 → 22.2.7

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 (67) hide show
  1. package/CHANGELOG.md +29 -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 +239 -178
  6. package/dist/es6/ej2-gantt.es2015.js.map +1 -1
  7. package/dist/es6/ej2-gantt.es5.js +240 -178
  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 +20 -20
  13. package/src/gantt/actions/context-menu.js +1 -1
  14. package/src/gantt/actions/critical-path.js +14 -3
  15. package/src/gantt/actions/edit.js +6 -2
  16. package/src/gantt/actions/filter.d.ts +1 -1
  17. package/src/gantt/actions/filter.js +1 -1
  18. package/src/gantt/actions/keyboard.js +0 -1
  19. package/src/gantt/actions/selection.js +4 -0
  20. package/src/gantt/actions/taskbar-edit.js +10 -1
  21. package/src/gantt/base/gantt-chart.js +7 -0
  22. package/src/gantt/base/gantt.d.ts +1 -0
  23. package/src/gantt/base/gantt.js +3 -0
  24. package/src/gantt/base/interface.d.ts +0 -2
  25. package/src/gantt/base/task-processor.js +1 -0
  26. package/src/gantt/base/tree-grid.d.ts +1 -0
  27. package/src/gantt/base/tree-grid.js +30 -5
  28. package/src/gantt/renderer/chart-rows.js +13 -6
  29. package/src/gantt/renderer/connector-line.d.ts +0 -2
  30. package/src/gantt/renderer/connector-line.js +130 -153
  31. package/src/gantt/renderer/timeline.js +1 -2
  32. package/styles/bootstrap-dark.css +1 -2
  33. package/styles/bootstrap.css +1 -2
  34. package/styles/bootstrap4.css +1 -2
  35. package/styles/bootstrap5-dark.css +1 -2
  36. package/styles/bootstrap5.css +1 -2
  37. package/styles/fabric-dark.css +1 -2
  38. package/styles/fabric.css +1 -2
  39. package/styles/fluent-dark.css +1 -2
  40. package/styles/fluent.css +1 -2
  41. package/styles/gantt/_layout.scss +1 -1
  42. package/styles/gantt/_theme.scss +0 -1
  43. package/styles/gantt/bootstrap-dark.css +1 -2
  44. package/styles/gantt/bootstrap.css +1 -2
  45. package/styles/gantt/bootstrap4.css +1 -2
  46. package/styles/gantt/bootstrap5-dark.css +1 -2
  47. package/styles/gantt/bootstrap5.css +1 -2
  48. package/styles/gantt/fabric-dark.css +1 -2
  49. package/styles/gantt/fabric.css +1 -2
  50. package/styles/gantt/fluent-dark.css +1 -2
  51. package/styles/gantt/fluent.css +1 -2
  52. package/styles/gantt/highcontrast-light.css +1 -2
  53. package/styles/gantt/highcontrast.css +1 -2
  54. package/styles/gantt/material-dark.css +1 -2
  55. package/styles/gantt/material.css +1 -2
  56. package/styles/gantt/material3-dark.css +1 -2
  57. package/styles/gantt/material3.css +1 -2
  58. package/styles/gantt/tailwind-dark.css +1 -2
  59. package/styles/gantt/tailwind.css +1 -2
  60. package/styles/highcontrast-light.css +1 -2
  61. package/styles/highcontrast.css +1 -2
  62. package/styles/material-dark.css +1 -2
  63. package/styles/material.css +1 -2
  64. package/styles/material3-dark.css +1 -2
  65. package/styles/material3.css +1 -2
  66. package/styles/tailwind-dark.css +1 -2
  67. package/styles/tailwind.css +1 -2
@@ -3998,6 +3998,7 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
3998
3998
  this.parent.setRecordValue('progress', Math.floor(parentProgress), parentProp, true);
3999
3999
  this.parent.setRecordValue('totalProgress', totalProgress, parentProp, true);
4000
4000
  this.parent.setRecordValue('totalDuration', totalDuration, parentProp, true);
4001
+ this.parent.setRecordValue('autoDuration', parentProp.duration, parentProp, true);
4001
4002
  if (!parentProp.isAutoSchedule) {
4002
4003
  this.parent.setRecordValue('autoDuration', this.calculateAutoDuration(parentProp), parentProp, true);
4003
4004
  this.updateAutoWidthLeft(parentData);
@@ -4554,6 +4555,9 @@ var GanttChart = /** @__PURE__ @class */ (function () {
4554
4555
  }
4555
4556
  this.updateWidthAndHeight();
4556
4557
  this.parent.notify('selectRowByIndex', {});
4558
+ if (this.parent.timelineModule.isZoomToFit) {
4559
+ this.parent.timelineModule.processZoomToFit();
4560
+ }
4557
4561
  };
4558
4562
  /**
4559
4563
  * @param {IGanttData[]} records .
@@ -4836,6 +4840,10 @@ var GanttChart = /** @__PURE__ @class */ (function () {
4836
4840
  if (!isNullOrUndefined(this.parent.editModule) && !isNullOrUndefined(this.parent.editModule.taskbarEditModule)) {
4837
4841
  this.parent.editModule.taskbarEditModule.removeFalseLine(false);
4838
4842
  }
4843
+ var resizeCheck = this.parent.element.querySelector(".e-taskbar-resize-div");
4844
+ if (!isNullOrUndefined(resizeCheck)) {
4845
+ resizeCheck.remove();
4846
+ }
4839
4847
  if (this.parent.allowRowDragAndDrop) {
4840
4848
  var ganttDragElemet = this.parent.element.querySelector('.e-ganttdrag');
4841
4849
  if (ganttDragElemet) {
@@ -6168,8 +6176,7 @@ var Timeline = /** @__PURE__ @class */ (function () {
6168
6176
  this.parent.showSpinner();
6169
6177
  }
6170
6178
  this.changeTimelineSettings(newTimeline);
6171
- this.isZoomToFit = false;
6172
- this.parent.isTimelineRoundOff = this.isZoomToFit ? false : isNullOrUndefined(this.parent.projectStartDate) ? true : false;
6179
+ this.parent.isTimelineRoundOff = isNullOrUndefined(this.parent.projectStartDate) ? true : false;
6173
6180
  };
6174
6181
  Timeline.prototype.bottomTierCellWidthCalc = function (mode, zoomLevel, date) {
6175
6182
  var convertedMilliSeconds;
@@ -7833,6 +7840,7 @@ var GanttTreeGrid = /** @__PURE__ @class */ (function () {
7833
7840
  }
7834
7841
  };
7835
7842
  GanttTreeGrid.prototype.treeActionComplete = function (args) {
7843
+ var _this = this;
7836
7844
  var updatedArgs = extend({}, args);
7837
7845
  if (getValue('requestType', args) === 'sorting') {
7838
7846
  this.parent.notify('updateModel', {});
@@ -7855,6 +7863,7 @@ var GanttTreeGrid = /** @__PURE__ @class */ (function () {
7855
7863
  }
7856
7864
  }
7857
7865
  this.parent.editModule.cellEditModule.initiateCellEdit(args, this.currentEditRow);
7866
+ this.parent.editModule.cellEditModule.isCellEdit = false;
7858
7867
  this.currentEditRow = {};
7859
7868
  }
7860
7869
  }
@@ -7880,7 +7889,14 @@ var GanttTreeGrid = /** @__PURE__ @class */ (function () {
7880
7889
  }
7881
7890
  }
7882
7891
  else {
7883
- this.parent.selectRow(0);
7892
+ var indexvalue = 0;
7893
+ this.parent.currentViewData.map(function (data, index) {
7894
+ if (!isNullOrUndefined(_this.parent.currentSelection) && ((data.ganttProperties.taskId === _this.parent.currentSelection[_this.parent.taskFields.id])) || (!isNullOrUndefined(_this.parent.currentSelection)) && (data.ganttProperties.taskId === _this.parent.currentSelection.taskId)) {
7895
+ indexvalue = index;
7896
+ }
7897
+ });
7898
+ this.addedRecord = true;
7899
+ this.parent.selectRow((isNullOrUndefined(indexvalue) ? 0 : indexvalue));
7884
7900
  }
7885
7901
  this.parent.addDeleteRecord = false;
7886
7902
  }
@@ -8063,8 +8079,16 @@ var GanttTreeGrid = /** @__PURE__ @class */ (function () {
8063
8079
  this.parent.getDateFormat().toLowerCase().indexOf('hh') !== -1 ? 'datetimepickeredit' : 'datepickeredit';
8064
8080
  column.format = column.format ? column.format : { type: 'date', format: this.parent.getDateFormat() };
8065
8081
  column.width = column.width ? column.width : 150;
8066
- if (!column.edit || (column.edit && !column.edit.create)) {
8067
- column.edit = { params: { renderDayCell: this.parent.renderWorkingDayCell.bind(this.parent) } };
8082
+ if (column.edit && column.edit.params) {
8083
+ column.edit.params['renderDayCell'] = this.parent.renderWorkingDayCell.bind(this.parent);
8084
+ }
8085
+ else {
8086
+ if (column.edit) {
8087
+ column.edit.params = { renderDayCell: this.parent.renderWorkingDayCell.bind(this.parent) };
8088
+ }
8089
+ else {
8090
+ column.edit = { params: { renderDayCell: this.parent.renderWorkingDayCell.bind(this.parent) } };
8091
+ }
8068
8092
  }
8069
8093
  }
8070
8094
  else if (taskSettings.endDate === column.field) {
@@ -8078,8 +8102,16 @@ var GanttTreeGrid = /** @__PURE__ @class */ (function () {
8078
8102
  column.editType = column.editType ? column.editType :
8079
8103
  this.parent.getDateFormat().toLowerCase().indexOf('hh') !== -1 ? 'datetimepickeredit' : 'datepickeredit';
8080
8104
  column.width = column.width ? column.width : 150;
8081
- if (!column.edit || (column.edit && !column.edit.create)) {
8082
- column.edit = { params: { renderDayCell: this.parent.renderWorkingDayCell.bind(this.parent) } };
8105
+ if (column.edit && column.edit.params) {
8106
+ column.edit.params['renderDayCell'] = this.parent.renderWorkingDayCell.bind(this.parent);
8107
+ }
8108
+ else {
8109
+ if (column.edit) {
8110
+ column.edit.params = { renderDayCell: this.parent.renderWorkingDayCell.bind(this.parent) };
8111
+ }
8112
+ else {
8113
+ column.edit = { params: { renderDayCell: this.parent.renderWorkingDayCell.bind(this.parent) } };
8114
+ }
8083
8115
  }
8084
8116
  }
8085
8117
  else if (taskSettings.duration === column.field) {
@@ -9457,7 +9489,7 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
9457
9489
  childTaskbarNode = this.createDivElement(template);
9458
9490
  }
9459
9491
  }
9460
- if (this.parent.enableRtl && childTaskbarNode[0] && childTaskbarNode[0].querySelector('.e-task-label')) {
9492
+ if (this.parent.enableRtl && !isNullOrUndefined(childTaskbarNode) && childTaskbarNode[0] && childTaskbarNode[0].querySelector('.e-task-label')) {
9461
9493
  childTaskbarNode[0].querySelector('.e-task-label').style.marginLeft = '15px';
9462
9494
  childTaskbarNode[0].querySelector('.e-task-label').style.marginRight = '8px';
9463
9495
  if (childTaskbarNode[0].querySelector('.e-gantt-child-progressbar')) {
@@ -9839,8 +9871,8 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
9839
9871
  milestoneNode = this.milestoneTemplateFunction(extend({ index: i }, data), this.parent, 'MilestoneTemplate', this.getTemplateID('MilestoneTemplate'), false, undefined, rootElement[0], this.parent.treeGrid['root']);
9840
9872
  }
9841
9873
  else {
9842
- var template = '<div class="' + traceMilestone + '" style="width:' + ((this.parent.renderBaseline ? this.taskBarHeight - 3 : this.taskBarHeight - 7)) + 'px;height:' +
9843
- ((this.parent.renderBaseline ? this.taskBarHeight - 3 : this.taskBarHeight - 7)) + 'px;position:absolute;transform: rotate(45deg);top:' + (this.parent.rowHeight > 40 ? 0 : 2) + 'px;left:' + (this.parent.renderBaseline ? 2 : 1) + 'px;"> </div>';
9874
+ var template = '<div class="' + traceMilestone + '" style="width:' + ((this.parent.renderBaseline ? this.taskBarHeight : this.taskBarHeight - 6)) + 'px;height:' +
9875
+ ((this.parent.renderBaseline ? this.taskBarHeight : this.taskBarHeight - 6)) + 'px;position:absolute;transform: rotate(45deg);top:' + (this.parent.rowHeight > 40 ? 0 : 1) + 'px;left:' + 1 + 'px;"> </div>';
9844
9876
  milestoneNode = this.createDivElement(template);
9845
9877
  }
9846
9878
  return milestoneNode;
@@ -9868,9 +9900,9 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
9868
9900
  ChartRows.prototype.getMilestoneBaselineNode = function () {
9869
9901
  var data = this.templateData;
9870
9902
  var baselineMilestoneHeight = this.parent.renderBaseline ? 5 : 2;
9871
- var template = '<div class="' + baselineMilestoneContainer + '" style="width:' + ((this.parent.renderBaseline ? this.taskBarHeight - 5 : this.taskBarHeight - 10) + 2) + 'px;height:' +
9872
- ((this.parent.renderBaseline ? this.taskBarHeight - 5 : this.taskBarHeight - 10) + 2) + 'px;position:absolute;transform:rotate(45deg);' + (this.parent.enableRtl ? 'right:' : 'left:') + (this.parent.enableRtl ? (data.ganttProperties.left -
9873
- (this.milestoneHeight / 2) + 3) : (data.ganttProperties.left - (this.milestoneHeight / 2) + 2)) + 'px;' + (this.baselineColor ? 'background-color: ' + this.baselineColor + ';' : '') + 'margin-top:' + ((-Math.floor(this.parent.rowHeight - this.milestoneMarginTop) + baselineMilestoneHeight) + 3) + 'px"> </div>';
9903
+ var template = '<div class="' + baselineMilestoneContainer + '" style="width:' + ((this.parent.renderBaseline ? this.taskBarHeight : this.taskBarHeight - 10)) + 'px;height:' +
9904
+ ((this.parent.renderBaseline ? this.taskBarHeight : this.taskBarHeight - 10)) + 'px;position:absolute;transform:rotate(45deg);' + (this.parent.enableRtl ? 'right:' : 'left:') + (this.parent.enableRtl ? (data.ganttProperties.left -
9905
+ (this.milestoneHeight / 2) + 3) : (data.ganttProperties.left - (this.milestoneHeight / 2) + 1)) + 'px;' + (this.baselineColor ? 'background-color: ' + this.baselineColor + ';' : '') + 'margin-top:' + ((-Math.floor(this.parent.rowHeight - this.milestoneMarginTop) + baselineMilestoneHeight) + 2) + 'px"> </div>';
9874
9906
  return this.createDivElement(template);
9875
9907
  };
9876
9908
  /**
@@ -10556,6 +10588,12 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
10556
10588
  (_a = this.ganttChartTableBody).replaceChildren.apply(_a, dupChartBody.childNodes);
10557
10589
  this.parent.initialChartRowElements = this.parent.ganttChartModule.getChartRows();
10558
10590
  }
10591
+ if (this.parent.enableCriticalPath && this.parent.criticalPathModule) {
10592
+ var criticalModule = this.parent.criticalPathModule;
10593
+ if (criticalModule.criticalPathCollection) {
10594
+ this.parent.criticalPathModule.criticalConnectorLine(criticalModule.criticalPathCollection, criticalModule.detailPredecessorCollection, true, criticalModule.predecessorCollectionTaskIds);
10595
+ }
10596
+ }
10559
10597
  this.parent.renderTemplates();
10560
10598
  this.triggerQueryTaskbarInfo();
10561
10599
  this.parent.modifiedRecords = [];
@@ -10570,6 +10608,7 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
10570
10608
  }
10571
10609
  }
10572
10610
  }
10611
+ this.parent.isGanttChartRendered = true;
10573
10612
  this.parent.renderTemplates();
10574
10613
  };
10575
10614
  /**
@@ -12240,8 +12279,6 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
12240
12279
  connectorObj.connectorLineId = 'parent' + parentId + 'child' + childId;
12241
12280
  connectorObj.milestoneParent = parentGanttRecord.isMilestone ? true : false;
12242
12281
  connectorObj.milestoneChild = childGanttRecord.isMilestone ? true : false;
12243
- connectorObj.isManualParent = (!(this.parent.flatData[parentIndex].ganttProperties.isAutoSchedule) && this.parent.flatData[parentIndex].hasChildRecords);
12244
- connectorObj.isManualChild = (!(this.parent.flatData[childIndex].ganttProperties.isAutoSchedule) && this.parent.flatData[childIndex].hasChildRecords);
12245
12282
  connectorObj.parentEndPoint = connectorObj.parentLeft + connectorObj.parentWidth;
12246
12283
  connectorObj.childEndPoint = connectorObj.childLeft + connectorObj.childWidth;
12247
12284
  if (isNullOrUndefined(isScheduledTask(parentGanttRecord)) || isNullOrUndefined(isScheduledTask(childGanttRecord))) {
@@ -12545,6 +12582,8 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
12545
12582
  isMilestoneValue = (data.milestoneParent && data.milestoneChild) ? 0 : data.milestoneParent ? -5 : data.milestoneChild ? 5 : 0;
12546
12583
  }
12547
12584
  var heightValue = isVirtual ? connectorLine$$1.height : (height + isMilestoneValue);
12585
+ var borderTopWidth = 0;
12586
+ var addTop = 0;
12548
12587
  var parentOverlapTopValue = 0;
12549
12588
  var childOverlapTopValue = 0;
12550
12589
  var count = 0;
@@ -12581,30 +12620,56 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
12581
12620
  }
12582
12621
  if (isValid) {
12583
12622
  if (((fromRecordIsParent && !fromRecordIsManual) && (toRecordIsParent && !toRecordIsManual))) {
12584
-
12623
+ addTop = -11;
12585
12624
  }
12586
12625
  else if (!((fromRecordIsParent && !fromRecordIsManual) && (toRecordIsParent && !toRecordIsManual))) {
12587
12626
  if (data.childIndex > data.parentIndex) {
12588
-
12627
+ if (!fromRecordIsParent && toRecordIsParent) {
12628
+ borderTopWidth = -11;
12629
+ }
12630
+ else {
12631
+ borderTopWidth = 11;
12632
+ addTop = -11;
12633
+ }
12589
12634
  }
12590
12635
  else {
12591
-
12636
+ if ((fromRecordIsParent && !toRecordIsParent)) {
12637
+ borderTopWidth = -11;
12638
+ }
12639
+ else {
12640
+ borderTopWidth = 11;
12641
+ addTop = -11;
12642
+ }
12592
12643
  }
12593
12644
  }
12594
12645
  if (this.parent.currentViewData[data.parentIndex].ganttProperties.isMilestone) {
12595
12646
  if (data.parentIndex > data.childIndex) {
12596
-
12647
+ addTop = -11;
12648
+ borderTopWidth = 12;
12597
12649
  }
12598
12650
  else if (data.type === 'SS' || data.type === 'FF') {
12599
-
12651
+ addTop = -5;
12600
12652
  }
12601
12653
  }
12602
12654
  else if (this.parent.currentViewData[data.childIndex].ganttProperties.isMilestone) {
12603
12655
  if (data.parentIndex > data.childIndex) {
12604
-
12656
+ addTop = 5;
12657
+ borderTopWidth = -10;
12605
12658
  }
12606
- else if (data.type === 'SS' || data.type === 'FF') {
12607
-
12659
+ else if (data.parentIndex < data.childIndex) {
12660
+ if (data.type === 'SS' || data.type === 'FF') {
12661
+ addTop = -10;
12662
+ }
12663
+ }
12664
+ }
12665
+ else {
12666
+ if (data.parentIndex < data.childIndex && fromRecordIsManual && !toRecordIsManual) {
12667
+ addTop = 0;
12668
+ borderTopWidth = -11;
12669
+ }
12670
+ else if (data.childIndex < data.parentIndex && !fromRecordIsManual && toRecordIsManual) {
12671
+ addTop = 0;
12672
+ borderTopWidth = -11;
12608
12673
  }
12609
12674
  }
12610
12675
  }
@@ -12637,127 +12702,110 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
12637
12702
  if (this.getParentPosition(data) === 'FSType1') {
12638
12703
  this.taskLineValue = data.milestoneChild ? 1 : 0;
12639
12704
  this.x1 = data.parentEndPoint + (data.milestoneParent ? -1 : (data.milestoneChild ? -1 : 0));
12640
- this.x2 = data.milestoneParent ? ((((data.childLeft - (data.parentEndPoint + 10)) + 1) - 10) + 1) : (((data.childLeft - (data.parentEndPoint + 10))) - 10);
12641
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12642
- this.y2 = heightValue + this.taskLineValue;
12643
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12644
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12645
- this.connectorLinePath = "M " + this.x1 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x1 + this.x2) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x1 + this.x2) + " " + (this.y1 + this.y2) +
12646
- " L " + (this.x1 + this.x2 + 11) + " " + (this.y1 + this.y2);
12647
- this.arrowPath = "M " + (this.x1 + this.x2 + 18) + " " + (this.y1 + this.y2 + this.manualChild) +
12648
- " L " + (this.x1 + this.x2 + 11) + " " + (this.y1 + this.y2 - (4 + this.lineStroke) + this.manualChild) +
12649
- " L " + (this.x1 + this.x2 + 11) + " " + (this.y1 + this.y2 + 4 + this.lineStroke + this.manualChild) + " Z";
12705
+ this.x2 = data.milestoneParent ? ((((data.childLeft - (data.parentLeft + data.parentWidth + 10)) + this.lineStroke) - 10) + 1) : (((data.childLeft - (data.parentLeft + data.parentWidth + 10)) + this.lineStroke) - 10);
12706
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue));
12707
+ this.y2 = heightValue + this.taskLineValue + borderTopWidth - this.lineStroke;
12708
+ this.connectorLinePath = "M " + this.x1 + " " + (this.y1) + " L " + (this.x1 + this.x2) + " " + (this.y1) + " L " + (this.x1 + this.x2) + " " + (this.y1 + this.y2) +
12709
+ " L " + (this.x1 + this.x2 + 12) + " " + (this.y1 + this.y2);
12710
+ this.arrowPath = "M " + (this.x1 + this.x2 + 20) + " " + (this.y1 + this.y2) +
12711
+ " L " + (this.x1 + this.x2 + 12) + " " + (this.y1 + this.y2 - (4 + this.lineStroke)) +
12712
+ " L " + (this.x1 + this.x2 + 12) + " " + (this.y1 + this.y2 + 4) + " Z";
12650
12713
  }
12651
12714
  if (this.getParentPosition(data) === 'FSType2') {
12652
- this.taskLineValue = data.milestoneChild ? 1 : 0;
12653
- this.x1 = data.parentLeft + (data.milestoneChild ? -1 : 0);
12654
- this.x2 = data.parentWidth + (data.milestoneParent ? 1 : 0);
12715
+ this.x1 = data.parentLeft;
12716
+ this.x2 = data.parentWidth + (data.milestoneParent ? -1 : 0);
12655
12717
  this.x3 = this.x2 + (data.milestoneParent ? 11 : 10);
12656
12718
  this.x4 = data.parentWidth - ((data.parentEndPoint - data.childLeft) + 20);
12657
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12658
- this.y2 = heightValue - this.getconnectorLineGap(data) + this.taskLineValue;
12719
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue));
12720
+ this.y2 = heightValue + borderTopWidth - this.getconnectorLineGap(data) - this.lineStroke;
12659
12721
  this.y3 = this.getconnectorLineGap(data);
12660
- this.y4 = this.y1 + this.y2 - ((this.y1 + this.y2) % data.rowHeight);
12661
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12662
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12663
- this.connectorLinePath = "M " + (this.x1 + this.x2) + " " + (this.y1 + this.manualParent + this.manualChild) + " " + " L " + (this.x1 + this.x3) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x1 + this.x3) + " " + this.y4 +
12664
- " L " + (this.x1 + this.x4) + " " + this.y4 + " L " + (this.x1 + this.x4) + " " + (this.y1 + this.y2 + this.y3) + " L " + (this.x1 + this.x4 + 11) + " " + (this.y1 + this.y2 + this.y3);
12665
- this.arrowPath = "M " + (this.x1 + this.x4 + 18) + " " + (this.y1 + this.y2 + this.y3 + this.manualChild) +
12666
- " L " + (this.x1 + this.x4 + 11) + " " + (this.y1 + this.y2 + this.y3 - (4 + this.lineStroke) + this.manualChild) +
12667
- " L " + (this.x1 + this.x4 + 11) + " " + (this.y1 + this.y2 + this.y3 + 4 + this.lineStroke + this.manualChild) + " Z";
12722
+ this.y4 = (!this.parent.allowTaskbarOverlap ? childOverlapTopValue : (this.y1 + this.y2 - ((this.y1 + this.y2) % data.rowHeight)));
12723
+ this.connectorLinePath = "M " + (this.x1 + this.x2) + " " + (this.y1) + " " + " L " + (this.x1 + this.x3) + " " + (this.y1) + " L " + (this.x1 + this.x3) + " " + this.y4 +
12724
+ " L " + (this.x1 + this.x4) + " " + this.y4 + " L " + (this.x1 + this.x4) + " " + (this.y1 + this.y2 + this.y3) + " L " + (this.x1 + this.x4 + 12) + " " + (this.y1 + this.y2 + this.y3);
12725
+ this.arrowPath = "M " + (this.x1 + this.x4 + 20) + " " + (this.y1 + this.y2 + this.y3) +
12726
+ " L " + (this.x1 + this.x4 + 12) + " " + (this.y1 + this.y2 + this.y3 - (4 + this.lineStroke)) +
12727
+ " L " + (this.x1 + this.x4 + 12) + " " + (this.y1 + this.y2 + this.y3 + 4 + this.lineStroke) + " Z";
12668
12728
  }
12669
12729
  if (this.getParentPosition(data) === 'FSType3') {
12670
12730
  this.taskLineValue = data.milestoneChild ? 1 : 0;
12671
- this.point1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild));
12731
+ this.point1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? childOverlapTopValue : (data.childIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue));
12672
12732
  this.x1 = (data.childLeft + (data.milestoneChild ? -1 : 0) + (data.milestoneParent ? 1 : 0)) - 20;
12673
12733
  this.x2 = (data.parentEndPoint - data.childLeft) + 30;
12674
- this.y1 = this.point1 + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12675
- this.y2 = this.point1 + heightValue - this.getconnectorLineGap(data) + this.taskLineValue + (this.parent.renderBaseline ? (data.milestoneChild ? -10 : 0) : 0);
12676
- this.y3 = this.getconnectorLineGap(data) + (this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
12734
+ this.y1 = this.point1 + (this.parent.renderBaseline ? (data.milestoneChild && !(data.milestoneParent) ? 11 : data.milestoneParent && !(data.milestoneChild) ? -12 : 0) : 0);
12735
+ this.y2 = this.point1 + heightValue + borderTopWidth - this.getconnectorLineGap(data) - this.lineStroke + this.taskLineValue;
12736
+ this.y3 = this.getconnectorLineGap(data);
12677
12737
  this.y4 = this.y2 - (this.y2 % data.rowHeight);
12678
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12679
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12680
- this.connectorLinePath = "M " + (this.x1 + 12) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + this.y4 +
12738
+ this.connectorLinePath = "M " + (this.x1 + 12) + " " + (this.y1) + " L " + this.x1 + " " + (this.y1) + " L " + this.x1 + " " + this.y4 +
12681
12739
  " L " + (this.x1 + this.x2) + " " + this.y4 + " L " + (this.x1 + this.x2) + " " + (this.y2 + this.y3) + " L " + (this.x1 + this.x2 - 12) + " " + (this.y2 + this.y3);
12682
- this.arrowPath = "M " + (this.x1 + 18) + " " + (this.y1 + this.manualChild) +
12683
- " L " + (this.x1 + 11) + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
12684
- " L " + (this.x1 + 11) + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
12740
+ this.arrowPath = "M " + (this.x1 + 20) + " " + (this.y1) +
12741
+ " L " + (this.x1 + 12) + " " + (this.y1 - (4 + this.lineStroke)) +
12742
+ " L " + (this.x1 + 12) + " " + (this.y1 + 4 + this.lineStroke) + " Z";
12685
12743
  }
12686
12744
  if (this.getParentPosition(data) === 'FSType4') {
12687
- this.point1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild));
12745
+ this.point1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? childOverlapTopValue : (data.childIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1)));
12688
12746
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : 0;
12689
12747
  this.x1 = data.parentEndPoint + (data.milestoneChild ? -1 : 0) + (data.milestoneParent ? 1 : 0);
12690
12748
  this.x2 = data.childLeft - data.parentEndPoint - 20;
12691
- this.y1 = this.point1 + (data.milestoneChild ? 1 : 0) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12692
- this.y2 = this.point1 + heightValue + this.taskLineValue + (this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
12693
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12694
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12695
- this.connectorLinePath = "M " + (this.x1 + this.x2 + 11) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x1 + this.x2) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x1 + this.x2) + " " + this.y2 +
12749
+ this.y1 = this.point1 + (data.milestoneChild ? -1 : 0);
12750
+ this.y2 = this.point1 + heightValue + borderTopWidth - this.lineStroke + 1 + this.taskLineValue + (this.parent.renderBaseline ? (data.milestoneChild && !(data.milestoneParent) ? -12 : data.milestoneParent && !(data.milestoneChild) ? 11 : 0) : 0);
12751
+ this.connectorLinePath = "M " + (this.x1 + this.x2 + 12) + " " + (this.y1) + " L " + (this.x1 + this.x2) + " " + (this.y1) + " L " + (this.x1 + this.x2) + " " + this.y2 +
12696
12752
  " L " + this.x1 + " " + this.y2;
12697
- this.arrowPath = "M " + (this.x1 + this.x2 + 18) + " " + (this.y1 + this.manualChild) +
12698
- " L " + (this.x1 + this.x2 + 11) + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
12699
- " L " + (this.x1 + this.x2 + 11) + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
12753
+ this.arrowPath = "M " + (this.x1 + this.x2 + 20) + " " + (this.y1) +
12754
+ " L " + (this.x1 + this.x2 + 12) + " " + (this.y1 - (4 + this.lineStroke)) +
12755
+ " L " + (this.x1 + this.x2 + 12) + " " + (this.y1 + 4 + this.lineStroke) + " Z";
12700
12756
  }
12701
12757
  if (this.getParentPosition(data) === 'SSType4') {
12702
12758
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : 0;
12703
- this.point1 = heightValue + this.taskLineValue;
12704
- this.point2 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild));
12705
- this.x1 = data.parentLeft - 8;
12759
+ this.point1 = heightValue + this.taskLineValue + borderTopWidth;
12760
+ this.point2 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? childOverlapTopValue : (data.childIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1)));
12761
+ this.x1 = data.parentLeft - 10;
12706
12762
  this.x2 = data.childLeft - data.parentLeft;
12707
- this.y1 = this.point2 + (data.milestoneChild ? 1 : 0) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12708
- this.y2 = this.y1 + this.point1 + (this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
12709
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12710
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12711
- this.connectorLinePath = "M " + (this.x1 + this.x2) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + (this.y1 + this.manualParent + this.manualChild) +
12763
+ this.y1 = this.point2 + (data.milestoneChild ? 1 : 0);
12764
+ this.y2 = this.y1 + this.point1 + (this.parent.renderBaseline ? (data.milestoneParent && !(data.milestoneChild) ? 10 : data.milestoneChild && !(data.milestoneParent) ? -13 : 0) : 0);
12765
+ this.connectorLinePath = "M " + (this.x1 + this.x2) + " " + (this.y1) + " L " + this.x1 + " " + (this.y1) +
12712
12766
  " L " + this.x1 + " " + this.y2 + " L " + (this.x1 + 10) + " " + this.y2;
12713
- this.arrowPath = "M " + (this.x1 + this.x2 + 8) + " " + (this.y1 + this.manualChild) +
12714
- " L " + (this.x1 + this.x2) + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
12715
- " L " + (this.x1 + this.x2) + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
12767
+ this.arrowPath = "M " + (this.x1 + this.x2 + 8) + " " + (this.y1) +
12768
+ " L " + (this.x1 + this.x2) + " " + (this.y1 - (4 + this.lineStroke)) +
12769
+ " L " + (this.x1 + this.x2) + " " + (this.y1 + 4 + this.lineStroke) + " Z";
12716
12770
  }
12717
12771
  if (this.getParentPosition(data) === 'SSType3') {
12718
12772
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : data.milestoneChild ? 1 : 0;
12719
- this.point1 = heightValue + this.taskLineValue;
12773
+ this.point1 = heightValue + this.taskLineValue + borderTopWidth - (this.lineStroke - 1);
12720
12774
  this.x1 = data.childLeft - 20;
12721
- this.y1 = (data.milestoneChild ? 1 : 0) + ((this.parent.enableVirtualization ? rowPositionHeight : (!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild))) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12775
+ this.y1 = (data.milestoneChild ? 1 : 0) + (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? childOverlapTopValue : (data.childIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1)));
12722
12776
  this.x2 = data.parentLeft - data.childLeft + 21;
12723
- this.y2 = this.y1 + this.point1 + (this.parent.renderBaseline ? (data.milestoneChild ? -11 : data.milestoneParent ? 10 : 0) : 0);
12724
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12725
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12726
- this.connectorLinePath = "M " + (this.x1 + 12) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + (this.y1 + this.manualParent + this.manualChild) +
12777
+ this.y2 = this.y1 + this.point1 + (this.parent.renderBaseline ? (data.milestoneChild && !(data.milestoneParent) ? -11 : data.milestoneParent && !(data.milestoneChild) ? 10 : 0) : 0);
12778
+ this.connectorLinePath = "M " + (this.x1 + 12) + " " + (this.y1) + " L " + this.x1 + " " + (this.y1) +
12727
12779
  " L " + this.x1 + " " + this.y2 + " L " + (this.x1 + this.x2) + " " + this.y2;
12728
- this.arrowPath = "M " + (this.x1 + 20) + " " + (this.y1 + this.manualChild) +
12729
- " L " + (this.x1 + 12) + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
12730
- " L " + (this.x1 + 12) + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
12780
+ this.arrowPath = "M " + (this.x1 + 20) + " " + (this.y1) +
12781
+ " L " + (this.x1 + 12) + " " + (this.y1 - (4 + this.lineStroke)) +
12782
+ " L " + (this.x1 + 12) + " " + (this.y1 + 4 + this.lineStroke) + " Z";
12731
12783
  }
12732
12784
  if (this.getParentPosition(data) === 'SSType2') {
12733
12785
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : data.milestoneChild ? 1 : 0;
12734
- this.point1 = heightValue + this.taskLineValue;
12786
+ this.point1 = heightValue + this.taskLineValue + borderTopWidth - this.lineStroke;
12735
12787
  this.x1 = setInnerElementLeftSSType2;
12736
12788
  this.x2 = setInnerChildWidthSSType2 + 1;
12737
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12789
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1)));
12738
12790
  this.y2 = this.y1 + this.point1;
12739
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12740
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12741
- this.connectorLinePath = "M " + (this.x1 + this.x2) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + this.y2 +
12791
+ this.connectorLinePath = "M " + (this.x1 + this.x2) + " " + (this.y1) + " L " + this.x1 + " " + (this.y1) + " L " + this.x1 + " " + this.y2 +
12742
12792
  " L " + (this.x1 + setInnerElementWidthSSType2) + " " + this.y2;
12743
- this.arrowPath = "M " + (this.x1 + setInnerElementWidthSSType2 + 8) + " " + (this.y2 + this.manualChild) +
12744
- " L " + (this.x1 + setInnerElementWidthSSType2) + " " + (this.y2 - (4 + this.lineStroke) + this.manualChild) +
12745
- " L " + (this.x1 + setInnerElementWidthSSType2) + " " + (this.y2 + 4 + this.lineStroke + this.manualChild) + " Z";
12793
+ this.arrowPath = "M " + (this.x1 + setInnerElementWidthSSType2 + 8) + " " + (this.y2) +
12794
+ " L " + (this.x1 + setInnerElementWidthSSType2) + " " + (this.y2 - (4 + this.lineStroke)) +
12795
+ " L " + (this.x1 + setInnerElementWidthSSType2) + " " + (this.y2 + 4 + this.lineStroke) + " Z";
12746
12796
  }
12747
12797
  if (this.getParentPosition(data) === 'SSType1') {
12748
12798
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : data.milestoneChild ? 1 : 0;
12749
- this.point1 = heightValue + this.taskLineValue;
12799
+ this.point1 = heightValue + this.taskLineValue + borderTopWidth - this.lineStroke;
12750
12800
  this.x1 = data.childLeft - 20;
12751
12801
  this.x2 = data.parentLeft - data.childLeft + 21;
12752
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + +((data.isManualParent && data.isManualChild) ? -10 : 0);
12802
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1)));
12753
12803
  this.y2 = this.y1 + this.point1;
12754
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12755
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12756
- this.connectorLinePath = "M " + (this.x1 + this.x2) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + this.y2 +
12804
+ this.connectorLinePath = "M " + (this.x1 + this.x2) + " " + (this.y1) + " L " + this.x1 + " " + (this.y1) + " L " + this.x1 + " " + this.y2 +
12757
12805
  " L " + (this.x1 + 12) + " " + this.y2;
12758
- this.arrowPath = "M " + (this.x1 + 20) + " " + (this.y2 + this.manualChild) +
12759
- " L " + (this.x1 + 12) + " " + (this.y2 - (4 + this.lineStroke) + this.manualChild) +
12760
- " L " + (this.x1 + 12) + " " + (this.y2 + 4 + this.lineStroke + this.manualChild) + " Z";
12806
+ this.arrowPath = "M " + (this.x1 + 20) + " " + (this.y2) +
12807
+ " L " + (this.x1 + 12) + " " + (this.y2 - (4 + this.lineStroke)) +
12808
+ " L " + (this.x1 + 12) + " " + (this.y2 + 4 + this.lineStroke) + " Z";
12761
12809
  }
12762
12810
  if (this.getParentPosition(data) === 'FFType1') {
12763
12811
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : (data.milestoneChild ? 1 : 0);
@@ -12765,30 +12813,26 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
12765
12813
  this.x2 = data.parentEndPoint + (data.milestoneParent ? -1 : 0);
12766
12814
  this.x3 = data.milestoneParent ? 22 : 21;
12767
12815
  this.x4 = data.milestoneChild ? 4 : 8;
12768
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12769
- this.y2 = heightValue + this.taskLineValue;
12770
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12771
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12772
- this.connectorLinePath = "M " + this.x2 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x2 + this.x3) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x2 + this.x3) + " " + (this.y1 + this.y2) +
12816
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1)));
12817
+ this.y2 = heightValue + this.taskLineValue + borderTopWidth - this.lineStroke;
12818
+ this.connectorLinePath = "M " + this.x2 + " " + (this.y1) + " L " + (this.x2 + this.x3) + " " + (this.y1) + " L " + (this.x2 + this.x3) + " " + (this.y1 + this.y2) +
12773
12819
  " L " + (this.x1 + this.x4) + " " + (this.y1 + this.y2);
12774
- this.arrowPath = "M " + this.x1 + " " + (this.y1 + this.y2 + this.manualChild) +
12775
- " L " + (this.x1 + 8) + " " + (this.y1 + this.y2 - (4 + this.lineStroke) + this.manualChild) +
12776
- " L " + (this.x1 + 8) + " " + (this.y1 + this.y2 + 4 + this.lineStroke + this.manualChild) + " Z";
12820
+ this.arrowPath = "M " + this.x1 + " " + (this.y1 + this.y2) +
12821
+ " L " + (this.x1 + 8) + " " + (this.y1 + this.y2 - (4 + this.lineStroke)) +
12822
+ " L " + (this.x1 + 8) + " " + (this.y1 + this.y2 + 4 + this.lineStroke) + " Z";
12777
12823
  }
12778
12824
  if (this.getParentPosition(data) === 'FFType2') {
12779
12825
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : (data.milestoneChild ? 1 : 0);
12780
12826
  this.x1 = data.parentEndPoint;
12781
12827
  this.x2 = data.childEndPoint + (data.milestoneParent ? 22 : 21);
12782
12828
  this.x3 = data.childEndPoint + (data.milestoneChild ? 9 : 8);
12783
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12784
- this.y2 = heightValue + this.taskLineValue;
12785
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12786
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12787
- this.connectorLinePath = "M " + this.x1 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x2 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x2 + " " + (this.y1 + this.y2) +
12829
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(data.milestoneParent) - (this.lineStroke - 1)));
12830
+ this.y2 = heightValue + this.taskLineValue + borderTopWidth - this.lineStroke;
12831
+ this.connectorLinePath = "M " + this.x1 + " " + (this.y1) + " L " + this.x2 + " " + (this.y1) + " L " + this.x2 + " " + (this.y1 + this.y2) +
12788
12832
  " L " + this.x3 + " " + (this.y1 + this.y2);
12789
- this.arrowPath = "M " + (this.x3 - 8) + " " + (this.y1 + this.y2 + this.manualChild) +
12790
- " L " + this.x3 + " " + (this.y1 + this.y2 - (4 + this.lineStroke) + this.manualChild) +
12791
- " L " + this.x3 + " " + (this.y1 + this.y2 + 4 + this.lineStroke + this.manualChild) + " Z";
12833
+ this.arrowPath = "M " + (this.x3 - 8) + " " + (this.y1 + this.y2) +
12834
+ " L " + this.x3 + " " + (this.y1 + this.y2 - (4 + this.lineStroke)) +
12835
+ " L " + this.x3 + " " + (this.y1 + this.y2 + 4 + this.lineStroke) + " Z";
12792
12836
  }
12793
12837
  if (this.getParentPosition(data) === 'FFType3') {
12794
12838
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : 0;
@@ -12796,98 +12840,86 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
12796
12840
  this.x2 = this.x1 + (data.milestoneChild ? 4 : 8);
12797
12841
  this.x3 = data.parentEndPoint - data.childEndPoint + (data.milestoneChild ? 16 : 10);
12798
12842
  this.x4 = data.parentEndPoint + (data.milestoneParent ? -1 : 0);
12799
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12800
- this.y2 = heightValue + this.taskLineValue + (this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
12801
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12802
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12803
- this.connectorLinePath = "M " + this.x2 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x2 + this.x3) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x2 + this.x3) + " " + (this.y1 + this.y2) +
12843
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? childOverlapTopValue : (data.childIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1)));
12844
+ this.y2 = heightValue + this.taskLineValue + borderTopWidth - this.lineStroke + (this.parent.renderBaseline ? (data.milestoneParent && !(data.milestoneChild) ? 10 : data.milestoneChild && !(data.milestoneParent) ? -11 : 0) : 0);
12845
+ this.connectorLinePath = "M " + this.x2 + " " + (this.y1) + " L " + (this.x2 + this.x3) + " " + (this.y1) + " L " + (this.x2 + this.x3) + " " + (this.y1 + this.y2) +
12804
12846
  " L " + this.x4 + " " + (this.y1 + this.y2);
12805
- this.arrowPath = "M " + this.x1 + " " + (this.y1 + this.manualChild) +
12806
- " L " + (this.x1 + 8) + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
12807
- " L " + (this.x1 + 8) + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
12847
+ this.arrowPath = "M " + this.x1 + " " + (this.y1) +
12848
+ " L " + (this.x1 + 8) + " " + (this.y1 - (4 + this.lineStroke)) +
12849
+ " L " + (this.x1 + 8) + " " + (this.y1 + 4 + this.lineStroke) + " Z";
12808
12850
  }
12809
12851
  if (this.getParentPosition(data) === 'FFType4') {
12810
12852
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : 0;
12811
12853
  this.x1 = data.parentEndPoint;
12812
12854
  this.x2 = data.childEndPoint + (data.milestoneChild ? 7 : 8);
12813
12855
  this.x3 = this.x2 + (data.milestoneChild ? 12 : 11);
12814
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12815
- this.y2 = heightValue + this.taskLineValue + +(this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
12816
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12817
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12818
- this.connectorLinePath = "M " + this.x2 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x3 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x3 + " " + (this.y1 + this.y2) +
12856
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? childOverlapTopValue : (data.childIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1)));
12857
+ this.y2 = heightValue + this.taskLineValue + borderTopWidth + (this.parent.renderBaseline ? (data.milestoneParent && !(data.milestoneChild) ? 10 : data.milestoneChild && !(data.milestoneParent) ? -12 : 0) : 0) - this.lineStroke + 1;
12858
+ this.connectorLinePath = "M " + this.x2 + " " + (this.y1) + " L " + this.x3 + " " + (this.y1) + " L " + this.x3 + " " + (this.y1 + this.y2) +
12819
12859
  " L " + this.x1 + " " + (this.y1 + this.y2);
12820
- this.arrowPath = "M " + (this.x2 - 8) + " " + (this.y1 + this.manualChild) +
12821
- " L " + this.x2 + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
12822
- " L " + this.x2 + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
12860
+ this.arrowPath = "M " + (this.x2 - 8) + " " + (this.y1) +
12861
+ " L " + this.x2 + " " + (this.y1 - (4 + this.lineStroke)) +
12862
+ " L " + this.x2 + " " + (this.y1 + 4 + this.lineStroke) + " Z";
12823
12863
  }
12824
12864
  if (this.getParentPosition(data) === 'SFType4') {
12825
12865
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : (data.milestoneChild ? -1 : 0);
12826
- this.point1 = heightValue - this.getconnectorLineGap(data) + this.taskLineValue;
12827
- this.point2 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild));
12866
+ this.point1 = (this.taskLineValue + heightValue + borderTopWidth - this.getconnectorLineGap(data) - (this.lineStroke - 1));
12867
+ this.point2 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? childOverlapTopValue : (data.childIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue));
12828
12868
  this.x1 = data.parentLeft - 10;
12829
12869
  this.x2 = this.x1 + ((data.childEndPoint - data.parentLeft) + 18);
12830
12870
  this.x3 = this.x2 + (data.milestoneChild ? 16 : 11);
12831
- this.y1 = this.point2 + (data.milestoneChild ? 1 : 0) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12832
- this.y2 = this.y1 + this.point1 + (this.parent.renderBaseline ? (data.milestoneChild ? -11 : 0) : 0);
12833
- this.y3 = this.getconnectorLineGap(data) + (this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
12871
+ this.y1 = this.point2 + (data.milestoneChild ? 2 : 0) + (this.parent.renderBaseline ? (data.milestoneParent ? -5 : 0) : 0);
12872
+ this.y2 = this.y1 + this.point1 + (this.parent.renderBaseline ? (data.milestoneChild && !(data.milestoneParent) ? -9 : data.milestoneParent && !(data.milestoneChild) ? 9 : 0) : 0);
12873
+ this.y3 = this.getconnectorLineGap(data);
12834
12874
  this.y4 = this.y2 - (this.y2 % data.rowHeight);
12835
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12836
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12837
- this.connectorLinePath = "M " + this.x2 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x3 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x3 + " " + this.y4 + " L " + this.x1 + " " + this.y4 +
12875
+ this.connectorLinePath = "M " + this.x2 + " " + (this.y1) + " L " + this.x3 + " " + (this.y1) + " L " + this.x3 + " " + this.y4 + " L " + this.x1 + " " + this.y4 +
12838
12876
  " L " + this.x1 + " " + (this.y2 + this.y3) + " L " + (this.x1 + 11) + " " + (this.y2 + this.y3);
12839
- this.arrowPath = "M " + (this.x2 - 8) + " " + (this.y1 + this.manualChild) +
12840
- " L " + this.x2 + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
12841
- " L " + this.x2 + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
12877
+ this.arrowPath = "M " + (this.x2 - 8) + " " + (this.y1) +
12878
+ " L " + this.x2 + " " + (this.y1 - (4 + this.lineStroke)) +
12879
+ " L " + this.x2 + " " + (this.y1 + 4 + this.lineStroke) + " Z";
12842
12880
  }
12843
12881
  if (this.getParentPosition(data) === 'SFType3') {
12844
12882
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : 0;
12845
- this.point1 = (data.parentLeft - (data.childEndPoint + (data.milestoneParent ? 25 : 20))) + 1 + (this.parent.renderBaseline ? (data.milestoneParent ? 5 : 0) : 0);
12846
- this.point2 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild));
12883
+ this.point1 = (data.parentLeft - (data.childEndPoint + (data.milestoneParent ? 23 : 20))) + 1;
12884
+ this.point2 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? childOverlapTopValue : (data.childIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1)));
12847
12885
  this.x1 = data.childEndPoint;
12848
12886
  this.x2 = this.x1 + (data.milestoneChild ? 9 : 8);
12849
12887
  this.x3 = this.x2 + (data.milestoneChild ? 17 : 11);
12850
- this.y1 = this.point2 + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12851
- this.y2 = this.y1 + heightValue + this.taskLineValue + (this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
12852
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12853
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12854
- this.connectorLinePath = "M " + this.x2 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x3 + " " + (this.y1 + this.manualParent + this.manualChild) +
12888
+ this.y1 = this.point2;
12889
+ this.y2 = this.y1 + heightValue + borderTopWidth - (this.lineStroke - 1) + this.taskLineValue + (this.parent.renderBaseline ? (data.milestoneChild && !(data.milestoneParent) ? -12 : data.milestoneParent && !(data.milestoneChild) ? 10 : 0) : 0);
12890
+ this.connectorLinePath = "M " + this.x2 + " " + (this.y1) + " L " + this.x3 + " " + (this.y1) +
12855
12891
  " L " + this.x3 + " " + this.y2 + " L " + (this.x3 + this.point1) + " " + this.y2;
12856
- this.arrowPath = "M " + (this.x2 - 8) + " " + (this.y1 + this.manualChild) +
12857
- " L " + this.x2 + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
12858
- " L " + this.x2 + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
12892
+ this.arrowPath = "M " + (this.x2 - 8) + " " + (this.y1) +
12893
+ " L " + this.x2 + " " + (this.y1 - (4 + this.lineStroke)) +
12894
+ " L " + this.x2 + " " + (this.y1 + 4 + this.lineStroke) + " Z";
12859
12895
  }
12860
12896
  if (this.getParentPosition(data) === 'SFType1') {
12861
12897
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : data.milestoneChild ? 1 : 0;
12862
- this.point1 = heightValue - this.getconnectorLineGap(data) + this.taskLineValue;
12898
+ this.point1 = heightValue + borderTopWidth - this.getconnectorLineGap(data) + this.taskLineValue - this.lineStroke;
12863
12899
  this.point2 = this.getconnectorLineGap(data);
12864
12900
  this.x1 = data.parentLeft - 10;
12865
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + +((data.isManualParent && data.isManualChild) ? -10 : 0);
12901
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue));
12866
12902
  this.x2 = (data.childEndPoint - data.parentLeft) + 31;
12867
12903
  this.y2 = this.y1 + this.point1;
12868
12904
  this.x3 = (data.childEndPoint - data.parentLeft) + 18;
12869
12905
  this.y3 = this.y2 - (this.y2 % data.rowHeight);
12870
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12871
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12872
- this.connectorLinePath = "M " + (this.x1 + 11) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + this.y3 +
12906
+ this.connectorLinePath = "M " + (this.x1 + 11) + " " + (this.y1) + " L " + this.x1 + " " + (this.y1) + " L " + this.x1 + " " + this.y3 +
12873
12907
  " L " + (this.x1 + this.x2) + " " + this.y3 + " L " + (this.x1 + this.x2) + " " + (this.y2 + this.point2) + " L " + (this.x1 + this.x3) + " " + (this.y2 + this.point2);
12874
- this.arrowPath = "M " + (this.x1 + this.x3 - 8) + " " + (this.y2 + this.point2 + this.manualChild) +
12875
- " L " + (this.x1 + this.x3) + " " + (this.y2 + this.point2 - (4 + this.lineStroke) + this.manualChild) +
12876
- " L " + (this.x1 + this.x3) + " " + (this.y2 + this.point2 + 4 + this.lineStroke + this.manualChild) + " Z";
12908
+ this.arrowPath = "M " + (this.x1 + this.x3 - 8) + " " + (this.y2 + this.point2) +
12909
+ " L " + (this.x1 + this.x3) + " " + (this.y2 + this.point2 - (4 + this.lineStroke)) +
12910
+ " L " + (this.x1 + this.x3) + " " + (this.y2 + this.point2 + 4 + this.lineStroke) + " Z";
12877
12911
  }
12878
12912
  if (this.getParentPosition(data) === 'SFType2') {
12879
12913
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : 0;
12880
12914
  this.x1 = data.childEndPoint;
12881
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + +((data.isManualParent && data.isManualChild) ? -10 : 0);
12915
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1)));
12882
12916
  this.x2 = (data.parentLeft - data.childEndPoint);
12883
- this.y2 = this.y1 + heightValue + this.taskLineValue;
12884
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12885
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12886
- this.connectorLinePath = "M " + (this.x1 + this.x2 + 1) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x1 + this.x2 - 10) + " " + (this.y1 + this.manualParent + this.manualChild) +
12917
+ this.y2 = this.y1 + heightValue + this.taskLineValue + borderTopWidth - this.lineStroke;
12918
+ this.connectorLinePath = "M " + (this.x1 + this.x2 + 1) + " " + (this.y1) + " L " + (this.x1 + this.x2 - 10) + " " + (this.y1) +
12887
12919
  " L " + (this.x1 + this.x2 - 10) + " " + this.y2 + " L " + (this.x1 + 8) + " " + this.y2;
12888
- this.arrowPath = "M " + this.x1 + " " + (this.y2 + this.manualChild) +
12889
- " L " + (this.x1 + 8) + " " + (this.y2 - (4 + this.lineStroke) + this.manualChild) +
12890
- " L " + (this.x1 + 8) + " " + (this.y2 + 4 + this.lineStroke + this.manualChild) + " Z";
12920
+ this.arrowPath = "M " + this.x1 + " " + (this.y2) +
12921
+ " L " + (this.x1 + 8) + " " + (this.y2 - (4 + this.lineStroke)) +
12922
+ " L " + (this.x1 + 8) + " " + (this.y2 + 4 + this.lineStroke) + " Z";
12891
12923
  }
12892
12924
  this.connectorPath.setAttribute("d", this.connectorLinePath);
12893
12925
  this.arrowlinePath.setAttribute("d", this.arrowPath);
@@ -13897,7 +13929,6 @@ var FocusModule = /** @__PURE__ @class */ (function () {
13897
13929
  if (ganttObj.editModule.dialogModule.dialogObj && getValue('dialogOpen', ganttObj.editModule.dialogModule.dialogObj)) {
13898
13930
  return;
13899
13931
  }
13900
- ganttObj.editModule.cellEditModule.isCellEdit = false;
13901
13932
  ganttObj.treeGrid.grid.saveCell();
13902
13933
  var focussedElement = ganttObj.element.querySelector('.e-treegrid');
13903
13934
  focussedElement.focus();
@@ -16679,6 +16710,9 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
16679
16710
  }
16680
16711
  else {
16681
16712
  this.editModule.addRecord(data, rowPosition, rowIndex);
16713
+ if (rowPosition === 'Above' || rowPosition === 'Below' || rowPosition === 'Child') {
16714
+ this.currentSelection = data;
16715
+ }
16682
16716
  }
16683
16717
  }
16684
16718
  };
@@ -19771,7 +19805,16 @@ var TaskbarEdit = /** @__PURE__ @class */ (function (_super) {
19771
19805
  }
19772
19806
  else {
19773
19807
  if (this.mouseMoveX < (item.left + segment.left)) {
19774
- segment.width = this.parent.perDayWidth;
19808
+ var segmentWidth = (this.parent.timelineModule.isSingleTier &&
19809
+ (this.parent.timelineModule.customTimelineSettings.bottomTier.unit === "Hour" ||
19810
+ this.parent.timelineModule.customTimelineSettings.topTier.unit === "Hour" ||
19811
+ this.parent.timelineModule.customTimelineSettings.bottomTier.unit === "Minutes" ||
19812
+ this.parent.timelineModule.customTimelineSettings.topTier.unit === "Minutes")) ||
19813
+ (this.parent.timelineModule.customTimelineSettings.bottomTier.unit === "Hour" ||
19814
+ this.parent.timelineModule.customTimelineSettings.bottomTier.unit === "Minutes") ?
19815
+ this.parent.timelineModule.customTimelineSettings.timelineUnitSize :
19816
+ this.parent.perDayWidth;
19817
+ segment.width = segmentWidth;
19775
19818
  }
19776
19819
  }
19777
19820
  }
@@ -27135,7 +27178,7 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
27135
27178
  /* tslint:disable-next-line */
27136
27179
  var query = _this.parent.query instanceof Query ? _this.parent.query : new Query();
27137
27180
  var adaptor = data_2.adaptor;
27138
- if (!(adaptor instanceof WebApiAdaptor && adaptor instanceof ODataAdaptor) || data_2.dataSource.batchUrl) {
27181
+ if (!(adaptor instanceof WebApiAdaptor && adaptor instanceof ODataAdaptor && adaptor instanceof ODataV4Adaptor) || data_2.dataSource.batchUrl) {
27139
27182
  /* tslint:disable-next-line */
27140
27183
  var crud = data_2.saveChanges(updatedData_2, _this.parent.taskFields.id, null, query);
27141
27184
  crud.then(function (e) {
@@ -27187,6 +27230,7 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
27187
27230
  var data_3 = [];
27188
27231
  data_3.push(args.data);
27189
27232
  _this.updateRealDataSource(data_3, rowPosition);
27233
+ _this.parent.currentSelection = cAddedRecord_1[0].ganttProperties;
27190
27234
  }
27191
27235
  }
27192
27236
  }
@@ -27269,6 +27313,9 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
27269
27313
  else if (ganttColumns[i].field === 'taskType') {
27270
27314
  tempRecord[fieldName] = this.parent.taskType;
27271
27315
  }
27316
+ else if (ganttColumns[i].field === taskSettingsFields.milestone) {
27317
+ tempRecord[fieldName] = null;
27318
+ }
27272
27319
  else {
27273
27320
  tempRecord[this.parent.ganttColumns[i].field] = '';
27274
27321
  }
@@ -28507,7 +28554,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
28507
28554
  this.parent.off('columnMenuOpen', this.columnMenuOpen);
28508
28555
  };
28509
28556
  /**
28510
- * To destroy module
28557
+ * This method is used to destroy the filter module. When called, it performs any necessary cleanup operations related to the filter module.
28511
28558
  *
28512
28559
  * @returns {void} .
28513
28560
  */
@@ -28805,6 +28852,10 @@ var Selection$1 = /** @__PURE__ @class */ (function () {
28805
28852
  Selection$$1.prototype.selectRow = function (index, isToggle, isPreventFocus) {
28806
28853
  var ganttRow = [].slice.call(this.parent.ganttChartModule.chartBodyContent.querySelector('tbody').children);
28807
28854
  // eslint-disable-next-line
28855
+ if (this.parent.enableVirtualization && this.parent.treeGridModule.addedRecord) {
28856
+ index = this.parent.flatData.indexOf(this.parent.currentViewData[index]);
28857
+ this.parent.treeGridModule.addedRecord = false;
28858
+ }
28808
28859
  var selectedRow = ganttRow.filter(function (e) { return parseInt(e.getAttribute('aria-rowindex'), 0) === index; })[0];
28809
28860
  var condition;
28810
28861
  if (index === -1 || isNullOrUndefined(selectedRow) || this.parent.selectionSettings.mode === 'Cell') {
@@ -30674,7 +30725,7 @@ var CriticalPath = /** @__PURE__ @class */ (function () {
30674
30725
  }
30675
30726
  var predecessorLength = flatRecords[index].ganttProperties.predecessor;
30676
30727
  var noSlackValue = 0 + ' ' + flatRecords[index].ganttProperties.durationUnit;
30677
- for (var i = 0; i < predecessorLength.length; i++) {
30728
+ for (var i = predecessorLength.length - 1; i >= 0; i--) {
30678
30729
  var toID = void 0;
30679
30730
  if (this.parent.viewType === 'ProjectView') {
30680
30731
  toID = this.parent.ids.indexOf(predecessorLength[i].to);
@@ -30685,8 +30736,19 @@ var CriticalPath = /** @__PURE__ @class */ (function () {
30685
30736
  var dateDifference = void 0;
30686
30737
  var currentData = flatRecords[index].ganttProperties;
30687
30738
  if (predecessorLength[i].type === 'FS') {
30688
- /* eslint-disable-next-line */
30689
- dateDifference = this.parent.dataOperation.getDuration(currentData.endDate, flatRecords[toID].ganttProperties.startDate, currentData.durationUnit, currentData.isAutoSchedule, currentData.isMilestone);
30739
+ if (predecessorLength[i].to != currentData.taskId.toString() || this.parent.viewType === 'ResourceView') {
30740
+ /* eslint-disable-next-line */
30741
+ dateDifference = this.parent.dataOperation.getDuration(currentData.endDate, flatRecords[toID].ganttProperties.startDate, currentData.durationUnit, currentData.isAutoSchedule, currentData.isMilestone);
30742
+ }
30743
+ else {
30744
+ toID = this.parent.ids.indexOf(predecessorLength[i].from);
30745
+ /* eslint-disable-next-line */
30746
+ dateDifference = this.parent.dataOperation.getDuration(flatRecords[toID].ganttProperties.endDate, currentData.startDate, currentData.durationUnit, currentData.isAutoSchedule, currentData.isMilestone);
30747
+ if (dateDifference === 0 && index !== toID && flatRecords[index].slack == noSlackValue) {
30748
+ flatRecords[toID].slack = flatRecords[index].slack;
30749
+ flatRecords[toID].ganttProperties.slack = flatRecords[index].slack;
30750
+ }
30751
+ }
30690
30752
  if (dateDifference === 0 && index !== toID && flatRecords[index].slack !== noSlackValue) {
30691
30753
  flatRecords[index].slack = flatRecords[toID].slack;
30692
30754
  flatRecords[index].ganttProperties.slack = flatRecords[toID].slack;
@@ -30959,7 +31021,7 @@ var ContextMenu$2 = /** @__PURE__ @class */ (function () {
30959
31021
  switch (this.item) {
30960
31022
  case 'TaskInformation':
30961
31023
  if (!isNullOrUndefined(this.rowData)) {
30962
- if (isNaN(Number(this.rowData.ganttProperties.rowUniqueID))) {
31024
+ if (typeof this.rowData.ganttProperties.taskId == "string") {
30963
31025
  this.parent.openEditDialog(this.rowData.ganttProperties.rowUniqueID);
30964
31026
  }
30965
31027
  else {