@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
|
@@ -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.
|
|
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];
|
|
@@ -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.
|
|
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 =
|
|
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
|
-
|
|
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 */
|