@syncfusion/ej2-gantt 21.1.37 → 21.1.41
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 +27 -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 +84 -39
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +84 -39
- 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 +16 -16
- package/src/gantt/actions/column-menu.d.ts +1 -0
- package/src/gantt/actions/column-menu.js +1 -0
- package/src/gantt/actions/context-menu.js +1 -1
- package/src/gantt/actions/critical-path.d.ts +1 -0
- package/src/gantt/actions/critical-path.js +1 -0
- package/src/gantt/actions/dependency.js +1 -1
- package/src/gantt/actions/dialog-edit.js +1 -0
- package/src/gantt/actions/edit.js +7 -1
- package/src/gantt/actions/keyboard.js +1 -0
- package/src/gantt/base/date-processor.js +2 -2
- package/src/gantt/base/gantt-model.d.ts +6 -0
- package/src/gantt/base/gantt.d.ts +2 -0
- package/src/gantt/base/gantt.js +17 -3
- package/src/gantt/base/task-processor.d.ts +1 -1
- package/src/gantt/base/task-processor.js +39 -21
- package/src/gantt/export/pdf-base/pdf-borders.d.ts +2 -0
- package/src/gantt/export/pdf-base/pdf-borders.js +2 -0
- package/src/gantt/export/pdf-base/pdf-grid-table.d.ts +1 -3
- package/src/gantt/export/pdf-base/pdf-grid-table.js +1 -3
- package/src/gantt/models/column.d.ts +4 -4
- package/src/gantt/renderer/chart-rows.js +3 -5
- package/src/gantt/renderer/nonworking-day.js +3 -1
- package/src/gantt/renderer/timeline.js +4 -1
- package/styles/bootstrap-dark.css +1 -0
- package/styles/bootstrap.css +1 -0
- package/styles/bootstrap4.css +1 -0
- package/styles/bootstrap5-dark.css +1 -0
- package/styles/bootstrap5.css +1 -0
- package/styles/fabric-dark.css +1 -0
- package/styles/fabric.css +1 -0
- package/styles/fluent-dark.css +0 -3
- package/styles/fluent.css +0 -3
- package/styles/gantt/_layout.scss +0 -8
- package/styles/gantt/bootstrap-dark.css +1 -0
- package/styles/gantt/bootstrap.css +1 -0
- package/styles/gantt/bootstrap4.css +1 -0
- package/styles/gantt/bootstrap5-dark.css +1 -0
- package/styles/gantt/bootstrap5.css +1 -0
- package/styles/gantt/fabric-dark.css +1 -0
- package/styles/gantt/fabric.css +1 -0
- package/styles/gantt/fluent-dark.css +0 -3
- package/styles/gantt/fluent.css +0 -3
- package/styles/gantt/highcontrast-light.css +1 -0
- package/styles/gantt/highcontrast.css +1 -0
- package/styles/gantt/material-dark.css +1 -0
- package/styles/gantt/material.css +1 -0
- package/styles/gantt/tailwind-dark.css +1 -0
- package/styles/gantt/tailwind.css +1 -0
- package/styles/highcontrast-light.css +1 -0
- package/styles/highcontrast.css +1 -0
- package/styles/material-dark.css +1 -0
- package/styles/material.css +1 -0
- package/styles/tailwind-dark.css +1 -0
- package/styles/tailwind.css +1 -0
|
@@ -603,10 +603,10 @@ var DateProcessor = /** @__PURE__ @class */ (function () {
|
|
|
603
603
|
*/
|
|
604
604
|
DateProcessor.prototype.getDurationAsSeconds = function (duration, durationUnit) {
|
|
605
605
|
var value = 0;
|
|
606
|
-
if (!durationUnit || durationUnit === 'day') {
|
|
606
|
+
if (!durationUnit || durationUnit.toLocaleLowerCase() === 'day') {
|
|
607
607
|
value = this.parent.secondsPerDay * duration;
|
|
608
608
|
}
|
|
609
|
-
else if (durationUnit === 'hour') {
|
|
609
|
+
else if (durationUnit.toLocaleLowerCase() === 'hour') {
|
|
610
610
|
value = duration * 3600;
|
|
611
611
|
}
|
|
612
612
|
else {
|
|
@@ -1782,6 +1782,7 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
1782
1782
|
*/
|
|
1783
1783
|
TaskProcessor.prototype.prepareDataSource = function (data) {
|
|
1784
1784
|
this.prepareRecordCollection(data, 0);
|
|
1785
|
+
this.parent.initialLoadData = extend({}, {}, this.parent.flatData, true);
|
|
1785
1786
|
// Method to maintain the shared task uniqueIds
|
|
1786
1787
|
if (this.parent.viewType === 'ResourceView') {
|
|
1787
1788
|
this.calculateSharedTaskUniqueIds();
|
|
@@ -2610,7 +2611,7 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
2610
2611
|
return 0;
|
|
2611
2612
|
}
|
|
2612
2613
|
else {
|
|
2613
|
-
return this.getTaskWidth(sDate, eDate);
|
|
2614
|
+
return this.getTaskWidth(sDate, eDate, ganttProp);
|
|
2614
2615
|
}
|
|
2615
2616
|
};
|
|
2616
2617
|
TaskProcessor.prototype.getTaskbarHeight = function () {
|
|
@@ -2724,13 +2725,29 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
2724
2725
|
* @returns {number} .
|
|
2725
2726
|
* @private
|
|
2726
2727
|
*/
|
|
2727
|
-
TaskProcessor.prototype.getTaskWidth = function (startDate, endDate) {
|
|
2728
|
+
TaskProcessor.prototype.getTaskWidth = function (startDate, endDate, ganttData) {
|
|
2728
2729
|
var sDate = new Date(startDate.getTime());
|
|
2729
2730
|
var eDate = new Date(endDate.getTime());
|
|
2730
2731
|
var tierMode = this.parent.timelineModule.bottomTier !== 'None' ? this.parent.timelineModule.bottomTier :
|
|
2731
2732
|
this.parent.timelineModule.topTier;
|
|
2733
|
+
var isValid = false;
|
|
2734
|
+
var modifiedsDate = new Date(startDate.getTime());
|
|
2735
|
+
var hour = 0;
|
|
2736
|
+
if (ganttData && ganttData.durationUnit == 'hour') {
|
|
2737
|
+
modifiedsDate = new Date(modifiedsDate.getTime() + ganttData.duration * 60 * 60 * 1000);
|
|
2738
|
+
}
|
|
2739
|
+
if (ganttData && ganttData.durationUnit == 'minute') {
|
|
2740
|
+
modifiedsDate = new Date(modifiedsDate.getTime() + ganttData.duration * 60 * 60 * 60 * 1000);
|
|
2741
|
+
}
|
|
2742
|
+
for (var i = 0; i < this.parent.dayWorkingTime.length; i++) {
|
|
2743
|
+
hour = hour + this.parent.dayWorkingTime[i].to - this.parent.dayWorkingTime[i].from;
|
|
2744
|
+
}
|
|
2745
|
+
var dateDiff = modifiedsDate.getTime() - sDate.getTime();
|
|
2732
2746
|
if (tierMode === 'Day') {
|
|
2733
|
-
if (
|
|
2747
|
+
if ((Math.floor((dateDiff / (1000 * 60 * 60)) % 24) >= hour || dateDiff === 0)) {
|
|
2748
|
+
isValid = true;
|
|
2749
|
+
}
|
|
2750
|
+
if (this.getSecondsInDecimal(sDate) === this.parent.defaultStartTime && isValid) {
|
|
2734
2751
|
sDate.setHours(0, 0, 0, 0);
|
|
2735
2752
|
}
|
|
2736
2753
|
if (this.getSecondsInDecimal(eDate) === this.parent.defaultEndTime) {
|
|
@@ -2740,11 +2757,19 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
2740
2757
|
eDate.setHours(0, 0, 0, 0);
|
|
2741
2758
|
}
|
|
2742
2759
|
}
|
|
2760
|
+
else {
|
|
2761
|
+
isValid = true;
|
|
2762
|
+
}
|
|
2743
2763
|
if ((sDate).getTime() === (eDate).getTime()) {
|
|
2744
2764
|
return (this.parent.perDayWidth);
|
|
2745
2765
|
}
|
|
2746
2766
|
else {
|
|
2747
|
-
|
|
2767
|
+
if (isValid) {
|
|
2768
|
+
return ((this.getTimeDifference(sDate, eDate) / (1000 * 60 * 60 * 24)) * this.parent.perDayWidth);
|
|
2769
|
+
}
|
|
2770
|
+
else {
|
|
2771
|
+
return ((this.getTimeDifference(sDate, eDate) / (1000 * 60 * 60 * hour)) * this.parent.perDayWidth);
|
|
2772
|
+
}
|
|
2748
2773
|
}
|
|
2749
2774
|
};
|
|
2750
2775
|
/**
|
|
@@ -3026,17 +3051,15 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
3026
3051
|
else {
|
|
3027
3052
|
hierarchicalData = this.parent.dataSource;
|
|
3028
3053
|
}
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
if (
|
|
3032
|
-
|
|
3033
|
-
task[_this.parent.taskFields.endDate] = record[_this.parent.taskFields.endDate];
|
|
3034
|
-
}
|
|
3035
|
-
if (!isNullOrUndefined(_this.parent.taskFields.endDate)) {
|
|
3036
|
-
task[_this.parent.taskFields.endDate] = record[_this.parent.taskFields.endDate];
|
|
3037
|
-
}
|
|
3054
|
+
hierarchicalData.map(function (record) {
|
|
3055
|
+
if (task.ganttProperties.taskId === record[_this.parent.taskFields.id]) {
|
|
3056
|
+
if (!isNullOrUndefined(_this.parent.taskFields.startDate)) {
|
|
3057
|
+
task[_this.parent.taskFields.startDate] = record[_this.parent.taskFields.startDate];
|
|
3038
3058
|
}
|
|
3039
|
-
|
|
3059
|
+
if (!isNullOrUndefined(_this.parent.taskFields.endDate)) {
|
|
3060
|
+
task[_this.parent.taskFields.endDate] = record[_this.parent.taskFields.endDate];
|
|
3061
|
+
}
|
|
3062
|
+
}
|
|
3040
3063
|
});
|
|
3041
3064
|
};
|
|
3042
3065
|
TaskProcessor.prototype.getWorkInHour = function (work, workUnit) {
|
|
@@ -3790,12 +3813,7 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
3790
3813
|
durationInDay = (childGanttRecord.ganttProperties.duration / (this.parent.secondsPerDay / 60));
|
|
3791
3814
|
break;
|
|
3792
3815
|
default:
|
|
3793
|
-
|
|
3794
|
-
durationInDay = (childGanttRecord.ganttProperties.duration / (this.parent.secondsPerDay / 3600));
|
|
3795
|
-
}
|
|
3796
|
-
else {
|
|
3797
|
-
durationInDay = childGanttRecord.ganttProperties.duration;
|
|
3798
|
-
}
|
|
3816
|
+
durationInDay = childGanttRecord.ganttProperties.duration;
|
|
3799
3817
|
}
|
|
3800
3818
|
if (childGanttRecord.hasChildRecords) {
|
|
3801
3819
|
setValue('totalProgress', childGanttRecord.ganttProperties.totalProgress, progressValues);
|
|
@@ -3894,7 +3912,7 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
3894
3912
|
else {
|
|
3895
3913
|
taskCount = childLength - milestoneCount;
|
|
3896
3914
|
}
|
|
3897
|
-
var parentProgress = (taskCount > 0 && totalDuration > 0) ? (totalProgress / totalDuration) : 0;
|
|
3915
|
+
var parentProgress = (taskCount > 0 && totalDuration > 0) ? Number((totalProgress / totalDuration).toFixed(2)) : 0;
|
|
3898
3916
|
var parentProp = parentData.ganttProperties;
|
|
3899
3917
|
var milestone = (taskCount === 0) && minStartDate && maxEndDate &&
|
|
3900
3918
|
minStartDate.getTime() === maxEndDate.getTime() ? true : false;
|
|
@@ -5854,7 +5872,10 @@ var Timeline = /** @__PURE__ @class */ (function () {
|
|
|
5854
5872
|
*/
|
|
5855
5873
|
Timeline.prototype.changeTimelineSettings = function (newTimeline) {
|
|
5856
5874
|
var _this = this;
|
|
5857
|
-
if (
|
|
5875
|
+
if (this.isZoomToFit) {
|
|
5876
|
+
this.isSingleTier = this.customTimelineSettings.topTier.unit === 'None' || this.customTimelineSettings.bottomTier.unit === 'None' ? true : false;
|
|
5877
|
+
}
|
|
5878
|
+
else if (!this.isZoomIn) {
|
|
5858
5879
|
this.isSingleTier = newTimeline.topTier.unit === 'None' || newTimeline.bottomTier.unit === 'None' ? true : false;
|
|
5859
5880
|
}
|
|
5860
5881
|
var skipProperty = this.isSingleTier ?
|
|
@@ -10344,7 +10365,6 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
10344
10365
|
}
|
|
10345
10366
|
if (this.templateData.hasChildRecords) {
|
|
10346
10367
|
var parentTaskbarTemplateNode = this.getParentTaskbarNode(i, taskbarContainerNode);
|
|
10347
|
-
var milestoneTemplateNode = this.getMilestoneNode(i, taskbarContainerNode);
|
|
10348
10368
|
if (!this.templateData.ganttProperties.isAutoSchedule) {
|
|
10349
10369
|
var manualTaskbar = this.getManualTaskbar();
|
|
10350
10370
|
if (!isNullOrUndefined(manualTaskbar[0])) {
|
|
@@ -10359,9 +10379,6 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
10359
10379
|
if (parentTaskbarTemplateNode && parentTaskbarTemplateNode.length > 0) {
|
|
10360
10380
|
taskbarContainerNode[0].appendChild([].slice.call(parentTaskbarTemplateNode)[0]);
|
|
10361
10381
|
}
|
|
10362
|
-
else if (milestoneTemplateNode && milestoneTemplateNode.length > 0) {
|
|
10363
|
-
taskbarContainerNode[0].appendChild([].slice.call(milestoneTemplateNode)[0]);
|
|
10364
|
-
}
|
|
10365
10382
|
if (this.parent.renderBaseline && this.templateData.ganttProperties.baselineStartDate &&
|
|
10366
10383
|
this.templateData.ganttProperties.baselineEndDate) {
|
|
10367
10384
|
taskBaselineTemplateNode = ((this.templateData.ganttProperties.baselineStartDate.getTime() === this.templateData.ganttProperties.baselineEndDate.getTime()) || ((!isNullOrUndefined(this.templateData.ganttProperties.baselineStartDate) && !isNullOrUndefined(this.templateData.ganttProperties.startDate) && (this.templateData.ganttProperties.baselineStartDate.getTime() === this.templateData.ganttProperties.startDate.getTime()))
|
|
@@ -10871,7 +10888,9 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
10871
10888
|
this.parent.ganttChartModule.tempNextElement = null;
|
|
10872
10889
|
}
|
|
10873
10890
|
var row = this.parent.treeGrid.grid.getRowObjectFromUID(this.parent.treeGrid.grid.getDataRows()[index].getAttribute('data-uid'));
|
|
10874
|
-
row
|
|
10891
|
+
if (!isNullOrUndefined(row)) {
|
|
10892
|
+
row.data = data;
|
|
10893
|
+
}
|
|
10875
10894
|
}
|
|
10876
10895
|
};
|
|
10877
10896
|
ChartRows.prototype.getResourceParent = function (record) {
|
|
@@ -11509,7 +11528,7 @@ var Dependency = /** @__PURE__ @class */ (function () {
|
|
|
11509
11528
|
this.dateValidateModule.calculateEndDate(childGanttRecord);
|
|
11510
11529
|
}
|
|
11511
11530
|
this.parent.dataOperation.updateWidthLeft(childGanttRecord);
|
|
11512
|
-
if (!this.parent.isLoad && childGanttRecord.parentItem && this.parent.isInPredecessorValidation &&
|
|
11531
|
+
if (!this.parent.isLoad && !this.parent.isFromOnPropertyChange && childGanttRecord.parentItem && this.parent.isInPredecessorValidation &&
|
|
11513
11532
|
this.parent.getParentTask(childGanttRecord.parentItem).ganttProperties.isAutoSchedule) {
|
|
11514
11533
|
if (this.parentIds.indexOf(childGanttRecord.parentItem.uniqueID) === -1) {
|
|
11515
11534
|
this.parentIds.push(childGanttRecord.parentItem.uniqueID);
|
|
@@ -13632,6 +13651,7 @@ var FocusModule = /** @__PURE__ @class */ (function () {
|
|
|
13632
13651
|
if (ganttObj.selectedRowIndex === ganttObj.flatData.indexOf(currentSelectingRecord)) {
|
|
13633
13652
|
return;
|
|
13634
13653
|
}
|
|
13654
|
+
ganttObj.selectionModule.selectRow(ganttObj.flatData.indexOf(currentSelectingRecord), false, true);
|
|
13635
13655
|
}
|
|
13636
13656
|
break;
|
|
13637
13657
|
case 'downArrow':
|
|
@@ -14065,7 +14085,9 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
14065
14085
|
contextMenu: 'shift+F10' //F Key
|
|
14066
14086
|
};
|
|
14067
14087
|
this.focusModule = new FocusModule(this);
|
|
14068
|
-
this.zoomingLevels
|
|
14088
|
+
if (this.zoomingLevels.length === 0) {
|
|
14089
|
+
this.zoomingLevels = this.getZoomingLevels();
|
|
14090
|
+
}
|
|
14069
14091
|
this.resourceFieldsMapping();
|
|
14070
14092
|
if (isNullOrUndefined(this.resourceFields.unit)) { //set resourceUnit as unit if not mapping
|
|
14071
14093
|
this.resourceFields.unit = 'unit';
|
|
@@ -14571,6 +14593,9 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
14571
14593
|
* @private
|
|
14572
14594
|
*/
|
|
14573
14595
|
Gantt.prototype.renderGantt = function (isChange) {
|
|
14596
|
+
if (isChange) {
|
|
14597
|
+
this.isFromOnPropertyChange = isChange;
|
|
14598
|
+
}
|
|
14574
14599
|
// predecessor calculation
|
|
14575
14600
|
if (this.predecessorModule && this.taskFields.dependency) {
|
|
14576
14601
|
this.predecessorModule['parentIds'] = [];
|
|
@@ -14585,7 +14610,6 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
14585
14610
|
this.timelineModule.validateTimelineProp();
|
|
14586
14611
|
}
|
|
14587
14612
|
if (isChange) {
|
|
14588
|
-
this.isFromOnPropertyChange = isChange;
|
|
14589
14613
|
if (this.enableValidation) {
|
|
14590
14614
|
this.dataOperation.updateGanttData();
|
|
14591
14615
|
}
|
|
@@ -15272,6 +15296,14 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
15272
15296
|
this.chartRowsModule.refreshGanttRows();
|
|
15273
15297
|
this.isLoad = false;
|
|
15274
15298
|
break;
|
|
15299
|
+
case 'dayWorkingTime':
|
|
15300
|
+
this.isLoad = true;
|
|
15301
|
+
this.dataOperation.reUpdateGanttData();
|
|
15302
|
+
this.treeGrid.refreshColumns();
|
|
15303
|
+
this.chartRowsModule.initiateTemplates();
|
|
15304
|
+
this.chartRowsModule.refreshGanttRows();
|
|
15305
|
+
this.isLoad = false;
|
|
15306
|
+
break;
|
|
15275
15307
|
case 'addDialogFields':
|
|
15276
15308
|
case 'editDialogFields':
|
|
15277
15309
|
if (this.editModule && this.editModule.dialogModule) {
|
|
@@ -15351,7 +15383,6 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
15351
15383
|
case 'readOnly':
|
|
15352
15384
|
case 'viewType':
|
|
15353
15385
|
case 'taskFields':
|
|
15354
|
-
case 'dayWorkingTime':
|
|
15355
15386
|
case 'allowTaskbarDragAndDrop':
|
|
15356
15387
|
case 'allowTaskbarOverlap':
|
|
15357
15388
|
case 'allowParentDependency':
|
|
@@ -17338,6 +17369,9 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
17338
17369
|
__decorate([
|
|
17339
17370
|
Complex({}, TimelineSettings)
|
|
17340
17371
|
], Gantt.prototype, "timelineSettings", void 0);
|
|
17372
|
+
__decorate([
|
|
17373
|
+
Property([])
|
|
17374
|
+
], Gantt.prototype, "zoomingLevels", void 0);
|
|
17341
17375
|
__decorate([
|
|
17342
17376
|
Complex({}, SortSettings)
|
|
17343
17377
|
], Gantt.prototype, "sortSettings", void 0);
|
|
@@ -22396,6 +22430,7 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
|
|
|
22396
22430
|
DialogEdit.prototype.renderNotesTab = function (itemName) {
|
|
22397
22431
|
var ganttObj = this.parent;
|
|
22398
22432
|
var inputModel = this.beforeOpenArgs[itemName];
|
|
22433
|
+
inputModel.enableHtmlSanitizer = this.parent.enableHtmlSanitizer;
|
|
22399
22434
|
var ganttProp = this.editedRecord.ganttProperties;
|
|
22400
22435
|
var divElement = this.createDivElement('', ganttObj.element.id + '' + itemName + 'TabContainer');
|
|
22401
22436
|
RichTextEditor.Inject(Toolbar$2, Link, HtmlEditor, QuickToolbar, Count);
|
|
@@ -25015,7 +25050,13 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
25015
25050
|
}
|
|
25016
25051
|
else if (isNullOrUndefined(previousData)) {
|
|
25017
25052
|
calcEndDate = previousStartDate;
|
|
25018
|
-
this.
|
|
25053
|
+
var initialData = this.parent.initialLoadData[childRecords[i].index];
|
|
25054
|
+
if (this.parent.isLoad) {
|
|
25055
|
+
this.calculateDateByRoundOffDuration(initialData, calcEndDate);
|
|
25056
|
+
}
|
|
25057
|
+
else {
|
|
25058
|
+
this.calculateDateByRoundOffDuration(childRecords[i], calcEndDate);
|
|
25059
|
+
}
|
|
25019
25060
|
if (this.parent.isOnEdit && this.validatedChildItems.indexOf(childRecords[i]) === -1) {
|
|
25020
25061
|
this.validatedChildItems.push(childRecords[i]);
|
|
25021
25062
|
}
|
|
@@ -29480,12 +29521,14 @@ var NonWorkingDay = /** @__PURE__ @class */ (function () {
|
|
|
29480
29521
|
};
|
|
29481
29522
|
NonWorkingDay.prototype.updateHolidayLabelHeight = function () {
|
|
29482
29523
|
var height = this.parent.getContentHeight();
|
|
29524
|
+
var gantttable = document.getElementById("ganttContainer");
|
|
29483
29525
|
// eslint-disable-next-line
|
|
29484
29526
|
var toolbarHeight = 0;
|
|
29485
29527
|
if (!isNullOrUndefined(this.parent.toolbarModule) && !isNullOrUndefined(this.parent.toolbarModule.element)) {
|
|
29486
29528
|
toolbarHeight = this.parent.toolbarModule.element.offsetHeight;
|
|
29487
29529
|
}
|
|
29488
|
-
var viewportHeight = this.parent.
|
|
29530
|
+
var viewportHeight = (this.parent.height === 'auto') ? gantttable.offsetHeight - toolbarHeight - this.parent.ganttChartModule.chartTimelineContainer.offsetHeight :
|
|
29531
|
+
this.parent.ganttHeight - toolbarHeight - this.parent.ganttChartModule.chartTimelineContainer.offsetHeight;
|
|
29489
29532
|
var top = (viewportHeight < height) ? viewportHeight / 2 : height / 2;
|
|
29490
29533
|
var labels = this.holidayContainer.querySelectorAll('.' + holidayLabel);
|
|
29491
29534
|
for (var i = 0; i < labels.length; i++) {
|
|
@@ -29701,6 +29744,7 @@ var DayMarkers = /** @__PURE__ @class */ (function () {
|
|
|
29701
29744
|
return DayMarkers;
|
|
29702
29745
|
}());
|
|
29703
29746
|
|
|
29747
|
+
/** @hidden */
|
|
29704
29748
|
var CriticalPath = /** @__PURE__ @class */ (function () {
|
|
29705
29749
|
function CriticalPath(parent) {
|
|
29706
29750
|
this.resourceCollectionIds = [];
|
|
@@ -30787,7 +30831,7 @@ var ContextMenu$2 = /** @__PURE__ @class */ (function () {
|
|
|
30787
30831
|
splitTaskDuration = Math.ceil(currentTaskDifference / this.parent.timelineSettings.timelineUnitSize);
|
|
30788
30832
|
splitTaskDuration -= 1;
|
|
30789
30833
|
}
|
|
30790
|
-
var contextMenuClickDate = this.parent.dataOperation.getEndDate(startDate, splitTaskDuration, this.
|
|
30834
|
+
var contextMenuClickDate = this.parent.dataOperation.getEndDate(startDate, splitTaskDuration, (this.parent.timelineSettings.bottomTier.unit !== "None") ? this.parent.timelineSettings.bottomTier.unit.toLocaleLowerCase() : this.parent.timelineSettings.topTier.unit.toLocaleLowerCase(), this.rowData, false);
|
|
30791
30835
|
return contextMenuClickDate;
|
|
30792
30836
|
};
|
|
30793
30837
|
ContextMenu$$1.prototype.contextMenuBeforeOpen = function (args) {
|
|
@@ -31324,6 +31368,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
31324
31368
|
|
|
31325
31369
|
/**
|
|
31326
31370
|
* Configures columnMenu collection in Gantt.
|
|
31371
|
+
* @hidden
|
|
31327
31372
|
*/
|
|
31328
31373
|
var ColumnMenu$1 = /** @__PURE__ @class */ (function () {
|
|
31329
31374
|
function ColumnMenu$$1(parent) {
|
|
@@ -32600,6 +32645,7 @@ var TemporaryDictionary = /** @__PURE__ @class */ (function () {
|
|
|
32600
32645
|
*/
|
|
32601
32646
|
/**
|
|
32602
32647
|
* `PdfBorders` class used represents the cell border of the PDF grid.
|
|
32648
|
+
* @hidden
|
|
32603
32649
|
*/
|
|
32604
32650
|
var PdfBorders = /** @__PURE__ @class */ (function () {
|
|
32605
32651
|
// Constructor
|
|
@@ -32728,6 +32774,7 @@ var PdfBorders = /** @__PURE__ @class */ (function () {
|
|
|
32728
32774
|
});
|
|
32729
32775
|
return PdfBorders;
|
|
32730
32776
|
}());
|
|
32777
|
+
/** @hidden */
|
|
32731
32778
|
var PdfPaddings = /** @__PURE__ @class */ (function () {
|
|
32732
32779
|
function PdfPaddings(left, right, top, bottom) {
|
|
32733
32780
|
/**
|
|
@@ -33677,9 +33724,7 @@ var PdfTreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
33677
33724
|
return PdfTreeGrid;
|
|
33678
33725
|
}(PdfLayoutElement));
|
|
33679
33726
|
|
|
33680
|
-
|
|
33681
|
-
*
|
|
33682
|
-
*/
|
|
33727
|
+
/**@hidden*/
|
|
33683
33728
|
var PdfTreeGridCell = /** @__PURE__ @class */ (function () {
|
|
33684
33729
|
function PdfTreeGridCell(row) {
|
|
33685
33730
|
this.cellWidth = 0;
|