@syncfusion/ej2-gantt 21.2.3 → 21.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 +13 -1
- 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 +19 -6
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +19 -6
- 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 +18 -15
- package/src/gantt/actions/dialog-edit.js +1 -1
- package/src/gantt/actions/edit.js +4 -1
- package/src/gantt/base/gantt.js +1 -1
- package/src/gantt/renderer/chart-rows.js +12 -2
- package/src/gantt/renderer/timeline.js +1 -1
|
@@ -5879,7 +5879,7 @@ class Timeline {
|
|
|
5879
5879
|
let firstValue;
|
|
5880
5880
|
let secondValue;
|
|
5881
5881
|
const zoomingCollections = [...this.parent.zoomingLevels];
|
|
5882
|
-
const sortedCollectons = zoomingCollections.sort((a, b) => (a.perDayWidth < b.perDayWidth) ? 1 : -1);
|
|
5882
|
+
const sortedCollectons = zoomingCollections.sort((a, b) => (!a.perDayWidth && !b.perDayWidth ? 0 : (a.perDayWidth < b.perDayWidth) ? 1 : -1));
|
|
5883
5883
|
if (perDayWidth === 0) { // return when the Gantt chart is not in viewable state.
|
|
5884
5884
|
return;
|
|
5885
5885
|
}
|
|
@@ -8776,7 +8776,12 @@ class ChartRows extends DateProcessor {
|
|
|
8776
8776
|
data.ganttProperties.segments.length === 0))) {
|
|
8777
8777
|
if (template !== '' && !isNullOrUndefined(progressDiv) && progressDiv.length > 0) {
|
|
8778
8778
|
let templateElement = this.createDivElement(template)[0];
|
|
8779
|
-
|
|
8779
|
+
if (this.parent.disableHtmlEncode) {
|
|
8780
|
+
templateElement.innerText = labelString;
|
|
8781
|
+
}
|
|
8782
|
+
else {
|
|
8783
|
+
templateElement.innerHTML = labelString;
|
|
8784
|
+
}
|
|
8780
8785
|
let childLabel = this.parent.labelSettings.taskLabel;
|
|
8781
8786
|
if (childLabel && childLabel['elementRef'])
|
|
8782
8787
|
templateElement.appendChild(tempDiv);
|
|
@@ -9442,7 +9447,12 @@ class ChartRows extends DateProcessor {
|
|
|
9442
9447
|
this.taskBarHeight + 'px;"></span>';
|
|
9443
9448
|
}
|
|
9444
9449
|
let labelElement = this.createDivElement(labelDiv)[0];
|
|
9445
|
-
|
|
9450
|
+
if (this.parent.disableHtmlEncode) {
|
|
9451
|
+
labelElement.innerText = labelString;
|
|
9452
|
+
}
|
|
9453
|
+
else {
|
|
9454
|
+
labelElement.innerHTML = labelString;
|
|
9455
|
+
}
|
|
9446
9456
|
let parentLabel = this.parent.labelSettings.taskLabel;
|
|
9447
9457
|
if (parentLabel && parentLabel['elementRef'])
|
|
9448
9458
|
labelElement.appendChild(div);
|
|
@@ -15124,7 +15134,7 @@ let Gantt = class Gantt extends Component {
|
|
|
15124
15134
|
args: [this]
|
|
15125
15135
|
});
|
|
15126
15136
|
}
|
|
15127
|
-
if (this.toolbar) {
|
|
15137
|
+
if (this.toolbar && this.toolbar.length > 0) {
|
|
15128
15138
|
modules.push({
|
|
15129
15139
|
member: 'toolbar',
|
|
15130
15140
|
args: [this]
|
|
@@ -22445,7 +22455,7 @@ class DialogEdit {
|
|
|
22445
22455
|
const ganttObj = this.parent;
|
|
22446
22456
|
const rte = notesElement.ej2_instances[0];
|
|
22447
22457
|
if (this.isEdit) {
|
|
22448
|
-
if (ganttObj.columnByField[ganttObj.taskFields.notes].disableHtmlEncode) {
|
|
22458
|
+
if (ganttObj.columnByField[ganttObj.taskFields.notes].disableHtmlEncode === false) {
|
|
22449
22459
|
this.parent.setRecordValue('notes', rte.getHtml(), this.rowData.ganttProperties, true);
|
|
22450
22460
|
}
|
|
22451
22461
|
else {
|
|
@@ -23860,7 +23870,7 @@ class Edit$2 {
|
|
|
23860
23870
|
}
|
|
23861
23871
|
else if ([tasks.progress, tasks.notes, tasks.durationUnit, tasks.expandState,
|
|
23862
23872
|
tasks.milestone, tasks.name, tasks.baselineStartDate,
|
|
23863
|
-
tasks.baselineEndDate, tasks.id, tasks.segments].indexOf(key) !== -1) {
|
|
23873
|
+
tasks.baselineEndDate, tasks.id, tasks.segments, tasks.cssClass].indexOf(key) !== -1) {
|
|
23864
23874
|
const column = ganttObj.columnByField[key];
|
|
23865
23875
|
/* eslint-disable-next-line */
|
|
23866
23876
|
let value = data[key];
|
|
@@ -23874,6 +23884,9 @@ class Edit$2 {
|
|
|
23874
23884
|
else if (key === tasks.name) {
|
|
23875
23885
|
ganttPropKey = 'taskName';
|
|
23876
23886
|
}
|
|
23887
|
+
else if (key === tasks.cssClass) {
|
|
23888
|
+
ganttPropKey = 'cssClass';
|
|
23889
|
+
}
|
|
23877
23890
|
else if ((key === tasks.segments) && (!isNullOrUndefined(ganttData.ganttProperties.segments))) {
|
|
23878
23891
|
ganttPropKey = 'segments';
|
|
23879
23892
|
/* eslint-disable-next-line */
|