@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
|
@@ -6585,7 +6585,7 @@ var Timeline = /** @__PURE__ @class */ (function () {
|
|
|
6585
6585
|
var validStartLeft = this.parent.dataOperation.getTaskLeft(validStartDate, false);
|
|
6586
6586
|
var validEndLeft = this.parent.dataOperation.getTaskLeft(validEndDate, false);
|
|
6587
6587
|
var isChanged = void 0;
|
|
6588
|
-
if (!isNullOrUndefined(maxStartLeft) && (maxStartLeft
|
|
6588
|
+
if (!isNullOrUndefined(maxStartLeft) && (maxStartLeft < this.bottomTierCellWidth || maxStartLeft <= validStartLeft)) {
|
|
6589
6589
|
isChanged = 'prevTimeSpan';
|
|
6590
6590
|
minStartDate = minStartDate > this.timelineStartDate ? this.timelineStartDate : minStartDate;
|
|
6591
6591
|
}
|
|
@@ -8368,11 +8368,20 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
8368
8368
|
labelString = labelString === 'isCustomTemplate' ? this.parent.labelSettings.taskLabel : labelString;
|
|
8369
8369
|
}
|
|
8370
8370
|
if (labelString !== 'null') {
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8371
|
+
if (isNaN(parseInt(labelString))) {
|
|
8372
|
+
taskLabel$$1 = '<span class="' + taskLabel + '" style="line-height:' +
|
|
8373
|
+
(this.taskBarHeight - 1) + 'px; text-align: left;' +
|
|
8374
|
+
'display:' + 'inline-block;' +
|
|
8375
|
+
'width:' + (data.ganttProperties.width - 10) + 'px; height:' +
|
|
8376
|
+
this.taskBarHeight + 'px;">' + labelString + '</span>';
|
|
8377
|
+
}
|
|
8378
|
+
else {
|
|
8379
|
+
taskLabel$$1 = '<span class="' + taskLabel + '" style="line-height:' +
|
|
8380
|
+
(this.taskBarHeight - 1) + 'px; text-align:' + (this.parent.viewType === 'ResourceView' ? 'left;' : ';') +
|
|
8381
|
+
'display:' + (this.parent.viewType === 'ResourceView' ? 'inline-flex;' : ';') +
|
|
8382
|
+
'width:' + (this.parent.viewType === 'ResourceView' ? (data.ganttProperties.width - 10) : '') + 'px; height:' +
|
|
8383
|
+
this.taskBarHeight + 'px;">' + labelString + '</span>';
|
|
8384
|
+
}
|
|
8376
8385
|
}
|
|
8377
8386
|
var template = !isNullOrUndefined(data.ganttProperties.segments) && data.ganttProperties.segments.length > 0 ?
|
|
8378
8387
|
this.splitTaskbar(data, labelString) : (data.ganttProperties.startDate && data.ganttProperties.endDate
|
|
@@ -8971,11 +8980,20 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
8971
8980
|
labelString = labelString === 'isCustomTemplate' ? this.parent.labelSettings.taskLabel : labelString;
|
|
8972
8981
|
}
|
|
8973
8982
|
if (labelString !== 'null') {
|
|
8974
|
-
|
|
8975
|
-
taskLabel + '" style="line-height:' +
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8983
|
+
if (isNaN(parseInt(labelString))) {
|
|
8984
|
+
labelDiv = this.createDivElement('<span class="' + taskLabel + '" style="line-height:' +
|
|
8985
|
+
(this.taskBarHeight - 1) + 'px; text-align: left;' +
|
|
8986
|
+
'display:' + 'inline-block;' +
|
|
8987
|
+
'width:' + (data.ganttProperties.width - 10) + 'px; height:' +
|
|
8988
|
+
this.taskBarHeight + 'px;">' + labelString + '</span>');
|
|
8989
|
+
}
|
|
8990
|
+
else {
|
|
8991
|
+
labelDiv = this.createDivElement('<span class="' +
|
|
8992
|
+
taskLabel + '" style="line-height:' +
|
|
8993
|
+
(this.taskBarHeight - 1) + 'px; display:' + (this.parent.viewType === 'ResourceView' ? 'inline-flex;' : ';') + 'width:' +
|
|
8994
|
+
(this.parent.viewType === 'ResourceView' ? (data.ganttProperties.width - 10) : ';') + 'px; height:' +
|
|
8995
|
+
this.taskBarHeight + 'px;">' + labelString + '</span>');
|
|
8996
|
+
}
|
|
8979
8997
|
progressBarInnerDiv[0].appendChild([].slice.call(labelDiv)[0]);
|
|
8980
8998
|
}
|
|
8981
8999
|
var milestoneTemplate = '<div class="' + parentMilestone + '" style="position:absolute;">' +
|