@syncfusion/ej2-gantt 20.4.48 → 20.4.50

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.
@@ -3768,8 +3768,10 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
3768
3768
  progressValues = this.getParentProgress(childData);
3769
3769
  totalProgress += getValue('totalProgress', progressValues);
3770
3770
  if (childData[this.parent.taskFields.duration] < 1) {
3771
- totalDuration += getValue('totalDuration', progressValues);
3772
- totalDuration = Number(totalDuration.toFixed(4));
3771
+ if (typeof (getValue('totalDuration', progressValues)) != 'object') {
3772
+ totalDuration += getValue('totalDuration', progressValues);
3773
+ totalDuration = Number(totalDuration.toFixed(4));
3774
+ }
3773
3775
  }
3774
3776
  else {
3775
3777
  totalDuration += getValue('totalDuration', progressValues);
@@ -5208,7 +5210,7 @@ var GanttChart = /** @__PURE__ @class */ (function () {
5208
5210
  var isTab = (e.action === 'tab') ? true : false;
5209
5211
  var nextElement = this.getNextElement($target, isTab, isInEditedState);
5210
5212
  this.tempNextElement = nextElement;
5211
- if (!isNullOrUndefined(nextElement['cellIndex'])) {
5213
+ if (!isNullOrUndefined(nextElement) && !isNullOrUndefined(nextElement['cellIndex'])) {
5212
5214
  if (this.parent.allowRowDragAndDrop) {
5213
5215
  this.childrenIndex = nextElement['cellIndex'];
5214
5216
  this.nextElementIndex = nextElement['cellIndex'] - 1;
@@ -20898,6 +20900,8 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
20898
20900
  if (taskSettings.duration === columnName) {
20899
20901
  if (!isNullOrUndefined(value) && value !== '') {
20900
20902
  ganttObj.dataOperation.updateDurationValue(value, ganttProp);
20903
+ this.parent.setRecordValue(taskSettings.duration, value, currentData);
20904
+ this.parent.setRecordValue('taskData.' + taskSettings.duration, ganttProp.duration, currentData);
20901
20905
  }
20902
20906
  else {
20903
20907
  if (ganttObj.allowUnscheduledTasks) {
@@ -23923,7 +23927,7 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
23923
23927
  this.parent.predecessorModule.isValidatedParentTaskID = '';
23924
23928
  }
23925
23929
  if (ganttRecord.hasChildRecords && this.parent.previousRecords[ganttRecord.uniqueID].ganttProperties.startDate &&
23926
- (args.action === "DrawConnectorLine" || args.action === "CellEditing" || args.action === "DialogEditing")) {
23930
+ (args.action === "DrawConnectorLine")) {
23927
23931
  this.updateChildItems(ganttRecord);
23928
23932
  }
23929
23933
  this.updateParentItemOnEditing();
@@ -31934,6 +31938,14 @@ var PdfPaddings = /** @__PURE__ @class */ (function () {
31934
31938
  /**
31935
31939
  * PdfGridStyleBase.ts class for EJ2-PDF
31936
31940
  */
31941
+ /**
31942
+ * Base class for the `treegrid style`,
31943
+ */
31944
+ var PdfTreeGridStyleBase = /** @__PURE__ @class */ (function () {
31945
+ function PdfTreeGridStyleBase() {
31946
+ }
31947
+ return PdfTreeGridStyleBase;
31948
+ }());
31937
31949
  /**
31938
31950
  * `PdfTreeGridStyle` class provides customization of the appearance for the 'PdfGrid'.
31939
31951
  *
@@ -35782,5 +35794,5 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
35782
35794
  * Gantt index file
35783
35795
  */
35784
35796
 
35785
- export { Gantt, PdfHorizontalOverflowType, parentsUntil$1 as parentsUntil, isScheduledTask, isCountRequired, getSwapKey, isRemoteData, getTaskData, updateDates, formatString, getIndex, pixelToPoint, pointToPixel, getUid$1 as getUid, load, rowDataBound, queryCellInfo, toolbarClick, keyPressed, Edit$2 as Edit, Reorder$1 as Reorder, Resize$1 as Resize, Filter$1 as Filter, Sort$1 as Sort, Dependency, Selection$1 as Selection, Toolbar$3 as Toolbar, DayMarkers, CriticalPath, ContextMenu$2 as ContextMenu, ExcelExport$1 as ExcelExport, ColumnMenu$1 as ColumnMenu, RowDD$1 as RowDD, PdfExport, VirtualScroll$1 as VirtualScroll, Column, DayWorkingTime, AddDialogFieldSettings, EditDialogFieldSettings, EditSettings, EventMarker, FilterSettings, SearchSettings, Holiday, LabelSettings, SelectionSettings, SplitterSettings, TaskFields, TimelineTierSettings, TimelineSettings, TooltipSettings, SortDescriptor, SortSettings, ResourceFields, LoadingIndicator };
35797
+ export { Gantt, PdfHorizontalOverflowType, parentsUntil$1 as parentsUntil, isScheduledTask, isCountRequired, getSwapKey, isRemoteData, getTaskData, updateDates, formatString, getIndex, pixelToPoint, pointToPixel, getUid$1 as getUid, load, rowDataBound, queryCellInfo, toolbarClick, keyPressed, Edit$2 as Edit, Reorder$1 as Reorder, Resize$1 as Resize, Filter$1 as Filter, Sort$1 as Sort, Dependency, Selection$1 as Selection, Toolbar$3 as Toolbar, DayMarkers, CriticalPath, ContextMenu$2 as ContextMenu, ExcelExport$1 as ExcelExport, ColumnMenu$1 as ColumnMenu, RowDD$1 as RowDD, PdfExport, VirtualScroll$1 as VirtualScroll, Column, DayWorkingTime, AddDialogFieldSettings, EditDialogFieldSettings, EditSettings, EventMarker, FilterSettings, SearchSettings, Holiday, LabelSettings, SelectionSettings, SplitterSettings, TaskFields, TimelineTierSettings, TimelineSettings, TooltipSettings, SortDescriptor, SortSettings, ResourceFields, LoadingIndicator, TemporaryDictionary, PdfBorders, PdfPaddings, PdfTreeGridStyleBase, PdfTreeGridStyle, PdfGanttTheme, PdfTreeGridLayouter, PdfTreeGridLayoutResult, PdfTreeGridLayoutFormat, PdfTreeGridCell, PdfTreeGridCellCollection, PdfTreeGridRow, PdfTreeGridRowCollection, PdfTreeGridHeaderCollection, PdfTreeGridColumn, PdfTreeGridColumnCollection };
35786
35798
  //# sourceMappingURL=ej2-gantt.es5.js.map