devexpress-gantt 4.1.41 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt)
3
- * Version: 4.1.41
4
- * Build date: Mon Jan 30 2023
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.41
4
- * Build date: Mon Jan 30 2023
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
@@ -6155,6 +6155,9 @@ var GanttView = (function () {
6155
6155
  else
6156
6156
  this.adjustOwnerControl();
6157
6157
  };
6158
+ GanttView.prototype.getTaskTreeLine = function (taskKey) {
6159
+ return this.viewModel.getTaskTreeLine(taskKey).reverse();
6160
+ };
6158
6161
  GanttView.prototype.setTaskValue = function (id, fieldName, newValue) {
6159
6162
  var command = this.commandManager.updateTaskCommand;
6160
6163
  var task = this.getTaskByPublicId(id);
@@ -6181,6 +6184,8 @@ var GanttView = (function () {
6181
6184
  };
6182
6185
  GanttView.prototype.getPrevTask = function (taskId) {
6183
6186
  var item = this.viewModel.findItem(taskId);
6187
+ if (!item)
6188
+ return null;
6184
6189
  var parent = item.parent || this.viewModel.root;
6185
6190
  var index = parent.children.indexOf(item) - 1;
6186
6191
  return index > -1 ? item.parent.children[index].task : item.parent.task;
@@ -19646,6 +19651,14 @@ var ViewVisualModel = (function () {
19646
19651
  item = item.parent;
19647
19652
  }
19648
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
+ }
19649
19662
  return result;
19650
19663
  };
19651
19664
  ViewVisualModel.prototype.getDependentTasksHash = function () {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt.min)
3
- * Version: 4.1.41
4
- * Build date: Mon Jan 30 2023
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