devexpress-gantt 4.1.50 → 4.1.51

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.50
4
- * Build date: Wed Nov 15 2023
3
+ * Version: 4.1.51
4
+ * Build date: Fri Dec 08 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.50
4
- * Build date: Wed Nov 15 2023
3
+ * Version: 4.1.51
4
+ * Build date: Fri Dec 08 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
@@ -8948,6 +8948,7 @@ exports.Task = void 0;
8948
8948
  var tslib_1 = __webpack_require__(655);
8949
8949
  var common_1 = __webpack_require__(2491);
8950
8950
  var DataObject_1 = __webpack_require__(6124);
8951
+ var invalidDateMillseconds = -8000000000000000;
8951
8952
  var Task = (function (_super) {
8952
8953
  tslib_1.__extends(Task, _super);
8953
8954
  function Task() {
@@ -8980,8 +8981,8 @@ var Task = (function (_super) {
8980
8981
  this.parentId = (0, common_1.isDefined)(sourceObj.parentId) ? String(sourceObj.parentId) : null;
8981
8982
  this.description = sourceObj.description;
8982
8983
  this.title = sourceObj.title;
8983
- this.start = typeof sourceObj.start === "string" ? new Date(sourceObj.start) : sourceObj.start || new Date(0);
8984
- this.end = typeof sourceObj.end === "string" ? new Date(sourceObj.end) : sourceObj.end || new Date(0);
8984
+ this.start = typeof sourceObj.start === "string" ? new Date(sourceObj.start) : sourceObj.start || this.createInvalidDate();
8985
+ this.end = typeof sourceObj.end === "string" ? new Date(sourceObj.end) : sourceObj.end || this.createInvalidDate();
8985
8986
  this.duration = sourceObj.duration;
8986
8987
  this.progress = sourceObj.progress;
8987
8988
  this.taskType = sourceObj.taskType;
@@ -9007,8 +9008,14 @@ var Task = (function (_super) {
9007
9008
  Task.prototype.getDuration = function () {
9008
9009
  return this.end.getTime() - this.start.getTime();
9009
9010
  };
9011
+ Task.prototype.isValidStart = function () { return this.isValidTaskaDte(this.start); };
9012
+ Task.prototype.isValidEnd = function () { return this.isValidTaskaDte(this.end); };
9010
9013
  Task.prototype.isValid = function () {
9011
- return !!this.start.getTime() && !!this.end.getTime();
9014
+ return this.isValidStart() && this.isValidEnd();
9015
+ };
9016
+ Task.prototype.createInvalidDate = function () { return new Date(invalidDateMillseconds); };
9017
+ Task.prototype.isValidTaskaDte = function (value) {
9018
+ return !!value && value.getTime() !== invalidDateMillseconds;
9012
9019
  };
9013
9020
  return Task;
9014
9021
  }(DataObject_1.DataObject));
@@ -11161,8 +11168,8 @@ var ViewVisualModel = (function () {
11161
11168
  var parentId = rootId && task.parentId === rootId ? task.parentId : parentTask === null || parentTask === void 0 ? void 0 : parentTask.id;
11162
11169
  var taskObject = {
11163
11170
  id: task.id,
11164
- start: task.start,
11165
- end: task.end,
11171
+ start: task.isValidStart() ? task.start : null,
11172
+ end: task.isValidEnd() ? task.end : null,
11166
11173
  duration: task.duration,
11167
11174
  description: task.description,
11168
11175
  parentId: parentId,
@@ -11562,7 +11569,7 @@ var ViewVisualModel = (function () {
11562
11569
  end !== null && end !== void 0 ? end : (end = this._viewItemList.length - 1);
11563
11570
  for (var i = start; i <= end; i++) {
11564
11571
  var item = this._viewItemList[i];
11565
- if ((item === null || item === void 0 ? void 0 : item.getVisible()) && ((_a = item === null || item === void 0 ? void 0 : item.task) === null || _a === void 0 ? void 0 : _a.isValid))
11572
+ if ((item === null || item === void 0 ? void 0 : item.getVisible()) && ((_a = item === null || item === void 0 ? void 0 : item.task) === null || _a === void 0 ? void 0 : _a.isValid()))
11566
11573
  result.push(i);
11567
11574
  }
11568
11575
  return result;
@@ -19718,6 +19725,8 @@ var TaskRender = (function () {
19718
19725
  if (!viewItem.task.isValid() || !viewItem.visible) {
19719
19726
  var taskDependencies = this.getTaskDependencies(viewItem.task.internalId);
19720
19727
  this.addInvalidTaskDependencies(taskDependencies);
19728
+ if (viewItem.selected)
19729
+ this.createTaskSelectionElement(index);
19721
19730
  return;
19722
19731
  }
19723
19732
  if (!viewItem.isCustom)
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt.min)
3
- * Version: 4.1.50
4
- * Build date: Wed Nov 15 2023
3
+ * Version: 4.1.51
4
+ * Build date: Fri Dec 08 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