@syncfusion/ej2-gantt 20.2.45 → 20.2.46
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 +10 -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 +22 -8
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +22 -8
- 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 +15 -15
- package/src/gantt/actions/rowdragdrop.js +2 -2
- package/src/gantt/base/splitter.js +3 -1
- package/src/gantt/base/task-processor.js +4 -1
- package/src/gantt/renderer/chart-rows.js +12 -3
- package/src/gantt/renderer/timeline.js +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.2.
|
|
3
|
+
* version : 20.2.46
|
|
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.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@20.2.45",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-ajQDPydpNT3nPoQsgQbNvzpYTsTRNCTDPtZiSUAwNJvMOpc7kCnsctSdfoZlO2MUz3rIGiJUIHeLjIpCytU4rw==",
|
|
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.2.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.2.45.tgz",
|
|
27
|
+
"_shasum": "04dc5c6523a85ba8ecadcd80d6b9e43c7f202fd8",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~20.2.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~20.2.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~20.2.
|
|
38
|
+
"@syncfusion/ej2-base": "~20.2.46",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~20.2.46",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~20.2.46",
|
|
41
41
|
"@syncfusion/ej2-data": "~20.2.45",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~20.2.
|
|
43
|
-
"@syncfusion/ej2-grids": "~20.2.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~20.2.46",
|
|
43
|
+
"@syncfusion/ej2-grids": "~20.2.46",
|
|
44
44
|
"@syncfusion/ej2-inputs": "~20.2.45",
|
|
45
|
-
"@syncfusion/ej2-layouts": "~20.2.
|
|
46
|
-
"@syncfusion/ej2-lists": "~20.2.
|
|
47
|
-
"@syncfusion/ej2-navigations": "~20.2.
|
|
45
|
+
"@syncfusion/ej2-layouts": "~20.2.46",
|
|
46
|
+
"@syncfusion/ej2-lists": "~20.2.46",
|
|
47
|
+
"@syncfusion/ej2-navigations": "~20.2.46",
|
|
48
48
|
"@syncfusion/ej2-popups": "~20.2.45",
|
|
49
|
-
"@syncfusion/ej2-richtexteditor": "~20.2.
|
|
50
|
-
"@syncfusion/ej2-treegrid": "~20.2.
|
|
49
|
+
"@syncfusion/ej2-richtexteditor": "~20.2.46",
|
|
50
|
+
"@syncfusion/ej2-treegrid": "~20.2.46"
|
|
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.2.
|
|
78
|
+
"version": "20.2.46",
|
|
79
79
|
"sideEffects": false
|
|
80
80
|
}
|
|
@@ -259,7 +259,7 @@ var RowDD = /** @class */ (function () {
|
|
|
259
259
|
var currentData = this_1.parent.currentViewData.filter(function (e) {
|
|
260
260
|
return e[uniqueTaskID_1] === ganttData_1[i_1][uniqueTaskID_1];
|
|
261
261
|
})[0];
|
|
262
|
-
if (currentData.index > droppedRecord.index) {
|
|
262
|
+
if (currentData && currentData.index > droppedRecord.index) {
|
|
263
263
|
endIndex = currentData.index;
|
|
264
264
|
return "break";
|
|
265
265
|
}
|
|
@@ -276,7 +276,7 @@ var RowDD = /** @class */ (function () {
|
|
|
276
276
|
var currentData = this_1.parent.currentViewData.filter(function (e) {
|
|
277
277
|
return e[uniqueTaskID_1] === ganttData_1[i_2][uniqueTaskID_1];
|
|
278
278
|
})[0];
|
|
279
|
-
if (currentData.index > draggedRecord.index) {
|
|
279
|
+
if (currentData && currentData.index > draggedRecord.index) {
|
|
280
280
|
endIndex = currentData.index;
|
|
281
281
|
return "break";
|
|
282
282
|
}
|
|
@@ -61,7 +61,9 @@ var Splitter = /** @class */ (function () {
|
|
|
61
61
|
_this.splitterObject.paneSettings[1].size = null;
|
|
62
62
|
_this.splitterObject.paneSettings[1].size = _this.getSpliterPositionInPercentage(_this.splitterPreviousPositionChart);
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
if (isNullOrUndefined(_this.parent.projectEndDate)) {
|
|
65
|
+
_this.parent.timelineModule.updateTimelineAfterZooming(_this.parent.timelineModule.timelineEndDate, true);
|
|
66
|
+
}
|
|
65
67
|
callBackPromise.resolve(splitterResizedArgs);
|
|
66
68
|
});
|
|
67
69
|
return callBackPromise;
|
|
@@ -376,7 +376,10 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
376
376
|
this.setTime(this.parent.defaultEndTime, baselineEndDate);
|
|
377
377
|
}
|
|
378
378
|
if ((ganttProperties.baselineStartDate && baselineEndDate &&
|
|
379
|
-
(ganttProperties.baselineStartDate.getTime() > baselineEndDate.getTime())) ||
|
|
379
|
+
(ganttProperties.baselineStartDate.getTime() > baselineEndDate.getTime())) ||
|
|
380
|
+
((!isNullOrUndefined(ganttProperties.baselineStartDate) && !isNullOrUndefined(ganttProperties.startDate) && (ganttProperties.baselineStartDate.getTime() === ganttProperties.startDate.getTime()))
|
|
381
|
+
&& (!isNullOrUndefined(baselineEndDate) && !isNullOrUndefined(ganttProperties.endDate) && (baselineEndDate.toLocaleDateString() === ganttProperties.endDate.toLocaleDateString())) &&
|
|
382
|
+
ganttProperties.isMilestone)) {
|
|
380
383
|
baselineEndDate = ganttProperties.baselineStartDate;
|
|
381
384
|
}
|
|
382
385
|
this.parent.setRecordValue('baselineEndDate', this.checkBaselineEndDate(baselineEndDate, ganttProperties), ganttProperties, true);
|
|
@@ -1331,7 +1331,10 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1331
1331
|
}
|
|
1332
1332
|
if (this.parent.renderBaseline && this.templateData.ganttProperties.baselineStartDate &&
|
|
1333
1333
|
this.templateData.ganttProperties.baselineEndDate) {
|
|
1334
|
-
taskBaselineTemplateNode = this.
|
|
1334
|
+
taskBaselineTemplateNode = ((!isNullOrUndefined(this.templateData.ganttProperties.baselineStartDate) && !isNullOrUndefined(this.templateData.ganttProperties.startDate) && (this.templateData.ganttProperties.baselineStartDate.getTime() === this.templateData.ganttProperties.startDate.getTime()))
|
|
1335
|
+
&& (!isNullOrUndefined(this.templateData.ganttProperties.baselineEndDate) && !isNullOrUndefined(this.templateData.ganttProperties.endDate) && (this.templateData.ganttProperties.baselineEndDate.toLocaleDateString() === this.templateData.ganttProperties.endDate.toLocaleDateString())) &&
|
|
1336
|
+
this.templateData.ganttProperties.isMilestone)
|
|
1337
|
+
? this.getMilestoneBaselineNode() : this.getTaskBaselineNode();
|
|
1335
1338
|
}
|
|
1336
1339
|
}
|
|
1337
1340
|
else if (this.templateData.ganttProperties.isMilestone) {
|
|
@@ -1341,7 +1344,10 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1341
1344
|
}
|
|
1342
1345
|
if (this.parent.renderBaseline && this.templateData.ganttProperties.baselineStartDate &&
|
|
1343
1346
|
this.templateData.ganttProperties.baselineEndDate) {
|
|
1344
|
-
taskBaselineTemplateNode = this.
|
|
1347
|
+
taskBaselineTemplateNode = ((!isNullOrUndefined(this.templateData.ganttProperties.baselineStartDate) && !isNullOrUndefined(this.templateData.ganttProperties.startDate) && (this.templateData.ganttProperties.baselineStartDate.getTime() === this.templateData.ganttProperties.startDate.getTime()))
|
|
1348
|
+
&& (!isNullOrUndefined(this.templateData.ganttProperties.baselineEndDate) && !isNullOrUndefined(this.templateData.ganttProperties.endDate) && (this.templateData.ganttProperties.baselineEndDate.toLocaleDateString() === this.templateData.ganttProperties.endDate.toLocaleDateString())) &&
|
|
1349
|
+
this.templateData.ganttProperties.isMilestone)
|
|
1350
|
+
? this.getMilestoneBaselineNode() : this.getTaskBaselineNode();
|
|
1345
1351
|
}
|
|
1346
1352
|
}
|
|
1347
1353
|
else {
|
|
@@ -1386,7 +1392,10 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1386
1392
|
}
|
|
1387
1393
|
if (this.parent.renderBaseline && this.templateData.ganttProperties.baselineStartDate &&
|
|
1388
1394
|
this.templateData.ganttProperties.baselineEndDate) {
|
|
1389
|
-
taskBaselineTemplateNode = this.
|
|
1395
|
+
taskBaselineTemplateNode = ((!isNullOrUndefined(this.templateData.ganttProperties.baselineStartDate) && !isNullOrUndefined(this.templateData.ganttProperties.startDate) && (this.templateData.ganttProperties.baselineStartDate.getTime() === this.templateData.ganttProperties.startDate.getTime()))
|
|
1396
|
+
&& (!isNullOrUndefined(this.templateData.ganttProperties.baselineEndDate) && !isNullOrUndefined(this.templateData.ganttProperties.endDate) && (this.templateData.ganttProperties.baselineEndDate.toLocaleDateString() === this.templateData.ganttProperties.endDate.toLocaleDateString())) &&
|
|
1397
|
+
this.templateData.ganttProperties.isMilestone)
|
|
1398
|
+
? this.getMilestoneBaselineNode() : this.getTaskBaselineNode();
|
|
1390
1399
|
}
|
|
1391
1400
|
}
|
|
1392
1401
|
if (!this.templateData.hasChildRecords) {
|
|
@@ -921,7 +921,7 @@ var Timeline = /** @class */ (function () {
|
|
|
921
921
|
endDate.setHours(24, 0, 0, 0);
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
|
-
if (this.isZooming || this.parent.isLoad) {
|
|
924
|
+
if ((this.isZooming || this.parent.isLoad) && isNullOrUndefined(this.parent.projectEndDate)) {
|
|
925
925
|
this.updateTimelineAfterZooming(endDate, false);
|
|
926
926
|
}
|
|
927
927
|
return endDate;
|