@syncfusion/ej2-gantt 24.2.7 → 24.2.8
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 +18 -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 +200 -154
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +200 -154
- 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 +13 -13
- package/src/gantt/actions/dependency.d.ts +23 -0
- package/src/gantt/actions/dependency.js +132 -6
- package/src/gantt/actions/edit.d.ts +1 -22
- package/src/gantt/actions/edit.js +9 -129
- package/src/gantt/actions/selection.js +8 -1
- package/src/gantt/actions/taskbar-edit.js +20 -4
- package/src/gantt/base/gantt.js +14 -1
- package/src/gantt/base/task-processor.js +15 -9
- package/src/gantt/renderer/timeline.js +2 -4
- package/styles/bootstrap.css +3 -3
- package/styles/gantt/bootstrap.css +3 -3
|
@@ -687,12 +687,14 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
687
687
|
work = parseFloat(work.toFixed(2));
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
|
-
if (ganttData.childRecords
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
690
|
+
if (ganttData.childRecords) {
|
|
691
|
+
if (ganttData.childRecords.length > 0 && this.parent.isOnEdit) {
|
|
692
|
+
var childCompletedWorks = 0;
|
|
693
|
+
for (var i = 0; i < ganttData.childRecords.length; i++) {
|
|
694
|
+
childCompletedWorks += ganttData.childRecords[i].ganttProperties.work;
|
|
695
|
+
}
|
|
696
|
+
work += childCompletedWorks;
|
|
694
697
|
}
|
|
695
|
-
work += childCompletedWorks;
|
|
696
698
|
}
|
|
697
699
|
this.parent.setRecordValue('work', work, ganttData.ganttProperties, true);
|
|
698
700
|
if (!isNullOrUndefined(this.parent.taskFields.work)) {
|
|
@@ -908,7 +910,7 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
908
910
|
this.parent.setRecordValue('work', work, ganttProperties, true);
|
|
909
911
|
switch (tType) {
|
|
910
912
|
case 'FixedDuration':
|
|
911
|
-
this.
|
|
913
|
+
this.updateWorkWithDuration(ganttData);
|
|
912
914
|
break;
|
|
913
915
|
case 'FixedWork':
|
|
914
916
|
this.updateUnitWithWork(ganttData);
|
|
@@ -1323,14 +1325,18 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
1323
1325
|
this.parent.ganttChartModule.scrollObject['isSetScrollLeft'])) && !isFromTimelineVirtulization) {
|
|
1324
1326
|
isValid = false;
|
|
1325
1327
|
}
|
|
1326
|
-
if (this.parent.enableTimelineVirtualization && isValid && !this.parent.timelineModule['performedTimeSpanAction']) {
|
|
1328
|
+
if (!this.parent.editModule && this.parent.enableTimelineVirtualization && isValid && !this.parent.timelineModule['performedTimeSpanAction']) {
|
|
1327
1329
|
leftValueForStartDate = (this.parent.enableTimelineVirtualization && this.parent.ganttChartModule.scrollObject.element.scrollLeft != 0)
|
|
1328
1330
|
? this.parent.ganttChartModule.scrollObject.getTimelineLeft() : null;
|
|
1329
1331
|
}
|
|
1330
|
-
var timelineStartDate = (this.parent.enableTimelineVirtualization && !isNullOrUndefined(leftValueForStartDate))
|
|
1332
|
+
var timelineStartDate = (!this.parent.editModule && this.parent.enableTimelineVirtualization && !isNullOrUndefined(leftValueForStartDate))
|
|
1331
1333
|
? new Date((this.parent.timelineModule['dateByLeftValue'](leftValueForStartDate)).toString()) : new Date(this.parent.timelineModule.timelineStartDate);
|
|
1332
1334
|
if (timelineStartDate) {
|
|
1333
|
-
|
|
1335
|
+
var leftValue = (date.getTime() - timelineStartDate.getTime()) / (1000 * 60 * 60 * 24) * this.parent.perDayWidth;
|
|
1336
|
+
if (this.parent.isInDst(timelineStartDate) && !this.parent.isInDst(startDate) && (this.parent.timelineModule.topTier == 'Hour' || this.parent.timelineModule.bottomTier == 'Hour')) {
|
|
1337
|
+
leftValue = leftValue - this.parent.timelineSettings.timelineUnitSize;
|
|
1338
|
+
}
|
|
1339
|
+
return leftValue;
|
|
1334
1340
|
}
|
|
1335
1341
|
else {
|
|
1336
1342
|
return 0;
|
|
@@ -114,10 +114,8 @@ var Timeline = /** @class */ (function () {
|
|
|
114
114
|
this.parent.dateValidationModule.calculateProjectDates();
|
|
115
115
|
}
|
|
116
116
|
if (!isNullOrUndefined(this.parent.zoomingProjectStartDate)) {
|
|
117
|
-
this.parent.cloneProjectStartDate = this.parent.
|
|
118
|
-
|
|
119
|
-
this.parent.cloneProjectEndDate = this.parent.cloneProjectEndDate.getTime() > this.parent.zoomingProjectEndDate.getTime()
|
|
120
|
-
? this.parent.cloneProjectEndDate : this.parent.zoomingProjectEndDate;
|
|
117
|
+
this.parent.cloneProjectStartDate = this.parent.zoomingProjectStartDate;
|
|
118
|
+
this.parent.cloneProjectEndDate = this.parent.zoomingProjectEndDate;
|
|
121
119
|
}
|
|
122
120
|
this.parent.zoomingProjectStartDate = null;
|
|
123
121
|
this.parent.zoomingProjectEndDate = null;
|
package/styles/bootstrap.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.e-richtexteditor .e-rte-toolbar.e-extended-toolbar .e-toolbar-items .e-toolbar-item .e-rte-dropdown-btn.e-active.e-tbar-btn {
|
|
2
2
|
background: #e6e6e6;
|
|
3
|
-
border:
|
|
4
|
-
padding-left:
|
|
5
|
-
padding-right:
|
|
3
|
+
border: 0;
|
|
4
|
+
padding-left: 9px;
|
|
5
|
+
padding-right: 3.5px;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.e-bigger .e-richtexteditor .e-rte-toolbar.e-extended-toolbar .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn.e-control.e-dropdown-btn.e-rte-dropdown-btn.e-active {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.e-richtexteditor .e-rte-toolbar.e-extended-toolbar .e-toolbar-items .e-toolbar-item .e-rte-dropdown-btn.e-active.e-tbar-btn {
|
|
2
2
|
background: #e6e6e6;
|
|
3
|
-
border:
|
|
4
|
-
padding-left:
|
|
5
|
-
padding-right:
|
|
3
|
+
border: 0;
|
|
4
|
+
padding-left: 9px;
|
|
5
|
+
padding-right: 3.5px;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.e-bigger .e-richtexteditor .e-rte-toolbar.e-extended-toolbar .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn.e-control.e-dropdown-btn.e-rte-dropdown-btn.e-active {
|