@syncfusion/ej2-gantt 24.1.46 → 24.2.3

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 (52) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/ej2-gantt.min.js +2 -2
  3. package/dist/ej2-gantt.umd.min.js +2 -2
  4. package/dist/ej2-gantt.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-gantt.es2015.js +10 -8
  6. package/dist/es6/ej2-gantt.es2015.js.map +1 -1
  7. package/dist/es6/ej2-gantt.es5.js +14 -12
  8. package/dist/es6/ej2-gantt.es5.js.map +1 -1
  9. package/dist/global/ej2-gantt.min.js +2 -2
  10. package/dist/global/ej2-gantt.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +20 -20
  13. package/src/gantt/actions/dialog-edit.js +2 -2
  14. package/src/gantt/actions/taskbar-edit.js +2 -3
  15. package/src/gantt/base/task-processor.js +1 -1
  16. package/src/gantt/base/tree-grid.js +2 -2
  17. package/src/gantt/export/pdf-timeline.js +8 -5
  18. package/styles/bootstrap-dark.css +1 -1
  19. package/styles/bootstrap.css +1 -1
  20. package/styles/bootstrap4.css +1 -1
  21. package/styles/bootstrap5-dark.css +1 -1
  22. package/styles/bootstrap5.css +1 -1
  23. package/styles/fabric-dark.css +1 -1
  24. package/styles/fabric.css +1 -1
  25. package/styles/fluent-dark.css +1 -1
  26. package/styles/fluent.css +1 -1
  27. package/styles/gantt/_layout.scss +1 -1
  28. package/styles/gantt/bootstrap-dark.css +1 -1
  29. package/styles/gantt/bootstrap.css +1 -1
  30. package/styles/gantt/bootstrap4.css +1 -1
  31. package/styles/gantt/bootstrap5-dark.css +1 -1
  32. package/styles/gantt/bootstrap5.css +1 -1
  33. package/styles/gantt/fabric-dark.css +1 -1
  34. package/styles/gantt/fabric.css +1 -1
  35. package/styles/gantt/fluent-dark.css +1 -1
  36. package/styles/gantt/fluent.css +1 -1
  37. package/styles/gantt/highcontrast-light.css +1 -1
  38. package/styles/gantt/highcontrast.css +1 -1
  39. package/styles/gantt/material-dark.css +1 -1
  40. package/styles/gantt/material.css +1 -1
  41. package/styles/gantt/material3-dark.css +1 -1
  42. package/styles/gantt/material3.css +1 -1
  43. package/styles/gantt/tailwind-dark.css +1 -1
  44. package/styles/gantt/tailwind.css +1 -1
  45. package/styles/highcontrast-light.css +1 -1
  46. package/styles/highcontrast.css +1 -1
  47. package/styles/material-dark.css +1 -1
  48. package/styles/material.css +1 -1
  49. package/styles/material3-dark.css +1 -1
  50. package/styles/material3.css +1 -1
  51. package/styles/tailwind-dark.css +1 -1
  52. package/styles/tailwind.css +1 -1
@@ -6,7 +6,7 @@ import { ColumnMenu, ContextMenu, Edit as Edit$1, ExcelExport, Filter, Reorder,
6
6
  import { SvgRenderer } from '@syncfusion/ej2-svg-base';
7
7
  import { Splitter } from '@syncfusion/ej2-layouts';
8
8
  import { ContextMenu as ContextMenu$1, Tab, Toolbar as Toolbar$1 } from '@syncfusion/ej2-navigations';
9
- import { Count, HtmlEditor, Link, QuickToolbar, RichTextEditor, Toolbar as Toolbar$2 } from '@syncfusion/ej2-richtexteditor';
9
+ import { Count, HtmlEditor, Link, QuickToolbar, RichTextEditor, Table, Toolbar as Toolbar$2 } from '@syncfusion/ej2-richtexteditor';
10
10
  import { FormValidator, MaskedTextBox, NumericTextBox, TextBox } from '@syncfusion/ej2-inputs';
11
11
  import { CheckBox } from '@syncfusion/ej2-buttons';
12
12
  import { DatePicker, DateTimePicker } from '@syncfusion/ej2-calendars';
@@ -2815,7 +2815,7 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
2815
2815
  if (this.getSecondsInDecimal(sDate) === this.parent.defaultStartTime && isValid) {
2816
2816
  sDate.setHours(0, 0, 0, 0);
2817
2817
  }
2818
- if (this.getSecondsInDecimal(eDate) === this.parent.defaultEndTime) {
2818
+ if (this.getSecondsInDecimal(eDate) === this.parent.defaultEndTime && isValid) {
2819
2819
  eDate.setHours(24);
2820
2820
  }
2821
2821
  if (this.getSecondsInDecimal(eDate) === this.parent.defaultStartTime) {
@@ -8116,9 +8116,9 @@ var GanttTreeGrid = /** @__PURE__ @class */ (function () {
8116
8116
  this.bindEvents();
8117
8117
  var root = 'root';
8118
8118
  this.parent.treeGrid[root] = this.parent[root] ? this.parent[root] : this.parent;
8119
- setValue('registeredTemplate', this.registeredTemplate, this.parent.treeGrid.grid);
8119
+ setValue('registeredTemplate', this.registeredTemplate, this.parent.treeGrid);
8120
8120
  var ref = 'viewContainerRef';
8121
- setValue('viewContainerRef', this["" + ref], this.parent.treeGrid.grid);
8121
+ setValue('viewContainerRef', this.parent["" + ref], this.parent.treeGrid);
8122
8122
  this.parent.treeGrid.appendTo(this.treeGridElement);
8123
8123
  if (this.parent.treeGrid.grid && this.parent.toolbarModule && this.parent.isReact) {
8124
8124
  this.parent.treeGrid.grid.portals = this.parent.portals;
@@ -20181,7 +20181,6 @@ var TaskbarEdit = /** @__PURE__ @class */ (function (_super) {
20181
20181
  }
20182
20182
  else {
20183
20183
  rowElement = this.parent.getRowByIndex(parseInt(target.getAttribute('data-rowindex'))).children;
20184
-
20185
20184
  }
20186
20185
  if (rowElement) {
20187
20186
  if (this.parent.rowDragAndDropModule['dropPosition'] === 'above') {
@@ -20452,7 +20451,7 @@ var TaskbarEdit = /** @__PURE__ @class */ (function (_super) {
20452
20451
  var rowIndex = getValue('rowIndex', rowElement);
20453
20452
  var droppedTreeGridRecord = this.parent.flatData[rowIndex];
20454
20453
  var isValid = true;
20455
- if (this.parent.viewType === 'ResourceView' && !this.taskBarEditRecord.hasChildRecords && !droppedTreeGridRecord.hasChildRecords && this.taskBarEditRecord.parentItem.taskId === droppedTreeGridRecord.parentItem.taskId) {
20454
+ if (this.parent.viewType === 'ResourceView' && !this.taskBarEditRecord.hasChildRecords && !droppedTreeGridRecord.hasChildRecords && !isNullOrUndefined(droppedTreeGridRecord.parentItem) && this.taskBarEditRecord.parentItem.taskId === droppedTreeGridRecord.parentItem.taskId) {
20456
20455
  isValid = false;
20457
20456
  }
20458
20457
  if (droppedTreeGridRecord) {
@@ -21853,7 +21852,7 @@ var TaskbarEdit = /** @__PURE__ @class */ (function (_super) {
21853
21852
  droppedRecord.childRecords.length == 0)) ? 'child' : this.parent.rowDragAndDropModule['dropPosition'];
21854
21853
  }
21855
21854
  if (this.parent.rowDragAndDropModule) {
21856
- if (this.parent.viewType === 'ResourceView' && (position === 'child' && !droppedRecord.hasChildRecords)) {
21855
+ if (this.parent.viewType === 'ResourceView' && (position === 'child' && !droppedRecord.hasChildRecords) && !isNullOrUndefined(droppedRecord.parentItem)) {
21857
21856
  position = 'Invalid';
21858
21857
  this.parent.rowDragAndDropModule['dropPosition'] = 'Invalid';
21859
21858
  }
@@ -24520,7 +24519,7 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
24520
24519
  inputModel.enableHtmlSanitizer = this.parent.enableHtmlSanitizer;
24521
24520
  var ganttProp = this.editedRecord.ganttProperties;
24522
24521
  var divElement = this.createDivElement('', ganttObj.element.id + '' + itemName + 'TabContainer');
24523
- RichTextEditor.Inject(Toolbar$2, Link, HtmlEditor, QuickToolbar, Count);
24522
+ RichTextEditor.Inject(Toolbar$2, Link, HtmlEditor, QuickToolbar, Count, Table);
24524
24523
  inputModel.value = ganttProp.notes;
24525
24524
  var notesColumn = this.parent.columnByField[this.parent.taskFields.notes];
24526
24525
  if (notesColumn.allowEditing === false || notesColumn.isPrimaryKey || this.parent.readOnly) {
@@ -39692,7 +39691,7 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
39692
39691
  }
39693
39692
  graphics.drawRectangle(rectPen, rectBrush, x, y + pixelToPoint(height), width, page.getClientSize().height);
39694
39693
  if (this.holidayCompleted) {
39695
- var state = graphics.save();
39694
+ var state_1 = graphics.save();
39696
39695
  var font1 = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
39697
39696
  var fontHieght = font1.height;
39698
39697
  var fontSize = font1.size;
@@ -39700,7 +39699,7 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
39700
39699
  graphics.rotateTransform(-90);
39701
39700
  graphics.translateTransform(-(page.getClientSize().height / 2), -40);
39702
39701
  graphics.drawString(this.holidayLabel, font1, null, PdfBrushes.Black, 10, 10, null);
39703
- graphics.restore(state);
39702
+ graphics.restore(state_1);
39704
39703
  this.holidayCompleted = false;
39705
39704
  }
39706
39705
  if (this.fitHolidayCompleted) {
@@ -39709,12 +39708,12 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
39709
39708
  var fontHieght = font1.height;
39710
39709
  var fontSize = font1.size;
39711
39710
  graphics.drawRectangle(null, holidayBrush, x + width / 2 - fontSize, y + pixelToPoint(height), fontSize, page.getClientSize().height);
39712
- var state = graphics.save();
39711
+ var state_2 = graphics.save();
39713
39712
  graphics.translateTransform(x + width + width / 2 - fontSize, 40);
39714
39713
  graphics.rotateTransform(-90);
39715
39714
  graphics.translateTransform(-(page.getClientSize().height / 2), -40);
39716
39715
  graphics.drawString(this.holidayLabel, font1, null, PdfBrushes.Black, 10, 10, null);
39717
- graphics.restore(state);
39716
+ graphics.restore(state_2);
39718
39717
  this.fitHolidayCompleted = false;
39719
39718
  }
39720
39719
  var font = new PdfStandardFont(ganttStyle.fontFamily, e.fontSize, e.fontStyle);
@@ -39725,6 +39724,8 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
39725
39724
  var pLeft = ganttStyle.timeline.padding ? eventArgs.timelineCell.padding.left : 0;
39726
39725
  var pTop = ganttStyle.timeline.padding ? eventArgs.timelineCell.padding.top : 0;
39727
39726
  /* eslint-disable-next-line */
39727
+ var state = graphics.save();
39728
+ graphics.setClip(new RectangleF(x, y, width, pixelToPoint(height)));
39728
39729
  if (isTopTier) {
39729
39730
  x = x + pLeft + 4;
39730
39731
  }
@@ -39732,6 +39733,7 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
39732
39733
  x = x + pLeft;
39733
39734
  }
39734
39735
  graphics.drawString(eventArgs.value, font, null, textBrush, x, y + pTop, pixelToPoint(width), pixelToPoint(height), e.format);
39736
+ graphics.restore(state);
39735
39737
  };
39736
39738
  return PdfTimeline;
39737
39739
  }());