devexpress-gantt 4.1.35 → 4.1.36
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/dist/dx-gantt.css +2 -2
- package/dist/dx-gantt.js +21 -7
- package/dist/dx-gantt.min.css +2 -2
- package/dist/dx-gantt.min.js +4 -4
- package/dist/lib/package.json +1 -1
- package/dist/lib/src/View/GanttView.ts +1 -1
- package/dist/lib/src/View/Render/RenderHelper.ts +6 -3
- package/dist/lib/src/View/Render/TaskRender.ts +13 -1
- package/package.json +1 -1
package/dist/dx-gantt.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* DevExpress Gantt (dx-gantt)
|
|
3
|
-
* Version: 4.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 4.1.36
|
|
4
|
+
* Build date: Wed Nov 16 2022
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|
package/dist/dx-gantt.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* DevExpress Gantt (dx-gantt)
|
|
3
|
-
* Version: 4.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 4.1.36
|
|
4
|
+
* Build date: Wed Nov 16 2022
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|
|
@@ -5826,7 +5826,7 @@ var GanttView = (function () {
|
|
|
5826
5826
|
};
|
|
5827
5827
|
GanttView.prototype.isHighlightRowElementAllowed = function (index) {
|
|
5828
5828
|
var viewItem = this.getViewItem(index);
|
|
5829
|
-
return index % 2 !== 0 && this.settings.areAlternateRowsEnabled || viewItem.children.length > 0;
|
|
5829
|
+
return index % 2 !== 0 && this.settings.areAlternateRowsEnabled || (viewItem === null || viewItem === void 0 ? void 0 : viewItem.children.length) > 0;
|
|
5830
5830
|
};
|
|
5831
5831
|
GanttView.prototype.calculateAutoViewType = function (startDate, endDate) {
|
|
5832
5832
|
var diffInHours = (endDate.getTime() - startDate.getTime()) / (1000 * 3600);
|
|
@@ -15256,17 +15256,17 @@ var RenderHelper = (function () {
|
|
|
15256
15256
|
this._mainElementsRender = new MainElementsRender_1.MainElementsRender();
|
|
15257
15257
|
}
|
|
15258
15258
|
RenderHelper.prototype.reset = function () {
|
|
15259
|
-
this.
|
|
15259
|
+
this.invalidTaskDependencies = [];
|
|
15260
15260
|
this._taskAreaRender.reset();
|
|
15261
|
-
this._scaleRender.reset();
|
|
15262
15261
|
this._taskRender.reset();
|
|
15262
|
+
this._taskArea.innerHTML = "";
|
|
15263
|
+
this._scaleRender.reset();
|
|
15263
15264
|
this.hlRowElements = [];
|
|
15264
15265
|
this.renderedRowIndices = [];
|
|
15265
15266
|
this.renderedColIndices = [];
|
|
15266
15267
|
this._connectorLinesRender.reset();
|
|
15267
15268
|
this._stripLinesRender.reset();
|
|
15268
15269
|
this._noWorkingIntervalRender.reset();
|
|
15269
|
-
this.invalidTaskDependencies = [];
|
|
15270
15270
|
};
|
|
15271
15271
|
RenderHelper.prototype.createMainElement = function (parent) {
|
|
15272
15272
|
this.mainElement = this._mainElementsRender.createMainElement(parent);
|
|
@@ -15597,6 +15597,9 @@ var RenderHelper = (function () {
|
|
|
15597
15597
|
RenderHelper.prototype.getTask = function (index) {
|
|
15598
15598
|
return this._ganttView.getTask(index);
|
|
15599
15599
|
};
|
|
15600
|
+
RenderHelper.prototype.hasTaskTemplate = function () {
|
|
15601
|
+
return !!this._ganttView.settings.taskContentTemplate;
|
|
15602
|
+
};
|
|
15600
15603
|
RenderHelper.prototype.destroyTemplate = function (container) {
|
|
15601
15604
|
this._ganttView.destroyTemplate(container);
|
|
15602
15605
|
};
|
|
@@ -18236,6 +18239,8 @@ var TaskRender = (function () {
|
|
|
18236
18239
|
this._renderHelper.createTaskElement(index);
|
|
18237
18240
|
};
|
|
18238
18241
|
TaskRender.prototype.reset = function () {
|
|
18242
|
+
var _this = this;
|
|
18243
|
+
this._taskElements.forEach(function (el, i) { return _this.removeTaskElement(i); });
|
|
18239
18244
|
this._selectionElements = [];
|
|
18240
18245
|
this._taskElements = [];
|
|
18241
18246
|
};
|
|
@@ -18281,8 +18286,17 @@ var TaskRender = (function () {
|
|
|
18281
18286
|
};
|
|
18282
18287
|
TaskRender.prototype.removeTaskElement = function (index) {
|
|
18283
18288
|
var task = this.getTask(index);
|
|
18284
|
-
|
|
18289
|
+
if (task)
|
|
18290
|
+
this.removeInvalidTaskDependencies(task.id);
|
|
18285
18291
|
this.detachEventsOnTask(index);
|
|
18292
|
+
if (this._renderHelper.hasTaskTemplate()) {
|
|
18293
|
+
var taskWrapper = this.taskElements[index];
|
|
18294
|
+
var taskTemplateContainer = taskWrapper === null || taskWrapper === void 0 ? void 0 : taskWrapper.firstElementChild;
|
|
18295
|
+
if (taskTemplateContainer) {
|
|
18296
|
+
this._renderHelper.destroyTemplate(taskTemplateContainer);
|
|
18297
|
+
taskWrapper.removeChild(taskTemplateContainer);
|
|
18298
|
+
}
|
|
18299
|
+
}
|
|
18286
18300
|
RenderElementUtils_1.RenderElementUtils.remove(null, index, this.taskArea, this.taskElements);
|
|
18287
18301
|
RenderElementUtils_1.RenderElementUtils.remove(null, index, this.taskArea, this.resourcesElements);
|
|
18288
18302
|
RenderElementUtils_1.RenderElementUtils.remove(null, index, this.taskArea, this.selectionElements);
|
package/dist/dx-gantt.min.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* DevExpress Gantt (dx-gantt.min)
|
|
3
|
-
* Version: 4.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 4.1.36
|
|
4
|
+
* Build date: Wed Nov 16 2022
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|