@syncfusion/ej2-gantt 19.3.57 → 19.4.38
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 +7 -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 +102 -46
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +99 -43
- 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 +18 -18
- package/src/gantt/actions/context-menu.js +35 -14
- package/src/gantt/actions/dialog-edit.js +4 -1
- package/src/gantt/actions/edit.js +4 -0
- package/src/gantt/actions/rowdragdrop.js +2 -0
- package/src/gantt/actions/taskbar-edit.js +4 -1
- package/src/gantt/base/gantt.d.ts +15 -13
- package/src/gantt/base/gantt.js +30 -24
- package/src/gantt/base/task-processor.js +20 -3
- package/styles/bootstrap5-dark.css +6 -5
- package/styles/bootstrap5.css +6 -5
- package/styles/gantt/_bootstrap4-definition.scss +1 -0
- package/styles/gantt/_bootstrap5-definition.scss +1 -1
- package/styles/gantt/_fluent-definition.scss +163 -0
- package/styles/gantt/_layout.scss +1 -6
- package/styles/gantt/_theme.scss +2 -1
- package/styles/gantt/bootstrap5-dark.css +6 -5
- package/styles/gantt/bootstrap5.css +6 -5
- package/styles/gantt/icons/_fluent.scss +112 -0
- package/styles/gantt/icons/_tailwind-dark.scss +112 -112
- package/styles/gantt/tailwind-dark.css +1 -1
- package/styles/gantt/tailwind.css +1 -1
- package/styles/tailwind-dark.css +1 -1
- package/styles/tailwind.css +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.
|
|
3
|
+
* version : 19.4.38
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-gantt@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-gantt@19.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@19.7.0",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-pCBiP1niGv6kWO+zEiP3M319heaa4WYhbNR9bt+eeEMc848UHgZAAb9PE19YOGcXvIOg2ObmIBx6DVOywyK/lQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-gantt",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-gantt",
|
|
24
24
|
"/@syncfusion/ej2-vue-gantt"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-gantt/-/ej2-gantt-19.7.0.tgz",
|
|
27
|
+
"_shasum": "a19c8392c249d42c5464bef9858792baf7d51b64",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~19.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~19.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~19.
|
|
41
|
-
"@syncfusion/ej2-data": "~19.
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~19.
|
|
43
|
-
"@syncfusion/ej2-grids": "~19.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~19.
|
|
45
|
-
"@syncfusion/ej2-layouts": "~19.
|
|
46
|
-
"@syncfusion/ej2-lists": "~19.
|
|
47
|
-
"@syncfusion/ej2-navigations": "~19.
|
|
48
|
-
"@syncfusion/ej2-popups": "~19.
|
|
49
|
-
"@syncfusion/ej2-richtexteditor": "~19.
|
|
50
|
-
"@syncfusion/ej2-treegrid": "~19.
|
|
38
|
+
"@syncfusion/ej2-base": "~19.4.38",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~19.4.38",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~19.4.38",
|
|
41
|
+
"@syncfusion/ej2-data": "~19.4.38",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~19.4.38",
|
|
43
|
+
"@syncfusion/ej2-grids": "~19.4.38",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~19.4.38",
|
|
45
|
+
"@syncfusion/ej2-layouts": "~19.4.38",
|
|
46
|
+
"@syncfusion/ej2-lists": "~19.4.38",
|
|
47
|
+
"@syncfusion/ej2-navigations": "~19.4.38",
|
|
48
|
+
"@syncfusion/ej2-popups": "~19.4.38",
|
|
49
|
+
"@syncfusion/ej2-richtexteditor": "~19.4.38",
|
|
50
|
+
"@syncfusion/ej2-treegrid": "~19.4.38"
|
|
51
51
|
},
|
|
52
52
|
"deprecated": false,
|
|
53
53
|
"description": "Essential JS 2 Gantt Component",
|
|
@@ -75,6 +75,6 @@
|
|
|
75
75
|
"url": "git+https://github.com/syncfusion/ej2-gantt.git"
|
|
76
76
|
},
|
|
77
77
|
"typings": "index.d.ts",
|
|
78
|
-
"version": "19.
|
|
78
|
+
"version": "19.4.38",
|
|
79
79
|
"sideEffects": false
|
|
80
80
|
}
|
|
@@ -108,6 +108,12 @@ var ContextMenu = /** @class */ (function () {
|
|
|
108
108
|
position = this.item;
|
|
109
109
|
data = extend({}, {}, this.rowData.taskData, true);
|
|
110
110
|
taskfields = this.parent.taskFields;
|
|
111
|
+
if (data[taskfields.startDate]) {
|
|
112
|
+
this.parent.setRecordValue(taskfields.startDate, this.rowData.ganttProperties.startDate, data, true);
|
|
113
|
+
}
|
|
114
|
+
if (data[taskfields.endDate]) {
|
|
115
|
+
this.parent.setRecordValue(taskfields.endDate, this.rowData.ganttProperties.endDate, data, true);
|
|
116
|
+
}
|
|
111
117
|
if (!isNullOrUndefined(taskfields.dependency)) {
|
|
112
118
|
data[taskfields.dependency] = null;
|
|
113
119
|
}
|
|
@@ -301,7 +307,12 @@ var ContextMenu = /** @class */ (function () {
|
|
|
301
307
|
var item = _a[_i];
|
|
302
308
|
// let target: EventTarget = target;
|
|
303
309
|
if (!item.separator) {
|
|
304
|
-
this.
|
|
310
|
+
if ((target.classList.contains('e-gantt-unscheduled-taskbar')) && ((item.text === this.getLocale('splitTask')) || (item.text === this.getLocale('mergeTask')))) {
|
|
311
|
+
this.hideItems.push(item.text);
|
|
312
|
+
}
|
|
313
|
+
else {
|
|
314
|
+
this.updateItemStatus(item, target, rowIndex);
|
|
315
|
+
}
|
|
305
316
|
}
|
|
306
317
|
}
|
|
307
318
|
args.rowData = this.rowData;
|
|
@@ -413,24 +424,34 @@ var ContextMenu = /** @class */ (function () {
|
|
|
413
424
|
break;
|
|
414
425
|
case 'Indent':
|
|
415
426
|
{
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
this.parent.
|
|
422
|
-
|
|
427
|
+
if (!this.parent.allowSelection) {
|
|
428
|
+
this.hideItems.push(item.text);
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
var index = this.parent.selectedRowIndex;
|
|
432
|
+
var isSelected = this.parent.selectionModule ? this.parent.selectionModule.selectedRowIndexes.length === 1 ||
|
|
433
|
+
this.parent.selectionModule.getSelectedRowCellIndexes().length === 1 ? true : false : false;
|
|
434
|
+
var prevRecord = this.parent.updatedRecords[this.parent.selectionModule.getSelectedRowIndexes()[0] - 1];
|
|
435
|
+
if (!this.parent.editSettings.allowEditing || index === 0 || index === -1 || !isSelected ||
|
|
436
|
+
this.parent.viewType === 'ResourceView' || this.parent.updatedRecords[index].level - prevRecord.level === 1) {
|
|
437
|
+
this.updateItemVisibility(item.text);
|
|
438
|
+
}
|
|
423
439
|
}
|
|
424
440
|
break;
|
|
425
441
|
}
|
|
426
442
|
case 'Outdent':
|
|
427
443
|
{
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
this.
|
|
444
|
+
if (!this.parent.allowSelection) {
|
|
445
|
+
this.hideItems.push(item.text);
|
|
446
|
+
}
|
|
447
|
+
else {
|
|
448
|
+
var ind = this.parent.selectionModule.getSelectedRowIndexes()[0];
|
|
449
|
+
var isSelect = this.parent.selectionModule ? this.parent.selectionModule.selectedRowIndexes.length === 1 ||
|
|
450
|
+
this.parent.selectionModule.getSelectedRowCellIndexes().length === 1 ? true : false : false;
|
|
451
|
+
if (!this.parent.editSettings.allowEditing || ind === -1 || ind === 0 || !isSelect ||
|
|
452
|
+
this.parent.viewType === 'ResourceView' || this.parent.updatedRecords[ind].level === 0) {
|
|
453
|
+
this.updateItemVisibility(item.text);
|
|
454
|
+
}
|
|
434
455
|
}
|
|
435
456
|
break;
|
|
436
457
|
}
|
|
@@ -1106,7 +1106,7 @@ var DialogEdit = /** @class */ (function () {
|
|
|
1106
1106
|
var datePickerModel = _this.beforeOpenArgs[generalTabString][_this.parent.taskFields[fields[i]]];
|
|
1107
1107
|
var value = args.rowData[args.column.field];
|
|
1108
1108
|
setValue('value', value, datePickerModel);
|
|
1109
|
-
var datePicker = new
|
|
1109
|
+
var datePicker = new _this.inputs[_this.parent.columnByField[_this.parent.taskFields[fields[i]]].editType](datePickerModel);
|
|
1110
1110
|
datePicker.appendTo(args.element);
|
|
1111
1111
|
},
|
|
1112
1112
|
read: function (args) {
|
|
@@ -1993,6 +1993,9 @@ var DialogEdit = /** @class */ (function () {
|
|
|
1993
1993
|
this.rowData.ganttProperties.segments = dataSource;
|
|
1994
1994
|
this.parent.setRecordValue('segments', this.parent.dataOperation.setSegmentsInfo(this.rowData, false), this.rowData.ganttProperties, true);
|
|
1995
1995
|
this.parent.setRecordValue('taskData.' + this.parent.taskFields.segments, userData, this.rowData);
|
|
1996
|
+
if (dataSource.length <= 0) {
|
|
1997
|
+
this.validateDuration(this.rowData);
|
|
1998
|
+
}
|
|
1996
1999
|
}
|
|
1997
2000
|
};
|
|
1998
2001
|
// eslint-disable-next-line
|
|
@@ -2433,6 +2433,9 @@ var Edit = /** @class */ (function () {
|
|
|
2433
2433
|
var taskFields = this.parent.taskFields;
|
|
2434
2434
|
var dataSource = isCountRequired(this.parent) ? getValue('result', this.parent.dataSource) :
|
|
2435
2435
|
this.parent.dataSource;
|
|
2436
|
+
if (this.parent.dataSource instanceof DataManager) {
|
|
2437
|
+
dataSource = this.parent.dataSource.dataSource.json;
|
|
2438
|
+
}
|
|
2436
2439
|
for (var i = 0; i < addedRecord.length; i++) {
|
|
2437
2440
|
if (isNullOrUndefined(rowPosition) || isNullOrUndefined(this.addRowSelectedItem)) {
|
|
2438
2441
|
rowPosition = 'Top';
|
|
@@ -2505,6 +2508,7 @@ var Edit = /** @class */ (function () {
|
|
|
2505
2508
|
Edit.prototype.addRecord = function (data, rowPosition, rowIndex) {
|
|
2506
2509
|
var _this = this;
|
|
2507
2510
|
if (this.parent.editModule && this.parent.editSettings.allowAdding) {
|
|
2511
|
+
this.parent.isDynamicData = true;
|
|
2508
2512
|
var cAddedRecord_1 = [];
|
|
2509
2513
|
if (isNullOrUndefined(data)) {
|
|
2510
2514
|
this.validateTaskPosition(data, rowPosition, rowIndex, cAddedRecord_1);
|
|
@@ -541,6 +541,7 @@ var RowDD = /** @class */ (function () {
|
|
|
541
541
|
else {
|
|
542
542
|
var level = 1;
|
|
543
543
|
draggedRecord.level = droppedRecord.level + 1;
|
|
544
|
+
this.parent.setRecordValue('level', this.draggedRecord.level, this.draggedRecord);
|
|
544
545
|
this.updateChildRecordLevel(draggedRecord, level);
|
|
545
546
|
}
|
|
546
547
|
droppedRecord.expanded = true;
|
|
@@ -625,6 +626,7 @@ var RowDD = /** @class */ (function () {
|
|
|
625
626
|
parentData = this.parent.treeGrid[id][record.parentItem.uniqueID];
|
|
626
627
|
}
|
|
627
628
|
currentRecord.level = record.parentItem ? parentData.level + level : record.level + 1;
|
|
629
|
+
this.parent.setRecordValue('level', currentRecord.level, currentRecord);
|
|
628
630
|
if (currentRecord.hasChildRecords) {
|
|
629
631
|
level--;
|
|
630
632
|
level = this.updateChildRecordLevel(currentRecord, level);
|
|
@@ -493,8 +493,11 @@ var TaskbarEdit = /** @class */ (function (_super) {
|
|
|
493
493
|
if (this.isMouseDragged && this.taskBarEditAction) {
|
|
494
494
|
var args = {
|
|
495
495
|
cancel: false,
|
|
496
|
-
requestType: '
|
|
496
|
+
requestType: 'taskbarediting'
|
|
497
497
|
};
|
|
498
|
+
if (this.segmentIndex !== -1) {
|
|
499
|
+
args.requestType = 'mergeSegment';
|
|
500
|
+
}
|
|
498
501
|
this.parent.trigger('actionBegin', args, function (arg) {
|
|
499
502
|
if (arg.cancel === false) {
|
|
500
503
|
_this.taskBarEditingAction(event, false);
|
|
@@ -199,6 +199,8 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
|
|
|
199
199
|
/** @hidden */
|
|
200
200
|
isExpandCollapseLevelMethod: boolean;
|
|
201
201
|
/** @hidden */
|
|
202
|
+
isDynamicData: boolean;
|
|
203
|
+
/** @hidden */
|
|
202
204
|
contentHeight: number;
|
|
203
205
|
/** @hidden */
|
|
204
206
|
isAdaptive: Boolean;
|
|
@@ -1207,6 +1209,19 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
|
|
|
1207
1209
|
* @private
|
|
1208
1210
|
*/
|
|
1209
1211
|
getModuleName(): string;
|
|
1212
|
+
/**
|
|
1213
|
+
* For internal use only - Initialize the event handler
|
|
1214
|
+
*
|
|
1215
|
+
* @returns {void} .
|
|
1216
|
+
* @private
|
|
1217
|
+
*/
|
|
1218
|
+
protected preRender(): void;
|
|
1219
|
+
private initProperties;
|
|
1220
|
+
/**
|
|
1221
|
+
* @returns {string} .
|
|
1222
|
+
* @private
|
|
1223
|
+
*/
|
|
1224
|
+
getDateFormat(): string;
|
|
1210
1225
|
/**
|
|
1211
1226
|
* To get timezone offset.
|
|
1212
1227
|
*
|
|
@@ -1222,19 +1237,6 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
|
|
|
1222
1237
|
* @private
|
|
1223
1238
|
*/
|
|
1224
1239
|
isInDst(date: Date): boolean;
|
|
1225
|
-
/**
|
|
1226
|
-
* For internal use only - Initialize the event handler
|
|
1227
|
-
*
|
|
1228
|
-
* @returns {void} .
|
|
1229
|
-
* @private
|
|
1230
|
-
*/
|
|
1231
|
-
protected preRender(): void;
|
|
1232
|
-
private initProperties;
|
|
1233
|
-
/**
|
|
1234
|
-
* @returns {string} .
|
|
1235
|
-
* @private
|
|
1236
|
-
*/
|
|
1237
|
-
getDateFormat(): string;
|
|
1238
1240
|
/**
|
|
1239
1241
|
* Method to map resource fields.
|
|
1240
1242
|
*
|
package/src/gantt/base/gantt.js
CHANGED
|
@@ -72,6 +72,8 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
72
72
|
/** @hidden */
|
|
73
73
|
_this.isExpandCollapseLevelMethod = false;
|
|
74
74
|
/** @hidden */
|
|
75
|
+
_this.isDynamicData = false;
|
|
76
|
+
/** @hidden */
|
|
75
77
|
_this.isConnectorLineUpdate = false;
|
|
76
78
|
/** @hidden */
|
|
77
79
|
_this.staticSelectedRowIndex = -1;
|
|
@@ -111,27 +113,6 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
111
113
|
Gantt.prototype.getModuleName = function () {
|
|
112
114
|
return 'gantt';
|
|
113
115
|
};
|
|
114
|
-
/**
|
|
115
|
-
* To get timezone offset.
|
|
116
|
-
*
|
|
117
|
-
* @returns {number} .
|
|
118
|
-
* @private
|
|
119
|
-
*/
|
|
120
|
-
Gantt.prototype.getDefaultTZOffset = function () {
|
|
121
|
-
var janMonth = new Date(new Date().getFullYear(), 0, 1);
|
|
122
|
-
var julMonth = new Date(new Date().getFullYear(), 6, 1); //Because there is no reagions DST inbetwwen this range
|
|
123
|
-
return Math.max(janMonth.getTimezoneOffset(), julMonth.getTimezoneOffset());
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* To check whether the date is in DST.
|
|
127
|
-
*
|
|
128
|
-
* @param {Date} date .
|
|
129
|
-
* @returns {boolean} .
|
|
130
|
-
* @private
|
|
131
|
-
*/
|
|
132
|
-
Gantt.prototype.isInDst = function (date) {
|
|
133
|
-
return date.getTimezoneOffset() < this.getDefaultTZOffset();
|
|
134
|
-
};
|
|
135
116
|
/**
|
|
136
117
|
* For internal use only - Initialize the event handler
|
|
137
118
|
*
|
|
@@ -250,6 +231,27 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
250
231
|
return ganttDateFormat;
|
|
251
232
|
}
|
|
252
233
|
};
|
|
234
|
+
/**
|
|
235
|
+
* To get timezone offset.
|
|
236
|
+
*
|
|
237
|
+
* @returns {number} .
|
|
238
|
+
* @private
|
|
239
|
+
*/
|
|
240
|
+
Gantt.prototype.getDefaultTZOffset = function () {
|
|
241
|
+
var janMonth = new Date(new Date().getFullYear(), 0, 1);
|
|
242
|
+
var julMonth = new Date(new Date().getFullYear(), 6, 1); //Because there is no reagions DST inbetwwen this range
|
|
243
|
+
return Math.max(janMonth.getTimezoneOffset(), julMonth.getTimezoneOffset());
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* To check whether the date is in DST.
|
|
247
|
+
*
|
|
248
|
+
* @param {Date} date .
|
|
249
|
+
* @returns {boolean} .
|
|
250
|
+
* @private
|
|
251
|
+
*/
|
|
252
|
+
Gantt.prototype.isInDst = function (date) {
|
|
253
|
+
return date.getTimezoneOffset() < this.getDefaultTZOffset();
|
|
254
|
+
};
|
|
253
255
|
/**
|
|
254
256
|
* Method to map resource fields.
|
|
255
257
|
*
|
|
@@ -402,7 +404,7 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
402
404
|
this.treeGrid.dataSource = { result: this.flatData, count: count };
|
|
403
405
|
}
|
|
404
406
|
else {
|
|
405
|
-
this.treeGrid.dataSource = this.flatData
|
|
407
|
+
this.treeGrid.dataSource = this.flatData;
|
|
406
408
|
}
|
|
407
409
|
}
|
|
408
410
|
else {
|
|
@@ -2450,6 +2452,7 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
2450
2452
|
* @public
|
|
2451
2453
|
*/
|
|
2452
2454
|
Gantt.prototype.updateDataSource = function (dataSource, args) {
|
|
2455
|
+
this.isDynamicData = true;
|
|
2453
2456
|
if (!isNullOrUndefined(args)) {
|
|
2454
2457
|
for (var _i = 0, _a = Object.keys(args); _i < _a.length; _i++) { // eslint-disable-line
|
|
2455
2458
|
var prop = _a[_i];
|
|
@@ -2653,12 +2656,15 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
2653
2656
|
if (!isNullOrUndefined(rowData)) {
|
|
2654
2657
|
var data = extend({}, {}, rowData.taskData, true);
|
|
2655
2658
|
var taskfields = this.taskFields;
|
|
2659
|
+
if (data[taskfields.startDate]) {
|
|
2660
|
+
this.setRecordValue(taskfields.startDate, rowData.ganttProperties.startDate, data, true);
|
|
2661
|
+
}
|
|
2656
2662
|
if (!isNullOrUndefined(taskfields.duration)) {
|
|
2657
2663
|
data[taskfields.duration] = 0;
|
|
2658
2664
|
}
|
|
2659
2665
|
else {
|
|
2660
|
-
data[taskfields.startDate] = new Date(rowData.
|
|
2661
|
-
data[taskfields.endDate] = new Date(rowData.
|
|
2666
|
+
data[taskfields.startDate] = new Date(rowData.ganttProperties.startDate);
|
|
2667
|
+
data[taskfields.endDate] = new Date(rowData.ganttProperties.endDate);
|
|
2662
2668
|
}
|
|
2663
2669
|
if (!isNullOrUndefined(taskfields.milestone)) {
|
|
2664
2670
|
if (data[taskfields.milestone] === false) {
|
|
@@ -734,8 +734,16 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
734
734
|
var ganttProperties = ganttData.ganttProperties;
|
|
735
735
|
var duration = data[taskSettings.duration];
|
|
736
736
|
duration = isNullOrUndefined(duration) || duration === '' ? null : duration;
|
|
737
|
-
var startDate
|
|
738
|
-
var endDate
|
|
737
|
+
var startDate;
|
|
738
|
+
var endDate;
|
|
739
|
+
if (ganttProperties.startDate && ganttProperties.endDate) {
|
|
740
|
+
startDate = this.getDateFromFormat(ganttProperties.startDate, true);
|
|
741
|
+
endDate = this.getDateFromFormat(ganttProperties.endDate, true);
|
|
742
|
+
}
|
|
743
|
+
else {
|
|
744
|
+
startDate = this.getDateFromFormat(data[taskSettings.startDate], true);
|
|
745
|
+
endDate = this.getDateFromFormat(data[taskSettings.endDate], true);
|
|
746
|
+
}
|
|
739
747
|
var segments = taskSettings.segments ? (data[taskSettings.segments] ||
|
|
740
748
|
ganttData.taskData[taskSettings.segments]) : null;
|
|
741
749
|
var isMileStone = taskSettings.milestone ? data[taskSettings.milestone] ? true : false : false;
|
|
@@ -1337,7 +1345,10 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
1337
1345
|
if (!isNullOrUndefined(value)) {
|
|
1338
1346
|
value = new Date(tempDate.getTime());
|
|
1339
1347
|
}
|
|
1340
|
-
this.parent.
|
|
1348
|
+
if (!this.parent.isLoad && !this.parent.isDynamicData) {
|
|
1349
|
+
this.parent.setRecordValue('taskData.' + mapping, value, task);
|
|
1350
|
+
}
|
|
1351
|
+
this.parent.isDynamicData = false;
|
|
1341
1352
|
};
|
|
1342
1353
|
TaskProcessor.prototype.getDurationInDay = function (duration, durationUnit) {
|
|
1343
1354
|
if (durationUnit === 'day') {
|
|
@@ -2160,7 +2171,13 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
2160
2171
|
continue;
|
|
2161
2172
|
}
|
|
2162
2173
|
var startDate = this.getValidStartDate(childData.ganttProperties);
|
|
2174
|
+
if (parentData.hasChildRecords && !ganttProp.isAutoSchedule && !isNullOrUndefined(childData.ganttProperties.autoStartDate)) {
|
|
2175
|
+
startDate = childData.ganttProperties.autoStartDate;
|
|
2176
|
+
}
|
|
2163
2177
|
var endDate = this.getValidEndDate(childData.ganttProperties);
|
|
2178
|
+
if (parentData.hasChildRecords && !ganttProp.isAutoSchedule && !isNullOrUndefined(childData.ganttProperties.autoEndDate)) {
|
|
2179
|
+
endDate = childData.ganttProperties.autoEndDate;
|
|
2180
|
+
}
|
|
2164
2181
|
if (isNullOrUndefined(minStartDate)) {
|
|
2165
2182
|
minStartDate = this.getDateFromFormat(startDate);
|
|
2166
2183
|
}
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
.e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
|
|
63
63
|
.e-float-input.e-control-wrapper.e-ddl input[readonly] {
|
|
64
64
|
background: transparent;
|
|
65
|
-
color: inherit;
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
.e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
|
|
@@ -181,6 +180,8 @@
|
|
|
181
180
|
border-left-width: 0;
|
|
182
181
|
}
|
|
183
182
|
|
|
183
|
+
/*! Toolbar's bootstrap5 theme wise override definitions and variables */
|
|
184
|
+
/*! Tab's bootstrap5 theme wise override definitions and variables */
|
|
184
185
|
/*! Horizontal Tab */
|
|
185
186
|
/*! Bootstrap specific themes definition's */
|
|
186
187
|
/*! Vertical Tab */
|
|
@@ -1608,21 +1609,21 @@
|
|
|
1608
1609
|
.e-gantt .e-gantt-chart .e-left-label-temp-container {
|
|
1609
1610
|
color: #ced4da;
|
|
1610
1611
|
font-size: 14px;
|
|
1611
|
-
padding-right:
|
|
1612
|
+
padding-right: 25px;
|
|
1612
1613
|
}
|
|
1613
1614
|
|
|
1614
1615
|
.e-gantt .e-gantt-chart .e-right-label-temp-container {
|
|
1615
1616
|
color: #ced4da;
|
|
1616
1617
|
font-size: 14px;
|
|
1617
|
-
margin-left:
|
|
1618
|
+
margin-left: 25px;
|
|
1618
1619
|
}
|
|
1619
1620
|
|
|
1620
1621
|
.e-gantt .e-gantt-chart .e-right-label-container {
|
|
1621
|
-
margin-left:
|
|
1622
|
+
margin-left: 25px;
|
|
1622
1623
|
}
|
|
1623
1624
|
|
|
1624
1625
|
.e-gantt .e-gantt-chart .e-left-label-container {
|
|
1625
|
-
padding-right:
|
|
1626
|
+
padding-right: 25px;
|
|
1626
1627
|
}
|
|
1627
1628
|
|
|
1628
1629
|
.e-gantt .e-gantt-chart .e-connectorpoint-right {
|
package/styles/bootstrap5.css
CHANGED
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
.e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
|
|
63
63
|
.e-float-input.e-control-wrapper.e-ddl input[readonly] {
|
|
64
64
|
background: transparent;
|
|
65
|
-
color: inherit;
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
.e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
|
|
@@ -181,6 +180,8 @@
|
|
|
181
180
|
border-left-width: 0;
|
|
182
181
|
}
|
|
183
182
|
|
|
183
|
+
/*! Toolbar's bootstrap5 theme wise override definitions and variables */
|
|
184
|
+
/*! Tab's bootstrap5 theme wise override definitions and variables */
|
|
184
185
|
/*! Horizontal Tab */
|
|
185
186
|
/*! Bootstrap specific themes definition's */
|
|
186
187
|
/*! Vertical Tab */
|
|
@@ -1608,21 +1609,21 @@
|
|
|
1608
1609
|
.e-gantt .e-gantt-chart .e-left-label-temp-container {
|
|
1609
1610
|
color: #495057;
|
|
1610
1611
|
font-size: 14px;
|
|
1611
|
-
padding-right:
|
|
1612
|
+
padding-right: 25px;
|
|
1612
1613
|
}
|
|
1613
1614
|
|
|
1614
1615
|
.e-gantt .e-gantt-chart .e-right-label-temp-container {
|
|
1615
1616
|
color: #495057;
|
|
1616
1617
|
font-size: 14px;
|
|
1617
|
-
margin-left:
|
|
1618
|
+
margin-left: 25px;
|
|
1618
1619
|
}
|
|
1619
1620
|
|
|
1620
1621
|
.e-gantt .e-gantt-chart .e-right-label-container {
|
|
1621
|
-
margin-left:
|
|
1622
|
+
margin-left: 25px;
|
|
1622
1623
|
}
|
|
1623
1624
|
|
|
1624
1625
|
.e-gantt .e-gantt-chart .e-left-label-container {
|
|
1625
|
-
padding-right:
|
|
1626
|
+
padding-right: 25px;
|
|
1626
1627
|
}
|
|
1627
1628
|
|
|
1628
1629
|
.e-gantt .e-gantt-chart .e-connectorpoint-right {
|
|
@@ -142,6 +142,7 @@ $gantt-header-font-weight: 500 !default;
|
|
|
142
142
|
$gantt-drag-clone-font-weight: $gantt-header-font-weight !default;
|
|
143
143
|
$gantt-drag-clone-opacity: 1 !default;
|
|
144
144
|
$gantt-group-clone-text-align: center !default;
|
|
145
|
+
$grid-grey-base: #000 !default;
|
|
145
146
|
$gantt-clone-prop-box-shadow: 0 6px 12px rgba($grid-grey-base, .175) !default;
|
|
146
147
|
$gantt-drag-clone-bg-color: $content-bg !default;
|
|
147
148
|
$gantt-drag-clone-border-color: #ddd !default;
|
|
@@ -104,7 +104,7 @@ $gantt-parent-task-bar-border: 1px solid $border-dark !default;
|
|
|
104
104
|
$gantt-progress-bar-left-radius: 2px !default;
|
|
105
105
|
$gantt-unscheduled-taskbar-left-radius: 0px !default;
|
|
106
106
|
$gantt-connector-point-right-margin-left: 2px !default;
|
|
107
|
-
$gantt-right-label-container-margin-left:
|
|
107
|
+
$gantt-right-label-container-margin-left: 25px !default;
|
|
108
108
|
$gantt-task-label-font-size: 12px !default;
|
|
109
109
|
$gantt-label-font-size: 14px !default;
|
|
110
110
|
$gantt-bigger-label-font-size: 16px !default;
|