@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.
@@ -12865,7 +12865,14 @@ var FocusModule = /** @__PURE__ @class */ (function () {
12865
12865
  || (ganttObj.editSettings.allowTaskbarEditing && !ganttObj.editModule.taskbarEditModule.touchEdit))) {
12866
12866
  if ((ganttObj.selectionSettings.mode !== 'Cell' && ganttObj.selectionModule.selectedRowIndexes.length)
12867
12867
  || (ganttObj.selectionSettings.mode === 'Cell' && ganttObj.selectionModule.getSelectedRowCellIndexes().length)) {
12868
- ganttObj.editModule.startDeleteAction();
12868
+ if (!isNullOrUndefined(e.target)) {
12869
+ if (e.target['tagName'] !== 'INPUT') {
12870
+ ganttObj.editModule.startDeleteAction();
12871
+ }
12872
+ }
12873
+ else {
12874
+ ganttObj.editModule.startDeleteAction();
12875
+ }
12869
12876
  }
12870
12877
  }
12871
12878
  break;
@@ -21109,7 +21116,7 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
21109
21116
  if (gridObj.isEdit) {
21110
21117
  gridObj.endEdit();
21111
21118
  }
21112
- if (isEdit) {
21119
+ if (isEdit && gridObj.currentViewData.length != gridObj.dataSource['length']) {
21113
21120
  dataSource = gridObj.dataSource;
21114
21121
  }
21115
21122
  else {
@@ -33112,7 +33119,8 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
33112
33119
  this.drawLeftLabel(page, startPoint, detail, cumulativeWidth);
33113
33120
  //Draw Taskbar
33114
33121
  var font = new PdfStandardFont(this.fontFamily, 9, PdfFontStyle.Regular);
33115
- if (this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
33122
+ if (!isNullOrUndefined(this.parent.pdfExportModule['helper']['exportProps'].ganttStyle) &&
33123
+ this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
33116
33124
  font = this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font;
33117
33125
  }
33118
33126
  var fontColor = null;
@@ -33280,7 +33288,8 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
33280
33288
  !isNullOrUndefined(this.rightTaskLabel.value) && !this.rightTaskLabel.isCompleted) {
33281
33289
  var result = this.getWidth(this.rightTaskLabel.value, detail.endPoint - left, 15);
33282
33290
  var font = new PdfStandardFont(this.fontFamily, 9);
33283
- if (this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
33291
+ if (!isNullOrUndefined(this.parent.pdfExportModule['helper']['exportProps'].ganttStyle) &&
33292
+ this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
33284
33293
  font = this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font;
33285
33294
  }
33286
33295
  var adjustHeight = (pixelToPoint(this.parent.rowHeight) - result.actualSize.height) / 2;
@@ -33338,7 +33347,8 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
33338
33347
  && !this.leftTaskLabel.isCompleted) {
33339
33348
  var result = this.getWidth(this.leftTaskLabel.value, detail.endPoint - left, 15);
33340
33349
  var font = new PdfStandardFont(this.fontFamily, 9);
33341
- if (this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
33350
+ if (!isNullOrUndefined(this.parent.pdfExportModule['helper']['exportProps'].ganttStyle) &&
33351
+ this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
33342
33352
  font = this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font;
33343
33353
  }
33344
33354
  var adjustHeight = (pixelToPoint(this.parent.rowHeight) - result.actualSize.height) / 2;
@@ -33369,7 +33379,8 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
33369
33379
  };
33370
33380
  PdfGanttTaskbarCollection.prototype.getWidth = function (value, width, height) {
33371
33381
  var font = new PdfStandardFont(this.fontFamily, 9);
33372
- if (this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
33382
+ if (!isNullOrUndefined(this.parent.pdfExportModule['helper']['exportProps'].ganttStyle) &&
33383
+ this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
33373
33384
  font = this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font;
33374
33385
  }
33375
33386
  var layouter = new PdfStringLayouter();