@syncfusion/ej2-gantt 19.3.46 → 19.3.47
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 +15 -0
- 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 +18 -10
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +18 -10
- 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 +13 -13
- package/src/gantt/actions/dialog-edit.js +6 -6
- package/src/gantt/actions/edit.js +3 -2
- package/src/gantt/base/date-processor.js +4 -1
- package/src/gantt/base/gantt.js +3 -0
- package/src/gantt/base/task-processor.js +1 -0
- package/src/gantt/base/utils.js +1 -1
- package/styles/bootstrap-dark.css +95 -99
- package/styles/bootstrap.css +95 -99
- package/styles/bootstrap4.css +95 -99
- package/styles/bootstrap5-dark.css +95 -99
- package/styles/bootstrap5.css +95 -99
- package/styles/fabric-dark.css +95 -99
- package/styles/fabric.css +95 -99
- package/styles/gantt/_bootstrap-dark-definition.scss +0 -1
- package/styles/gantt/_bootstrap-definition.scss +0 -1
- package/styles/gantt/_bootstrap4-definition.scss +0 -1
- package/styles/gantt/_bootstrap5-definition.scss +0 -1
- package/styles/gantt/_fabric-dark-definition.scss +0 -1
- package/styles/gantt/_fabric-definition.scss +0 -1
- package/styles/gantt/_highcontrast-definition.scss +0 -1
- package/styles/gantt/_highcontrast-light-definition.scss +0 -1
- package/styles/gantt/_layout.scss +94 -93
- package/styles/gantt/_material-dark-definition.scss +0 -1
- package/styles/gantt/_material-definition.scss +0 -1
- package/styles/gantt/_tailwind-definition.scss +0 -1
- package/styles/gantt/_theme.scss +76 -81
- package/styles/gantt/bootstrap-dark.css +95 -99
- package/styles/gantt/bootstrap.css +95 -99
- package/styles/gantt/bootstrap4.css +95 -99
- package/styles/gantt/bootstrap5-dark.css +95 -99
- package/styles/gantt/bootstrap5.css +95 -99
- package/styles/gantt/fabric-dark.css +95 -99
- package/styles/gantt/fabric.css +95 -99
- package/styles/gantt/highcontrast-light.css +95 -99
- package/styles/gantt/highcontrast.css +95 -99
- package/styles/gantt/material-dark.css +95 -99
- package/styles/gantt/material.css +95 -99
- package/styles/gantt/tailwind-dark.css +95 -99
- package/styles/gantt/tailwind.css +95 -99
- package/styles/highcontrast-light.css +95 -99
- package/styles/highcontrast.css +95 -99
- package/styles/material-dark.css +95 -99
- package/styles/material.css +95 -99
- package/styles/tailwind-dark.css +95 -99
- package/styles/tailwind.css +95 -99
|
@@ -113,7 +113,7 @@ function getTaskData(records, isNotExtend, eventArgs, parent) {
|
|
|
113
113
|
for (let i = 0; i < records.length; i++) {
|
|
114
114
|
let data;
|
|
115
115
|
if (!isNullOrUndefined(parent) && parent.timezone) {
|
|
116
|
-
|
|
116
|
+
updateDates(records[i], parent);
|
|
117
117
|
}
|
|
118
118
|
// eslint-disable-next-line
|
|
119
119
|
data = isNotExtend ? (records[i].taskData) : extend({}, records[i].taskData, {}, true);
|
|
@@ -1207,7 +1207,10 @@ class DateProcessor {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
}
|
|
1209
1209
|
remove(date, timezone) {
|
|
1210
|
-
|
|
1210
|
+
if (!isNullOrUndefined(date)) {
|
|
1211
|
+
date = this.reverse(date, timezone, date.getTimezoneOffset());
|
|
1212
|
+
}
|
|
1213
|
+
return date;
|
|
1211
1214
|
}
|
|
1212
1215
|
reverse(date, fromOffset, toOffset) {
|
|
1213
1216
|
if (typeof fromOffset === 'string') {
|
|
@@ -2320,6 +2323,7 @@ class TaskProcessor extends DateProcessor {
|
|
|
2320
2323
|
if (!isNullOrUndefined(ganttProperties.duration)) {
|
|
2321
2324
|
this.parent.setRecordValue('duration', updatedDuration, ganttProperties, true);
|
|
2322
2325
|
}
|
|
2326
|
+
this.parent.dataOperation.updateMappingData(ganttData, 'duration');
|
|
2323
2327
|
}
|
|
2324
2328
|
}
|
|
2325
2329
|
/**
|
|
@@ -13014,6 +13018,9 @@ let Gantt = class Gantt extends Component {
|
|
|
13014
13018
|
if (this.keyboardModule) {
|
|
13015
13019
|
this.keyboardModule.destroy();
|
|
13016
13020
|
}
|
|
13021
|
+
if (this.editModule && this.editModule.dialogModule) {
|
|
13022
|
+
this.editModule.dialogModule.destroy();
|
|
13023
|
+
}
|
|
13017
13024
|
super.destroy();
|
|
13018
13025
|
this.chartVerticalLineContainer = null;
|
|
13019
13026
|
this.element.innerHTML = '';
|
|
@@ -18069,7 +18076,7 @@ class DialogEdit {
|
|
|
18069
18076
|
dialogModel.position = position;
|
|
18070
18077
|
//dialogModel.width = '750px';
|
|
18071
18078
|
dialogModel.height = this.parent.isAdaptive ? '100%' : 'auto';
|
|
18072
|
-
dialogModel.target =
|
|
18079
|
+
dialogModel.target = document.body;
|
|
18073
18080
|
dialogModel.close = this.dialogClose.bind(this);
|
|
18074
18081
|
dialogModel.closeOnEscape = true;
|
|
18075
18082
|
dialogModel.open = (args) => {
|
|
@@ -18355,15 +18362,15 @@ class DialogEdit {
|
|
|
18355
18362
|
this.resourceSelection(id);
|
|
18356
18363
|
}
|
|
18357
18364
|
else if (id === ganttObj.element.id + 'NotesTabContainer') {
|
|
18358
|
-
|
|
18365
|
+
document.getElementById(id).ej2_instances[0].refresh();
|
|
18359
18366
|
}
|
|
18360
18367
|
else if (id === ganttObj.element.id + 'SegmentsTabContainer') {
|
|
18361
18368
|
if (isNullOrUndefined(this.beforeOpenArgs.rowData.ganttProperties.startDate)) {
|
|
18362
|
-
|
|
18369
|
+
document.getElementById(id).ej2_instances[0]
|
|
18363
18370
|
.enableToolbarItems([this.parent.element.id + 'SegmentsTabContainer' + '_add'], false);
|
|
18364
18371
|
}
|
|
18365
18372
|
else {
|
|
18366
|
-
|
|
18373
|
+
document.getElementById(id).ej2_instances[0]
|
|
18367
18374
|
.enableToolbarItems([this.parent.element.id + 'SegmentsTabContainer' + '_add'], true);
|
|
18368
18375
|
}
|
|
18369
18376
|
}
|
|
@@ -19310,7 +19317,7 @@ class DialogEdit {
|
|
|
19310
19317
|
updateResourceCollection(args, resourceTreeGridId) {
|
|
19311
19318
|
if (!isNullOrUndefined(args.data) && Object.keys(args.data).length) {
|
|
19312
19319
|
const ganttObj = this.parent;
|
|
19313
|
-
const treeGridId =
|
|
19320
|
+
const treeGridId = document.querySelector('#' + resourceTreeGridId);
|
|
19314
19321
|
const resourceTreeGrid = treeGridId.ej2_instances[0];
|
|
19315
19322
|
if (!isNullOrUndefined(resourceTreeGrid) && resourceTreeGrid.getSelectedRecords().length > 0) {
|
|
19316
19323
|
const tempRecords = resourceTreeGrid.getSelectedRecords();
|
|
@@ -19383,7 +19390,7 @@ class DialogEdit {
|
|
|
19383
19390
|
return divElement;
|
|
19384
19391
|
}
|
|
19385
19392
|
resourceSelection(id) {
|
|
19386
|
-
const resourceTreeGrid =
|
|
19393
|
+
const resourceTreeGrid = document.querySelector('#' + id).ej2_instances[0];
|
|
19387
19394
|
let currentViewData = resourceTreeGrid.getCurrentViewRecords();
|
|
19388
19395
|
let resources = this.ganttResources;
|
|
19389
19396
|
if (resources && resources.length > 0) {
|
|
@@ -21758,6 +21765,7 @@ class Edit$2 {
|
|
|
21758
21765
|
let eventArgs = {};
|
|
21759
21766
|
eventArgs.requestType = 'beforeSave';
|
|
21760
21767
|
eventArgs.data = args.data;
|
|
21768
|
+
eventArgs.cancel = false;
|
|
21761
21769
|
eventArgs.modifiedRecords = this.parent.editedRecords;
|
|
21762
21770
|
if (!isNullOrUndefined(args.target)) {
|
|
21763
21771
|
eventArgs.target = args.target;
|
|
@@ -22587,13 +22595,13 @@ class Edit$2 {
|
|
|
22587
22595
|
changedRecords: eventArg.modifiedTaskData
|
|
22588
22596
|
};
|
|
22589
22597
|
const adaptor = data.adaptor;
|
|
22598
|
+
const query = this.parent.query instanceof Query ? this.parent.query : new Query();
|
|
22590
22599
|
if (!(adaptor instanceof WebApiAdaptor && adaptor instanceof ODataAdaptor) || data.dataSource.batchUrl) {
|
|
22591
|
-
const crud = data.saveChanges(updatedData, this.parent.taskFields.id);
|
|
22600
|
+
const crud = data.saveChanges(updatedData, this.parent.taskFields.id, null, query);
|
|
22592
22601
|
crud.then(() => this.deleteSuccess(args))
|
|
22593
22602
|
.catch((e) => this.dmFailure(e, args));
|
|
22594
22603
|
}
|
|
22595
22604
|
else {
|
|
22596
|
-
const query = this.parent.query instanceof Query ? this.parent.query : new Query();
|
|
22597
22605
|
const deletedRecords = 'deletedRecords';
|
|
22598
22606
|
let deleteCrud = null;
|
|
22599
22607
|
for (let i = 0; i < updatedData[deletedRecords].length; i++) {
|