@syncfusion/ej2-gantt 19.4.40 → 19.4.41
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/CHANGELOG.md +17 -0
- package/README.md +1 -1
- package/dist/ej2-gantt.umd.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-gantt.es2015.js +22 -20
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +22 -20
- package/dist/es6/ej2-gantt.es5.js.map +1 -1
- package/dist/global/ej2-gantt.min.js +2 -2
- package/dist/global/ej2-gantt.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +11 -11
- package/src/gantt/actions/dialog-edit.js +1 -1
- package/src/gantt/actions/taskbar-edit.js +1 -0
- package/src/gantt/base/gantt.js +2 -4
- package/src/gantt/renderer/chart-rows.js +2 -0
- package/src/gantt/renderer/timeline.d.ts +1 -0
- package/src/gantt/renderer/timeline.js +16 -15
- package/styles/bootstrap5-dark.css +0 -1
- package/styles/bootstrap5.css +0 -1
- package/styles/gantt/bootstrap5-dark.css +0 -1
- package/styles/gantt/bootstrap5.css +0 -1
|
@@ -6107,9 +6107,6 @@ var Timeline = /** @__PURE__ @class */ (function () {
|
|
|
6107
6107
|
parentTr = this.getHeaterTemplateString(new Date(startDate.toString()), mode, tier, false, count, timelineCell);
|
|
6108
6108
|
scheduleDateCollection.push(new Date(startDate.toString()));
|
|
6109
6109
|
increment = this.getIncrement(startDate, count, mode);
|
|
6110
|
-
if (this.parent.isInDst(startDate)) {
|
|
6111
|
-
increment = increment + (1000 * 60 * 60);
|
|
6112
|
-
}
|
|
6113
6110
|
newTime = startDate.getTime() + increment;
|
|
6114
6111
|
startDate.setTime(newTime);
|
|
6115
6112
|
if (startDate >= endDate) {
|
|
@@ -6173,24 +6170,17 @@ var Timeline = /** @__PURE__ @class */ (function () {
|
|
|
6173
6170
|
dayIntervel - 1 : dayIntervel : dayIntervel;
|
|
6174
6171
|
lastDay.setDate(lastDay.getDate() + (dayIntervel + (7 * count)));
|
|
6175
6172
|
increment = lastDay.getTime() - firstDay.getTime();
|
|
6176
|
-
if ((this.parent.isInDst(lastDay) && !this.parent.isInDst(firstDay)) ||
|
|
6177
|
-
(!this.parent.isInDst(lastDay) && this.parent.isInDst(firstDay))) {
|
|
6178
|
-
increment = increment - (1000 * 60 * 60);
|
|
6179
|
-
}
|
|
6180
6173
|
break;
|
|
6181
6174
|
}
|
|
6182
6175
|
case 'Day':
|
|
6183
6176
|
lastDay.setHours(24, 0, 0, 0);
|
|
6184
6177
|
increment = (lastDay.getTime() - firstDay.getTime()) + (1000 * 60 * 60 * 24 * (count - 1));
|
|
6185
|
-
if ((this.parent.isInDst(lastDay) && !this.parent.isInDst(firstDay)) ||
|
|
6186
|
-
(!this.parent.isInDst(lastDay) && this.parent.isInDst(firstDay))) {
|
|
6187
|
-
increment -= (1000 * 60 * 60);
|
|
6188
|
-
}
|
|
6189
6178
|
break;
|
|
6190
6179
|
case 'Hour':
|
|
6191
6180
|
lastDay.setMinutes(60);
|
|
6192
6181
|
lastDay.setSeconds(0);
|
|
6193
6182
|
increment = (lastDay.getTime() - firstDay.getTime()) + (1000 * 60 * 60 * (count - 1));
|
|
6183
|
+
increment = this.checkDate(firstDay, lastDay, increment, count);
|
|
6194
6184
|
break;
|
|
6195
6185
|
case 'Minutes':
|
|
6196
6186
|
lastDay.setSeconds(60);
|
|
@@ -6199,6 +6189,21 @@ var Timeline = /** @__PURE__ @class */ (function () {
|
|
|
6199
6189
|
}
|
|
6200
6190
|
return increment;
|
|
6201
6191
|
};
|
|
6192
|
+
Timeline.prototype.checkDate = function (firstDay, lastDay, increment, count) {
|
|
6193
|
+
var date = new Date(firstDay.getTime());
|
|
6194
|
+
date.setTime(date.getTime() + increment);
|
|
6195
|
+
if (((date.getTime() - lastDay.getTime()) / (1000 * 60 * 60)) != count && (firstDay.getTimezoneOffset() !== date.getTimezoneOffset())) {
|
|
6196
|
+
var diffCount = count - (date.getTime() - lastDay.getTime()) / (1000 * 60 * 60);
|
|
6197
|
+
if (!this.parent.isInDst(date)) {
|
|
6198
|
+
increment += (1000 * 60 * 60 * diffCount);
|
|
6199
|
+
}
|
|
6200
|
+
else if (this.parent.isInDst(date)) {
|
|
6201
|
+
increment -= (1000 * 60 * 60 * diffCount);
|
|
6202
|
+
}
|
|
6203
|
+
}
|
|
6204
|
+
return increment;
|
|
6205
|
+
};
|
|
6206
|
+
|
|
6202
6207
|
/**
|
|
6203
6208
|
* Method to find header cell was weekend or not
|
|
6204
6209
|
*
|
|
@@ -6281,10 +6286,6 @@ var Timeline = /** @__PURE__ @class */ (function () {
|
|
|
6281
6286
|
*/
|
|
6282
6287
|
Timeline.prototype.calculateWidthBetweenTwoDate = function (mode, scheduleWeeks, endDate) {
|
|
6283
6288
|
var timeDifference = (endDate.getTime() - scheduleWeeks.getTime());
|
|
6284
|
-
if ((this.parent.isInDst(scheduleWeeks) && !this.parent.isInDst(endDate)) ||
|
|
6285
|
-
(!this.parent.isInDst(scheduleWeeks) && this.parent.isInDst(endDate))) {
|
|
6286
|
-
timeDifference = timeDifference - (1000 * 60 * 60);
|
|
6287
|
-
}
|
|
6288
6289
|
var balanceDay = (timeDifference / (1000 * 60 * 60 * 24));
|
|
6289
6290
|
return balanceDay * this.parent.perDayWidth;
|
|
6290
6291
|
};
|
|
@@ -9348,6 +9349,7 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
9348
9349
|
}
|
|
9349
9350
|
}
|
|
9350
9351
|
}
|
|
9352
|
+
this.parent.renderTemplates();
|
|
9351
9353
|
this.triggerQueryTaskbarInfo();
|
|
9352
9354
|
this.parent.modifiedRecords = [];
|
|
9353
9355
|
if (collapsedResourceRecord.length) {
|
|
@@ -9712,6 +9714,7 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
9712
9714
|
else {
|
|
9713
9715
|
tr.replaceChild(this.getGanttChartRow(index, data).childNodes[0], tr.childNodes[0]);
|
|
9714
9716
|
}
|
|
9717
|
+
this.parent.renderTemplates();
|
|
9715
9718
|
if (this.parent.viewType === 'ResourceView' && data.hasChildRecords && this.parent.showOverAllocation) {
|
|
9716
9719
|
if (isValidateRange) {
|
|
9717
9720
|
this.parent.ganttChartModule.renderRangeContainer(this.parent.currentViewData);
|
|
@@ -13328,10 +13331,8 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
13328
13331
|
this.treeGrid.grid.searchSettings = getActualProperties(this.searchSettings);
|
|
13329
13332
|
this.treeGrid.grid.dataBind();
|
|
13330
13333
|
}
|
|
13331
|
-
|
|
13332
|
-
|
|
13333
|
-
this.treeGrid.dataBind();
|
|
13334
|
-
}
|
|
13334
|
+
this.treeGrid.searchSettings = getActualProperties(this.searchSettings);
|
|
13335
|
+
this.treeGrid.dataBind();
|
|
13335
13336
|
if (this.toolbarModule) {
|
|
13336
13337
|
this.toolbarModule.updateSearchTextBox();
|
|
13337
13338
|
}
|
|
@@ -17826,6 +17827,7 @@ var TaskbarEdit = /** @__PURE__ @class */ (function (_super) {
|
|
|
17826
17827
|
this.isMouseDragged = false;
|
|
17827
17828
|
}
|
|
17828
17829
|
else {
|
|
17830
|
+
this.parent.isOnEdit = false;
|
|
17829
17831
|
this.cancelTaskbarEditActionInMouseLeave();
|
|
17830
17832
|
}
|
|
17831
17833
|
}
|
|
@@ -18484,7 +18486,7 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
|
|
|
18484
18486
|
tempData.ganttProperties.durationUnit = this.parent.durationUnit.toLocaleLowerCase();
|
|
18485
18487
|
}
|
|
18486
18488
|
else if (columns[i].field === taskSettings.name) {
|
|
18487
|
-
tempData[field] = '
|
|
18489
|
+
tempData[field] = this.localeObj.getConstant('addDialogTitle') + ' ' + id;
|
|
18488
18490
|
tempData.ganttProperties.taskName = tempData[field];
|
|
18489
18491
|
}
|
|
18490
18492
|
else if (columns[i].field === taskSettings.progress) {
|