@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';
@@ -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) {
@@ -5254,7 +5254,7 @@ var GanttChart = /** @__PURE__ @class */ (function () {
5254
5254
  */
5255
5255
  GanttChart.prototype.ganttChartMove = function (e) {
5256
5256
  if (this.parent.editSettings.allowTaskbarEditing) {
5257
- if (this.parent.element.getElementsByClassName('e-clone-taskbar').length > 0) {
5257
+ if (this.parent.element.getElementsByClassName('e-clone-taskbar').length > 0 && !this.parent.enableRtl) {
5258
5258
  var xValue = void 0;
5259
5259
  if (e.type === 'touchmove' || e.type === 'touchstart' || e.type === 'touchend') {
5260
5260
  xValue = e['changedTouches'][0].pageX;
@@ -15073,9 +15073,6 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
15073
15073
  if (isNullOrUndefined(this.resourceFields.unit)) { //set resourceUnit as unit if not mapping
15074
15074
  this.setProperties({ resourceFields: { unit: 'unit' } }, true);
15075
15075
  }
15076
- if (!isNullOrUndefined(this.taskFields.work)) {
15077
- this.setProperties({ taskType: 'FixedWork' }, true);
15078
- }
15079
15076
  this.taskIds = [];
15080
15077
  };
15081
15078
  /**
@@ -24123,6 +24120,9 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
24123
24120
  DialogEdit.prototype.createDivElement = function (className, id) {
24124
24121
  return createElement('div', { className: className, id: id });
24125
24122
  };
24123
+ DialogEdit.prototype.createFormElement = function (className, id) {
24124
+ return createElement('form', { className: className, id: id });
24125
+ };
24126
24126
  DialogEdit.prototype.createInputElement = function (className, id, fieldName, type) {
24127
24127
  return createElement(type || 'input', {
24128
24128
  className: className, attrs: {
@@ -24237,7 +24237,7 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
24237
24237
  DialogEdit.prototype.renderGeneralTab = function (itemName) {
24238
24238
  var ganttObj = this.parent;
24239
24239
  var itemModel = this.beforeOpenArgs[itemName];
24240
- var divElement = this.createDivElement('e-edit-form-row', ganttObj.element.id
24240
+ var divElement = this.createFormElement('e-edit-form-row', ganttObj.element.id
24241
24241
  + '' + itemName + 'TabContainer');
24242
24242
  for (var _i = 0, _a = Object.keys(itemModel); _i < _a.length; _i++) {
24243
24243
  var key = _a[_i];
@@ -24519,7 +24519,7 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
24519
24519
  inputModel.enableHtmlSanitizer = this.parent.enableHtmlSanitizer;
24520
24520
  var ganttProp = this.editedRecord.ganttProperties;
24521
24521
  var divElement = this.createDivElement('', ganttObj.element.id + '' + itemName + 'TabContainer');
24522
- RichTextEditor.Inject(Toolbar$2, Link, HtmlEditor, QuickToolbar, Count);
24522
+ RichTextEditor.Inject(Toolbar$2, Link, HtmlEditor, QuickToolbar, Count, Table);
24523
24523
  inputModel.value = ganttProp.notes;
24524
24524
  var notesColumn = this.parent.columnByField[this.parent.taskFields.notes];
24525
24525
  if (notesColumn.allowEditing === false || notesColumn.isPrimaryKey || this.parent.readOnly) {
@@ -24533,7 +24533,7 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
24533
24533
  var _this = this;
24534
24534
  var ganttId = this.parent.element.id;
24535
24535
  var ganttData = this.editedRecord;
24536
- var divElement = this.createDivElement('e-edit-form-column');
24536
+ var divElement = this.createFormElement('e-edit-form-column');
24537
24537
  var inputElement;
24538
24538
  var editArgs = { column: column, data: ganttData };
24539
24539
  if (!isNullOrUndefined(column.edit) && isNullOrUndefined(column.edit.params)) {
@@ -36392,6 +36392,12 @@ var PdfTreeGridCell = /** @__PURE__ @class */ (function () {
36392
36392
  if (typeof this.value === 'string') {
36393
36393
  /* eslint-disable-next-line */
36394
36394
  var font = new PdfStandardFont(this.row.treegrid.ganttStyle.fontFamily, this.style.fontSize, this.style.fontStyle);
36395
+ if (this.row.isParentRow) {
36396
+ font = new PdfStandardFont(this.row.treegrid.ganttStyle.fontFamily, this.style.fontSize, PdfFontStyle.Bold);
36397
+ }
36398
+ else {
36399
+ font = new PdfStandardFont(this.row.treegrid.ganttStyle.fontFamily, this.style.fontSize, this.style.fontStyle);
36400
+ }
36395
36401
  if (this.row.treegrid.ganttStyle.font) {
36396
36402
  font = this.row.treegrid.ganttStyle.font;
36397
36403
  }
@@ -36427,13 +36433,24 @@ var PdfTreeGridCell = /** @__PURE__ @class */ (function () {
36427
36433
  currentValue = !(isNullOrUndefined(this.remainingString) || this.remainingString === '') ? this.remainingString : this.value;
36428
36434
  }
36429
36435
  /* eslint-disable */
36430
- var font = new PdfStandardFont(this.row.treegrid.ganttStyle.fontFamily, this.style.fontSize, this.style.fontStyle);
36436
+ var font = null;
36437
+ if (this.row.isParentRow) {
36438
+ font = new PdfStandardFont(this.row.treegrid.ganttStyle.fontFamily, this.style.fontSize, PdfFontStyle.Bold);
36439
+ }
36440
+ else {
36441
+ font = new PdfStandardFont(this.row.treegrid.ganttStyle.fontFamily, this.style.fontSize, this.style.fontStyle);
36442
+ }
36431
36443
  if (this.row.treegrid.ganttStyle.font) {
36432
36444
  font = this.row.treegrid.ganttStyle.font;
36433
36445
  }
36434
36446
  /* eslint-disable */
36435
36447
  var slr = layouter.layout(currentValue, font, this.style.format, new SizeF(width, 0), false, new SizeF(0, 0));
36436
- height += slr.actualSize.height;
36448
+ if (currentValue.length > 80) {
36449
+ height += slr.actualSize.height + 20;
36450
+ }
36451
+ else {
36452
+ height += slr.actualSize.height;
36453
+ }
36437
36454
  height += (this.style.borders.top.width + this.style.borders.bottom.width) * 2;
36438
36455
  }
36439
36456
  height += this.row.treegrid.style.cellPadding.top + this.row.treegrid.style.cellPadding.bottom;
@@ -36525,7 +36542,7 @@ var PdfTreeGridCell = /** @__PURE__ @class */ (function () {
36525
36542
  if (this.finishedDrawingCell) {
36526
36543
  temp = (this.remainingString === '') ? this.remainingString : this.value;
36527
36544
  /* eslint-disable-next-line */
36528
- 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);
36545
+ 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);
36529
36546
  }
36530
36547
  else {
36531
36548
  /* eslint-disable-next-line */