@syncfusion/ej2-gantt 24.1.47 → 24.2.4

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 (53) hide show
  1. package/CHANGELOG.md +20 -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 +29 -12
  6. package/dist/es6/ej2-gantt.es2015.js.map +1 -1
  7. package/dist/es6/ej2-gantt.es5.js +29 -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.d.ts +1 -0
  14. package/src/gantt/actions/dialog-edit.js +7 -4
  15. package/src/gantt/base/gantt-chart.js +1 -1
  16. package/src/gantt/base/gantt.js +0 -3
  17. package/src/gantt/base/task-processor.js +1 -1
  18. package/src/gantt/export/pdf-base/pdf-grid-table.js +20 -3
  19. package/styles/bootstrap-dark.css +1 -1
  20. package/styles/bootstrap.css +1 -1
  21. package/styles/bootstrap4.css +1 -1
  22. package/styles/bootstrap5-dark.css +1 -1
  23. package/styles/bootstrap5.css +1 -1
  24. package/styles/fabric-dark.css +1 -1
  25. package/styles/fabric.css +1 -1
  26. package/styles/fluent-dark.css +1 -1
  27. package/styles/fluent.css +1 -1
  28. package/styles/gantt/_layout.scss +1 -1
  29. package/styles/gantt/bootstrap-dark.css +1 -1
  30. package/styles/gantt/bootstrap.css +1 -1
  31. package/styles/gantt/bootstrap4.css +1 -1
  32. package/styles/gantt/bootstrap5-dark.css +1 -1
  33. package/styles/gantt/bootstrap5.css +1 -1
  34. package/styles/gantt/fabric-dark.css +1 -1
  35. package/styles/gantt/fabric.css +1 -1
  36. package/styles/gantt/fluent-dark.css +1 -1
  37. package/styles/gantt/fluent.css +1 -1
  38. package/styles/gantt/highcontrast-light.css +1 -1
  39. package/styles/gantt/highcontrast.css +1 -1
  40. package/styles/gantt/material-dark.css +1 -1
  41. package/styles/gantt/material.css +1 -1
  42. package/styles/gantt/material3-dark.css +1 -1
  43. package/styles/gantt/material3.css +1 -1
  44. package/styles/gantt/tailwind-dark.css +1 -1
  45. package/styles/gantt/tailwind.css +1 -1
  46. package/styles/highcontrast-light.css +1 -1
  47. package/styles/highcontrast.css +1 -1
  48. package/styles/material-dark.css +1 -1
  49. package/styles/material.css +1 -1
  50. package/styles/material3-dark.css +1 -1
  51. package/styles/material3.css +1 -1
  52. package/styles/tailwind-dark.css +1 -1
  53. 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';
@@ -2776,7 +2776,7 @@ class TaskProcessor extends DateProcessor {
2776
2776
  if (this.getSecondsInDecimal(sDate) === this.parent.defaultStartTime && isValid) {
2777
2777
  sDate.setHours(0, 0, 0, 0);
2778
2778
  }
2779
- if (this.getSecondsInDecimal(eDate) === this.parent.defaultEndTime) {
2779
+ if (this.getSecondsInDecimal(eDate) === this.parent.defaultEndTime && isValid) {
2780
2780
  eDate.setHours(24);
2781
2781
  }
2782
2782
  if (this.getSecondsInDecimal(eDate) === this.parent.defaultStartTime) {
@@ -5204,7 +5204,7 @@ class GanttChart {
5204
5204
  */
5205
5205
  ganttChartMove(e) {
5206
5206
  if (this.parent.editSettings.allowTaskbarEditing) {
5207
- if (this.parent.element.getElementsByClassName('e-clone-taskbar').length > 0) {
5207
+ if (this.parent.element.getElementsByClassName('e-clone-taskbar').length > 0 && !this.parent.enableRtl) {
5208
5208
  let xValue;
5209
5209
  if (e.type === 'touchmove' || e.type === 'touchstart' || e.type === 'touchend') {
5210
5210
  xValue = e['changedTouches'][0].pageX;
@@ -14632,9 +14632,6 @@ let Gantt = class Gantt extends Component {
14632
14632
  if (isNullOrUndefined(this.resourceFields.unit)) { //set resourceUnit as unit if not mapping
14633
14633
  this.setProperties({ resourceFields: { unit: 'unit' } }, true);
14634
14634
  }
14635
- if (!isNullOrUndefined(this.taskFields.work)) {
14636
- this.setProperties({ taskType: 'FixedWork' }, true);
14637
- }
14638
14635
  this.taskIds = [];
14639
14636
  }
14640
14637
  /**
@@ -23626,6 +23623,9 @@ class DialogEdit {
23626
23623
  createDivElement(className, id) {
23627
23624
  return createElement('div', { className: className, id: id });
23628
23625
  }
23626
+ createFormElement(className, id) {
23627
+ return createElement('form', { className: className, id: id });
23628
+ }
23629
23629
  createInputElement(className, id, fieldName, type) {
23630
23630
  return createElement(type || 'input', {
23631
23631
  className: className, attrs: {
@@ -23740,7 +23740,7 @@ class DialogEdit {
23740
23740
  renderGeneralTab(itemName) {
23741
23741
  const ganttObj = this.parent;
23742
23742
  const itemModel = this.beforeOpenArgs[itemName];
23743
- const divElement = this.createDivElement('e-edit-form-row', ganttObj.element.id
23743
+ const divElement = this.createFormElement('e-edit-form-row', ganttObj.element.id
23744
23744
  + '' + itemName + 'TabContainer');
23745
23745
  for (const key of Object.keys(itemModel)) {
23746
23746
  if (this.parent.columnByField[key].visible === false) {
@@ -24013,7 +24013,7 @@ class DialogEdit {
24013
24013
  inputModel.enableHtmlSanitizer = this.parent.enableHtmlSanitizer;
24014
24014
  const ganttProp = this.editedRecord.ganttProperties;
24015
24015
  const divElement = this.createDivElement('', ganttObj.element.id + '' + itemName + 'TabContainer');
24016
- RichTextEditor.Inject(Toolbar$2, Link, HtmlEditor, QuickToolbar, Count);
24016
+ RichTextEditor.Inject(Toolbar$2, Link, HtmlEditor, QuickToolbar, Count, Table);
24017
24017
  inputModel.value = ganttProp.notes;
24018
24018
  const notesColumn = this.parent.columnByField[this.parent.taskFields.notes];
24019
24019
  if (notesColumn.allowEditing === false || notesColumn.isPrimaryKey || this.parent.readOnly) {
@@ -24026,7 +24026,7 @@ class DialogEdit {
24026
24026
  renderInputElements(inputModel, column) {
24027
24027
  const ganttId = this.parent.element.id;
24028
24028
  const ganttData = this.editedRecord;
24029
- const divElement = this.createDivElement('e-edit-form-column');
24029
+ const divElement = this.createFormElement('e-edit-form-column');
24030
24030
  let inputElement;
24031
24031
  const editArgs = { column: column, data: ganttData };
24032
24032
  if (!isNullOrUndefined(column.edit) && isNullOrUndefined(column.edit.params)) {
@@ -35629,6 +35629,12 @@ class PdfTreeGridCell {
35629
35629
  if (typeof this.value === 'string') {
35630
35630
  /* eslint-disable-next-line */
35631
35631
  let font = new PdfStandardFont(this.row.treegrid.ganttStyle.fontFamily, this.style.fontSize, this.style.fontStyle);
35632
+ if (this.row.isParentRow) {
35633
+ font = new PdfStandardFont(this.row.treegrid.ganttStyle.fontFamily, this.style.fontSize, PdfFontStyle.Bold);
35634
+ }
35635
+ else {
35636
+ font = new PdfStandardFont(this.row.treegrid.ganttStyle.fontFamily, this.style.fontSize, this.style.fontStyle);
35637
+ }
35632
35638
  if (this.row.treegrid.ganttStyle.font) {
35633
35639
  font = this.row.treegrid.ganttStyle.font;
35634
35640
  }
@@ -35664,13 +35670,24 @@ class PdfTreeGridCell {
35664
35670
  currentValue = !(isNullOrUndefined(this.remainingString) || this.remainingString === '') ? this.remainingString : this.value;
35665
35671
  }
35666
35672
  /* eslint-disable */
35667
- let font = new PdfStandardFont(this.row.treegrid.ganttStyle.fontFamily, this.style.fontSize, this.style.fontStyle);
35673
+ let font = null;
35674
+ if (this.row.isParentRow) {
35675
+ font = new PdfStandardFont(this.row.treegrid.ganttStyle.fontFamily, this.style.fontSize, PdfFontStyle.Bold);
35676
+ }
35677
+ else {
35678
+ font = new PdfStandardFont(this.row.treegrid.ganttStyle.fontFamily, this.style.fontSize, this.style.fontStyle);
35679
+ }
35668
35680
  if (this.row.treegrid.ganttStyle.font) {
35669
35681
  font = this.row.treegrid.ganttStyle.font;
35670
35682
  }
35671
35683
  /* eslint-disable */
35672
35684
  const slr = layouter.layout(currentValue, font, this.style.format, new SizeF(width, 0), false, new SizeF(0, 0));
35673
- height += slr.actualSize.height;
35685
+ if (currentValue.length > 80) {
35686
+ height += slr.actualSize.height + 20;
35687
+ }
35688
+ else {
35689
+ height += slr.actualSize.height;
35690
+ }
35674
35691
  height += (this.style.borders.top.width + this.style.borders.bottom.width) * 2;
35675
35692
  }
35676
35693
  height += this.row.treegrid.style.cellPadding.top + this.row.treegrid.style.cellPadding.bottom;
@@ -35762,7 +35779,7 @@ class PdfTreeGridCell {
35762
35779
  if (this.finishedDrawingCell) {
35763
35780
  temp = (this.remainingString === '') ? this.remainingString : this.value;
35764
35781
  /* eslint-disable-next-line */
35765
- graphics.drawString(temp, font, textPen, textBrush, (innerLayoutArea.x + leftAdjustment), this.isHeaderCell ? innerLayoutArea.y - 16 : innerLayoutArea.y, (innerLayoutArea.width - leftAdjustment - padding), (innerLayoutArea.height - padding), this.style.format);
35782
+ graphics.drawString(temp, font, textPen, textBrush, (innerLayoutArea.x + leftAdjustment), this.isHeaderCell ? innerLayoutArea.y - 16 : innerLayoutArea.y - 3, (innerLayoutArea.width - leftAdjustment - padding), (innerLayoutArea.height - padding), this.style.format);
35766
35783
  }
35767
35784
  else {
35768
35785
  /* eslint-disable-next-line */