@syncfusion/ej2-gantt 23.1.43 → 23.2.4
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 +19 -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 +47 -22
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +85 -49
- 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/filter.js +4 -0
- package/src/gantt/actions/toolbar.js +3 -0
- package/src/gantt/base/gantt.js +1 -0
- 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/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
|
@@ -15947,6 +15947,7 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
15947
15947
|
this.treeGridModule.treeGridColumns = [];
|
|
15948
15948
|
this.treeGridModule.validateGanttColumns();
|
|
15949
15949
|
this.treeGrid.columns = this.treeGridModule.treeGridColumns;
|
|
15950
|
+
this.treeGrid.grid.columns = this.treeGridModule.treeGridColumns;
|
|
15950
15951
|
this.chartRowsModule.initiateTemplates();
|
|
15951
15952
|
this.timelineModule.updateChartByNewTimeline();
|
|
15952
15953
|
break;
|
|
@@ -19138,8 +19139,8 @@ var __extends$20 = (undefined && undefined.__extends) || (function () {
|
|
|
19138
19139
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
19139
19140
|
};
|
|
19140
19141
|
})();
|
|
19141
|
-
var __assign$
|
|
19142
|
-
__assign$
|
|
19142
|
+
var __assign$2 = (undefined && undefined.__assign) || function () {
|
|
19143
|
+
__assign$2 = Object.assign || function(t) {
|
|
19143
19144
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19144
19145
|
s = arguments[i];
|
|
19145
19146
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -19147,7 +19148,7 @@ var __assign$1 = (undefined && undefined.__assign) || function () {
|
|
|
19147
19148
|
}
|
|
19148
19149
|
return t;
|
|
19149
19150
|
};
|
|
19150
|
-
return __assign$
|
|
19151
|
+
return __assign$2.apply(this, arguments);
|
|
19151
19152
|
};
|
|
19152
19153
|
/**
|
|
19153
19154
|
* File for handling taskbar editing operation in Gantt.
|
|
@@ -19979,7 +19980,7 @@ var TaskbarEdit = /** @__PURE__ @class */ (function (_super) {
|
|
|
19979
19980
|
var differenceWidth = 0;
|
|
19980
19981
|
if (this.taskBarEditElement.classList.contains('e-segmented-taskbar') &&
|
|
19981
19982
|
!this.taskBarEditElement.classList.contains('e-segment-first')) {
|
|
19982
|
-
var segments = this.taskBarEditRecord.ganttProperties.segments.map(function (e) { return (__assign$
|
|
19983
|
+
var segments = this.taskBarEditRecord.ganttProperties.segments.map(function (e) { return (__assign$2({}, e)); });
|
|
19983
19984
|
var segment = segments[this.segmentIndex];
|
|
19984
19985
|
if (this.mouseDownX > this.mouseMoveX) {
|
|
19985
19986
|
differenceWidth = isNullOrUndefined(this.previousMouseMove) ?
|
|
@@ -20128,7 +20129,7 @@ var TaskbarEdit = /** @__PURE__ @class */ (function (_super) {
|
|
|
20128
20129
|
}
|
|
20129
20130
|
};
|
|
20130
20131
|
TaskbarEdit.prototype.enableSplitTaskLeftResize = function (item) {
|
|
20131
|
-
var segments = this.taskBarEditRecord.ganttProperties.segments.map(function (e) { return (__assign$
|
|
20132
|
+
var segments = this.taskBarEditRecord.ganttProperties.segments.map(function (e) { return (__assign$2({}, e)); });
|
|
20132
20133
|
var segment = segments[this.segmentIndex];
|
|
20133
20134
|
var differenceWidth = 0;
|
|
20134
20135
|
//when decrease the left and increase the width
|
|
@@ -20263,7 +20264,7 @@ var TaskbarEdit = /** @__PURE__ @class */ (function (_super) {
|
|
|
20263
20264
|
var item = this.taskBarEditRecord.ganttProperties;
|
|
20264
20265
|
var differenceWidth = 0;
|
|
20265
20266
|
if (this.taskBarEditElement.classList.contains('e-segmented-taskbar')) {
|
|
20266
|
-
var segments = this.taskBarEditRecord.ganttProperties.segments.map(function (e) { return (__assign$
|
|
20267
|
+
var segments = this.taskBarEditRecord.ganttProperties.segments.map(function (e) { return (__assign$2({}, e)); });
|
|
20267
20268
|
var segment = segments[this.segmentIndex];
|
|
20268
20269
|
if (this.mouseDownX > this.mouseMoveX) {
|
|
20269
20270
|
if (this.mouseMoveX > (item.left + segment.left) && (this.mouseDownX - this.mouseMoveX) > 3) {
|
|
@@ -24771,6 +24772,17 @@ var ConnectorLineEdit = /** @__PURE__ @class */ (function () {
|
|
|
24771
24772
|
return ConnectorLineEdit;
|
|
24772
24773
|
}());
|
|
24773
24774
|
|
|
24775
|
+
var __assign$1 = (undefined && undefined.__assign) || function () {
|
|
24776
|
+
__assign$1 = Object.assign || function(t) {
|
|
24777
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
24778
|
+
s = arguments[i];
|
|
24779
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
24780
|
+
t[p] = s[p];
|
|
24781
|
+
}
|
|
24782
|
+
return t;
|
|
24783
|
+
};
|
|
24784
|
+
return __assign$1.apply(this, arguments);
|
|
24785
|
+
};
|
|
24774
24786
|
/**
|
|
24775
24787
|
* The Edit Module is used to handle editing actions.
|
|
24776
24788
|
*
|
|
@@ -25990,7 +26002,15 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
25990
26002
|
if (args.action && args.action === 'DrawConnectorLine') {
|
|
25991
26003
|
eventArgs.action = 'DrawConnectorLine';
|
|
25992
26004
|
}
|
|
26005
|
+
var ganttObj = this.parent;
|
|
26006
|
+
var currentBaselineStart = __assign$1({}, eventArgs.data.ganttProperties.baselineStartDate);
|
|
26007
|
+
var currentBaselineEnd = __assign$1({}, eventArgs.data.ganttProperties.baselineEndDate);
|
|
25993
26008
|
this.parent.trigger('actionBegin', eventArgs, function (eventArg) {
|
|
26009
|
+
if (currentBaselineStart != eventArg.data["ganttProperties"].baselineStartDate
|
|
26010
|
+
|| currentBaselineEnd != eventArg.data["ganttProperties"].baselineEndDate) {
|
|
26011
|
+
ganttObj.setRecordValue('baselineLeft', ganttObj.dataOperation.calculateBaselineLeft(eventArg.data['ganttProperties']), eventArg.data['ganttProperties'], true);
|
|
26012
|
+
ganttObj.setRecordValue('baselineWidth', ganttObj.dataOperation.calculateBaselineWidth(eventArg.data['ganttProperties']), eventArg.data['ganttProperties'], true);
|
|
26013
|
+
}
|
|
25994
26014
|
if (!isNullOrUndefined(_this.parent.loadingIndicator) && _this.parent.loadingIndicator.indicatorType === "Shimmer") {
|
|
25995
26015
|
_this.parent.showMaskRow();
|
|
25996
26016
|
}
|
|
@@ -29155,6 +29175,10 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
|
|
|
29155
29175
|
if (this.parent.treeGrid.filterSettings.type === 'Menu') {
|
|
29156
29176
|
element.querySelector('.e-valid-input').focus();
|
|
29157
29177
|
}
|
|
29178
|
+
if (this.parent.treeGrid.filterSettings.type === 'Excel') {
|
|
29179
|
+
var inputElement = document.querySelector('.e-searchinput');
|
|
29180
|
+
inputElement.focus();
|
|
29181
|
+
}
|
|
29158
29182
|
};
|
|
29159
29183
|
Filter$$1.prototype.removeEventListener = function () {
|
|
29160
29184
|
if (this.parent.isDestroyed) {
|
|
@@ -29918,6 +29942,9 @@ var Toolbar$3 = /** @__PURE__ @class */ (function () {
|
|
|
29918
29942
|
this.toolbar.isReact = this.parent.isReact;
|
|
29919
29943
|
this.toolbar.on('render-react-toolbar-template', this.addReactToolbarPortals, this);
|
|
29920
29944
|
this.toolbar.appendTo(this.element);
|
|
29945
|
+
if (this.parent.treeGrid.grid && this.parent.isReact) {
|
|
29946
|
+
this.parent.treeGrid.grid.portals = this.parent.portals;
|
|
29947
|
+
}
|
|
29921
29948
|
var cancelItem = this.element.querySelector('#' + this.parent.element.id + '_cancel');
|
|
29922
29949
|
var updateItem = this.element.querySelector('#' + this.parent.element.id + '_update');
|
|
29923
29950
|
if (cancelItem) {
|
|
@@ -36003,10 +36030,10 @@ var ExportHelper = /** @__PURE__ @class */ (function () {
|
|
|
36003
36030
|
this.parent.predecessorModule.createConnectorLinesCollection();
|
|
36004
36031
|
this.parent.updatedConnectorLineCollection.forEach(function (data) {
|
|
36005
36032
|
var predecessor = _this.gantt.predecessor.add();
|
|
36006
|
-
predecessor.parentLeft =
|
|
36007
|
-
predecessor.childLeft =
|
|
36008
|
-
predecessor.parentWidth =
|
|
36009
|
-
predecessor.childWidth =
|
|
36033
|
+
predecessor.parentLeft = data.parentLeft;
|
|
36034
|
+
predecessor.childLeft = data.childLeft;
|
|
36035
|
+
predecessor.parentWidth = data.parentWidth;
|
|
36036
|
+
predecessor.childWidth = data.childWidth;
|
|
36010
36037
|
predecessor.parentIndex = data.parentIndex;
|
|
36011
36038
|
predecessor.childIndex = data.childIndex;
|
|
36012
36039
|
predecessor.rowHeight = data.rowHeight;
|
|
@@ -36091,8 +36118,8 @@ var ExportHelper = /** @__PURE__ @class */ (function () {
|
|
|
36091
36118
|
flatData.forEach(function (data) {
|
|
36092
36119
|
var taskbar = _this.gantt.taskbar.add();
|
|
36093
36120
|
var ganttProp = data.ganttProperties;
|
|
36094
|
-
taskbar.left =
|
|
36095
|
-
taskbar.width =
|
|
36121
|
+
taskbar.left = ganttProp.left;
|
|
36122
|
+
taskbar.width = ganttProp.width;
|
|
36096
36123
|
if (taskbar.left < 0) {
|
|
36097
36124
|
taskbar.width = taskbar.width + taskbar.left;
|
|
36098
36125
|
taskbar.left = 0;
|
|
@@ -36133,8 +36160,8 @@ var ExportHelper = /** @__PURE__ @class */ (function () {
|
|
|
36133
36160
|
taskbar.isMilestone = ganttProp.isMilestone;
|
|
36134
36161
|
taskbar.baselineStartDate = ganttProp.baselineStartDate;
|
|
36135
36162
|
taskbar.baselineEndDate = ganttProp.baselineEndDate;
|
|
36136
|
-
taskbar.baselineLeft =
|
|
36137
|
-
taskbar.baselineWidth =
|
|
36163
|
+
taskbar.baselineLeft = ganttProp.baselineLeft;
|
|
36164
|
+
taskbar.baselineWidth = ganttProp.baselineWidth;
|
|
36138
36165
|
taskbar.milestoneColor = new PdfColor(_this.ganttStyle.taskbar.milestoneColor);
|
|
36139
36166
|
taskbar.isParentTask = data.hasChildRecords;
|
|
36140
36167
|
if (ganttProp.isMilestone) {
|
|
@@ -36150,9 +36177,9 @@ var ExportHelper = /** @__PURE__ @class */ (function () {
|
|
|
36150
36177
|
taskbar.taskLabel = data[_this.parent.labelSettings.taskLabel].toString();
|
|
36151
36178
|
}
|
|
36152
36179
|
var reduceLeft = ganttProp.isMilestone ? Math.floor(_this.parent.chartRowsModule.taskBarHeight / 2) + 33 : 33; // 33 indicates default timeline cell width
|
|
36153
|
-
taskbar.rightTaskLabel.left =
|
|
36180
|
+
taskbar.rightTaskLabel.left = ganttProp.left + ganttProp.width + reduceLeft; // right label left value
|
|
36154
36181
|
taskbar.fontFamily = _this.ganttStyle.fontFamily;
|
|
36155
|
-
taskbar.progressWidth =
|
|
36182
|
+
taskbar.progressWidth = ganttProp.progressWidth;
|
|
36156
36183
|
taskbar.labelColor = new PdfColor(_this.ganttStyle.label.fontColor);
|
|
36157
36184
|
taskbar.progressFontColor = new PdfColor(_this.ganttStyle.taskbar.progressFontColor);
|
|
36158
36185
|
if (taskbar.isParentTask) {
|
|
@@ -36476,8 +36503,8 @@ var ExportValueFormatter = /** @__PURE__ @class */ (function () {
|
|
|
36476
36503
|
return ExportValueFormatter;
|
|
36477
36504
|
}());
|
|
36478
36505
|
|
|
36479
|
-
var __assign$
|
|
36480
|
-
__assign$
|
|
36506
|
+
var __assign$4 = (undefined && undefined.__assign) || function () {
|
|
36507
|
+
__assign$4 = Object.assign || function(t) {
|
|
36481
36508
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
36482
36509
|
s = arguments[i];
|
|
36483
36510
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -36485,7 +36512,7 @@ var __assign$3 = (undefined && undefined.__assign) || function () {
|
|
|
36485
36512
|
}
|
|
36486
36513
|
return t;
|
|
36487
36514
|
};
|
|
36488
|
-
return __assign$
|
|
36515
|
+
return __assign$4.apply(this, arguments);
|
|
36489
36516
|
};
|
|
36490
36517
|
/**
|
|
36491
36518
|
* @hidden
|
|
@@ -36540,7 +36567,8 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
36540
36567
|
//code for while current pdf page is exceed
|
|
36541
36568
|
if (yPoint > pageSize.height) {
|
|
36542
36569
|
page = this.GetNextPage(page);
|
|
36543
|
-
page['contentWidth'] =
|
|
36570
|
+
page['contentWidth'] = (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
36571
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? pointToPixel(detail.endPoint - detail.startPoint) : detail.endPoint - detail.startPoint;
|
|
36544
36572
|
taskGraphics = page.graphics;
|
|
36545
36573
|
startPoint.y = 0;
|
|
36546
36574
|
if (this.parent.pdfExportModule.gantt.enableHeader) {
|
|
@@ -36568,7 +36596,7 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
36568
36596
|
progressFormat.alignment = PdfTextAlignment.Right;
|
|
36569
36597
|
var isLabelString = false;
|
|
36570
36598
|
var updatedWidth;
|
|
36571
|
-
if (/^[a-zA-Z]/.test(this.taskLabel)) {
|
|
36599
|
+
if (!isNullOrUndefined(this.taskLabel) && (/^[a-zA-Z]/.test(this.taskLabel))) {
|
|
36572
36600
|
isLabelString = true;
|
|
36573
36601
|
progressFormat.alignment = PdfTextAlignment.Left;
|
|
36574
36602
|
}
|
|
@@ -36589,7 +36617,7 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
36589
36617
|
//Task start and end date both are in the range of header split up start and end date
|
|
36590
36618
|
if (detail.startDate <= startDate && endDate <= detail.endDate) {
|
|
36591
36619
|
if (!this.isStartPoint) {
|
|
36592
|
-
this.taskStartPoint = __assign$
|
|
36620
|
+
this.taskStartPoint = __assign$4({}, startPoint);
|
|
36593
36621
|
this.isStartPoint = true;
|
|
36594
36622
|
}
|
|
36595
36623
|
if (!this.isScheduledTask && this.unscheduledTaskBy !== 'duration') {
|
|
@@ -36618,7 +36646,7 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
36618
36646
|
//Task start date is in the range of header split up start and end date
|
|
36619
36647
|
else if (detail.startDate <= startDate && detail.endDate >= startDate && (endDate >= detail.endDate)) {
|
|
36620
36648
|
if (!this.isStartPoint) {
|
|
36621
|
-
this.taskStartPoint = __assign$
|
|
36649
|
+
this.taskStartPoint = __assign$4({}, startPoint);
|
|
36622
36650
|
this.isStartPoint = true;
|
|
36623
36651
|
}
|
|
36624
36652
|
var renderWidth = 0;
|
|
@@ -36634,7 +36662,6 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
36634
36662
|
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));
|
|
36635
36663
|
}
|
|
36636
36664
|
taskGraphics.drawRectangle(taskbarPen, taskBrush, startPoint.x + pixelToPoint(this.left - cumulativeWidth) + 0.5, startPoint.y + adjustHeight, pixelToPoint(renderWidth), pixelToPoint(taskbar.height));
|
|
36637
|
-
taskbar.width = taskbar.width - renderWidth;
|
|
36638
36665
|
if (this.isScheduledTask) {
|
|
36639
36666
|
var progressBoundsWidth = 0;
|
|
36640
36667
|
if (this.progressWidth <= renderWidth) {
|
|
@@ -36661,7 +36688,7 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
36661
36688
|
//Task end date is in the range of header split up start and end date
|
|
36662
36689
|
else if (endDate <= detail.endDate && detail.startDate <= endDate && !this.isCompleted) {
|
|
36663
36690
|
if (!this.isStartPoint) {
|
|
36664
|
-
this.taskStartPoint = __assign$
|
|
36691
|
+
this.taskStartPoint = __assign$4({}, startPoint);
|
|
36665
36692
|
this.isStartPoint = true;
|
|
36666
36693
|
}
|
|
36667
36694
|
if (this.parent.renderBaseline && taskbar.baselineStartDate && taskbar.baselineEndDate) {
|
|
@@ -36685,7 +36712,7 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
36685
36712
|
//So the task is takes entire width of page.
|
|
36686
36713
|
else if (startDate < detail.startDate && endDate > detail.endDate) {
|
|
36687
36714
|
if (!this.isStartPoint) {
|
|
36688
|
-
this.taskStartPoint = __assign$
|
|
36715
|
+
this.taskStartPoint = __assign$4({}, startPoint);
|
|
36689
36716
|
this.isStartPoint = true;
|
|
36690
36717
|
}
|
|
36691
36718
|
if (this.parent.renderBaseline && taskbar.baselineStartDate && taskbar.baselineEndDate) {
|
|
@@ -36875,7 +36902,7 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
36875
36902
|
if (detail.startDate <= this.startDate && this.startDate <= detail.endDate) {
|
|
36876
36903
|
var taskGraphics = page.graphics;
|
|
36877
36904
|
var pageIndex = page.section.indexOf(page);
|
|
36878
|
-
this.taskStartPoint = __assign$
|
|
36905
|
+
this.taskStartPoint = __assign$4({}, startPoint);
|
|
36879
36906
|
var milestonePen = new PdfPen(this.milestoneColor);
|
|
36880
36907
|
var adjustHeightforBaselineMilesone = pixelToPoint(((this.parent.rowHeight - this.height) / 3.0));
|
|
36881
36908
|
var adjustHeightforMilesone = pixelToPoint(((this.parent.rowHeight - this.height) / 2.0));
|
|
@@ -36921,7 +36948,8 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
|
|
|
36921
36948
|
* @returns {void}
|
|
36922
36949
|
*/
|
|
36923
36950
|
PdfTimeline.prototype.drawTimeline = function (page, startPoint, detail) {
|
|
36924
|
-
var remainWidth =
|
|
36951
|
+
var remainWidth = (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
36952
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? pointToPixel(Math.floor(detail.totalWidth)) : Math.floor(detail.totalWidth);
|
|
36925
36953
|
var renderWidth = 0;
|
|
36926
36954
|
this.topTierPoint.x = startPoint.x;
|
|
36927
36955
|
this.topTierPoint.y = startPoint.y;
|
|
@@ -36949,7 +36977,8 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
|
|
|
36949
36977
|
//Primary header Event Arguments
|
|
36950
36978
|
/* eslint-disable-next-line */
|
|
36951
36979
|
this.triggerQueryTimelinecell(page, this.topTierPoint.x, this.topTierPoint.y, this.topTierHeight, renderWidth, pHeader.value, true);
|
|
36952
|
-
this.topTierPoint.x +=
|
|
36980
|
+
this.topTierPoint.x += (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
36981
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? renderWidth : pixelToPoint(renderWidth);
|
|
36953
36982
|
remainWidth -= renderWidth;
|
|
36954
36983
|
if (isCompleted) {
|
|
36955
36984
|
this.topTierIndex++;
|
|
@@ -36975,7 +37004,8 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
|
|
|
36975
37004
|
//Secondary header Event Arguments
|
|
36976
37005
|
/* eslint-disable-next-line */
|
|
36977
37006
|
this.triggerQueryTimelinecell(page, this.bottomTierPoint.x, this.bottomTierPoint.y, this.bottomTierHeight, width, secondHeader.value, false);
|
|
36978
|
-
this.bottomTierPoint.x = this.
|
|
37007
|
+
this.bottomTierPoint.x = (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
37008
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? this.bottomTierPoint.x + width : this.bottomTierPoint.x + pixelToPoint(width);
|
|
36979
37009
|
remainWidth -= width;
|
|
36980
37010
|
secondHeader.completedWidth = width;
|
|
36981
37011
|
if (isCompleted) {
|
|
@@ -37006,7 +37036,8 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
|
|
|
37006
37036
|
//Primary header Event Arguments
|
|
37007
37037
|
/* eslint-disable-next-line */
|
|
37008
37038
|
this.triggerQueryTimelinecell(page, this.topTierPoint.x, this.topTierPoint.y, this.topTierHeight, pHeader.completedWidth, pHeader.value, true);
|
|
37009
|
-
this.topTierPoint.x +=
|
|
37039
|
+
this.topTierPoint.x += (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
37040
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? pHeader.completedWidth : pixelToPoint(pHeader.completedWidth);
|
|
37010
37041
|
}
|
|
37011
37042
|
}
|
|
37012
37043
|
}
|
|
@@ -37019,7 +37050,8 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
|
|
|
37019
37050
|
//Secondary header Event Arguments
|
|
37020
37051
|
/* eslint-disable-next-line */
|
|
37021
37052
|
this.triggerQueryTimelinecell(page, this.bottomTierPoint.x, this.bottomTierPoint.y, this.bottomTierHeight, secondHeader.width, secondHeader.value, false);
|
|
37022
|
-
this.bottomTierPoint.x = this.
|
|
37053
|
+
this.bottomTierPoint.x = (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
37054
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? this.bottomTierPoint.x + secondHeader.width : this.bottomTierPoint.x + pixelToPoint(secondHeader.width);
|
|
37023
37055
|
}
|
|
37024
37056
|
}
|
|
37025
37057
|
}
|
|
@@ -37066,7 +37098,8 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
|
|
|
37066
37098
|
var e = eventArgs.timelineCell;
|
|
37067
37099
|
var rectPen = new PdfPen(eventArgs.timelineCell.borderColor);
|
|
37068
37100
|
var rectBrush = new PdfSolidBrush(eventArgs.timelineCell.backgroundColor);
|
|
37069
|
-
graphics.drawRectangle(rectPen, rectBrush, x, y,
|
|
37101
|
+
graphics.drawRectangle(rectPen, rectBrush, x, y, (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
37102
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? width : pixelToPoint(width), pixelToPoint(height));
|
|
37070
37103
|
if (!isTopTier && (this.parent.gridLines == "Both" || this.parent.gridLines == "Vertical")) {
|
|
37071
37104
|
graphics.drawRectangle(rectPen, rectBrush, x, y + pixelToPoint(height), width, page.getClientSize().height);
|
|
37072
37105
|
}
|
|
@@ -37089,8 +37122,8 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
|
|
|
37089
37122
|
return PdfTimeline;
|
|
37090
37123
|
}());
|
|
37091
37124
|
|
|
37092
|
-
var __assign$
|
|
37093
|
-
__assign$
|
|
37125
|
+
var __assign$5 = (undefined && undefined.__assign) || function () {
|
|
37126
|
+
__assign$5 = Object.assign || function(t) {
|
|
37094
37127
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
37095
37128
|
s = arguments[i];
|
|
37096
37129
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -37098,7 +37131,7 @@ var __assign$4 = (undefined && undefined.__assign) || function () {
|
|
|
37098
37131
|
}
|
|
37099
37132
|
return t;
|
|
37100
37133
|
};
|
|
37101
|
-
return __assign$
|
|
37134
|
+
return __assign$5.apply(this, arguments);
|
|
37102
37135
|
};
|
|
37103
37136
|
/**
|
|
37104
37137
|
* @hidden
|
|
@@ -37258,8 +37291,8 @@ var PdfGanttPredecessor = /** @__PURE__ @class */ (function () {
|
|
|
37258
37291
|
/* eslint-disable-next-line */
|
|
37259
37292
|
var point1, point2, point3, point4, point5, point6;
|
|
37260
37293
|
point1 = point2 = point3 = point4 = point5 = point6 = new PointF();
|
|
37261
|
-
var parentTaskpoint = __assign$
|
|
37262
|
-
var childTaskpoint = __assign$
|
|
37294
|
+
var parentTaskpoint = __assign$5({}, parentTask.taskStartPoint);
|
|
37295
|
+
var childTaskpoint = __assign$5({}, childTask.taskStartPoint);
|
|
37263
37296
|
parentY = parentTaskpoint.y + parentPageData.startPoint.y;
|
|
37264
37297
|
childY = childTaskpoint.y + childPageData.startPoint.y;
|
|
37265
37298
|
var ffpoint1 = new PointF(pixelToPoint(this.parentLeft + this.parentWidth), parentY + midPoint);
|
|
@@ -37416,9 +37449,9 @@ var PdfGanttPredecessor = /** @__PURE__ @class */ (function () {
|
|
|
37416
37449
|
PdfGanttPredecessor.prototype.drawLine = function (page, startPoint, endPoint) {
|
|
37417
37450
|
var pdfPages = this.pdfGantt.result.page.section.getPages();
|
|
37418
37451
|
var graphics = page.graphics;
|
|
37419
|
-
var newEndPoint = __assign$
|
|
37420
|
-
var newStartPoint = __assign$
|
|
37421
|
-
var checkStartPoint = __assign$
|
|
37452
|
+
var newEndPoint = __assign$5({}, endPoint);
|
|
37453
|
+
var newStartPoint = __assign$5({}, endPoint);
|
|
37454
|
+
var checkStartPoint = __assign$5({}, endPoint);
|
|
37422
37455
|
var pageData = this.pdfGantt.pdfPageDetail[page.section.indexOf(page) - this.pdfGantt.chartPageIndex];
|
|
37423
37456
|
var pageRect = new RectangleF(pageData.startPoint.x, pageData.startPoint.y, pageData.width, pageData.height);
|
|
37424
37457
|
var startPointCheck = this.contains(pageRect, startPoint.x, startPoint.y);
|
|
@@ -37546,8 +37579,8 @@ var __extends$23 = (undefined && undefined.__extends) || (function () {
|
|
|
37546
37579
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
37547
37580
|
};
|
|
37548
37581
|
})();
|
|
37549
|
-
var __assign$
|
|
37550
|
-
__assign$
|
|
37582
|
+
var __assign$3 = (undefined && undefined.__assign) || function () {
|
|
37583
|
+
__assign$3 = Object.assign || function(t) {
|
|
37551
37584
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
37552
37585
|
s = arguments[i];
|
|
37553
37586
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -37555,7 +37588,7 @@ var __assign$2 = (undefined && undefined.__assign) || function () {
|
|
|
37555
37588
|
}
|
|
37556
37589
|
return t;
|
|
37557
37590
|
};
|
|
37558
|
-
return __assign$
|
|
37591
|
+
return __assign$3.apply(this, arguments);
|
|
37559
37592
|
};
|
|
37560
37593
|
/**
|
|
37561
37594
|
*
|
|
@@ -37628,10 +37661,12 @@ var PdfGantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
37628
37661
|
}
|
|
37629
37662
|
var detail = {};
|
|
37630
37663
|
var range = [];
|
|
37631
|
-
var convertedWidth =
|
|
37664
|
+
var convertedWidth = (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
37665
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? pixelToPoint(this.chartHeader.bottomTierCellWidth) : this.chartHeader.bottomTierCellWidth;
|
|
37632
37666
|
var width = 0;
|
|
37633
37667
|
if (this.chartHeader.bottomTierCellWidth !== 0) {
|
|
37634
|
-
width = (
|
|
37668
|
+
width = (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
37669
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? (Math.floor(pageWidth / convertedWidth) * convertedWidth) : (Math.floor(pageWidth / convertedWidth) * convertedWidth) + 5;
|
|
37635
37670
|
}
|
|
37636
37671
|
range[0] = point;
|
|
37637
37672
|
if (headerWidth - point <= width) {
|
|
@@ -37748,7 +37783,8 @@ var PdfGantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
37748
37783
|
var pageData;
|
|
37749
37784
|
this.headerDetails.forEach(function (detail, index) {
|
|
37750
37785
|
var page = _this.result.page.section.getPages()[_this.startPageIndex];
|
|
37751
|
-
page['contentWidth'] =
|
|
37786
|
+
page['contentWidth'] = (_this.parent.pdfExportModule && _this.parent.pdfExportModule.helper.exportProps && _this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
37787
|
+
_this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? pointToPixel(_this.headerDetails[index].endPoint - _this.headerDetails[index].startPoint) : _this.headerDetails[index].endPoint - _this.headerDetails[index].startPoint;
|
|
37752
37788
|
_this.chartHeader.drawTimeline(page, _this.startPoint, detail);
|
|
37753
37789
|
taskbarPoint.y = taskbarPoint.y + pixelToPoint(_this.parent.timelineModule.isSingleTier ? 45 : 60); // headerHeight
|
|
37754
37790
|
pageStartX = taskbarPoint.x;
|
|
@@ -37777,7 +37813,7 @@ var PdfGantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
37777
37813
|
pageData = {};
|
|
37778
37814
|
pageData.height = cumulativeHeight;
|
|
37779
37815
|
pageData.pageStartX = pageStartX;
|
|
37780
|
-
pageData.startPoint = __assign$
|
|
37816
|
+
pageData.startPoint = __assign$3({}, pagePoint);
|
|
37781
37817
|
pageData.width = pixelToPoint(detail.totalWidth);
|
|
37782
37818
|
_this.pdfPageDetail.push(pageData);
|
|
37783
37819
|
pagePoint.y += pageData.height;
|
|
@@ -37799,7 +37835,7 @@ var PdfGantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
37799
37835
|
pageData = {};
|
|
37800
37836
|
pageData.height = cumulativeHeight;
|
|
37801
37837
|
pageData.pageStartX = pageStartX;
|
|
37802
|
-
pageData.startPoint = __assign$
|
|
37838
|
+
pageData.startPoint = __assign$3({}, pagePoint);
|
|
37803
37839
|
pageData.width = pixelToPoint(detail.totalWidth);
|
|
37804
37840
|
_this.pdfPageDetail.push(pageData);
|
|
37805
37841
|
pagePoint.x += pageData.width;
|