@syncfusion/ej2-gantt 20.3.47 → 20.3.48

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.47
3
+ * version : 20.3.48
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.6.13",
3
+ "_id": "@syncfusion/ej2-gantt@20.3.47",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-kdZk1adl1XJlxz+IuDQCFGD4Cmd+rlfqUOfVr1pwEsBfuaaa9C1tZmDysXPDkn2AiVyZ64EWDPgQOw/ZnQl27A==",
5
+ "_integrity": "sha512-oY8te11bKyAhmduU/U9V4BpO1oTQrdw9L1ZCxsr1Dtc6LwBjjCyS7MIZAn+RTb2jtZlEqf8MCNT28YzlzWWV0A==",
6
6
  "_location": "/@syncfusion/ej2-gantt",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-gantt",
24
24
  "/@syncfusion/ej2-vue-gantt"
25
25
  ],
26
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-gantt/-/ej2-gantt-20.6.13.tgz",
27
- "_shasum": "70beb11e362a1f86c917e363fd8a653bd1409437",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.3.47.tgz",
27
+ "_shasum": "f70eab27668d097d2b08789ce16c83463c9bed0b",
28
28
  "_spec": "@syncfusion/ej2-gantt@*",
29
29
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
30
  "author": {
@@ -35,19 +35,19 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~20.3.47",
39
- "@syncfusion/ej2-buttons": "~20.3.47",
40
- "@syncfusion/ej2-calendars": "~20.3.47",
38
+ "@syncfusion/ej2-base": "~20.3.48",
39
+ "@syncfusion/ej2-buttons": "~20.3.48",
40
+ "@syncfusion/ej2-calendars": "~20.3.48",
41
41
  "@syncfusion/ej2-data": "~20.3.47",
42
- "@syncfusion/ej2-dropdowns": "~20.3.47",
43
- "@syncfusion/ej2-grids": "~20.3.47",
42
+ "@syncfusion/ej2-dropdowns": "~20.3.48",
43
+ "@syncfusion/ej2-grids": "~20.3.48",
44
44
  "@syncfusion/ej2-inputs": "~20.3.47",
45
- "@syncfusion/ej2-layouts": "~20.3.47",
45
+ "@syncfusion/ej2-layouts": "~20.3.48",
46
46
  "@syncfusion/ej2-lists": "~20.3.47",
47
- "@syncfusion/ej2-navigations": "~20.3.47",
48
- "@syncfusion/ej2-popups": "~20.3.47",
47
+ "@syncfusion/ej2-navigations": "~20.3.48",
48
+ "@syncfusion/ej2-popups": "~20.3.48",
49
49
  "@syncfusion/ej2-richtexteditor": "~20.3.47",
50
- "@syncfusion/ej2-treegrid": "~20.3.47"
50
+ "@syncfusion/ej2-treegrid": "~20.3.48"
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.47",
78
+ "version": "20.3.48",
79
79
  "sideEffects": false
80
80
  }
@@ -2134,10 +2134,17 @@ var DialogEdit = /** @class */ (function () {
2134
2134
  // eslint-disable-next-line
2135
2135
  DialogEdit.prototype.updateSegmentsData = function (segmentForm, data) {
2136
2136
  var gridObj = segmentForm.ej2_instances[0];
2137
+ var isEdit = gridObj.isEdit;
2138
+ var dataSource;
2137
2139
  if (gridObj.isEdit) {
2138
2140
  gridObj.endEdit();
2139
2141
  }
2140
- var dataSource = gridObj.currentViewData;
2142
+ if (isEdit) {
2143
+ dataSource = gridObj.dataSource;
2144
+ }
2145
+ else {
2146
+ dataSource = gridObj.currentViewData;
2147
+ }
2141
2148
  this.updateSegmentTaskData(dataSource);
2142
2149
  };
2143
2150
  DialogEdit.prototype.updateGeneralTab = function (generalForm, isCustom) {
@@ -2231,10 +2238,6 @@ var DialogEdit = /** @class */ (function () {
2231
2238
  var ids = [];
2232
2239
  for (var i = 0; i < dataSource.length; i++) {
2233
2240
  var preData = dataSource[i];
2234
- var newId = preData.name.split('-')[0];
2235
- if (preData.id !== newId) {
2236
- preData.id = newId;
2237
- }
2238
2241
  if (ids.indexOf(preData.id) === -1) {
2239
2242
  var name_1 = preData.id + preData.type;
2240
2243
  if (preData.offset && preData.offset.indexOf('-') !== -1) {
@@ -2579,7 +2579,9 @@ var Edit = /** @class */ (function () {
2579
2579
  dataSource.push(addedRecord[i].taskData);
2580
2580
  }
2581
2581
  else {
2582
- this.addDataInRealDataSource(dataSource, addedRecord[i].taskData, rowPosition);
2582
+ if (isNullOrUndefined(addedRecord[i].parentItem)) {
2583
+ this.addDataInRealDataSource(dataSource, addedRecord[i].taskData, rowPosition);
2584
+ }
2583
2585
  }
2584
2586
  }
2585
2587
  this.isBreakLoop = false;
@@ -671,6 +671,9 @@ var GanttChart = /** @class */ (function () {
671
671
  * @private
672
672
  */
673
673
  GanttChart.prototype.collapsedGanttRow = function (args) {
674
+ if ((isNullOrUndefined(args['gridRow']) && this.parent.enableVirtualization) || isNullOrUndefined(args['chartRow'])) {
675
+ return;
676
+ }
674
677
  var record = getValue('data', args);
675
678
  if (this.isExpandCollapseFromChart) {
676
679
  this.expandCollapseChartRows('collapse', getValue('chartRow', args), record, null);
@@ -2409,7 +2409,9 @@ var Gantt = /** @class */ (function (_super) {
2409
2409
  if (isNullOrUndefined(index)) {
2410
2410
  record = this.getRecordByID(id.toString());
2411
2411
  chartRow = this.getRowByID(id);
2412
- rowIndex = getValue('rowIndex', chartRow);
2412
+ if (!isNullOrUndefined(chartRow)) {
2413
+ rowIndex = getValue('rowIndex', chartRow);
2414
+ }
2413
2415
  }
2414
2416
  else if (!isNullOrUndefined(index)) {
2415
2417
  chartRow = this.getRowByIndex(index);
@@ -921,7 +921,7 @@ var Timeline = /** @class */ (function () {
921
921
  endDate.setHours(24, 0, 0, 0);
922
922
  }
923
923
  }
924
- if ((this.isZooming || this.parent.isLoad) && isNullOrUndefined(this.parent.projectEndDate)) {
924
+ if ((this.isZooming || this.parent.isLoad || this.parent.isFromOnPropertyChange) && isNullOrUndefined(this.parent.projectEndDate)) {
925
925
  this.updateTimelineAfterZooming(endDate, false);
926
926
  }
927
927
  return endDate;
@@ -148,6 +148,7 @@ var Tooltip = /** @class */ (function () {
148
148
  args.cancel = true;
149
149
  }
150
150
  });
151
+ this.toolTipObj.content = argsData.content;
151
152
  if (!this.parent.isAdaptive && args.event.type === 'mouseover') {
152
153
  this.currentTarget = args.target;
153
154
  EventHandler.add(this.currentTarget, 'mousemove', this.mouseMoveHandler.bind(this));