@syncfusion/ej2-gantt 20.2.50 → 20.3.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.
- package/CHANGELOG.md +10 -0
- package/dist/ej2-gantt.min.js +10 -0
- package/dist/ej2-gantt.umd.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-gantt.es2015.js +940 -338
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +970 -357
- package/dist/es6/ej2-gantt.es5.js.map +1 -1
- package/dist/global/ej2-gantt.min.js +2 -2
- package/dist/global/ej2-gantt.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +19 -19
- package/src/gantt/actions/cell-edit.js +1 -2
- package/src/gantt/actions/connector-line-edit.d.ts +2 -0
- package/src/gantt/actions/connector-line-edit.js +104 -10
- package/src/gantt/actions/context-menu.js +6 -1
- package/src/gantt/actions/critical-path.d.ts +1 -1
- package/src/gantt/actions/critical-path.js +105 -30
- package/src/gantt/actions/dependency.d.ts +2 -0
- package/src/gantt/actions/dependency.js +68 -12
- package/src/gantt/actions/dialog-edit.d.ts +3 -0
- package/src/gantt/actions/dialog-edit.js +116 -14
- package/src/gantt/actions/edit.js +69 -10
- package/src/gantt/actions/filter.d.ts +3 -0
- package/src/gantt/actions/filter.js +30 -6
- package/src/gantt/actions/keyboard.js +1 -1
- package/src/gantt/actions/rowdragdrop.js +68 -8
- package/src/gantt/actions/taskbar-edit.js +15 -3
- package/src/gantt/base/enum.d.ts +3 -1
- package/src/gantt/base/gantt-chart.js +8 -6
- package/src/gantt/base/gantt.d.ts +6 -6
- package/src/gantt/base/gantt.js +10 -3
- package/src/gantt/base/interface.d.ts +4 -0
- package/src/gantt/base/splitter.d.ts +2 -2
- package/src/gantt/base/splitter.js +6 -7
- package/src/gantt/base/task-processor.js +13 -7
- package/src/gantt/base/tree-grid.js +21 -2
- package/src/gantt/export/pdf-connector-line.js +187 -185
- package/src/gantt/models/edit-settings-model.d.ts +2 -2
- package/src/gantt/models/edit-settings.d.ts +2 -2
- package/src/gantt/models/filter-settings-model.d.ts +1 -1
- package/src/gantt/models/filter-settings.d.ts +1 -1
- package/src/gantt/renderer/chart-rows.d.ts +1 -0
- package/src/gantt/renderer/chart-rows.js +47 -16
- package/src/gantt/renderer/connector-line.js +101 -33
- package/src/gantt/renderer/event-marker.js +1 -1
- package/src/gantt/renderer/nonworking-day.js +0 -1
- package/src/gantt/renderer/tooltip.js +2 -1
- package/styles/bootstrap-dark.css +115 -62
- package/styles/bootstrap.css +115 -62
- package/styles/bootstrap4.css +115 -62
- package/styles/bootstrap5-dark.css +119 -63
- package/styles/bootstrap5.css +119 -63
- package/styles/fabric-dark.css +115 -62
- package/styles/fabric.css +115 -62
- package/styles/fluent-dark.css +126 -66
- package/styles/fluent.css +124 -64
- package/styles/gantt/_all.scss +1 -1
- package/styles/gantt/_bootstrap-dark-definition.scss +4 -1
- package/styles/gantt/_bootstrap-definition.scss +4 -1
- package/styles/gantt/_bootstrap4-definition.scss +4 -1
- package/styles/gantt/_bootstrap5-definition.scss +4 -2
- package/styles/gantt/_fabric-dark-definition.scss +4 -1
- package/styles/gantt/_fabric-definition.scss +4 -1
- package/styles/gantt/_fluent-definition.scss +6 -4
- package/styles/gantt/_fusionnew-definition.scss +12 -10
- package/styles/gantt/_highcontrast-definition.scss +4 -1
- package/styles/gantt/_highcontrast-light-definition.scss +4 -1
- package/styles/gantt/_layout.scss +143 -51
- package/styles/gantt/_material-dark-definition.scss +4 -1
- package/styles/gantt/_material-definition.scss +4 -1
- package/styles/gantt/_material3-definition.scss +13 -11
- package/styles/gantt/_tailwind-definition.scss +4 -2
- package/styles/gantt/_theme.scss +29 -29
- package/styles/gantt/bootstrap-dark.css +115 -62
- package/styles/gantt/bootstrap.css +115 -62
- package/styles/gantt/bootstrap4.css +115 -62
- package/styles/gantt/bootstrap5-dark.css +119 -63
- package/styles/gantt/bootstrap5.css +119 -63
- package/styles/gantt/fabric-dark.css +115 -62
- package/styles/gantt/fabric.css +115 -62
- package/styles/gantt/fluent-dark.css +126 -66
- package/styles/gantt/fluent.css +124 -64
- package/styles/gantt/highcontrast-light.css +120 -62
- package/styles/gantt/highcontrast.css +120 -62
- package/styles/gantt/material-dark.css +120 -65
- package/styles/gantt/material.css +118 -65
- package/styles/gantt/tailwind-dark.css +117 -64
- package/styles/gantt/tailwind.css +117 -64
- package/styles/highcontrast-light.css +120 -62
- package/styles/highcontrast.css +120 -62
- package/styles/material-dark.css +120 -65
- package/styles/material.css +118 -65
- package/styles/tailwind-dark.css +117 -64
- package/styles/tailwind.css +117 -64
|
@@ -111,7 +111,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
111
111
|
* @private
|
|
112
112
|
*/
|
|
113
113
|
ChartRows.prototype.getIndicatorNode = function (indicator) {
|
|
114
|
-
var templateString = '<label class="' + cls.label + ' ' + cls.taskIndicatorDiv + '"
|
|
114
|
+
var templateString = '<label class="' + cls.label + ' ' + cls.taskIndicatorDiv + '"style="line-height:'
|
|
115
115
|
+ (this.parent.rowHeight) + 'px;' +
|
|
116
116
|
'left:' + this.getIndicatorleft(indicator.date) + 'px;"><i class="' + indicator.iconClass + '"></i> </label>';
|
|
117
117
|
return this.createDivElement(templateString);
|
|
@@ -627,7 +627,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
627
627
|
*/
|
|
628
628
|
ChartRows.prototype.getTaskBaselineNode = function () {
|
|
629
629
|
var data = this.templateData;
|
|
630
|
-
var template = '<div class="' + cls.baselineBar + ' ' + '" role="
|
|
630
|
+
var template = '<div class="' + cls.baselineBar + ' ' + '" role="term" style="margin-top:' + this.baselineTop +
|
|
631
631
|
'px;left:' + data.ganttProperties.baselineLeft + 'px;' +
|
|
632
632
|
'width:' + data.ganttProperties.baselineWidth + 'px;height:' +
|
|
633
633
|
this.baselineHeight + 'px;' + (this.baselineColor ? 'background-color: ' + this.baselineColor + ';' : '') + '"></div>';
|
|
@@ -880,10 +880,10 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
880
880
|
var className = (this.parent.gridLines === 'Horizontal' || this.parent.gridLines === 'Both') ?
|
|
881
881
|
'e-chart-row-border' : '';
|
|
882
882
|
table.innerHTML = '<tr class="' + this.getRowClassName(this.templateData) + ' ' + cls.chartRow + '"' +
|
|
883
|
-
'
|
|
883
|
+
'style="display:' + this.getExpandDisplayProp(this.templateData) + ';height:' +
|
|
884
884
|
this.parent.rowHeight + 'px;">' +
|
|
885
885
|
'<td class="' + cls.chartRowCell + ' ' + className
|
|
886
|
-
+ '"
|
|
886
|
+
+ '"style="width:' + this.parent.timelineModule.totalTimelineWidth + 'px;"></td></tr>';
|
|
887
887
|
return table.childNodes;
|
|
888
888
|
};
|
|
889
889
|
/**
|
|
@@ -948,7 +948,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
948
948
|
};
|
|
949
949
|
ChartRows.prototype.leftLabelContainer = function () {
|
|
950
950
|
var template = '<div class="' + ((this.leftTaskLabelTemplateFunction) ? cls.leftLabelTempContainer :
|
|
951
|
-
cls.leftLabelContainer) + ' ' + '" tabindex="-1" role="
|
|
951
|
+
cls.leftLabelContainer) + ' ' + '" tabindex="-1" role="term" style="height:' +
|
|
952
952
|
(this.parent.rowHeight - 2) + 'px;width:' + this.taskNameWidth(this.templateData) + '"></div>';
|
|
953
953
|
return this.createDivElement(template);
|
|
954
954
|
};
|
|
@@ -960,7 +960,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
960
960
|
var template = '<div class="' + cls.taskBarMainContainer + ' ' +
|
|
961
961
|
this.parent.getUnscheduledTaskClass(data.ganttProperties) + ' ' +
|
|
962
962
|
((data.ganttProperties.cssClass) ? data.ganttProperties.cssClass : '') + '" ' +
|
|
963
|
-
' tabindex="-1" role="
|
|
963
|
+
' tabindex="-1" role="term" style="' + ((data.ganttProperties.isMilestone && !manualParent) ?
|
|
964
964
|
('width:' + this.milestoneHeight + 'px;height:' +
|
|
965
965
|
this.milestoneHeight + 'px;margin-top:' + this.milestoneMarginTop + 'px;left:' + (data.ganttProperties.left -
|
|
966
966
|
(this.milestoneHeight / 2)) + 'px;') : ('width:' + data.ganttProperties.width +
|
|
@@ -971,26 +971,26 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
971
971
|
};
|
|
972
972
|
ChartRows.prototype.rightLabelContainer = function () {
|
|
973
973
|
var template = '<div class="' + ((this.rightTaskLabelTemplateFunction) ? cls.rightLabelTempContainer :
|
|
974
|
-
cls.rightLabelContainer) + '" ' + ' tabindex="-1" role="
|
|
974
|
+
cls.rightLabelContainer) + '" ' + ' tabindex="-1" role="term" style="left:' + this.getRightLabelLeft(this.templateData) + 'px; height:'
|
|
975
975
|
+ (this.parent.rowHeight - 2) + 'px;"></div>';
|
|
976
976
|
return this.createDivElement(template);
|
|
977
977
|
};
|
|
978
978
|
ChartRows.prototype.childTaskbarLeftResizer = function () {
|
|
979
979
|
var lResizerLeft = -(this.parent.isAdaptive ? 12 : 2);
|
|
980
980
|
var template = '<div class="' + cls.taskBarLeftResizer + ' ' + cls.icon + '"' +
|
|
981
|
-
'
|
|
981
|
+
'style="left:' + lResizerLeft + 'px;height:' + (this.taskBarHeight) + 'px;"></div>';
|
|
982
982
|
return this.createDivElement(template);
|
|
983
983
|
};
|
|
984
984
|
ChartRows.prototype.childTaskbarRightResizer = function () {
|
|
985
985
|
var rResizerLeft = this.parent.isAdaptive ? -2 : -10;
|
|
986
986
|
var template = '<div class="' + cls.taskBarRightResizer + ' ' + cls.icon + '"' +
|
|
987
|
-
'
|
|
987
|
+
'style="left:' + (this.templateData.ganttProperties.width + rResizerLeft) + 'px;' +
|
|
988
988
|
'height:' + (this.taskBarHeight) + 'px;"></div>';
|
|
989
989
|
return this.createDivElement(template);
|
|
990
990
|
};
|
|
991
991
|
ChartRows.prototype.childTaskbarProgressResizer = function () {
|
|
992
992
|
var template = '<div class="' + cls.childProgressResizer + '"' +
|
|
993
|
-
'
|
|
993
|
+
'style="left:' + (this.templateData.ganttProperties.progressWidth - 6) + 'px;margin-top:' +
|
|
994
994
|
(this.taskBarHeight - 4) + 'px;"><div class="' + cls.progressBarHandler + '"' +
|
|
995
995
|
'><div class="' + cls.progressHandlerElement + '"></div>' +
|
|
996
996
|
'<div class="' + cls.progressBarHandlerAfter + '"></div></div>';
|
|
@@ -1001,9 +1001,16 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1001
1001
|
var pointerLeft = -((this.parent.isAdaptive ? 14 : 2) + this.connectorPointWidth);
|
|
1002
1002
|
var mileStoneLeft = -(this.connectorPointWidth + 2);
|
|
1003
1003
|
var pointerTop = Math.floor(this.milesStoneRadius - (this.connectorPointWidth / 2));
|
|
1004
|
+
var marginTop;
|
|
1005
|
+
if ((!this.templateData.ganttProperties.isAutoSchedule && this.templateData.hasChildRecords)) {
|
|
1006
|
+
marginTop = '';
|
|
1007
|
+
}
|
|
1008
|
+
else {
|
|
1009
|
+
marginTop = 'margin-top:' + this.connectorPointMargin + 'px';
|
|
1010
|
+
}
|
|
1004
1011
|
var template = '<div class="' + cls.leftConnectorPointOuterDiv + '" style="' +
|
|
1005
1012
|
((data.ganttProperties.isMilestone) ? ('margin-top:' + pointerTop + 'px;left:' + mileStoneLeft +
|
|
1006
|
-
'px;') : (
|
|
1013
|
+
'px;') : (marginTop + ';left:' + pointerLeft + 'px;')) + '">' +
|
|
1007
1014
|
'<div class="' + cls.connectorPointLeft + ' ' + this.parent.getUnscheduledTaskClass(data.ganttProperties) +
|
|
1008
1015
|
'" style="width: ' + this.connectorPointWidth + 'px;' +
|
|
1009
1016
|
'height: ' + this.connectorPointWidth + 'px;">' + this.touchLeftConnectorpoint + '</div></div>';
|
|
@@ -1013,10 +1020,16 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1013
1020
|
var data = this.templateData;
|
|
1014
1021
|
var pointerRight = this.parent.isAdaptive ? 10 : -2;
|
|
1015
1022
|
var pointerTop = Math.floor(this.milesStoneRadius - (this.connectorPointWidth / 2));
|
|
1023
|
+
var marginTop;
|
|
1024
|
+
if ((!this.templateData.ganttProperties.isAutoSchedule && this.templateData.hasChildRecords)) {
|
|
1025
|
+
marginTop = '';
|
|
1026
|
+
}
|
|
1027
|
+
else {
|
|
1028
|
+
marginTop = 'margin-top:' + this.connectorPointMargin + 'px';
|
|
1029
|
+
}
|
|
1016
1030
|
var template = '<div class="' + cls.rightConnectorPointOuterDiv + '" style="' +
|
|
1017
1031
|
((data.ganttProperties.isMilestone) ? ('left:' + (this.milestoneHeight - 2) + 'px;margin-top:' +
|
|
1018
|
-
pointerTop + 'px;') : ('left:' + (data.ganttProperties.width + pointerRight) + 'px;
|
|
1019
|
-
this.connectorPointMargin + 'px;')) + '">' +
|
|
1032
|
+
pointerTop + 'px;') : ('left:' + (data.ganttProperties.width + pointerRight) + 'px;' + marginTop + ';')) + '">' +
|
|
1020
1033
|
'<div class="' + cls.connectorPointRight + ' ' + this.parent.getUnscheduledTaskClass(data.ganttProperties) +
|
|
1021
1034
|
'" style="width:' + this.connectorPointWidth + 'px;height:' + this.connectorPointWidth + 'px;">' +
|
|
1022
1035
|
this.touchRightConnectorpoint + '</div></div>';
|
|
@@ -1316,14 +1329,17 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1316
1329
|
var taskbarContainerNode = this.taskbarContainer();
|
|
1317
1330
|
taskbarContainerNode[0].setAttribute('aria-label', this.generateAriaLabel(this.templateData));
|
|
1318
1331
|
taskbarContainerNode[0].setAttribute('rowUniqueId', this.templateData.ganttProperties.rowUniqueID);
|
|
1319
|
-
|
|
1320
|
-
|
|
1332
|
+
var connectorLineLeftNode = this.getLeftPointNode();
|
|
1333
|
+
if ((this.templateData.ganttProperties.isAutoSchedule && this.parent.viewType == 'ProjectView') || !this.templateData.hasChildRecords) {
|
|
1321
1334
|
taskbarContainerNode[0].appendChild([].slice.call(connectorLineLeftNode)[0]);
|
|
1322
1335
|
}
|
|
1323
1336
|
if (this.templateData.hasChildRecords) {
|
|
1324
1337
|
var parentTaskbarTemplateNode = this.getParentTaskbarNode(i, taskbarContainerNode);
|
|
1325
1338
|
if (!this.templateData.ganttProperties.isAutoSchedule) {
|
|
1326
1339
|
var manualTaskbar = this.getManualTaskbar();
|
|
1340
|
+
manualTaskbar[0].appendChild([].slice.call(connectorLineLeftNode)[0]);
|
|
1341
|
+
var connectorLineRightNode = this.getRightPointNode();
|
|
1342
|
+
manualTaskbar[0].appendChild([].slice.call(connectorLineRightNode)[0]);
|
|
1327
1343
|
taskbarContainerNode[0].appendChild([].slice.call(manualTaskbar)[0]);
|
|
1328
1344
|
}
|
|
1329
1345
|
if (parentTaskbarTemplateNode && parentTaskbarTemplateNode.length > 0) {
|
|
@@ -1398,7 +1414,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1398
1414
|
? this.getMilestoneBaselineNode() : this.getTaskBaselineNode();
|
|
1399
1415
|
}
|
|
1400
1416
|
}
|
|
1401
|
-
if (!this.templateData.hasChildRecords) {
|
|
1417
|
+
if ((this.templateData.ganttProperties.isAutoSchedule && this.parent.viewType == 'ProjectView') || !this.templateData.hasChildRecords) {
|
|
1402
1418
|
var connectorLineRightNode = this.getRightPointNode();
|
|
1403
1419
|
taskbarContainerNode[0].appendChild([].slice.call(connectorLineRightNode)[0]);
|
|
1404
1420
|
}
|
|
@@ -1801,6 +1817,21 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1801
1817
|
}
|
|
1802
1818
|
return defaultValue;
|
|
1803
1819
|
};
|
|
1820
|
+
ChartRows.prototype.generateBaselineAriaLabel = function (data) {
|
|
1821
|
+
data = this.templateData;
|
|
1822
|
+
var defaultValue = '';
|
|
1823
|
+
var nameConstant = this.parent.localeObj.getConstant('name');
|
|
1824
|
+
var startDateConstant = this.parent.localeObj.getConstant('startDate');
|
|
1825
|
+
var endDateConstant = this.parent.localeObj.getConstant('endDate');
|
|
1826
|
+
var taskNameVal = data.ganttProperties.taskName;
|
|
1827
|
+
var startDateVal = data.ganttProperties.baselineStartDate;
|
|
1828
|
+
var endDateVal = data.ganttProperties.baselineEndDate;
|
|
1829
|
+
defaultValue += 'Baseline' + ' ';
|
|
1830
|
+
defaultValue += nameConstant + ' ' + taskNameVal + ' ';
|
|
1831
|
+
defaultValue += startDateConstant + ' ' + this.parent.getFormatedDate(startDateVal) + ' ';
|
|
1832
|
+
defaultValue += endDateConstant + ' ' + this.parent.getFormatedDate(endDateVal) + ' ';
|
|
1833
|
+
return defaultValue;
|
|
1834
|
+
};
|
|
1804
1835
|
ChartRows.prototype.generateSpiltTaskAriaLabel = function (data, ganttProp) {
|
|
1805
1836
|
var defaultValue = '';
|
|
1806
1837
|
var startDateConstant = this.parent.localeObj.getConstant('startDate');
|
|
@@ -53,8 +53,19 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
53
53
|
*/
|
|
54
54
|
ConnectorLine.prototype.createConnectorLineObject = function (parentGanttData, childGanttData, predecessor) {
|
|
55
55
|
var connectorObj = {};
|
|
56
|
-
var updatedRecords
|
|
57
|
-
|
|
56
|
+
var updatedRecords;
|
|
57
|
+
if (this.parent.pdfExportModule && this.parent.pdfExportModule.isPdfExport) {
|
|
58
|
+
if (this.parent.pdfExportModule['helper']['exportProps'].exportType &&
|
|
59
|
+
this.parent.pdfExportModule['helper']['exportProps'].exportType === 'CurrentViewData') {
|
|
60
|
+
updatedRecords = this.expandedRecords;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
updatedRecords = this.parent.flatData;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
updatedRecords = this.expandedRecords;
|
|
68
|
+
}
|
|
58
69
|
var parentIndex = updatedRecords.indexOf(parentGanttData);
|
|
59
70
|
var childIndex = updatedRecords.indexOf(childGanttData);
|
|
60
71
|
var parentGanttRecord = parentGanttData.ganttProperties;
|
|
@@ -377,6 +388,63 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
377
388
|
isMilestoneValue = (data.milestoneParent && data.milestoneChild) ? 0 : data.milestoneParent ? -5 : data.milestoneChild ? 5 : 0;
|
|
378
389
|
}
|
|
379
390
|
var heightValue = isVirtual ? connectorLine.height : (height + isMilestoneValue);
|
|
391
|
+
var borderTopWidth = 0;
|
|
392
|
+
var addTop = 0;
|
|
393
|
+
if (this.parent.currentViewData[data.parentIndex] && this.parent.currentViewData[data.childIndex]) {
|
|
394
|
+
var fromRecordIsParent = this.parent.currentViewData[data.parentIndex].hasChildRecords;
|
|
395
|
+
var toRecordIsParent = this.parent.currentViewData[data.childIndex].hasChildRecords;
|
|
396
|
+
var fromRecordIsManual = this.parent.currentViewData[data.parentIndex].ganttProperties.isAutoSchedule;
|
|
397
|
+
var toRecordIsManual = this.parent.currentViewData[data.childIndex].ganttProperties.isAutoSchedule;
|
|
398
|
+
var isValid = true;
|
|
399
|
+
if (((fromRecordIsParent && fromRecordIsManual) && !toRecordIsParent) || ((toRecordIsParent && toRecordIsManual) &&
|
|
400
|
+
!fromRecordIsParent) || (fromRecordIsParent && fromRecordIsManual && toRecordIsManual && toRecordIsParent)
|
|
401
|
+
|| (!fromRecordIsParent && !toRecordIsParent)) {
|
|
402
|
+
isValid = false;
|
|
403
|
+
}
|
|
404
|
+
if (isValid) {
|
|
405
|
+
if (((fromRecordIsParent && !fromRecordIsManual) && (toRecordIsParent && !toRecordIsManual))) {
|
|
406
|
+
addTop = -11;
|
|
407
|
+
}
|
|
408
|
+
else if (!((fromRecordIsParent && !fromRecordIsManual) && (toRecordIsParent && !toRecordIsManual))) {
|
|
409
|
+
if (data.childIndex > data.parentIndex) {
|
|
410
|
+
if (!fromRecordIsParent && toRecordIsParent) {
|
|
411
|
+
borderTopWidth = -11;
|
|
412
|
+
}
|
|
413
|
+
else {
|
|
414
|
+
borderTopWidth = 11;
|
|
415
|
+
addTop = -11;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
else {
|
|
419
|
+
if ((fromRecordIsParent && !toRecordIsParent)) {
|
|
420
|
+
borderTopWidth = -11;
|
|
421
|
+
}
|
|
422
|
+
else {
|
|
423
|
+
borderTopWidth = 11;
|
|
424
|
+
addTop = -11;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
if (this.parent.currentViewData[data.parentIndex].ganttProperties.isMilestone) {
|
|
429
|
+
if (data.parentIndex > data.childIndex) {
|
|
430
|
+
addTop = -5;
|
|
431
|
+
borderTopWidth = 10;
|
|
432
|
+
}
|
|
433
|
+
else if (data.type === 'SS' || data.type === 'FF') {
|
|
434
|
+
addTop = -5;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
else if (this.parent.currentViewData[data.childIndex].ganttProperties.isMilestone) {
|
|
438
|
+
if (data.parentIndex > data.childIndex) {
|
|
439
|
+
addTop = 5;
|
|
440
|
+
borderTopWidth = -10;
|
|
441
|
+
}
|
|
442
|
+
else if (data.type === 'SS' || data.type === 'FF') {
|
|
443
|
+
addTop = 5;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
380
448
|
if (this.getParentPosition(data)) {
|
|
381
449
|
connectorContainer = '<div id="ConnectorLine' + data.connectorLineId + '" style="background-color:black">';
|
|
382
450
|
var div = '<div class="' + cls.connectorLineContainer +
|
|
@@ -396,7 +464,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
396
464
|
'border-top-width:' + (5 + this.lineStroke) + 'px;width:0;height:0;position:relative;"></div>';
|
|
397
465
|
var duplicateStingThree = this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>' + eLine +
|
|
398
466
|
'top:' + (-(13 + ((this.lineStroke - 1) * 2))) + 'px;width:0px;' + this.getBorderStyles('left', this.lineStroke) +
|
|
399
|
-
this.getBorderStyles('top', (heightValue - (this.lineStroke - 1))) + 'position:relative;"></div>';
|
|
467
|
+
this.getBorderStyles('top', (heightValue + borderTopWidth - (this.lineStroke - 1))) + 'position:relative;"></div>';
|
|
400
468
|
var duplicateStingFour = leftArrow + 'left:' +
|
|
401
469
|
(((data.childLeft + data.childWidth) - (data.parentLeft)) + 10) + 'px;' +
|
|
402
470
|
this.getBorderStyles('right', 10);
|
|
@@ -404,7 +472,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
404
472
|
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
|
|
405
473
|
if (this.getParentPosition(data) === 'FSType1') {
|
|
406
474
|
div = div + 'left:' + (data.parentLeft + data.parentWidth) + 'px;top:' + (isVirtual ? connectorLine.top :
|
|
407
|
-
((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
475
|
+
((data.parentIndex * data.rowHeight) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
408
476
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FSType1">';
|
|
409
477
|
div = div + eLine;
|
|
410
478
|
div = div + 'left:' + (isMilestoneParent ? -1 : 0) + 'px;width:' + (isMilestoneParent ?
|
|
@@ -414,7 +482,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
414
482
|
div = div + eLine;
|
|
415
483
|
div = div + 'left:' + ((data.childLeft - (data.parentLeft + data.parentWidth + 10)) - 10) + 'px;' +
|
|
416
484
|
'width:0px;' + this.getBorderStyles('right', this.lineStroke) +
|
|
417
|
-
this.getBorderStyles('top', (heightValue - this.lineStroke)) + 'position:relative;"></div>';
|
|
485
|
+
this.getBorderStyles('top', (heightValue + borderTopWidth - this.lineStroke)) + 'position:relative;"></div>';
|
|
418
486
|
div = div + eLine;
|
|
419
487
|
div = div + 'left:' + ((data.childLeft - (data.parentLeft + data.parentWidth + 10)) - 10) + 'px;width:10px;' +
|
|
420
488
|
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
|
|
@@ -424,7 +492,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
424
492
|
'px;border-top-width:' + (5 + this.lineStroke) + 'px;width:0;height:0;position:relative;"></div></div>';
|
|
425
493
|
}
|
|
426
494
|
if (this.getParentPosition(data) === 'FSType2') {
|
|
427
|
-
div = div + 'left:' + data.parentLeft + 'px;top:' + (isVirtual ? connectorLine.top : ((data.parentIndex * data.rowHeight) +
|
|
495
|
+
div = div + 'left:' + data.parentLeft + 'px;top:' + (isVirtual ? connectorLine.top : ((data.parentIndex * data.rowHeight) + addTop +
|
|
428
496
|
this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
429
497
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FSType2">';
|
|
430
498
|
div = div + eLine;
|
|
@@ -434,7 +502,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
434
502
|
div = div + eLine;
|
|
435
503
|
div = div + 'left:' + (data.parentWidth + 10 - this.lineStroke) + 'px;' +
|
|
436
504
|
this.getBorderStyles('left', this.lineStroke) + 'width:0px;' +
|
|
437
|
-
this.getBorderStyles('top', (heightValue - this.getconnectorLineGap(data) - this.lineStroke)) + 'position:relative;"></div>';
|
|
505
|
+
this.getBorderStyles('top', (heightValue + borderTopWidth - this.getconnectorLineGap(data) - this.lineStroke)) + 'position:relative;"></div>';
|
|
438
506
|
div = div + eLine;
|
|
439
507
|
div = div + 'left:' + (data.parentWidth - (((data.parentLeft + data.parentWidth) - data.childLeft) + 20)) + 'px;' +
|
|
440
508
|
'width:' + (((data.parentLeft + data.parentWidth) - data.childLeft) + 30) + 'px;' +
|
|
@@ -456,7 +524,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
456
524
|
}
|
|
457
525
|
if (this.getParentPosition(data) === 'FSType3') {
|
|
458
526
|
div = div + 'left:' + (data.childLeft - 20) + 'px;top:' + (isVirtual ? connectorLine.top :
|
|
459
|
-
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
527
|
+
((data.childIndex * data.rowHeight) + addTop + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
460
528
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FSType3">';
|
|
461
529
|
div = div + rightArrow;
|
|
462
530
|
div = div + 'left:10px;' + this.getBorderStyles('left', 10) +
|
|
@@ -466,7 +534,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
466
534
|
div = div + 'width:10px;' + this.getBorderStyles('top', this.lineStroke) +
|
|
467
535
|
'position:relative;top:' + (-(6 + (5 + this.lineStroke) + Math.round(this.lineStroke / 2))) + 'px;"></div>';
|
|
468
536
|
div = div + eLine;
|
|
469
|
-
div = div + 'width:' + this.lineStroke + 'px;' + this.getBorderStyles('top', (heightValue - this.getconnectorLineGap(data) - this.lineStroke + 1)) +
|
|
537
|
+
div = div + 'width:' + this.lineStroke + 'px;' + this.getBorderStyles('top', (heightValue + borderTopWidth - this.getconnectorLineGap(data) - this.lineStroke + 1)) +
|
|
470
538
|
'position:relative;top:' + (-(13 + ((this.lineStroke - 1) * 2))) + 'px;"></div>';
|
|
471
539
|
div = div + eLine;
|
|
472
540
|
div = div + 'width:' + (((data.parentLeft + data.parentWidth) - data.childLeft) + 30) + 'px;' +
|
|
@@ -486,7 +554,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
486
554
|
}
|
|
487
555
|
if (this.getParentPosition(data) === 'FSType4') {
|
|
488
556
|
div = div + 'left:' + (data.parentLeft + data.parentWidth) + 'px;top:' + (isVirtual ? connectorLine.top :
|
|
489
|
-
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
557
|
+
((data.childIndex * data.rowHeight) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
490
558
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FSType4">';
|
|
491
559
|
div = div + rightArrow;
|
|
492
560
|
div = div + 'left:' + (data.childLeft - (data.parentLeft + data.parentWidth + 10)) + 'px;' +
|
|
@@ -502,7 +570,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
502
570
|
div = div + 'top:' + (-(13 + ((this.lineStroke - 1) * 2))) + 'px;left:' +
|
|
503
571
|
(data.childLeft - (data.parentLeft + data.parentWidth) - 20) + 'px;width:0px;' +
|
|
504
572
|
this.getBorderStyles('left', this.lineStroke) +
|
|
505
|
-
this.getBorderStyles('top', (heightValue - this.lineStroke + 1)) + 'position:relative;"></div>';
|
|
573
|
+
this.getBorderStyles('top', (heightValue + borderTopWidth - this.lineStroke + 1)) + 'position:relative;"></div>';
|
|
506
574
|
div = div + eLine;
|
|
507
575
|
div = div + (isMilestoneParent ? 'left:-1px;' : '') + 'top:' +
|
|
508
576
|
(-(13 + ((this.lineStroke - 1) * 2))) + 'px;width:' +
|
|
@@ -512,7 +580,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
512
580
|
}
|
|
513
581
|
if (this.getParentPosition(data) === 'SSType4') {
|
|
514
582
|
div = div + 'left:' + (data.parentLeft - 10) + 'px;top:' + (isVirtual ? connectorLine.top :
|
|
515
|
-
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
583
|
+
((data.childIndex * data.rowHeight) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
516
584
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SSType4">';
|
|
517
585
|
div = div + rightArrow;
|
|
518
586
|
div = div + 'left:' + (data.childLeft - data.parentLeft) + 'px;' + duplicateStingTwo;
|
|
@@ -525,7 +593,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
525
593
|
}
|
|
526
594
|
if (this.getParentPosition(data) === 'SSType3') {
|
|
527
595
|
div = div + 'left:' + (data.childLeft - 20) + 'px;top:' + (isVirtual ? connectorLine.top :
|
|
528
|
-
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
596
|
+
((data.childIndex * data.rowHeight) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
529
597
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SSType3">';
|
|
530
598
|
div = div + rightArrow;
|
|
531
599
|
div = div + 'left:10px;' + duplicateStingTwo;
|
|
@@ -538,14 +606,14 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
538
606
|
}
|
|
539
607
|
if (this.getParentPosition(data) === 'SSType2') {
|
|
540
608
|
div = div + 'left:' + setInnerElementLeftSSType2 + 'px;top:' + (isVirtual ? connectorLine.top :
|
|
541
|
-
((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
609
|
+
((data.parentIndex * data.rowHeight) + addTop + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
542
610
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SSType2">';
|
|
543
611
|
div = div + eLine;
|
|
544
612
|
div = div + 'width:' + (setInnerChildWidthSSType2 + 1) + 'px;' +
|
|
545
613
|
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
|
|
546
614
|
div = div + eLine;
|
|
547
615
|
div = div + 'width:0px;' + this.getBorderStyles('left', this.lineStroke) +
|
|
548
|
-
this.getBorderStyles('top', (heightValue - this.lineStroke)) + 'position:relative;"></div>';
|
|
616
|
+
this.getBorderStyles('top', (heightValue + borderTopWidth - this.lineStroke)) + 'position:relative;"></div>';
|
|
549
617
|
div = div + eLine;
|
|
550
618
|
div = div + 'width:' + setInnerElementWidthSSType2 + 'px;' +
|
|
551
619
|
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
|
|
@@ -558,7 +626,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
558
626
|
}
|
|
559
627
|
if (this.getParentPosition(data) === 'SSType1') {
|
|
560
628
|
div = div + 'left:' + (data.childLeft - 20) + 'px;top:' + (isVirtual ? connectorLine.top :
|
|
561
|
-
((data.parentIndex * data.rowHeight) +
|
|
629
|
+
((data.parentIndex * data.rowHeight) + addTop +
|
|
562
630
|
this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
563
631
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SSType1">';
|
|
564
632
|
div = div + eLine;
|
|
@@ -566,7 +634,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
566
634
|
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
|
|
567
635
|
div = div + eLine;
|
|
568
636
|
div = div + 'width:0px;' + this.getBorderStyles('left', this.lineStroke) +
|
|
569
|
-
this.getBorderStyles('top', (heightValue - this.lineStroke)) + 'position:relative;"></div>';
|
|
637
|
+
this.getBorderStyles('top', (heightValue + borderTopWidth - this.lineStroke)) + 'position:relative;"></div>';
|
|
570
638
|
div = div + eLine;
|
|
571
639
|
div = div + 'width:10px;' + this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
|
|
572
640
|
div = div + rightArrow;
|
|
@@ -576,7 +644,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
576
644
|
}
|
|
577
645
|
if (this.getParentPosition(data) === 'FFType1') {
|
|
578
646
|
div = div + 'left:' + (data.childLeft + data.childWidth) + 'px;top:' + (isVirtual ? connectorLine.top :
|
|
579
|
-
((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
647
|
+
((data.parentIndex * data.rowHeight) + addTop + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
580
648
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FFType1">';
|
|
581
649
|
div = div + eLine;
|
|
582
650
|
div = div + 'left:' + (isMilestoneParent ? (((data.parentLeft + data.parentWidth) -
|
|
@@ -587,7 +655,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
587
655
|
div = div + eLine;
|
|
588
656
|
div = div + 'left:' + (((data.parentLeft + data.parentWidth) -
|
|
589
657
|
(data.childLeft + data.childWidth)) + 20) + 'px;width:0px;' + this.getBorderStyles('left', this.lineStroke) +
|
|
590
|
-
this.getBorderStyles('top', (heightValue - this.lineStroke)) + 'position:relative;"></div>';
|
|
658
|
+
this.getBorderStyles('top', (heightValue + borderTopWidth - this.lineStroke)) + 'position:relative;"></div>';
|
|
591
659
|
div = div + eLine;
|
|
592
660
|
div = div + 'left:' + (isMilestone ? 4 : 10) + 'px;width:' + (isMilestone ?
|
|
593
661
|
(((data.parentLeft + data.parentWidth) - (data.childLeft + data.childWidth)) + (16 + this.lineStroke)) :
|
|
@@ -600,7 +668,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
600
668
|
}
|
|
601
669
|
if (this.getParentPosition(data) === 'FFType2') {
|
|
602
670
|
div = div + 'left:' + (data.parentLeft + data.parentWidth) + 'px;top:' + (isVirtual ? connectorLine.top :
|
|
603
|
-
((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
671
|
+
((data.parentIndex * data.rowHeight) + addTop + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
604
672
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FFType2">';
|
|
605
673
|
div = div + eLine;
|
|
606
674
|
div = div + (isMilestoneParent ? 'left:-1px;' : '') + 'width:' +
|
|
@@ -611,7 +679,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
611
679
|
div = div + eLine;
|
|
612
680
|
div = div + 'left:' + (((data.childLeft + data.childWidth) - (data.parentLeft + data.parentWidth)) + 20) +
|
|
613
681
|
'px;width:0px;' + this.getBorderStyles('left', this.lineStroke) +
|
|
614
|
-
this.getBorderStyles('top', (heightValue - this.lineStroke)) +
|
|
682
|
+
this.getBorderStyles('top', (heightValue + borderTopWidth - this.lineStroke)) +
|
|
615
683
|
'position:relative;"></div>';
|
|
616
684
|
div = div + eLine;
|
|
617
685
|
div = div + 'left:' + (isMilestone ? (((data.childLeft + data.childWidth) - (data.parentLeft + data.parentWidth)) + 4) :
|
|
@@ -626,7 +694,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
626
694
|
}
|
|
627
695
|
if (this.getParentPosition(data) === 'FFType3') {
|
|
628
696
|
div = div + 'left:' + (data.childLeft + data.childWidth) + 'px;top:' + (isVirtual ? connectorLine.top :
|
|
629
|
-
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
697
|
+
((data.childIndex * data.rowHeight) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
630
698
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FFType3">';
|
|
631
699
|
div = div + duplicateStingOne;
|
|
632
700
|
div = div + eLine;
|
|
@@ -639,7 +707,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
639
707
|
div = div + 'left:' + (((data.parentLeft + data.parentWidth) - (data.childLeft + data.childWidth)) + 20) +
|
|
640
708
|
'px;top:' + (-(13 + ((this.lineStroke - 1) * 2))) + 'px;' +
|
|
641
709
|
'width:0px;' + this.getBorderStyles('left', this.lineStroke) +
|
|
642
|
-
this.getBorderStyles('top', (heightValue - this.lineStroke + 1)) + 'position:relative;"></div>';
|
|
710
|
+
this.getBorderStyles('top', (heightValue + borderTopWidth - this.lineStroke + 1)) + 'position:relative;"></div>';
|
|
643
711
|
div = div + eLine;
|
|
644
712
|
div = div + (isMilestoneParent ? ('left:' + (((data.parentLeft + data.parentWidth) -
|
|
645
713
|
(data.childLeft + data.childWidth)) - 1) + 'px;width:21') : ('left:' + ((data.parentLeft + data.parentWidth) -
|
|
@@ -649,7 +717,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
649
717
|
}
|
|
650
718
|
if (this.getParentPosition(data) === 'FFType4') {
|
|
651
719
|
div = div + 'left:' + (data.parentLeft + data.parentWidth) + 'px;top:' + (isVirtual ? connectorLine.top :
|
|
652
|
-
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
720
|
+
((data.childIndex * data.rowHeight) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
653
721
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FFType4">';
|
|
654
722
|
div = div + leftArrow;
|
|
655
723
|
div = div + ('left:' + ((data.childLeft + data.childWidth) -
|
|
@@ -668,7 +736,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
668
736
|
div = div + 'left:' + (((data.childLeft + data.childWidth) -
|
|
669
737
|
(data.parentLeft + data.parentWidth)) + 20) + 'px;top:' + (-(13 + ((this.lineStroke - 1) * 2))) +
|
|
670
738
|
'px;width:0px;' + this.getBorderStyles('left', this.lineStroke) +
|
|
671
|
-
this.getBorderStyles('top', (heightValue - this.lineStroke + 1)) + 'position:relative;"></div>';
|
|
739
|
+
this.getBorderStyles('top', (heightValue + borderTopWidth - this.lineStroke + 1)) + 'position:relative;"></div>';
|
|
672
740
|
div = div + eLine;
|
|
673
741
|
div = div + (isMilestoneParent ? ('left:-1px;width:' + (((data.childLeft + data.childWidth) -
|
|
674
742
|
(data.parentLeft + data.parentWidth)) + (21 + this.lineStroke))) : ('width:' + (((data.childLeft + data.childWidth) -
|
|
@@ -678,7 +746,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
678
746
|
}
|
|
679
747
|
if (this.getParentPosition(data) === 'SFType4') {
|
|
680
748
|
div = div + 'left:' + (data.parentLeft - 10) + 'px;top:' + (isVirtual ? connectorLine.top :
|
|
681
|
-
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;width:1px;' +
|
|
749
|
+
((data.childIndex * data.rowHeight) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;width:1px;' +
|
|
682
750
|
'height:' + heightValue + 'px;position:absolute" data-connectortype="SFType4">';
|
|
683
751
|
div = div + duplicateStingFour + 'top:' + (-5 - this.lineStroke + (this.lineStroke - 1)) + 'px;' +
|
|
684
752
|
'border-bottom-width:' + (5 + this.lineStroke) +
|
|
@@ -691,7 +759,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
691
759
|
div = div + eLine;
|
|
692
760
|
div = div + 'left:' + (((data.childLeft + data.childWidth) - (data.parentLeft)) + 30) + 'px;top:' +
|
|
693
761
|
(-(13 + ((this.lineStroke - 1) * 2))) + 'px;width:0px;' + this.getBorderStyles('left', this.lineStroke) +
|
|
694
|
-
this.getBorderStyles('top', (heightValue - this.getconnectorLineGap(data) - (this.lineStroke - 1))) + 'position:relative;"></div>';
|
|
762
|
+
this.getBorderStyles('top', (heightValue + borderTopWidth - this.getconnectorLineGap(data) - (this.lineStroke - 1))) + 'position:relative;"></div>';
|
|
695
763
|
div = div + eLine;
|
|
696
764
|
div = div + 'top:' + (-(13 + ((this.lineStroke - 1) * 2))) + 'px;width:' +
|
|
697
765
|
(((data.childLeft + data.childWidth) - (data.parentLeft)) + (30 + this.lineStroke)) + 'px;' +
|
|
@@ -706,7 +774,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
706
774
|
}
|
|
707
775
|
if (this.getParentPosition(data) === 'SFType3') {
|
|
708
776
|
div = div + 'left:' + (data.childLeft + data.childWidth) + 'px;top:' + (isVirtual ? connectorLine.top :
|
|
709
|
-
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
777
|
+
((data.childIndex * data.rowHeight) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
710
778
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SFType3">';
|
|
711
779
|
div = div + duplicateStingOne;
|
|
712
780
|
div = div + eLine;
|
|
@@ -716,7 +784,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
716
784
|
div = div + eLine;
|
|
717
785
|
div = div + 'left:20px;top:' + (-(13 + ((this.lineStroke - 1) * 2))) + 'px;width:0px;' +
|
|
718
786
|
this.getBorderStyles('left', this.lineStroke) +
|
|
719
|
-
this.getBorderStyles('top', (heightValue - (this.lineStroke - 1))) + 'position:relative;"></div>';
|
|
787
|
+
this.getBorderStyles('top', (heightValue + borderTopWidth - (this.lineStroke - 1))) + 'position:relative;"></div>';
|
|
720
788
|
div = div + eLine;
|
|
721
789
|
div = div + 'left:20px;top:' + (-(13 + ((this.lineStroke - 1) * 2))) + 'px;width:' +
|
|
722
790
|
((data.parentLeft - (data.childLeft + data.childWidth + 20)) + this.lineStroke) + 'px;' +
|
|
@@ -724,13 +792,13 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
724
792
|
}
|
|
725
793
|
if (this.getParentPosition(data) === 'SFType1') {
|
|
726
794
|
div = div + 'left:' + (data.parentLeft - 10) + 'px;top:' + (isVirtual ? connectorLine.top :
|
|
727
|
-
((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
795
|
+
((data.parentIndex * data.rowHeight) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
728
796
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SFType1">';
|
|
729
797
|
div = div + eLine;
|
|
730
798
|
div = div + 'width:11px;' + this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
|
|
731
799
|
div = div + eLine;
|
|
732
800
|
div = div + 'width:0px;' + this.getBorderStyles('left', this.lineStroke) +
|
|
733
|
-
this.getBorderStyles('top', (heightValue - this.getconnectorLineGap(data) - this.lineStroke)) + 'position:relative;"></div>';
|
|
801
|
+
this.getBorderStyles('top', (heightValue + borderTopWidth - this.getconnectorLineGap(data) - this.lineStroke)) + 'position:relative;"></div>';
|
|
734
802
|
div = div + eLine;
|
|
735
803
|
div = div + 'width:' + (((data.childLeft + data.childWidth) - (data.parentLeft)) + (30 + this.lineStroke)) + 'px;' +
|
|
736
804
|
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
|
|
@@ -749,7 +817,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
749
817
|
}
|
|
750
818
|
if (this.getParentPosition(data) === 'SFType2') {
|
|
751
819
|
div = div + 'left:' + (data.childLeft + data.childWidth) + 'px;top:' + (isVirtual ? connectorLine.top :
|
|
752
|
-
((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
820
|
+
((data.parentIndex * data.rowHeight) + addTop + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
753
821
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SFType2">';
|
|
754
822
|
div = div + eLine;
|
|
755
823
|
div = div + 'left:' + (((data.parentLeft) - (data.childLeft + data.childWidth)) - 10) +
|
|
@@ -757,7 +825,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
757
825
|
div = div + eLine;
|
|
758
826
|
div = div + 'left:' + (((data.parentLeft) - (data.childLeft + data.childWidth)) - 10) +
|
|
759
827
|
'px;width:0px;' + this.getBorderStyles('left', this.lineStroke) +
|
|
760
|
-
this.getBorderStyles('top', (heightValue - this.lineStroke)) + 'position:relative;"></div>';
|
|
828
|
+
this.getBorderStyles('top', (heightValue + borderTopWidth - this.lineStroke)) + 'position:relative;"></div>';
|
|
761
829
|
div = div + eLine;
|
|
762
830
|
div = div + (isMilestone ? ('left:4px;width:' + (((data.parentLeft) - (data.childLeft + data.childWidth))
|
|
763
831
|
- (14 - this.lineStroke))) : ('left:10px;width:' + (((data.parentLeft) -
|
|
@@ -15,7 +15,7 @@ var EventMarker = /** @class */ (function () {
|
|
|
15
15
|
this.eventMarkersContainer = createElement('div', {
|
|
16
16
|
className: cls.eventMarkersContainer
|
|
17
17
|
});
|
|
18
|
-
this.eventMarkersContainer.setAttribute("role", "
|
|
18
|
+
this.eventMarkersContainer.setAttribute("role", "term");
|
|
19
19
|
this.parent.ganttChartModule.chartBodyContent.appendChild(this.eventMarkersContainer);
|
|
20
20
|
}
|
|
21
21
|
this.eventMarkersContainer.innerHTML = '';
|
|
@@ -19,7 +19,6 @@ var NonWorkingDay = /** @class */ (function () {
|
|
|
19
19
|
this.nonworkingContainer = createElement('div', {
|
|
20
20
|
className: cls.nonworkingContainer
|
|
21
21
|
});
|
|
22
|
-
this.nonworkingContainer.setAttribute("role", "NonWorkingDays");
|
|
23
22
|
this.parent.ganttChartModule.chartBodyContent.appendChild(this.nonworkingContainer);
|
|
24
23
|
}
|
|
25
24
|
};
|
|
@@ -387,7 +387,8 @@ var Tooltip = /** @class */ (function () {
|
|
|
387
387
|
*/
|
|
388
388
|
Tooltip.prototype.getPredecessorTooltipData = function (args) {
|
|
389
389
|
var predeceesorParent = args.target.parentElement.id;
|
|
390
|
-
var taskIds = predeceesorParent.match(
|
|
390
|
+
var taskIds = predeceesorParent.match(/ConnectorLineparent(.*)child(.*)/);
|
|
391
|
+
taskIds.shift();
|
|
391
392
|
var fromTask;
|
|
392
393
|
var toTask;
|
|
393
394
|
if (this.parent.viewType === 'ResourceView') {
|