@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.
- package/CHANGELOG.md +19 -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 +10 -8
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +14 -12
- 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 +20 -20
- package/src/gantt/actions/dialog-edit.js +2 -2
- package/src/gantt/actions/taskbar-edit.js +2 -3
- package/src/gantt/base/task-processor.js +1 -1
- package/src/gantt/base/tree-grid.js +2 -2
- package/src/gantt/export/pdf-timeline.js +8 -5
- package/styles/bootstrap-dark.css +1 -1
- package/styles/bootstrap.css +1 -1
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/gantt/_layout.scss +1 -1
- package/styles/gantt/bootstrap-dark.css +1 -1
- package/styles/gantt/bootstrap.css +1 -1
- package/styles/gantt/bootstrap4.css +1 -1
- package/styles/gantt/bootstrap5-dark.css +1 -1
- package/styles/gantt/bootstrap5.css +1 -1
- package/styles/gantt/fabric-dark.css +1 -1
- package/styles/gantt/fabric.css +1 -1
- package/styles/gantt/fluent-dark.css +1 -1
- package/styles/gantt/fluent.css +1 -1
- package/styles/gantt/highcontrast-light.css +1 -1
- package/styles/gantt/highcontrast.css +1 -1
- package/styles/gantt/material-dark.css +1 -1
- package/styles/gantt/material.css +1 -1
- package/styles/gantt/material3-dark.css +1 -1
- package/styles/gantt/material3.css +1 -1
- package/styles/gantt/tailwind-dark.css +1 -1
- package/styles/gantt/tailwind.css +1 -1
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/material.css +1 -1
- package/styles/material3-dark.css +1 -1
- package/styles/material3.css +1 -1
- package/styles/tailwind-dark.css +1 -1
- 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) {
|
|
@@ -8041,9 +8041,9 @@ class GanttTreeGrid {
|
|
|
8041
8041
|
this.bindEvents();
|
|
8042
8042
|
const root = 'root';
|
|
8043
8043
|
this.parent.treeGrid[root] = this.parent[root] ? this.parent[root] : this.parent;
|
|
8044
|
-
setValue('registeredTemplate', this.registeredTemplate, this.parent.treeGrid
|
|
8044
|
+
setValue('registeredTemplate', this.registeredTemplate, this.parent.treeGrid);
|
|
8045
8045
|
const ref = 'viewContainerRef';
|
|
8046
|
-
setValue('viewContainerRef', this[`${ref}`], this.parent.treeGrid
|
|
8046
|
+
setValue('viewContainerRef', this.parent[`${ref}`], this.parent.treeGrid);
|
|
8047
8047
|
this.parent.treeGrid.appendTo(this.treeGridElement);
|
|
8048
8048
|
if (this.parent.treeGrid.grid && this.parent.toolbarModule && this.parent.isReact) {
|
|
8049
8049
|
this.parent.treeGrid.grid.portals = this.parent.portals;
|
|
@@ -19700,7 +19700,6 @@ class TaskbarEdit extends DateProcessor {
|
|
|
19700
19700
|
}
|
|
19701
19701
|
else {
|
|
19702
19702
|
rowElement = this.parent.getRowByIndex(parseInt(target.getAttribute('data-rowindex'))).children;
|
|
19703
|
-
|
|
19704
19703
|
}
|
|
19705
19704
|
if (rowElement) {
|
|
19706
19705
|
if (this.parent.rowDragAndDropModule['dropPosition'] === 'above') {
|
|
@@ -19969,7 +19968,7 @@ class TaskbarEdit extends DateProcessor {
|
|
|
19969
19968
|
let rowIndex = getValue('rowIndex', rowElement);
|
|
19970
19969
|
let droppedTreeGridRecord = this.parent.flatData[rowIndex];
|
|
19971
19970
|
let isValid = true;
|
|
19972
|
-
if (this.parent.viewType === 'ResourceView' && !this.taskBarEditRecord.hasChildRecords && !droppedTreeGridRecord.hasChildRecords && this.taskBarEditRecord.parentItem.taskId === droppedTreeGridRecord.parentItem.taskId) {
|
|
19971
|
+
if (this.parent.viewType === 'ResourceView' && !this.taskBarEditRecord.hasChildRecords && !droppedTreeGridRecord.hasChildRecords && !isNullOrUndefined(droppedTreeGridRecord.parentItem) && this.taskBarEditRecord.parentItem.taskId === droppedTreeGridRecord.parentItem.taskId) {
|
|
19973
19972
|
isValid = false;
|
|
19974
19973
|
}
|
|
19975
19974
|
if (droppedTreeGridRecord) {
|
|
@@ -21368,7 +21367,7 @@ class TaskbarEdit extends DateProcessor {
|
|
|
21368
21367
|
droppedRecord.childRecords.length == 0)) ? 'child' : this.parent.rowDragAndDropModule['dropPosition'];
|
|
21369
21368
|
}
|
|
21370
21369
|
if (this.parent.rowDragAndDropModule) {
|
|
21371
|
-
if (this.parent.viewType === 'ResourceView' && (position === 'child' && !droppedRecord.hasChildRecords)) {
|
|
21370
|
+
if (this.parent.viewType === 'ResourceView' && (position === 'child' && !droppedRecord.hasChildRecords) && !isNullOrUndefined(droppedRecord.parentItem)) {
|
|
21372
21371
|
position = 'Invalid';
|
|
21373
21372
|
this.parent.rowDragAndDropModule['dropPosition'] = 'Invalid';
|
|
21374
21373
|
}
|
|
@@ -24014,7 +24013,7 @@ class DialogEdit {
|
|
|
24014
24013
|
inputModel.enableHtmlSanitizer = this.parent.enableHtmlSanitizer;
|
|
24015
24014
|
const ganttProp = this.editedRecord.ganttProperties;
|
|
24016
24015
|
const divElement = this.createDivElement('', ganttObj.element.id + '' + itemName + 'TabContainer');
|
|
24017
|
-
RichTextEditor.Inject(Toolbar$2, Link, HtmlEditor, QuickToolbar, Count);
|
|
24016
|
+
RichTextEditor.Inject(Toolbar$2, Link, HtmlEditor, QuickToolbar, Count, Table);
|
|
24018
24017
|
inputModel.value = ganttProp.notes;
|
|
24019
24018
|
const notesColumn = this.parent.columnByField[this.parent.taskFields.notes];
|
|
24020
24019
|
if (notesColumn.allowEditing === false || notesColumn.isPrimaryKey || this.parent.readOnly) {
|
|
@@ -38836,6 +38835,8 @@ class PdfTimeline {
|
|
|
38836
38835
|
const pLeft = ganttStyle.timeline.padding ? eventArgs.timelineCell.padding.left : 0;
|
|
38837
38836
|
const pTop = ganttStyle.timeline.padding ? eventArgs.timelineCell.padding.top : 0;
|
|
38838
38837
|
/* eslint-disable-next-line */
|
|
38838
|
+
let state = graphics.save();
|
|
38839
|
+
graphics.setClip(new RectangleF(x, y, width, pixelToPoint(height)));
|
|
38839
38840
|
if (isTopTier) {
|
|
38840
38841
|
x = x + pLeft + 4;
|
|
38841
38842
|
}
|
|
@@ -38843,6 +38844,7 @@ class PdfTimeline {
|
|
|
38843
38844
|
x = x + pLeft;
|
|
38844
38845
|
}
|
|
38845
38846
|
graphics.drawString(eventArgs.value, font, null, textBrush, x, y + pTop, pixelToPoint(width), pixelToPoint(height), e.format);
|
|
38847
|
+
graphics.restore(state);
|
|
38846
38848
|
}
|
|
38847
38849
|
}
|
|
38848
38850
|
|