@syncfusion/ej2-gantt 23.1.38 → 23.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 +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 +21 -11
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +21 -11
- 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 +15 -15
- package/src/gantt/actions/critical-path.js +9 -5
- package/src/gantt/actions/dialog-edit.js +1 -1
- package/src/gantt/actions/edit.js +9 -3
- package/src/gantt/renderer/tooltip.js +3 -3
- package/styles/bootstrap4.css +32 -2
- package/styles/gantt/bootstrap4.css +32 -2
|
@@ -13163,7 +13163,7 @@ class Tooltip$1 {
|
|
|
13163
13163
|
'.e-gantt-parent-taskbar, .e-gantt-milestone, .e-gantt-unscheduled-taskbar' +
|
|
13164
13164
|
'.e-event-markers, .e-baseline-bar, .e-event-markers,' +
|
|
13165
13165
|
'.e-connector-line-container, .e-indicator-span, .e-notes-info, .e-gantt-manualparent-milestone,' +
|
|
13166
|
-
'.e-taskbar-left-resizer, .e-taskbar-right-resizer, .e-baseline-gantt-milestone, .e-gantt-manualparenttaskbar';
|
|
13166
|
+
'.e-taskbar-left-resizer, .e-taskbar-right-resizer, .e-baseline-gantt-milestone-container, .e-gantt-manualparenttaskbar';
|
|
13167
13167
|
this.toolTipObj.position = 'BottomCenter';
|
|
13168
13168
|
this.toolTipObj.openDelay = 700;
|
|
13169
13169
|
this.toolTipObj.enableRtl = this.parent.enableRtl;
|
|
@@ -13231,7 +13231,7 @@ class Tooltip$1 {
|
|
|
13231
13231
|
parent.tooltipModule.getTooltipContent((data.ganttProperties.isMilestone ? 'milestone' : 'taskbar'), data, parent, args) : "";
|
|
13232
13232
|
}
|
|
13233
13233
|
else if (args.target.classList.contains('e-baseline-bar') ||
|
|
13234
|
-
args.target.classList.contains('e-baseline-gantt-milestone')) {
|
|
13234
|
+
args.target.classList.contains('e-baseline-gantt-milestone-container')) {
|
|
13235
13235
|
let baseLineTemplateNode;
|
|
13236
13236
|
if ((parent.tooltipSettings.baseline)) {
|
|
13237
13237
|
baseLineTemplateNode = parent.tooltipModule.templateCompiler(parent.tooltipSettings.baseline, parent, data, 'TooltipBaselineTemplate');
|
|
@@ -13402,7 +13402,7 @@ class Tooltip$1 {
|
|
|
13402
13402
|
case 'milestone':
|
|
13403
13403
|
{
|
|
13404
13404
|
let milestoneStartDate;
|
|
13405
|
-
if (args.target.className.includes('e-baseline-gantt-milestone') && !isNullOrUndefined(data.baselineStartDate)) {
|
|
13405
|
+
if (args.target.className.includes('e-baseline-gantt-milestone-container') && !isNullOrUndefined(data.baselineStartDate)) {
|
|
13406
13406
|
milestoneStartDate = data.baselineStartDate;
|
|
13407
13407
|
}
|
|
13408
13408
|
else if (!isNullOrUndefined(data.startDate)) {
|
|
@@ -21929,7 +21929,7 @@ class DialogEdit {
|
|
|
21929
21929
|
else {
|
|
21930
21930
|
if (value === "") {
|
|
21931
21931
|
this.parent.setRecordValue('duration', null, ganttProp, true);
|
|
21932
|
-
if (ganttProp.endDate) {
|
|
21932
|
+
if (ganttProp.endDate && ganttProp.startDate) {
|
|
21933
21933
|
this.parent.setRecordValue('endDate', null, ganttProp, true);
|
|
21934
21934
|
}
|
|
21935
21935
|
}
|
|
@@ -24704,6 +24704,13 @@ class Edit$2 {
|
|
|
24704
24704
|
if (ganttData.ganttProperties.baselineEndDate && ganttData.ganttProperties.baselineEndDate.getHours() === 0 && this.parent.defaultEndTime !== 86400) {
|
|
24705
24705
|
ganttObj.dataOperation.setTime(this.parent.defaultEndTime, ganttData.ganttProperties.baselineEndDate);
|
|
24706
24706
|
}
|
|
24707
|
+
if ((ganttData.ganttProperties.baselineStartDate && ganttData.ganttProperties.baselineEndDate &&
|
|
24708
|
+
(ganttData.ganttProperties.baselineStartDate.getTime() > ganttData.ganttProperties.baselineEndDate.getTime())) ||
|
|
24709
|
+
((!isNullOrUndefined(ganttData.ganttProperties.baselineStartDate) && !isNullOrUndefined(ganttData.ganttProperties.startDate) && (ganttData.ganttProperties.baselineStartDate.getTime() === ganttData.ganttProperties.startDate.getTime()))
|
|
24710
|
+
&& (!isNullOrUndefined(ganttData.ganttProperties.baselineEndDate) && !isNullOrUndefined(ganttData.ganttProperties.endDate) && (ganttData.ganttProperties.baselineEndDate.toLocaleDateString() === ganttData.ganttProperties.endDate.toLocaleDateString())) &&
|
|
24711
|
+
ganttData.ganttProperties.isMilestone)) {
|
|
24712
|
+
ganttData.ganttProperties.baselineEndDate = ganttData.ganttProperties.baselineStartDate;
|
|
24713
|
+
}
|
|
24707
24714
|
ganttObj.setRecordValue('baselineEndDate', ganttObj.dataOperation.checkBaselineEndDate(ganttData.ganttProperties.baselineEndDate), ganttData.ganttProperties, true);
|
|
24708
24715
|
ganttObj.setRecordValue('baselineLeft', ganttObj.dataOperation.calculateBaselineLeft(ganttData.ganttProperties), ganttData.ganttProperties, true);
|
|
24709
24716
|
ganttObj.setRecordValue('baselineWidth', ganttObj.dataOperation.calculateBaselineWidth(ganttData.ganttProperties), ganttData.ganttProperties, true);
|
|
@@ -27189,8 +27196,7 @@ class Edit$2 {
|
|
|
27189
27196
|
/* tslint:disable-next-line */
|
|
27190
27197
|
const query = this.parent.query instanceof Query ? this.parent.query : new Query();
|
|
27191
27198
|
const adaptor = data.adaptor;
|
|
27192
|
-
|
|
27193
|
-
if (!(moduleName == "WebApiAdaptor" || moduleName == "ODataAdaptor" || moduleName == "ODataV4Adaptor") || data.dataSource.batchUrl) {
|
|
27199
|
+
if (!(adaptor instanceof WebApiAdaptor || adaptor instanceof ODataAdaptor || adaptor instanceof ODataV4Adaptor) || data.dataSource.batchUrl) {
|
|
27194
27200
|
/* tslint:disable-next-line */
|
|
27195
27201
|
const crud = data.saveChanges(updatedData, this.parent.taskFields.id, null, query);
|
|
27196
27202
|
crud.then((e) => {
|
|
@@ -30741,8 +30747,8 @@ class CriticalPath {
|
|
|
30741
30747
|
if (record.ganttProperties.progress < 100) {
|
|
30742
30748
|
record.isCritical = true;
|
|
30743
30749
|
record.ganttProperties.isCritical = true;
|
|
30744
|
-
if (criticalPathIds.indexOf(
|
|
30745
|
-
criticalPathIds.push(
|
|
30750
|
+
if (criticalPathIds.indexOf(record.ganttProperties.taskId) == -1) {
|
|
30751
|
+
criticalPathIds.push(record.ganttProperties.taskId);
|
|
30746
30752
|
}
|
|
30747
30753
|
}
|
|
30748
30754
|
}
|
|
@@ -30764,9 +30770,11 @@ class CriticalPath {
|
|
|
30764
30770
|
fromRecord.slack = record.slack;
|
|
30765
30771
|
fromRecord.isCritical = record.ganttProperties.isCritical;
|
|
30766
30772
|
fromRecord.ganttProperties.isCritical = record.ganttProperties.isCritical;
|
|
30767
|
-
if (criticalPathIds.indexOf(
|
|
30773
|
+
if (criticalPathIds.indexOf(fromRecord.ganttProperties.taskId) === -1 && fromRecord.ganttProperties.isCritical && fromRecord.ganttProperties.progress < 100) {
|
|
30768
30774
|
this.validatedids.push(parseInt(fromRecord.ganttProperties.taskId));
|
|
30769
|
-
|
|
30775
|
+
if (this.criticalTasks.indexOf(fromRecord) === -1) {
|
|
30776
|
+
this.criticalTasks.push(fromRecord);
|
|
30777
|
+
}
|
|
30770
30778
|
}
|
|
30771
30779
|
if (fromRecord.ganttProperties.predecessorsName) {
|
|
30772
30780
|
this.updateCriticalTasks(fromRecord, criticalPathIds);
|
|
@@ -30851,7 +30859,9 @@ class CriticalPath {
|
|
|
30851
30859
|
if (flatRecords[index].ganttProperties.progress < 100) {
|
|
30852
30860
|
flatRecords[index].isCritical = true;
|
|
30853
30861
|
flatRecords[index].ganttProperties.isCritical = true;
|
|
30854
|
-
this.criticalTasks.
|
|
30862
|
+
if (this.criticalTasks.indexOf(flatRecords[index]) == -1) {
|
|
30863
|
+
this.criticalTasks.push(flatRecords[index]);
|
|
30864
|
+
}
|
|
30855
30865
|
if (criticalPathIds.indexOf(collection[x]['taskid']) === -1) {
|
|
30856
30866
|
criticalPathIds.push(collection[x]['taskid']);
|
|
30857
30867
|
}
|