@syncfusion/ej2-gantt 20.1.51 → 20.1.52

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 : 20.1.51
3
+ * version : 20.1.52
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@20.1.50",
3
+ "_id": "@syncfusion/ej2-gantt@20.1.51",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-RfhzWOGmO7XGQ5xseJGGbRAHhgqv6rLAiVWSKxNeYLjNkY3vjj7j8aoyH9OGIAjAI8lX3ZAr6BOtIXpYwhnwlQ==",
5
+ "_integrity": "sha512-hpuh4ikvObS1mKA45ZSDNduWBKdILWzPS0UzBbIdnVZcrLka7ba2hfAGx7Lp5wkRp7iUOHW/jHD/KB8qDm1LQg==",
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-20.1.50.tgz",
27
- "_shasum": "527cab5ce59fce5ee5719e30d9970507cd0cf5cf",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.1.51.tgz",
27
+ "_shasum": "64b61c584db9ce4752fe43078762a9c14bba20f7",
28
28
  "_spec": "@syncfusion/ej2-gantt@*",
29
29
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
30
  "author": {
@@ -36,18 +36,18 @@
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
38
  "@syncfusion/ej2-base": "~20.1.50",
39
- "@syncfusion/ej2-buttons": "~20.1.50",
40
- "@syncfusion/ej2-calendars": "~20.1.47",
39
+ "@syncfusion/ej2-buttons": "~20.1.52",
40
+ "@syncfusion/ej2-calendars": "~20.1.52",
41
41
  "@syncfusion/ej2-data": "~20.1.47",
42
- "@syncfusion/ej2-dropdowns": "~20.1.51",
43
- "@syncfusion/ej2-grids": "~20.1.51",
42
+ "@syncfusion/ej2-dropdowns": "~20.1.52",
43
+ "@syncfusion/ej2-grids": "~20.1.52",
44
44
  "@syncfusion/ej2-inputs": "~20.1.48",
45
45
  "@syncfusion/ej2-layouts": "~20.1.47",
46
46
  "@syncfusion/ej2-lists": "~20.1.47",
47
47
  "@syncfusion/ej2-navigations": "~20.1.51",
48
48
  "@syncfusion/ej2-popups": "~20.1.47",
49
- "@syncfusion/ej2-richtexteditor": "~20.1.51",
50
- "@syncfusion/ej2-treegrid": "~20.1.51"
49
+ "@syncfusion/ej2-richtexteditor": "~20.1.52",
50
+ "@syncfusion/ej2-treegrid": "~20.1.52"
51
51
  },
52
52
  "deprecated": false,
53
53
  "description": "Essential JS 2 Gantt Component",
@@ -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": "20.1.51",
78
+ "version": "20.1.52",
79
79
  "sideEffects": false
80
80
  }
@@ -393,6 +393,9 @@ var Gantt = /** @class */ (function (_super) {
393
393
  }
394
394
  else {
395
395
  this.treeGrid.dataSource = this.flatData;
396
+ if (!isNullOrUndefined(document.getElementsByClassName('e-listview')[0])) {
397
+ this.treeGrid.dataBind();
398
+ }
396
399
  }
397
400
  }
398
401
  else {
@@ -79,7 +79,10 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
79
79
  var progressFormat = new PdfStringFormat();
80
80
  progressFormat.lineAlignment = PdfVerticalAlignment.Middle;
81
81
  progressFormat.alignment = PdfTextAlignment.Right;
82
+ var isLabelString = false;
83
+ var updatedWidth;
82
84
  if (/^[a-zA-Z]/.test(this.taskLabel)) {
85
+ isLabelString = true;
83
86
  progressFormat.alignment = PdfTextAlignment.Left;
84
87
  }
85
88
  var pageIndex = -1;
@@ -106,7 +109,11 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
106
109
  if (this.isScheduledTask) {
107
110
  taskGraphics.drawRectangle(progressPen, progressBrush, startPoint.x + pixelToPoint(this.left - cumulativeWidth) + 0.5, startPoint.y + adjustHeight, pixelToPoint(taskbar.progressWidth), pixelToPoint(taskbar.height));
108
111
  if (!isNullOrUndefined(this.parent.labelSettings.taskLabel) && !isNullOrUndefined(this.taskLabel)) {
109
- taskGraphics.drawString(this.taskLabel.toString(), font, fontColor, fontBrush, startPoint.x + pixelToPoint(this.left - cumulativeWidth), startPoint.y + adjustHeight, pixelToPoint(this.progressWidth), pixelToPoint(this.height), progressFormat);
112
+ updatedWidth = this.progressWidth;
113
+ if (isLabelString) {
114
+ updatedWidth = this.width;
115
+ }
116
+ taskGraphics.drawString(this.taskLabel.toString(), font, fontColor, fontBrush, startPoint.x + pixelToPoint(this.left - cumulativeWidth), startPoint.y + adjustHeight, pixelToPoint(updatedWidth), pixelToPoint(this.height), progressFormat);
110
117
  }
111
118
  }
112
119
  }
@@ -121,7 +128,9 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
121
128
  this.isStartPoint = true;
122
129
  }
123
130
  var renderWidth = 0;
124
- this.width = this.width - (detail.totalWidth - (this.left - cumulativeWidth));
131
+ if (!isLabelString) {
132
+ this.width = this.width - (detail.totalWidth - (this.left - cumulativeWidth));
133
+ }
125
134
  renderWidth = (detail.totalWidth - (this.left - cumulativeWidth));
126
135
  if (!this.isScheduledTask && this.unscheduledTaskBy !== 'duration') {
127
136
  this.drawUnscheduledTask(taskGraphics, startPoint, cumulativeWidth, adjustHeight);
@@ -139,7 +148,11 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
139
148
  taskGraphics.drawRectangle(progressPen, progressBrush, startPoint.x + pixelToPoint(this.left - cumulativeWidth) + 0.5, startPoint.y + adjustHeight, pixelToPoint(progressBoundsWidth), pixelToPoint(taskbar.height));
140
149
  this.progressWidth -= progressBoundsWidth;
141
150
  if (this.parent.labelSettings.taskLabel && !isNullOrUndefined(this.taskLabel)) {
142
- taskGraphics.drawString(this.taskLabel.toString(), font, fontColor, fontBrush, startPoint.x + pixelToPoint(this.left - cumulativeWidth), (startPoint.y + adjustHeight), pixelToPoint(progressBoundsWidth), pixelToPoint(this.height), progressFormat);
151
+ updatedWidth = progressBoundsWidth;
152
+ if (isLabelString) {
153
+ updatedWidth = this.width;
154
+ }
155
+ taskGraphics.drawString(this.taskLabel.toString(), font, fontColor, fontBrush, startPoint.x + pixelToPoint(this.left - cumulativeWidth), (startPoint.y + adjustHeight), pixelToPoint(updatedWidth), pixelToPoint(this.height), progressFormat);
143
156
  }
144
157
  }
145
158
  }
@@ -157,7 +170,11 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
157
170
  if (this.isScheduledTask) {
158
171
  taskGraphics.drawRectangle(progressPen, progressBrush, startPoint.x + pixelToPoint(taskbar.left + 0.5), startPoint.y + adjustHeight, pixelToPoint(taskbar.progressWidth), pixelToPoint(taskbar.height));
159
172
  if (!isNullOrUndefined(this.taskLabel)) {
160
- taskGraphics.drawString(this.taskLabel.toString(), font, fontColor, fontBrush, startPoint.x + pixelToPoint(this.left), (startPoint.y + adjustHeight), pixelToPoint(this.progressWidth), pixelToPoint(this.height), progressFormat);
173
+ updatedWidth = this.progressWidth;
174
+ if (isLabelString) {
175
+ updatedWidth = this.width;
176
+ }
177
+ taskGraphics.drawString(this.taskLabel.toString(), font, fontColor, fontBrush, startPoint.x + pixelToPoint(this.left), (startPoint.y + adjustHeight), pixelToPoint(updatedWidth), pixelToPoint(this.height), progressFormat);
161
178
  }
162
179
  }
163
180
  this.isCompleted = true;
@@ -182,7 +199,11 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
182
199
  taskGraphics.drawRectangle(progressPen, progressBrush, startPoint.x + pixelToPoint(taskbar.left) + 0.5, startPoint.y + adjustHeight, pixelToPoint(progressBoundsWidth), pixelToPoint(taskbar.height));
183
200
  this.progressWidth -= progressBoundsWidth;
184
201
  if (!isNullOrUndefined(this.taskLabel)) {
185
- taskGraphics.drawString(this.taskLabel.toString(), font, fontColor, fontBrush, startPoint.x + pixelToPoint(this.left), (startPoint.y + adjustHeight), pixelToPoint(progressBoundsWidth), pixelToPoint(this.height), progressFormat);
202
+ updatedWidth = progressBoundsWidth;
203
+ if (isLabelString) {
204
+ updatedWidth = this.width;
205
+ }
206
+ taskGraphics.drawString(this.taskLabel.toString(), font, fontColor, fontBrush, startPoint.x + pixelToPoint(this.left), (startPoint.y + adjustHeight), pixelToPoint(updatedWidth), pixelToPoint(this.height), progressFormat);
186
207
  }
187
208
  }
188
209
  this.isCompleted = false;