@syncfusion/ej2-gantt 20.4.50 → 20.4.51
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/GitLeaksReport.json +1 -0
- package/dist/ej2-gantt.min.js +2 -2
- 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 -3
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +13 -4
- 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/gitleaks-ci/gitleaks +0 -0
- package/gitleaks-ci.tar.gz +0 -0
- package/package.json +13 -13
- package/src/gantt/actions/edit.js +2 -0
- package/src/gantt/base/task-processor.js +2 -2
- package/src/gantt/export/pdf-connector-line.d.ts +1 -0
- package/src/gantt/export/pdf-connector-line.js +9 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.4.
|
|
3
|
+
* version : 20.4.51
|
|
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
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-gantt@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-gantt@20.4.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@20.4.50",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-MTexEpLalEOVIDdEkPvbYTn56G+8FWX04g0OKhlL/UydIfhXmT4I2mLfzgIq7WX7PAqC0EAio9pupG5eCD+kAA==",
|
|
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": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.4.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.4.50.tgz",
|
|
27
|
+
"_shasum": "d953e76107a7fddcced14ea34d77d224ae7e41f0",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~20.4.
|
|
38
|
+
"@syncfusion/ej2-base": "~20.4.51",
|
|
39
39
|
"@syncfusion/ej2-buttons": "~20.4.50",
|
|
40
|
-
"@syncfusion/ej2-calendars": "~20.4.
|
|
40
|
+
"@syncfusion/ej2-calendars": "~20.4.51",
|
|
41
41
|
"@syncfusion/ej2-data": "~20.4.48",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~20.4.
|
|
43
|
-
"@syncfusion/ej2-grids": "~20.4.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~20.4.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~20.4.51",
|
|
43
|
+
"@syncfusion/ej2-grids": "~20.4.51",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~20.4.51",
|
|
45
45
|
"@syncfusion/ej2-layouts": "~20.4.48",
|
|
46
46
|
"@syncfusion/ej2-lists": "~20.4.50",
|
|
47
|
-
"@syncfusion/ej2-navigations": "~20.4.
|
|
47
|
+
"@syncfusion/ej2-navigations": "~20.4.51",
|
|
48
48
|
"@syncfusion/ej2-notifications": "~20.4.48",
|
|
49
|
-
"@syncfusion/ej2-popups": "~20.4.
|
|
50
|
-
"@syncfusion/ej2-richtexteditor": "~20.4.
|
|
49
|
+
"@syncfusion/ej2-popups": "~20.4.51",
|
|
50
|
+
"@syncfusion/ej2-richtexteditor": "~20.4.51",
|
|
51
51
|
"@syncfusion/ej2-treegrid": "~20.4.49"
|
|
52
52
|
},
|
|
53
53
|
"deprecated": false,
|
|
@@ -73,6 +73,6 @@
|
|
|
73
73
|
"url": "git+https://github.com/syncfusion/ej2-gantt.git"
|
|
74
74
|
},
|
|
75
75
|
"typings": "index.d.ts",
|
|
76
|
-
"version": "20.4.
|
|
76
|
+
"version": "20.4.51",
|
|
77
77
|
"sideEffects": false
|
|
78
78
|
}
|
|
@@ -1421,6 +1421,8 @@ var Edit = /** @class */ (function () {
|
|
|
1421
1421
|
this.addRecordAsBottom(cAddedRecord);
|
|
1422
1422
|
var parentRecord = this.parent.flatData[this.parent.flatData.length - 1];
|
|
1423
1423
|
this.addNewRecord(updateRecord, parentRecord);
|
|
1424
|
+
var source = this.parent.dataSource;
|
|
1425
|
+
source.push(updateRecord.taskData);
|
|
1424
1426
|
}
|
|
1425
1427
|
var updatedData = this.parent.currentViewData.filter(function (data) {
|
|
1426
1428
|
return (data.ganttProperties.taskId === updateRecord.ganttProperties.taskId &&
|
|
@@ -172,7 +172,7 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
172
172
|
TaskProcessor.prototype.constructResourceViewDataSource = function (resources, data, unassignedTasks) {
|
|
173
173
|
var _loop_1 = function (i) {
|
|
174
174
|
var tempData = data[i];
|
|
175
|
-
|
|
175
|
+
child = this_1.parent.taskFields.child != null ? this_1.parent.taskFields.child : 'Children';
|
|
176
176
|
var resourceData = tempData && tempData[this_1.parent.taskFields.resourceInfo];
|
|
177
177
|
var resourceIdMapping = this_1.parent.resourceFields.id;
|
|
178
178
|
if ((!tempData[child] || tempData[child].length === 0) && resourceData && resourceData.length) {
|
|
@@ -199,7 +199,7 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
199
199
|
this_1.constructResourceViewDataSource(resources, tempData[this_1.parent.taskFields.child], unassignedTasks);
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
|
-
var this_1 = this;
|
|
202
|
+
var this_1 = this, child;
|
|
203
203
|
for (var i = 0; i < data.length; i++) {
|
|
204
204
|
_loop_1(i);
|
|
205
205
|
}
|
|
@@ -27,6 +27,13 @@ var PdfGanttPredecessor = /** @class */ (function () {
|
|
|
27
27
|
PdfGanttPredecessor.prototype.add = function () {
|
|
28
28
|
return new PdfGanttPredecessor(this.parent);
|
|
29
29
|
};
|
|
30
|
+
PdfGanttPredecessor.prototype.findindex = function (num) {
|
|
31
|
+
var dataindex;
|
|
32
|
+
this.parent.currentViewData.map(function (data, index) { if (data.index == num) {
|
|
33
|
+
dataindex = index;
|
|
34
|
+
} });
|
|
35
|
+
return dataindex;
|
|
36
|
+
};
|
|
30
37
|
/**
|
|
31
38
|
* Calculate the predecesor line point and draw the predecessor
|
|
32
39
|
*
|
|
@@ -37,8 +44,8 @@ var PdfGanttPredecessor = /** @class */ (function () {
|
|
|
37
44
|
PdfGanttPredecessor.prototype.drawPredecessor = function (pdfGantt) {
|
|
38
45
|
this.pdfGantt = pdfGantt;
|
|
39
46
|
var pages = pdfGantt.result.page.section.getPages();
|
|
40
|
-
var parentTask = pdfGantt.taskbarCollection[this.parentIndex];
|
|
41
|
-
var childTask = pdfGantt.taskbarCollection[this.childIndex];
|
|
47
|
+
var parentTask = pdfGantt.taskbarCollection[this.findindex(this.parentIndex)];
|
|
48
|
+
var childTask = pdfGantt.taskbarCollection[this.findindex(this.childIndex)];
|
|
42
49
|
var startPage = new PdfPage();
|
|
43
50
|
var endPage = new PdfPage();
|
|
44
51
|
var predecessorType = '';
|