devexpress-gantt 3.1.31 → 4.0.2

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,9 +1,9 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt)
3
- * Version: 3.1.31
4
- * Build date: Thu Nov 18 2021
3
+ * Version: 4.0.2
4
+ * Build date: Mon Jan 10 2022
5
5
  *
6
- * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
6
+ * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
8
8
  */
9
9
  .dx-gantt-tsac{position:relative;overflow:hidden;background-color:white;z-index:6}.dx-gantt-tsa{position:relative}.dx-gantt-hb{position:absolute;left:0;height:0;z-index:6}.dx-gantt-vb{position:absolute;top:0;width:0;z-index:6}.dx-gantt-tm,.dx-gantt-ti,.dx-gantt-tc{position:absolute;top:0;z-index:6}.dx-gantt-tm:before,.dx-gantt-ti:before,.dx-gantt-tc:before{content:"";position:absolute;top:0;width:6px;margin-left:-3px;z-index:6;height:100%}.dx-gantt-si{position:absolute;top:0;white-space:nowrap;box-sizing:border-box}.dx-gantt-taskWrapper,.dx-gantt-milestoneWrapper,.dx-gantt-taskResWrapper{position:absolute;z-index:10;vertical-align:top;white-space:nowrap}.dx-gantt-taskWrapper>div{vertical-align:top}.dx-gantt-taskResWrapper{pointer-events:none}.dx-gantt-task{position:relative;display:inline-block;white-space:nowrap;vertical-align:top}.dx-gantt-tPrg{position:absolute;top:0;height:100%;z-index:0}.dx-gantt-taskTitle,.dx-gantt-taskRes{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dx-gantt-titleIn{position:relative;width:100%;z-index:1}.dx-gantt-titleOut{display:inline-block;width:500px;margin-left:-500px;text-align:right;text-overflow:ellipsis}.dx-gantt-taskRes{display:inline-block;overflow:hidden}.dx-gantt-task,.dx-gantt-taskTitle,.dx-gantt-titleOut,.dx-gantt-taskRes{box-sizing:border-box}.dx-gantt-sel{position:absolute;z-index:5}.dx-gantt-task.dx-gantt-milestone{transform:rotate(45deg);border-radius:0 !important;padding:0}.dx-gantt-task.dx-gantt-smallTask{text-align:center}.dx-gantt-task.dx-gantt-smallTask .dx-gantt-titleIn{padding:0;visibility:hidden}.dx-gantt-conn-h,.dx-gantt-conn-v,.dx-gantt-arrow{position:absolute;z-index:9}.dx-gantt-conn-v{top:0;width:4px;cursor:pointer;border-left-width:1px;border-left-style:solid}.dx-gantt-conn-v.active{border-left-width:2px !important}.dx-gantt-conn-h{left:0;height:4px;cursor:pointer;border-top-width:1px;border-top-style:solid}.dx-gantt-conn-h.active{border-top-width:2px !important}.dx-gantt-arrow{width:0;height:0}.dx-gantt-arrow.dx-gantt-TA{border-left-color:transparent !important;border-right-color:transparent !important;border-top-color:transparent !important}.dx-gantt-arrow.dx-gantt-RA{border-right-color:transparent !important;border-top-color:transparent !important;border-bottom-color:transparent !important}.dx-gantt-arrow.dx-gantt-BA{border-left-color:transparent !important;border-right-color:transparent !important;border-bottom-color:transparent !important}.dx-gantt-arrow.dx-gantt-LA{border-left-color:transparent !important;border-top-color:transparent !important;border-bottom-color:transparent !important}.dx-gantt-nwi{position:absolute;z-index:3}.dx-gantt-altRow{position:absolute;z-index:2}.dx-gantt-task-edit-wrapper{padding-left:1px}.dx-gantt-task-edit-wrapper,.dx-gantt-task-edit-wrapper-successor{position:absolute;z-index:11}.dx-gantt-task-edit-wrapper-custom{background-color:rgba(90,84,84,0.3)}.dx-gantt-task-edit-wrapper-custom.hide-updating{background-color:transparent;pointer-events:none}.dx-gantt-task-edit-wrapper.milestone .dx-gantt-task-edit-frame,.dx-gantt-task-edit-wrapper.hide-updating .dx-gantt-task-edit-frame{border:none !important}#dx-gantt-ta.ms-pointer-active,#dx-gantt-ta.ms-pointer-active .dx-gantt-task-edit-frame,#dx-gantt-ta.ms-pointer-active .dx-gantt-task-edit-frame div{-webkit-appearance:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none;-webkit-user-select:none;user-select:none;-moz-user-select:none}.dx-gantt-task-edit-wrapper.milestone .dx-gantt-task-edit-progress,.dx-gantt-task-edit-wrapper.milestone .dx-gantt-task-edit-start,.dx-gantt-task-edit-wrapper.milestone .dx-gantt-task-edit-end,.dx-gantt-task-edit-wrapper.move .dx-gantt-task-edit-progress,.dx-gantt-task-edit-wrapper.move .dx-gantt-task-edit-dependency-r,.dx-gantt-task-edit-wrapper.move .dx-gantt-task-edit-dependency-l,.dx-gantt-task-edit-wrapper.hide-dependency .dx-gantt-task-edit-dependency-r,.dx-gantt-task-edit-wrapper.hide-dependency .dx-gantt-task-edit-dependency-l,.dx-gantt-task-edit-wrapper.hide-updating .dx-gantt-task-edit-progress,.dx-gantt-task-edit-wrapper.hide-updating .dx-gantt-task-edit-start,.dx-gantt-task-edit-wrapper.hide-updating .dx-gantt-task-edit-end{display:none}.dx-gantt-task-edit-frame,.dx-gantt-task-edit-frame-successor{box-sizing:border-box;height:100%;width:100%;position:absolute;z-index:9}.dx-gantt-task-edit-frame{border:1px solid #269aff}.dx-gantt-task-edit-progress{position:absolute;width:0;height:0;bottom:0;cursor:pointer;border-style:solid;border-width:0 6px 9px 6px;border-color:transparent transparent #269aff transparent;z-index:10}.dx-gantt-task-edit-progress:before{content:"";width:10px;height:4px;background-color:white;position:absolute;bottom:-14px;left:-6px;border:1px solid #269aff;border-top:none}.dx-gantt-task-edit-progress div{position:absolute;bottom:0;cursor:pointer;border-style:solid;border-width:0 5px 7px 5px;border-color:transparent transparent white transparent;z-index:9;top:2px;left:-5px;pointer-events:none}.dx-gantt-task-edit-tooltip{position:absolute;font-family:sans-serif;width:max-content;line-height:16px;font-size:12px;border-radius:2px;display:none;z-index:12}.dx-gantt-task-edit-tooltip-default{padding:6px;color:white;background-color:rgba(0,0,0,0.64)}.dx-gantt-task-edit-tooltip-after:after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:6px solid rgba(0,0,0,0.64);top:-6px;position:absolute}.dx-gantt-task-edit-tooltip-before:before{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid rgba(0,0,0,0.64);bottom:-6px;position:absolute}.dx-gantt-task-edit-tooltip .dx-gantt-task-title{padding-bottom:3px}.dx-gantt-task-edit-tooltip .dx-gantt-status-time tr td:first-child{padding-right:3px}.dx-gantt-task-edit-tooltip .dx-gantt-status-time tr td:first-child,.dx-gantt-task-edit-tooltip .dx-gantt-status-time span:first-child,.dx-gantt-task-edit-tooltip .dx-gantt-task-title{font-weight:600}.dx-gantt-task-edit-dependency-r,.dx-gantt-task-edit-successor-dependency-r,.dx-gantt-task-edit-dependency-l,.dx-gantt-task-edit-successor-dependency-l{position:absolute;border-radius:50%;top:5px;width:8px;height:8px;background:white;border:1px solid #269aff;cursor:pointer}.dx-gantt-task-edit-dependency-r,.dx-gantt-task-edit-successor-dependency-r{left:-10px}.dx-gantt-task-edit-dependency-l,.dx-gantt-task-edit-successor-dependency-l{right:-10px}.dx-gantt-task-edit-dependency-r.dx-gantt-edit-touch,.dx-gantt-task-edit-successor-dependency-r.dx-gantt-edit-touch,.dx-gantt-task-edit-dependency-l.dx-gantt-edit-touch,.dx-gantt-task-edit-successor-dependency-l.dx-gantt-edit-touch{top:3px;width:11px;height:11px}.dx-gantt-task-edit-dependency-r.dx-gantt-edit-touch,.dx-gantt-task-edit-successor-dependency-r.dx-gantt-edit-touch{left:-15px}.dx-gantt-task-edit-dependency-l.dx-gantt-edit-touch,.dx-gantt-task-edit-successor-dependency-l.dx-gantt-edit-touch{right:-15px}.dx-gantt-task-edit-start,.dx-gantt-task-edit-end{position:absolute;height:100%;width:5px;top:0;cursor:col-resize}.dx-gantt-task-edit-end{right:0}.dx-gantt-task-edit-dependency-line{height:2px;background-color:#269aff;position:absolute;transform-origin:0% 0%;z-index:9}.dx-gantt-touch-action{touch-action:none}
package/dist/dx-gantt.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt)
3
- * Version: 3.1.31
4
- * Build date: Thu Nov 18 2021
3
+ * Version: 4.0.2
4
+ * Build date: Mon Jan 10 2022
5
5
  *
6
- * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
6
+ * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
8
8
  */
9
9
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -2499,7 +2499,7 @@ var CollectionBase = (function () {
2499
2499
  this.createItemFromObjectAndAdd(source);
2500
2500
  };
2501
2501
  CollectionBase.prototype.createItemFromObjectAndAdd = function (source) {
2502
- if ((0, common_1.isDefined)(source)) {
2502
+ if ((0, common_1.isDefined)(source) && Object.keys(source).length > 0) {
2503
2503
  var item = this.createItem();
2504
2504
  item.assignFromObject(source);
2505
2505
  this.add(item);
@@ -2870,7 +2870,7 @@ var GridLayoutCalculator = (function () {
2870
2870
  var viewItem = this.getViewItem(index);
2871
2871
  if (viewItem.task.isMilestone() && !viewItem.isCustom)
2872
2872
  return this.milestoneWidth;
2873
- if (this.viewModel.isTaskToCalculateByChildren(viewItem.task.id))
2873
+ if (this.viewModel.isTaskToCalculateByChildren(viewItem.task.internalId))
2874
2874
  return this.parentTaskHeight;
2875
2875
  return (viewItem.isCustom && viewItem.size.height) ? viewItem.size.height : this.taskHeight;
2876
2876
  };
@@ -3073,7 +3073,7 @@ var GridLayoutCalculator = (function () {
3073
3073
  return this.getWidthByDateRange(this.range.start, date);
3074
3074
  };
3075
3075
  GridLayoutCalculator.prototype.getWidthByDateRange = function (start, end) {
3076
- return DateUtils_1.DateUtils.getRangeTickCount(start, end, this.viewType) * this.tickSize.width;
3076
+ return Math.max(DateUtils_1.DateUtils.getRangeTickCount(start, end, this.viewType) * this.tickSize.width, 0);
3077
3077
  };
3078
3078
  GridLayoutCalculator.prototype.getDateByPos = function (position) {
3079
3079
  if (this.viewType === Enums_1.ViewType.Months || this.viewType === Enums_1.ViewType.Quarter)
@@ -5244,8 +5244,7 @@ var TaskEditController = (function () {
5244
5244
  if (this.task.isMilestone() && !this.viewItem.isCustom)
5245
5245
  this.baseElement.className = this.baseElement.className + " milestone";
5246
5246
  else {
5247
- var isHideTaskEditBox = !this.ganttSettings.editing.enabled || !this.ganttSettings.editing.allowTaskUpdate;
5248
- if (isHideTaskEditBox)
5247
+ if (!this.isTaskUpdateAllowed())
5249
5248
  this.baseElement.className = this.baseElement.className + " hide-updating";
5250
5249
  if (this.viewItem.isCustom) {
5251
5250
  this.baseElement.classList.add(TaskEditController.CLASSNAMES.TASK_EDIT_BOX_CUSTOM);
@@ -5258,7 +5257,8 @@ var TaskEditController = (function () {
5258
5257
  this.displayStartEndEditElements();
5259
5258
  };
5260
5259
  TaskEditController.prototype.displayStartEndEditElements = function () {
5261
- if (!this.canUpdateTask()) {
5260
+ var showElements = this.isTaskUpdateAllowed() && this.canUpdateTask();
5261
+ if (!showElements) {
5262
5262
  this.startEdit.style.display = "none";
5263
5263
  this.endEdit.style.display = "none";
5264
5264
  }
@@ -5268,8 +5268,7 @@ var TaskEditController = (function () {
5268
5268
  }
5269
5269
  };
5270
5270
  TaskEditController.prototype.displayProgressEdit = function () {
5271
- var isEditingAllowed = this.ganttSettings.editing.enabled && this.ganttSettings.editing.allowTaskUpdate;
5272
- if (!this.viewItem.isCustom && this.canUpdateTask() && isEditingAllowed && this.wrapInfo.size.width > this.wrapInfo.size.height) {
5271
+ if (!this.viewItem.isCustom && this.canUpdateTask() && this.isTaskUpdateAllowed() && this.wrapInfo.size.width > this.wrapInfo.size.height) {
5273
5272
  this.progressEdit.style.display = "block";
5274
5273
  this.progressEdit.style.left = ((this.task.progress / 100) * this.wrapInfo.size.width - (this.progressEdit.offsetWidth / 2)) + "px";
5275
5274
  }
@@ -5344,6 +5343,8 @@ var TaskEditController = (function () {
5344
5343
  this.successorIndex = -1;
5345
5344
  };
5346
5345
  TaskEditController.prototype.processProgress = function (position) {
5346
+ if (!this.isTaskUpdateAllowed())
5347
+ return;
5347
5348
  this.isEditingInProgress = true;
5348
5349
  var progressOffset = position.x - this.wrapInfo.position.x;
5349
5350
  var progress = 0;
@@ -5357,11 +5358,15 @@ var TaskEditController = (function () {
5357
5358
  this.tooltip.showProgress(progress, dom_1.DomUtils.getAbsolutePositionX(this.progressEdit) + this.progressEdit.offsetWidth / 2);
5358
5359
  };
5359
5360
  TaskEditController.prototype.confirmProgress = function () {
5360
- this.isEditingInProgress = false;
5361
- var progress = Math.round((this.progressEdit.offsetLeft + (this.progressEdit.offsetWidth / 2)) / this.wrapInfo.size.width * 100);
5362
- this.commandManager.changeTaskProgressCommand.execute(this.taskId, progress);
5361
+ if (this.isTaskUpdateAllowed()) {
5362
+ this.isEditingInProgress = false;
5363
+ var progress = Math.round((this.progressEdit.offsetLeft + (this.progressEdit.offsetWidth / 2)) / this.wrapInfo.size.width * 100);
5364
+ this.commandManager.changeTaskProgressCommand.execute(this.taskId, progress);
5365
+ }
5363
5366
  };
5364
5367
  TaskEditController.prototype.processEnd = function (position) {
5368
+ if (!this.isTaskUpdateAllowed())
5369
+ return;
5365
5370
  this.baseElement.className = this.baseElement.className + " move";
5366
5371
  this.isEditingInProgress = true;
5367
5372
  var positionX = position.x > this.wrapInfo.position.x ? position.x : this.wrapInfo.position.x;
@@ -5377,13 +5382,17 @@ var TaskEditController = (function () {
5377
5382
  this.tooltip.showTime(startDate, this.taskDateRange.end, dom_1.DomUtils.getAbsolutePositionX(this.baseElement) + this.baseElement.clientWidth);
5378
5383
  };
5379
5384
  TaskEditController.prototype.confirmEnd = function () {
5380
- this.baseElement.className = TaskEditController.CLASSNAMES.TASK_EDIT_BOX;
5381
- this.isEditingInProgress = false;
5382
- this.commandManager.changeTaskEndCommand.execute(this.taskId, this.taskDateRange.end);
5383
- this.hide();
5384
- this.updateWrapInfo();
5385
+ if (this.isTaskUpdateAllowed()) {
5386
+ this.baseElement.className = TaskEditController.CLASSNAMES.TASK_EDIT_BOX;
5387
+ this.isEditingInProgress = false;
5388
+ this.commandManager.changeTaskEndCommand.execute(this.taskId, this.taskDateRange.end);
5389
+ this.hide();
5390
+ this.updateWrapInfo();
5391
+ }
5385
5392
  };
5386
5393
  TaskEditController.prototype.processStart = function (position) {
5394
+ if (!this.isTaskUpdateAllowed())
5395
+ return;
5387
5396
  this.baseElement.className = this.baseElement.className + " move";
5388
5397
  this.isEditingInProgress = true;
5389
5398
  var positionX = position.x < this.wrapInfo.position.x + this.wrapInfo.size.width ? position.x : this.wrapInfo.position.x + this.wrapInfo.size.width;
@@ -5400,14 +5409,16 @@ var TaskEditController = (function () {
5400
5409
  this.tooltip.showTime(this.taskDateRange.start, endDate, dom_1.DomUtils.getAbsolutePositionX(this.baseElement));
5401
5410
  };
5402
5411
  TaskEditController.prototype.confirmStart = function () {
5403
- this.baseElement.className = TaskEditController.CLASSNAMES.TASK_EDIT_BOX;
5404
- this.isEditingInProgress = false;
5405
- this.commandManager.changeTaskStartCommand.execute(this.taskId, this.taskDateRange.start);
5406
- this.hide();
5407
- this.updateWrapInfo();
5412
+ if (this.isTaskUpdateAllowed()) {
5413
+ this.baseElement.className = TaskEditController.CLASSNAMES.TASK_EDIT_BOX;
5414
+ this.isEditingInProgress = false;
5415
+ this.commandManager.changeTaskStartCommand.execute(this.taskId, this.taskDateRange.start);
5416
+ this.hide();
5417
+ this.updateWrapInfo();
5418
+ }
5408
5419
  };
5409
5420
  TaskEditController.prototype.processMove = function (delta) {
5410
- if (this.ganttSettings.editing.enabled && this.ganttSettings.editing.allowTaskUpdate && this.isTaskEditBoxShown) {
5421
+ if (this.isTaskUpdateAllowed() && this.isTaskEditBoxShown) {
5411
5422
  this.baseElement.className = this.baseElement.className + " move";
5412
5423
  var left = this.baseElement.offsetLeft + delta;
5413
5424
  this.baseElement.style.left = left + "px";
@@ -5435,7 +5446,7 @@ var TaskEditController = (function () {
5435
5446
  this.taskDateRange.end = newEnd;
5436
5447
  };
5437
5448
  TaskEditController.prototype.confirmMove = function () {
5438
- if (this.ganttSettings.editing.enabled && this.ganttSettings.editing.allowTaskUpdate) {
5449
+ if (this.isTaskUpdateAllowed()) {
5439
5450
  if (!this.ganttSettings.editing.allowDependencyInsert)
5440
5451
  this.baseElement.className = this.baseElement.className + " hide-dependency";
5441
5452
  if (this.isEditingInProgress) {
@@ -5567,6 +5578,10 @@ var TaskEditController = (function () {
5567
5578
  TaskEditController.prototype.canUpdateTask = function () {
5568
5579
  return !this.viewModel.isTaskToCalculateByChildren(this.task.internalId);
5569
5580
  };
5581
+ TaskEditController.prototype.isTaskUpdateAllowed = function () {
5582
+ var settings = this.ganttSettings.editing;
5583
+ return settings.enabled && settings.allowTaskUpdate;
5584
+ };
5570
5585
  TaskEditController.prototype.detachEvents = function () {
5571
5586
  var _a;
5572
5587
  (_a = this.baseElement) === null || _a === void 0 ? void 0 : _a.removeEventListener("mouseleave", this.onMouseLeaveHandler);
@@ -12129,12 +12144,15 @@ var ScaleCalculator = (function () {
12129
12144
  ScaleCalculator.prototype.getScaleIndexByPos = function (pos, scaleType) {
12130
12145
  scaleType !== null && scaleType !== void 0 ? scaleType : (scaleType = this.viewType);
12131
12146
  var items = scaleType === this.viewType ? this.bottomScaleItems : this.topScaleItems;
12132
- for (var i = 0; i < items.length; i++) {
12133
- var item = items[i];
12134
- if (pos >= item.position.x && pos <= item.position.x + item.size.width)
12135
- return i;
12147
+ var index = -1;
12148
+ if (items.findIndex)
12149
+ index = items.findIndex(function (i) { return pos >= i.position.x && pos <= i.position.x + i.size.width; });
12150
+ else {
12151
+ var item = items.filter(function (i) { return pos >= i.position.x && pos <= i.position.x + i.size.width; })[0];
12152
+ if (item)
12153
+ index = items.indexOf(item);
12136
12154
  }
12137
- return -1;
12155
+ return index;
12138
12156
  };
12139
12157
  ScaleCalculator.prototype.getScaleBorderPosition = function (index, scaleType) {
12140
12158
  var item = this.getScaleItems(scaleType)[index];
@@ -12229,14 +12247,27 @@ var ScaleCalculator = (function () {
12229
12247
  };
12230
12248
  ScaleCalculator.prototype.calculateTopScale = function (scaleType) {
12231
12249
  var items = new Array();
12232
- var currentDate = this.range.start;
12233
- var x = 0;
12234
- while (currentDate.getTime() < this.range.end.getTime()) {
12235
- var nextDate = this.getNextScaleDate(currentDate, scaleType);
12236
- var width = this.getPosInScale(nextDate) - this.getPosInScale(currentDate);
12237
- items.push(new ScaleItemInfo(currentDate, nextDate, new point_1.Point(x, undefined), new size_1.Size(width, 0)));
12238
- currentDate = nextDate;
12239
- x += width;
12250
+ var endRangeTime = this.range.end.getTime();
12251
+ var itemStartDate = this.range.start;
12252
+ var itemStartPos = 0;
12253
+ var lastBottomIndex = 0;
12254
+ while (itemStartDate.getTime() < endRangeTime) {
12255
+ var itemNextDate = this.getNextScaleDate(itemStartDate, scaleType);
12256
+ var nextDateTime = itemNextDate.getTime();
12257
+ for (var i = lastBottomIndex; i < this.bottomScaleItems.length; i++) {
12258
+ var item = this.bottomScaleItems[i];
12259
+ var startTime = item.start.getTime();
12260
+ var endTime = item.end.getTime();
12261
+ var isNextDateInItem = nextDateTime >= startTime && nextDateTime <= endTime;
12262
+ if (isNextDateInItem) {
12263
+ var itemEndPos = (nextDateTime - startTime) / (endTime - startTime) * item.size.width + item.position.x;
12264
+ items.push(new ScaleItemInfo(itemStartDate, itemNextDate, new point_1.Point(itemStartPos, undefined), new size_1.Size(itemEndPos - itemStartPos, 0)));
12265
+ lastBottomIndex = i;
12266
+ itemStartPos = itemEndPos;
12267
+ itemStartDate = itemNextDate;
12268
+ break;
12269
+ }
12270
+ }
12240
12271
  }
12241
12272
  return items;
12242
12273
  };
@@ -12254,18 +12285,6 @@ var ScaleCalculator = (function () {
12254
12285
  }
12255
12286
  return new Date(this.range.end);
12256
12287
  };
12257
- ScaleCalculator.prototype.getPosInScale = function (date) {
12258
- var time = date.getTime();
12259
- for (var i = 0; i < this.bottomScaleItems.length; i++) {
12260
- var item = this.bottomScaleItems[i];
12261
- var startTime = item.start.getTime();
12262
- var endTime = item.end.getTime();
12263
- var width = item.size.width;
12264
- if (time >= startTime && time <= endTime)
12265
- return (time - startTime) / (endTime - startTime) * width + item.position.x;
12266
- }
12267
- return 0;
12268
- };
12269
12288
  ScaleCalculator.prototype.getNextScaleDate = function (start, scaleType) {
12270
12289
  var date;
12271
12290
  switch (scaleType) {
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt.min)
3
- * Version: 3.1.31
4
- * Build date: Thu Nov 18 2021
3
+ * Version: 4.0.2
4
+ * Build date: Mon Jan 10 2022
5
5
  *
6
- * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
6
+ * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
8
8
  */.dx-gantt-tsac{overflow:hidden;background-color:#fff;z-index:6}.dx-gantt-tsa,.dx-gantt-tsac{position:relative}.dx-gantt-hb{position:absolute;left:0;height:0;z-index:6}.dx-gantt-vb{width:0}.dx-gantt-tc,.dx-gantt-ti,.dx-gantt-tm,.dx-gantt-vb{position:absolute;top:0;z-index:6}.dx-gantt-tc:before,.dx-gantt-ti:before,.dx-gantt-tm:before{content:"";position:absolute;top:0;width:6px;margin-left:-3px;z-index:6;height:100%}.dx-gantt-si{position:absolute;top:0;white-space:nowrap;box-sizing:border-box}.dx-gantt-milestoneWrapper,.dx-gantt-taskResWrapper,.dx-gantt-taskWrapper{position:absolute;z-index:10;vertical-align:top;white-space:nowrap}.dx-gantt-taskWrapper>div{vertical-align:top}.dx-gantt-taskResWrapper{pointer-events:none}.dx-gantt-task{position:relative;display:inline-block;white-space:nowrap;vertical-align:top}.dx-gantt-tPrg{position:absolute;top:0;height:100%;z-index:0}.dx-gantt-taskRes,.dx-gantt-taskTitle{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dx-gantt-titleIn{position:relative;width:100%;z-index:1}.dx-gantt-titleOut{display:inline-block;width:500px;margin-left:-500px;text-align:right;text-overflow:ellipsis}.dx-gantt-taskRes{display:inline-block;overflow:hidden}.dx-gantt-task,.dx-gantt-taskRes,.dx-gantt-taskTitle,.dx-gantt-titleOut{box-sizing:border-box}.dx-gantt-sel{position:absolute;z-index:5}.dx-gantt-task.dx-gantt-milestone{transform:rotate(45deg);border-radius:0!important;padding:0}.dx-gantt-task.dx-gantt-smallTask{text-align:center}.dx-gantt-task.dx-gantt-smallTask .dx-gantt-titleIn{padding:0;visibility:hidden}.dx-gantt-arrow,.dx-gantt-conn-h,.dx-gantt-conn-v{position:absolute;z-index:9}.dx-gantt-conn-v{top:0;width:4px;cursor:pointer;border-left-width:1px;border-left-style:solid}.dx-gantt-conn-v.active{border-left-width:2px!important}.dx-gantt-conn-h{left:0;height:4px;cursor:pointer;border-top-width:1px;border-top-style:solid}.dx-gantt-conn-h.active{border-top-width:2px!important}.dx-gantt-arrow{width:0;height:0}.dx-gantt-arrow.dx-gantt-TA{border-left-color:transparent!important}.dx-gantt-arrow.dx-gantt-RA,.dx-gantt-arrow.dx-gantt-TA{border-right-color:transparent!important;border-top-color:transparent!important}.dx-gantt-arrow.dx-gantt-RA{border-bottom-color:transparent!important}.dx-gantt-arrow.dx-gantt-BA{border-right-color:transparent!important}.dx-gantt-arrow.dx-gantt-BA,.dx-gantt-arrow.dx-gantt-LA{border-left-color:transparent!important;border-bottom-color:transparent!important}.dx-gantt-arrow.dx-gantt-LA{border-top-color:transparent!important}.dx-gantt-nwi{position:absolute;z-index:3}.dx-gantt-altRow{position:absolute;z-index:2}.dx-gantt-task-edit-wrapper{padding-left:1px}.dx-gantt-task-edit-wrapper,.dx-gantt-task-edit-wrapper-successor{position:absolute;z-index:11}.dx-gantt-task-edit-wrapper-custom{background-color:rgba(90,84,84,.3)}.dx-gantt-task-edit-wrapper-custom.hide-updating{background-color:transparent;pointer-events:none}.dx-gantt-task-edit-wrapper.hide-updating .dx-gantt-task-edit-frame,.dx-gantt-task-edit-wrapper.milestone .dx-gantt-task-edit-frame{border:none!important}#dx-gantt-ta.ms-pointer-active,#dx-gantt-ta.ms-pointer-active .dx-gantt-task-edit-frame,#dx-gantt-ta.ms-pointer-active .dx-gantt-task-edit-frame div{-webkit-appearance:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none;-webkit-user-select:none;user-select:none;-moz-user-select:none}.dx-gantt-task-edit-wrapper.hide-dependency .dx-gantt-task-edit-dependency-l,.dx-gantt-task-edit-wrapper.hide-dependency .dx-gantt-task-edit-dependency-r,.dx-gantt-task-edit-wrapper.hide-updating .dx-gantt-task-edit-end,.dx-gantt-task-edit-wrapper.hide-updating .dx-gantt-task-edit-progress,.dx-gantt-task-edit-wrapper.hide-updating .dx-gantt-task-edit-start,.dx-gantt-task-edit-wrapper.milestone .dx-gantt-task-edit-end,.dx-gantt-task-edit-wrapper.milestone .dx-gantt-task-edit-progress,.dx-gantt-task-edit-wrapper.milestone .dx-gantt-task-edit-start,.dx-gantt-task-edit-wrapper.move .dx-gantt-task-edit-dependency-l,.dx-gantt-task-edit-wrapper.move .dx-gantt-task-edit-dependency-r,.dx-gantt-task-edit-wrapper.move .dx-gantt-task-edit-progress{display:none}.dx-gantt-task-edit-frame,.dx-gantt-task-edit-frame-successor{box-sizing:border-box;height:100%;width:100%;position:absolute;z-index:9}.dx-gantt-task-edit-frame{border:1px solid #269aff}.dx-gantt-task-edit-progress{position:absolute;width:0;height:0;bottom:0;cursor:pointer;border-color:transparent transparent #269aff;border-style:solid;border-width:0 6px 9px;z-index:10}.dx-gantt-task-edit-progress:before{content:"";width:10px;height:4px;background-color:#fff;position:absolute;bottom:-14px;left:-6px;border:1px solid #269aff;border-top:none}.dx-gantt-task-edit-progress div{position:absolute;bottom:0;cursor:pointer;border-color:transparent transparent #fff;border-style:solid;border-width:0 5px 7px;z-index:9;top:2px;left:-5px;pointer-events:none}.dx-gantt-task-edit-tooltip{position:absolute;font-family:sans-serif;width:max-content;line-height:16px;font-size:12px;border-radius:2px;display:none;z-index:12}.dx-gantt-task-edit-tooltip-default{padding:6px;color:#fff;background-color:rgba(0,0,0,.64)}.dx-gantt-task-edit-tooltip-after:after{border-bottom:6px solid rgba(0,0,0,.64);top:-6px}.dx-gantt-task-edit-tooltip-after:after,.dx-gantt-task-edit-tooltip-before:before{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;position:absolute}.dx-gantt-task-edit-tooltip-before:before{border-top:6px solid rgba(0,0,0,.64);bottom:-6px}.dx-gantt-task-edit-tooltip .dx-gantt-task-title{padding-bottom:3px}.dx-gantt-task-edit-tooltip .dx-gantt-status-time tr td:first-child{padding-right:3px}.dx-gantt-task-edit-tooltip .dx-gantt-status-time span:first-child,.dx-gantt-task-edit-tooltip .dx-gantt-status-time tr td:first-child,.dx-gantt-task-edit-tooltip .dx-gantt-task-title{font-weight:600}.dx-gantt-task-edit-dependency-l,.dx-gantt-task-edit-dependency-r,.dx-gantt-task-edit-successor-dependency-l,.dx-gantt-task-edit-successor-dependency-r{position:absolute;border-radius:50%;top:5px;width:8px;height:8px;background:#fff;border:1px solid #269aff;cursor:pointer}.dx-gantt-task-edit-dependency-r,.dx-gantt-task-edit-successor-dependency-r{left:-10px}.dx-gantt-task-edit-dependency-l,.dx-gantt-task-edit-successor-dependency-l{right:-10px}.dx-gantt-task-edit-dependency-l.dx-gantt-edit-touch,.dx-gantt-task-edit-dependency-r.dx-gantt-edit-touch,.dx-gantt-task-edit-successor-dependency-l.dx-gantt-edit-touch,.dx-gantt-task-edit-successor-dependency-r.dx-gantt-edit-touch{top:3px;width:11px;height:11px}.dx-gantt-task-edit-dependency-r.dx-gantt-edit-touch,.dx-gantt-task-edit-successor-dependency-r.dx-gantt-edit-touch{left:-15px}.dx-gantt-task-edit-dependency-l.dx-gantt-edit-touch,.dx-gantt-task-edit-successor-dependency-l.dx-gantt-edit-touch{right:-15px}.dx-gantt-task-edit-end,.dx-gantt-task-edit-start{position:absolute;height:100%;width:5px;top:0;cursor:col-resize}.dx-gantt-task-edit-end{right:0}.dx-gantt-task-edit-dependency-line{height:2px;background-color:#269aff;position:absolute;transform-origin:0 0;z-index:9}.dx-gantt-touch-action{touch-action:none}