@syncfusion/ej2-gantt 22.2.7 → 22.2.9

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.
Files changed (58) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/ej2-gantt.min.js +2 -2
  3. package/dist/ej2-gantt.umd.min.js +2 -2
  4. package/dist/ej2-gantt.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-gantt.es2015.js +102 -51
  6. package/dist/es6/ej2-gantt.es2015.js.map +1 -1
  7. package/dist/es6/ej2-gantt.es5.js +102 -51
  8. package/dist/es6/ej2-gantt.es5.js.map +1 -1
  9. package/dist/global/ej2-gantt.min.js +2 -2
  10. package/dist/global/ej2-gantt.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +18 -18
  13. package/src/gantt/actions/context-menu.js +8 -2
  14. package/src/gantt/actions/dependency.js +1 -1
  15. package/src/gantt/actions/taskbar-edit.js +19 -1
  16. package/src/gantt/base/css-constants.d.ts +1 -0
  17. package/src/gantt/base/css-constants.js +1 -0
  18. package/src/gantt/base/gantt.js +10 -3
  19. package/src/gantt/base/task-processor.js +5 -4
  20. package/src/gantt/renderer/chart-rows.js +13 -1
  21. package/src/gantt/renderer/edit-tooltip.js +7 -7
  22. package/src/gantt/renderer/timeline.js +8 -1
  23. package/src/gantt/renderer/tooltip.js +28 -29
  24. package/styles/bootstrap-dark.css +1 -1
  25. package/styles/bootstrap.css +1 -1
  26. package/styles/bootstrap4.css +1 -1
  27. package/styles/bootstrap5-dark.css +1 -1
  28. package/styles/bootstrap5.css +1 -1
  29. package/styles/fabric-dark.css +1 -1
  30. package/styles/fabric.css +1 -1
  31. package/styles/fluent-dark.css +1 -1
  32. package/styles/fluent.css +1 -1
  33. package/styles/gantt/_layout.scss +1 -1
  34. package/styles/gantt/bootstrap-dark.css +1 -1
  35. package/styles/gantt/bootstrap.css +1 -1
  36. package/styles/gantt/bootstrap4.css +1 -1
  37. package/styles/gantt/bootstrap5-dark.css +1 -1
  38. package/styles/gantt/bootstrap5.css +1 -1
  39. package/styles/gantt/fabric-dark.css +1 -1
  40. package/styles/gantt/fabric.css +1 -1
  41. package/styles/gantt/fluent-dark.css +1 -1
  42. package/styles/gantt/fluent.css +1 -1
  43. package/styles/gantt/highcontrast-light.css +1 -1
  44. package/styles/gantt/highcontrast.css +1 -1
  45. package/styles/gantt/material-dark.css +1 -1
  46. package/styles/gantt/material.css +1 -1
  47. package/styles/gantt/material3-dark.css +1 -1
  48. package/styles/gantt/material3.css +1 -1
  49. package/styles/gantt/tailwind-dark.css +1 -1
  50. package/styles/gantt/tailwind.css +1 -1
  51. package/styles/highcontrast-light.css +1 -1
  52. package/styles/highcontrast.css +1 -1
  53. package/styles/material-dark.css +1 -1
  54. package/styles/material.css +1 -1
  55. package/styles/material3-dark.css +1 -1
  56. package/styles/material3.css +1 -1
  57. package/styles/tailwind-dark.css +1 -1
  58. package/styles/tailwind.css +1 -1
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 22.2.7
3
+ * version : 22.2.9
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@22.2.5",
3
+ "_id": "@syncfusion/ej2-gantt@22.2.8",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-UDwacL/LfLOpFmKDI1ZYpjmlQyZtiKw/Nl11Nm7qIyi2ujoFpfwtx6Ba0e9JdEDR3If8g24FolNt5LRLzO04lQ==",
5
+ "_integrity": "sha512-UTHsxz5sv2/7KScjT2IhII+IVw91jejNdGwxmktM3GbTDYh89N27rpHiw6G0P6qReyrWJpteJlMQVmtt2T7iZQ==",
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": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-22.2.5.tgz",
27
- "_shasum": "95538b88216a3ffdfc5d9ee6cbb720c39e7a50e0",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-22.2.8.tgz",
27
+ "_shasum": "4bdb30759d7aef5c6f457046cc7fc9bbe41b42c0",
28
28
  "_spec": "@syncfusion/ej2-gantt@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
30
30
  "author": {
@@ -35,21 +35,21 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~22.2.5",
39
- "@syncfusion/ej2-buttons": "~22.2.5",
40
- "@syncfusion/ej2-calendars": "~22.2.5",
38
+ "@syncfusion/ej2-base": "~22.2.9",
39
+ "@syncfusion/ej2-buttons": "~22.2.9",
40
+ "@syncfusion/ej2-calendars": "~22.2.9",
41
41
  "@syncfusion/ej2-data": "~22.2.5",
42
- "@syncfusion/ej2-dropdowns": "~22.2.5",
43
- "@syncfusion/ej2-grids": "~22.2.7",
44
- "@syncfusion/ej2-inputs": "~22.2.7",
45
- "@syncfusion/ej2-layouts": "~22.2.5",
46
- "@syncfusion/ej2-lists": "~22.2.5",
47
- "@syncfusion/ej2-navigations": "~22.2.7",
42
+ "@syncfusion/ej2-dropdowns": "~22.2.9",
43
+ "@syncfusion/ej2-grids": "~22.2.9",
44
+ "@syncfusion/ej2-inputs": "~22.2.9",
45
+ "@syncfusion/ej2-layouts": "~22.2.9",
46
+ "@syncfusion/ej2-lists": "~22.2.9",
47
+ "@syncfusion/ej2-navigations": "~22.2.8",
48
48
  "@syncfusion/ej2-notifications": "~22.2.5",
49
- "@syncfusion/ej2-popups": "~22.2.7",
50
- "@syncfusion/ej2-richtexteditor": "~22.2.5",
51
- "@syncfusion/ej2-svg-base": "~22.2.5",
52
- "@syncfusion/ej2-treegrid": "~22.2.7"
49
+ "@syncfusion/ej2-popups": "~22.2.9",
50
+ "@syncfusion/ej2-richtexteditor": "~22.2.9",
51
+ "@syncfusion/ej2-svg-base": "~22.2.8",
52
+ "@syncfusion/ej2-treegrid": "~22.2.9"
53
53
  },
54
54
  "deprecated": false,
55
55
  "description": "Essential JS 2 Gantt Component",
@@ -74,6 +74,6 @@
74
74
  "url": "git+https://github.com/syncfusion/ej2-gantt.git"
75
75
  },
76
76
  "typings": "index.d.ts",
77
- "version": "22.2.7",
77
+ "version": "22.2.9",
78
78
  "sideEffects": false
79
79
  }
@@ -151,7 +151,13 @@ var ContextMenu = /** @class */ (function () {
151
151
  }
152
152
  break;
153
153
  case 'DeleteTask':
154
- this.parent.editModule.deleteRecord(this.rowData);
154
+ if ((this.parent.selectionSettings.mode !== 'Cell' && this.parent.selectionModule.selectedRowIndexes.length > 1)
155
+ || (this.parent.selectionSettings.mode === 'Cell' && this.parent.selectionModule.getSelectedRowCellIndexes().length)) {
156
+ this.parent.editModule.startDeleteAction();
157
+ }
158
+ else {
159
+ this.parent.editModule.deleteRecord(this.rowData);
160
+ }
155
161
  break;
156
162
  case 'ToTask':
157
163
  if (!isNullOrUndefined(this.rowData)) {
@@ -305,7 +311,7 @@ var ContextMenu = /** @class */ (function () {
305
311
  this.parent.ganttChartModule.targetElement;
306
312
  // Closed edited cell before opening context menu
307
313
  // eslint-disable-next-line
308
- if (!isNullOrUndefined(this.parent.editModule) && this.parent.editModule.cellEditModule && this.parent.editModule.cellEditModule.isCellEdit && target.parentElement.classList.contains('e-row')) {
314
+ if ((!isNullOrUndefined(this.parent.editModule) && this.parent.editModule.cellEditModule && this.parent.editModule.cellEditModule.isCellEdit && target.parentElement.classList.contains('e-row')) || target.parentElement.classList.contains('e-treecolumn-container')) {
309
315
  this.parent.treeGrid.closeEdit();
310
316
  }
311
317
  if (!isNullOrUndefined(args.element) && args.element.id === this.parent.element.id + '_contextmenu') {
@@ -330,7 +330,7 @@ var Dependency = /** @class */ (function () {
330
330
  ganttRecord = predecessorsCollection[count];
331
331
  if ((!ganttRecord.hasChildRecords && !this.parent.allowParentDependency) || this.parent.allowParentDependency) {
332
332
  this.updatePredecessorHelper(ganttRecord, predecessorsCollection);
333
- if (!ganttRecord.ganttProperties.isAutoSchedule) {
333
+ if (!ganttRecord.ganttProperties.isAutoSchedule && this.parent.editSettings.allowEditing) {
334
334
  this.parent.connectorLineEditModule['calculateOffset'](ganttRecord);
335
335
  }
336
336
  }
@@ -482,6 +482,12 @@ var TaskbarEdit = /** @class */ (function (_super) {
482
482
  */
483
483
  TaskbarEdit.prototype.updateMouseDownProperties = function (event) {
484
484
  var e = this.getCoordinate(event);
485
+ var parentWithZoomStyle = this.parent.element.closest('[style*="zoom"]');
486
+ if (parentWithZoomStyle) {
487
+ var zoom1 = parseFloat(getComputedStyle(parentWithZoomStyle).zoom);
488
+ e.pageX = e.pageX / zoom1;
489
+ e.pageY = e.pageY / zoom1;
490
+ }
485
491
  if (e.pageX || e.pageY) {
486
492
  var containerPosition = this.parent.getOffsetRect(this.parent.ganttChartModule.chartBodyContainer);
487
493
  if (this.parent.enableRtl) {
@@ -693,6 +699,12 @@ var TaskbarEdit = /** @class */ (function (_super) {
693
699
  TaskbarEdit.prototype.updateMouseMoveProperties = function (event) {
694
700
  var containerPosition = this.parent.getOffsetRect(this.parent.ganttChartModule.chartBodyContainer);
695
701
  var e = this.getCoordinate(event);
702
+ var parentWithZoomStyle = this.parent.element.closest('[style*="zoom"]');
703
+ if (parentWithZoomStyle) {
704
+ var zoom1 = parseFloat(getComputedStyle(parentWithZoomStyle).zoom);
705
+ e.pageX = e.pageX / zoom1;
706
+ e.pageY = e.pageY / zoom1;
707
+ }
696
708
  if (e.pageX || e.pageY) {
697
709
  if (this.parent.enableRtl) {
698
710
  this.mouseMoveX = Math.abs(e.pageX - (containerPosition.left +
@@ -2084,6 +2096,12 @@ var TaskbarEdit = /** @class */ (function (_super) {
2084
2096
  };
2085
2097
  // eslint-disable-next-line
2086
2098
  TaskbarEdit.prototype.triggerDependencyEvent = function (e, mouseUp) {
2099
+ var parentWithZoomStyle = this.parent.element.closest('[style*="zoom"]');
2100
+ var zoomedPageY;
2101
+ if (parentWithZoomStyle) {
2102
+ var zoom1 = parseFloat(getComputedStyle(parentWithZoomStyle).zoom);
2103
+ zoomedPageY = e.pageY / zoom1;
2104
+ }
2087
2105
  var fromItem = this.taskBarEditRecord.ganttProperties;
2088
2106
  var toItem = this.connectorSecondRecord ? this.connectorSecondRecord.ganttProperties : null;
2089
2107
  var predecessor;
@@ -2145,7 +2163,7 @@ var TaskbarEdit = /** @class */ (function (_super) {
2145
2163
  table[1].innerText = toItem.taskName;
2146
2164
  table[2].innerText = this.parent.localeObj.getConstant(currentTarget);
2147
2165
  var tooltipElement = this.parent.connectorLineModule.tooltipTable.parentElement.parentElement;
2148
- if (tooltipElement.offsetTop + tooltipElement.offsetHeight > e.pageY) {
2166
+ if (tooltipElement.offsetTop + tooltipElement.offsetHeight > zoomedPageY) {
2149
2167
  tooltipElement.style.top = (e.pageY - tooltipElement.offsetHeight - 20) + 'px';
2150
2168
  }
2151
2169
  }
@@ -46,6 +46,7 @@ export declare const chartRowCell: string;
46
46
  export declare const chartRow: string;
47
47
  export declare const rowExpand: string;
48
48
  export declare const rowCollapse: string;
49
+ export declare const collapseParent: string;
49
50
  export declare const taskBarLeftResizer: string;
50
51
  export declare const taskBarRightResizer: string;
51
52
  export declare const childProgressResizer: string;
@@ -48,6 +48,7 @@ export var chartRowCell = 'e-chart-row-cell';
48
48
  export var chartRow = 'e-chart-row';
49
49
  export var rowExpand = 'e-row-expand';
50
50
  export var rowCollapse = 'e-row-collapse';
51
+ export var collapseParent = 'e-collapse-parent';
51
52
  export var taskBarLeftResizer = 'e-taskbar-left-resizer';
52
53
  export var taskBarRightResizer = 'e-taskbar-right-resizer';
53
54
  export var childProgressResizer = 'e-child-progress-resizer';
@@ -221,14 +221,14 @@ var Gantt = /** @class */ (function (_super) {
221
221
  };
222
222
  this.focusModule = new FocusModule(this);
223
223
  if (this.zoomingLevels.length === 0) {
224
- this.zoomingLevels = this.getZoomingLevels();
224
+ this.setProperties({ zoomingLevels: this.getZoomingLevels() }, true);
225
225
  }
226
226
  this.resourceFieldsMapping();
227
227
  if (isNullOrUndefined(this.resourceFields.unit)) { //set resourceUnit as unit if not mapping
228
- this.resourceFields.unit = 'unit';
228
+ this.setProperties({ resourceFields: { unit: 'unit' } }, true);
229
229
  }
230
230
  if (!isNullOrUndefined(this.taskFields.work)) {
231
- this.taskType = 'FixedWork';
231
+ this.setProperties({ taskType: 'FixedWork' }, true);
232
232
  }
233
233
  this.taskIds = [];
234
234
  };
@@ -831,6 +831,13 @@ var Gantt = /** @class */ (function (_super) {
831
831
  if (this.enableCriticalPath && criticalModule && criticalModule.criticalPathCollection) {
832
832
  this.criticalPathModule.criticalConnectorLine(criticalModule.criticalPathCollection, criticalModule.detailPredecessorCollection, true, criticalModule.predecessorCollectionTaskIds);
833
833
  }
834
+ this.calculateDimensions();
835
+ var pane1 = this.splitterModule.splitterObject.element.querySelectorAll('.e-pane')[0];
836
+ var pane2 = this.splitterModule.splitterObject.element.querySelectorAll('.e-pane')[1];
837
+ this.splitterModule.splitterPreviousPositionGrid = pane1.scrollWidth + 1 + 'px';
838
+ this.splitterModule.splitterPreviousPositionChart = pane2.scrollWidth + 1 + 'px';
839
+ this.splitterModule.splitterObject.paneSettings[0].size = this.splitterModule['getSpliterPositionInPercentage'](this.splitterModule.splitterPreviousPositionGrid);
840
+ this.splitterModule.splitterObject.paneSettings[1].size = this.splitterModule.splitterPreviousPositionChart;
834
841
  }
835
842
  };
836
843
  Gantt.prototype.keyActionHandler = function (e) {
@@ -132,7 +132,7 @@ var TaskProcessor = /** @class */ (function (_super) {
132
132
  }
133
133
  }
134
134
  if (!this.parent.taskFields.child) {
135
- this.parent.taskFields.child = 'Children';
135
+ this.parent.setProperties({ taskFields: { child: 'Children' } }, true);
136
136
  }
137
137
  this.constructDataSource(data);
138
138
  hierarchicalData = this.hierarchyData;
@@ -580,6 +580,7 @@ var TaskProcessor = /** @class */ (function (_super) {
580
580
  segment.endDate = !taskSettings.duration && taskSettings.endDate
581
581
  && segment.endDate > data.ganttProperties.endDate ? data.ganttProperties.endDate : segment.endDate;
582
582
  segment.offsetDuration = 1;
583
+ segment.duration = this.getDuration(segment.startDate, segment.endDate, data.ganttProperties.durationUnit, data.ganttProperties.isAutoSchedule, data.ganttProperties.isMilestone);
583
584
  }
584
585
  }
585
586
  else {
@@ -1188,17 +1189,17 @@ var TaskProcessor = /** @class */ (function (_super) {
1188
1189
  var isValid = false;
1189
1190
  var modifiedsDate = new Date(startDate.getTime());
1190
1191
  var hour = 0;
1191
- if (ganttData && ganttData.durationUnit == 'hour') {
1192
+ if (!isNullOrUndefined(ganttData) && ganttData.durationUnit == 'hour') {
1192
1193
  modifiedsDate = new Date(modifiedsDate.getTime() + ganttData.duration * 60 * 60 * 1000);
1193
1194
  }
1194
- if (ganttData && ganttData.durationUnit == 'minute') {
1195
+ if (!isNullOrUndefined(ganttData) && (ganttData.durationUnit == 'minute') || !isNullOrUndefined(ganttData) && ganttData.durationUnit == "day" && ganttData.duration < 1) {
1195
1196
  modifiedsDate = new Date(modifiedsDate.getTime() + ganttData.duration * 60 * 1000);
1196
1197
  }
1197
1198
  for (var i = 0; i < this.parent.dayWorkingTime.length; i++) {
1198
1199
  hour = hour + this.parent.dayWorkingTime[i].to - this.parent.dayWorkingTime[i].from;
1199
1200
  }
1200
1201
  var dateDiff = modifiedsDate.getTime() - sDate.getTime();
1201
- if (ganttData && ganttData.durationUnit == 'minute' && ganttData.duration < (hour * 60)) {
1202
+ if (!isNullOrUndefined(ganttData) && (ganttData.durationUnit == 'minute' && ganttData.duration < (hour * 60)) || !isNullOrUndefined(ganttData) && ganttData.durationUnit == "day" && ganttData.duration < 1) {
1202
1203
  if (tierMode === 'Day') {
1203
1204
  if ((Math.floor((dateDiff / (1000 * 60 * 60)) % 24) >= hour || dateDiff === 0)) {
1204
1205
  isValid = true;
@@ -1187,7 +1187,7 @@ var ChartRows = /** @class */ (function (_super) {
1187
1187
  width = endLeft - left;
1188
1188
  }
1189
1189
  else {
1190
- left = ganttProp.left < ganttProp.autoLeft ? ganttProp.left : ganttProp.autoLeft;
1190
+ left = ganttProp.left < ganttProp.autoLeft ? ganttProp.autoLeft : ganttProp.left;
1191
1191
  width = ganttProp.autoWidth;
1192
1192
  }
1193
1193
  return left + width;
@@ -1698,6 +1698,18 @@ var ChartRows = /** @class */ (function (_super) {
1698
1698
  }
1699
1699
  }
1700
1700
  else if (taskbarElement) {
1701
+ if (taskbarElement && this.parent.enableVirtualization && !args.data.expanded) {
1702
+ var childElement = trElement.querySelector('.' + cls.collapseParent);
1703
+ if (childElement) {
1704
+ for (var i = 0; i < childElement.childNodes.length; i++) {
1705
+ var taskbar = childElement.childNodes[i];
1706
+ var mainTaskbar = taskbar.querySelector('.' + cls.traceChildTaskBar);
1707
+ if (mainTaskbar) {
1708
+ mainTaskbar.style.backgroundColor = args.taskbarBgColor;
1709
+ }
1710
+ }
1711
+ }
1712
+ }
1701
1713
  if (taskbarElement.querySelector(classCollections[0]) &&
1702
1714
  getComputedStyle(taskbarElement.querySelector(classCollections[0])).backgroundColor !== args.taskbarBgColor) {
1703
1715
  taskbarElement.querySelector(classCollections[0]).style.backgroundColor = args.taskbarBgColor;
@@ -50,13 +50,13 @@ var EditTooltip = /** @class */ (function () {
50
50
  * @returns {void} .
51
51
  */
52
52
  EditTooltip.prototype.updateTooltipPosition = function (args) {
53
- var containerPosition = this.parent.getOffsetRect(this.parent.chartPane);
54
- var leftEnd = containerPosition.left + this.parent.chartPane.offsetWidth;
55
- var tooltipPositionX = args.element.offsetLeft;
56
- if (leftEnd < (tooltipPositionX + args.element.offsetWidth)) {
57
- tooltipPositionX += leftEnd - (tooltipPositionX + args.element.offsetWidth);
58
- }
59
- args.element.style.left = tooltipPositionX + 'px';
53
+ // const containerPosition: { top: number, left: number } = this.parent.getOffsetRect(this.parent.chartPane);
54
+ // const leftEnd: number = containerPosition.left + this.parent.chartPane.offsetWidth;
55
+ // let tooltipPositionX: number = args.element.offsetLeft;
56
+ // if (leftEnd < (tooltipPositionX + args.element.offsetWidth)) {
57
+ // tooltipPositionX += leftEnd - (tooltipPositionX + args.element.offsetWidth);
58
+ // }
59
+ // args.element.style.left = tooltipPositionX + 'px';
60
60
  args.element.style.visibility = 'visible';
61
61
  };
62
62
  /**
@@ -648,6 +648,13 @@ var Timeline = /** @class */ (function () {
648
648
  tier = 'bottomTier';
649
649
  tr = null;
650
650
  }
651
+ if (this.parent.height === "Auto" || this.parent.timelineModule.isSingleTier) {
652
+ var timelineContainer = this.parent.element.getElementsByClassName('e-timeline-header-container')[0]['offsetHeight'];
653
+ this.parent.element.getElementsByClassName('e-chart-scroll-container e-content')[0]['style'].height = 'calc(100% - ' + timelineContainer + 'px)';
654
+ if (!isNullOrUndefined(this.parent.element.getElementsByClassName('e-gridcontent')[0])) {
655
+ this.parent.treeGrid.element.getElementsByClassName('e-gridcontent')[0]['style'].height = 'calc(100% - ' + timelineContainer + 'px)';
656
+ }
657
+ }
651
658
  };
652
659
  /**
653
660
  * To validate timeline tier count.
@@ -1145,7 +1152,7 @@ var Timeline = /** @class */ (function () {
1145
1152
  // PDf export collection
1146
1153
  timelineCell.value = value;
1147
1154
  timelineCell.isWeekend = isWeekendCell;
1148
- timelineCell.width = cellWidth;
1155
+ timelineCell.width = thWidth;
1149
1156
  return parentTr;
1150
1157
  };
1151
1158
  /**
@@ -185,35 +185,34 @@ var Tooltip = /** @class */ (function () {
185
185
  */
186
186
  Tooltip.prototype.updateTooltipPosition = function (args) {
187
187
  args.element.style.visibility = 'visible';
188
- if (isNullOrUndefined(this.tooltipMouseEvent) || args.target.classList.contains('e-notes-info')) {
189
- return;
190
- }
191
- var postion = this.getPointorPosition(this.tooltipMouseEvent);
192
- var containerPosition = this.parent.getOffsetRect(this.parent.chartPane);
193
- var topEnd = containerPosition.top + this.parent.chartPane.offsetHeight;
194
- var leftEnd = containerPosition.left + this.parent.chartPane.offsetWidth;
195
- var tooltipPositionX = postion.x;
196
- var tooltipPositionY = postion.y;
197
- if (leftEnd < (tooltipPositionX + args.element.offsetWidth + 10)) {
198
- while (leftEnd < (tooltipPositionX + args.element.offsetWidth + 10)) {
199
- tooltipPositionX = leftEnd - args.element.offsetWidth - 10;
200
- args.element.style.left = tooltipPositionX + 'px';
201
- }
202
- }
203
- else {
204
- tooltipPositionX = tooltipPositionX + 10;
205
- args.element.style.left = tooltipPositionX + 'px';
206
- }
207
- if (window.innerHeight < args.element.offsetHeight + tooltipPositionY) {
208
- tooltipPositionY = tooltipPositionY - args.element.offsetHeight - 10;
209
- }
210
- if ((topEnd < (tooltipPositionY + args.element.offsetHeight + 20))) {
211
- tooltipPositionY = tooltipPositionY - args.element.offsetHeight - 10;
212
- }
213
- else {
214
- tooltipPositionY = tooltipPositionY + 10;
215
- }
216
- args.element.style.top = tooltipPositionY + 'px';
188
+ // if (isNullOrUndefined(this.tooltipMouseEvent) || args.target.classList.contains('e-notes-info')) {
189
+ // return;
190
+ // }
191
+ // const postion: { x: number, y: number } = this.getPointorPosition(this.tooltipMouseEvent);
192
+ // const containerPosition: { top: number, left: number, width?: number, height?: number } =
193
+ // this.parent.getOffsetRect(this.parent.chartPane);
194
+ // const topEnd: number = containerPosition.top + this.parent.chartPane.offsetHeight;
195
+ // const leftEnd: number = containerPosition.left + this.parent.chartPane.offsetWidth;
196
+ // let tooltipPositionX: number = postion.x;
197
+ // let tooltipPositionY: number = postion.y;
198
+ // if (leftEnd < (tooltipPositionX + args.element.offsetWidth + 10)) {
199
+ // while (leftEnd < (tooltipPositionX + args.element.offsetWidth + 10)) {
200
+ // tooltipPositionX = leftEnd - args.element.offsetWidth - 10;
201
+ // args.element.style.left = tooltipPositionX + 'px';
202
+ // }
203
+ // } else {
204
+ // tooltipPositionX = tooltipPositionX + 10;
205
+ // args.element.style.left = tooltipPositionX + 'px';
206
+ // }
207
+ // if (window.innerHeight < args.element.offsetHeight + tooltipPositionY) {
208
+ // tooltipPositionY = tooltipPositionY - args.element.offsetHeight - 10;
209
+ // }
210
+ // if ((topEnd < (tooltipPositionY + args.element.offsetHeight + 20))) {
211
+ // tooltipPositionY = tooltipPositionY - args.element.offsetHeight - 10;
212
+ // } else {
213
+ // tooltipPositionY = tooltipPositionY + 10;
214
+ // }
215
+ // args.element.style.top = tooltipPositionY + 'px';
217
216
  };
218
217
  /**
219
218
  * Method to get mouse pointor position
@@ -910,7 +910,7 @@
910
910
  pointer-events: none;
911
911
  position: absolute;
912
912
  top: 50%;
913
- width: 99%;
913
+ width: 99.5%;
914
914
  }
915
915
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
916
916
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -1053,7 +1053,7 @@
1053
1053
  pointer-events: none;
1054
1054
  position: absolute;
1055
1055
  top: 50%;
1056
- width: 99%;
1056
+ width: 99.5%;
1057
1057
  }
1058
1058
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
1059
1059
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -1237,7 +1237,7 @@
1237
1237
  pointer-events: none;
1238
1238
  position: absolute;
1239
1239
  top: 50%;
1240
- width: 99%;
1240
+ width: 99.5%;
1241
1241
  }
1242
1242
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
1243
1243
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -953,7 +953,7 @@
953
953
  pointer-events: none;
954
954
  position: absolute;
955
955
  top: 50%;
956
- width: 99%;
956
+ width: 99.5%;
957
957
  }
958
958
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
959
959
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -953,7 +953,7 @@
953
953
  pointer-events: none;
954
954
  position: absolute;
955
955
  top: 50%;
956
- width: 99%;
956
+ width: 99.5%;
957
957
  }
958
958
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
959
959
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -865,7 +865,7 @@
865
865
  pointer-events: none;
866
866
  position: absolute;
867
867
  top: 50%;
868
- width: 99%;
868
+ width: 99.5%;
869
869
  }
870
870
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
871
871
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
package/styles/fabric.css CHANGED
@@ -863,7 +863,7 @@
863
863
  pointer-events: none;
864
864
  position: absolute;
865
865
  top: 50%;
866
- width: 99%;
866
+ width: 99.5%;
867
867
  }
868
868
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
869
869
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -937,7 +937,7 @@
937
937
  pointer-events: none;
938
938
  position: absolute;
939
939
  top: 50%;
940
- width: 99%;
940
+ width: 99.5%;
941
941
  }
942
942
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
943
943
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
package/styles/fluent.css CHANGED
@@ -937,7 +937,7 @@
937
937
  pointer-events: none;
938
938
  position: absolute;
939
939
  top: 50%;
940
- width: 99%;
940
+ width: 99.5%;
941
941
  }
942
942
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
943
943
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -936,7 +936,7 @@
936
936
  pointer-events: none;
937
937
  position: absolute;
938
938
  top: 50%;
939
- width: 99%;
939
+ width: 99.5%;
940
940
  }
941
941
 
942
942
  .e-gantt-child-taskbar-inner-div,
@@ -910,7 +910,7 @@
910
910
  pointer-events: none;
911
911
  position: absolute;
912
912
  top: 50%;
913
- width: 99%;
913
+ width: 99.5%;
914
914
  }
915
915
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
916
916
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -1053,7 +1053,7 @@
1053
1053
  pointer-events: none;
1054
1054
  position: absolute;
1055
1055
  top: 50%;
1056
- width: 99%;
1056
+ width: 99.5%;
1057
1057
  }
1058
1058
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
1059
1059
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -1237,7 +1237,7 @@
1237
1237
  pointer-events: none;
1238
1238
  position: absolute;
1239
1239
  top: 50%;
1240
- width: 99%;
1240
+ width: 99.5%;
1241
1241
  }
1242
1242
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
1243
1243
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -953,7 +953,7 @@
953
953
  pointer-events: none;
954
954
  position: absolute;
955
955
  top: 50%;
956
- width: 99%;
956
+ width: 99.5%;
957
957
  }
958
958
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
959
959
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -953,7 +953,7 @@
953
953
  pointer-events: none;
954
954
  position: absolute;
955
955
  top: 50%;
956
- width: 99%;
956
+ width: 99.5%;
957
957
  }
958
958
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
959
959
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -865,7 +865,7 @@
865
865
  pointer-events: none;
866
866
  position: absolute;
867
867
  top: 50%;
868
- width: 99%;
868
+ width: 99.5%;
869
869
  }
870
870
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
871
871
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -863,7 +863,7 @@
863
863
  pointer-events: none;
864
864
  position: absolute;
865
865
  top: 50%;
866
- width: 99%;
866
+ width: 99.5%;
867
867
  }
868
868
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
869
869
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -937,7 +937,7 @@
937
937
  pointer-events: none;
938
938
  position: absolute;
939
939
  top: 50%;
940
- width: 99%;
940
+ width: 99.5%;
941
941
  }
942
942
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
943
943
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -937,7 +937,7 @@
937
937
  pointer-events: none;
938
938
  position: absolute;
939
939
  top: 50%;
940
- width: 99%;
940
+ width: 99.5%;
941
941
  }
942
942
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
943
943
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -848,7 +848,7 @@
848
848
  pointer-events: none;
849
849
  position: absolute;
850
850
  top: 50%;
851
- width: 99%;
851
+ width: 99.5%;
852
852
  }
853
853
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
854
854
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -950,7 +950,7 @@
950
950
  pointer-events: none;
951
951
  position: absolute;
952
952
  top: 50%;
953
- width: 99%;
953
+ width: 99.5%;
954
954
  }
955
955
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
956
956
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -908,7 +908,7 @@
908
908
  pointer-events: none;
909
909
  position: absolute;
910
910
  top: 50%;
911
- width: 99%;
911
+ width: 99.5%;
912
912
  }
913
913
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
914
914
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -952,7 +952,7 @@
952
952
  pointer-events: none;
953
953
  position: absolute;
954
954
  top: 50%;
955
- width: 99%;
955
+ width: 99.5%;
956
956
  }
957
957
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
958
958
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {
@@ -999,7 +999,7 @@
999
999
  pointer-events: none;
1000
1000
  position: absolute;
1001
1001
  top: 50%;
1002
- width: 99%;
1002
+ width: 99.5%;
1003
1003
  }
1004
1004
  .e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div,
1005
1005
  .e-gantt .e-gantt-chart .e-gantt-parent-taskbar-inner-div {