@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
@@ -367,7 +367,7 @@ var DateProcessor = /** @__PURE__ @class */ (function () {
367
367
  if (hour < this.parent.defaultStartTime) {
368
368
  this.setTime(this.parent.defaultStartTime, cloneDate);
369
369
  }
370
- else if (hour >= this.parent.defaultEndTime) {
370
+ else if (hour > this.parent.defaultEndTime) {
371
371
  cloneDate.setDate(cloneDate.getDate() + 1);
372
372
  this.setTime(this.parent.defaultStartTime, cloneDate);
373
373
  }
@@ -4868,7 +4868,7 @@ var GanttChart = /** @__PURE__ @class */ (function () {
4868
4868
  * @private
4869
4869
  */
4870
4870
  GanttChart.prototype.expandedGanttRow = function (args) {
4871
- if (isNullOrUndefined(args['gridRow']) && this.parent.enableVirtualization) {
4871
+ if ((isNullOrUndefined(args['gridRow']) || isNullOrUndefined(args['chartRow'])) && this.parent.enableVirtualization) {
4872
4872
  return;
4873
4873
  }
4874
4874
  var record = getValue('data', args);
@@ -5113,7 +5113,7 @@ var GanttChart = /** @__PURE__ @class */ (function () {
5113
5113
  if (isTab) {
5114
5114
  if (this.parent.editSettings.allowNextRowEdit) {
5115
5115
  var rowData = this.parent.currentViewData[this.focusedRowIndex];
5116
- var columnName = this.parent.ganttColumns[nextElement.getAttribute('aria-colindex')].field;
5116
+ var columnName = this.parent.ganttColumns[nextElement.getAttribute('data-colindex')].field;
5117
5117
  if (rowData.hasChildRecords) {
5118
5118
  if (columnName === this.parent.taskFields.endDate || columnName ===
5119
5119
  this.parent.taskFields.duration || columnName === this.parent.taskFields.dependency ||
@@ -5127,7 +5127,9 @@ var GanttChart = /** @__PURE__ @class */ (function () {
5127
5127
  }
5128
5128
  else {
5129
5129
  this.parent.treeGrid.grid.notify('key-pressed', e);
5130
- this.parent.treeGrid.editCell(this.focusedRowIndex, columnName); // eslint-disable-line
5130
+ if (isInEditedState) {
5131
+ this.parent.treeGrid.editCell(this.focusedRowIndex, columnName); // eslint-disable-line
5132
+ }
5131
5133
  }
5132
5134
  }
5133
5135
  else {
@@ -5347,6 +5349,18 @@ var GanttChart = /** @__PURE__ @class */ (function () {
5347
5349
  childElement = element;
5348
5350
  }
5349
5351
  }
5352
+ if (element.classList.contains('e-right-label-temp-container') || element.classList.contains('e-left-label-temp-container') || element.classList.contains('e-indicator-span')) {
5353
+ if (focus === 'add') {
5354
+ element.setAttribute('tabIndex', '0');
5355
+ addClass([element], 'e-active-container');
5356
+ element.focus();
5357
+ }
5358
+ else {
5359
+ removeClass([element], 'e-active-container');
5360
+ element.setAttribute('tabIndex', '-1');
5361
+ element.blur();
5362
+ }
5363
+ }
5350
5364
  if (focus === 'add' && !isNullOrUndefined(childElement)) {
5351
5365
  element.setAttribute('tabIndex', '0');
5352
5366
  addClass([childElement], 'e-active-container');
@@ -13140,6 +13154,16 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
13140
13154
  this.renderChartVerticalLines();
13141
13155
  }
13142
13156
  };
13157
+ Gantt.prototype.removeCriticalPathStyles = function () {
13158
+ var ganttChartElement = this.ganttChartModule.chartElement;
13159
+ removeClass(ganttChartElement.querySelectorAll('.e-gantt-child-taskbar-inner-div'), criticalChildTaskBarInnerDiv);
13160
+ removeClass(ganttChartElement.querySelectorAll('.e-gantt-child-progressbar-inner-div'), criticalChildProgressBarInnerDiv);
13161
+ removeClass(ganttChartElement.querySelectorAll('.e-milestone-top'), criticalMilestoneTop);
13162
+ removeClass(ganttChartElement.querySelectorAll('.e-milestone-bottom'), criticalMilestoneBottom);
13163
+ removeClass(this.element.querySelectorAll('.e-line'), criticalConnectorLine);
13164
+ removeClass(this.element.querySelectorAll('.e-connector-line-right-arrow'), criticalConnectorLineRightArrow);
13165
+ removeClass(this.element.querySelectorAll('.e-connector-line-left-arrow'), criticalConnectorLineLeftArrow);
13166
+ };
13143
13167
  Gantt.prototype.wireEvents = function () {
13144
13168
  if (this.allowKeyboard) {
13145
13169
  this.keyboardModule = new KeyboardEvents(this.element, {
@@ -13303,139 +13327,140 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
13303
13327
  * @private
13304
13328
  */
13305
13329
  Gantt.prototype.getZoomingLevels = function () {
13330
+ var _WeekStartDay = this.timelineSettings.weekStartDay;
13306
13331
  var zoomingLevels = [
13307
13332
  {
13308
13333
  topTier: { unit: 'Year', format: 'yyyy', count: 50 },
13309
13334
  bottomTier: { unit: 'Year', format: 'yyyy', count: 10 }, timelineUnitSize: 99, level: 0,
13310
- timelineViewMode: 'Year', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13335
+ timelineViewMode: 'Year', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13311
13336
  },
13312
13337
  {
13313
13338
  topTier: { unit: 'Year', format: 'yyyy', count: 20 },
13314
13339
  bottomTier: { unit: 'Year', format: 'yyyy', count: 5 }, timelineUnitSize: 99, level: 1,
13315
- timelineViewMode: 'Year', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13340
+ timelineViewMode: 'Year', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13316
13341
  },
13317
13342
  {
13318
13343
  topTier: { unit: 'Year', format: 'yyyy', count: 5 },
13319
13344
  bottomTier: { unit: 'Year', format: 'yyyy', count: 1 }, timelineUnitSize: 99, level: 2,
13320
- timelineViewMode: 'Year', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13345
+ timelineViewMode: 'Year', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13321
13346
  },
13322
13347
  {
13323
13348
  topTier: { unit: 'Year', format: 'MMM, yy', count: 1 },
13324
13349
  bottomTier: {
13325
13350
  unit: 'Month', formatter: this.displayHalfValue, count: 6
13326
13351
  }, timelineUnitSize: 66, level: 3,
13327
- timelineViewMode: 'Year', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13352
+ timelineViewMode: 'Year', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13328
13353
  },
13329
13354
  {
13330
13355
  topTier: { unit: 'Year', format: 'MMM, yy', count: 1 },
13331
13356
  bottomTier: {
13332
13357
  unit: 'Month', formatter: this.displayHalfValue, count: 6
13333
13358
  }, timelineUnitSize: 99, level: 4,
13334
- timelineViewMode: 'Year', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13359
+ timelineViewMode: 'Year', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13335
13360
  },
13336
13361
  {
13337
13362
  topTier: { unit: 'Year', format: 'MMM, yy', count: 1 },
13338
13363
  bottomTier: {
13339
13364
  unit: 'Month', formatter: this.displayQuarterValue, count: 3
13340
13365
  }, timelineUnitSize: 66, level: 5,
13341
- timelineViewMode: 'Year', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13366
+ timelineViewMode: 'Year', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13342
13367
  },
13343
13368
  {
13344
13369
  topTier: { unit: 'Year', format: 'yyyy', count: 1 },
13345
13370
  bottomTier: {
13346
13371
  unit: 'Month', formatter: this.displayQuarterValue, count: 3
13347
13372
  }, timelineUnitSize: 99, level: 6,
13348
- timelineViewMode: 'Year', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13373
+ timelineViewMode: 'Year', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13349
13374
  },
13350
13375
  {
13351
13376
  topTier: { unit: 'Year', format: 'yyyy', count: 1 },
13352
13377
  bottomTier: { unit: 'Month', format: 'MMM yyyy', count: 1 }, timelineUnitSize: 99, level: 7,
13353
- timelineViewMode: 'Year', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13378
+ timelineViewMode: 'Year', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13354
13379
  },
13355
13380
  {
13356
13381
  topTier: { unit: 'Month', format: 'MMM, yy', count: 1 },
13357
13382
  bottomTier: { unit: 'Week', format: 'dd', count: 1 }, timelineUnitSize: 33, level: 8,
13358
- timelineViewMode: 'Month', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13383
+ timelineViewMode: 'Month', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13359
13384
  },
13360
13385
  {
13361
13386
  topTier: { unit: 'Month', format: 'MMM, yyyy', count: 1 },
13362
13387
  bottomTier: { unit: 'Week', format: 'dd MMM', count: 1 }, timelineUnitSize: 66, level: 9,
13363
- timelineViewMode: 'Month', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13388
+ timelineViewMode: 'Month', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13364
13389
  },
13365
13390
  {
13366
13391
  topTier: { unit: 'Month', format: 'MMM, yyyy', count: 1 },
13367
13392
  bottomTier: { unit: 'Week', format: 'dd MMM', count: 1 }, timelineUnitSize: 99, level: 10,
13368
- timelineViewMode: 'Month', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13393
+ timelineViewMode: 'Month', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13369
13394
  },
13370
13395
  {
13371
13396
  topTier: { unit: 'Week', format: 'MMM dd, yyyy', count: 1 },
13372
13397
  bottomTier: { unit: 'Day', format: 'd', count: 1 }, timelineUnitSize: 33, level: 11,
13373
- timelineViewMode: 'Week', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13398
+ timelineViewMode: 'Week', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13374
13399
  },
13375
13400
  {
13376
13401
  topTier: { unit: 'Week', format: 'MMM dd, yyyy', count: 1 },
13377
13402
  bottomTier: { unit: 'Day', format: 'd', count: 1 }, timelineUnitSize: 66, level: 12,
13378
- timelineViewMode: 'Week', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13403
+ timelineViewMode: 'Week', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13379
13404
  },
13380
13405
  {
13381
13406
  topTier: { unit: 'Week', format: 'MMM dd, yyyy', count: 1 },
13382
13407
  bottomTier: { unit: 'Day', format: 'd', count: 1 }, timelineUnitSize: 99, level: 13,
13383
- timelineViewMode: 'Week', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13408
+ timelineViewMode: 'Week', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13384
13409
  },
13385
13410
  {
13386
13411
  topTier: { unit: 'Day', format: 'E dd yyyy', count: 1 },
13387
13412
  bottomTier: { unit: 'Hour', format: 'hh a', count: 12 }, timelineUnitSize: 66, level: 14,
13388
- timelineViewMode: 'Day', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13413
+ timelineViewMode: 'Day', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13389
13414
  },
13390
13415
  {
13391
13416
  topTier: { unit: 'Day', format: 'E dd yyyy', count: 1 },
13392
13417
  bottomTier: { unit: 'Hour', format: 'hh a', count: 12 }, timelineUnitSize: 99, level: 15,
13393
- timelineViewMode: 'Day', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13418
+ timelineViewMode: 'Day', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13394
13419
  },
13395
13420
  {
13396
13421
  topTier: { unit: 'Day', format: 'E dd yyyy', count: 1 },
13397
13422
  bottomTier: { unit: 'Hour', format: 'hh a', count: 6 }, timelineUnitSize: 66, level: 16,
13398
- timelineViewMode: 'Day', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13423
+ timelineViewMode: 'Day', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13399
13424
  },
13400
13425
  {
13401
13426
  topTier: { unit: 'Day', format: 'E dd yyyy', count: 1 },
13402
13427
  bottomTier: { unit: 'Hour', format: 'hh a', count: 6 }, timelineUnitSize: 99, level: 17,
13403
- timelineViewMode: 'Day', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13428
+ timelineViewMode: 'Day', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13404
13429
  },
13405
13430
  {
13406
13431
  topTier: { unit: 'Day', format: 'E dd yyyy', count: 1 },
13407
13432
  bottomTier: { unit: 'Hour', format: 'hh a', count: 2 }, timelineUnitSize: 66, level: 18,
13408
- timelineViewMode: 'Day', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13433
+ timelineViewMode: 'Day', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13409
13434
  },
13410
13435
  {
13411
13436
  topTier: { unit: 'Day', format: 'E dd yyyy', count: 1 },
13412
13437
  bottomTier: { unit: 'Hour', format: 'hh a', count: 2 }, timelineUnitSize: 99, level: 19,
13413
- timelineViewMode: 'Day', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13438
+ timelineViewMode: 'Day', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13414
13439
  },
13415
13440
  {
13416
13441
  topTier: { unit: 'Day', format: 'E dd yyyy', count: 1 },
13417
13442
  bottomTier: { unit: 'Hour', format: 'hh a', count: 1 }, timelineUnitSize: 66, level: 20,
13418
- timelineViewMode: 'Day', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13443
+ timelineViewMode: 'Day', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13419
13444
  },
13420
13445
  {
13421
13446
  topTier: { unit: 'Day', format: 'E dd yyyy', count: 1 },
13422
13447
  bottomTier: { unit: 'Hour', format: 'hh a', count: 1 }, timelineUnitSize: 99, level: 21,
13423
- timelineViewMode: 'Day', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13448
+ timelineViewMode: 'Day', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13424
13449
  },
13425
13450
  {
13426
13451
  topTier: { unit: 'Hour', format: 'ddd MMM, h a', count: 1 },
13427
13452
  bottomTier: { unit: 'Minutes', format: 'mm', count: 30 }, timelineUnitSize: 66, level: 22,
13428
- timelineViewMode: 'Hour', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13453
+ timelineViewMode: 'Hour', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13429
13454
  },
13430
13455
  {
13431
13456
  topTier: { unit: 'Hour', format: 'ddd MMM, h a', count: 1 },
13432
13457
  bottomTier: { unit: 'Minutes', format: 'mm', count: 15 }, timelineUnitSize: 66, level: 23,
13433
- timelineViewMode: 'Hour', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13458
+ timelineViewMode: 'Hour', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13434
13459
  },
13435
13460
  {
13436
13461
  topTier: { unit: 'Hour', format: 'ddd MMM, h a', count: 1 },
13437
13462
  bottomTier: { unit: 'Minutes', format: 'mm', count: 1 }, timelineUnitSize: 66, level: 24,
13438
- timelineViewMode: 'Hour', weekStartDay: 0, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13463
+ timelineViewMode: 'Hour', weekStartDay: _WeekStartDay, updateTimescaleView: true, weekendBackground: null, showTooltip: true
13439
13464
  }
13440
13465
  ];
13441
13466
  return zoomingLevels;
@@ -13682,9 +13707,18 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
13682
13707
  }
13683
13708
  break;
13684
13709
  case 'timezone':
13685
- case 'enableCriticalPath':
13686
13710
  this.dataOperation.checkDataBinding(true);
13687
13711
  break;
13712
+ case 'enableCriticalPath':
13713
+ if (this.enableCriticalPath && this.criticalPathModule) {
13714
+ this.criticalPathModule.showCriticalPath(this.enableCriticalPath);
13715
+ var criticalModule = this.criticalPathModule;
13716
+ this.criticalPathModule.criticalConnectorLine(criticalModule.criticalPathCollection, criticalModule.detailPredecessorCollection, true, criticalModule.predecessorCollectionTaskIds);
13717
+ }
13718
+ else {
13719
+ this.removeCriticalPathStyles();
13720
+ }
13721
+ break;
13688
13722
  case 'filterSettings':
13689
13723
  this.treeGrid.filterSettings = getActualProperties(this.filterSettings);
13690
13724
  this.treeGrid.dataBind();
@@ -16224,6 +16258,9 @@ var CellEdit = /** @__PURE__ @class */ (function () {
16224
16258
  this.parent.editModule.endEditAction(args);
16225
16259
  }
16226
16260
  this.isCellEdit = false;
16261
+ if (!isNullOrUndefined(this.parent.editModule.cellEditModule.editedColumn)) {
16262
+ this.parent.editModule.cellEditModule.editedColumn = null;
16263
+ }
16227
16264
  if (!isNullOrUndefined(this.parent.toolbarModule)) {
16228
16265
  this.parent.toolbarModule.refreshToolbarItems();
16229
16266
  }
@@ -24403,7 +24440,7 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
24403
24440
  else {
24404
24441
  if (_this.parent.viewType === 'ProjectView') {
24405
24442
  if ((rowPosition === 'Top' || rowPosition === 'Bottom') ||
24406
- ((rowPosition === 'Above' || rowPosition === 'Below' || rowPosition === 'Child') && !args.data.parentItem)) {
24443
+ ((rowPosition === 'Above' || rowPosition === 'Below' || rowPosition === 'Child') || isNullOrUndefined(rowPosition) && !args.data.parentItem)) {
24407
24444
  if (args.data instanceof Array) {
24408
24445
  _this.updateRealDataSource(args.data, rowPosition);
24409
24446
  }
@@ -27759,10 +27796,7 @@ var CriticalPath = /** @__PURE__ @class */ (function () {
27759
27796
  /* eslint-disable-next-line */
27760
27797
  CriticalPath.prototype.criticalConnectorLine = function (criticalPathIds, collection, condition, collectionTaskId) {
27761
27798
  var ganttChartElement = this.parent.ganttChartModule.chartElement;
27762
- removeClass(ganttChartElement.querySelectorAll('.e-gantt-child-taskbar-inner-div'), criticalChildTaskBarInnerDiv);
27763
- removeClass(ganttChartElement.querySelectorAll('.e-gantt-child-progressbar-inner-div'), criticalChildProgressBarInnerDiv);
27764
- removeClass(ganttChartElement.querySelectorAll('.e-milestone-top'), criticalMilestoneTop);
27765
- removeClass(ganttChartElement.querySelectorAll('.e-milestone-bottom'), criticalMilestoneBottom);
27799
+ this.parent.removeCriticalPathStyles();
27766
27800
  for (var i = 0; i < criticalPathIds.length; i++) {
27767
27801
  var criticalData = void 0;
27768
27802
  if (this.parent.viewType === 'ProjectView') {
@@ -27797,9 +27831,6 @@ var CriticalPath = /** @__PURE__ @class */ (function () {
27797
27831
  }
27798
27832
  }
27799
27833
  }
27800
- removeClass(this.parent.element.querySelectorAll('.e-line'), criticalConnectorLine);
27801
- removeClass(this.parent.element.querySelectorAll('.e-connector-line-right-arrow'), criticalConnectorLineRightArrow);
27802
- removeClass(this.parent.element.querySelectorAll('.e-connector-line-left-arrow'), criticalConnectorLineLeftArrow);
27803
27834
  if (collection.length !== 0) {
27804
27835
  var index = 0;
27805
27836
  var currentdata = void 0;