@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 21.2.3
3
+ * version : 21.2.4
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-gantt@*",
3
- "_id": "@syncfusion/ej2-gantt@21.1.41",
3
+ "_id": "@syncfusion/ej2-gantt@21.2.3",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-HqNK10wkFFpZ17YU9HVZPZmaEL+xsJRC8P6Kr0FepcgNxQcy8FNQqIDPL4KsvjICXh4IMuwyyFdljZtV4TJFfA==",
5
+ "_integrity": "sha512-eiPwWiYorOZdyr5Badi29jFmSlFB3zDsGd7BIwAhHoBEtBKbfLoa0/CpnmmxOeLEi7qBkFNBhzry1GRKCLK/hw==",
6
6
  "_location": "/@syncfusion/ej2-gantt",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -18,10 +18,13 @@
18
18
  },
19
19
  "_requiredBy": [
20
20
  "/",
21
- "/@syncfusion/ej2"
21
+ "/@syncfusion/ej2",
22
+ "/@syncfusion/ej2-angular-gantt",
23
+ "/@syncfusion/ej2-react-gantt",
24
+ "/@syncfusion/ej2-vue-gantt"
22
25
  ],
23
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-21.1.41.tgz",
24
- "_shasum": "047e11b79fe94cc870713b4526282ab7a50f3d5e",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-21.2.3.tgz",
27
+ "_shasum": "c48d795304643ff8995cee4782ba26eb1fa2445b",
25
28
  "_spec": "@syncfusion/ej2-gantt@*",
26
29
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
27
30
  "author": {
@@ -34,18 +37,18 @@
34
37
  "dependencies": {
35
38
  "@syncfusion/ej2-base": "~21.2.3",
36
39
  "@syncfusion/ej2-buttons": "~21.2.3",
37
- "@syncfusion/ej2-calendars": "~21.2.3",
38
- "@syncfusion/ej2-data": "~21.2.3",
39
- "@syncfusion/ej2-dropdowns": "~21.2.3",
40
- "@syncfusion/ej2-grids": "~21.2.3",
41
- "@syncfusion/ej2-inputs": "~21.2.3",
40
+ "@syncfusion/ej2-calendars": "~21.2.4",
41
+ "@syncfusion/ej2-data": "~21.2.4",
42
+ "@syncfusion/ej2-dropdowns": "~21.2.4",
43
+ "@syncfusion/ej2-grids": "~21.2.4",
44
+ "@syncfusion/ej2-inputs": "~21.2.4",
42
45
  "@syncfusion/ej2-layouts": "~21.2.3",
43
46
  "@syncfusion/ej2-lists": "~21.2.3",
44
- "@syncfusion/ej2-navigations": "~21.2.3",
47
+ "@syncfusion/ej2-navigations": "~21.2.4",
45
48
  "@syncfusion/ej2-notifications": "~21.2.3",
46
- "@syncfusion/ej2-popups": "~21.2.3",
47
- "@syncfusion/ej2-richtexteditor": "~21.2.3",
48
- "@syncfusion/ej2-treegrid": "~21.2.3"
49
+ "@syncfusion/ej2-popups": "~21.2.4",
50
+ "@syncfusion/ej2-richtexteditor": "~21.2.4",
51
+ "@syncfusion/ej2-treegrid": "~21.2.4"
49
52
  },
50
53
  "deprecated": false,
51
54
  "description": "Essential JS 2 Gantt Component",
@@ -70,6 +73,6 @@
70
73
  "url": "git+https://github.com/syncfusion/ej2-gantt.git"
71
74
  },
72
75
  "typings": "index.d.ts",
73
- "version": "21.2.3",
76
+ "version": "21.2.4",
74
77
  "sideEffects": false
75
78
  }
@@ -2356,7 +2356,7 @@ var DialogEdit = /** @class */ (function () {
2356
2356
  var ganttObj = this.parent;
2357
2357
  var rte = notesElement.ej2_instances[0];
2358
2358
  if (this.isEdit) {
2359
- if (ganttObj.columnByField[ganttObj.taskFields.notes].disableHtmlEncode) {
2359
+ if (ganttObj.columnByField[ganttObj.taskFields.notes].disableHtmlEncode === false) {
2360
2360
  this.parent.setRecordValue('notes', rte.getHtml(), this.rowData.ganttProperties, true);
2361
2361
  }
2362
2362
  else {
@@ -445,7 +445,7 @@ var Edit = /** @class */ (function () {
445
445
  }
446
446
  else if ([tasks.progress, tasks.notes, tasks.durationUnit, tasks.expandState,
447
447
  tasks.milestone, tasks.name, tasks.baselineStartDate,
448
- tasks.baselineEndDate, tasks.id, tasks.segments].indexOf(key) !== -1) {
448
+ tasks.baselineEndDate, tasks.id, tasks.segments, tasks.cssClass].indexOf(key) !== -1) {
449
449
  var column = ganttObj.columnByField[key];
450
450
  /* eslint-disable-next-line */
451
451
  var value = data[key];
@@ -459,6 +459,9 @@ var Edit = /** @class */ (function () {
459
459
  else if (key === tasks.name) {
460
460
  ganttPropKey = 'taskName';
461
461
  }
462
+ else if (key === tasks.cssClass) {
463
+ ganttPropKey = 'cssClass';
464
+ }
462
465
  else if ((key === tasks.segments) && (!isNullOrUndefined(ganttData.ganttProperties.segments))) {
463
466
  ganttPropKey = 'segments';
464
467
  /* eslint-disable-next-line */
@@ -1683,7 +1683,7 @@ var Gantt = /** @class */ (function (_super) {
1683
1683
  args: [this]
1684
1684
  });
1685
1685
  }
1686
- if (this.toolbar) {
1686
+ if (this.toolbar && this.toolbar.length > 0) {
1687
1687
  modules.push({
1688
1688
  member: 'toolbar',
1689
1689
  args: [this]
@@ -229,7 +229,12 @@ var ChartRows = /** @class */ (function (_super) {
229
229
  data.ganttProperties.segments.length === 0))) {
230
230
  if (template !== '' && !isNullOrUndefined(progressDiv) && progressDiv.length > 0) {
231
231
  var templateElement = this.createDivElement(template)[0];
232
- templateElement.innerText = labelString;
232
+ if (this.parent.disableHtmlEncode) {
233
+ templateElement.innerText = labelString;
234
+ }
235
+ else {
236
+ templateElement.innerHTML = labelString;
237
+ }
233
238
  var childLabel = this.parent.labelSettings.taskLabel;
234
239
  if (childLabel && childLabel['elementRef'])
235
240
  templateElement.appendChild(tempDiv);
@@ -895,7 +900,12 @@ var ChartRows = /** @class */ (function (_super) {
895
900
  this.taskBarHeight + 'px;"></span>';
896
901
  }
897
902
  var labelElement = this.createDivElement(labelDiv)[0];
898
- labelElement.innerText = labelString;
903
+ if (this.parent.disableHtmlEncode) {
904
+ labelElement.innerText = labelString;
905
+ }
906
+ else {
907
+ labelElement.innerHTML = labelString;
908
+ }
899
909
  var parentLabel = this.parent.labelSettings.taskLabel;
900
910
  if (parentLabel && parentLabel['elementRef'])
901
911
  labelElement.appendChild(div);
@@ -225,7 +225,7 @@ var Timeline = /** @class */ (function () {
225
225
  var secondValue;
226
226
  var zoomingCollections = this.parent.zoomingLevels.slice();
227
227
  var sortedCollectons = zoomingCollections.sort(function (a, b) {
228
- return (a.perDayWidth < b.perDayWidth) ? 1 : -1;
228
+ return (!a.perDayWidth && !b.perDayWidth ? 0 : (a.perDayWidth < b.perDayWidth) ? 1 : -1);
229
229
  });
230
230
  if (perDayWidth === 0) { // return when the Gantt chart is not in viewable state.
231
231
  return;