@syncfusion/ej2-gantt 21.2.6 → 21.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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 21.2.6
3
+ * version : 21.2.8
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-gantt@*",
3
- "_id": "@syncfusion/ej2-gantt@21.2.5",
3
+ "_id": "@syncfusion/ej2-gantt@21.2.6",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-Yj+8L8AXoLeax0gB6GzVFM6gKA9Q+GiMDUU5zgJXXjqk6+q9Hv8UIkoW88CMaUFPVBvraFYCAYIpgMI+HVpExA==",
5
+ "_integrity": "sha512-wF1sebaepKZwGNlFUokb3a8YN9WyfRpNwLaUZfF6xWF3knVdhvqQ3+qLD5YVZIgKV/Et/UnDkO8PgWHtLi4iJA==",
6
6
  "_location": "/@syncfusion/ej2-gantt",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-gantt",
24
24
  "/@syncfusion/ej2-vue-gantt"
25
25
  ],
26
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-21.2.5.tgz",
27
- "_shasum": "f89352a1c3fbb06b4753edafbb713f74a01ac912",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-21.2.6.tgz",
27
+ "_shasum": "9008dbe259b098a67142d39ce3d3d392beca123a",
28
28
  "_spec": "@syncfusion/ej2-gantt@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
30
30
  "author": {
@@ -37,18 +37,18 @@
37
37
  "dependencies": {
38
38
  "@syncfusion/ej2-base": "~21.2.3",
39
39
  "@syncfusion/ej2-buttons": "~21.2.6",
40
- "@syncfusion/ej2-calendars": "~21.2.6",
41
- "@syncfusion/ej2-data": "~21.2.6",
42
- "@syncfusion/ej2-dropdowns": "~21.2.6",
43
- "@syncfusion/ej2-grids": "~21.2.6",
44
- "@syncfusion/ej2-inputs": "~21.2.6",
40
+ "@syncfusion/ej2-calendars": "~21.2.8",
41
+ "@syncfusion/ej2-data": "~21.2.8",
42
+ "@syncfusion/ej2-dropdowns": "~21.2.8",
43
+ "@syncfusion/ej2-grids": "~21.2.8",
44
+ "@syncfusion/ej2-inputs": "~21.2.8",
45
45
  "@syncfusion/ej2-layouts": "~21.2.6",
46
46
  "@syncfusion/ej2-lists": "~21.2.6",
47
- "@syncfusion/ej2-navigations": "~21.2.6",
47
+ "@syncfusion/ej2-navigations": "~21.2.8",
48
48
  "@syncfusion/ej2-notifications": "~21.2.3",
49
49
  "@syncfusion/ej2-popups": "~21.2.4",
50
- "@syncfusion/ej2-richtexteditor": "~21.2.6",
51
- "@syncfusion/ej2-treegrid": "~21.2.6"
50
+ "@syncfusion/ej2-richtexteditor": "~21.2.8",
51
+ "@syncfusion/ej2-treegrid": "~21.2.8"
52
52
  },
53
53
  "deprecated": false,
54
54
  "description": "Essential JS 2 Gantt Component",
@@ -73,6 +73,6 @@
73
73
  "url": "git+https://github.com/syncfusion/ej2-gantt.git"
74
74
  },
75
75
  "typings": "index.d.ts",
76
- "version": "21.2.6",
76
+ "version": "21.2.8",
77
77
  "sideEffects": false
78
78
  }
@@ -291,7 +291,7 @@ var ContextMenu = /** @class */ (function () {
291
291
  this.parent.ganttChartModule.targetElement;
292
292
  // Closed edited cell before opening context menu
293
293
  // eslint-disable-next-line
294
- if (!isNullOrUndefined(this.parent.editModule) && this.parent.editModule.cellEditModule && this.parent.editModule.cellEditModule.isCellEdit && target.parentElement.classList.contains('e-row')) {
294
+ if (!isNullOrUndefined(this.parent.editModule) && this.parent.editModule.cellEditModule && this.parent.editModule.cellEditModule.isCellEdit && target.parentElement.classList.contains('e-row') || target.parentElement.classList.contains('e-treecolumn-container')) {
295
295
  this.parent.treeGrid.closeEdit();
296
296
  }
297
297
  if (!isNullOrUndefined(args.element) && args.element.id === this.parent.element.id + '_contextmenu') {
@@ -2883,6 +2883,7 @@ var Edit = /** @class */ (function () {
2883
2883
  var args = {};
2884
2884
  args = this.constructTaskAddedEventArgs(cAddedRecord_1, this.parent.editedRecords, 'beforeAdd');
2885
2885
  this.parent.trigger('actionBegin', args, function (args) {
2886
+ _this.parent.previousRecords = {};
2886
2887
  if (!isNullOrUndefined(_this.parent.loadingIndicator) && _this.parent.loadingIndicator.indicatorType === "Shimmer") {
2887
2888
  _this.parent.showMaskRow();
2888
2889
  }
@@ -115,7 +115,7 @@ var PdfExport = /** @class */ (function () {
115
115
  var format = new PdfTreeGridLayoutFormat();
116
116
  format.break = PdfLayoutBreakType.FitElement;
117
117
  var layouter = _this.gantt.drawGrid(pdfPage, 0, 0, format);
118
- _this.gantt.drawChart(layouter);
118
+ _this.gantt.drawChart(layouter, pdfExportProperties);
119
119
  if (!isMultipleExport) {
120
120
  if (!_this.isBlob) {
121
121
  // save the PDF
@@ -1651,7 +1651,8 @@ var TaskbarEdit = /** @class */ (function (_super) {
1651
1651
  this.dependencyCancel = true;
1652
1652
  }
1653
1653
  if ((this.taskBarEditAction === 'ConnectorPointLeftDrag' ||
1654
- this.taskBarEditAction === 'ConnectorPointRightDrag') && this.drawPredecessor) {
1654
+ this.taskBarEditAction === 'ConnectorPointRightDrag') && this.drawPredecessor && (!this.connectorSecondRecord.hasChildRecords ||
1655
+ this.connectorSecondRecord.hasChildRecords && this.parent.allowParentDependency)) {
1655
1656
  this.parent.connectorLineEditModule.updatePredecessor(this.connectorSecondRecord, this.finalPredecessor);
1656
1657
  if (this.parent.UpdateOffsetOnTaskbarEdit) {
1657
1658
  this.parent.connectorLineEditModule['calculateOffset'](this.connectorSecondRecord);
@@ -1984,7 +1985,9 @@ var TaskbarEdit = /** @class */ (function (_super) {
1984
1985
  }
1985
1986
  this.showHideTaskBarEditingElements(element, this.highlightedSecondElement, true);
1986
1987
  }
1987
- if (isNullOrUndefined(this.connectorSecondAction) && !isNullOrUndefined(this.connectorSecondElement)) {
1988
+ if (isNullOrUndefined(this.connectorSecondAction) && !isNullOrUndefined(this.connectorSecondElement) &&
1989
+ (!this.connectorSecondRecord.hasChildRecords || this.connectorSecondRecord.hasChildRecords &&
1990
+ this.parent.allowParentDependency)) {
1988
1991
  this.editTooltip.showHideTaskbarEditTooltip(false, this.segmentIndex);
1989
1992
  removeClass([this.connectorSecondElement.querySelector('.' + cls.connectorPointLeft)], [cls.connectorPointAllowBlock]);
1990
1993
  removeClass([this.connectorSecondElement.querySelector('.' + cls.connectorPointRight)], [cls.connectorPointAllowBlock]);
@@ -185,7 +185,7 @@ var DateProcessor = /** @class */ (function () {
185
185
  else if (hour > this.parent.defaultStartTime && hour < this.parent.defaultEndTime) {
186
186
  for (var i = 0; i < this.parent.workingTimeRanges.length; i++) {
187
187
  var value = this.parent.workingTimeRanges[i];
188
- if (hour >= value.to && (this.parent.workingTimeRanges[i + 1] &&
188
+ if (hour > value.to && (this.parent.workingTimeRanges[i + 1] &&
189
189
  hour < this.parent.workingTimeRanges[i + 1].from)) {
190
190
  this.setTime(this.parent.workingTimeRanges[i + 1].from, cloneDate);
191
191
  break;
@@ -274,7 +274,7 @@ var GanttChart = /** @class */ (function () {
274
274
  GanttChart.prototype.setVirtualHeight = function () {
275
275
  if (this.parent.virtualScrollModule && this.parent.enableVirtualization) {
276
276
  var wrapper = getValue('virtualTrack', this.parent.ganttChartModule.virtualRender);
277
- wrapper.style.height = this.parent.treeGrid.element.getElementsByClassName('e-virtualtable')[0].style.height;
277
+ wrapper.style.height = this.parent.treeGrid.element.getElementsByClassName('e-virtualtrack')[0].style.height;
278
278
  var wrapper1 = getValue('wrapper', this.parent.ganttChartModule.virtualRender);
279
279
  var treegridVirtualHeight = this.parent.treeGrid.element.getElementsByClassName('e-virtualtable')[0].style.transform;
280
280
  wrapper1.style.transform = treegridVirtualHeight;
@@ -354,7 +354,7 @@ var TaskProcessor = /** @class */ (function (_super) {
354
354
  (this.parent.taskMode === 'Manual') ? false :
355
355
  data[taskSettings.manual] === true ? false : true;
356
356
  this.parent.setRecordValue('ganttProperties', ganttProperties, ganttData);
357
- if (!isNullOrUndefined(data[taskSettings.id])) {
357
+ if (!isNullOrUndefined(data[taskSettings.id]) && (!((this.parent.viewType === "ResourceView" && level == 0))) || data[taskSettings.name] === "Unassigned Task") {
358
358
  id = data[taskSettings.id];
359
359
  name = data[taskSettings.name];
360
360
  this.addTaskData(ganttData, data, isLoad);
@@ -773,7 +773,7 @@ var TaskProcessor = /** @class */ (function (_super) {
773
773
  startDate = this.getDateFromFormat(data[taskSettings.startDate], true);
774
774
  endDate = this.getDateFromFormat(data[taskSettings.endDate], true);
775
775
  }
776
- var segments = taskSettings.segments ? (data[taskSettings.segments] ||
776
+ var segments = taskSettings.segments && (!isNullOrUndefined(data[taskSettings.segments]) || !isNullOrUndefined(ganttData.taskData)) ? (data[taskSettings.segments] ||
777
777
  ganttData.taskData[taskSettings.segments]) : null;
778
778
  var isMileStone = taskSettings.milestone ? data[taskSettings.milestone] ? true : false : false;
779
779
  var durationMapping = data[taskSettings.durationUnit] ? data[taskSettings.durationUnit] : '';
@@ -1600,6 +1600,9 @@ var TaskProcessor = /** @class */ (function (_super) {
1600
1600
  return resourceIdCollection;
1601
1601
  }
1602
1602
  resourceIdCollection = data[this.parent.taskFields.resourceInfo];
1603
+ if (resourceIdCollection != "" && typeof resourceIdCollection == "string") {
1604
+ resourceIdCollection = resourceIdCollection.split(',');
1605
+ }
1603
1606
  var resourceData;
1604
1607
  if (!isNullOrUndefined(this.parent.editModule) && !isNullOrUndefined(this.parent.editModule.dialogModule)
1605
1608
  && this.parent.editModule.dialogModule.isAddNewResource) {
@@ -1609,6 +1612,7 @@ var TaskProcessor = /** @class */ (function (_super) {
1609
1612
  resourceData = this.parent.resources;
1610
1613
  }
1611
1614
  var resourceIDMapping = this.parent.resourceFields.id;
1615
+ var resourceNameMapping = this.parent.resourceFields.name;
1612
1616
  var resourceUnitMapping = this.parent.resourceFields.unit;
1613
1617
  var resourceGroup = this.parent.resourceFields.group;
1614
1618
  var resources = [];
@@ -1619,7 +1623,7 @@ var TaskProcessor = /** @class */ (function (_super) {
1619
1623
  return true;
1620
1624
  }
1621
1625
  else {
1622
- return (resourceIdCollection[count] === resourceInfo[resourceIDMapping]);
1626
+ return (resourceIdCollection[count] === resourceInfo[resourceIDMapping]) || (resourceIdCollection[count] === resourceInfo[resourceNameMapping]);
1623
1627
  }
1624
1628
  });
1625
1629
  var ganttDataResource = extend({}, resource[0]);
@@ -1,5 +1,5 @@
1
1
  import { PdfColor } from '@syncfusion/ej2-pdf-export';
2
- import { IGanttStyle } from './../base/interface';
2
+ import { IGanttStyle, PdfExportProperties } from './../base/interface';
3
3
  import { Gantt } from './../base/gantt';
4
4
  import { PdfGantt } from './pdf-gantt';
5
5
  /**
@@ -21,13 +21,14 @@ export declare class PdfGanttPredecessor {
21
21
  pdfGantt?: PdfGantt;
22
22
  parent?: Gantt;
23
23
  ganttStyle: IGanttStyle;
24
+ pdfExportProperties: PdfExportProperties;
24
25
  /**
25
26
  * @returns {PdfGanttPredecessor} .
26
27
  * @hidden
27
28
  */
28
29
  add(): PdfGanttPredecessor;
29
30
  constructor(parent?: Gantt, pdfGantt?: PdfGantt);
30
- findindex(num: number): number;
31
+ findindex(num: number, pdfExportProperties: PdfExportProperties): number;
31
32
  /**
32
33
  * Calculate the predecesor line point and draw the predecessor
33
34
  *
@@ -35,7 +36,7 @@ export declare class PdfGanttPredecessor {
35
36
  * @returns {void}
36
37
  * @private
37
38
  */
38
- drawPredecessor(pdfGantt: PdfGantt): void;
39
+ drawPredecessor(pdfGantt: PdfGantt, pdfExportProperties: PdfExportProperties): void;
39
40
  /**
40
41
  * Method to draw the predecessor lines with calculated connector points
41
42
  *
@@ -27,11 +27,22 @@ var PdfGanttPredecessor = /** @class */ (function () {
27
27
  PdfGanttPredecessor.prototype.add = function () {
28
28
  return new PdfGanttPredecessor(this.parent);
29
29
  };
30
- PdfGanttPredecessor.prototype.findindex = function (num) {
30
+ PdfGanttPredecessor.prototype.findindex = function (num, pdfExportProperties) {
31
31
  var dataindex;
32
- this.parent.currentViewData.map(function (data, index) { if (data.index == num) {
33
- dataindex = index;
34
- } });
32
+ if (pdfExportProperties.exportType === 'CurrentViewData') {
33
+ this.parent.currentViewData.map(function (data, index) {
34
+ if (data.index == num) {
35
+ dataindex = index;
36
+ }
37
+ });
38
+ }
39
+ else {
40
+ this.parent.flatData.map(function (data, index) {
41
+ if (data.index == num) {
42
+ dataindex = index;
43
+ }
44
+ });
45
+ }
35
46
  return dataindex;
36
47
  };
37
48
  /**
@@ -41,11 +52,11 @@ var PdfGanttPredecessor = /** @class */ (function () {
41
52
  * @returns {void}
42
53
  * @private
43
54
  */
44
- PdfGanttPredecessor.prototype.drawPredecessor = function (pdfGantt) {
55
+ PdfGanttPredecessor.prototype.drawPredecessor = function (pdfGantt, pdfExportProperties) {
45
56
  this.pdfGantt = pdfGantt;
46
57
  var pages = pdfGantt.result.page.section.getPages();
47
- var parentTask = pdfGantt.taskbarCollection[this.findindex(this.parentIndex)];
48
- var childTask = pdfGantt.taskbarCollection[this.findindex(this.childIndex)];
58
+ var parentTask = pdfGantt.taskbarCollection[this.findindex(this.parentIndex, pdfExportProperties)];
59
+ var childTask = pdfGantt.taskbarCollection[this.findindex(this.childIndex, pdfExportProperties)];
49
60
  var startPage = new PdfPage();
50
61
  var endPage = new PdfPage();
51
62
  var predecessorType = '';
@@ -55,7 +66,7 @@ var PdfGanttPredecessor = /** @class */ (function () {
55
66
  var childY = 0;
56
67
  switch (this.type) {
57
68
  case 'FS':
58
- if (childTask.startPage > -1 && parentTask.endPage > -1) {
69
+ if ((!isNullOrUndefined(childTask) && childTask.startPage > -1) && (!isNullOrUndefined(parentTask) && parentTask.endPage > -1)) {
59
70
  startPage = pages[parentTask.endPage];
60
71
  endPage = pages[childTask.startPage];
61
72
  parentPageData = pdfGantt.pdfPageDetail[parentTask.endPage - pdfGantt.chartPageIndex];
@@ -82,7 +93,7 @@ var PdfGanttPredecessor = /** @class */ (function () {
82
93
  }
83
94
  break;
84
95
  case 'SF':
85
- if (childTask.endPage > -1 && parentTask.startPage > -1) {
96
+ if ((!isNullOrUndefined(childTask) && childTask.endPage > -1) && (!isNullOrUndefined(parentTask) && parentTask.startPage > -1)) {
86
97
  startPage = pages[parentTask.startPage];
87
98
  endPage = pages[childTask.endPage];
88
99
  parentPageData = pdfGantt.pdfPageDetail[parentTask.endPage - pdfGantt.chartPageIndex];
@@ -109,7 +120,7 @@ var PdfGanttPredecessor = /** @class */ (function () {
109
120
  }
110
121
  break;
111
122
  case 'FF':
112
- if (childTask.endPage > -1 && parentTask.endPage > -1) {
123
+ if ((!isNullOrUndefined(childTask) && childTask.endPage > -1) && (!isNullOrUndefined(parentTask) && parentTask.endPage > -1)) {
113
124
  startPage = pages[parentTask.endPage];
114
125
  endPage = pages[childTask.endPage];
115
126
  parentPageData = pdfGantt.pdfPageDetail[parentTask.endPage - pdfGantt.chartPageIndex];
@@ -136,7 +147,7 @@ var PdfGanttPredecessor = /** @class */ (function () {
136
147
  }
137
148
  break;
138
149
  case 'SS':
139
- if (childTask.startPage > -1 && parentTask.startPage > -1) {
150
+ if ((!isNullOrUndefined(childTask) && childTask.startPage > -1) && (!isNullOrUndefined(parentTask) && parentTask.startPage > -1)) {
140
151
  startPage = pages[parentTask.startPage];
141
152
  endPage = pages[childTask.startPage];
142
153
  parentPageData = pdfGantt.pdfPageDetail[parentTask.startPage - pdfGantt.chartPageIndex];
@@ -3,6 +3,7 @@ import { PageDetail } from '../base/interface';
3
3
  import { PdfLayoutResult, PdfColor } from '@syncfusion/ej2-pdf-export';
4
4
  import { Gantt } from '../base/gantt';
5
5
  import { PdfTreeGrid } from './pdf-treegrid';
6
+ import { PdfExportProperties } from '../base/interface';
6
7
  import { PdfTimeline } from './pdf-timeline';
7
8
  import { PdfGanttPredecessor } from './pdf-connector-line';
8
9
  /**
@@ -28,7 +29,7 @@ export declare class PdfGantt extends PdfTreeGrid {
28
29
  parent: Gantt;
29
30
  constructor(parent: Gantt);
30
31
  readonly taskbar: PdfGanttTaskbarCollection;
31
- drawChart(result: PdfLayoutResult): void;
32
+ drawChart(result: PdfLayoutResult, pdfExportProperties: PdfExportProperties): void;
32
33
  private calculateRange;
33
34
  private drawPageBorder;
34
35
  private drawGantttChart;
@@ -56,12 +56,12 @@ var PdfGantt = /** @class */ (function (_super) {
56
56
  enumerable: true,
57
57
  configurable: true
58
58
  });
59
- PdfGantt.prototype.drawChart = function (result) {
59
+ PdfGantt.prototype.drawChart = function (result, pdfExportProperties) {
60
60
  this.result = result;
61
61
  this.totalPages = this.result.page.section.count;
62
62
  this.perColumnPages = this.totalPages / this.layouter.columnRanges.length;
63
63
  this.calculateRange();
64
- this.drawGantttChart();
64
+ this.drawGantttChart(pdfExportProperties);
65
65
  this.drawPageBorder();
66
66
  };
67
67
  //Calcualte the header range for each pdf page based on schedule start and end date.
@@ -210,7 +210,7 @@ var PdfGantt = /** @class */ (function (_super) {
210
210
  }
211
211
  };
212
212
  //Draw the gantt chart side
213
- PdfGantt.prototype.drawGantttChart = function () {
213
+ PdfGantt.prototype.drawGantttChart = function (pdfExportProperties) {
214
214
  var _this = this;
215
215
  var taskbarPoint = this.startPoint;
216
216
  var pagePoint = new PointF();
@@ -286,7 +286,7 @@ var PdfGantt = /** @class */ (function (_super) {
286
286
  // Draw predecessor line.
287
287
  for (var i = 0; i < this.predecessorCollection.length; i++) {
288
288
  var predecessor = this.predecessorCollection[i];
289
- predecessor.drawPredecessor(this);
289
+ predecessor.drawPredecessor(this, pdfExportProperties);
290
290
  }
291
291
  };
292
292
  return PdfGantt;
@@ -11,7 +11,7 @@ var __extends = (this && this.__extends) || (function () {
11
11
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
12
  };
13
13
  })();
14
- import { createElement, isNullOrUndefined, extend, compile, getValue, setValue, SanitizeHtmlHelper } from '@syncfusion/ej2-base';
14
+ import { createElement, isNullOrUndefined, extend, compile, getValue, setValue, SanitizeHtmlHelper, append } from '@syncfusion/ej2-base';
15
15
  import { formatUnit, addClass } from '@syncfusion/ej2-base';
16
16
  import { isScheduledTask } from '../base/utils';
17
17
  import { DataManager, Query } from '@syncfusion/ej2-data';
@@ -173,7 +173,7 @@ var ChartRows = /** @class */ (function (_super) {
173
173
  if (this.taskLabelTemplateFunction && !isNullOrUndefined(progressDiv) && progressDiv.length > 0) {
174
174
  var taskLabelTemplateNode = this.taskLabelTemplateFunction(extend({ index: i }, data), this.parent, 'TaskLabelTemplate', this.getTemplateID('TaskLabelTemplate'), false, undefined, progressDiv[0]);
175
175
  if (taskLabelTemplateNode && taskLabelTemplateNode.length > 0) {
176
- tempDiv.appendChild(taskLabelTemplateNode[0]);
176
+ append(taskLabelTemplateNode, tempDiv);
177
177
  labelString = tempDiv.innerHTML;
178
178
  }
179
179
  }
@@ -728,7 +728,7 @@ var ChartRows = /** @class */ (function (_super) {
728
728
  if (leftLabelTemplateNode[0]['data'] === 'null') {
729
729
  leftLabelTemplateNode[0]['data'] = '';
730
730
  }
731
- leftLabelNode[0].appendChild([].slice.call(leftLabelTemplateNode)[0]);
731
+ append(leftLabelTemplateNode, leftLabelNode[0]);
732
732
  }
733
733
  if (this.parent.enableRtl) {
734
734
  leftLabelNode[0].style.paddingLeft = '25px';
@@ -783,7 +783,7 @@ var ChartRows = /** @class */ (function (_super) {
783
783
  if (rightLabelTemplateNode[0]['data'] === 'null') {
784
784
  rightLabelTemplateNode[0]['data'] = '';
785
785
  }
786
- rightLabelNode[0].appendChild([].slice.call(rightLabelTemplateNode)[0]);
786
+ append(rightLabelTemplateNode, rightLabelNode[0]);
787
787
  }
788
788
  if (this.parent.enableRtl) {
789
789
  rightLabelNode[0].style.marginLeft = '0px';
@@ -1440,12 +1440,12 @@ var ChartRows = /** @class */ (function (_super) {
1440
1440
  }
1441
1441
  }
1442
1442
  if ((this.templateData.ganttProperties.autoDuration !== 0) && !this.templateData.ganttProperties.isMilestone && parentTaskbarTemplateNode && parentTaskbarTemplateNode.length > 0) {
1443
- taskbarContainerNode[0].appendChild([].slice.call(parentTaskbarTemplateNode)[0]);
1443
+ append(parentTaskbarTemplateNode, taskbarContainerNode[0]);
1444
1444
  }
1445
1445
  else if ((this.templateData.ganttProperties.duration === 0 && this.templateData.ganttProperties.isMilestone && this.templateData.ganttProperties.isAutoSchedule)) {
1446
1446
  var milestoneTemplateNode = this.getMilestoneNode(i, taskbarContainerNode);
1447
1447
  if (milestoneTemplateNode && milestoneTemplateNode.length > 0) {
1448
- taskbarContainerNode[0].appendChild([].slice.call(milestoneTemplateNode)[0]);
1448
+ append(milestoneTemplateNode, taskbarContainerNode[0]);
1449
1449
  }
1450
1450
  }
1451
1451
  if (this.parent.renderBaseline && this.templateData.ganttProperties.baselineStartDate &&
@@ -1499,7 +1499,7 @@ var ChartRows = /** @class */ (function (_super) {
1499
1499
  }
1500
1500
  }
1501
1501
  else {
1502
- taskbarContainerNode[0].appendChild([].slice.call(childTaskbarTemplateNode)[0]);
1502
+ append(childTaskbarTemplateNode, taskbarContainerNode[0]);
1503
1503
  }
1504
1504
  }
1505
1505
  if (childTaskbarProgressResizeNode) {