@syncfusion/ej2-gantt 24.2.3 → 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.
- package/CHANGELOG.md +11 -0
- package/dist/ej2-gantt.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-gantt.es2015.js +26 -9
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +26 -9
- package/dist/es6/ej2-gantt.es5.js.map +1 -1
- package/dist/global/ej2-gantt.min.js +2 -2
- package/dist/global/ej2-gantt.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +14 -14
- package/src/gantt/actions/dialog-edit.d.ts +1 -0
- package/src/gantt/actions/dialog-edit.js +5 -2
- package/src/gantt/base/gantt-chart.js +1 -1
- package/src/gantt/base/gantt.js +0 -3
- package/src/gantt/export/pdf-base/pdf-grid-table.js +20 -3
|
@@ -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.
|
|
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) {
|
|
@@ -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.
|
|
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 =
|
|
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
|
-
|
|
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 */
|