@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.
- package/CHANGELOG.md +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 +167 -70
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +185 -78
- 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 +18 -18
- package/src/gantt/actions/cell-edit.js +2 -1
- package/src/gantt/actions/dialog-edit.js +2 -1
- package/src/gantt/actions/edit.js +11 -2
- package/src/gantt/actions/rowdragdrop.js +37 -15
- package/src/gantt/base/date-processor.js +0 -1
- package/src/gantt/base/gantt-chart.js +9 -4
- package/src/gantt/base/gantt.js +2 -2
- package/src/gantt/base/splitter.js +1 -0
- package/src/gantt/base/tree-grid.js +3 -1
- package/src/gantt/renderer/chart-rows.js +36 -24
- 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 +37 -1
- package/src/gantt/renderer/tooltip.js +10 -3
- package/styles/bootstrap-dark.css +37 -10
- package/styles/bootstrap.css +37 -10
- package/styles/bootstrap4.css +37 -10
- package/styles/bootstrap5-dark.css +53 -19
- package/styles/bootstrap5.css +53 -19
- package/styles/fabric-dark.css +34 -7
- package/styles/fabric.css +37 -10
- package/styles/fluent-dark.css +1942 -0
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.css +1942 -0
- package/styles/fluent.scss +1 -0
- package/styles/gantt/_bootstrap-dark-definition.scss +10 -2
- package/styles/gantt/_bootstrap-definition.scss +11 -3
- package/styles/gantt/_bootstrap4-definition.scss +10 -2
- package/styles/gantt/_bootstrap5-definition.scss +17 -9
- package/styles/gantt/_fabric-dark-definition.scss +8 -0
- package/styles/gantt/_fabric-definition.scss +10 -2
- package/styles/gantt/_fluent-dark-definition.scss +1 -0
- package/styles/gantt/_fluent-definition.scss +21 -13
- package/styles/gantt/_highcontrast-definition.scss +9 -1
- package/styles/gantt/_highcontrast-light-definition.scss +9 -1
- package/styles/gantt/_layout.scss +53 -2
- package/styles/gantt/_material-dark-definition.scss +9 -1
- package/styles/gantt/_material-definition.scss +10 -2
- package/styles/gantt/_tailwind-definition.scss +13 -5
- package/styles/gantt/_theme.scss +2 -5
- package/styles/gantt/bootstrap-dark.css +37 -10
- package/styles/gantt/bootstrap.css +37 -10
- package/styles/gantt/bootstrap4.css +37 -10
- package/styles/gantt/bootstrap5-dark.css +53 -19
- package/styles/gantt/bootstrap5.css +53 -19
- package/styles/gantt/fabric-dark.css +34 -7
- package/styles/gantt/fabric.css +37 -10
- package/styles/gantt/fluent-dark.css +1942 -0
- package/styles/gantt/fluent-dark.scss +22 -0
- package/styles/gantt/fluent.css +1942 -0
- package/styles/gantt/fluent.scss +22 -0
- package/styles/gantt/highcontrast-light.css +34 -7
- package/styles/gantt/highcontrast.css +34 -7
- package/styles/gantt/icons/_fluent-dark.scss +1 -0
- package/styles/gantt/icons/_fluent.scss +1 -1
- package/styles/gantt/icons/_tailwind-dark.scss +28 -29
- package/styles/gantt/icons/_tailwind.scss +26 -27
- package/styles/gantt/material-dark.css +37 -10
- package/styles/gantt/material.css +37 -10
- package/styles/gantt/tailwind-dark.css +70 -99
- package/styles/gantt/tailwind.css +70 -99
- package/styles/highcontrast-light.css +34 -7
- package/styles/highcontrast.css +34 -7
- package/styles/material-dark.css +37 -10
- package/styles/material.css +37 -10
- package/styles/tailwind-dark.css +70 -99
- package/styles/tailwind.css +70 -99
|
@@ -484,7 +484,6 @@ var DateProcessor = /** @__PURE__ @class */ (function () {
|
|
|
484
484
|
tDuration = this.parent.editModule.taskbarEditModule.sumOfDuration(ganttProperties.segments);
|
|
485
485
|
}
|
|
486
486
|
else {
|
|
487
|
-
// eslint-disable-next-line
|
|
488
487
|
if (!isNullOrUndefined(ganttProperties.startDate) && !isNullOrUndefined(ganttProperties.endDate) &&
|
|
489
488
|
(ganttProperties.startDate).getTime() === (ganttProperties.endDate).getTime() && !isNullOrUndefined(ganttData.taskData[this.parent.taskFields.milestone])) {
|
|
490
489
|
tDuration = 1;
|
|
@@ -4130,6 +4129,7 @@ var GanttChart = /** @__PURE__ @class */ (function () {
|
|
|
4130
4129
|
this.chartTimelineContainer = null;
|
|
4131
4130
|
this.rangeViewContainer =
|
|
4132
4131
|
createElement('div', { className: rangeContainer });
|
|
4132
|
+
this.rangeViewContainer.setAttribute("role", "RangeContainer");
|
|
4133
4133
|
this.virtualRender = new VirtualContentRenderer(this.parent);
|
|
4134
4134
|
this.addEventListener();
|
|
4135
4135
|
}
|
|
@@ -4284,6 +4284,7 @@ var GanttChart = /** @__PURE__ @class */ (function () {
|
|
|
4284
4284
|
GanttChart.prototype.renderTimelineContainer = function () {
|
|
4285
4285
|
this.chartTimelineContainer =
|
|
4286
4286
|
createElement('div', { className: timelineHeaderContainer });
|
|
4287
|
+
this.chartTimelineContainer.setAttribute("role", "TimelineHeader");
|
|
4287
4288
|
this.chartElement.appendChild(this.chartTimelineContainer);
|
|
4288
4289
|
};
|
|
4289
4290
|
/**
|
|
@@ -4335,8 +4336,7 @@ var GanttChart = /** @__PURE__ @class */ (function () {
|
|
|
4335
4336
|
else {
|
|
4336
4337
|
this.chartBodyContent.style.height = contentElement['offsetHeight'] + 'px';
|
|
4337
4338
|
}
|
|
4338
|
-
}
|
|
4339
|
-
//let element: HTMLElement = this.chartTimelineContainer.querySelector('.' + cls.timelineHeaderTableContainer);
|
|
4339
|
+
} //let element: HTMLElement = this.chartTimelineContainer.querySelector('.' + cls.timelineHeaderTableContainer);
|
|
4340
4340
|
this.chartBodyContent.style.width = formatUnit(this.parent.timelineModule.totalTimelineWidth);
|
|
4341
4341
|
this.setVirtualHeight();
|
|
4342
4342
|
this.parent.notify('updateHeight', {});
|
|
@@ -4514,7 +4514,7 @@ var GanttChart = /** @__PURE__ @class */ (function () {
|
|
|
4514
4514
|
var target = e.target;
|
|
4515
4515
|
var isOnTaskbarElement = e.target.classList.contains(taskBarMainContainer)
|
|
4516
4516
|
|| closest(e.target, '.' + taskBarMainContainer);
|
|
4517
|
-
if (closest(target, '.e-gantt-parent-taskbar')) {
|
|
4517
|
+
if (closest(target, '.e-gantt-parent-taskbar') && !this.parent.editSettings.allowEditing) {
|
|
4518
4518
|
this.chartExpandCollapseRequest(e);
|
|
4519
4519
|
}
|
|
4520
4520
|
else if (!isOnTaskbarElement && this.parent.autoFocusTasks) {
|
|
@@ -5038,6 +5038,10 @@ var GanttChart = /** @__PURE__ @class */ (function () {
|
|
|
5038
5038
|
$target.classList.contains('e-headercell') || $target.closest('.e-segmented-taskbar')) {
|
|
5039
5039
|
e.preventDefault();
|
|
5040
5040
|
}
|
|
5041
|
+
if (isTab && $target.classList.contains('e-rowdragdrop')) {
|
|
5042
|
+
this.parent.treeGrid.grid.notify('key-pressed', e);
|
|
5043
|
+
return;
|
|
5044
|
+
}
|
|
5041
5045
|
if ($target.classList.contains('e-rowcell') && (nextElement && nextElement.classList.contains('e-rowcell')) ||
|
|
5042
5046
|
$target.classList.contains('e-headercell')) { // eslint-disable-line
|
|
5043
5047
|
if (isTab) {
|
|
@@ -5080,7 +5084,7 @@ var GanttChart = /** @__PURE__ @class */ (function () {
|
|
|
5080
5084
|
else {
|
|
5081
5085
|
this.manageFocus($target, 'remove', true);
|
|
5082
5086
|
}
|
|
5083
|
-
if (nextElement.classList.contains('e-rowcell')) {
|
|
5087
|
+
if (nextElement.classList.contains('e-rowcell') && $target.nextElementSibling) {
|
|
5084
5088
|
if (!$target.classList.contains('e-rowcell')) {
|
|
5085
5089
|
this.parent.treeGrid.grid.notify('key-pressed', e);
|
|
5086
5090
|
var fmodule = getValue('focusModule', this.parent.treeGrid.grid);
|
|
@@ -6179,6 +6183,40 @@ var Timeline = /** @__PURE__ @class */ (function () {
|
|
|
6179
6183
|
} while ((startDate < endDate));
|
|
6180
6184
|
return parentTh;
|
|
6181
6185
|
};
|
|
6186
|
+
Timeline.prototype.updateTimelineAfterZooming = function (endDate, resized) {
|
|
6187
|
+
var timeDiff;
|
|
6188
|
+
var perDayWidth;
|
|
6189
|
+
var totWidth;
|
|
6190
|
+
var contentElement = document.getElementsByClassName('e-chart-scroll-container e-content')[0];
|
|
6191
|
+
if (!isNullOrUndefined(contentElement)) {
|
|
6192
|
+
var contentWidth = contentElement['offsetWidth'];
|
|
6193
|
+
var contentHeight = contentElement['offsetHeight'];
|
|
6194
|
+
var scrollHeight = document.getElementsByClassName('e-chart-rows-container')[0]['offsetHeight'];
|
|
6195
|
+
timeDiff = Math.abs(this.timelineStartDate.getTime() - endDate.getTime());
|
|
6196
|
+
timeDiff = timeDiff / (1000 * 3600 * 24);
|
|
6197
|
+
if (this.bottomTier === 'None') {
|
|
6198
|
+
perDayWidth = this.getPerDayWidth(this.customTimelineSettings.timelineUnitSize, this.customTimelineSettings.topTier.count, this.topTier);
|
|
6199
|
+
}
|
|
6200
|
+
else {
|
|
6201
|
+
perDayWidth = this.getPerDayWidth(this.customTimelineSettings.timelineUnitSize, this.customTimelineSettings.bottomTier.count, this.bottomTier);
|
|
6202
|
+
}
|
|
6203
|
+
if (contentHeight < scrollHeight) {
|
|
6204
|
+
totWidth = (perDayWidth * timeDiff) + 17;
|
|
6205
|
+
}
|
|
6206
|
+
else {
|
|
6207
|
+
totWidth = (perDayWidth * timeDiff);
|
|
6208
|
+
}
|
|
6209
|
+
if (contentWidth >= totWidth) {
|
|
6210
|
+
var widthDiff = contentWidth - totWidth;
|
|
6211
|
+
widthDiff = Math.round(widthDiff / perDayWidth);
|
|
6212
|
+
endDate.setDate(endDate.getDate() + widthDiff);
|
|
6213
|
+
this.parent.timelineModule.timelineEndDate = endDate;
|
|
6214
|
+
if (resized) {
|
|
6215
|
+
this.parent.updateProjectDates(this.timelineStartDate, this.timelineEndDate, this.parent.isTimelineRoundOff);
|
|
6216
|
+
}
|
|
6217
|
+
}
|
|
6218
|
+
}
|
|
6219
|
+
};
|
|
6182
6220
|
Timeline.prototype.getTimelineRoundOffEndDate = function (date) {
|
|
6183
6221
|
var tierMode = this.topTier === 'None' ? this.bottomTier : this.topTier;
|
|
6184
6222
|
var endDate = new Date(date.toString());
|
|
@@ -6193,6 +6231,9 @@ var Timeline = /** @__PURE__ @class */ (function () {
|
|
|
6193
6231
|
endDate.setHours(24, 0, 0, 0);
|
|
6194
6232
|
}
|
|
6195
6233
|
}
|
|
6234
|
+
if (this.isZooming || this.parent.isLoad) {
|
|
6235
|
+
this.updateTimelineAfterZooming(endDate, false);
|
|
6236
|
+
}
|
|
6196
6237
|
return endDate;
|
|
6197
6238
|
};
|
|
6198
6239
|
/**
|
|
@@ -6262,7 +6303,6 @@ var Timeline = /** @__PURE__ @class */ (function () {
|
|
|
6262
6303
|
}
|
|
6263
6304
|
return increment;
|
|
6264
6305
|
};
|
|
6265
|
-
|
|
6266
6306
|
/**
|
|
6267
6307
|
* Method to find header cell was weekend or not
|
|
6268
6308
|
*
|
|
@@ -6844,6 +6884,8 @@ var GanttTreeGrid = /** @__PURE__ @class */ (function () {
|
|
|
6844
6884
|
GanttTreeGrid.prototype.renderTreeGrid = function () {
|
|
6845
6885
|
this.composeProperties();
|
|
6846
6886
|
this.bindEvents();
|
|
6887
|
+
var root = 'root';
|
|
6888
|
+
this.parent.treeGrid[root] = this.parent[root] ? this.parent[root] : this.parent;
|
|
6847
6889
|
this.parent.treeGrid.appendTo(this.treeGridElement);
|
|
6848
6890
|
this.wireEvents();
|
|
6849
6891
|
};
|
|
@@ -6907,7 +6949,7 @@ var GanttTreeGrid = /** @__PURE__ @class */ (function () {
|
|
|
6907
6949
|
var scrollWidth = this.getScrollbarWidth();
|
|
6908
6950
|
var isMobile = /Android|Mac|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
6909
6951
|
if (scrollWidth !== 0) {
|
|
6910
|
-
content.style.cssText += 'width: calc(100% + ' + scrollWidth + 'px);';
|
|
6952
|
+
content.style.cssText += 'width: calc(100% + ' + (scrollWidth + 1) + 'px);';
|
|
6911
6953
|
}
|
|
6912
6954
|
else {
|
|
6913
6955
|
content.classList.add('e-gantt-scroll-padding');
|
|
@@ -8251,7 +8293,7 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
8251
8293
|
_this.milestoneHeight = 0;
|
|
8252
8294
|
_this.milesStoneRadius = 0;
|
|
8253
8295
|
_this.baselineTop = 0;
|
|
8254
|
-
_this.baselineHeight =
|
|
8296
|
+
_this.baselineHeight = 8;
|
|
8255
8297
|
_this.touchLeftConnectorpoint = '';
|
|
8256
8298
|
_this.touchRightConnectorpoint = '';
|
|
8257
8299
|
_this.dropSplit = false;
|
|
@@ -8334,7 +8376,7 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
8334
8376
|
* @private
|
|
8335
8377
|
*/
|
|
8336
8378
|
ChartRows.prototype.getIndicatorNode = function (indicator) {
|
|
8337
|
-
var templateString = '<label class="' + label + ' ' + taskIndicatorDiv + '"
|
|
8379
|
+
var templateString = '<label class="' + label + ' ' + taskIndicatorDiv + '" role="LabelIndicator" style="line-height:'
|
|
8338
8380
|
+ (this.parent.rowHeight) + 'px;' +
|
|
8339
8381
|
'left:' + this.getIndicatorleft(indicator.date) + 'px;"><i class="' + indicator.iconClass + '"></i> </label>';
|
|
8340
8382
|
return this.createDivElement(templateString);
|
|
@@ -8407,9 +8449,9 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
8407
8449
|
}
|
|
8408
8450
|
else {
|
|
8409
8451
|
taskLabel$$1 = '<span class="' + taskLabel + '" style="line-height:' +
|
|
8410
|
-
(this.taskBarHeight - 1) + 'px;
|
|
8411
|
-
|
|
8412
|
-
|
|
8452
|
+
(this.taskBarHeight - 1) + 'px;' + (this.parent.viewType === 'ResourceView' ? 'text-align: left;' : '') +
|
|
8453
|
+
+(this.parent.viewType === 'ResourceView' ? 'display:inline-flex;' : '') +
|
|
8454
|
+
+(this.parent.viewType === 'ResourceView' ? (data.ganttProperties.width - 10) : '') + 'px; height:' +
|
|
8413
8455
|
this.taskBarHeight + 'px;">' + labelString + '</span>';
|
|
8414
8456
|
}
|
|
8415
8457
|
}
|
|
@@ -8826,7 +8868,7 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
8826
8868
|
*/
|
|
8827
8869
|
ChartRows.prototype.getTaskBaselineNode = function () {
|
|
8828
8870
|
var data = this.templateData;
|
|
8829
|
-
var template = '<div class="' + baselineBar + ' ' + '" style="margin-top:' + this.baselineTop +
|
|
8871
|
+
var template = '<div class="' + baselineBar + ' ' + '" role="BaselineBar" style="margin-top:' + this.baselineTop +
|
|
8830
8872
|
'px;left:' + data.ganttProperties.baselineLeft + 'px;' +
|
|
8831
8873
|
'width:' + data.ganttProperties.baselineWidth + 'px;height:' +
|
|
8832
8874
|
this.baselineHeight + 'px;' + (this.baselineColor ? 'background-color: ' + this.baselineColor + ';' : '') + '"></div>';
|
|
@@ -8840,9 +8882,10 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
8840
8882
|
*/
|
|
8841
8883
|
ChartRows.prototype.getMilestoneBaselineNode = function () {
|
|
8842
8884
|
var data = this.templateData;
|
|
8885
|
+
var baselineMilestoneHeight = this.parent.renderBaseline ? 5 : 2;
|
|
8843
8886
|
var template = '<div class="' + baselineMilestoneContainer + ' ' + '" style="' +
|
|
8844
8887
|
'left:' + (data.ganttProperties.baselineLeft - this.milesStoneRadius) + 'px;' +
|
|
8845
|
-
'margin-top:' + (-Math.floor(this.parent.rowHeight - this.milestoneMarginTop) +
|
|
8888
|
+
'margin-top:' + (-Math.floor(this.parent.rowHeight - this.milestoneMarginTop) + baselineMilestoneHeight) +
|
|
8846
8889
|
'px">' + '<div class="' + baselineMilestoneDiv + '">' + '<div class="' + baselineMilestoneDiv +
|
|
8847
8890
|
' ' + baselineMilestoneTop + '" ' +
|
|
8848
8891
|
'style="top:' + (-this.milestoneHeight) + 'px;border-right:' + this.milesStoneRadius +
|
|
@@ -8870,7 +8913,9 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
8870
8913
|
*/
|
|
8871
8914
|
ChartRows.prototype.getLeftLabelNode = function (i) {
|
|
8872
8915
|
var leftLabelNode = this.leftLabelContainer();
|
|
8873
|
-
|
|
8916
|
+
if (this.generateTaskLabelAriaLabel('left') !== "") {
|
|
8917
|
+
leftLabelNode[0].setAttribute('aria-label', this.generateTaskLabelAriaLabel('left'));
|
|
8918
|
+
}
|
|
8874
8919
|
var leftLabelTemplateNode = null;
|
|
8875
8920
|
if (this.leftTaskLabelTemplateFunction) {
|
|
8876
8921
|
leftLabelTemplateNode = this.leftTaskLabelTemplateFunction(extend({ index: i }, this.templateData), this.parent, 'LeftLabelTemplate', this.getTemplateID('LeftLabelTemplate'), false, undefined, leftLabelNode[0], this.parent.treeGrid['root']);
|
|
@@ -8892,9 +8937,10 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
8892
8937
|
return leftLabelNode;
|
|
8893
8938
|
};
|
|
8894
8939
|
ChartRows.prototype.getLableText = function (labelString, labelDiv) {
|
|
8940
|
+
var leftLabelHeight = this.parent.renderBaseline ? ((this.parent.rowHeight - this.taskBarHeight) / 2) : this.taskBarMarginTop;
|
|
8895
8941
|
var templateString = createElement('div', {
|
|
8896
8942
|
className: labelDiv, styles: 'height:' + (this.taskBarHeight) + 'px;' +
|
|
8897
|
-
'margin-top:' +
|
|
8943
|
+
'margin-top:' + leftLabelHeight + 'px;'
|
|
8898
8944
|
});
|
|
8899
8945
|
var spanElem = createElement('span', { className: label });
|
|
8900
8946
|
var property = this.parent.disableHtmlEncode ? 'textContent' : 'innerHTML';
|
|
@@ -8913,7 +8959,9 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
8913
8959
|
*/
|
|
8914
8960
|
ChartRows.prototype.getRightLabelNode = function (i) {
|
|
8915
8961
|
var rightLabelNode = this.rightLabelContainer();
|
|
8916
|
-
|
|
8962
|
+
if (this.generateTaskLabelAriaLabel('right') !== "") {
|
|
8963
|
+
rightLabelNode[0].setAttribute('aria-label', this.generateTaskLabelAriaLabel('right'));
|
|
8964
|
+
}
|
|
8917
8965
|
var rightLabelTemplateNode = null;
|
|
8918
8966
|
if (this.rightTaskLabelTemplateFunction) {
|
|
8919
8967
|
rightLabelTemplateNode = this.rightTaskLabelTemplateFunction(extend({ index: i }, this.templateData), this.parent, 'RightLabelTemplate', this.getTemplateID('RightLabelTemplate'), false, undefined, rightLabelNode[0], this.parent.treeGrid['root']);
|
|
@@ -9026,8 +9074,10 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
9026
9074
|
else {
|
|
9027
9075
|
labelDiv = this.createDivElement('<span class="' +
|
|
9028
9076
|
taskLabel + '" style="line-height:' +
|
|
9029
|
-
(this.taskBarHeight - 1) + 'px;
|
|
9030
|
-
(this.parent.viewType === 'ResourceView' ? (data.ganttProperties.width - 10) : '
|
|
9077
|
+
(this.taskBarHeight - 1) + 'px;' + (this.parent.viewType === 'ResourceView' ? 'display:inline-flex;' : '') +
|
|
9078
|
+
(this.parent.viewType === 'ResourceView' ? 'width:' + (data.ganttProperties.width - 10) : '') + 'px; height:' +
|
|
9079
|
+
(this.taskBarHeight - 1) + 'px;' + (this.parent.viewType === 'ResourceView' ? 'display: inline-flex;' : '') +
|
|
9080
|
+
(this.parent.viewType === 'ResourceView' ? 'width:' + (data.ganttProperties.width - 10) : '') + 'px; height:' +
|
|
9031
9081
|
this.taskBarHeight + 'px;">' + labelString + '</span>');
|
|
9032
9082
|
}
|
|
9033
9083
|
progressBarInnerDiv[0].appendChild([].slice.call(labelDiv)[0]);
|
|
@@ -9056,10 +9106,10 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
9056
9106
|
var className = (this.parent.gridLines === 'Horizontal' || this.parent.gridLines === 'Both') ?
|
|
9057
9107
|
'e-chart-row-border' : '';
|
|
9058
9108
|
table.innerHTML = '<tr class="' + this.getRowClassName(this.templateData) + ' ' + chartRow + '"' +
|
|
9059
|
-
'style="display:' + this.getExpandDisplayProp(this.templateData) + ';height:' +
|
|
9109
|
+
'role="ChartRow" style="display:' + this.getExpandDisplayProp(this.templateData) + ';height:' +
|
|
9060
9110
|
this.parent.rowHeight + 'px;">' +
|
|
9061
9111
|
'<td class="' + chartRowCell + ' ' + className
|
|
9062
|
-
+ '" style="width:' + this.parent.timelineModule.totalTimelineWidth + 'px;"></td></tr>';
|
|
9112
|
+
+ '" role="ChartCell" style="width:' + this.parent.timelineModule.totalTimelineWidth + 'px;"></td></tr>';
|
|
9063
9113
|
return table.childNodes;
|
|
9064
9114
|
};
|
|
9065
9115
|
/**
|
|
@@ -9124,7 +9174,7 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
9124
9174
|
};
|
|
9125
9175
|
ChartRows.prototype.leftLabelContainer = function () {
|
|
9126
9176
|
var template = '<div class="' + ((this.leftTaskLabelTemplateFunction) ? leftLabelTempContainer :
|
|
9127
|
-
leftLabelContainer) + ' ' + '" tabindex="-1" style="height:' +
|
|
9177
|
+
leftLabelContainer) + ' ' + '" tabindex="-1" role="LeftLabel" style="height:' +
|
|
9128
9178
|
(this.parent.rowHeight - 2) + 'px;width:' + this.taskNameWidth(this.templateData) + '"></div>';
|
|
9129
9179
|
return this.createDivElement(template);
|
|
9130
9180
|
};
|
|
@@ -9136,7 +9186,7 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
9136
9186
|
var template = '<div class="' + taskBarMainContainer + ' ' +
|
|
9137
9187
|
this.parent.getUnscheduledTaskClass(data.ganttProperties) + ' ' +
|
|
9138
9188
|
((data.ganttProperties.cssClass) ? data.ganttProperties.cssClass : '') + '" ' +
|
|
9139
|
-
' tabindex="-1" style="' + ((data.ganttProperties.isMilestone && !manualParent) ?
|
|
9189
|
+
' tabindex="-1" role="TaskBar" style="' + ((data.ganttProperties.isMilestone && !manualParent) ?
|
|
9140
9190
|
('width:' + this.milestoneHeight + 'px;height:' +
|
|
9141
9191
|
this.milestoneHeight + 'px;margin-top:' + this.milestoneMarginTop + 'px;left:' + (data.ganttProperties.left -
|
|
9142
9192
|
(this.milestoneHeight / 2)) + 'px;') : ('width:' + data.ganttProperties.width +
|
|
@@ -9147,26 +9197,26 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
9147
9197
|
};
|
|
9148
9198
|
ChartRows.prototype.rightLabelContainer = function () {
|
|
9149
9199
|
var template = '<div class="' + ((this.rightTaskLabelTemplateFunction) ? rightLabelTempContainer :
|
|
9150
|
-
rightLabelContainer) + '" ' + ' tabindex="-1" style="left:' + this.getRightLabelLeft(this.templateData) + 'px;height:'
|
|
9200
|
+
rightLabelContainer) + '" ' + ' tabindex="-1" role="RightLabel" style="left:' + this.getRightLabelLeft(this.templateData) + 'px; height:'
|
|
9151
9201
|
+ (this.parent.rowHeight - 2) + 'px;"></div>';
|
|
9152
9202
|
return this.createDivElement(template);
|
|
9153
9203
|
};
|
|
9154
9204
|
ChartRows.prototype.childTaskbarLeftResizer = function () {
|
|
9155
9205
|
var lResizerLeft = -(this.parent.isAdaptive ? 12 : 2);
|
|
9156
9206
|
var template = '<div class="' + taskBarLeftResizer + ' ' + icon + '"' +
|
|
9157
|
-
' style="left:' + lResizerLeft + 'px;height:' + (this.taskBarHeight) + 'px;"></div>';
|
|
9207
|
+
' role="LeftResizer" style="left:' + lResizerLeft + 'px;height:' + (this.taskBarHeight) + 'px;"></div>';
|
|
9158
9208
|
return this.createDivElement(template);
|
|
9159
9209
|
};
|
|
9160
9210
|
ChartRows.prototype.childTaskbarRightResizer = function () {
|
|
9161
9211
|
var rResizerLeft = this.parent.isAdaptive ? -2 : -10;
|
|
9162
9212
|
var template = '<div class="' + taskBarRightResizer + ' ' + icon + '"' +
|
|
9163
|
-
' style="left:' + (this.templateData.ganttProperties.width + rResizerLeft) + 'px;' +
|
|
9213
|
+
' role="RightResizer" style="left:' + (this.templateData.ganttProperties.width + rResizerLeft) + 'px;' +
|
|
9164
9214
|
'height:' + (this.taskBarHeight) + 'px;"></div>';
|
|
9165
9215
|
return this.createDivElement(template);
|
|
9166
9216
|
};
|
|
9167
9217
|
ChartRows.prototype.childTaskbarProgressResizer = function () {
|
|
9168
9218
|
var template = '<div class="' + childProgressResizer + '"' +
|
|
9169
|
-
' style="left:' + (this.templateData.ganttProperties.progressWidth - 6) + 'px;margin-top:' +
|
|
9219
|
+
' role="ProgressResizer" style="left:' + (this.templateData.ganttProperties.progressWidth - 6) + 'px;margin-top:' +
|
|
9170
9220
|
(this.taskBarHeight - 4) + 'px;"><div class="' + progressBarHandler + '"' +
|
|
9171
9221
|
'><div class="' + progressHandlerElement + '"></div>' +
|
|
9172
9222
|
'<div class="' + progressBarHandlerAfter + '"></div></div>';
|
|
@@ -9364,10 +9414,13 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
9364
9414
|
* @private
|
|
9365
9415
|
*/
|
|
9366
9416
|
ChartRows.prototype.initChartHelperPrivateVariable = function () {
|
|
9417
|
+
var taskbarHeightValue = this.parent.renderBaseline ? 0.45 : 0.62;
|
|
9418
|
+
var taskBarMarginTopValue = this.parent.renderBaseline ? 4 : 2;
|
|
9419
|
+
var milestoneHeightValue = this.parent.renderBaseline ? 1.13 : 0.82;
|
|
9367
9420
|
this.baselineColor = !isNullOrUndefined(this.parent.baselineColor) &&
|
|
9368
9421
|
this.parent.baselineColor !== '' ? this.parent.baselineColor : null;
|
|
9369
9422
|
this.taskBarHeight = isNullOrUndefined(this.parent.taskbarHeight) || this.parent.taskbarHeight >= this.parent.rowHeight ?
|
|
9370
|
-
Math.floor(this.parent.rowHeight *
|
|
9423
|
+
Math.floor(this.parent.rowHeight * taskbarHeightValue) : this.parent.taskbarHeight; // 0.62 -- Standard Ratio.
|
|
9371
9424
|
if (this.parent.renderBaseline) {
|
|
9372
9425
|
var height = void 0;
|
|
9373
9426
|
if ((this.taskBarHeight + this.baselineHeight) <= this.parent.rowHeight) {
|
|
@@ -9378,11 +9431,11 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
9378
9431
|
}
|
|
9379
9432
|
this.taskBarHeight = height;
|
|
9380
9433
|
}
|
|
9381
|
-
this.milestoneHeight = Math.floor(this.taskBarHeight *
|
|
9382
|
-
this.taskBarMarginTop = Math.floor((this.parent.rowHeight - this.taskBarHeight) /
|
|
9434
|
+
this.milestoneHeight = Math.floor(this.taskBarHeight * milestoneHeightValue); // 0.82 -- Standard Ratio.
|
|
9435
|
+
this.taskBarMarginTop = Math.floor((this.parent.rowHeight - this.taskBarHeight) / taskBarMarginTopValue);
|
|
9383
9436
|
this.milestoneMarginTop = Math.floor((this.parent.rowHeight - this.milestoneHeight) / 2);
|
|
9384
9437
|
this.milesStoneRadius = Math.floor((this.milestoneHeight) / 2);
|
|
9385
|
-
this.baselineTop = -(Math.floor((this.parent.rowHeight - (this.taskBarHeight + this.taskBarMarginTop))) -
|
|
9438
|
+
this.baselineTop = -(Math.floor((this.parent.rowHeight - (this.taskBarHeight + this.taskBarMarginTop))) - 4);
|
|
9386
9439
|
this.connectorPointWidth = this.parent.isAdaptive ? Math.round(this.taskBarHeight / 2) : 8;
|
|
9387
9440
|
this.connectorPointMargin = Math.floor((this.taskBarHeight / 2) - (this.connectorPointWidth / 2));
|
|
9388
9441
|
};
|
|
@@ -9576,6 +9629,7 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
9576
9629
|
var indicators = this.templateData.ganttProperties.indicators;
|
|
9577
9630
|
for (var indicatorIndex = 0; indicatorIndex < indicators.length; indicatorIndex++) {
|
|
9578
9631
|
taskIndicatorNode = this.getIndicatorNode(indicators[indicatorIndex]);
|
|
9632
|
+
taskIndicatorNode[0].setAttribute('aria-label', indicators[indicatorIndex].name);
|
|
9579
9633
|
if (indicators[indicatorIndex].name.indexOf('$') > -1 || indicators[indicatorIndex].name.indexOf('#') > -1) {
|
|
9580
9634
|
taskIndicatorTextFunction = this.templateCompiler(indicators[indicatorIndex].name);
|
|
9581
9635
|
taskIndicatorTextNode = taskIndicatorTextFunction(extend({ index: i }, this.templateData), this.parent, 'indicatorLabelText');
|
|
@@ -10800,7 +10854,7 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
10800
10854
|
for (var i = 0; i < childNodes.length; i++) {
|
|
10801
10855
|
var innerChild = childNodes[i].childNodes;
|
|
10802
10856
|
for (var j = 0; j < innerChild.length; j++) {
|
|
10803
|
-
var ariaString = this.parent.connectorLineModule.generateAriaLabel(ariaConnector[i]);
|
|
10857
|
+
var ariaString = 'Connector Line ' + this.parent.connectorLineModule.generateAriaLabel(ariaConnector[i]);
|
|
10804
10858
|
innerChild[j].setAttribute('aria-label', ariaString);
|
|
10805
10859
|
}
|
|
10806
10860
|
}
|
|
@@ -11057,7 +11111,11 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
11057
11111
|
var connectorContainer = '';
|
|
11058
11112
|
var isVirtual = this.parent.virtualScrollModule && this.parent.enableVirtualization;
|
|
11059
11113
|
var connectorLine$$1 = this.getPosition(data, this.getParentPosition(data), height);
|
|
11060
|
-
var
|
|
11114
|
+
var isMilestoneValue = 0;
|
|
11115
|
+
if (this.parent.renderBaseline) {
|
|
11116
|
+
isMilestoneValue = (data.milestoneParent && data.milestoneChild) ? 0 : data.milestoneParent ? -5 : data.milestoneChild ? 5 : 0;
|
|
11117
|
+
}
|
|
11118
|
+
var heightValue = isVirtual ? connectorLine$$1.height : (height + isMilestoneValue);
|
|
11061
11119
|
if (this.getParentPosition(data)) {
|
|
11062
11120
|
connectorContainer = '<div id="ConnectorLine' + data.connectorLineId + '" style="background-color:black">';
|
|
11063
11121
|
var div = '<div class="' + connectorLineContainer +
|
|
@@ -11085,7 +11143,7 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
11085
11143
|
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
|
|
11086
11144
|
if (this.getParentPosition(data) === 'FSType1') {
|
|
11087
11145
|
div = div + 'left:' + (data.parentLeft + data.parentWidth) + 'px;top:' + (isVirtual ? connectorLine$$1.top :
|
|
11088
|
-
((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;' +
|
|
11146
|
+
((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
11089
11147
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FSType1">';
|
|
11090
11148
|
div = div + eLine;
|
|
11091
11149
|
div = div + 'left:' + (isMilestoneParent ? -1 : 0) + 'px;width:' + (isMilestoneParent ?
|
|
@@ -11106,7 +11164,7 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
11106
11164
|
}
|
|
11107
11165
|
if (this.getParentPosition(data) === 'FSType2') {
|
|
11108
11166
|
div = div + 'left:' + data.parentLeft + 'px;top:' + (isVirtual ? connectorLine$$1.top : ((data.parentIndex * data.rowHeight) +
|
|
11109
|
-
this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;' +
|
|
11167
|
+
this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
11110
11168
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FSType2">';
|
|
11111
11169
|
div = div + eLine;
|
|
11112
11170
|
div = div + 'left:' + (isMilestoneParent ? data.parentWidth - 1 : data.parentWidth) + 'px;width:' +
|
|
@@ -11137,7 +11195,7 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
11137
11195
|
}
|
|
11138
11196
|
if (this.getParentPosition(data) === 'FSType3') {
|
|
11139
11197
|
div = div + 'left:' + (data.childLeft - 20) + 'px;top:' + (isVirtual ? connectorLine$$1.top :
|
|
11140
|
-
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1))) + 'px;' +
|
|
11198
|
+
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
11141
11199
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FSType3">';
|
|
11142
11200
|
div = div + rightArrow;
|
|
11143
11201
|
div = div + 'left:10px;' + this.getBorderStyles('left', 10) +
|
|
@@ -11167,7 +11225,7 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
11167
11225
|
}
|
|
11168
11226
|
if (this.getParentPosition(data) === 'FSType4') {
|
|
11169
11227
|
div = div + 'left:' + (data.parentLeft + data.parentWidth) + 'px;top:' + (isVirtual ? connectorLine$$1.top :
|
|
11170
|
-
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;' +
|
|
11228
|
+
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
11171
11229
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FSType4">';
|
|
11172
11230
|
div = div + rightArrow;
|
|
11173
11231
|
div = div + 'left:' + (data.childLeft - (data.parentLeft + data.parentWidth + 10)) + 'px;' +
|
|
@@ -11193,7 +11251,7 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
11193
11251
|
}
|
|
11194
11252
|
if (this.getParentPosition(data) === 'SSType4') {
|
|
11195
11253
|
div = div + 'left:' + (data.parentLeft - 10) + 'px;top:' + (isVirtual ? connectorLine$$1.top :
|
|
11196
|
-
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;' +
|
|
11254
|
+
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
11197
11255
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SSType4">';
|
|
11198
11256
|
div = div + rightArrow;
|
|
11199
11257
|
div = div + 'left:' + (data.childLeft - data.parentLeft) + 'px;' + duplicateStingTwo;
|
|
@@ -11206,7 +11264,7 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
11206
11264
|
}
|
|
11207
11265
|
if (this.getParentPosition(data) === 'SSType3') {
|
|
11208
11266
|
div = div + 'left:' + (data.childLeft - 20) + 'px;top:' + (isVirtual ? connectorLine$$1.top :
|
|
11209
|
-
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;' +
|
|
11267
|
+
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
11210
11268
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SSType3">';
|
|
11211
11269
|
div = div + rightArrow;
|
|
11212
11270
|
div = div + 'left:10px;' + duplicateStingTwo;
|
|
@@ -11219,7 +11277,7 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
11219
11277
|
}
|
|
11220
11278
|
if (this.getParentPosition(data) === 'SSType2') {
|
|
11221
11279
|
div = div + 'left:' + setInnerElementLeftSSType2 + 'px;top:' + (isVirtual ? connectorLine$$1.top :
|
|
11222
|
-
((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1))) + 'px;' +
|
|
11280
|
+
((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
11223
11281
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SSType2">';
|
|
11224
11282
|
div = div + eLine;
|
|
11225
11283
|
div = div + 'width:' + (setInnerChildWidthSSType2 + 1) + 'px;' +
|
|
@@ -11240,7 +11298,7 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
11240
11298
|
if (this.getParentPosition(data) === 'SSType1') {
|
|
11241
11299
|
div = div + 'left:' + (data.childLeft - 20) + 'px;top:' + (isVirtual ? connectorLine$$1.top :
|
|
11242
11300
|
((data.parentIndex * data.rowHeight) +
|
|
11243
|
-
this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1))) + 'px;' +
|
|
11301
|
+
this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
11244
11302
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SSType1">';
|
|
11245
11303
|
div = div + eLine;
|
|
11246
11304
|
div = div + 'width:' + (data.parentLeft - data.childLeft + 21) + 'px;' +
|
|
@@ -11257,7 +11315,7 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
11257
11315
|
}
|
|
11258
11316
|
if (this.getParentPosition(data) === 'FFType1') {
|
|
11259
11317
|
div = div + 'left:' + (data.childLeft + data.childWidth) + 'px;top:' + (isVirtual ? connectorLine$$1.top :
|
|
11260
|
-
((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1))) + 'px;' +
|
|
11318
|
+
((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
11261
11319
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FFType1">';
|
|
11262
11320
|
div = div + eLine;
|
|
11263
11321
|
div = div + 'left:' + (isMilestoneParent ? (((data.parentLeft + data.parentWidth) -
|
|
@@ -11281,7 +11339,7 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
11281
11339
|
}
|
|
11282
11340
|
if (this.getParentPosition(data) === 'FFType2') {
|
|
11283
11341
|
div = div + 'left:' + (data.parentLeft + data.parentWidth) + 'px;top:' + (isVirtual ? connectorLine$$1.top :
|
|
11284
|
-
((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1))) + 'px;' +
|
|
11342
|
+
((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
11285
11343
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FFType2">';
|
|
11286
11344
|
div = div + eLine;
|
|
11287
11345
|
div = div + (isMilestoneParent ? 'left:-1px;' : '') + 'width:' +
|
|
@@ -11307,7 +11365,7 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
11307
11365
|
}
|
|
11308
11366
|
if (this.getParentPosition(data) === 'FFType3') {
|
|
11309
11367
|
div = div + 'left:' + (data.childLeft + data.childWidth) + 'px;top:' + (isVirtual ? connectorLine$$1.top :
|
|
11310
|
-
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;' +
|
|
11368
|
+
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
11311
11369
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FFType3">';
|
|
11312
11370
|
div = div + duplicateStingOne;
|
|
11313
11371
|
div = div + eLine;
|
|
@@ -11330,7 +11388,7 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
11330
11388
|
}
|
|
11331
11389
|
if (this.getParentPosition(data) === 'FFType4') {
|
|
11332
11390
|
div = div + 'left:' + (data.parentLeft + data.parentWidth) + 'px;top:' + (isVirtual ? connectorLine$$1.top :
|
|
11333
|
-
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;' +
|
|
11391
|
+
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
11334
11392
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="FFType4">';
|
|
11335
11393
|
div = div + leftArrow;
|
|
11336
11394
|
div = div + ('left:' + ((data.childLeft + data.childWidth) -
|
|
@@ -11359,7 +11417,7 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
11359
11417
|
}
|
|
11360
11418
|
if (this.getParentPosition(data) === 'SFType4') {
|
|
11361
11419
|
div = div + 'left:' + (data.parentLeft - 10) + 'px;top:' + (isVirtual ? connectorLine$$1.top :
|
|
11362
|
-
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;width:1px;' +
|
|
11420
|
+
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;width:1px;' +
|
|
11363
11421
|
'height:' + heightValue + 'px;position:absolute" data-connectortype="SFType4">';
|
|
11364
11422
|
div = div + duplicateStingFour + 'top:' + (-5 - this.lineStroke + (this.lineStroke - 1)) + 'px;' +
|
|
11365
11423
|
'border-bottom-width:' + (5 + this.lineStroke) +
|
|
@@ -11387,7 +11445,7 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
11387
11445
|
}
|
|
11388
11446
|
if (this.getParentPosition(data) === 'SFType3') {
|
|
11389
11447
|
div = div + 'left:' + (data.childLeft + data.childWidth) + 'px;top:' + (isVirtual ? connectorLine$$1.top :
|
|
11390
|
-
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;' +
|
|
11448
|
+
((data.childIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
11391
11449
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SFType3">';
|
|
11392
11450
|
div = div + duplicateStingOne;
|
|
11393
11451
|
div = div + eLine;
|
|
@@ -11405,7 +11463,7 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
11405
11463
|
}
|
|
11406
11464
|
if (this.getParentPosition(data) === 'SFType1') {
|
|
11407
11465
|
div = div + 'left:' + (data.parentLeft - 10) + 'px;top:' + (isVirtual ? connectorLine$$1.top :
|
|
11408
|
-
((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1))) + 'px;' +
|
|
11466
|
+
((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
11409
11467
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SFType1">';
|
|
11410
11468
|
div = div + eLine;
|
|
11411
11469
|
div = div + 'width:11px;' + this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
|
|
@@ -11430,7 +11488,7 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
|
|
|
11430
11488
|
}
|
|
11431
11489
|
if (this.getParentPosition(data) === 'SFType2') {
|
|
11432
11490
|
div = div + 'left:' + (data.childLeft + data.childWidth) + 'px;top:' + (isVirtual ? connectorLine$$1.top :
|
|
11433
|
-
((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1))) + 'px;' +
|
|
11491
|
+
((data.parentIndex * data.rowHeight) + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue)) + 'px;' +
|
|
11434
11492
|
'width:1px;height:' + heightValue + 'px;position:absolute" data-connectortype="SFType2">';
|
|
11435
11493
|
div = div + eLine;
|
|
11436
11494
|
div = div + 'left:' + (((data.parentLeft) - (data.childLeft + data.childWidth)) - 10) +
|
|
@@ -11674,6 +11732,7 @@ var Splitter$1 = /** @__PURE__ @class */ (function () {
|
|
|
11674
11732
|
_this.splitterObject.paneSettings[1].size = null;
|
|
11675
11733
|
_this.splitterObject.paneSettings[1].size = _this.getSpliterPositionInPercentage(_this.splitterPreviousPositionChart);
|
|
11676
11734
|
}
|
|
11735
|
+
_this.parent.timelineModule.updateTimelineAfterZooming(_this.parent.timelineModule.timelineEndDate, true);
|
|
11677
11736
|
callBackPromise.resolve(splitterResizedArgs);
|
|
11678
11737
|
});
|
|
11679
11738
|
return callBackPromise;
|
|
@@ -11956,6 +12015,7 @@ var Tooltip$1 = /** @__PURE__ @class */ (function () {
|
|
|
11956
12015
|
* @returns {void} .
|
|
11957
12016
|
*/
|
|
11958
12017
|
Tooltip$$1.prototype.updateTooltipPosition = function (args) {
|
|
12018
|
+
args.element.style.visibility = 'visible';
|
|
11959
12019
|
if (isNullOrUndefined(this.tooltipMouseEvent) || args.target.classList.contains('e-notes-info')) {
|
|
11960
12020
|
return;
|
|
11961
12021
|
}
|
|
@@ -11985,7 +12045,6 @@ var Tooltip$1 = /** @__PURE__ @class */ (function () {
|
|
|
11985
12045
|
tooltipPositionY = tooltipPositionY + 10;
|
|
11986
12046
|
}
|
|
11987
12047
|
args.element.style.top = tooltipPositionY + 'px';
|
|
11988
|
-
args.element.style.visibility = 'visible';
|
|
11989
12048
|
};
|
|
11990
12049
|
/**
|
|
11991
12050
|
* Method to get mouse pointor position
|
|
@@ -12027,9 +12086,16 @@ var Tooltip$1 = /** @__PURE__ @class */ (function () {
|
|
|
12027
12086
|
switch (elementType) {
|
|
12028
12087
|
case 'milestone':
|
|
12029
12088
|
{
|
|
12030
|
-
var
|
|
12089
|
+
var milestoneStartDate = void 0;
|
|
12090
|
+
if (args.target.className.includes('e-baseline-gantt-milestone') && !isNullOrUndefined(data.baselineStartDate)) {
|
|
12091
|
+
milestoneStartDate = data.baselineStartDate;
|
|
12092
|
+
}
|
|
12093
|
+
else if (!isNullOrUndefined(data.startDate)) {
|
|
12094
|
+
milestoneStartDate = data.startDate;
|
|
12095
|
+
}
|
|
12096
|
+
var sDate = !isNullOrUndefined(milestoneStartDate) ? '<tr><td class = "e-gantt-tooltip-label"> Date</td><td>:</td>' +
|
|
12031
12097
|
'<td class = "e-gantt-tooltip-value">' +
|
|
12032
|
-
this.parent.getFormatedDate(
|
|
12098
|
+
this.parent.getFormatedDate(milestoneStartDate, this.parent.getDateFormat()) + '</td></tr>' : '';
|
|
12033
12099
|
content$$1 = '<table class = "e-gantt-tooltiptable"><tbody>' +
|
|
12034
12100
|
taskName + sDate + '</tbody></table>';
|
|
12035
12101
|
break;
|
|
@@ -13265,7 +13331,7 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
13265
13331
|
gridHeight = 'calc(100% - ' + timelineContainer + 'px)';
|
|
13266
13332
|
// eslint-disable-next-line
|
|
13267
13333
|
this.element.getElementsByClassName('e-chart-scroll-container e-content')[0]['style'].height = 'calc(100% - ' + timelineContainer + 'px)';
|
|
13268
|
-
if (!isNullOrUndefined(this.toolbarModule)) {
|
|
13334
|
+
if (!isNullOrUndefined(this.toolbarModule) && !isNullOrUndefined(this.toolbarModule.element)) {
|
|
13269
13335
|
this.splitterElement.style.height = 'calc(100% - ' + this.toolbarModule.element.offsetHeight + 'px)';
|
|
13270
13336
|
}
|
|
13271
13337
|
else {
|
|
@@ -13801,7 +13867,7 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
13801
13867
|
*/
|
|
13802
13868
|
Gantt.prototype.updateGridLineContainerHeight = function () {
|
|
13803
13869
|
if (this.chartVerticalLineContainer) {
|
|
13804
|
-
this.chartVerticalLineContainer.style.height = formatUnit(this.
|
|
13870
|
+
this.chartVerticalLineContainer.style.height = formatUnit(this.contentHeight);
|
|
13805
13871
|
}
|
|
13806
13872
|
};
|
|
13807
13873
|
/**
|
|
@@ -15712,7 +15778,8 @@ var CellEdit = /** @__PURE__ @class */ (function () {
|
|
|
15712
15778
|
args.cancel = true;
|
|
15713
15779
|
return;
|
|
15714
15780
|
}
|
|
15715
|
-
if (data.hasChildRecords && (field === taskSettings.endDate
|
|
15781
|
+
if (data.hasChildRecords && ((field === taskSettings.endDate && ((!isNullOrUndefined(data['isManual']) &&
|
|
15782
|
+
data['isManual'] == false) || this.parent.taskMode == 'Auto')) || field === taskSettings.duration
|
|
15716
15783
|
|| field === taskSettings.dependency || field === taskSettings.progress
|
|
15717
15784
|
|| field === taskSettings.work || field === 'taskType')) {
|
|
15718
15785
|
args.cancel = true;
|
|
@@ -19854,7 +19921,8 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
|
|
|
19854
19921
|
disabled = true;
|
|
19855
19922
|
}
|
|
19856
19923
|
if (this.editedRecord.hasChildRecords) {
|
|
19857
|
-
if (column.field === this.parent.taskFields.endDate
|
|
19924
|
+
if ((column.field === this.parent.taskFields.endDate && ((!isNullOrUndefined(this.editedRecord['isManual']) &&
|
|
19925
|
+
this.editedRecord['isManual'] == false) || this.parent.taskMode == 'Auto')) || column.field === this.parent.taskFields.duration ||
|
|
19858
19926
|
column.field === this.parent.taskFields.progress || column.field === this.parent.taskFields.work ||
|
|
19859
19927
|
column.field === 'taskType') {
|
|
19860
19928
|
disabled = true;
|
|
@@ -23697,14 +23765,20 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
23697
23765
|
}
|
|
23698
23766
|
else {
|
|
23699
23767
|
childIndex = parentItem.childRecords.length;
|
|
23700
|
-
}
|
|
23768
|
+
}
|
|
23769
|
+
/*Child collection update*/
|
|
23701
23770
|
parentItem.childRecords.splice(childIndex, 0, record);
|
|
23702
23771
|
if ((this.parent.dataSource instanceof DataManager &&
|
|
23703
23772
|
isNullOrUndefined(parentItem.taskData[this.parent.taskFields.parentID])) ||
|
|
23704
23773
|
!isNullOrUndefined(this.parent.dataSource)) {
|
|
23705
23774
|
var child = this.parent.taskFields.child;
|
|
23706
23775
|
if (parentItem.taskData[child] && parentItem.taskData[child].length > 0) {
|
|
23707
|
-
|
|
23776
|
+
if (rowPosition === 'Above' || rowPosition === 'Below') {
|
|
23777
|
+
parentItem.taskData[child].splice(childIndex, 0, record.taskData);
|
|
23778
|
+
}
|
|
23779
|
+
else {
|
|
23780
|
+
parentItem.taskData[child].push(record.taskData);
|
|
23781
|
+
}
|
|
23708
23782
|
}
|
|
23709
23783
|
else {
|
|
23710
23784
|
parentItem.taskData[child] = [];
|
|
@@ -24165,6 +24239,9 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
24165
24239
|
}
|
|
24166
24240
|
this.addSuccess(args);
|
|
24167
24241
|
args = this.constructTaskAddedEventArgs(cAddedRecord, args.modifiedRecords, 'add');
|
|
24242
|
+
if (this.dialogModule.isAddNewResource && !this.parent.isEdit && this.parent.taskFields.work) {
|
|
24243
|
+
this.parent.dataOperation.updateWorkWithDuration(cAddedRecord[0]);
|
|
24244
|
+
}
|
|
24168
24245
|
this.parent.trigger('actionComplete', args);
|
|
24169
24246
|
if (this.dialogModule.dialog && !this.dialogModule.dialogObj.isDestroyed) {
|
|
24170
24247
|
this.dialogModule.dialogObj.hide();
|
|
@@ -26298,6 +26375,7 @@ var NonWorkingDay = /** @__PURE__ @class */ (function () {
|
|
|
26298
26375
|
this.nonworkingContainer = createElement('div', {
|
|
26299
26376
|
className: nonworkingContainer
|
|
26300
26377
|
});
|
|
26378
|
+
this.nonworkingContainer.setAttribute("role", "NonWorkingDays");
|
|
26301
26379
|
this.parent.ganttChartModule.chartBodyContent.appendChild(this.nonworkingContainer);
|
|
26302
26380
|
}
|
|
26303
26381
|
};
|
|
@@ -26335,8 +26413,11 @@ var NonWorkingDay = /** @__PURE__ @class */ (function () {
|
|
|
26335
26413
|
var toDate;
|
|
26336
26414
|
var container = createElement('div');
|
|
26337
26415
|
var height = this.parent.contentHeight;
|
|
26338
|
-
var
|
|
26339
|
-
|
|
26416
|
+
var toolbarHeight = 0;
|
|
26417
|
+
if (!isNullOrUndefined(this.parent.toolbarModule)) {
|
|
26418
|
+
toolbarHeight = this.parent.toolbarModule.element.offsetHeight;
|
|
26419
|
+
}
|
|
26420
|
+
var viewportHeight = this.parent.ganttHeight - toolbarHeight - this.parent.ganttChartModule.chartTimelineContainer.offsetHeight;
|
|
26340
26421
|
for (var i = 0; i < this.parent.holidays.length; i++) {
|
|
26341
26422
|
if (this.parent.holidays[i].from && this.parent.holidays[i].to) {
|
|
26342
26423
|
fromDate = this.parent.dateValidationModule.getDateFromFormat(this.parent.holidays[i].from);
|
|
@@ -26429,9 +26510,12 @@ var NonWorkingDay = /** @__PURE__ @class */ (function () {
|
|
|
26429
26510
|
return container;
|
|
26430
26511
|
};
|
|
26431
26512
|
NonWorkingDay.prototype.updateHolidayLabelHeight = function () {
|
|
26432
|
-
var height = this.parent.
|
|
26433
|
-
var
|
|
26434
|
-
|
|
26513
|
+
var height = this.parent.getContentHeight();
|
|
26514
|
+
var toolbarHeight = 0;
|
|
26515
|
+
if (!isNullOrUndefined(this.parent.toolbarModule) && !isNullOrUndefined(this.parent.toolbarModule.element)) {
|
|
26516
|
+
toolbarHeight = this.parent.toolbarModule.element.offsetHeight;
|
|
26517
|
+
}
|
|
26518
|
+
var viewportHeight = this.parent.ganttHeight - toolbarHeight - this.parent.ganttChartModule.chartTimelineContainer.offsetHeight;
|
|
26435
26519
|
var top = (viewportHeight < height) ? viewportHeight / 2 : height / 2;
|
|
26436
26520
|
var labels = this.holidayContainer.querySelectorAll('.' + holidayLabel);
|
|
26437
26521
|
for (var i = 0; i < labels.length; i++) {
|
|
@@ -26488,6 +26572,7 @@ var EventMarker$1 = /** @__PURE__ @class */ (function () {
|
|
|
26488
26572
|
this.eventMarkersContainer = createElement('div', {
|
|
26489
26573
|
className: eventMarkersContainer
|
|
26490
26574
|
});
|
|
26575
|
+
this.eventMarkersContainer.setAttribute("role", "EventMarker");
|
|
26491
26576
|
this.parent.ganttChartModule.chartBodyContent.appendChild(this.eventMarkersContainer);
|
|
26492
26577
|
}
|
|
26493
26578
|
this.eventMarkersContainer.innerHTML = '';
|
|
@@ -27671,33 +27756,55 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
27671
27756
|
var data_1 = gObj.flatData;
|
|
27672
27757
|
var startIndex = void 0;
|
|
27673
27758
|
var endIndex = void 0;
|
|
27759
|
+
var ganttData_1 = this_1.parent.dataSource;
|
|
27760
|
+
var uniqueTaskID_1 = this_1.parent.taskFields.id;
|
|
27674
27761
|
if (draggedRecord.index < droppedRecord.index) {
|
|
27675
27762
|
startIndex = draggedRecord.index;
|
|
27676
|
-
|
|
27763
|
+
var _loop_2 = function (i_1) {
|
|
27764
|
+
var currentData = this_1.parent.currentViewData.filter(function (e) {
|
|
27765
|
+
return e[uniqueTaskID_1] === ganttData_1[i_1][uniqueTaskID_1];
|
|
27766
|
+
})[0];
|
|
27767
|
+
if (currentData.index > droppedRecord.index) {
|
|
27768
|
+
endIndex = currentData.index;
|
|
27769
|
+
return "break";
|
|
27770
|
+
}
|
|
27771
|
+
};
|
|
27772
|
+
for (var i_1 = 0; i_1 < ganttData_1.length; i_1++) {
|
|
27773
|
+
var state_2 = _loop_2(i_1);
|
|
27774
|
+
if (state_2 === "break")
|
|
27775
|
+
break;
|
|
27776
|
+
}
|
|
27677
27777
|
}
|
|
27678
27778
|
else {
|
|
27679
27779
|
startIndex = droppedRecord.index;
|
|
27680
|
-
var
|
|
27681
|
-
|
|
27682
|
-
|
|
27683
|
-
|
|
27684
|
-
|
|
27780
|
+
var _loop_3 = function (i_2) {
|
|
27781
|
+
var currentData = this_1.parent.currentViewData.filter(function (e) {
|
|
27782
|
+
return e[uniqueTaskID_1] === ganttData_1[i_2][uniqueTaskID_1];
|
|
27783
|
+
})[0];
|
|
27784
|
+
if (currentData.index > draggedRecord.index) {
|
|
27785
|
+
endIndex = currentData.index;
|
|
27786
|
+
return "break";
|
|
27787
|
+
}
|
|
27788
|
+
};
|
|
27789
|
+
for (var i_2 = 0; i_2 < ganttData_1.length; i_2++) {
|
|
27790
|
+
var state_3 = _loop_3(i_2);
|
|
27791
|
+
if (state_3 === "break")
|
|
27792
|
+
break;
|
|
27685
27793
|
}
|
|
27686
|
-
endIndex = rootChildRecord.index;
|
|
27687
27794
|
}
|
|
27688
|
-
var
|
|
27689
|
-
if (!isNullOrUndefined(data_1[
|
|
27690
|
-
data_1[
|
|
27691
|
-
if (!isNullOrUndefined(data_1[
|
|
27795
|
+
var _loop_4 = function (i_3) {
|
|
27796
|
+
if (!isNullOrUndefined(data_1[i_3])) {
|
|
27797
|
+
data_1[i_3].index = i_3;
|
|
27798
|
+
if (!isNullOrUndefined(data_1[i_3].parentItem)) {
|
|
27692
27799
|
var updatedParent = data_1.filter(function (e) {
|
|
27693
|
-
return e.uniqueID === data_1[
|
|
27800
|
+
return e.uniqueID === data_1[i_3].parentUniqueID;
|
|
27694
27801
|
})[0];
|
|
27695
|
-
data_1[
|
|
27802
|
+
data_1[i_3].parentItem.index = updatedParent.index;
|
|
27696
27803
|
}
|
|
27697
27804
|
}
|
|
27698
27805
|
};
|
|
27699
|
-
for (var
|
|
27700
|
-
|
|
27806
|
+
for (var i_3 = startIndex; i_3 <= endIndex; i_3++) {
|
|
27807
|
+
_loop_4(i_3);
|
|
27701
27808
|
}
|
|
27702
27809
|
}
|
|
27703
27810
|
gObj.rowDragAndDropModule.refreshDataSource();
|