@syncfusion/ej2-gantt 20.3.49 → 20.3.52
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 +19 -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 +32 -10
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +32 -10
- 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 +18 -18
- package/src/gantt/actions/dependency.d.ts +1 -0
- package/src/gantt/actions/dependency.js +5 -0
- package/src/gantt/actions/dialog-edit.js +1 -1
- package/src/gantt/actions/edit.js +7 -1
- package/src/gantt/actions/keyboard.js +8 -1
- package/src/gantt/actions/rowdragdrop.js +3 -3
- package/src/gantt/export/pdf-taskbar.js +8 -4
|
@@ -10659,6 +10659,11 @@ class Dependency {
|
|
|
10659
10659
|
this.validatePredecessor(record, undefined, 'successor');
|
|
10660
10660
|
}
|
|
10661
10661
|
}
|
|
10662
|
+
if (record && record.hasChildRecords && record.ganttProperties.taskId !== this.isValidatedParentTaskID &&
|
|
10663
|
+
this.parent.editModule['taskbarMoved']) {
|
|
10664
|
+
this.parent.editModule['updateChildItems'](record);
|
|
10665
|
+
this.isValidatedParentTaskID = record.ganttProperties.taskId;
|
|
10666
|
+
}
|
|
10662
10667
|
}
|
|
10663
10668
|
}
|
|
10664
10669
|
/**
|
|
@@ -12467,7 +12472,14 @@ class FocusModule {
|
|
|
12467
12472
|
|| (ganttObj.editSettings.allowTaskbarEditing && !ganttObj.editModule.taskbarEditModule.touchEdit))) {
|
|
12468
12473
|
if ((ganttObj.selectionSettings.mode !== 'Cell' && ganttObj.selectionModule.selectedRowIndexes.length)
|
|
12469
12474
|
|| (ganttObj.selectionSettings.mode === 'Cell' && ganttObj.selectionModule.getSelectedRowCellIndexes().length)) {
|
|
12470
|
-
|
|
12475
|
+
if (!isNullOrUndefined(e.target)) {
|
|
12476
|
+
if (e.target['tagName'] !== 'INPUT') {
|
|
12477
|
+
ganttObj.editModule.startDeleteAction();
|
|
12478
|
+
}
|
|
12479
|
+
}
|
|
12480
|
+
else {
|
|
12481
|
+
ganttObj.editModule.startDeleteAction();
|
|
12482
|
+
}
|
|
12471
12483
|
}
|
|
12472
12484
|
}
|
|
12473
12485
|
break;
|
|
@@ -20634,7 +20646,7 @@ class DialogEdit {
|
|
|
20634
20646
|
if (gridObj.isEdit) {
|
|
20635
20647
|
gridObj.endEdit();
|
|
20636
20648
|
}
|
|
20637
|
-
if (isEdit) {
|
|
20649
|
+
if (isEdit && gridObj.currentViewData.length != gridObj.dataSource['length']) {
|
|
20638
20650
|
dataSource = gridObj.dataSource;
|
|
20639
20651
|
}
|
|
20640
20652
|
else {
|
|
@@ -22522,6 +22534,7 @@ class Edit$2 {
|
|
|
22522
22534
|
this.parent.predecessorModule.validatePredecessor(child, [], '');
|
|
22523
22535
|
}
|
|
22524
22536
|
}
|
|
22537
|
+
this.parent.predecessorModule.isValidatedParentTaskID = '';
|
|
22525
22538
|
/** validating predecessor for current edited records */
|
|
22526
22539
|
if (ganttRecord.ganttProperties.predecessor) {
|
|
22527
22540
|
this.parent.isMileStoneEdited = ganttRecord.ganttProperties.isMilestone;
|
|
@@ -22531,7 +22544,7 @@ class Edit$2 {
|
|
|
22531
22544
|
this.parent.predecessorModule.validatePredecessor(ganttRecord, [], '');
|
|
22532
22545
|
}
|
|
22533
22546
|
if (ganttRecord.hasChildRecords && this.parent.previousRecords[ganttRecord.uniqueID].ganttProperties.startDate &&
|
|
22534
|
-
(args.action === "DrawConnectorLine" || args.action === "DialogEditing")) {
|
|
22547
|
+
(args.action === "DrawConnectorLine" || args.action === "CellEditing" || args.action === "DialogEditing")) {
|
|
22535
22548
|
this.updateChildItems(ganttRecord);
|
|
22536
22549
|
}
|
|
22537
22550
|
this.updateParentItemOnEditing();
|
|
@@ -22539,6 +22552,11 @@ class Edit$2 {
|
|
|
22539
22552
|
/** Update parent up-to zeroth level */
|
|
22540
22553
|
if (ganttRecord.parentItem) {
|
|
22541
22554
|
this.parent.dataOperation.updateParentItems(ganttRecord, true);
|
|
22555
|
+
let parentData = this.parent.getRecordByID(ganttRecord.parentItem.taskId);
|
|
22556
|
+
if (parentData.ganttProperties.predecessor) {
|
|
22557
|
+
this.parent.predecessorModule.validatePredecessor(parentData, [], '');
|
|
22558
|
+
this.updateParentItemOnEditing();
|
|
22559
|
+
}
|
|
22542
22560
|
}
|
|
22543
22561
|
this.initiateSaveAction(args);
|
|
22544
22562
|
}
|
|
@@ -29050,20 +29068,20 @@ class RowDD$1 {
|
|
|
29050
29068
|
let draggedParent;
|
|
29051
29069
|
let toParent;
|
|
29052
29070
|
if (draggedRecord.parentItem) {
|
|
29053
|
-
draggedParent = this.parent.
|
|
29071
|
+
draggedParent = this.parent.flatData[this.parent.ids.indexOf(draggedRecord.parentItem.taskId)];
|
|
29054
29072
|
}
|
|
29055
29073
|
else {
|
|
29056
29074
|
draggedParent = draggedRecord;
|
|
29057
29075
|
}
|
|
29058
29076
|
if (droppedRecord.parentItem) {
|
|
29059
|
-
toParent = this.parent.
|
|
29077
|
+
toParent = this.parent.flatData[this.parent.ids.indexOf(droppedRecord.parentItem.taskId)];
|
|
29060
29078
|
}
|
|
29061
29079
|
else {
|
|
29062
29080
|
toParent = droppedRecord;
|
|
29063
29081
|
}
|
|
29064
29082
|
let validateRecords;
|
|
29065
29083
|
if (toParent.uniqueID === draggedParent.uniqueID || (draggedParent.parentItem &&
|
|
29066
|
-
toParent.uniqueID == this.parent.
|
|
29084
|
+
toParent.uniqueID == this.parent.flatData[this.parent.ids.indexOf(draggedParent.parentItem.taskId)].uniqueID)) {
|
|
29067
29085
|
validateRecords = this.parent.currentViewData.filter((data) => {
|
|
29068
29086
|
if ((data.ganttProperties.predecessor && data.ganttProperties.predecessor.length > 0)) {
|
|
29069
29087
|
for (let i = 0; i < data.ganttProperties.predecessor.length; i++) {
|
|
@@ -32302,7 +32320,8 @@ class PdfGanttTaskbarCollection {
|
|
|
32302
32320
|
this.drawLeftLabel(page, startPoint, detail, cumulativeWidth);
|
|
32303
32321
|
//Draw Taskbar
|
|
32304
32322
|
let font = new PdfStandardFont(this.fontFamily, 9, PdfFontStyle.Regular);
|
|
32305
|
-
if (this.parent.pdfExportModule['helper']['exportProps'].ganttStyle
|
|
32323
|
+
if (!isNullOrUndefined(this.parent.pdfExportModule['helper']['exportProps'].ganttStyle) &&
|
|
32324
|
+
this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
|
|
32306
32325
|
font = this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font;
|
|
32307
32326
|
}
|
|
32308
32327
|
const fontColor = null;
|
|
@@ -32470,7 +32489,8 @@ class PdfGanttTaskbarCollection {
|
|
|
32470
32489
|
!isNullOrUndefined(this.rightTaskLabel.value) && !this.rightTaskLabel.isCompleted) {
|
|
32471
32490
|
const result = this.getWidth(this.rightTaskLabel.value, detail.endPoint - left, 15);
|
|
32472
32491
|
let font = new PdfStandardFont(this.fontFamily, 9);
|
|
32473
|
-
if (this.parent.pdfExportModule['helper']['exportProps'].ganttStyle
|
|
32492
|
+
if (!isNullOrUndefined(this.parent.pdfExportModule['helper']['exportProps'].ganttStyle) &&
|
|
32493
|
+
this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
|
|
32474
32494
|
font = this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font;
|
|
32475
32495
|
}
|
|
32476
32496
|
const adjustHeight = (pixelToPoint(this.parent.rowHeight) - result.actualSize.height) / 2;
|
|
@@ -32528,7 +32548,8 @@ class PdfGanttTaskbarCollection {
|
|
|
32528
32548
|
&& !this.leftTaskLabel.isCompleted) {
|
|
32529
32549
|
const result = this.getWidth(this.leftTaskLabel.value, detail.endPoint - left, 15);
|
|
32530
32550
|
let font = new PdfStandardFont(this.fontFamily, 9);
|
|
32531
|
-
if (this.parent.pdfExportModule['helper']['exportProps'].ganttStyle
|
|
32551
|
+
if (!isNullOrUndefined(this.parent.pdfExportModule['helper']['exportProps'].ganttStyle) &&
|
|
32552
|
+
this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
|
|
32532
32553
|
font = this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font;
|
|
32533
32554
|
}
|
|
32534
32555
|
const adjustHeight = (pixelToPoint(this.parent.rowHeight) - result.actualSize.height) / 2;
|
|
@@ -32559,7 +32580,8 @@ class PdfGanttTaskbarCollection {
|
|
|
32559
32580
|
}
|
|
32560
32581
|
getWidth(value, width, height) {
|
|
32561
32582
|
let font = new PdfStandardFont(this.fontFamily, 9);
|
|
32562
|
-
if (this.parent.pdfExportModule['helper']['exportProps'].ganttStyle
|
|
32583
|
+
if (!isNullOrUndefined(this.parent.pdfExportModule['helper']['exportProps'].ganttStyle) &&
|
|
32584
|
+
this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
|
|
32563
32585
|
font = this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font;
|
|
32564
32586
|
}
|
|
32565
32587
|
const layouter = new PdfStringLayouter();
|