@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.4.52
3
+ * version : 19.4.53
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-gantt@*",
3
- "_id": "@syncfusion/ej2-gantt@19.4.50",
3
+ "_id": "@syncfusion/ej2-gantt@19.4.52",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-imVvajBdyXAI+FP/7Jb5/pmTr4SyPCEdAS5qE86A0+n1sopZo3IvQdwtdwjVudxDhpD3yvwtYR8h8cvuMgu51Q==",
5
+ "_integrity": "sha512-jNC6nbozt7RvFShA8eRsR5ahAH3LziEQ5nDgjp4syJpylbgisOzYbuITVGBrTANxWvQIgnF47/JoJpPlOuXcAA==",
6
6
  "_location": "/@syncfusion/ej2-gantt",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-gantt",
24
24
  "/@syncfusion/ej2-vue-gantt"
25
25
  ],
26
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-19.4.50.tgz",
27
- "_shasum": "6a6e8627885346972eec6cc8031235561d0e4029",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-19.4.52.tgz",
27
+ "_shasum": "6b4be2ceec02c9e7cc2e3a7fcf7705f099b12f04",
28
28
  "_spec": "@syncfusion/ej2-gantt@*",
29
29
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
30
  "author": {
@@ -36,17 +36,17 @@
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
38
  "@syncfusion/ej2-base": "~19.4.52",
39
- "@syncfusion/ej2-buttons": "~19.4.52",
39
+ "@syncfusion/ej2-buttons": "~19.4.53",
40
40
  "@syncfusion/ej2-calendars": "~19.4.52",
41
41
  "@syncfusion/ej2-data": "~19.4.52",
42
42
  "@syncfusion/ej2-dropdowns": "~19.4.52",
43
- "@syncfusion/ej2-grids": "~19.4.52",
43
+ "@syncfusion/ej2-grids": "~19.4.53",
44
44
  "@syncfusion/ej2-inputs": "~19.4.52",
45
45
  "@syncfusion/ej2-layouts": "~19.4.52",
46
46
  "@syncfusion/ej2-lists": "~19.4.52",
47
- "@syncfusion/ej2-navigations": "~19.4.52",
48
- "@syncfusion/ej2-popups": "~19.4.52",
49
- "@syncfusion/ej2-richtexteditor": "~19.4.52",
47
+ "@syncfusion/ej2-navigations": "~19.4.53",
48
+ "@syncfusion/ej2-popups": "~19.4.53",
49
+ "@syncfusion/ej2-richtexteditor": "~19.4.53",
50
50
  "@syncfusion/ej2-treegrid": "~19.4.52"
51
51
  },
52
52
  "deprecated": false,
@@ -75,6 +75,6 @@
75
75
  "url": "git+https://github.com/syncfusion/ej2-gantt.git"
76
76
  },
77
77
  "typings": "index.d.ts",
78
- "version": "19.4.52",
78
+ "version": "19.4.53",
79
79
  "sideEffects": false
80
80
  }
@@ -175,11 +175,20 @@ var ChartRows = /** @class */ (function (_super) {
175
175
  labelString = labelString === 'isCustomTemplate' ? this.parent.labelSettings.taskLabel : labelString;
176
176
  }
177
177
  if (labelString !== 'null') {
178
- taskLabel = '<span class="' + cls.taskLabel + '" style="line-height:' +
179
- (this.taskBarHeight - 1) + 'px; text-align: left;' +
180
- 'display:' + 'inline-block;' +
181
- 'width:' + (data.ganttProperties.width - 10) + 'px; height:' +
182
- this.taskBarHeight + 'px;">' + labelString + '</span>';
178
+ if (isNaN(parseInt(labelString))) {
179
+ taskLabel = '<span class="' + cls.taskLabel + '" style="line-height:' +
180
+ (this.taskBarHeight - 1) + 'px; text-align: left;' +
181
+ 'display:' + 'inline-block;' +
182
+ 'width:' + (data.ganttProperties.width - 10) + 'px; height:' +
183
+ this.taskBarHeight + 'px;">' + labelString + '</span>';
184
+ }
185
+ else {
186
+ taskLabel = '<span class="' + cls.taskLabel + '" style="line-height:' +
187
+ (this.taskBarHeight - 1) + 'px; text-align:' + (this.parent.viewType === 'ResourceView' ? 'left;' : ';') +
188
+ 'display:' + (this.parent.viewType === 'ResourceView' ? 'inline-flex;' : ';') +
189
+ 'width:' + (this.parent.viewType === 'ResourceView' ? (data.ganttProperties.width - 10) : '') + 'px; height:' +
190
+ this.taskBarHeight + 'px;">' + labelString + '</span>';
191
+ }
183
192
  }
184
193
  var template = !isNullOrUndefined(data.ganttProperties.segments) && data.ganttProperties.segments.length > 0 ?
185
194
  this.splitTaskbar(data, labelString) : (data.ganttProperties.startDate && data.ganttProperties.endDate
@@ -778,11 +787,20 @@ var ChartRows = /** @class */ (function (_super) {
778
787
  labelString = labelString === 'isCustomTemplate' ? this.parent.labelSettings.taskLabel : labelString;
779
788
  }
780
789
  if (labelString !== 'null') {
781
- labelDiv = this.createDivElement('<span class="' +
782
- cls.taskLabel + '" style="line-height:' +
783
- (this.taskBarHeight - 1) + 'px; display:' + (this.parent.viewType === 'ResourceView' ? 'inline-flex;' : '') + 'width:' +
784
- (this.parent.viewType === 'ResourceView' ? (data.ganttProperties.width - 10) : '') + 'px; height:' +
785
- this.taskBarHeight + 'px;">' + labelString + '</span>');
790
+ if (isNaN(parseInt(labelString))) {
791
+ labelDiv = this.createDivElement('<span class="' + cls.taskLabel + '" style="line-height:' +
792
+ (this.taskBarHeight - 1) + 'px; text-align: left;' +
793
+ 'display:' + 'inline-block;' +
794
+ 'width:' + (data.ganttProperties.width - 10) + 'px; height:' +
795
+ this.taskBarHeight + 'px;">' + labelString + '</span>');
796
+ }
797
+ else {
798
+ labelDiv = this.createDivElement('<span class="' +
799
+ cls.taskLabel + '" style="line-height:' +
800
+ (this.taskBarHeight - 1) + 'px; display:' + (this.parent.viewType === 'ResourceView' ? 'inline-flex;' : ';') + 'width:' +
801
+ (this.parent.viewType === 'ResourceView' ? (data.ganttProperties.width - 10) : ';') + 'px; height:' +
802
+ this.taskBarHeight + 'px;">' + labelString + '</span>');
803
+ }
786
804
  progressBarInnerDiv[0].appendChild([].slice.call(labelDiv)[0]);
787
805
  }
788
806
  var milestoneTemplate = '<div class="' + cls.parentMilestone + '" style="position:absolute;">' +
@@ -1276,7 +1276,7 @@ var Timeline = /** @class */ (function () {
1276
1276
  var validStartLeft = this.parent.dataOperation.getTaskLeft(validStartDate, false);
1277
1277
  var validEndLeft = this.parent.dataOperation.getTaskLeft(validEndDate, false);
1278
1278
  var isChanged = void 0;
1279
- if (!isNullOrUndefined(maxStartLeft) && (maxStartLeft <= this.bottomTierCellWidth || maxStartLeft <= validStartLeft)) {
1279
+ if (!isNullOrUndefined(maxStartLeft) && (maxStartLeft < this.bottomTierCellWidth || maxStartLeft <= validStartLeft)) {
1280
1280
  isChanged = 'prevTimeSpan';
1281
1281
  minStartDate = minStartDate > this.timelineStartDate ? this.timelineStartDate : minStartDate;
1282
1282
  }