@syncfusion/ej2-gantt 20.3.49 → 20.3.50
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.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 +17 -6
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +17 -6
- 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 +17 -17
- package/src/gantt/actions/dialog-edit.js +1 -1
- package/src/gantt/actions/keyboard.js +8 -1
- package/src/gantt/export/pdf-taskbar.js +8 -4
|
@@ -12467,7 +12467,14 @@ class FocusModule {
|
|
|
12467
12467
|
|| (ganttObj.editSettings.allowTaskbarEditing && !ganttObj.editModule.taskbarEditModule.touchEdit))) {
|
|
12468
12468
|
if ((ganttObj.selectionSettings.mode !== 'Cell' && ganttObj.selectionModule.selectedRowIndexes.length)
|
|
12469
12469
|
|| (ganttObj.selectionSettings.mode === 'Cell' && ganttObj.selectionModule.getSelectedRowCellIndexes().length)) {
|
|
12470
|
-
|
|
12470
|
+
if (!isNullOrUndefined(e.target)) {
|
|
12471
|
+
if (e.target['tagName'] !== 'INPUT') {
|
|
12472
|
+
ganttObj.editModule.startDeleteAction();
|
|
12473
|
+
}
|
|
12474
|
+
}
|
|
12475
|
+
else {
|
|
12476
|
+
ganttObj.editModule.startDeleteAction();
|
|
12477
|
+
}
|
|
12471
12478
|
}
|
|
12472
12479
|
}
|
|
12473
12480
|
break;
|
|
@@ -20634,7 +20641,7 @@ class DialogEdit {
|
|
|
20634
20641
|
if (gridObj.isEdit) {
|
|
20635
20642
|
gridObj.endEdit();
|
|
20636
20643
|
}
|
|
20637
|
-
if (isEdit) {
|
|
20644
|
+
if (isEdit && gridObj.currentViewData.length != gridObj.dataSource['length']) {
|
|
20638
20645
|
dataSource = gridObj.dataSource;
|
|
20639
20646
|
}
|
|
20640
20647
|
else {
|
|
@@ -32302,7 +32309,8 @@ class PdfGanttTaskbarCollection {
|
|
|
32302
32309
|
this.drawLeftLabel(page, startPoint, detail, cumulativeWidth);
|
|
32303
32310
|
//Draw Taskbar
|
|
32304
32311
|
let font = new PdfStandardFont(this.fontFamily, 9, PdfFontStyle.Regular);
|
|
32305
|
-
if (this.parent.pdfExportModule['helper']['exportProps'].ganttStyle
|
|
32312
|
+
if (!isNullOrUndefined(this.parent.pdfExportModule['helper']['exportProps'].ganttStyle) &&
|
|
32313
|
+
this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
|
|
32306
32314
|
font = this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font;
|
|
32307
32315
|
}
|
|
32308
32316
|
const fontColor = null;
|
|
@@ -32470,7 +32478,8 @@ class PdfGanttTaskbarCollection {
|
|
|
32470
32478
|
!isNullOrUndefined(this.rightTaskLabel.value) && !this.rightTaskLabel.isCompleted) {
|
|
32471
32479
|
const result = this.getWidth(this.rightTaskLabel.value, detail.endPoint - left, 15);
|
|
32472
32480
|
let font = new PdfStandardFont(this.fontFamily, 9);
|
|
32473
|
-
if (this.parent.pdfExportModule['helper']['exportProps'].ganttStyle
|
|
32481
|
+
if (!isNullOrUndefined(this.parent.pdfExportModule['helper']['exportProps'].ganttStyle) &&
|
|
32482
|
+
this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
|
|
32474
32483
|
font = this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font;
|
|
32475
32484
|
}
|
|
32476
32485
|
const adjustHeight = (pixelToPoint(this.parent.rowHeight) - result.actualSize.height) / 2;
|
|
@@ -32528,7 +32537,8 @@ class PdfGanttTaskbarCollection {
|
|
|
32528
32537
|
&& !this.leftTaskLabel.isCompleted) {
|
|
32529
32538
|
const result = this.getWidth(this.leftTaskLabel.value, detail.endPoint - left, 15);
|
|
32530
32539
|
let font = new PdfStandardFont(this.fontFamily, 9);
|
|
32531
|
-
if (this.parent.pdfExportModule['helper']['exportProps'].ganttStyle
|
|
32540
|
+
if (!isNullOrUndefined(this.parent.pdfExportModule['helper']['exportProps'].ganttStyle) &&
|
|
32541
|
+
this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
|
|
32532
32542
|
font = this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font;
|
|
32533
32543
|
}
|
|
32534
32544
|
const adjustHeight = (pixelToPoint(this.parent.rowHeight) - result.actualSize.height) / 2;
|
|
@@ -32559,7 +32569,8 @@ class PdfGanttTaskbarCollection {
|
|
|
32559
32569
|
}
|
|
32560
32570
|
getWidth(value, width, height) {
|
|
32561
32571
|
let font = new PdfStandardFont(this.fontFamily, 9);
|
|
32562
|
-
if (this.parent.pdfExportModule['helper']['exportProps'].ganttStyle
|
|
32572
|
+
if (!isNullOrUndefined(this.parent.pdfExportModule['helper']['exportProps'].ganttStyle) &&
|
|
32573
|
+
this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
|
|
32563
32574
|
font = this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font;
|
|
32564
32575
|
}
|
|
32565
32576
|
const layouter = new PdfStringLayouter();
|