devexpress-gantt 4.1.40 → 4.1.42
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 +19 -2
- 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/Interfaces/IGanttView.ts +2 -0
- package/dist/lib/src/Interfaces/IModelChangesListener.ts +1 -0
- package/dist/lib/src/Model/Dispatchers/ModelChangesDispatcher.ts +3 -0
- package/dist/lib/src/Model/VisualModel/VisualModel.ts +8 -0
- package/dist/lib/src/View/GanttView.ts +7 -0
- 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.42
|
|
4
|
+
* Build date: Mon Feb 06 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 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.42
|
|
4
|
+
* Build date: Mon Feb 06 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|
|
@@ -6147,6 +6147,7 @@ var GanttView = (function () {
|
|
|
6147
6147
|
var activeDialog = DialogBase_1.DialogBase.activeInstance;
|
|
6148
6148
|
if (activeDialog && activeDialog.canRefresh && activeDialog.getDialogName() === "TaskEdit")
|
|
6149
6149
|
activeDialog.refresh();
|
|
6150
|
+
this.dispatcher.notifyGanttViewUpdated();
|
|
6150
6151
|
};
|
|
6151
6152
|
GanttView.prototype.onBrowserWindowResize = function () {
|
|
6152
6153
|
if (this.fullScreenModeHelper.isInFullScreenMode)
|
|
@@ -6154,6 +6155,9 @@ var GanttView = (function () {
|
|
|
6154
6155
|
else
|
|
6155
6156
|
this.adjustOwnerControl();
|
|
6156
6157
|
};
|
|
6158
|
+
GanttView.prototype.getTaskTreeLine = function (taskKey) {
|
|
6159
|
+
return this.viewModel.getTaskTreeLine(taskKey).reverse();
|
|
6160
|
+
};
|
|
6157
6161
|
GanttView.prototype.setTaskValue = function (id, fieldName, newValue) {
|
|
6158
6162
|
var command = this.commandManager.updateTaskCommand;
|
|
6159
6163
|
var task = this.getTaskByPublicId(id);
|
|
@@ -6180,6 +6184,8 @@ var GanttView = (function () {
|
|
|
6180
6184
|
};
|
|
6181
6185
|
GanttView.prototype.getPrevTask = function (taskId) {
|
|
6182
6186
|
var item = this.viewModel.findItem(taskId);
|
|
6187
|
+
if (!item)
|
|
6188
|
+
return null;
|
|
6183
6189
|
var parent = item.parent || this.viewModel.root;
|
|
6184
6190
|
var index = parent.children.indexOf(item) - 1;
|
|
6185
6191
|
return index > -1 ? item.parent.children[index].task : item.parent.task;
|
|
@@ -13741,6 +13747,9 @@ var ModelChangesDispatcher = (function () {
|
|
|
13741
13747
|
ModelChangesDispatcher.prototype.notifyScaleCellPrepared = function (data) {
|
|
13742
13748
|
this.onModelChanged.raise("NotifyScaleCellPrepared", data);
|
|
13743
13749
|
};
|
|
13750
|
+
ModelChangesDispatcher.prototype.notifyGanttViewUpdated = function () {
|
|
13751
|
+
this.onModelChanged.raise("NotifyGanttViewUpdated");
|
|
13752
|
+
};
|
|
13744
13753
|
ModelChangesDispatcher.prototype.fireResourceUnassigning = function (assignment) {
|
|
13745
13754
|
var args = new ResourceUnassigningArguments_1.ResourceUnassigningArguments(assignment);
|
|
13746
13755
|
this.notifyResourceUnassigning(args);
|
|
@@ -19642,6 +19651,14 @@ var ViewVisualModel = (function () {
|
|
|
19642
19651
|
item = item.parent;
|
|
19643
19652
|
}
|
|
19644
19653
|
}
|
|
19654
|
+
else {
|
|
19655
|
+
var task = this.tasks.getItemById(taskId);
|
|
19656
|
+
var parent_1 = this.tasks.getItemById(task === null || task === void 0 ? void 0 : task.parentId);
|
|
19657
|
+
while (parent_1) {
|
|
19658
|
+
result.push(parent_1.id);
|
|
19659
|
+
parent_1 = this.tasks.getItemById(parent_1.parentId);
|
|
19660
|
+
}
|
|
19661
|
+
}
|
|
19645
19662
|
return result;
|
|
19646
19663
|
};
|
|
19647
19664
|
ViewVisualModel.prototype.getDependentTasksHash = function () {
|
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.42
|
|
4
|
+
* Build date: Mon Feb 06 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|