@syncfusion/ej2-gantt 20.2.43 → 20.2.44

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/ej2-gantt.umd.min.js +2 -2
  3. package/dist/ej2-gantt.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-gantt.es2015.js +69 -38
  5. package/dist/es6/ej2-gantt.es2015.js.map +1 -1
  6. package/dist/es6/ej2-gantt.es5.js +69 -38
  7. package/dist/es6/ej2-gantt.es5.js.map +1 -1
  8. package/dist/global/ej2-gantt.min.js +2 -2
  9. package/dist/global/ej2-gantt.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +11 -11
  12. package/src/gantt/actions/cell-edit.js +3 -0
  13. package/src/gantt/actions/critical-path.js +2 -8
  14. package/src/gantt/actions/edit.js +1 -1
  15. package/src/gantt/base/date-processor.js +1 -1
  16. package/src/gantt/base/gantt-chart.js +17 -3
  17. package/src/gantt/base/gantt.d.ts +1 -0
  18. package/src/gantt/base/gantt.js +46 -26
  19. package/styles/bootstrap-dark.css +4 -4
  20. package/styles/bootstrap.css +4 -4
  21. package/styles/bootstrap4.css +4 -4
  22. package/styles/bootstrap5-dark.css +4 -4
  23. package/styles/bootstrap5.css +4 -4
  24. package/styles/fabric-dark.css +4 -4
  25. package/styles/fabric.css +4 -4
  26. package/styles/fluent-dark.css +4 -4
  27. package/styles/fluent.css +4 -4
  28. package/styles/gantt/_layout.scss +9 -19
  29. package/styles/gantt/_theme.scss +1 -19
  30. package/styles/gantt/bootstrap-dark.css +4 -4
  31. package/styles/gantt/bootstrap.css +4 -4
  32. package/styles/gantt/bootstrap4.css +4 -4
  33. package/styles/gantt/bootstrap5-dark.css +4 -4
  34. package/styles/gantt/bootstrap5.css +4 -4
  35. package/styles/gantt/fabric-dark.css +4 -4
  36. package/styles/gantt/fabric.css +4 -4
  37. package/styles/gantt/fluent-dark.css +4 -4
  38. package/styles/gantt/fluent.css +4 -4
  39. package/styles/gantt/highcontrast-light.css +4 -4
  40. package/styles/gantt/highcontrast.css +4 -4
  41. package/styles/gantt/icons/_bootstrap-dark.scss +3 -3
  42. package/styles/gantt/icons/_bootstrap.scss +3 -3
  43. package/styles/gantt/icons/_bootstrap4.scss +5 -5
  44. package/styles/gantt/icons/_bootstrap5.scss +3 -3
  45. package/styles/gantt/icons/_fabric-dark.scss +3 -3
  46. package/styles/gantt/icons/_fabric.scss +3 -3
  47. package/styles/gantt/icons/_fluent.scss +3 -3
  48. package/styles/gantt/icons/_fusionnew.scss +3 -3
  49. package/styles/gantt/icons/_highcontrast.scss +3 -3
  50. package/styles/gantt/icons/_material-dark.scss +3 -3
  51. package/styles/gantt/icons/_material.scss +3 -3
  52. package/styles/gantt/icons/_material3.scss +3 -3
  53. package/styles/gantt/icons/_tailwind-dark.scss +3 -3
  54. package/styles/gantt/icons/_tailwind.scss +3 -3
  55. package/styles/gantt/material-dark.css +4 -4
  56. package/styles/gantt/material.css +4 -4
  57. package/styles/gantt/tailwind-dark.css +4 -4
  58. package/styles/gantt/tailwind.css +4 -4
  59. package/styles/highcontrast-light.css +4 -4
  60. package/styles/highcontrast.css +4 -4
  61. package/styles/material-dark.css +4 -4
  62. package/styles/material.css +4 -4
  63. package/styles/tailwind-dark.css +4 -4
  64. package/styles/tailwind.css +4 -4
@@ -366,7 +366,7 @@ class DateProcessor {
366
366
  if (hour < this.parent.defaultStartTime) {
367
367
  this.setTime(this.parent.defaultStartTime, cloneDate);
368
368
  }
369
- else if (hour >= this.parent.defaultEndTime) {
369
+ else if (hour > this.parent.defaultEndTime) {
370
370
  cloneDate.setDate(cloneDate.getDate() + 1);
371
371
  this.setTime(this.parent.defaultStartTime, cloneDate);
372
372
  }
@@ -4822,7 +4822,7 @@ class GanttChart {
4822
4822
  * @private
4823
4823
  */
4824
4824
  expandedGanttRow(args) {
4825
- if (isNullOrUndefined(args['gridRow']) && this.parent.enableVirtualization) {
4825
+ if ((isNullOrUndefined(args['gridRow']) || isNullOrUndefined(args['chartRow'])) && this.parent.enableVirtualization) {
4826
4826
  return;
4827
4827
  }
4828
4828
  const record = getValue('data', args);
@@ -5067,7 +5067,7 @@ class GanttChart {
5067
5067
  if (isTab) {
5068
5068
  if (this.parent.editSettings.allowNextRowEdit) {
5069
5069
  const rowData = this.parent.currentViewData[this.focusedRowIndex];
5070
- const columnName = this.parent.ganttColumns[nextElement.getAttribute('aria-colindex')].field;
5070
+ const columnName = this.parent.ganttColumns[nextElement.getAttribute('data-colindex')].field;
5071
5071
  if (rowData.hasChildRecords) {
5072
5072
  if (columnName === this.parent.taskFields.endDate || columnName ===
5073
5073
  this.parent.taskFields.duration || columnName === this.parent.taskFields.dependency ||
@@ -5081,7 +5081,9 @@ class GanttChart {
5081
5081
  }
5082
5082
  else {
5083
5083
  this.parent.treeGrid.grid.notify('key-pressed', e);
5084
- this.parent.treeGrid.editCell(this.focusedRowIndex, columnName); // eslint-disable-line
5084
+ if (isInEditedState) {
5085
+ this.parent.treeGrid.editCell(this.focusedRowIndex, columnName); // eslint-disable-line
5086
+ }
5085
5087
  }
5086
5088
  }
5087
5089
  else {
@@ -5301,6 +5303,18 @@ class GanttChart {
5301
5303
  childElement = element;
5302
5304
  }
5303
5305
  }
5306
+ if (element.classList.contains('e-right-label-temp-container') || element.classList.contains('e-left-label-temp-container') || element.classList.contains('e-indicator-span')) {
5307
+ if (focus === 'add') {
5308
+ element.setAttribute('tabIndex', '0');
5309
+ addClass([element], 'e-active-container');
5310
+ element.focus();
5311
+ }
5312
+ else {
5313
+ removeClass([element], 'e-active-container');
5314
+ element.setAttribute('tabIndex', '-1');
5315
+ element.blur();
5316
+ }
5317
+ }
5304
5318
  if (focus === 'add' && !isNullOrUndefined(childElement)) {
5305
5319
  element.setAttribute('tabIndex', '0');
5306
5320
  addClass([childElement], 'e-active-container');
@@ -12726,6 +12740,16 @@ let Gantt = class Gantt extends Component {
12726
12740
  this.renderChartVerticalLines();
12727
12741
  }
12728
12742
  }
12743
+ removeCriticalPathStyles() {
12744
+ const ganttChartElement = this.ganttChartModule.chartElement;
12745
+ removeClass(ganttChartElement.querySelectorAll('.e-gantt-child-taskbar-inner-div'), criticalChildTaskBarInnerDiv);
12746
+ removeClass(ganttChartElement.querySelectorAll('.e-gantt-child-progressbar-inner-div'), criticalChildProgressBarInnerDiv);
12747
+ removeClass(ganttChartElement.querySelectorAll('.e-milestone-top'), criticalMilestoneTop);
12748
+ removeClass(ganttChartElement.querySelectorAll('.e-milestone-bottom'), criticalMilestoneBottom);
12749
+ removeClass(this.element.querySelectorAll('.e-line'), criticalConnectorLine);
12750
+ removeClass(this.element.querySelectorAll('.e-connector-line-right-arrow'), criticalConnectorLineRightArrow);
12751
+ removeClass(this.element.querySelectorAll('.e-connector-line-left-arrow'), criticalConnectorLineLeftArrow);
12752
+ }
12729
12753
  wireEvents() {
12730
12754
  if (this.allowKeyboard) {
12731
12755
  this.keyboardModule = new KeyboardEvents(this.element, {
@@ -12888,139 +12912,140 @@ let Gantt = class Gantt extends Component {
12888
12912
  * @private
12889
12913
  */
12890
12914
  getZoomingLevels() {
12915
+ const _WeekStartDay = this.timelineSettings.weekStartDay;
12891
12916
  const zoomingLevels = [
12892
12917
  {
12893
12918
  topTier: { unit: 'Year', format: 'yyyy', count: 50 },
12894
12919
  bottomTier: { unit: 'Year', format: 'yyyy', count: 10 }, timelineUnitSize: 99, level: 0,
12895
- timelineViewMode: 'Year', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12920
+ timelineViewMode: 'Year', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12896
12921
  },
12897
12922
  {
12898
12923
  topTier: { unit: 'Year', format: 'yyyy', count: 20 },
12899
12924
  bottomTier: { unit: 'Year', format: 'yyyy', count: 5 }, timelineUnitSize: 99, level: 1,
12900
- timelineViewMode: 'Year', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12925
+ timelineViewMode: 'Year', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12901
12926
  },
12902
12927
  {
12903
12928
  topTier: { unit: 'Year', format: 'yyyy', count: 5 },
12904
12929
  bottomTier: { unit: 'Year', format: 'yyyy', count: 1 }, timelineUnitSize: 99, level: 2,
12905
- timelineViewMode: 'Year', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12930
+ timelineViewMode: 'Year', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12906
12931
  },
12907
12932
  {
12908
12933
  topTier: { unit: 'Year', format: 'MMM, yy', count: 1 },
12909
12934
  bottomTier: {
12910
12935
  unit: 'Month', formatter: this.displayHalfValue, count: 6
12911
12936
  }, timelineUnitSize: 66, level: 3,
12912
- timelineViewMode: 'Year', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12937
+ timelineViewMode: 'Year', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12913
12938
  },
12914
12939
  {
12915
12940
  topTier: { unit: 'Year', format: 'MMM, yy', count: 1 },
12916
12941
  bottomTier: {
12917
12942
  unit: 'Month', formatter: this.displayHalfValue, count: 6
12918
12943
  }, timelineUnitSize: 99, level: 4,
12919
- timelineViewMode: 'Year', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12944
+ timelineViewMode: 'Year', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12920
12945
  },
12921
12946
  {
12922
12947
  topTier: { unit: 'Year', format: 'MMM, yy', count: 1 },
12923
12948
  bottomTier: {
12924
12949
  unit: 'Month', formatter: this.displayQuarterValue, count: 3
12925
12950
  }, timelineUnitSize: 66, level: 5,
12926
- timelineViewMode: 'Year', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12951
+ timelineViewMode: 'Year', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12927
12952
  },
12928
12953
  {
12929
12954
  topTier: { unit: 'Year', format: 'yyyy', count: 1 },
12930
12955
  bottomTier: {
12931
12956
  unit: 'Month', formatter: this.displayQuarterValue, count: 3
12932
12957
  }, timelineUnitSize: 99, level: 6,
12933
- timelineViewMode: 'Year', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12958
+ timelineViewMode: 'Year', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12934
12959
  },
12935
12960
  {
12936
12961
  topTier: { unit: 'Year', format: 'yyyy', count: 1 },
12937
12962
  bottomTier: { unit: 'Month', format: 'MMM yyyy', count: 1 }, timelineUnitSize: 99, level: 7,
12938
- timelineViewMode: 'Year', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12963
+ timelineViewMode: 'Year', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12939
12964
  },
12940
12965
  {
12941
12966
  topTier: { unit: 'Month', format: 'MMM, yy', count: 1 },
12942
12967
  bottomTier: { unit: 'Week', format: 'dd', count: 1 }, timelineUnitSize: 33, level: 8,
12943
- timelineViewMode: 'Month', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12968
+ timelineViewMode: 'Month', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12944
12969
  },
12945
12970
  {
12946
12971
  topTier: { unit: 'Month', format: 'MMM, yyyy', count: 1 },
12947
12972
  bottomTier: { unit: 'Week', format: 'dd MMM', count: 1 }, timelineUnitSize: 66, level: 9,
12948
- timelineViewMode: 'Month', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12973
+ timelineViewMode: 'Month', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12949
12974
  },
12950
12975
  {
12951
12976
  topTier: { unit: 'Month', format: 'MMM, yyyy', count: 1 },
12952
12977
  bottomTier: { unit: 'Week', format: 'dd MMM', count: 1 }, timelineUnitSize: 99, level: 10,
12953
- timelineViewMode: 'Month', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12978
+ timelineViewMode: 'Month', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12954
12979
  },
12955
12980
  {
12956
12981
  topTier: { unit: 'Week', format: 'MMM dd, yyyy', count: 1 },
12957
12982
  bottomTier: { unit: 'Day', format: 'd', count: 1 }, timelineUnitSize: 33, level: 11,
12958
- timelineViewMode: 'Week', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12983
+ timelineViewMode: 'Week', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12959
12984
  },
12960
12985
  {
12961
12986
  topTier: { unit: 'Week', format: 'MMM dd, yyyy', count: 1 },
12962
12987
  bottomTier: { unit: 'Day', format: 'd', count: 1 }, timelineUnitSize: 66, level: 12,
12963
- timelineViewMode: 'Week', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12988
+ timelineViewMode: 'Week', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12964
12989
  },
12965
12990
  {
12966
12991
  topTier: { unit: 'Week', format: 'MMM dd, yyyy', count: 1 },
12967
12992
  bottomTier: { unit: 'Day', format: 'd', count: 1 }, timelineUnitSize: 99, level: 13,
12968
- timelineViewMode: 'Week', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12993
+ timelineViewMode: 'Week', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12969
12994
  },
12970
12995
  {
12971
12996
  topTier: { unit: 'Day', format: 'E dd yyyy', count: 1 },
12972
12997
  bottomTier: { unit: 'Hour', format: 'hh a', count: 12 }, timelineUnitSize: 66, level: 14,
12973
- timelineViewMode: 'Day', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12998
+ timelineViewMode: 'Day', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12974
12999
  },
12975
13000
  {
12976
13001
  topTier: { unit: 'Day', format: 'E dd yyyy', count: 1 },
12977
13002
  bottomTier: { unit: 'Hour', format: 'hh a', count: 12 }, timelineUnitSize: 99, level: 15,
12978
- timelineViewMode: 'Day', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13003
+ timelineViewMode: 'Day', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12979
13004
  },
12980
13005
  {
12981
13006
  topTier: { unit: 'Day', format: 'E dd yyyy', count: 1 },
12982
13007
  bottomTier: { unit: 'Hour', format: 'hh a', count: 6 }, timelineUnitSize: 66, level: 16,
12983
- timelineViewMode: 'Day', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13008
+ timelineViewMode: 'Day', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12984
13009
  },
12985
13010
  {
12986
13011
  topTier: { unit: 'Day', format: 'E dd yyyy', count: 1 },
12987
13012
  bottomTier: { unit: 'Hour', format: 'hh a', count: 6 }, timelineUnitSize: 99, level: 17,
12988
- timelineViewMode: 'Day', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13013
+ timelineViewMode: 'Day', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12989
13014
  },
12990
13015
  {
12991
13016
  topTier: { unit: 'Day', format: 'E dd yyyy', count: 1 },
12992
13017
  bottomTier: { unit: 'Hour', format: 'hh a', count: 2 }, timelineUnitSize: 66, level: 18,
12993
- timelineViewMode: 'Day', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13018
+ timelineViewMode: 'Day', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12994
13019
  },
12995
13020
  {
12996
13021
  topTier: { unit: 'Day', format: 'E dd yyyy', count: 1 },
12997
13022
  bottomTier: { unit: 'Hour', format: 'hh a', count: 2 }, timelineUnitSize: 99, level: 19,
12998
- timelineViewMode: 'Day', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13023
+ timelineViewMode: 'Day', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
12999
13024
  },
13000
13025
  {
13001
13026
  topTier: { unit: 'Day', format: 'E dd yyyy', count: 1 },
13002
13027
  bottomTier: { unit: 'Hour', format: 'hh a', count: 1 }, timelineUnitSize: 66, level: 20,
13003
- timelineViewMode: 'Day', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13028
+ timelineViewMode: 'Day', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13004
13029
  },
13005
13030
  {
13006
13031
  topTier: { unit: 'Day', format: 'E dd yyyy', count: 1 },
13007
13032
  bottomTier: { unit: 'Hour', format: 'hh a', count: 1 }, timelineUnitSize: 99, level: 21,
13008
- timelineViewMode: 'Day', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13033
+ timelineViewMode: 'Day', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13009
13034
  },
13010
13035
  {
13011
13036
  topTier: { unit: 'Hour', format: 'ddd MMM, h a', count: 1 },
13012
13037
  bottomTier: { unit: 'Minutes', format: 'mm', count: 30 }, timelineUnitSize: 66, level: 22,
13013
- timelineViewMode: 'Hour', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13038
+ timelineViewMode: 'Hour', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13014
13039
  },
13015
13040
  {
13016
13041
  topTier: { unit: 'Hour', format: 'ddd MMM, h a', count: 1 },
13017
13042
  bottomTier: { unit: 'Minutes', format: 'mm', count: 15 }, timelineUnitSize: 66, level: 23,
13018
- timelineViewMode: 'Hour', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13043
+ timelineViewMode: 'Hour', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13019
13044
  },
13020
13045
  {
13021
13046
  topTier: { unit: 'Hour', format: 'ddd MMM, h a', count: 1 },
13022
13047
  bottomTier: { unit: 'Minutes', format: 'mm', count: 1 }, timelineUnitSize: 66, level: 24,
13023
- timelineViewMode: 'Hour', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13048
+ timelineViewMode: 'Hour', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13024
13049
  }
13025
13050
  ];
13026
13051
  return zoomingLevels;
@@ -13265,9 +13290,18 @@ let Gantt = class Gantt extends Component {
13265
13290
  }
13266
13291
  break;
13267
13292
  case 'timezone':
13268
- case 'enableCriticalPath':
13269
13293
  this.dataOperation.checkDataBinding(true);
13270
13294
  break;
13295
+ case 'enableCriticalPath':
13296
+ if (this.enableCriticalPath && this.criticalPathModule) {
13297
+ this.criticalPathModule.showCriticalPath(this.enableCriticalPath);
13298
+ let criticalModule = this.criticalPathModule;
13299
+ this.criticalPathModule.criticalConnectorLine(criticalModule.criticalPathCollection, criticalModule.detailPredecessorCollection, true, criticalModule.predecessorCollectionTaskIds);
13300
+ }
13301
+ else {
13302
+ this.removeCriticalPathStyles();
13303
+ }
13304
+ break;
13271
13305
  case 'filterSettings':
13272
13306
  this.treeGrid.filterSettings = getActualProperties(this.filterSettings);
13273
13307
  this.treeGrid.dataBind();
@@ -15804,6 +15838,9 @@ class CellEdit {
15804
15838
  this.parent.editModule.endEditAction(args);
15805
15839
  }
15806
15840
  this.isCellEdit = false;
15841
+ if (!isNullOrUndefined(this.parent.editModule.cellEditModule.editedColumn)) {
15842
+ this.parent.editModule.cellEditModule.editedColumn = null;
15843
+ }
15807
15844
  if (!isNullOrUndefined(this.parent.toolbarModule)) {
15808
15845
  this.parent.toolbarModule.refreshToolbarItems();
15809
15846
  }
@@ -23891,7 +23928,7 @@ class Edit$2 {
23891
23928
  else {
23892
23929
  if (this.parent.viewType === 'ProjectView') {
23893
23930
  if ((rowPosition === 'Top' || rowPosition === 'Bottom') ||
23894
- ((rowPosition === 'Above' || rowPosition === 'Below' || rowPosition === 'Child') && !args.data.parentItem)) {
23931
+ ((rowPosition === 'Above' || rowPosition === 'Below' || rowPosition === 'Child') || isNullOrUndefined(rowPosition) && !args.data.parentItem)) {
23895
23932
  if (args.data instanceof Array) {
23896
23933
  this.updateRealDataSource(args.data, rowPosition);
23897
23934
  }
@@ -27220,10 +27257,7 @@ class CriticalPath {
27220
27257
  /* eslint-disable-next-line */
27221
27258
  criticalConnectorLine(criticalPathIds, collection, condition, collectionTaskId) {
27222
27259
  const ganttChartElement = this.parent.ganttChartModule.chartElement;
27223
- removeClass(ganttChartElement.querySelectorAll('.e-gantt-child-taskbar-inner-div'), criticalChildTaskBarInnerDiv);
27224
- removeClass(ganttChartElement.querySelectorAll('.e-gantt-child-progressbar-inner-div'), criticalChildProgressBarInnerDiv);
27225
- removeClass(ganttChartElement.querySelectorAll('.e-milestone-top'), criticalMilestoneTop);
27226
- removeClass(ganttChartElement.querySelectorAll('.e-milestone-bottom'), criticalMilestoneBottom);
27260
+ this.parent.removeCriticalPathStyles();
27227
27261
  for (let i = 0; i < criticalPathIds.length; i++) {
27228
27262
  let criticalData;
27229
27263
  if (this.parent.viewType === 'ProjectView') {
@@ -27258,9 +27292,6 @@ class CriticalPath {
27258
27292
  }
27259
27293
  }
27260
27294
  }
27261
- removeClass(this.parent.element.querySelectorAll('.e-line'), criticalConnectorLine);
27262
- removeClass(this.parent.element.querySelectorAll('.e-connector-line-right-arrow'), criticalConnectorLineRightArrow);
27263
- removeClass(this.parent.element.querySelectorAll('.e-connector-line-left-arrow'), criticalConnectorLineLeftArrow);
27264
27295
  if (collection.length !== 0) {
27265
27296
  let index = 0;
27266
27297
  let currentdata;