@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.4.42
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.41",
3
+ "_id": "@syncfusion/ej2-gantt@19.4.42",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-3KG1MspUbkHxeZJld50zA7/dLZW73hmvbOghZ4/Ti62Z5c5hTuK4txNgNz0968loU+UCjAU4cyMU391bjUEqpA==",
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.41.tgz",
27
- "_shasum": "95e837b715bb937d5f45dbf8ab343a1172ac2f78",
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.42",
44
- "@syncfusion/ej2-inputs": "~19.4.42",
45
- "@syncfusion/ej2-layouts": "~19.4.38",
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.42",
78
+ "version": "19.4.43",
79
79
  "sideEffects": false
80
80
  }
@@ -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
- for (var i = 0; i < resourceData.length; i++) {
1231
- resourcesId.push(resourceData[i][resourceSettings.id]);
1232
- var resName = resourceData[i][resourceSettings.name];
1233
- var resourceUnit = resourceData[i][resourceSettings.unit];
1234
- if (resourceUnit !== 100) {
1235
- resName += '[' + resourceUnit + '%' + ']';
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);