@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.3.49
3
+ * version : 20.3.52
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
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-gantt@*",
3
- "_id": "@syncfusion/ej2-gantt@20.3.48",
3
+ "_id": "@syncfusion/ej2-gantt@20.3.50",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-N2zofXz/onMGBz+cAMn0tl9QWbncq9Yz54oi001UB2zVN57sDolIgOnS7DXmP0Sz38+Ff+t3Nv0DiXMjIirVhg==",
5
+ "_integrity": "sha512-tZ8N8JZCWpcLimmN48sryAFv2cRtZosczDA2+K6EBfYPgHSbymj7Kr8SUcy4zEn9LrTYvXb6a40ofz44EEud9Q==",
6
6
  "_location": "/@syncfusion/ej2-gantt",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,10 +23,10 @@
23
23
  "/@syncfusion/ej2-react-gantt",
24
24
  "/@syncfusion/ej2-vue-gantt"
25
25
  ],
26
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.3.48.tgz",
27
- "_shasum": "48056e66d813021bce8762c3c3ccf28f99f59f57",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.3.50.tgz",
27
+ "_shasum": "4d0fe52bf76c918a2146dd208454bb4074c09152",
28
28
  "_spec": "@syncfusion/ej2-gantt@*",
29
- "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
29
+ "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
30
30
  "author": {
31
31
  "name": "Syncfusion Inc."
32
32
  },
@@ -35,19 +35,19 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~20.3.49",
39
- "@syncfusion/ej2-buttons": "~20.3.49",
40
- "@syncfusion/ej2-calendars": "~20.3.49",
41
- "@syncfusion/ej2-data": "~20.3.47",
42
- "@syncfusion/ej2-dropdowns": "~20.3.49",
43
- "@syncfusion/ej2-grids": "~20.3.49",
44
- "@syncfusion/ej2-inputs": "~20.3.49",
38
+ "@syncfusion/ej2-base": "~20.3.50",
39
+ "@syncfusion/ej2-buttons": "~20.3.50",
40
+ "@syncfusion/ej2-calendars": "~20.3.50",
41
+ "@syncfusion/ej2-data": "~20.3.50",
42
+ "@syncfusion/ej2-dropdowns": "~20.3.50",
43
+ "@syncfusion/ej2-grids": "~20.3.52",
44
+ "@syncfusion/ej2-inputs": "~20.3.50",
45
45
  "@syncfusion/ej2-layouts": "~20.3.48",
46
- "@syncfusion/ej2-lists": "~20.3.47",
47
- "@syncfusion/ej2-navigations": "~20.3.49",
48
- "@syncfusion/ej2-popups": "~20.3.49",
49
- "@syncfusion/ej2-richtexteditor": "~20.3.47",
50
- "@syncfusion/ej2-treegrid": "~20.3.49"
46
+ "@syncfusion/ej2-lists": "~20.3.51",
47
+ "@syncfusion/ej2-navigations": "~20.3.52",
48
+ "@syncfusion/ej2-popups": "~20.3.50",
49
+ "@syncfusion/ej2-richtexteditor": "~20.3.50",
50
+ "@syncfusion/ej2-treegrid": "~20.3.52"
51
51
  },
52
52
  "deprecated": false,
53
53
  "description": "Essential JS 2 Gantt Component",
@@ -75,6 +75,6 @@
75
75
  "url": "git+https://github.com/syncfusion/ej2-gantt.git"
76
76
  },
77
77
  "typings": "index.d.ts",
78
- "version": "20.3.49",
78
+ "version": "20.3.52",
79
79
  "sideEffects": false
80
80
  }
@@ -9,6 +9,7 @@ export declare class Dependency {
9
9
  private parentRecord;
10
10
  private parentIds;
11
11
  private parentPredecessors;
12
+ isValidatedParentTaskID: string;
12
13
  constructor(gantt: Gantt);
13
14
  /**
14
15
  * Method to populate predecessor collections in records
@@ -737,6 +737,11 @@ var Dependency = /** @class */ (function () {
737
737
  this.validatePredecessor(record, undefined, 'successor');
738
738
  }
739
739
  }
740
+ if (record && record.hasChildRecords && record.ganttProperties.taskId !== this.isValidatedParentTaskID &&
741
+ this.parent.editModule['taskbarMoved']) {
742
+ this.parent.editModule['updateChildItems'](record);
743
+ this.isValidatedParentTaskID = record.ganttProperties.taskId;
744
+ }
740
745
  }
741
746
  };
742
747
  /**
@@ -2139,7 +2139,7 @@ var DialogEdit = /** @class */ (function () {
2139
2139
  if (gridObj.isEdit) {
2140
2140
  gridObj.endEdit();
2141
2141
  }
2142
- if (isEdit) {
2142
+ if (isEdit && gridObj.currentViewData.length != gridObj.dataSource['length']) {
2143
2143
  dataSource = gridObj.dataSource;
2144
2144
  }
2145
2145
  else {
@@ -798,6 +798,7 @@ var Edit = /** @class */ (function () {
798
798
  this.parent.predecessorModule.validatePredecessor(child, [], '');
799
799
  }
800
800
  }
801
+ this.parent.predecessorModule.isValidatedParentTaskID = '';
801
802
  /** validating predecessor for current edited records */
802
803
  if (ganttRecord.ganttProperties.predecessor) {
803
804
  this.parent.isMileStoneEdited = ganttRecord.ganttProperties.isMilestone;
@@ -807,7 +808,7 @@ var Edit = /** @class */ (function () {
807
808
  this.parent.predecessorModule.validatePredecessor(ganttRecord, [], '');
808
809
  }
809
810
  if (ganttRecord.hasChildRecords && this.parent.previousRecords[ganttRecord.uniqueID].ganttProperties.startDate &&
810
- (args.action === "DrawConnectorLine" || args.action === "DialogEditing")) {
811
+ (args.action === "DrawConnectorLine" || args.action === "CellEditing" || args.action === "DialogEditing")) {
811
812
  this.updateChildItems(ganttRecord);
812
813
  }
813
814
  this.updateParentItemOnEditing();
@@ -815,6 +816,11 @@ var Edit = /** @class */ (function () {
815
816
  /** Update parent up-to zeroth level */
816
817
  if (ganttRecord.parentItem) {
817
818
  this.parent.dataOperation.updateParentItems(ganttRecord, true);
819
+ var parentData = this.parent.getRecordByID(ganttRecord.parentItem.taskId);
820
+ if (parentData.ganttProperties.predecessor) {
821
+ this.parent.predecessorModule.validatePredecessor(parentData, [], '');
822
+ this.updateParentItemOnEditing();
823
+ }
818
824
  }
819
825
  this.initiateSaveAction(args);
820
826
  };
@@ -176,7 +176,14 @@ var FocusModule = /** @class */ (function () {
176
176
  || (ganttObj.editSettings.allowTaskbarEditing && !ganttObj.editModule.taskbarEditModule.touchEdit))) {
177
177
  if ((ganttObj.selectionSettings.mode !== 'Cell' && ganttObj.selectionModule.selectedRowIndexes.length)
178
178
  || (ganttObj.selectionSettings.mode === 'Cell' && ganttObj.selectionModule.getSelectedRowCellIndexes().length)) {
179
- ganttObj.editModule.startDeleteAction();
179
+ if (!isNullOrUndefined(e.target)) {
180
+ if (e.target['tagName'] !== 'INPUT') {
181
+ ganttObj.editModule.startDeleteAction();
182
+ }
183
+ }
184
+ else {
185
+ ganttObj.editModule.startDeleteAction();
186
+ }
180
187
  }
181
188
  }
182
189
  break;
@@ -365,20 +365,20 @@ var RowDD = /** @class */ (function () {
365
365
  var draggedParent = void 0;
366
366
  var toParent_1;
367
367
  if (draggedRecord.parentItem) {
368
- draggedParent = this.parent.currentViewData[this.parent.ids.indexOf(draggedRecord.parentItem.taskId)];
368
+ draggedParent = this.parent.flatData[this.parent.ids.indexOf(draggedRecord.parentItem.taskId)];
369
369
  }
370
370
  else {
371
371
  draggedParent = draggedRecord;
372
372
  }
373
373
  if (droppedRecord.parentItem) {
374
- toParent_1 = this.parent.currentViewData[this.parent.ids.indexOf(droppedRecord.parentItem.taskId)];
374
+ toParent_1 = this.parent.flatData[this.parent.ids.indexOf(droppedRecord.parentItem.taskId)];
375
375
  }
376
376
  else {
377
377
  toParent_1 = droppedRecord;
378
378
  }
379
379
  var validateRecords = void 0;
380
380
  if (toParent_1.uniqueID === draggedParent.uniqueID || (draggedParent.parentItem &&
381
- toParent_1.uniqueID == this.parent.currentViewData[this.parent.ids.indexOf(draggedParent.parentItem.taskId)].uniqueID)) {
381
+ toParent_1.uniqueID == this.parent.flatData[this.parent.ids.indexOf(draggedParent.parentItem.taskId)].uniqueID)) {
382
382
  validateRecords = this.parent.currentViewData.filter(function (data) {
383
383
  if ((data.ganttProperties.predecessor && data.ganttProperties.predecessor.length > 0)) {
384
384
  for (var i = 0; i < data.ganttProperties.predecessor.length; i++) {
@@ -74,7 +74,8 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
74
74
  this.drawLeftLabel(page, startPoint, detail, cumulativeWidth);
75
75
  //Draw Taskbar
76
76
  var font = new PdfStandardFont(this.fontFamily, 9, PdfFontStyle.Regular);
77
- if (this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
77
+ if (!isNullOrUndefined(this.parent.pdfExportModule['helper']['exportProps'].ganttStyle) &&
78
+ this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
78
79
  font = this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font;
79
80
  }
80
81
  var fontColor = null;
@@ -242,7 +243,8 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
242
243
  !isNullOrUndefined(this.rightTaskLabel.value) && !this.rightTaskLabel.isCompleted) {
243
244
  var result = this.getWidth(this.rightTaskLabel.value, detail.endPoint - left, 15);
244
245
  var font = new PdfStandardFont(this.fontFamily, 9);
245
- if (this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
246
+ if (!isNullOrUndefined(this.parent.pdfExportModule['helper']['exportProps'].ganttStyle) &&
247
+ this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
246
248
  font = this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font;
247
249
  }
248
250
  var adjustHeight = (pixelToPoint(this.parent.rowHeight) - result.actualSize.height) / 2;
@@ -300,7 +302,8 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
300
302
  && !this.leftTaskLabel.isCompleted) {
301
303
  var result = this.getWidth(this.leftTaskLabel.value, detail.endPoint - left, 15);
302
304
  var font = new PdfStandardFont(this.fontFamily, 9);
303
- if (this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
305
+ if (!isNullOrUndefined(this.parent.pdfExportModule['helper']['exportProps'].ganttStyle) &&
306
+ this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
304
307
  font = this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font;
305
308
  }
306
309
  var adjustHeight = (pixelToPoint(this.parent.rowHeight) - result.actualSize.height) / 2;
@@ -331,7 +334,8 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
331
334
  };
332
335
  PdfGanttTaskbarCollection.prototype.getWidth = function (value, width, height) {
333
336
  var font = new PdfStandardFont(this.fontFamily, 9);
334
- if (this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
337
+ if (!isNullOrUndefined(this.parent.pdfExportModule['helper']['exportProps'].ganttStyle) &&
338
+ this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font) {
335
339
  font = this.parent.pdfExportModule['helper']['exportProps'].ganttStyle.font;
336
340
  }
337
341
  var layouter = new PdfStringLayouter();