@syncfusion/ej2-gantt 20.1.55 → 20.1.56

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.
Files changed (45) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/ej2-gantt.umd.min.js +2 -2
  3. package/dist/ej2-gantt.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-gantt.es2015.js +4 -4
  5. package/dist/es6/ej2-gantt.es2015.js.map +1 -1
  6. package/dist/es6/ej2-gantt.es5.js +4 -4
  7. package/dist/es6/ej2-gantt.es5.js.map +1 -1
  8. package/dist/global/ej2-gantt.min.js +2 -2
  9. package/dist/global/ej2-gantt.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +12 -12
  12. package/src/gantt/actions/edit.js +1 -1
  13. package/src/gantt/actions/pdf-export.js +1 -1
  14. package/src/gantt/base/task-processor.js +1 -1
  15. package/src/gantt/renderer/chart-rows.js +1 -1
  16. package/styles/bootstrap-dark.css +45 -368
  17. package/styles/bootstrap.css +46 -374
  18. package/styles/bootstrap4.css +56 -422
  19. package/styles/bootstrap5-dark.css +46 -369
  20. package/styles/bootstrap5.css +46 -369
  21. package/styles/fabric-dark.css +46 -367
  22. package/styles/fabric.css +48 -369
  23. package/styles/fluent-dark.css +45 -367
  24. package/styles/fluent.css +45 -367
  25. package/styles/gantt/bootstrap-dark.css +45 -368
  26. package/styles/gantt/bootstrap.css +46 -374
  27. package/styles/gantt/bootstrap4.css +56 -422
  28. package/styles/gantt/bootstrap5-dark.css +46 -369
  29. package/styles/gantt/bootstrap5.css +46 -369
  30. package/styles/gantt/fabric-dark.css +46 -367
  31. package/styles/gantt/fabric.css +48 -369
  32. package/styles/gantt/fluent-dark.css +45 -367
  33. package/styles/gantt/fluent.css +45 -367
  34. package/styles/gantt/highcontrast-light.css +21 -353
  35. package/styles/gantt/highcontrast.css +48 -403
  36. package/styles/gantt/material-dark.css +42 -360
  37. package/styles/gantt/material.css +43 -362
  38. package/styles/gantt/tailwind-dark.css +41 -359
  39. package/styles/gantt/tailwind.css +41 -359
  40. package/styles/highcontrast-light.css +21 -353
  41. package/styles/highcontrast.css +48 -403
  42. package/styles/material-dark.css +42 -360
  43. package/styles/material.css +43 -362
  44. package/styles/tailwind-dark.css +41 -359
  45. package/styles/tailwind.css +41 -359
@@ -1650,7 +1650,7 @@ class TaskProcessor extends DateProcessor {
1650
1650
  const child = this.parent.taskFields.child;
1651
1651
  const resourceData = tempData && tempData[this.parent.taskFields.resourceInfo];
1652
1652
  const resourceIdMapping = this.parent.resourceFields.id;
1653
- if (!tempData[child] && resourceData && resourceData.length) {
1653
+ if ((!tempData[child] || tempData[child].length === 0) && resourceData && resourceData.length) {
1654
1654
  resourceData.forEach((resource) => {
1655
1655
  const id = (typeof resource === 'object') ? resource[resourceIdMapping] :
1656
1656
  resource;
@@ -9553,7 +9553,7 @@ class ChartRows extends DateProcessor {
9553
9553
  const chartRows = this.parent.ganttChartModule.getChartRows();
9554
9554
  //Below code is for rendering taskbartemplate in resource view with multi taskbar
9555
9555
  if (this.parent.initialChartRowElements) {
9556
- for (let j = 0; j <= this.parent.initialChartRowElements.length; j++) {
9556
+ for (let j = 0; j < this.parent.initialChartRowElements.length; j++) {
9557
9557
  if (!isNullOrUndefined(chartRows[j])) {
9558
9558
  if (!isNullOrUndefined(chartRows[j].childNodes[0].childNodes[1].childNodes[2]) &&
9559
9559
  !isNullOrUndefined(this.parent.initialChartRowElements[j].childNodes[0].childNodes[1].childNodes[2])) {
@@ -21315,7 +21315,7 @@ class Edit$2 {
21315
21315
  if (!isNullOrUndefined(this.parent.editModule) && ganttData) {
21316
21316
  this.parent.isOnEdit = true;
21317
21317
  this.validateUpdateValues(data, ganttData, true);
21318
- if (data[this.parent.taskFields.resourceInfo]) {
21318
+ if (data[this.parent.taskFields.resourceInfo] && data[this.parent.taskFields.duration] != 0) {
21319
21319
  this.updateResourceRelatedFields(ganttData, 'resource');
21320
21320
  }
21321
21321
  const keys = Object.keys(data);
@@ -31792,7 +31792,7 @@ class PdfExport {
31792
31792
  //To set section page size and page orientation.
31793
31793
  if (!isNullOrUndefined(pdfExportProperties)) {
31794
31794
  const pdfPageSettings = new PdfPageSettings();
31795
- if (!isNullOrUndefined(pdfExportProperties.pageOrientation && pdfExportProperties.pageOrientation === 'Portrait')) {
31795
+ if (!isNullOrUndefined(pdfExportProperties.pageOrientation) && pdfExportProperties.pageOrientation === 'Portrait') {
31796
31796
  pdfPageSettings.orientation = PdfPageOrientation.Portrait;
31797
31797
  }
31798
31798
  else {