@syncfusion/ej2-gantt 23.1.44 → 23.2.5
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 +22 -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 +52 -30
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +90 -57
- 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 +20 -20
- package/src/gantt/actions/edit.js +19 -0
- package/src/gantt/actions/toolbar.js +3 -0
- package/src/gantt/base/date-processor.js +1 -1
- package/src/gantt/base/gantt.js +1 -0
- package/src/gantt/base/tree-grid.js +5 -3
- package/src/gantt/export/export-helper.js +11 -11
- package/src/gantt/export/pdf-gantt.js +6 -3
- package/src/gantt/export/pdf-taskbar.js +3 -3
- package/src/gantt/export/pdf-timeline.js +12 -6
- package/src/gantt/renderer/timeline.js +3 -4
- package/styles/bootstrap-dark.css +5 -0
- package/styles/bootstrap5-dark.css +2 -1
- package/styles/bootstrap5.css +2 -1
- package/styles/fabric-dark.css +5 -0
- package/styles/fluent-dark.css +2 -1
- package/styles/fluent.css +2 -1
- package/styles/gantt/bootstrap-dark.css +5 -0
- package/styles/gantt/bootstrap5-dark.css +2 -1
- package/styles/gantt/bootstrap5.css +2 -1
- package/styles/gantt/fabric-dark.css +5 -0
- package/styles/gantt/fluent-dark.css +2 -1
- package/styles/gantt/fluent.css +2 -1
- package/styles/gantt/highcontrast.css +5 -0
- package/styles/gantt/tailwind-dark.css +2 -1
- package/styles/gantt/tailwind.css +2 -1
- package/styles/highcontrast.css +5 -0
- package/styles/tailwind-dark.css +2 -1
- package/styles/tailwind.css +2 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 23.
|
|
3
|
+
* version : 23.2.5
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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@23.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@23.2.4",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-wCNpECTDwGcIedOz9w24Xdjb4aa/L4eqjzhEpjtvKXnQQYVaMXirv1KaIx3kTQPB+qsFw7x02h/Ucsdyl6tTuw==",
|
|
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-23.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-23.2.4.tgz",
|
|
27
|
+
"_shasum": "94d38c11dffbbf536d2f515c84a3613fd10cd631",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~23.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~23.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~23.
|
|
41
|
-
"@syncfusion/ej2-data": "~23.
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~23.
|
|
43
|
-
"@syncfusion/ej2-grids": "~23.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~23.
|
|
45
|
-
"@syncfusion/ej2-layouts": "~23.
|
|
46
|
-
"@syncfusion/ej2-lists": "~23.
|
|
47
|
-
"@syncfusion/ej2-navigations": "~23.
|
|
48
|
-
"@syncfusion/ej2-notifications": "~23.
|
|
49
|
-
"@syncfusion/ej2-popups": "~23.
|
|
50
|
-
"@syncfusion/ej2-richtexteditor": "~23.
|
|
51
|
-
"@syncfusion/ej2-svg-base": "~23.
|
|
52
|
-
"@syncfusion/ej2-treegrid": "~23.
|
|
38
|
+
"@syncfusion/ej2-base": "~23.2.4",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~23.2.4",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~23.2.4",
|
|
41
|
+
"@syncfusion/ej2-data": "~23.2.4",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~23.2.5",
|
|
43
|
+
"@syncfusion/ej2-grids": "~23.2.4",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~23.2.4",
|
|
45
|
+
"@syncfusion/ej2-layouts": "~23.2.4",
|
|
46
|
+
"@syncfusion/ej2-lists": "~23.2.4",
|
|
47
|
+
"@syncfusion/ej2-navigations": "~23.2.5",
|
|
48
|
+
"@syncfusion/ej2-notifications": "~23.2.5",
|
|
49
|
+
"@syncfusion/ej2-popups": "~23.2.4",
|
|
50
|
+
"@syncfusion/ej2-richtexteditor": "~23.2.5",
|
|
51
|
+
"@syncfusion/ej2-svg-base": "~23.2.5",
|
|
52
|
+
"@syncfusion/ej2-treegrid": "~23.2.4"
|
|
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": "23.
|
|
77
|
+
"version": "23.2.5",
|
|
78
78
|
"sideEffects": false
|
|
79
79
|
}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import { isNullOrUndefined, isUndefined, extend, setValue, getValue, deleteObject, createElement } from '@syncfusion/ej2-base';
|
|
2
13
|
import { DataManager, Query, ODataAdaptor, WebApiAdaptor, ODataV4Adaptor } from '@syncfusion/ej2-data';
|
|
3
14
|
import { getUid } from '@syncfusion/ej2-grids';
|
|
@@ -1227,7 +1238,15 @@ var Edit = /** @class */ (function () {
|
|
|
1227
1238
|
if (args.action && args.action === 'DrawConnectorLine') {
|
|
1228
1239
|
eventArgs.action = 'DrawConnectorLine';
|
|
1229
1240
|
}
|
|
1241
|
+
var ganttObj = this.parent;
|
|
1242
|
+
var currentBaselineStart = __assign({}, eventArgs.data.ganttProperties.baselineStartDate);
|
|
1243
|
+
var currentBaselineEnd = __assign({}, eventArgs.data.ganttProperties.baselineEndDate);
|
|
1230
1244
|
this.parent.trigger('actionBegin', eventArgs, function (eventArg) {
|
|
1245
|
+
if (currentBaselineStart != eventArg.data["ganttProperties"].baselineStartDate
|
|
1246
|
+
|| currentBaselineEnd != eventArg.data["ganttProperties"].baselineEndDate) {
|
|
1247
|
+
ganttObj.setRecordValue('baselineLeft', ganttObj.dataOperation.calculateBaselineLeft(eventArg.data['ganttProperties']), eventArg.data['ganttProperties'], true);
|
|
1248
|
+
ganttObj.setRecordValue('baselineWidth', ganttObj.dataOperation.calculateBaselineWidth(eventArg.data['ganttProperties']), eventArg.data['ganttProperties'], true);
|
|
1249
|
+
}
|
|
1231
1250
|
if (!isNullOrUndefined(_this.parent.loadingIndicator) && _this.parent.loadingIndicator.indicatorType === "Shimmer") {
|
|
1232
1251
|
_this.parent.showMaskRow();
|
|
1233
1252
|
}
|
|
@@ -107,6 +107,9 @@ var Toolbar = /** @class */ (function () {
|
|
|
107
107
|
this.toolbar.isReact = this.parent.isReact;
|
|
108
108
|
this.toolbar.on('render-react-toolbar-template', this.addReactToolbarPortals, this);
|
|
109
109
|
this.toolbar.appendTo(this.element);
|
|
110
|
+
if (this.parent.treeGrid.grid && this.parent.isReact) {
|
|
111
|
+
this.parent.treeGrid.grid.portals = this.parent.portals;
|
|
112
|
+
}
|
|
110
113
|
var cancelItem = this.element.querySelector('#' + this.parent.element.id + '_cancel');
|
|
111
114
|
var updateItem = this.element.querySelector('#' + this.parent.element.id + '_update');
|
|
112
115
|
if (cancelItem) {
|
|
@@ -67,7 +67,7 @@ var DateProcessor = /** @class */ (function () {
|
|
|
67
67
|
if (!this.parent.includeWeekend) {
|
|
68
68
|
var tempDate = new Date(cloneStartDate.getTime());
|
|
69
69
|
cloneStartDate = this.getNextWorkingDay(cloneStartDate);
|
|
70
|
-
if (tempDate.getTime() !== cloneStartDate.getTime()) {
|
|
70
|
+
if (tempDate.getTime() !== cloneStartDate.getTime() && !validateAsMilestone) {
|
|
71
71
|
this.setTime(startTime, cloneStartDate);
|
|
72
72
|
}
|
|
73
73
|
}
|
package/src/gantt/base/gantt.js
CHANGED
|
@@ -1514,6 +1514,7 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
1514
1514
|
this.treeGridModule.treeGridColumns = [];
|
|
1515
1515
|
this.treeGridModule.validateGanttColumns();
|
|
1516
1516
|
this.treeGrid.columns = this.treeGridModule.treeGridColumns;
|
|
1517
|
+
this.treeGrid.grid.columns = this.treeGridModule.treeGridColumns;
|
|
1517
1518
|
this.chartRowsModule.initiateTemplates();
|
|
1518
1519
|
this.timelineModule.updateChartByNewTimeline();
|
|
1519
1520
|
break;
|
|
@@ -121,7 +121,9 @@ var GanttTreeGrid = /** @class */ (function () {
|
|
|
121
121
|
this.parent.treeGrid.loadChildOnDemand = this.parent.loadChildOnDemand;
|
|
122
122
|
this.parent.treeGrid['isFromGantt'] = true;
|
|
123
123
|
this.parent.treeGrid.parentIdMapping = this.parent.taskFields.parentID;
|
|
124
|
-
|
|
124
|
+
if (this.parent.taskFields.parentID) {
|
|
125
|
+
this.parent.treeGrid.idMapping = this.parent.taskFields.id;
|
|
126
|
+
}
|
|
125
127
|
this.parent.treeGrid.showColumnMenu = this.parent.showColumnMenu;
|
|
126
128
|
this.parent.treeGrid.enableCollapseAll = this.parent.collapseAllParentTasks;
|
|
127
129
|
this.parent.treeGrid.columnMenuItems = this.parent.columnMenuItems;
|
|
@@ -162,7 +164,7 @@ var GanttTreeGrid = /** @class */ (function () {
|
|
|
162
164
|
toolbarHeight = this.parent.toolbarModule.element.offsetHeight;
|
|
163
165
|
}
|
|
164
166
|
this.parent.treeGrid.height =
|
|
165
|
-
this.parent.element.getElementsByClassName('e-chart-scroll-container e-content')[0]['offsetHeight'] - 19;
|
|
167
|
+
this.parent.element.getElementsByClassName('e-chart-scroll-container e-content')[0]['offsetHeight'] - (this.parent.flatData.length == 0 ? 0 : 19);
|
|
166
168
|
};
|
|
167
169
|
GanttTreeGrid.prototype.getContentDiv = function () {
|
|
168
170
|
return this.treeGridElement.querySelector('.e-content');
|
|
@@ -821,7 +823,7 @@ var GanttTreeGrid = /** @class */ (function () {
|
|
|
821
823
|
*/
|
|
822
824
|
GanttTreeGrid.prototype.composeIDColumn = function (column) {
|
|
823
825
|
var isProjectView = this.parent.viewType === 'ProjectView';
|
|
824
|
-
var lengthDataSource = this.parent.dataSource['length'];
|
|
826
|
+
var lengthDataSource = this.parent.dataSource ? this.parent.dataSource['length'] : 0;
|
|
825
827
|
var taskIDName;
|
|
826
828
|
column.isPrimaryKey = isProjectView ? true : false;
|
|
827
829
|
if (this.parent.isLocaleChanged) {
|
|
@@ -6,7 +6,7 @@ import { PdfFontStyle, PdfColor, PdfPen, PdfSolidBrush } from '@syncfusion/ej2-p
|
|
|
6
6
|
import { PdfBorders, PdfPaddings } from './pdf-base/index';
|
|
7
7
|
import { isNullOrUndefined, Internationalization, getValue, extend } from '@syncfusion/ej2-base';
|
|
8
8
|
import { getForeignData, ValueFormatter } from '@syncfusion/ej2-grids';
|
|
9
|
-
import { pixelToPoint, isScheduledTask
|
|
9
|
+
import { pixelToPoint, isScheduledTask } from '../base/utils';
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
* `ExportHelper` for `PdfExport` & `ExcelExport`
|
|
@@ -241,10 +241,10 @@ var ExportHelper = /** @class */ (function () {
|
|
|
241
241
|
this.parent.predecessorModule.createConnectorLinesCollection();
|
|
242
242
|
this.parent.updatedConnectorLineCollection.forEach(function (data) {
|
|
243
243
|
var predecessor = _this.gantt.predecessor.add();
|
|
244
|
-
predecessor.parentLeft =
|
|
245
|
-
predecessor.childLeft =
|
|
246
|
-
predecessor.parentWidth =
|
|
247
|
-
predecessor.childWidth =
|
|
244
|
+
predecessor.parentLeft = data.parentLeft;
|
|
245
|
+
predecessor.childLeft = data.childLeft;
|
|
246
|
+
predecessor.parentWidth = data.parentWidth;
|
|
247
|
+
predecessor.childWidth = data.childWidth;
|
|
248
248
|
predecessor.parentIndex = data.parentIndex;
|
|
249
249
|
predecessor.childIndex = data.childIndex;
|
|
250
250
|
predecessor.rowHeight = data.rowHeight;
|
|
@@ -329,8 +329,8 @@ var ExportHelper = /** @class */ (function () {
|
|
|
329
329
|
flatData.forEach(function (data) {
|
|
330
330
|
var taskbar = _this.gantt.taskbar.add();
|
|
331
331
|
var ganttProp = data.ganttProperties;
|
|
332
|
-
taskbar.left =
|
|
333
|
-
taskbar.width =
|
|
332
|
+
taskbar.left = ganttProp.left;
|
|
333
|
+
taskbar.width = ganttProp.width;
|
|
334
334
|
if (taskbar.left < 0) {
|
|
335
335
|
taskbar.width = taskbar.width + taskbar.left;
|
|
336
336
|
taskbar.left = 0;
|
|
@@ -371,8 +371,8 @@ var ExportHelper = /** @class */ (function () {
|
|
|
371
371
|
taskbar.isMilestone = ganttProp.isMilestone;
|
|
372
372
|
taskbar.baselineStartDate = ganttProp.baselineStartDate;
|
|
373
373
|
taskbar.baselineEndDate = ganttProp.baselineEndDate;
|
|
374
|
-
taskbar.baselineLeft =
|
|
375
|
-
taskbar.baselineWidth =
|
|
374
|
+
taskbar.baselineLeft = ganttProp.baselineLeft;
|
|
375
|
+
taskbar.baselineWidth = ganttProp.baselineWidth;
|
|
376
376
|
taskbar.milestoneColor = new PdfColor(_this.ganttStyle.taskbar.milestoneColor);
|
|
377
377
|
taskbar.isParentTask = data.hasChildRecords;
|
|
378
378
|
if (ganttProp.isMilestone) {
|
|
@@ -388,9 +388,9 @@ var ExportHelper = /** @class */ (function () {
|
|
|
388
388
|
taskbar.taskLabel = data[_this.parent.labelSettings.taskLabel].toString();
|
|
389
389
|
}
|
|
390
390
|
var reduceLeft = ganttProp.isMilestone ? Math.floor(_this.parent.chartRowsModule.taskBarHeight / 2) + 33 : 33; // 33 indicates default timeline cell width
|
|
391
|
-
taskbar.rightTaskLabel.left =
|
|
391
|
+
taskbar.rightTaskLabel.left = ganttProp.left + ganttProp.width + reduceLeft; // right label left value
|
|
392
392
|
taskbar.fontFamily = _this.ganttStyle.fontFamily;
|
|
393
|
-
taskbar.progressWidth =
|
|
393
|
+
taskbar.progressWidth = ganttProp.progressWidth;
|
|
394
394
|
taskbar.labelColor = new PdfColor(_this.ganttStyle.label.fontColor);
|
|
395
395
|
taskbar.progressFontColor = new PdfColor(_this.ganttStyle.taskbar.progressFontColor);
|
|
396
396
|
if (taskbar.isParentTask) {
|
|
@@ -100,10 +100,12 @@ var PdfGantt = /** @class */ (function (_super) {
|
|
|
100
100
|
}
|
|
101
101
|
var detail = {};
|
|
102
102
|
var range = [];
|
|
103
|
-
var convertedWidth =
|
|
103
|
+
var convertedWidth = (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
104
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? pixelToPoint(this.chartHeader.bottomTierCellWidth) : this.chartHeader.bottomTierCellWidth;
|
|
104
105
|
var width = 0;
|
|
105
106
|
if (this.chartHeader.bottomTierCellWidth !== 0) {
|
|
106
|
-
width = (
|
|
107
|
+
width = (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
108
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? (Math.floor(pageWidth / convertedWidth) * convertedWidth) : (Math.floor(pageWidth / convertedWidth) * convertedWidth) + 5;
|
|
107
109
|
}
|
|
108
110
|
range[0] = point;
|
|
109
111
|
if (headerWidth - point <= width) {
|
|
@@ -221,7 +223,8 @@ var PdfGantt = /** @class */ (function (_super) {
|
|
|
221
223
|
var pageData;
|
|
222
224
|
this.headerDetails.forEach(function (detail, index) {
|
|
223
225
|
var page = _this.result.page.section.getPages()[_this.startPageIndex];
|
|
224
|
-
page['contentWidth'] =
|
|
226
|
+
page['contentWidth'] = (_this.parent.pdfExportModule && _this.parent.pdfExportModule.helper.exportProps && _this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
227
|
+
_this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? pointToPixel(_this.headerDetails[index].endPoint - _this.headerDetails[index].startPoint) : _this.headerDetails[index].endPoint - _this.headerDetails[index].startPoint;
|
|
225
228
|
_this.chartHeader.drawTimeline(page, _this.startPoint, detail);
|
|
226
229
|
taskbarPoint.y = taskbarPoint.y + pixelToPoint(_this.parent.timelineModule.isSingleTier ? 45 : 60); // headerHeight
|
|
227
230
|
pageStartX = taskbarPoint.x;
|
|
@@ -65,7 +65,8 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
|
|
|
65
65
|
//code for while current pdf page is exceed
|
|
66
66
|
if (yPoint > pageSize.height) {
|
|
67
67
|
page = this.GetNextPage(page);
|
|
68
|
-
page['contentWidth'] =
|
|
68
|
+
page['contentWidth'] = (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
69
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? pointToPixel(detail.endPoint - detail.startPoint) : detail.endPoint - detail.startPoint;
|
|
69
70
|
taskGraphics = page.graphics;
|
|
70
71
|
startPoint.y = 0;
|
|
71
72
|
if (this.parent.pdfExportModule.gantt.enableHeader) {
|
|
@@ -93,7 +94,7 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
|
|
|
93
94
|
progressFormat.alignment = PdfTextAlignment.Right;
|
|
94
95
|
var isLabelString = false;
|
|
95
96
|
var updatedWidth;
|
|
96
|
-
if (/^[a-zA-Z]/.test(this.taskLabel)) {
|
|
97
|
+
if (!isNullOrUndefined(this.taskLabel) && (/^[a-zA-Z]/.test(this.taskLabel))) {
|
|
97
98
|
isLabelString = true;
|
|
98
99
|
progressFormat.alignment = PdfTextAlignment.Left;
|
|
99
100
|
}
|
|
@@ -159,7 +160,6 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
|
|
|
159
160
|
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + pixelToPoint(taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight + pixelToPoint(taskbar.height + 3), pixelToPoint(this.baselineWidth), pixelToPoint(this.baselineHeight));
|
|
160
161
|
}
|
|
161
162
|
taskGraphics.drawRectangle(taskbarPen, taskBrush, startPoint.x + pixelToPoint(this.left - cumulativeWidth) + 0.5, startPoint.y + adjustHeight, pixelToPoint(renderWidth), pixelToPoint(taskbar.height));
|
|
162
|
-
taskbar.width = taskbar.width - renderWidth;
|
|
163
163
|
if (this.isScheduledTask) {
|
|
164
164
|
var progressBoundsWidth = 0;
|
|
165
165
|
if (this.progressWidth <= renderWidth) {
|
|
@@ -23,7 +23,8 @@ var PdfTimeline = /** @class */ (function () {
|
|
|
23
23
|
* @returns {void}
|
|
24
24
|
*/
|
|
25
25
|
PdfTimeline.prototype.drawTimeline = function (page, startPoint, detail) {
|
|
26
|
-
var remainWidth =
|
|
26
|
+
var remainWidth = (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
27
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? pointToPixel(Math.floor(detail.totalWidth)) : Math.floor(detail.totalWidth);
|
|
27
28
|
var renderWidth = 0;
|
|
28
29
|
this.topTierPoint.x = startPoint.x;
|
|
29
30
|
this.topTierPoint.y = startPoint.y;
|
|
@@ -51,7 +52,8 @@ var PdfTimeline = /** @class */ (function () {
|
|
|
51
52
|
//Primary header Event Arguments
|
|
52
53
|
/* eslint-disable-next-line */
|
|
53
54
|
this.triggerQueryTimelinecell(page, this.topTierPoint.x, this.topTierPoint.y, this.topTierHeight, renderWidth, pHeader.value, true);
|
|
54
|
-
this.topTierPoint.x +=
|
|
55
|
+
this.topTierPoint.x += (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
56
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? renderWidth : pixelToPoint(renderWidth);
|
|
55
57
|
remainWidth -= renderWidth;
|
|
56
58
|
if (isCompleted) {
|
|
57
59
|
this.topTierIndex++;
|
|
@@ -77,7 +79,8 @@ var PdfTimeline = /** @class */ (function () {
|
|
|
77
79
|
//Secondary header Event Arguments
|
|
78
80
|
/* eslint-disable-next-line */
|
|
79
81
|
this.triggerQueryTimelinecell(page, this.bottomTierPoint.x, this.bottomTierPoint.y, this.bottomTierHeight, width, secondHeader.value, false);
|
|
80
|
-
this.bottomTierPoint.x = this.
|
|
82
|
+
this.bottomTierPoint.x = (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
83
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? this.bottomTierPoint.x + width : this.bottomTierPoint.x + pixelToPoint(width);
|
|
81
84
|
remainWidth -= width;
|
|
82
85
|
secondHeader.completedWidth = width;
|
|
83
86
|
if (isCompleted) {
|
|
@@ -108,7 +111,8 @@ var PdfTimeline = /** @class */ (function () {
|
|
|
108
111
|
//Primary header Event Arguments
|
|
109
112
|
/* eslint-disable-next-line */
|
|
110
113
|
this.triggerQueryTimelinecell(page, this.topTierPoint.x, this.topTierPoint.y, this.topTierHeight, pHeader.completedWidth, pHeader.value, true);
|
|
111
|
-
this.topTierPoint.x +=
|
|
114
|
+
this.topTierPoint.x += (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
115
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? pHeader.completedWidth : pixelToPoint(pHeader.completedWidth);
|
|
112
116
|
}
|
|
113
117
|
}
|
|
114
118
|
}
|
|
@@ -121,7 +125,8 @@ var PdfTimeline = /** @class */ (function () {
|
|
|
121
125
|
//Secondary header Event Arguments
|
|
122
126
|
/* eslint-disable-next-line */
|
|
123
127
|
this.triggerQueryTimelinecell(page, this.bottomTierPoint.x, this.bottomTierPoint.y, this.bottomTierHeight, secondHeader.width, secondHeader.value, false);
|
|
124
|
-
this.bottomTierPoint.x = this.
|
|
128
|
+
this.bottomTierPoint.x = (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
129
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? this.bottomTierPoint.x + secondHeader.width : this.bottomTierPoint.x + pixelToPoint(secondHeader.width);
|
|
125
130
|
}
|
|
126
131
|
}
|
|
127
132
|
}
|
|
@@ -168,7 +173,8 @@ var PdfTimeline = /** @class */ (function () {
|
|
|
168
173
|
var e = eventArgs.timelineCell;
|
|
169
174
|
var rectPen = new PdfPen(eventArgs.timelineCell.borderColor);
|
|
170
175
|
var rectBrush = new PdfSolidBrush(eventArgs.timelineCell.backgroundColor);
|
|
171
|
-
graphics.drawRectangle(rectPen, rectBrush, x, y,
|
|
176
|
+
graphics.drawRectangle(rectPen, rectBrush, x, y, (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
177
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? width : pixelToPoint(width), pixelToPoint(height));
|
|
172
178
|
if (!isTopTier && (this.parent.gridLines == "Both" || this.parent.gridLines == "Vertical")) {
|
|
173
179
|
graphics.drawRectangle(rectPen, rectBrush, x, y + pixelToPoint(height), width, page.getClientSize().height);
|
|
174
180
|
}
|
|
@@ -1429,10 +1429,9 @@ var Timeline = /** @class */ (function () {
|
|
|
1429
1429
|
var validEndLeft = this.parent.dataOperation.getTaskLeft(validEndDate, false);
|
|
1430
1430
|
var isChanged = void 0;
|
|
1431
1431
|
var taskbarModule = this.parent.editModule.taskbarEditModule;
|
|
1432
|
-
if (!isNullOrUndefined(maxStartLeft) && ((
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
taskbarModule.taskBarEditAction !== 'RightResizing')) && (maxStartLeft < this.bottomTierCellWidth || maxStartLeft <= validStartLeft)) {
|
|
1432
|
+
if (!isNullOrUndefined(maxStartLeft) && ((!isNullOrUndefined(taskbarModule)) && (!isNullOrUndefined(taskbarModule.taskBarEditAction)
|
|
1433
|
+
&& taskbarModule.taskBarEditAction !== 'ProgressResizing' &&
|
|
1434
|
+
taskbarModule.taskBarEditAction !== 'RightResizing' && taskbarModule.taskBarEditAction !== 'LeftResizing')) && (maxStartLeft < this.bottomTierCellWidth || maxStartLeft <= validStartLeft)) {
|
|
1436
1435
|
isChanged = 'prevTimeSpan';
|
|
1437
1436
|
minStartDate = minStartDate > this.timelineStartDate ? this.timelineStartDate : minStartDate;
|
|
1438
1437
|
}
|
|
@@ -142,6 +142,11 @@
|
|
|
142
142
|
width: 40px;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
.e-multi-select-wrapper .e-searcher input[type=text],
|
|
146
|
+
.e-multi-select-wrapper .e-multi-searcher input[type=text] {
|
|
147
|
+
color: #fff;
|
|
148
|
+
}
|
|
149
|
+
|
|
145
150
|
/* stylelint-disable property-no-vendor-prefix */
|
|
146
151
|
/* stylelint-disable property-no-vendor-prefix */
|
|
147
152
|
@keyframes material-spinner-rotate {
|
package/styles/bootstrap5.css
CHANGED
|
@@ -170,7 +170,8 @@
|
|
|
170
170
|
width: 24px;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
.e-multi-select-wrapper .e-searcher input[type=text]
|
|
173
|
+
.e-multi-select-wrapper .e-searcher input[type=text],
|
|
174
|
+
.e-multi-select-wrapper .e-multi-searcher input[type=text] {
|
|
174
175
|
color: #212529;
|
|
175
176
|
height: 100%;
|
|
176
177
|
}
|
package/styles/fabric-dark.css
CHANGED
|
@@ -98,6 +98,11 @@
|
|
|
98
98
|
margin: 2px 2px 2px 0;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
.e-multi-select-wrapper .e-searcher input[type=text],
|
|
102
|
+
.e-multi-select-wrapper .e-multi-searcher input[type=text] {
|
|
103
|
+
color: #fff;
|
|
104
|
+
}
|
|
105
|
+
|
|
101
106
|
/* stylelint-disable property-no-vendor-prefix */
|
|
102
107
|
/* stylelint-disable property-no-vendor-prefix */
|
|
103
108
|
@keyframes material-spinner-rotate {
|
package/styles/fluent-dark.css
CHANGED
|
@@ -150,7 +150,8 @@
|
|
|
150
150
|
width: 24px;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
.e-multi-select-wrapper .e-searcher input[type=text]
|
|
153
|
+
.e-multi-select-wrapper .e-searcher input[type=text],
|
|
154
|
+
.e-multi-select-wrapper .e-multi-searcher input[type=text] {
|
|
154
155
|
color: #f3f2f1;
|
|
155
156
|
height: 100%;
|
|
156
157
|
}
|
package/styles/fluent.css
CHANGED
|
@@ -150,7 +150,8 @@
|
|
|
150
150
|
width: 24px;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
.e-multi-select-wrapper .e-searcher input[type=text]
|
|
153
|
+
.e-multi-select-wrapper .e-searcher input[type=text],
|
|
154
|
+
.e-multi-select-wrapper .e-multi-searcher input[type=text] {
|
|
154
155
|
color: #201f1e;
|
|
155
156
|
height: 100%;
|
|
156
157
|
}
|
|
@@ -142,6 +142,11 @@
|
|
|
142
142
|
width: 40px;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
.e-multi-select-wrapper .e-searcher input[type=text],
|
|
146
|
+
.e-multi-select-wrapper .e-multi-searcher input[type=text] {
|
|
147
|
+
color: #fff;
|
|
148
|
+
}
|
|
149
|
+
|
|
145
150
|
/* stylelint-disable property-no-vendor-prefix */
|
|
146
151
|
/* stylelint-disable property-no-vendor-prefix */
|
|
147
152
|
@keyframes material-spinner-rotate {
|
|
@@ -170,7 +170,8 @@
|
|
|
170
170
|
width: 24px;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
.e-multi-select-wrapper .e-searcher input[type=text]
|
|
173
|
+
.e-multi-select-wrapper .e-searcher input[type=text],
|
|
174
|
+
.e-multi-select-wrapper .e-multi-searcher input[type=text] {
|
|
174
175
|
color: #212529;
|
|
175
176
|
height: 100%;
|
|
176
177
|
}
|
|
@@ -98,6 +98,11 @@
|
|
|
98
98
|
margin: 2px 2px 2px 0;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
.e-multi-select-wrapper .e-searcher input[type=text],
|
|
102
|
+
.e-multi-select-wrapper .e-multi-searcher input[type=text] {
|
|
103
|
+
color: #fff;
|
|
104
|
+
}
|
|
105
|
+
|
|
101
106
|
/* stylelint-disable property-no-vendor-prefix */
|
|
102
107
|
/* stylelint-disable property-no-vendor-prefix */
|
|
103
108
|
@keyframes material-spinner-rotate {
|
|
@@ -150,7 +150,8 @@
|
|
|
150
150
|
width: 24px;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
.e-multi-select-wrapper .e-searcher input[type=text]
|
|
153
|
+
.e-multi-select-wrapper .e-searcher input[type=text],
|
|
154
|
+
.e-multi-select-wrapper .e-multi-searcher input[type=text] {
|
|
154
155
|
color: #f3f2f1;
|
|
155
156
|
height: 100%;
|
|
156
157
|
}
|
package/styles/gantt/fluent.css
CHANGED
|
@@ -150,7 +150,8 @@
|
|
|
150
150
|
width: 24px;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
.e-multi-select-wrapper .e-searcher input[type=text]
|
|
153
|
+
.e-multi-select-wrapper .e-searcher input[type=text],
|
|
154
|
+
.e-multi-select-wrapper .e-multi-searcher input[type=text] {
|
|
154
155
|
color: #201f1e;
|
|
155
156
|
height: 100%;
|
|
156
157
|
}
|
|
@@ -177,6 +177,11 @@
|
|
|
177
177
|
width: 30px;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
+
.e-multi-select-wrapper .e-searcher input[type=text],
|
|
181
|
+
.e-multi-select-wrapper .e-multi-searcher input[type=text] {
|
|
182
|
+
color: #fff;
|
|
183
|
+
}
|
|
184
|
+
|
|
180
185
|
/*! Fabric theme definition's */
|
|
181
186
|
/*! component's theme wise override definitions and variables */
|
|
182
187
|
/*! Horizontal Tab */
|
|
@@ -118,7 +118,8 @@
|
|
|
118
118
|
width: 28px;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
.e-multi-select-wrapper .e-searcher input[type=text]
|
|
121
|
+
.e-multi-select-wrapper .e-searcher input[type=text],
|
|
122
|
+
.e-multi-select-wrapper .e-multi-searcher input[type=text] {
|
|
122
123
|
color: #111827;
|
|
123
124
|
height: 100%;
|
|
124
125
|
}
|
package/styles/highcontrast.css
CHANGED
|
@@ -177,6 +177,11 @@
|
|
|
177
177
|
width: 30px;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
+
.e-multi-select-wrapper .e-searcher input[type=text],
|
|
181
|
+
.e-multi-select-wrapper .e-multi-searcher input[type=text] {
|
|
182
|
+
color: #fff;
|
|
183
|
+
}
|
|
184
|
+
|
|
180
185
|
/*! Fabric theme definition's */
|
|
181
186
|
/*! component's theme wise override definitions and variables */
|
|
182
187
|
/*! Horizontal Tab */
|
package/styles/tailwind-dark.css
CHANGED
package/styles/tailwind.css
CHANGED
|
@@ -118,7 +118,8 @@
|
|
|
118
118
|
width: 28px;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
.e-multi-select-wrapper .e-searcher input[type=text]
|
|
121
|
+
.e-multi-select-wrapper .e-searcher input[type=text],
|
|
122
|
+
.e-multi-select-wrapper .e-multi-searcher input[type=text] {
|
|
122
123
|
color: #111827;
|
|
123
124
|
height: 100%;
|
|
124
125
|
}
|