@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.
@@ -687,12 +687,14 @@ var TaskProcessor = /** @class */ (function (_super) {
687
687
  work = parseFloat(work.toFixed(2));
688
688
  }
689
689
  }
690
- if (ganttData.childRecords.length > 0 && this.parent.isOnEdit) {
691
- var childCompletedWorks = 0;
692
- for (var i = 0; i < ganttData.childRecords.length; i++) {
693
- childCompletedWorks += ganttData.childRecords[i].ganttProperties.work;
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.updateUnitWithWork(ganttData);
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
- return (date.getTime() - timelineStartDate.getTime()) / (1000 * 60 * 60 * 24) * this.parent.perDayWidth;
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.cloneProjectStartDate.getTime() < this.parent.zoomingProjectStartDate.getTime()
118
- ? this.parent.cloneProjectStartDate : this.parent.zoomingProjectStartDate;
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;
@@ -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: 1px solid #8c8c8c;
4
- padding-left: 8px;
5
- padding-right: 2.5px;
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: 1px solid #8c8c8c;
4
- padding-left: 8px;
5
- padding-right: 2.5px;
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 {