@syncfusion/ej2-gantt 19.4.42 → 19.4.43
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 +9 -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 +12 -9
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +12 -9
- 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 +8 -8
- package/src/gantt/base/gantt.js +3 -2
- package/src/gantt/base/task-processor.js +9 -7
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.4.
|
|
3
|
+
* version : 19.4.43
|
|
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.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@19.4.42",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-kEt5wqOD/GQdNZnD3wAYxHxwV90nyc0eiBOEUJ0+Vtz5V0JKD8y+uaUSqwBWytup8puLZv/an4kaRNrdujg4lQ==",
|
|
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.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-19.4.42.tgz",
|
|
27
|
+
"_shasum": "c94b802d9a77ea0ac7710ab428cf40f76527116e",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"@syncfusion/ej2-calendars": "~19.4.42",
|
|
41
41
|
"@syncfusion/ej2-data": "~19.4.42",
|
|
42
42
|
"@syncfusion/ej2-dropdowns": "~19.4.42",
|
|
43
|
-
"@syncfusion/ej2-grids": "~19.4.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~19.4.
|
|
45
|
-
"@syncfusion/ej2-layouts": "~19.4.
|
|
43
|
+
"@syncfusion/ej2-grids": "~19.4.43",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~19.4.43",
|
|
45
|
+
"@syncfusion/ej2-layouts": "~19.4.43",
|
|
46
46
|
"@syncfusion/ej2-lists": "~19.4.38",
|
|
47
47
|
"@syncfusion/ej2-navigations": "~19.4.41",
|
|
48
48
|
"@syncfusion/ej2-popups": "~19.4.41",
|
|
@@ -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.
|
|
78
|
+
"version": "19.4.43",
|
|
79
79
|
"sideEffects": false
|
|
80
80
|
}
|
package/src/gantt/base/gantt.js
CHANGED
|
@@ -292,7 +292,7 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
292
292
|
Gantt.prototype.calculateDimensions = function () {
|
|
293
293
|
var settingsHeight;
|
|
294
294
|
if (typeof (this.height) !== 'number' && this.height.indexOf('%') !== -1 && (this.element.parentElement &&
|
|
295
|
-
!this.element.parentElement.style.height)) {
|
|
295
|
+
!this.element.parentElement.style.height || this.element.parentElement.style.height.indexOf('%') !== -1)) {
|
|
296
296
|
var ganttHeight = Number(this.height.split("%")[0]);
|
|
297
297
|
ganttHeight = (ganttHeight * window.innerHeight) / 100;
|
|
298
298
|
if (this.height === '100%') {
|
|
@@ -448,7 +448,8 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
448
448
|
var settingsHeight = void 0;
|
|
449
449
|
if (this.height.indexOf('%') !== -1) {
|
|
450
450
|
var ganttHeight = Number(this.height.split("%")[0]);
|
|
451
|
-
if (this.element.parentElement && this.element.parentElement.style.height
|
|
451
|
+
if (this.element.parentElement && (this.element.parentElement.style.height
|
|
452
|
+
|| this.element.parentElement.style.height.indexOf('%') !== -1)) {
|
|
452
453
|
var containerHeight = Number(this.element.parentElement.style.height.split("px")[0]);
|
|
453
454
|
ganttHeight = (ganttHeight * containerHeight) / 100;
|
|
454
455
|
}
|
|
@@ -1227,14 +1227,16 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
1227
1227
|
// eslint-disable-next-line
|
|
1228
1228
|
var resourcesId = [];
|
|
1229
1229
|
var resourcesName = [];
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1230
|
+
if (!isNullOrUndefined(resourceData)) {
|
|
1231
|
+
for (var i = 0; i < resourceData.length; i++) {
|
|
1232
|
+
resourcesId.push(resourceData[i][resourceSettings.id]);
|
|
1233
|
+
var resName = resourceData[i][resourceSettings.name];
|
|
1234
|
+
var resourceUnit = resourceData[i][resourceSettings.unit];
|
|
1235
|
+
if (resourceUnit !== 100) {
|
|
1236
|
+
resName += '[' + resourceUnit + '%' + ']';
|
|
1237
|
+
}
|
|
1238
|
+
resourcesName.push(resName);
|
|
1236
1239
|
}
|
|
1237
|
-
resourcesName.push(resName);
|
|
1238
1240
|
}
|
|
1239
1241
|
this.parent.setRecordValue('resourceNames', resourcesName.join(','), ganttProp, true);
|
|
1240
1242
|
this.updateTaskDataResource(ganttData);
|