@syncfusion/ej2-gantt 19.4.55 → 20.1.47-1460716
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1072 -1047
- package/README.md +75 -75
- package/dist/ej2-gantt.umd.min.js +1 -10
- package/dist/ej2-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-gantt.es2015.js +341 -240
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +713 -598
- package/dist/es6/ej2-gantt.es5.js.map +1 -1
- package/dist/global/ej2-gantt.min.js +1 -10
- package/dist/global/ej2-gantt.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/dist/ts/components.ts +4 -0
- package/dist/ts/gantt/actions/actions.ts +18 -0
- package/dist/ts/gantt/actions/cell-edit.ts +606 -0
- package/dist/ts/gantt/actions/chart-scroll.ts +167 -0
- package/dist/ts/gantt/actions/column-menu.ts +35 -0
- package/dist/ts/gantt/actions/column-reorder.ts +52 -0
- package/dist/ts/gantt/actions/column-resize.ts +52 -0
- package/dist/ts/gantt/actions/connector-line-edit.ts +829 -0
- package/dist/ts/gantt/actions/context-menu.ts +754 -0
- package/dist/ts/gantt/actions/day-markers.ts +80 -0
- package/dist/ts/gantt/actions/dependency.ts +692 -0
- package/dist/ts/gantt/actions/dialog-edit.ts +2208 -0
- package/dist/ts/gantt/actions/edit.ts +3499 -0
- package/dist/ts/gantt/actions/excel-export.ts +61 -0
- package/dist/ts/gantt/actions/filter.ts +302 -0
- package/dist/ts/gantt/actions/keyboard.ts +306 -0
- package/dist/ts/gantt/actions/pdf-export.ts +214 -0
- package/dist/ts/gantt/actions/rowdragdrop.ts +839 -0
- package/dist/ts/gantt/actions/selection.ts +536 -0
- package/dist/ts/gantt/actions/sort.ts +98 -0
- package/dist/ts/gantt/actions/taskbar-edit.ts +1940 -0
- package/dist/ts/gantt/actions/toolbar.ts +489 -0
- package/dist/ts/gantt/actions/virtual-scroll.ts +60 -0
- package/dist/ts/gantt/base/common.ts +9 -0
- package/dist/ts/gantt/base/constant.ts +13 -0
- package/dist/ts/gantt/base/css-constants.ts +148 -0
- package/dist/ts/gantt/base/date-processor.ts +1257 -0
- package/dist/ts/gantt/base/enum.ts +372 -0
- package/dist/ts/gantt/base/gantt-chart.ts +1248 -0
- package/dist/ts/gantt/base/gantt.ts +4069 -0
- package/dist/ts/gantt/base/interface.ts +955 -0
- package/dist/ts/gantt/base/splitter.ts +174 -0
- package/dist/ts/gantt/base/task-processor.ts +2217 -0
- package/dist/ts/gantt/base/tree-grid.ts +694 -0
- package/dist/ts/gantt/base/utils.ts +208 -0
- package/dist/ts/gantt/export/export-helper.ts +552 -0
- package/dist/ts/gantt/export/pdf-base/dictionary.ts +152 -0
- package/dist/ts/gantt/export/pdf-base/pdf-borders.ts +277 -0
- package/dist/ts/gantt/export/pdf-base/pdf-grid-table.ts +901 -0
- package/dist/ts/gantt/export/pdf-base/pdf-style/gantt-theme.ts +131 -0
- package/dist/ts/gantt/export/pdf-base/pdf-style/style.ts +91 -0
- package/dist/ts/gantt/export/pdf-base/treegrid-layouter.ts +414 -0
- package/dist/ts/gantt/export/pdf-connector-line.ts +422 -0
- package/dist/ts/gantt/export/pdf-gantt.ts +282 -0
- package/dist/ts/gantt/export/pdf-taskbar.ts +395 -0
- package/dist/ts/gantt/export/pdf-timeline.ts +202 -0
- package/dist/ts/gantt/export/pdf-treegrid.ts +406 -0
- package/dist/ts/gantt/models/add-dialog-field-settings.ts +33 -0
- package/dist/ts/gantt/models/column.ts +464 -0
- package/dist/ts/gantt/models/day-working-time.ts +22 -0
- package/dist/ts/gantt/models/edit-dialog-field-settings.ts +33 -0
- package/dist/ts/gantt/models/edit-settings.ts +79 -0
- package/dist/ts/gantt/models/event-marker.ts +27 -0
- package/dist/ts/gantt/models/filter-settings.ts +53 -0
- package/dist/ts/gantt/models/holiday.ts +34 -0
- package/dist/ts/gantt/models/label-settings.ts +30 -0
- package/dist/ts/gantt/models/models.ts +36 -0
- package/dist/ts/gantt/models/resource-fields.ts +38 -0
- package/dist/ts/gantt/models/search-settings.ts +77 -0
- package/dist/ts/gantt/models/selection-settings.ts +56 -0
- package/dist/ts/gantt/models/sort-settings.ts +50 -0
- package/dist/ts/gantt/models/splitter-settings.ts +47 -0
- package/dist/ts/gantt/models/task-fields.ts +171 -0
- package/dist/ts/gantt/models/timeline-settings.ts +112 -0
- package/dist/ts/gantt/models/tooltip-settings.ts +46 -0
- package/dist/ts/gantt/renderer/chart-rows.ts +1838 -0
- package/dist/ts/gantt/renderer/connector-line.ts +1025 -0
- package/dist/ts/gantt/renderer/edit-tooltip.ts +228 -0
- package/dist/ts/gantt/renderer/event-marker.ts +96 -0
- package/dist/ts/gantt/renderer/nonworking-day.ts +205 -0
- package/dist/ts/gantt/renderer/render.ts +5 -0
- package/dist/ts/gantt/renderer/timeline.ts +1397 -0
- package/dist/ts/gantt/renderer/tooltip.ts +450 -0
- package/dist/ts/gantt/renderer/virtual-content-render.ts +50 -0
- package/license +9 -9
- package/package.json +80 -80
- package/src/gantt/actions/cell-edit.js +2 -1
- package/src/gantt/actions/dialog-edit.js +2 -1
- package/src/gantt/actions/edit.js +36 -9
- package/src/gantt/actions/rowdragdrop.js +37 -15
- package/src/gantt/actions/selection.js +3 -2
- package/src/gantt/actions/taskbar-edit.js +24 -24
- package/src/gantt/base/date-processor.js +0 -1
- package/src/gantt/base/gantt-chart.js +36 -5
- package/src/gantt/base/gantt-model.d.ts +779 -779
- package/src/gantt/base/gantt.d.ts +27 -27
- package/src/gantt/base/gantt.js +35 -76
- package/src/gantt/base/splitter.js +1 -0
- package/src/gantt/base/task-processor.js +13 -13
- package/src/gantt/base/tree-grid.js +3 -1
- package/src/gantt/export/pdf-base/treegrid-layouter.js +13 -13
- package/src/gantt/export/pdf-connector-line.js +11 -11
- package/src/gantt/export/pdf-gantt.js +24 -24
- package/src/gantt/export/pdf-taskbar.js +11 -11
- package/src/gantt/export/pdf-treegrid.js +13 -13
- package/src/gantt/models/add-dialog-field-settings-model.d.ts +21 -21
- package/src/gantt/models/add-dialog-field-settings.js +19 -19
- package/src/gantt/models/day-working-time-model.d.ts +11 -11
- package/src/gantt/models/day-working-time.js +19 -19
- package/src/gantt/models/edit-dialog-field-settings-model.d.ts +21 -21
- package/src/gantt/models/edit-dialog-field-settings.js +19 -19
- package/src/gantt/models/edit-settings-model.d.ts +50 -50
- package/src/gantt/models/edit-settings.js +19 -19
- package/src/gantt/models/event-marker-model.d.ts +16 -16
- package/src/gantt/models/event-marker.js +19 -19
- package/src/gantt/models/filter-settings-model.d.ts +34 -34
- package/src/gantt/models/filter-settings.js +19 -19
- package/src/gantt/models/holiday-model.d.ts +21 -21
- package/src/gantt/models/holiday.js +19 -19
- package/src/gantt/models/label-settings-model.d.ts +16 -16
- package/src/gantt/models/label-settings.js +19 -19
- package/src/gantt/models/resource-fields-model.d.ts +21 -21
- package/src/gantt/models/resource-fields.js +19 -19
- package/src/gantt/models/search-settings-model.d.ts +56 -56
- package/src/gantt/models/search-settings.js +19 -19
- package/src/gantt/models/selection-settings-model.d.ts +35 -35
- package/src/gantt/models/selection-settings.js +19 -19
- package/src/gantt/models/sort-settings-model.d.ts +24 -24
- package/src/gantt/models/sort-settings.js +19 -19
- package/src/gantt/models/splitter-settings-model.d.ts +30 -30
- package/src/gantt/models/splitter-settings.js +19 -19
- package/src/gantt/models/task-fields-model.d.ts +110 -110
- package/src/gantt/models/task-fields.js +19 -19
- package/src/gantt/models/timeline-settings-model.d.ts +71 -71
- package/src/gantt/models/timeline-settings.js +19 -19
- package/src/gantt/models/tooltip-settings-model.d.ts +26 -26
- package/src/gantt/models/tooltip-settings.js +19 -19
- package/src/gantt/renderer/chart-rows.js +49 -37
- package/src/gantt/renderer/connector-line.js +22 -18
- package/src/gantt/renderer/event-marker.js +1 -0
- package/src/gantt/renderer/nonworking-day.js +13 -6
- package/src/gantt/renderer/timeline.d.ts +1 -0
- package/src/gantt/renderer/timeline.js +51 -12
- package/src/gantt/renderer/tooltip.js +11 -3
- package/styles/bootstrap-dark.css +442 -427
- package/styles/bootstrap.css +442 -433
- package/styles/bootstrap4.css +454 -479
- package/styles/bootstrap5-dark.css +457 -433
- package/styles/bootstrap5.css +457 -433
- package/styles/fabric-dark.css +438 -421
- package/styles/fabric.css +445 -428
- package/styles/fluent-dark.css +1938 -0
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.css +1938 -0
- package/styles/fluent.scss +1 -0
- package/styles/gantt/_all.scss +2 -2
- package/styles/gantt/_bootstrap-dark-definition.scss +210 -156
- package/styles/gantt/_bootstrap-definition.scss +211 -157
- package/styles/gantt/_bootstrap4-definition.scss +213 -158
- package/styles/gantt/_bootstrap5-definition.scss +215 -162
- package/styles/gantt/_fabric-dark-definition.scss +211 -157
- package/styles/gantt/_fabric-definition.scss +211 -157
- package/styles/gantt/_fluent-dark-definition.scss +1 -0
- package/styles/gantt/_fluent-definition.scss +215 -162
- package/styles/gantt/_fusionnew-definition.scss +214 -0
- package/styles/gantt/_highcontrast-definition.scss +211 -157
- package/styles/gantt/_highcontrast-light-definition.scss +211 -157
- package/styles/gantt/_layout.scss +1446 -1027
- package/styles/gantt/_material-dark-definition.scss +212 -157
- package/styles/gantt/_material-definition.scss +212 -157
- package/styles/gantt/_material3-definition.scss +215 -0
- package/styles/gantt/_tailwind-definition.scss +215 -161
- package/styles/gantt/_theme.scss +702 -668
- package/styles/gantt/bootstrap-dark.css +442 -427
- package/styles/gantt/bootstrap.css +442 -433
- package/styles/gantt/bootstrap4.css +454 -479
- package/styles/gantt/bootstrap5-dark.css +457 -433
- package/styles/gantt/bootstrap5.css +457 -433
- package/styles/gantt/fabric-dark.css +438 -421
- package/styles/gantt/fabric.css +445 -428
- package/styles/gantt/fluent-dark.css +1938 -0
- package/styles/gantt/fluent-dark.scss +22 -0
- package/styles/gantt/fluent.css +1938 -0
- package/styles/gantt/fluent.scss +22 -0
- package/styles/gantt/highcontrast-light.css +405 -405
- package/styles/gantt/highcontrast.css +444 -456
- package/styles/gantt/icons/_bootstrap-dark.scss +124 -113
- package/styles/gantt/icons/_bootstrap.scss +124 -113
- package/styles/gantt/icons/_bootstrap4.scss +124 -113
- package/styles/gantt/icons/_bootstrap5.scss +124 -112
- package/styles/gantt/icons/_fabric-dark.scss +124 -112
- package/styles/gantt/icons/_fabric.scss +124 -112
- package/styles/gantt/icons/_fluent-dark.scss +1 -0
- package/styles/gantt/icons/_fluent.scss +124 -112
- package/styles/gantt/icons/_fusionnew.scss +120 -0
- package/styles/gantt/icons/_highcontrast.scss +124 -112
- package/styles/gantt/icons/_material-dark.scss +124 -112
- package/styles/gantt/icons/_material.scss +124 -112
- package/styles/gantt/icons/_material3.scss +124 -0
- package/styles/gantt/icons/_tailwind-dark.scss +124 -113
- package/styles/gantt/icons/_tailwind.scss +124 -113
- package/styles/gantt/material-dark.css +446 -417
- package/styles/gantt/material.css +445 -419
- package/styles/gantt/tailwind-dark.css +452 -482
- package/styles/gantt/tailwind.css +449 -479
- package/styles/highcontrast-light.css +405 -405
- package/styles/highcontrast.css +444 -456
- package/styles/material-dark.css +446 -417
- package/styles/material.css +445 -419
- package/styles/tailwind-dark.css +452 -482
- package/styles/tailwind.css +449 -479
|
@@ -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
|
|
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
|
|
58
|
-
|
|
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.
|
|
152
|
-
var
|
|
153
|
-
|
|
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++) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
12
|
import { createElement, isNullOrUndefined, getValue, addClass, removeClass, extend } from '@syncfusion/ej2-base';
|
|
13
13
|
import * as cls from '../base/css-constants';
|
|
14
14
|
import { DataUtil } from '@syncfusion/ej2-data';
|
|
@@ -123,6 +123,9 @@ var Timeline = /** @class */ (function () {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
+
currentLevel = this.parent.zoomingLevels.findIndex(function (tempLevel) {
|
|
127
|
+
return tempLevel.level === currentLevel;
|
|
128
|
+
});
|
|
126
129
|
var newTimeline = this.parent.zoomingLevels[currentLevel];
|
|
127
130
|
var args = {
|
|
128
131
|
requestType: isZoomIn ? 'beforeZoomIn' : 'beforeZoomOut',
|
|
@@ -840,6 +843,40 @@ var Timeline = /** @class */ (function () {
|
|
|
840
843
|
} while ((startDate < endDate));
|
|
841
844
|
return parentTh;
|
|
842
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
|
+
};
|
|
843
880
|
Timeline.prototype.getTimelineRoundOffEndDate = function (date) {
|
|
844
881
|
var tierMode = this.topTier === 'None' ? this.bottomTier : this.topTier;
|
|
845
882
|
var endDate = new Date(date.toString());
|
|
@@ -854,6 +891,9 @@ var Timeline = /** @class */ (function () {
|
|
|
854
891
|
endDate.setHours(24, 0, 0, 0);
|
|
855
892
|
}
|
|
856
893
|
}
|
|
894
|
+
if (this.isZooming || this.parent.isLoad) {
|
|
895
|
+
this.updateTimelineAfterZooming(endDate, false);
|
|
896
|
+
}
|
|
857
897
|
return endDate;
|
|
858
898
|
};
|
|
859
899
|
/**
|
|
@@ -923,7 +963,6 @@ var Timeline = /** @class */ (function () {
|
|
|
923
963
|
}
|
|
924
964
|
return increment;
|
|
925
965
|
};
|
|
926
|
-
;
|
|
927
966
|
/**
|
|
928
967
|
* Method to find header cell was weekend or not
|
|
929
968
|
*
|
|
@@ -148,6 +148,7 @@ var Tooltip = /** @class */ (function () {
|
|
|
148
148
|
args.cancel = true;
|
|
149
149
|
}
|
|
150
150
|
});
|
|
151
|
+
this.toolTipObj.content = argsData.content;
|
|
151
152
|
if (!this.parent.isAdaptive && args.event.type === 'mouseover') {
|
|
152
153
|
this.currentTarget = args.target;
|
|
153
154
|
EventHandler.add(this.currentTarget, 'mousemove', this.mouseMoveHandler.bind(this));
|
|
@@ -174,6 +175,7 @@ var Tooltip = /** @class */ (function () {
|
|
|
174
175
|
* @returns {void} .
|
|
175
176
|
*/
|
|
176
177
|
Tooltip.prototype.updateTooltipPosition = function (args) {
|
|
178
|
+
args.element.style.visibility = 'visible';
|
|
177
179
|
if (isNullOrUndefined(this.tooltipMouseEvent) || args.target.classList.contains('e-notes-info')) {
|
|
178
180
|
return;
|
|
179
181
|
}
|
|
@@ -203,7 +205,6 @@ var Tooltip = /** @class */ (function () {
|
|
|
203
205
|
tooltipPositionY = tooltipPositionY + 10;
|
|
204
206
|
}
|
|
205
207
|
args.element.style.top = tooltipPositionY + 'px';
|
|
206
|
-
args.element.style.visibility = 'visible';
|
|
207
208
|
};
|
|
208
209
|
/**
|
|
209
210
|
* Method to get mouse pointor position
|
|
@@ -245,9 +246,16 @@ var Tooltip = /** @class */ (function () {
|
|
|
245
246
|
switch (elementType) {
|
|
246
247
|
case 'milestone':
|
|
247
248
|
{
|
|
248
|
-
var
|
|
249
|
+
var milestoneStartDate = void 0;
|
|
250
|
+
if (args.target.className.includes('e-baseline-gantt-milestone') && !isNullOrUndefined(data.baselineStartDate)) {
|
|
251
|
+
milestoneStartDate = data.baselineStartDate;
|
|
252
|
+
}
|
|
253
|
+
else if (!isNullOrUndefined(data.startDate)) {
|
|
254
|
+
milestoneStartDate = data.startDate;
|
|
255
|
+
}
|
|
256
|
+
var sDate = !isNullOrUndefined(milestoneStartDate) ? '<tr><td class = "e-gantt-tooltip-label"> Date</td><td>:</td>' +
|
|
249
257
|
'<td class = "e-gantt-tooltip-value">' +
|
|
250
|
-
this.parent.getFormatedDate(
|
|
258
|
+
this.parent.getFormatedDate(milestoneStartDate, this.parent.getDateFormat()) + '</td></tr>' : '';
|
|
251
259
|
content = '<table class = "e-gantt-tooltiptable"><tbody>' +
|
|
252
260
|
taskName + sDate + '</tbody></table>';
|
|
253
261
|
break;
|