@syncfusion/ej2-gantt 20.4.49 → 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 +17 -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 +13 -4
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +14 -5
- 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 +15 -15
- package/src/gantt/actions/edit.js +2 -0
- package/src/gantt/base/gantt-chart.js +1 -1
- 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
|
@@ -1694,7 +1694,7 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
1694
1694
|
TaskProcessor.prototype.constructResourceViewDataSource = function (resources, data, unassignedTasks) {
|
|
1695
1695
|
var _loop_1 = function (i) {
|
|
1696
1696
|
var tempData = data[i];
|
|
1697
|
-
|
|
1697
|
+
child = this_1.parent.taskFields.child != null ? this_1.parent.taskFields.child : 'Children';
|
|
1698
1698
|
var resourceData = tempData && tempData[this_1.parent.taskFields.resourceInfo];
|
|
1699
1699
|
var resourceIdMapping = this_1.parent.resourceFields.id;
|
|
1700
1700
|
if ((!tempData[child] || tempData[child].length === 0) && resourceData && resourceData.length) {
|
|
@@ -1721,7 +1721,7 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
1721
1721
|
this_1.constructResourceViewDataSource(resources, tempData[this_1.parent.taskFields.child], unassignedTasks);
|
|
1722
1722
|
}
|
|
1723
1723
|
};
|
|
1724
|
-
var this_1 = this;
|
|
1724
|
+
var this_1 = this, child;
|
|
1725
1725
|
for (var i = 0; i < data.length; i++) {
|
|
1726
1726
|
_loop_1(i);
|
|
1727
1727
|
}
|
|
@@ -5210,7 +5210,7 @@ var GanttChart = /** @__PURE__ @class */ (function () {
|
|
|
5210
5210
|
var isTab = (e.action === 'tab') ? true : false;
|
|
5211
5211
|
var nextElement = this.getNextElement($target, isTab, isInEditedState);
|
|
5212
5212
|
this.tempNextElement = nextElement;
|
|
5213
|
-
if (!isNullOrUndefined(nextElement['cellIndex'])) {
|
|
5213
|
+
if (!isNullOrUndefined(nextElement) && !isNullOrUndefined(nextElement['cellIndex'])) {
|
|
5214
5214
|
if (this.parent.allowRowDragAndDrop) {
|
|
5215
5215
|
this.childrenIndex = nextElement['cellIndex'];
|
|
5216
5216
|
this.nextElementIndex = nextElement['cellIndex'] - 1;
|
|
@@ -24531,6 +24531,8 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
24531
24531
|
this.addRecordAsBottom(cAddedRecord);
|
|
24532
24532
|
var parentRecord = this.parent.flatData[this.parent.flatData.length - 1];
|
|
24533
24533
|
this.addNewRecord(updateRecord, parentRecord);
|
|
24534
|
+
var source = this.parent.dataSource;
|
|
24535
|
+
source.push(updateRecord.taskData);
|
|
24534
24536
|
}
|
|
24535
24537
|
var updatedData = this.parent.currentViewData.filter(function (data) {
|
|
24536
24538
|
return (data.ganttProperties.taskId === updateRecord.ganttProperties.taskId &&
|
|
@@ -34816,6 +34818,13 @@ var PdfGanttPredecessor = /** @__PURE__ @class */ (function () {
|
|
|
34816
34818
|
PdfGanttPredecessor.prototype.add = function () {
|
|
34817
34819
|
return new PdfGanttPredecessor(this.parent);
|
|
34818
34820
|
};
|
|
34821
|
+
PdfGanttPredecessor.prototype.findindex = function (num) {
|
|
34822
|
+
var dataindex;
|
|
34823
|
+
this.parent.currentViewData.map(function (data, index) { if (data.index == num) {
|
|
34824
|
+
dataindex = index;
|
|
34825
|
+
} });
|
|
34826
|
+
return dataindex;
|
|
34827
|
+
};
|
|
34819
34828
|
/**
|
|
34820
34829
|
* Calculate the predecesor line point and draw the predecessor
|
|
34821
34830
|
*
|
|
@@ -34826,8 +34835,8 @@ var PdfGanttPredecessor = /** @__PURE__ @class */ (function () {
|
|
|
34826
34835
|
PdfGanttPredecessor.prototype.drawPredecessor = function (pdfGantt) {
|
|
34827
34836
|
this.pdfGantt = pdfGantt;
|
|
34828
34837
|
var pages = pdfGantt.result.page.section.getPages();
|
|
34829
|
-
var parentTask = pdfGantt.taskbarCollection[this.parentIndex];
|
|
34830
|
-
var childTask = pdfGantt.taskbarCollection[this.childIndex];
|
|
34838
|
+
var parentTask = pdfGantt.taskbarCollection[this.findindex(this.parentIndex)];
|
|
34839
|
+
var childTask = pdfGantt.taskbarCollection[this.findindex(this.childIndex)];
|
|
34831
34840
|
var startPage = new PdfPage();
|
|
34832
34841
|
var endPage = new PdfPage();
|
|
34833
34842
|
var predecessorType = '';
|