@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.
- package/CHANGELOG.md +25 -0
- package/dist/ej2-gantt.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-gantt.es2015.js +102 -51
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +102 -51
- package/dist/es6/ej2-gantt.es5.js.map +1 -1
- package/dist/global/ej2-gantt.min.js +2 -2
- package/dist/global/ej2-gantt.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +18 -18
- package/src/gantt/actions/context-menu.js +8 -2
- package/src/gantt/actions/dependency.js +1 -1
- package/src/gantt/actions/taskbar-edit.js +19 -1
- package/src/gantt/base/css-constants.d.ts +1 -0
- package/src/gantt/base/css-constants.js +1 -0
- package/src/gantt/base/gantt.js +10 -3
- package/src/gantt/base/task-processor.js +5 -4
- package/src/gantt/renderer/chart-rows.js +13 -1
- package/src/gantt/renderer/edit-tooltip.js +7 -7
- package/src/gantt/renderer/timeline.js +8 -1
- package/src/gantt/renderer/tooltip.js +28 -29
- package/styles/bootstrap-dark.css +1 -1
- package/styles/bootstrap.css +1 -1
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/gantt/_layout.scss +1 -1
- package/styles/gantt/bootstrap-dark.css +1 -1
- package/styles/gantt/bootstrap.css +1 -1
- package/styles/gantt/bootstrap4.css +1 -1
- package/styles/gantt/bootstrap5-dark.css +1 -1
- package/styles/gantt/bootstrap5.css +1 -1
- package/styles/gantt/fabric-dark.css +1 -1
- package/styles/gantt/fabric.css +1 -1
- package/styles/gantt/fluent-dark.css +1 -1
- package/styles/gantt/fluent.css +1 -1
- package/styles/gantt/highcontrast-light.css +1 -1
- package/styles/gantt/highcontrast.css +1 -1
- package/styles/gantt/material-dark.css +1 -1
- package/styles/gantt/material.css +1 -1
- package/styles/gantt/material3-dark.css +1 -1
- package/styles/gantt/material3.css +1 -1
- package/styles/gantt/tailwind-dark.css +1 -1
- package/styles/gantt/tailwind.css +1 -1
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/material.css +1 -1
- package/styles/material3-dark.css +1 -1
- package/styles/material3.css +1 -1
- package/styles/tailwind-dark.css +1 -1
- package/styles/tailwind.css +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 22.2.
|
|
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.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@22.2.8",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
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.
|
|
27
|
-
"_shasum": "
|
|
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.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~22.2.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~22.2.
|
|
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.
|
|
43
|
-
"@syncfusion/ej2-grids": "~22.2.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~22.2.
|
|
45
|
-
"@syncfusion/ej2-layouts": "~22.2.
|
|
46
|
-
"@syncfusion/ej2-lists": "~22.2.
|
|
47
|
-
"@syncfusion/ej2-navigations": "~22.2.
|
|
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.
|
|
50
|
-
"@syncfusion/ej2-richtexteditor": "~22.2.
|
|
51
|
-
"@syncfusion/ej2-svg-base": "~22.2.
|
|
52
|
-
"@syncfusion/ej2-treegrid": "~22.2.
|
|
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.
|
|
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.
|
|
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 >
|
|
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';
|
package/src/gantt/base/gantt.js
CHANGED
|
@@ -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
|
|
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
|
|
228
|
+
this.setProperties({ resourceFields: { unit: 'unit' } }, true);
|
|
229
229
|
}
|
|
230
230
|
if (!isNullOrUndefined(this.taskFields.work)) {
|
|
231
|
-
this.taskType
|
|
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
|
|
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.
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
if (leftEnd < (tooltipPositionX + args.element.offsetWidth)) {
|
|
57
|
-
|
|
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 =
|
|
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
|
-
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}
|
|
203
|
-
else {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}
|
|
207
|
-
if (window.innerHeight < args.element.offsetHeight + tooltipPositionY) {
|
|
208
|
-
|
|
209
|
-
}
|
|
210
|
-
if ((topEnd < (tooltipPositionY + args.element.offsetHeight + 20))) {
|
|
211
|
-
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
|
|
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
|
package/styles/bootstrap.css
CHANGED
package/styles/bootstrap4.css
CHANGED
package/styles/bootstrap5.css
CHANGED
package/styles/fabric-dark.css
CHANGED
package/styles/fabric.css
CHANGED
package/styles/fluent-dark.css
CHANGED
package/styles/fluent.css
CHANGED
package/styles/gantt/fabric.css
CHANGED
package/styles/gantt/fluent.css
CHANGED