@syncfusion/ej2-gantt 19.4.56 → 20.1.47

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 (80) hide show
  1. package/CHANGELOG.md +10 -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 +167 -70
  5. package/dist/es6/ej2-gantt.es2015.js.map +1 -1
  6. package/dist/es6/ej2-gantt.es5.js +185 -78
  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 +18 -18
  12. package/src/gantt/actions/cell-edit.js +2 -1
  13. package/src/gantt/actions/dialog-edit.js +2 -1
  14. package/src/gantt/actions/edit.js +11 -2
  15. package/src/gantt/actions/rowdragdrop.js +37 -15
  16. package/src/gantt/base/date-processor.js +0 -1
  17. package/src/gantt/base/gantt-chart.js +9 -4
  18. package/src/gantt/base/gantt.js +2 -2
  19. package/src/gantt/base/splitter.js +1 -0
  20. package/src/gantt/base/tree-grid.js +3 -1
  21. package/src/gantt/renderer/chart-rows.js +36 -24
  22. package/src/gantt/renderer/connector-line.js +22 -18
  23. package/src/gantt/renderer/event-marker.js +1 -0
  24. package/src/gantt/renderer/nonworking-day.js +13 -6
  25. package/src/gantt/renderer/timeline.d.ts +1 -0
  26. package/src/gantt/renderer/timeline.js +37 -1
  27. package/src/gantt/renderer/tooltip.js +10 -3
  28. package/styles/bootstrap-dark.css +37 -10
  29. package/styles/bootstrap.css +37 -10
  30. package/styles/bootstrap4.css +37 -10
  31. package/styles/bootstrap5-dark.css +53 -19
  32. package/styles/bootstrap5.css +53 -19
  33. package/styles/fabric-dark.css +34 -7
  34. package/styles/fabric.css +37 -10
  35. package/styles/fluent-dark.css +1942 -0
  36. package/styles/fluent-dark.scss +1 -0
  37. package/styles/fluent.css +1942 -0
  38. package/styles/fluent.scss +1 -0
  39. package/styles/gantt/_bootstrap-dark-definition.scss +10 -2
  40. package/styles/gantt/_bootstrap-definition.scss +11 -3
  41. package/styles/gantt/_bootstrap4-definition.scss +10 -2
  42. package/styles/gantt/_bootstrap5-definition.scss +17 -9
  43. package/styles/gantt/_fabric-dark-definition.scss +8 -0
  44. package/styles/gantt/_fabric-definition.scss +10 -2
  45. package/styles/gantt/_fluent-dark-definition.scss +1 -0
  46. package/styles/gantt/_fluent-definition.scss +21 -13
  47. package/styles/gantt/_highcontrast-definition.scss +9 -1
  48. package/styles/gantt/_highcontrast-light-definition.scss +9 -1
  49. package/styles/gantt/_layout.scss +53 -2
  50. package/styles/gantt/_material-dark-definition.scss +9 -1
  51. package/styles/gantt/_material-definition.scss +10 -2
  52. package/styles/gantt/_tailwind-definition.scss +13 -5
  53. package/styles/gantt/_theme.scss +2 -5
  54. package/styles/gantt/bootstrap-dark.css +37 -10
  55. package/styles/gantt/bootstrap.css +37 -10
  56. package/styles/gantt/bootstrap4.css +37 -10
  57. package/styles/gantt/bootstrap5-dark.css +53 -19
  58. package/styles/gantt/bootstrap5.css +53 -19
  59. package/styles/gantt/fabric-dark.css +34 -7
  60. package/styles/gantt/fabric.css +37 -10
  61. package/styles/gantt/fluent-dark.css +1942 -0
  62. package/styles/gantt/fluent-dark.scss +22 -0
  63. package/styles/gantt/fluent.css +1942 -0
  64. package/styles/gantt/fluent.scss +22 -0
  65. package/styles/gantt/highcontrast-light.css +34 -7
  66. package/styles/gantt/highcontrast.css +34 -7
  67. package/styles/gantt/icons/_fluent-dark.scss +1 -0
  68. package/styles/gantt/icons/_fluent.scss +1 -1
  69. package/styles/gantt/icons/_tailwind-dark.scss +28 -29
  70. package/styles/gantt/icons/_tailwind.scss +26 -27
  71. package/styles/gantt/material-dark.css +37 -10
  72. package/styles/gantt/material.css +37 -10
  73. package/styles/gantt/tailwind-dark.css +70 -99
  74. package/styles/gantt/tailwind.css +70 -99
  75. package/styles/highcontrast-light.css +34 -7
  76. package/styles/highcontrast.css +34 -7
  77. package/styles/material-dark.css +37 -10
  78. package/styles/material.css +37 -10
  79. package/styles/tailwind-dark.css +70 -99
  80. package/styles/tailwind.css +70 -99
@@ -115,7 +115,7 @@ var ConnectorLine = /** @class */ (function () {
115
115
  for (var i = 0; i < childNodes.length; i++) {
116
116
  var innerChild = childNodes[i].childNodes;
117
117
  for (var j = 0; j < innerChild.length; j++) {
118
- var ariaString = this.parent.connectorLineModule.generateAriaLabel(ariaConnector[i]);
118
+ var ariaString = 'Connector Line ' + this.parent.connectorLineModule.generateAriaLabel(ariaConnector[i]);
119
119
  innerChild[j].setAttribute('aria-label', ariaString);
120
120
  }
121
121
  }
@@ -372,7 +372,11 @@ var ConnectorLine = /** @class */ (function () {
372
372
  var connectorContainer = '';
373
373
  var isVirtual = this.parent.virtualScrollModule && this.parent.enableVirtualization;
374
374
  var connectorLine = this.getPosition(data, this.getParentPosition(data), height);
375
- var heightValue = isVirtual ? connectorLine.height : height;
375
+ var isMilestoneValue = 0;
376
+ if (this.parent.renderBaseline) {
377
+ isMilestoneValue = (data.milestoneParent && data.milestoneChild) ? 0 : data.milestoneParent ? -5 : data.milestoneChild ? 5 : 0;
378
+ }
379
+ var heightValue = isVirtual ? connectorLine.height : (height + isMilestoneValue);
376
380
  if (this.getParentPosition(data)) {
377
381
  connectorContainer = '<div id="ConnectorLine' + data.connectorLineId + '" style="background-color:black">';
378
382
  var div = '<div class="' + cls.connectorLineContainer +
@@ -400,7 +404,7 @@ var ConnectorLine = /** @class */ (function () {
400
404
  this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
401
405
  if (this.getParentPosition(data) === 'FSType1') {
402
406
  div = div + 'left:' + (data.parentLeft + data.parentWidth) + 'px;top:' + (isVirtual ? connectorLine.top :
403
- ((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;' +
407
+ ((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
404
408
  'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FSType1">';
405
409
  div = div + eLine;
406
410
  div = div + 'left:' + (isMilestoneParent ? -1 : 0) + 'px;width:' + (isMilestoneParent ?
@@ -421,7 +425,7 @@ var ConnectorLine = /** @class */ (function () {
421
425
  }
422
426
  if (this.getParentPosition(data) === 'FSType2') {
423
427
  div = div + 'left:' + data.parentLeft + 'px;top:' + (isVirtual ? connectorLine.top : ((data.parentIndex * data.rowHeight) +
424
- this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;' +
428
+ this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
425
429
  'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FSType2">';
426
430
  div = div + eLine;
427
431
  div = div + 'left:' + (isMilestoneParent ? data.parentWidth - 1 : data.parentWidth) + 'px;width:' +
@@ -452,7 +456,7 @@ var ConnectorLine = /** @class */ (function () {
452
456
  }
453
457
  if (this.getParentPosition(data) === 'FSType3') {
454
458
  div = div + 'left:' + (data.childLeft - 20) + 'px;top:' + (isVirtual ? connectorLine.top :
455
- ((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1))) + 'px;' +
459
+ ((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
456
460
  'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FSType3">';
457
461
  div = div + rightArrow;
458
462
  div = div + 'left:10px;' + this.getBorderStyles('left', 10) +
@@ -482,7 +486,7 @@ var ConnectorLine = /** @class */ (function () {
482
486
  }
483
487
  if (this.getParentPosition(data) === 'FSType4') {
484
488
  div = div + 'left:' + (data.parentLeft + data.parentWidth) + 'px;top:' + (isVirtual ? connectorLine.top :
485
- ((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;' +
489
+ ((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
486
490
  'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FSType4">';
487
491
  div = div + rightArrow;
488
492
  div = div + 'left:' + (data.childLeft - (data.parentLeft + data.parentWidth + 10)) + 'px;' +
@@ -508,7 +512,7 @@ var ConnectorLine = /** @class */ (function () {
508
512
  }
509
513
  if (this.getParentPosition(data) === 'SSType4') {
510
514
  div = div + 'left:' + (data.parentLeft - 10) + 'px;top:' + (isVirtual ? connectorLine.top :
511
- ((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;' +
515
+ ((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
512
516
  'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SSType4">';
513
517
  div = div + rightArrow;
514
518
  div = div + 'left:' + (data.childLeft - data.parentLeft) + 'px;' + duplicateStingTwo;
@@ -521,7 +525,7 @@ var ConnectorLine = /** @class */ (function () {
521
525
  }
522
526
  if (this.getParentPosition(data) === 'SSType3') {
523
527
  div = div + 'left:' + (data.childLeft - 20) + 'px;top:' + (isVirtual ? connectorLine.top :
524
- ((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;' +
528
+ ((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
525
529
  'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SSType3">';
526
530
  div = div + rightArrow;
527
531
  div = div + 'left:10px;' + duplicateStingTwo;
@@ -534,7 +538,7 @@ var ConnectorLine = /** @class */ (function () {
534
538
  }
535
539
  if (this.getParentPosition(data) === 'SSType2') {
536
540
  div = div + 'left:' + setInnerElementLeftSSType2 + 'px;top:' + (isVirtual ? connectorLine.top :
537
- ((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1))) + 'px;' +
541
+ ((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
538
542
  'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SSType2">';
539
543
  div = div + eLine;
540
544
  div = div + 'width:' + (setInnerChildWidthSSType2 + 1) + 'px;' +
@@ -555,7 +559,7 @@ var ConnectorLine = /** @class */ (function () {
555
559
  if (this.getParentPosition(data) === 'SSType1') {
556
560
  div = div + 'left:' + (data.childLeft - 20) + 'px;top:' + (isVirtual ? connectorLine.top :
557
561
  ((data.parentIndex * data.rowHeight) +
558
- this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1))) + 'px;' +
562
+ this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
559
563
  'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SSType1">';
560
564
  div = div + eLine;
561
565
  div = div + 'width:' + (data.parentLeft - data.childLeft + 21) + 'px;' +
@@ -572,7 +576,7 @@ var ConnectorLine = /** @class */ (function () {
572
576
  }
573
577
  if (this.getParentPosition(data) === 'FFType1') {
574
578
  div = div + 'left:' + (data.childLeft + data.childWidth) + 'px;top:' + (isVirtual ? connectorLine.top :
575
- ((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1))) + 'px;' +
579
+ ((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
576
580
  'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FFType1">';
577
581
  div = div + eLine;
578
582
  div = div + 'left:' + (isMilestoneParent ? (((data.parentLeft + data.parentWidth) -
@@ -596,7 +600,7 @@ var ConnectorLine = /** @class */ (function () {
596
600
  }
597
601
  if (this.getParentPosition(data) === 'FFType2') {
598
602
  div = div + 'left:' + (data.parentLeft + data.parentWidth) + 'px;top:' + (isVirtual ? connectorLine.top :
599
- ((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1))) + 'px;' +
603
+ ((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
600
604
  'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FFType2">';
601
605
  div = div + eLine;
602
606
  div = div + (isMilestoneParent ? 'left:-1px;' : '') + 'width:' +
@@ -622,7 +626,7 @@ var ConnectorLine = /** @class */ (function () {
622
626
  }
623
627
  if (this.getParentPosition(data) === 'FFType3') {
624
628
  div = div + 'left:' + (data.childLeft + data.childWidth) + 'px;top:' + (isVirtual ? connectorLine.top :
625
- ((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;' +
629
+ ((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
626
630
  'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FFType3">';
627
631
  div = div + duplicateStingOne;
628
632
  div = div + eLine;
@@ -645,7 +649,7 @@ var ConnectorLine = /** @class */ (function () {
645
649
  }
646
650
  if (this.getParentPosition(data) === 'FFType4') {
647
651
  div = div + 'left:' + (data.parentLeft + data.parentWidth) + 'px;top:' + (isVirtual ? connectorLine.top :
648
- ((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;' +
652
+ ((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
649
653
  'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FFType4">';
650
654
  div = div + leftArrow;
651
655
  div = div + ('left:' + ((data.childLeft + data.childWidth) -
@@ -674,7 +678,7 @@ var ConnectorLine = /** @class */ (function () {
674
678
  }
675
679
  if (this.getParentPosition(data) === 'SFType4') {
676
680
  div = div + 'left:' + (data.parentLeft - 10) + 'px;top:' + (isVirtual ? connectorLine.top :
677
- ((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;width:1px;' +
681
+ ((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;width:1px;' +
678
682
  'height:' + heightValue + 'px;position:absolute" data-connectortype="SFType4">';
679
683
  div = div + duplicateStingFour + 'top:' + (-5 - this.lineStroke + (this.lineStroke - 1)) + 'px;' +
680
684
  'border-bottom-width:' + (5 + this.lineStroke) +
@@ -702,7 +706,7 @@ var ConnectorLine = /** @class */ (function () {
702
706
  }
703
707
  if (this.getParentPosition(data) === 'SFType3') {
704
708
  div = div + 'left:' + (data.childLeft + data.childWidth) + 'px;top:' + (isVirtual ? connectorLine.top :
705
- ((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;' +
709
+ ((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
706
710
  'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SFType3">';
707
711
  div = div + duplicateStingOne;
708
712
  div = div + eLine;
@@ -720,7 +724,7 @@ var ConnectorLine = /** @class */ (function () {
720
724
  }
721
725
  if (this.getParentPosition(data) === 'SFType1') {
722
726
  div = div + 'left:' + (data.parentLeft - 10) + 'px;top:' + (isVirtual ? connectorLine.top :
723
- ((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;' +
727
+ ((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
724
728
  'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SFType1">';
725
729
  div = div + eLine;
726
730
  div = div + 'width:11px;' + this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
@@ -745,7 +749,7 @@ var ConnectorLine = /** @class */ (function () {
745
749
  }
746
750
  if (this.getParentPosition(data) === 'SFType2') {
747
751
  div = div + 'left:' + (data.childLeft + data.childWidth) + 'px;top:' + (isVirtual ? connectorLine.top :
748
- ((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1))) + 'px;' +
752
+ ((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
749
753
  'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SFType2">';
750
754
  div = div + eLine;
751
755
  div = div + 'left:' + (((data.parentLeft) - (data.childLeft + data.childWidth)) - 10) +
@@ -15,6 +15,7 @@ var EventMarker = /** @class */ (function () {
15
15
  this.eventMarkersContainer = createElement('div', {
16
16
  className: cls.eventMarkersContainer
17
17
  });
18
+ this.eventMarkersContainer.setAttribute("role", "EventMarker");
18
19
  this.parent.ganttChartModule.chartBodyContent.appendChild(this.eventMarkersContainer);
19
20
  }
20
21
  this.eventMarkersContainer.innerHTML = '';
@@ -1,4 +1,4 @@
1
- import { createElement, formatUnit, remove } from '@syncfusion/ej2-base';
1
+ import { createElement, formatUnit, remove, isNullOrUndefined } from '@syncfusion/ej2-base';
2
2
  import * as cls from '../base/css-constants';
3
3
  var NonWorkingDay = /** @class */ (function () {
4
4
  function NonWorkingDay(gantt) {
@@ -17,6 +17,7 @@ var NonWorkingDay = /** @class */ (function () {
17
17
  this.nonworkingContainer = createElement('div', {
18
18
  className: cls.nonworkingContainer
19
19
  });
20
+ this.nonworkingContainer.setAttribute("role", "NonWorkingDays");
20
21
  this.parent.ganttChartModule.chartBodyContent.appendChild(this.nonworkingContainer);
21
22
  }
22
23
  };
@@ -54,8 +55,11 @@ var NonWorkingDay = /** @class */ (function () {
54
55
  var toDate;
55
56
  var container = createElement('div');
56
57
  var height = this.parent.contentHeight;
57
- var scrollElement = this.parent.ganttChartModule.scrollElement;
58
- var viewportHeight = parseInt(scrollElement.style.height, 10);
58
+ var toolbarHeight = 0;
59
+ if (!isNullOrUndefined(this.parent.toolbarModule)) {
60
+ toolbarHeight = this.parent.toolbarModule.element.offsetHeight;
61
+ }
62
+ var viewportHeight = this.parent.ganttHeight - toolbarHeight - this.parent.ganttChartModule.chartTimelineContainer.offsetHeight;
59
63
  for (var i = 0; i < this.parent.holidays.length; i++) {
60
64
  if (this.parent.holidays[i].from && this.parent.holidays[i].to) {
61
65
  fromDate = this.parent.dateValidationModule.getDateFromFormat(this.parent.holidays[i].from);
@@ -148,9 +152,12 @@ var NonWorkingDay = /** @class */ (function () {
148
152
  return container;
149
153
  };
150
154
  NonWorkingDay.prototype.updateHolidayLabelHeight = function () {
151
- var height = this.parent.contentHeight;
152
- var scrollElement = this.parent.ganttChartModule.scrollElement;
153
- var viewportHeight = parseInt(scrollElement.style.height, 10);
155
+ var height = this.parent.getContentHeight();
156
+ var toolbarHeight = 0;
157
+ if (!isNullOrUndefined(this.parent.toolbarModule) && !isNullOrUndefined(this.parent.toolbarModule.element)) {
158
+ toolbarHeight = this.parent.toolbarModule.element.offsetHeight;
159
+ }
160
+ var viewportHeight = this.parent.ganttHeight - toolbarHeight - this.parent.ganttChartModule.chartTimelineContainer.offsetHeight;
154
161
  var top = (viewportHeight < height) ? viewportHeight / 2 : height / 2;
155
162
  var labels = this.holidayContainer.querySelectorAll('.' + cls.holidayLabel);
156
163
  for (var i = 0; i < labels.length; i++) {
@@ -212,6 +212,7 @@ export declare class Timeline {
212
212
  * @private
213
213
  */
214
214
  private createTimelineTemplate;
215
+ updateTimelineAfterZooming(endDate: Date, resized: boolean): void;
215
216
  private getTimelineRoundOffEndDate;
216
217
  /**
217
218
  *
@@ -843,6 +843,40 @@ var Timeline = /** @class */ (function () {
843
843
  } while ((startDate < endDate));
844
844
  return parentTh;
845
845
  };
846
+ Timeline.prototype.updateTimelineAfterZooming = function (endDate, resized) {
847
+ var timeDiff;
848
+ var perDayWidth;
849
+ var totWidth;
850
+ var contentElement = document.getElementsByClassName('e-chart-scroll-container e-content')[0];
851
+ if (!isNullOrUndefined(contentElement)) {
852
+ var contentWidth = contentElement['offsetWidth'];
853
+ var contentHeight = contentElement['offsetHeight'];
854
+ var scrollHeight = document.getElementsByClassName('e-chart-rows-container')[0]['offsetHeight'];
855
+ timeDiff = Math.abs(this.timelineStartDate.getTime() - endDate.getTime());
856
+ timeDiff = timeDiff / (1000 * 3600 * 24);
857
+ if (this.bottomTier === 'None') {
858
+ perDayWidth = this.getPerDayWidth(this.customTimelineSettings.timelineUnitSize, this.customTimelineSettings.topTier.count, this.topTier);
859
+ }
860
+ else {
861
+ perDayWidth = this.getPerDayWidth(this.customTimelineSettings.timelineUnitSize, this.customTimelineSettings.bottomTier.count, this.bottomTier);
862
+ }
863
+ if (contentHeight < scrollHeight) {
864
+ totWidth = (perDayWidth * timeDiff) + 17;
865
+ }
866
+ else {
867
+ totWidth = (perDayWidth * timeDiff);
868
+ }
869
+ if (contentWidth >= totWidth) {
870
+ var widthDiff = contentWidth - totWidth;
871
+ widthDiff = Math.round(widthDiff / perDayWidth);
872
+ endDate.setDate(endDate.getDate() + widthDiff);
873
+ this.parent.timelineModule.timelineEndDate = endDate;
874
+ if (resized) {
875
+ this.parent.updateProjectDates(this.timelineStartDate, this.timelineEndDate, this.parent.isTimelineRoundOff);
876
+ }
877
+ }
878
+ }
879
+ };
846
880
  Timeline.prototype.getTimelineRoundOffEndDate = function (date) {
847
881
  var tierMode = this.topTier === 'None' ? this.bottomTier : this.topTier;
848
882
  var endDate = new Date(date.toString());
@@ -857,6 +891,9 @@ var Timeline = /** @class */ (function () {
857
891
  endDate.setHours(24, 0, 0, 0);
858
892
  }
859
893
  }
894
+ if (this.isZooming || this.parent.isLoad) {
895
+ this.updateTimelineAfterZooming(endDate, false);
896
+ }
860
897
  return endDate;
861
898
  };
862
899
  /**
@@ -926,7 +963,6 @@ var Timeline = /** @class */ (function () {
926
963
  }
927
964
  return increment;
928
965
  };
929
- ;
930
966
  /**
931
967
  * Method to find header cell was weekend or not
932
968
  *
@@ -174,6 +174,7 @@ var Tooltip = /** @class */ (function () {
174
174
  * @returns {void} .
175
175
  */
176
176
  Tooltip.prototype.updateTooltipPosition = function (args) {
177
+ args.element.style.visibility = 'visible';
177
178
  if (isNullOrUndefined(this.tooltipMouseEvent) || args.target.classList.contains('e-notes-info')) {
178
179
  return;
179
180
  }
@@ -203,7 +204,6 @@ var Tooltip = /** @class */ (function () {
203
204
  tooltipPositionY = tooltipPositionY + 10;
204
205
  }
205
206
  args.element.style.top = tooltipPositionY + 'px';
206
- args.element.style.visibility = 'visible';
207
207
  };
208
208
  /**
209
209
  * Method to get mouse pointor position
@@ -245,9 +245,16 @@ var Tooltip = /** @class */ (function () {
245
245
  switch (elementType) {
246
246
  case 'milestone':
247
247
  {
248
- var sDate = !isNullOrUndefined(data.startDate) ? '<tr><td class = "e-gantt-tooltip-label"> Date</td><td>:</td>' +
248
+ var milestoneStartDate = void 0;
249
+ if (args.target.className.includes('e-baseline-gantt-milestone') && !isNullOrUndefined(data.baselineStartDate)) {
250
+ milestoneStartDate = data.baselineStartDate;
251
+ }
252
+ else if (!isNullOrUndefined(data.startDate)) {
253
+ milestoneStartDate = data.startDate;
254
+ }
255
+ var sDate = !isNullOrUndefined(milestoneStartDate) ? '<tr><td class = "e-gantt-tooltip-label"> Date</td><td>:</td>' +
249
256
  '<td class = "e-gantt-tooltip-value">' +
250
- this.parent.getFormatedDate(data.startDate, this.parent.getDateFormat()) + '</td></tr>' : '';
257
+ this.parent.getFormatedDate(milestoneStartDate, this.parent.getDateFormat()) + '</td></tr>' : '';
251
258
  content = '<table class = "e-gantt-tooltiptable"><tbody>' +
252
259
  taskName + sDate + '</tbody></table>';
253
260
  break;
@@ -276,6 +276,34 @@
276
276
  content: '\e903';
277
277
  }
278
278
 
279
+ .e-bigger .e-gantt .e-gantt-chart .e-timeline-header-container {
280
+ height: 64px;
281
+ }
282
+
283
+ .e-bigger .e-gantt .e-gantt-chart .e-timeline-top-header-cell {
284
+ height: 32px;
285
+ }
286
+
287
+ .e-bigger .e-gantt .e-gantt-tree-grid-pane .e-columnheader .e-headercell {
288
+ height: 63px !important;
289
+ }
290
+
291
+ .e-bigger .e-columnmenu {
292
+ top: 40px;
293
+ }
294
+
295
+ .e-bigger .e-gantt-dialog .e-edit-form-column:nth-child(odd) {
296
+ padding: 16px 18px 0 18px;
297
+ }
298
+
299
+ .e-bigger .e-gantt-dialog .e-edit-form-column:nth-child(even) {
300
+ padding: 16px 18px 0 0;
301
+ }
302
+
303
+ .e-bigger .e-gantt-dialog .e-edit-form-row.e-scroll .e-edit-form-column:nth-child(even) {
304
+ padding: 16px 18px 0 0;
305
+ }
306
+
279
307
  .e-gantt {
280
308
  display: block;
281
309
  width: 100%;
@@ -790,9 +818,10 @@
790
818
  }
791
819
 
792
820
  .e-gantt .e-gantt-chart .e-baseline-bar {
821
+ border-radius: 2px;
793
822
  box-sizing: border-box;
794
823
  position: absolute;
795
- z-index: 3;
824
+ z-index: 2;
796
825
  }
797
826
 
798
827
  .e-gantt .e-gantt-chart .e-milestone-top,
@@ -854,7 +883,6 @@
854
883
  }
855
884
 
856
885
  .e-gantt .e-gantt-chart .e-holiday .e-span {
857
- font-size: 13px;
858
886
  position: absolute;
859
887
  transform: rotate(-90deg);
860
888
  white-space: nowrap;
@@ -1137,6 +1165,8 @@
1137
1165
 
1138
1166
  .e-gantt-dialog .e-dlg-header-content .e-btn.e-dlg-closeicon-btn {
1139
1167
  border-radius: 50%;
1168
+ height: auto !important;
1169
+ width: auto !important;
1140
1170
  }
1141
1171
 
1142
1172
  .e-icon-rowselect::before {
@@ -1445,11 +1475,13 @@
1445
1475
  .e-gantt .e-gantt-chart .e-gantt-parent-progressbar-inner-div {
1446
1476
  background-color: #4cc7ba;
1447
1477
  border: 1px solid #4cc7ba;
1478
+ border-radius: 4px;
1448
1479
  }
1449
1480
 
1450
1481
  .e-gantt .e-gantt-chart .e-gantt-child-progressbar-inner-div {
1451
1482
  background-color: #0070f0;
1452
1483
  border: 1px solid #0070f0;
1484
+ border-radius: 4px;
1453
1485
  }
1454
1486
 
1455
1487
  .e-gantt .e-gantt-chart .e-gantt-child-manualtaskbar {
@@ -1520,11 +1552,6 @@
1520
1552
 
1521
1553
  .e-gantt .e-gantt-chart .e-progress-resize-gripper .e-progressbar-handler {
1522
1554
  background: #222;
1523
- border-color: #fff;
1524
- }
1525
-
1526
- .e-gantt .e-gantt-chart .e-progress-resize-gripper .e-progressbar-handler-element {
1527
- border-bottom-color: #fff;
1528
1555
  }
1529
1556
 
1530
1557
  .e-gantt .e-gantt-chart .e-progress-resize-gripper .e-progressbar-handler-after {
@@ -1688,15 +1715,15 @@
1688
1715
  }
1689
1716
 
1690
1717
  .e-gantt .e-gantt-chart .e-baseline-bar {
1691
- background-color: #f0ad4e;
1718
+ background-color: #fac168;
1692
1719
  }
1693
1720
 
1694
1721
  .e-gantt .e-gantt-chart .e-baseline-milestone-top {
1695
- border-bottom-color: #f0ad4e;
1722
+ border-bottom-color: #fac168;
1696
1723
  }
1697
1724
 
1698
1725
  .e-gantt .e-gantt-chart .e-baseline-milestone-bottom {
1699
- border-top-color: #f0ad4e;
1726
+ border-top-color: #fac168;
1700
1727
  }
1701
1728
 
1702
1729
  .e-gantt .e-gantt-chart .e-uptail::before {
@@ -426,6 +426,34 @@
426
426
  content: '\e903';
427
427
  }
428
428
 
429
+ .e-bigger .e-gantt .e-gantt-chart .e-timeline-header-container {
430
+ height: 64px;
431
+ }
432
+
433
+ .e-bigger .e-gantt .e-gantt-chart .e-timeline-top-header-cell {
434
+ height: 32px;
435
+ }
436
+
437
+ .e-bigger .e-gantt .e-gantt-tree-grid-pane .e-columnheader .e-headercell {
438
+ height: 63px !important;
439
+ }
440
+
441
+ .e-bigger .e-columnmenu {
442
+ top: 40px;
443
+ }
444
+
445
+ .e-bigger .e-gantt-dialog .e-edit-form-column:nth-child(odd) {
446
+ padding: 16px 18px 0 18px;
447
+ }
448
+
449
+ .e-bigger .e-gantt-dialog .e-edit-form-column:nth-child(even) {
450
+ padding: 16px 18px 0 0;
451
+ }
452
+
453
+ .e-bigger .e-gantt-dialog .e-edit-form-row.e-scroll .e-edit-form-column:nth-child(even) {
454
+ padding: 16px 18px 0 0;
455
+ }
456
+
429
457
  .e-gantt {
430
458
  display: block;
431
459
  width: 100%;
@@ -940,9 +968,10 @@
940
968
  }
941
969
 
942
970
  .e-gantt .e-gantt-chart .e-baseline-bar {
971
+ border-radius: 2px;
943
972
  box-sizing: border-box;
944
973
  position: absolute;
945
- z-index: 3;
974
+ z-index: 2;
946
975
  }
947
976
 
948
977
  .e-gantt .e-gantt-chart .e-milestone-top,
@@ -1004,7 +1033,6 @@
1004
1033
  }
1005
1034
 
1006
1035
  .e-gantt .e-gantt-chart .e-holiday .e-span {
1007
- font-size: 13px;
1008
1036
  position: absolute;
1009
1037
  transform: rotate(-90deg);
1010
1038
  white-space: nowrap;
@@ -1287,6 +1315,8 @@
1287
1315
 
1288
1316
  .e-gantt-dialog .e-dlg-header-content .e-btn.e-dlg-closeicon-btn {
1289
1317
  border-radius: 50%;
1318
+ height: auto !important;
1319
+ width: auto !important;
1290
1320
  }
1291
1321
 
1292
1322
  .e-icon-rowselect::before {
@@ -1595,11 +1625,13 @@
1595
1625
  .e-gantt .e-gantt-chart .e-gantt-parent-progressbar-inner-div {
1596
1626
  background-color: #555;
1597
1627
  border: 1px solid #555;
1628
+ border-radius: 4px;
1598
1629
  }
1599
1630
 
1600
1631
  .e-gantt .e-gantt-chart .e-gantt-child-progressbar-inner-div {
1601
1632
  background-color: #21527d;
1602
1633
  border: 1px solid #21527d;
1634
+ border-radius: 4px;
1603
1635
  }
1604
1636
 
1605
1637
  .e-gantt .e-gantt-chart .e-gantt-child-manualtaskbar {
@@ -1670,11 +1702,6 @@
1670
1702
 
1671
1703
  .e-gantt .e-gantt-chart .e-progress-resize-gripper .e-progressbar-handler {
1672
1704
  background: #222;
1673
- border-color: #fff;
1674
- }
1675
-
1676
- .e-gantt .e-gantt-chart .e-progress-resize-gripper .e-progressbar-handler-element {
1677
- border-bottom-color: #fff;
1678
1705
  }
1679
1706
 
1680
1707
  .e-gantt .e-gantt-chart .e-progress-resize-gripper .e-progressbar-handler-after {
@@ -1838,15 +1865,15 @@
1838
1865
  }
1839
1866
 
1840
1867
  .e-gantt .e-gantt-chart .e-baseline-bar {
1841
- background-color: #FF9800;
1868
+ background-color: #f0ad4e;
1842
1869
  }
1843
1870
 
1844
1871
  .e-gantt .e-gantt-chart .e-baseline-milestone-top {
1845
- border-bottom-color: #FF9800;
1872
+ border-bottom-color: #f0ad4e;
1846
1873
  }
1847
1874
 
1848
1875
  .e-gantt .e-gantt-chart .e-baseline-milestone-bottom {
1849
- border-top-color: #FF9800;
1876
+ border-top-color: #f0ad4e;
1850
1877
  }
1851
1878
 
1852
1879
  .e-gantt .e-gantt-chart .e-uptail::before {
@@ -643,6 +643,34 @@
643
643
  content: '\e903';
644
644
  }
645
645
 
646
+ .e-bigger .e-gantt .e-gantt-chart .e-timeline-header-container {
647
+ height: 64px;
648
+ }
649
+
650
+ .e-bigger .e-gantt .e-gantt-chart .e-timeline-top-header-cell {
651
+ height: 32px;
652
+ }
653
+
654
+ .e-bigger .e-gantt .e-gantt-tree-grid-pane .e-columnheader .e-headercell {
655
+ height: 63px !important;
656
+ }
657
+
658
+ .e-bigger .e-columnmenu {
659
+ top: 38px;
660
+ }
661
+
662
+ .e-bigger .e-gantt-dialog .e-edit-form-column:nth-child(odd) {
663
+ padding: 16px 18px 0 18px;
664
+ }
665
+
666
+ .e-bigger .e-gantt-dialog .e-edit-form-column:nth-child(even) {
667
+ padding: 16px 18px 0 0;
668
+ }
669
+
670
+ .e-bigger .e-gantt-dialog .e-edit-form-row.e-scroll .e-edit-form-column:nth-child(even) {
671
+ padding: 16px 18px 0 0;
672
+ }
673
+
646
674
  .e-gantt {
647
675
  display: block;
648
676
  width: 100%;
@@ -1157,9 +1185,10 @@
1157
1185
  }
1158
1186
 
1159
1187
  .e-gantt .e-gantt-chart .e-baseline-bar {
1188
+ border-radius: 2px;
1160
1189
  box-sizing: border-box;
1161
1190
  position: absolute;
1162
- z-index: 3;
1191
+ z-index: 2;
1163
1192
  }
1164
1193
 
1165
1194
  .e-gantt .e-gantt-chart .e-milestone-top,
@@ -1221,7 +1250,6 @@
1221
1250
  }
1222
1251
 
1223
1252
  .e-gantt .e-gantt-chart .e-holiday .e-span {
1224
- font-size: 13px;
1225
1253
  position: absolute;
1226
1254
  transform: rotate(-90deg);
1227
1255
  white-space: nowrap;
@@ -1504,6 +1532,8 @@
1504
1532
 
1505
1533
  .e-gantt-dialog .e-dlg-header-content .e-btn.e-dlg-closeicon-btn {
1506
1534
  border-radius: 50%;
1535
+ height: auto !important;
1536
+ width: auto !important;
1507
1537
  }
1508
1538
 
1509
1539
  .e-icon-rowselect::before {
@@ -1812,11 +1842,13 @@
1812
1842
  .e-gantt .e-gantt-chart .e-gantt-parent-progressbar-inner-div {
1813
1843
  background-color: #495057;
1814
1844
  border: 0px;
1845
+ border-radius: 4px;
1815
1846
  }
1816
1847
 
1817
1848
  .e-gantt .e-gantt-chart .e-gantt-child-progressbar-inner-div {
1818
1849
  background-color: #0056b3;
1819
1850
  border: 0px;
1851
+ border-radius: 4px;
1820
1852
  }
1821
1853
 
1822
1854
  .e-gantt .e-gantt-chart .e-gantt-child-manualtaskbar {
@@ -1887,11 +1919,6 @@
1887
1919
 
1888
1920
  .e-gantt .e-gantt-chart .e-progress-resize-gripper .e-progressbar-handler {
1889
1921
  background: #222;
1890
- border-color: #fff;
1891
- }
1892
-
1893
- .e-gantt .e-gantt-chart .e-progress-resize-gripper .e-progressbar-handler-element {
1894
- border-bottom-color: #fff;
1895
1922
  }
1896
1923
 
1897
1924
  .e-gantt .e-gantt-chart .e-progress-resize-gripper .e-progressbar-handler-after {
@@ -2055,15 +2082,15 @@
2055
2082
  }
2056
2083
 
2057
2084
  .e-gantt .e-gantt-chart .e-baseline-bar {
2058
- background-color: #fd7e14;
2085
+ background-color: #ffc107;
2059
2086
  }
2060
2087
 
2061
2088
  .e-gantt .e-gantt-chart .e-baseline-milestone-top {
2062
- border-bottom-color: #fd7e14;
2089
+ border-bottom-color: #ffc107;
2063
2090
  }
2064
2091
 
2065
2092
  .e-gantt .e-gantt-chart .e-baseline-milestone-bottom {
2066
- border-top-color: #fd7e14;
2093
+ border-top-color: #ffc107;
2067
2094
  }
2068
2095
 
2069
2096
  .e-gantt .e-gantt-chart .e-uptail::before {