@syncfusion/ej2-gantt 20.1.47 → 20.1.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.1.47
3
+ * version : 20.1.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@19.10.10",
3
+ "_id": "@syncfusion/ej2-gantt@20.1.47",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-kJWTMNP/9/2FtwxZ6khAoLriF7D+LPHkkeCwBLOYy2+QaggPgOyqD6Kxf+EUvIcy88okK5d+aRAVfm35iY0dzg==",
5
+ "_integrity": "sha512-60lkObo1sLVOuUOCasgszwBvryKWbHtCish7JIz4IlZ7aEOVHaZMzu84p839ay02/uIw5IKLnxcFY+SE5WW/pA==",
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-19.10.10.tgz",
27
- "_shasum": "8340614ed1ccd8ec22e6082223b54f2226d905d1",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.1.47.tgz",
27
+ "_shasum": "d0d50fd8f2502745938a6e16bfae7b01e97dbfa6",
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.1.47",
38
+ "@syncfusion/ej2-base": "~20.1.48",
39
39
  "@syncfusion/ej2-buttons": "~20.1.47",
40
40
  "@syncfusion/ej2-calendars": "~20.1.47",
41
41
  "@syncfusion/ej2-data": "~20.1.47",
42
42
  "@syncfusion/ej2-dropdowns": "~20.1.47",
43
- "@syncfusion/ej2-grids": "~20.1.47",
44
- "@syncfusion/ej2-inputs": "~20.1.47",
43
+ "@syncfusion/ej2-grids": "~20.1.48",
44
+ "@syncfusion/ej2-inputs": "~20.1.48",
45
45
  "@syncfusion/ej2-layouts": "~20.1.47",
46
46
  "@syncfusion/ej2-lists": "~20.1.47",
47
- "@syncfusion/ej2-navigations": "~20.1.47",
47
+ "@syncfusion/ej2-navigations": "~20.1.48",
48
48
  "@syncfusion/ej2-popups": "~20.1.47",
49
- "@syncfusion/ej2-richtexteditor": "~20.1.47",
50
- "@syncfusion/ej2-treegrid": "~20.1.47"
49
+ "@syncfusion/ej2-richtexteditor": "~20.1.48",
50
+ "@syncfusion/ej2-treegrid": "~20.1.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.1.47",
78
+ "version": "20.1.48",
79
79
  "sideEffects": false
80
80
  }
@@ -185,11 +185,13 @@ var Filter = /** @class */ (function () {
185
185
  // ...
186
186
  };
187
187
  Filter.prototype.closeFilterOnContextClick = function (element) {
188
+ var datePickerElement = document.querySelector('body > div.e-datepicker');
189
+ var dateTimePickerElement = document.querySelector('body > div.e-datetimepicker');
188
190
  if (this.filterMenuElement && document.body.contains(this.filterMenuElement)) {
189
191
  var ganttElement = closest(element, '#' + this.parent.element.id)
190
192
  || element.querySelector('#' + this.parent.element.id);
191
- if ((!(this.filterMenuElement.contains(element)) && !isNullOrUndefined(ganttElement)) || element.nodeName === 'HTML'
192
- || ((element.nodeName === 'DIV') && (!element.classList.contains('e-day')))) {
193
+ if ((!(this.filterMenuElement.contains(element)) && !isNullOrUndefined(ganttElement)) || (!(this.filterMenuElement.contains(element)) && (isNullOrUndefined(datePickerElement))
194
+ && (isNullOrUndefined(dateTimePickerElement)) && ((element.nodeName === 'DIV') || (element.nodeName === 'HTML')))) {
193
195
  remove(this.filterMenuElement);
194
196
  this.parent.treeGrid.grid.notify('filter-menu-close', { isOpen: false });
195
197
  this.filterMenuElement = null;
@@ -149,10 +149,12 @@ var RowDD = /** @class */ (function () {
149
149
  }
150
150
  }
151
151
  if (!args.cancel) {
152
- args.cancel = true;
153
152
  args.requestType = 'beforeDrop';
154
153
  this.parent.trigger('actionBegin', args);
155
- this.dropRows(args, true); // method to update the data collections based on drop action
154
+ if (!args.cancel) {
155
+ this.dropRows(args, true); // method to update the data collections based on drop action
156
+ args.cancel = true;
157
+ }
156
158
  }
157
159
  };
158
160
  RowDD.prototype.dropRows = function (args, isByMethod) {
@@ -212,7 +212,7 @@ var GanttChart = /** @class */ (function () {
212
212
  var emptydivHeight = 36;
213
213
  var emptyHeight = this.parent.contentHeight === 0 ? this.parent.flatData.length > 1 ? emptydivHeight : 0 : this.parent.contentHeight;
214
214
  var contentElement = this.parent.element.getElementsByClassName('e-chart-scroll-container e-content')[0];
215
- if (emptyHeight >= contentElement['offsetHeight']) {
215
+ if (emptyHeight >= contentElement['offsetHeight'] || this.parent.height === 'auto') {
216
216
  this.chartBodyContent.style.height = formatUnit(emptyHeight);
217
217
  }
218
218
  else {