@syncfusion/ej2-gantt 19.4.52 → 19.4.53
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 +8 -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 +29 -11
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +29 -11
- 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 +10 -10
- package/src/gantt/renderer/chart-rows.js +28 -10
- package/src/gantt/renderer/timeline.js +1 -1
|
@@ -6519,7 +6519,7 @@ class Timeline {
|
|
|
6519
6519
|
const validStartLeft = this.parent.dataOperation.getTaskLeft(validStartDate, false);
|
|
6520
6520
|
const validEndLeft = this.parent.dataOperation.getTaskLeft(validEndDate, false);
|
|
6521
6521
|
let isChanged;
|
|
6522
|
-
if (!isNullOrUndefined(maxStartLeft) && (maxStartLeft
|
|
6522
|
+
if (!isNullOrUndefined(maxStartLeft) && (maxStartLeft < this.bottomTierCellWidth || maxStartLeft <= validStartLeft)) {
|
|
6523
6523
|
isChanged = 'prevTimeSpan';
|
|
6524
6524
|
minStartDate = minStartDate > this.timelineStartDate ? this.timelineStartDate : minStartDate;
|
|
6525
6525
|
}
|
|
@@ -7980,11 +7980,20 @@ class ChartRows extends DateProcessor {
|
|
|
7980
7980
|
labelString = labelString === 'isCustomTemplate' ? this.parent.labelSettings.taskLabel : labelString;
|
|
7981
7981
|
}
|
|
7982
7982
|
if (labelString !== 'null') {
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
7983
|
+
if (isNaN(parseInt(labelString))) {
|
|
7984
|
+
taskLabel$$1 = '<span class="' + taskLabel + '" style="line-height:' +
|
|
7985
|
+
(this.taskBarHeight - 1) + 'px; text-align: left;' +
|
|
7986
|
+
'display:' + 'inline-block;' +
|
|
7987
|
+
'width:' + (data.ganttProperties.width - 10) + 'px; height:' +
|
|
7988
|
+
this.taskBarHeight + 'px;">' + labelString + '</span>';
|
|
7989
|
+
}
|
|
7990
|
+
else {
|
|
7991
|
+
taskLabel$$1 = '<span class="' + taskLabel + '" style="line-height:' +
|
|
7992
|
+
(this.taskBarHeight - 1) + 'px; text-align:' + (this.parent.viewType === 'ResourceView' ? 'left;' : ';') +
|
|
7993
|
+
'display:' + (this.parent.viewType === 'ResourceView' ? 'inline-flex;' : ';') +
|
|
7994
|
+
'width:' + (this.parent.viewType === 'ResourceView' ? (data.ganttProperties.width - 10) : '') + 'px; height:' +
|
|
7995
|
+
this.taskBarHeight + 'px;">' + labelString + '</span>';
|
|
7996
|
+
}
|
|
7988
7997
|
}
|
|
7989
7998
|
const template = !isNullOrUndefined(data.ganttProperties.segments) && data.ganttProperties.segments.length > 0 ?
|
|
7990
7999
|
this.splitTaskbar(data, labelString) : (data.ganttProperties.startDate && data.ganttProperties.endDate
|
|
@@ -8583,11 +8592,20 @@ class ChartRows extends DateProcessor {
|
|
|
8583
8592
|
labelString = labelString === 'isCustomTemplate' ? this.parent.labelSettings.taskLabel : labelString;
|
|
8584
8593
|
}
|
|
8585
8594
|
if (labelString !== 'null') {
|
|
8586
|
-
|
|
8587
|
-
taskLabel + '" style="line-height:' +
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8595
|
+
if (isNaN(parseInt(labelString))) {
|
|
8596
|
+
labelDiv = this.createDivElement('<span class="' + taskLabel + '" style="line-height:' +
|
|
8597
|
+
(this.taskBarHeight - 1) + 'px; text-align: left;' +
|
|
8598
|
+
'display:' + 'inline-block;' +
|
|
8599
|
+
'width:' + (data.ganttProperties.width - 10) + 'px; height:' +
|
|
8600
|
+
this.taskBarHeight + 'px;">' + labelString + '</span>');
|
|
8601
|
+
}
|
|
8602
|
+
else {
|
|
8603
|
+
labelDiv = this.createDivElement('<span class="' +
|
|
8604
|
+
taskLabel + '" style="line-height:' +
|
|
8605
|
+
(this.taskBarHeight - 1) + 'px; display:' + (this.parent.viewType === 'ResourceView' ? 'inline-flex;' : ';') + 'width:' +
|
|
8606
|
+
(this.parent.viewType === 'ResourceView' ? (data.ganttProperties.width - 10) : ';') + 'px; height:' +
|
|
8607
|
+
this.taskBarHeight + 'px;">' + labelString + '</span>');
|
|
8608
|
+
}
|
|
8591
8609
|
progressBarInnerDiv[0].appendChild([].slice.call(labelDiv)[0]);
|
|
8592
8610
|
}
|
|
8593
8611
|
const milestoneTemplate = '<div class="' + parentMilestone + '" style="position:absolute;">' +
|