devexpress-gantt
Advanced tools
Comparing version 4.1.35 to 4.1.36
{ | ||
"name": "devexpress-gantt", | ||
"version": "4.1.35", | ||
"version": "4.1.36", | ||
"description": "DevExpress Gantt Control", | ||
@@ -5,0 +5,0 @@ "main": "dist/dx-gantt.min.js", |
@@ -363,3 +363,3 @@ import { BarManager } from "../BarManager/BarManager"; | ||
const viewItem = this.getViewItem(index); | ||
return index % 2 !== 0 && this.settings.areAlternateRowsEnabled || viewItem.children.length > 0; | ||
return index % 2 !== 0 && this.settings.areAlternateRowsEnabled || viewItem?.children.length > 0; | ||
} | ||
@@ -366,0 +366,0 @@ |
@@ -77,6 +77,7 @@ import { ConnectorLinesRender } from "./ConnectorLinesRender"; | ||
reset(): void { | ||
this.invalidTaskDependencies = []; | ||
this._taskAreaRender.reset(); | ||
this._taskRender.reset(); | ||
this._taskArea.innerHTML = ""; | ||
this._taskAreaRender.reset(); | ||
this._scaleRender.reset(); | ||
this._taskRender.reset(); | ||
this.hlRowElements = []; | ||
@@ -88,3 +89,2 @@ this.renderedRowIndices = []; | ||
this._noWorkingIntervalRender.reset(); | ||
this.invalidTaskDependencies = []; | ||
} | ||
@@ -310,2 +310,5 @@ | ||
} | ||
hasTaskTemplate(): boolean { | ||
return !!this._ganttView.settings.taskContentTemplate; | ||
} | ||
@@ -312,0 +315,0 @@ destroyTemplate(container: HTMLElement): void { |
@@ -146,2 +146,3 @@ import { DomUtils } from "@devexpress/utils/lib/utils/dom"; | ||
reset(): void { | ||
this._taskElements.forEach((el, i) => this.removeTaskElement(i)); | ||
this._selectionElements = []; | ||
@@ -199,4 +200,15 @@ this._taskElements = []; | ||
const task = this.getTask(index); | ||
this.removeInvalidTaskDependencies(task.id); | ||
if(task) | ||
this.removeInvalidTaskDependencies(task.id); | ||
this.detachEventsOnTask(index); | ||
if(this._renderHelper.hasTaskTemplate()) { | ||
const taskWrapper = this.taskElements[index]; | ||
const taskTemplateContainer = taskWrapper?.firstElementChild; | ||
if(taskTemplateContainer) { | ||
this._renderHelper.destroyTemplate(taskTemplateContainer as HTMLElement); | ||
taskWrapper.removeChild(taskTemplateContainer); | ||
} | ||
} | ||
RenderElementUtils.remove(null, index, this.taskArea, this.taskElements); | ||
@@ -203,0 +215,0 @@ RenderElementUtils.remove(null, index, this.taskArea, this.resourcesElements); |
{ | ||
"name": "devexpress-gantt", | ||
"version": "4.1.35", | ||
"version": "4.1.36", | ||
"description": "DevExpress Gantt Control", | ||
@@ -5,0 +5,0 @@ "main": "dist/dx-gantt.min.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2208796
35710