@syncfusion/ej2-gantt 19.2.62 → 19.3.46
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/.eslintrc.json +1 -1
- package/CHANGELOG.md +38 -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 +124 -105
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +127 -107
- 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/cell-edit.js +1 -0
- package/src/gantt/actions/dialog-edit.js +6 -1
- package/src/gantt/actions/edit.js +12 -5
- package/src/gantt/actions/filter.js +1 -1
- package/src/gantt/actions/taskbar-edit.js +3 -3
- package/src/gantt/base/gantt-chart.js +1 -1
- package/src/gantt/base/gantt-model.d.ts +3 -30
- package/src/gantt/base/gantt.d.ts +2 -30
- package/src/gantt/base/gantt.js +59 -4
- package/src/gantt/base/interface.d.ts +4 -22
- package/src/gantt/base/splitter.js +7 -2
- package/src/gantt/base/task-processor.js +11 -3
- package/src/gantt/base/tree-grid.js +8 -2
- package/src/gantt/base/utils.js +2 -2
- package/src/gantt/export/export-helper.js +12 -14
- package/src/gantt/models/column.d.ts +11 -6
- package/src/gantt/models/day-working-time-model.d.ts +0 -4
- package/src/gantt/models/day-working-time.d.ts +0 -4
- package/src/gantt/models/selection-settings-model.d.ts +0 -4
- package/src/gantt/models/selection-settings.d.ts +0 -4
- package/src/gantt/renderer/chart-rows.d.ts +0 -1
- package/src/gantt/renderer/chart-rows.js +3 -71
- package/src/gantt/renderer/nonworking-day.js +1 -1
- package/styles/bootstrap-dark.css +17 -0
- package/styles/bootstrap.css +17 -0
- package/styles/bootstrap4.css +22 -0
- package/styles/bootstrap5-dark.css +1922 -0
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5.css +1922 -0
- package/styles/bootstrap5.scss +1 -0
- package/styles/fabric-dark.css +17 -0
- package/styles/fabric.css +17 -0
- package/styles/gantt/_bootstrap-dark-definition.scss +3 -0
- package/styles/gantt/_bootstrap-definition.scss +3 -0
- package/styles/gantt/_bootstrap4-definition.scss +3 -0
- package/styles/gantt/_bootstrap5-dark-definition.scss +1 -0
- package/styles/gantt/_bootstrap5-definition.scss +164 -0
- package/styles/gantt/_fabric-dark-definition.scss +3 -0
- package/styles/gantt/_fabric-definition.scss +3 -0
- package/styles/gantt/_highcontrast-definition.scss +3 -0
- package/styles/gantt/_highcontrast-light-definition.scss +3 -0
- package/styles/gantt/_layout.scss +15 -3
- package/styles/gantt/_material-dark-definition.scss +3 -0
- package/styles/gantt/_material-definition.scss +3 -0
- package/styles/gantt/_tailwind-dark-definition.scss +1 -156
- package/styles/gantt/_tailwind-definition.scss +67 -60
- package/styles/gantt/_theme.scss +8 -1
- package/styles/gantt/bootstrap-dark.css +17 -0
- package/styles/gantt/bootstrap.css +17 -0
- package/styles/gantt/bootstrap4.css +22 -0
- package/styles/gantt/bootstrap5-dark.css +1922 -0
- package/styles/gantt/bootstrap5-dark.scss +22 -0
- package/styles/gantt/bootstrap5.css +1922 -0
- package/styles/gantt/bootstrap5.scss +22 -0
- package/styles/gantt/fabric-dark.css +17 -0
- package/styles/gantt/fabric.css +17 -0
- package/styles/gantt/highcontrast-light.css +17 -0
- package/styles/gantt/highcontrast.css +17 -0
- package/styles/gantt/icons/_bootstrap5-dark.scss +1 -0
- package/styles/gantt/icons/_bootstrap5.scss +112 -0
- package/styles/gantt/icons/_tailwind-dark.scss +112 -112
- package/styles/gantt/material-dark.css +19 -2
- package/styles/gantt/material.css +17 -0
- package/styles/gantt/tailwind-dark.css +41 -25
- package/styles/gantt/tailwind.css +39 -23
- package/styles/highcontrast-light.css +17 -0
- package/styles/highcontrast.css +17 -0
- package/styles/material-dark.css +19 -2
- package/styles/material.css +17 -0
- package/styles/tailwind-dark.css +41 -25
- package/styles/tailwind.css +39 -23
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.3.46
|
|
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.3.45",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-RZLdEJYylDpfailqWhBOXPgh9R/pvL9s1BhtCTXdwpn/lfRqGQV0UlXqvqYnYRfy6DXyzvhfj0kvFX9nnKT1BA==",
|
|
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-hotfix/@syncfusion/ej2-gantt/-/ej2-gantt-19.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-gantt/-/ej2-gantt-19.3.45.tgz",
|
|
27
|
+
"_shasum": "d3e74c79b2a7f546bd6e8ec0effee6cb28b5db87",
|
|
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.3.43",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~19.3.44",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~19.3.46",
|
|
41
|
+
"@syncfusion/ej2-data": "~19.3.46",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~19.3.46",
|
|
43
|
+
"@syncfusion/ej2-grids": "~19.3.46",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~19.3.44",
|
|
45
|
+
"@syncfusion/ej2-layouts": "~19.3.44",
|
|
46
|
+
"@syncfusion/ej2-lists": "~19.3.45",
|
|
47
|
+
"@syncfusion/ej2-navigations": "~19.3.46",
|
|
48
|
+
"@syncfusion/ej2-popups": "~19.3.43",
|
|
49
|
+
"@syncfusion/ej2-richtexteditor": "~19.3.46",
|
|
50
|
+
"@syncfusion/ej2-treegrid": "~19.3.46"
|
|
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.3.46",
|
|
79
79
|
"sideEffects": false
|
|
80
80
|
}
|
|
@@ -481,6 +481,7 @@ var CellEdit = /** @class */ (function () {
|
|
|
481
481
|
this.parent.editModule.dialogModule.isResourceUpdate = true;
|
|
482
482
|
this.parent.editModule.dialogModule.previousResource = previousResource;
|
|
483
483
|
}
|
|
484
|
+
this.updateDates(args);
|
|
484
485
|
this.updateEditedRecord(args);
|
|
485
486
|
}
|
|
486
487
|
};
|
|
@@ -2155,7 +2155,12 @@ var DialogEdit = /** @class */ (function () {
|
|
|
2155
2155
|
var ganttObj = this.parent;
|
|
2156
2156
|
var rte = notesElement.ej2_instances[0];
|
|
2157
2157
|
if (this.isEdit) {
|
|
2158
|
-
|
|
2158
|
+
if (ganttObj.columnByField[ganttObj.taskFields.notes].disableHtmlEncode) {
|
|
2159
|
+
this.parent.setRecordValue('notes', rte.getHtml(), this.rowData.ganttProperties, true);
|
|
2160
|
+
}
|
|
2161
|
+
else {
|
|
2162
|
+
this.parent.setRecordValue('notes', rte.getText(), this.rowData.ganttProperties, true);
|
|
2163
|
+
}
|
|
2159
2164
|
ganttObj.dataOperation.updateMappingData(this.rowData, 'notes');
|
|
2160
2165
|
}
|
|
2161
2166
|
else {
|
|
@@ -529,7 +529,10 @@ var Edit = /** @class */ (function () {
|
|
|
529
529
|
if (ganttProp.work > 0 || column === 'work') {
|
|
530
530
|
switch (taskType) {
|
|
531
531
|
case 'FixedUnit':
|
|
532
|
-
if (
|
|
532
|
+
if (ganttProp.resourceInfo.length === 0) {
|
|
533
|
+
return;
|
|
534
|
+
}
|
|
535
|
+
else if (isAutoSchedule && ganttProp.resourceInfo.length &&
|
|
533
536
|
(column === 'work' || (column === 'resource'))) {
|
|
534
537
|
this.parent.dataOperation.updateDurationWithWork(currentData);
|
|
535
538
|
}
|
|
@@ -752,7 +755,6 @@ var Edit = /** @class */ (function () {
|
|
|
752
755
|
*/
|
|
753
756
|
Edit.prototype.validateTaskEvent = function (editedEventArgs) {
|
|
754
757
|
var newArgs = {};
|
|
755
|
-
var blazorArgs = {};
|
|
756
758
|
this.resetValidateArgs();
|
|
757
759
|
this.parent.currentEditedArgs = newArgs;
|
|
758
760
|
newArgs.cancel = false;
|
|
@@ -1676,6 +1678,7 @@ var Edit = /** @class */ (function () {
|
|
|
1676
1678
|
Edit.prototype.deleteRow = function (tasks) {
|
|
1677
1679
|
var rowItems = tasks && tasks.length ? tasks :
|
|
1678
1680
|
this.parent.selectionModule.getSelectedRecords();
|
|
1681
|
+
this.parent.addDeleteRecord = true;
|
|
1679
1682
|
if (rowItems.length) {
|
|
1680
1683
|
this.parent.isOnDelete = true;
|
|
1681
1684
|
rowItems.forEach(function (item) {
|
|
@@ -1900,7 +1903,6 @@ var Edit = /** @class */ (function () {
|
|
|
1900
1903
|
eventArgs.data = args.deletedRecordCollection;
|
|
1901
1904
|
eventArgs.modifiedRecords = args.updatedRecordCollection;
|
|
1902
1905
|
eventArgs.modifiedTaskData = getTaskData(args.updatedRecordCollection, null, null, this.parent);
|
|
1903
|
-
var blazorArgs = {};
|
|
1904
1906
|
this.parent.trigger('actionBegin', eventArgs, function (eventArg) {
|
|
1905
1907
|
if (eventArg.cancel) {
|
|
1906
1908
|
var deleteRecords = _this.deletedTaskDetails;
|
|
@@ -2403,6 +2405,7 @@ var Edit = /** @class */ (function () {
|
|
|
2403
2405
|
// this.parent.connectorLineIds = [];
|
|
2404
2406
|
// this.parent.predecessorModule.createConnectorLinesCollection(this.parent.flatData);
|
|
2405
2407
|
this.parent.treeGrid.parentData = [];
|
|
2408
|
+
this.parent.addDeleteRecord = true;
|
|
2406
2409
|
this.parent.selectedRowIndex = 0;
|
|
2407
2410
|
this.parent.treeGrid.refresh();
|
|
2408
2411
|
if (this.parent.enableImmutableMode) {
|
|
@@ -2519,7 +2522,6 @@ var Edit = /** @class */ (function () {
|
|
|
2519
2522
|
var args = {};
|
|
2520
2523
|
args = this.constructTaskAddedEventArgs(cAddedRecord_1, this.parent.editedRecords, 'beforeAdd');
|
|
2521
2524
|
this.parent.showSpinner();
|
|
2522
|
-
var blazorArgs = {};
|
|
2523
2525
|
this.parent.trigger('actionBegin', args, function (args) {
|
|
2524
2526
|
if (!args.cancel) {
|
|
2525
2527
|
if (isRemoteData(_this.parent.dataSource)) {
|
|
@@ -2659,7 +2661,12 @@ var Edit = /** @class */ (function () {
|
|
|
2659
2661
|
switch (rowPosition) {
|
|
2660
2662
|
case 'Top':
|
|
2661
2663
|
case 'Bottom':
|
|
2662
|
-
|
|
2664
|
+
if (this.parent.viewType === "ResourceView") {
|
|
2665
|
+
level = 1;
|
|
2666
|
+
}
|
|
2667
|
+
else {
|
|
2668
|
+
level = 0;
|
|
2669
|
+
}
|
|
2663
2670
|
break;
|
|
2664
2671
|
case 'Above':
|
|
2665
2672
|
case 'Below':
|
|
@@ -310,7 +310,7 @@ var TaskbarEdit = /** @class */ (function (_super) {
|
|
|
310
310
|
*/
|
|
311
311
|
TaskbarEdit.prototype.showHideTaskBarEditingElements = function (element, secondElement, fadeConnectorLine) {
|
|
312
312
|
secondElement = secondElement ? secondElement : this.editElement;
|
|
313
|
-
var isShowProgressResizer = true;
|
|
313
|
+
var isShowProgressResizer = this.parent.taskFields.progress ? true : false;
|
|
314
314
|
if (this.parent.readOnly) {
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
@@ -398,8 +398,8 @@ var TaskbarEdit = /** @class */ (function (_super) {
|
|
|
398
398
|
else if (mouseDownElement.classList.contains(cls.taskBarRightResizer)) {
|
|
399
399
|
action = 'RightResizing';
|
|
400
400
|
}
|
|
401
|
-
else if (mouseDownElement.classList.contains(cls.childProgressResizer) ||
|
|
402
|
-
closest(mouseDownElement, '.' + cls.childProgressResizer)) {
|
|
401
|
+
else if ((mouseDownElement.classList.contains(cls.childProgressResizer) ||
|
|
402
|
+
closest(mouseDownElement, '.' + cls.childProgressResizer)) && (this.parent.taskFields.progress)) {
|
|
403
403
|
action = 'ProgressResizing';
|
|
404
404
|
}
|
|
405
405
|
else if (mouseDownElement.classList.contains(cls.connectorPointLeft)) {
|
|
@@ -208,7 +208,7 @@ var GanttChart = /** @class */ (function () {
|
|
|
208
208
|
GanttChart.prototype.updateWidthAndHeight = function () {
|
|
209
209
|
//empty row height
|
|
210
210
|
var emptydivHeight = 36;
|
|
211
|
-
var emptyHeight = this.parent.contentHeight === 0 ? emptydivHeight : this.parent.contentHeight;
|
|
211
|
+
var emptyHeight = this.parent.contentHeight === 0 ? this.parent.flatData.length > 1 ? emptydivHeight : 0 : this.parent.contentHeight;
|
|
212
212
|
this.chartBodyContent.style.height = formatUnit(emptyHeight);
|
|
213
213
|
//let element: HTMLElement = this.chartTimelineContainer.querySelector('.' + cls.timelineHeaderTableContainer);
|
|
214
214
|
this.chartBodyContent.style.width = formatUnit(this.parent.timelineModule.totalTimelineWidth);
|
|
@@ -103,7 +103,6 @@ export interface GanttModel extends ComponentModel{
|
|
|
103
103
|
*
|
|
104
104
|
* @default 0
|
|
105
105
|
* @aspType int
|
|
106
|
-
* @blazorType int
|
|
107
106
|
*/
|
|
108
107
|
treeColumnIndex?: number;
|
|
109
108
|
|
|
@@ -269,7 +268,6 @@ export interface GanttModel extends ComponentModel{
|
|
|
269
268
|
*
|
|
270
269
|
* @default 36
|
|
271
270
|
* @aspType int
|
|
272
|
-
* @blazorType int
|
|
273
271
|
*/
|
|
274
272
|
rowHeight?: number;
|
|
275
273
|
|
|
@@ -277,8 +275,6 @@ export interface GanttModel extends ComponentModel{
|
|
|
277
275
|
* Defines height of taskbar element in Gantt.
|
|
278
276
|
*
|
|
279
277
|
* @aspType int?
|
|
280
|
-
* @blazorType int
|
|
281
|
-
* @isBlazorNullableType true
|
|
282
278
|
*/
|
|
283
279
|
taskbarHeight?: number;
|
|
284
280
|
|
|
@@ -286,7 +282,6 @@ export interface GanttModel extends ComponentModel{
|
|
|
286
282
|
* Defines start date of the project, if `projectStartDate` value not set then it will be calculated from data source.
|
|
287
283
|
*
|
|
288
284
|
* @default null
|
|
289
|
-
* @blazorType Date
|
|
290
285
|
*/
|
|
291
286
|
projectStartDate?: Date | string;
|
|
292
287
|
|
|
@@ -294,7 +289,6 @@ export interface GanttModel extends ComponentModel{
|
|
|
294
289
|
* Defines end date of the project, if `projectEndDate` value not set then it will be calculated from data source.
|
|
295
290
|
*
|
|
296
291
|
* @default null
|
|
297
|
-
* @blazorType Date
|
|
298
292
|
*/
|
|
299
293
|
projectEndDate?: Date | string;
|
|
300
294
|
|
|
@@ -338,7 +332,6 @@ export interface GanttModel extends ComponentModel{
|
|
|
338
332
|
*
|
|
339
333
|
* @default 1
|
|
340
334
|
* @aspType int
|
|
341
|
-
* @blazorType int
|
|
342
335
|
*/
|
|
343
336
|
connectorLineWidth?: number;
|
|
344
337
|
|
|
@@ -375,7 +368,6 @@ export interface GanttModel extends ComponentModel{
|
|
|
375
368
|
*
|
|
376
369
|
* @default -1
|
|
377
370
|
* @aspType int
|
|
378
|
-
* @blazorType int
|
|
379
371
|
*/
|
|
380
372
|
selectedRowIndex?: number;
|
|
381
373
|
|
|
@@ -693,8 +685,6 @@ export interface GanttModel extends ComponentModel{
|
|
|
693
685
|
* Triggers when Gantt actions such as sorting, filtering, searching etc., starts.
|
|
694
686
|
*
|
|
695
687
|
* @event actionBegin
|
|
696
|
-
* @blazorproperty 'OnActionBegin'
|
|
697
|
-
* @blazorType Syncfusion.EJ2.Blazor.Gantt.ActionBeginArgs<TValue>
|
|
698
688
|
*/
|
|
699
689
|
actionBegin?: EmitType<Object | PageEventArgs | FilterEventArgs | SortEventArgs | ITimeSpanEventArgs | IDependencyEventArgs | ITaskAddedEventArgs | ZoomEventArgs>; // eslint-disable-line
|
|
700
690
|
|
|
@@ -702,8 +692,6 @@ export interface GanttModel extends ComponentModel{
|
|
|
702
692
|
* Triggers when Gantt actions such as sorting, filtering, searching etc. are completed.
|
|
703
693
|
*
|
|
704
694
|
* @event actionComplete
|
|
705
|
-
* @blazorproperty 'OnActionComplete'
|
|
706
|
-
* @blazorType Syncfusion.EJ2.Blazor.Gantt.ActionCompleteArgs<TValue>
|
|
707
695
|
*/
|
|
708
696
|
actionComplete?: EmitType<FilterEventArgs | SortEventArgs | ITaskAddedEventArgs | IKeyPressedEventArgs | ZoomEventArgs>;
|
|
709
697
|
|
|
@@ -711,8 +699,6 @@ export interface GanttModel extends ComponentModel{
|
|
|
711
699
|
* Triggers when actions are failed.
|
|
712
700
|
*
|
|
713
701
|
* @event actionFailure
|
|
714
|
-
* @blazorproperty 'OnActionFailure'
|
|
715
|
-
* @blazorType Syncfusion.EJ2.Blazor.Grids.FailureEventArgs
|
|
716
702
|
*/
|
|
717
703
|
actionFailure?: EmitType<FailureEventArgs>;
|
|
718
704
|
|
|
@@ -742,7 +728,6 @@ export interface GanttModel extends ComponentModel{
|
|
|
742
728
|
* This will be triggered a cell get begins to edit.
|
|
743
729
|
*
|
|
744
730
|
* @event cellEdit
|
|
745
|
-
* @blazorproperty 'OnCellEdit'
|
|
746
731
|
*/
|
|
747
732
|
cellEdit?: EmitType<CellEditArgs>;
|
|
748
733
|
|
|
@@ -750,8 +735,7 @@ export interface GanttModel extends ComponentModel{
|
|
|
750
735
|
* Triggered before the Gantt control gets rendered.
|
|
751
736
|
*
|
|
752
737
|
* @event load
|
|
753
|
-
|
|
754
|
-
*/
|
|
738
|
+
*/
|
|
755
739
|
load?: EmitType<Object>;
|
|
756
740
|
|
|
757
741
|
/**
|
|
@@ -810,7 +794,6 @@ export interface GanttModel extends ComponentModel{
|
|
|
810
794
|
* Triggers when splitter resizing starts.
|
|
811
795
|
*
|
|
812
796
|
* @event splitterResizeStart
|
|
813
|
-
* @blazorType Syncfusion.EJ2.Blazor.Layouts.ResizeEventArgs
|
|
814
797
|
*/
|
|
815
798
|
splitterResizeStart?: EmitType<ResizeEventArgs>;
|
|
816
799
|
|
|
@@ -818,7 +801,6 @@ export interface GanttModel extends ComponentModel{
|
|
|
818
801
|
* Triggers when splitter bar was dragging.
|
|
819
802
|
*
|
|
820
803
|
* @event splitterResizing
|
|
821
|
-
* @blazorType Syncfusion.EJ2.Blazor.Layouts.ResizingEventArgs
|
|
822
804
|
*/
|
|
823
805
|
splitterResizing?: EmitType<ResizingEventArgs>;
|
|
824
806
|
|
|
@@ -900,7 +882,6 @@ export interface GanttModel extends ComponentModel{
|
|
|
900
882
|
* Triggers after a cell is selected.
|
|
901
883
|
*
|
|
902
884
|
* @event cellSelected
|
|
903
|
-
* @blazorType Syncfusion.EJ2.Blazor.Grids.CellSelectEventArgs<TValue>
|
|
904
885
|
*/
|
|
905
886
|
cellSelected?: EmitType<CellSelectEventArgs>;
|
|
906
887
|
|
|
@@ -931,8 +912,7 @@ export interface GanttModel extends ComponentModel{
|
|
|
931
912
|
* This will be triggered before the header cell element is appended to the Grid element.
|
|
932
913
|
*
|
|
933
914
|
* @event headerCellInfo
|
|
934
|
-
|
|
935
|
-
*/
|
|
915
|
+
*/
|
|
936
916
|
headerCellInfo?: EmitType<HeaderCellInfoEventArgs>;
|
|
937
917
|
|
|
938
918
|
/**
|
|
@@ -954,8 +934,6 @@ export interface GanttModel extends ComponentModel{
|
|
|
954
934
|
* Triggers when toolbar item was clicked.
|
|
955
935
|
*
|
|
956
936
|
* @event toolbarClick
|
|
957
|
-
* @blazorproperty 'OnToolbarClick'
|
|
958
|
-
* @blazorType Syncfusion.EJ2.Blazor.Navigations.ClickEventArgs
|
|
959
937
|
*/
|
|
960
938
|
toolbarClick?: EmitType<ClickEventArgs>;
|
|
961
939
|
|
|
@@ -963,16 +941,13 @@ export interface GanttModel extends ComponentModel{
|
|
|
963
941
|
* Triggers when click on column menu.
|
|
964
942
|
*
|
|
965
943
|
* @event columnMenuClick
|
|
966
|
-
|
|
967
|
-
* @blazorType Syncfusion.EJ2.Blazor.Grids.ColumnMenuClickEventArgs
|
|
968
|
-
*/
|
|
944
|
+
*/
|
|
969
945
|
columnMenuClick?: EmitType<ColumnMenuClickEventArgs>;
|
|
970
946
|
|
|
971
947
|
/**
|
|
972
948
|
* Triggers before context menu opens.
|
|
973
949
|
*
|
|
974
950
|
* @event contextMenuOpen
|
|
975
|
-
* @blazorType Syncfusion.EJ2.Blazor.Gantt.ContextMenuOpenEventArgs<TValue>
|
|
976
951
|
*/
|
|
977
952
|
contextMenuOpen?: EmitType<CMenuOpenEventArgs>;
|
|
978
953
|
|
|
@@ -980,8 +955,6 @@ export interface GanttModel extends ComponentModel{
|
|
|
980
955
|
* Triggers when click on context menu.
|
|
981
956
|
*
|
|
982
957
|
* @event contextMenuClick
|
|
983
|
-
* @blazorproperty 'ContextMenuItemClicked'
|
|
984
|
-
* @blazorType Syncfusion.EJ2.Blazor.Gantt.ContextMenuClickEventArgs<TValue>
|
|
985
958
|
*/
|
|
986
959
|
contextMenuClick?: EmitType<CMenuClickEventArgs>;
|
|
987
960
|
|
|
@@ -274,6 +274,8 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
|
|
|
274
274
|
/** @hidden */
|
|
275
275
|
showActiveElement: boolean;
|
|
276
276
|
/** @hidden */
|
|
277
|
+
addDeleteRecord: boolean;
|
|
278
|
+
/** @hidden */
|
|
277
279
|
enableHeaderFocus: boolean;
|
|
278
280
|
/** @hidden */
|
|
279
281
|
enableValidation: boolean;
|
|
@@ -362,7 +364,6 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
|
|
|
362
364
|
*
|
|
363
365
|
* @default 0
|
|
364
366
|
* @aspType int
|
|
365
|
-
* @blazorType int
|
|
366
367
|
*/
|
|
367
368
|
treeColumnIndex: number;
|
|
368
369
|
/**
|
|
@@ -508,29 +509,24 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
|
|
|
508
509
|
*
|
|
509
510
|
* @default 36
|
|
510
511
|
* @aspType int
|
|
511
|
-
* @blazorType int
|
|
512
512
|
*/
|
|
513
513
|
rowHeight: number;
|
|
514
514
|
/**
|
|
515
515
|
* Defines height of taskbar element in Gantt.
|
|
516
516
|
*
|
|
517
517
|
* @aspType int?
|
|
518
|
-
* @blazorType int
|
|
519
|
-
* @isBlazorNullableType true
|
|
520
518
|
*/
|
|
521
519
|
taskbarHeight: number;
|
|
522
520
|
/**
|
|
523
521
|
* Defines start date of the project, if `projectStartDate` value not set then it will be calculated from data source.
|
|
524
522
|
*
|
|
525
523
|
* @default null
|
|
526
|
-
* @blazorType Date
|
|
527
524
|
*/
|
|
528
525
|
projectStartDate: Date | string;
|
|
529
526
|
/**
|
|
530
527
|
* Defines end date of the project, if `projectEndDate` value not set then it will be calculated from data source.
|
|
531
528
|
*
|
|
532
529
|
* @default null
|
|
533
|
-
* @blazorType Date
|
|
534
530
|
*/
|
|
535
531
|
projectEndDate: Date | string;
|
|
536
532
|
/**
|
|
@@ -568,7 +564,6 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
|
|
|
568
564
|
*
|
|
569
565
|
* @default 1
|
|
570
566
|
* @aspType int
|
|
571
|
-
* @blazorType int
|
|
572
567
|
*/
|
|
573
568
|
connectorLineWidth: number;
|
|
574
569
|
/**
|
|
@@ -601,7 +596,6 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
|
|
|
601
596
|
*
|
|
602
597
|
* @default -1
|
|
603
598
|
* @aspType int
|
|
604
|
-
* @blazorType int
|
|
605
599
|
*/
|
|
606
600
|
selectedRowIndex: number;
|
|
607
601
|
/**
|
|
@@ -907,24 +901,18 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
|
|
|
907
901
|
* Triggers when Gantt actions such as sorting, filtering, searching etc., starts.
|
|
908
902
|
*
|
|
909
903
|
* @event actionBegin
|
|
910
|
-
* @blazorproperty 'OnActionBegin'
|
|
911
|
-
* @blazorType Syncfusion.EJ2.Blazor.Gantt.ActionBeginArgs<TValue>
|
|
912
904
|
*/
|
|
913
905
|
actionBegin: EmitType<Object | PageEventArgs | FilterEventArgs | SortEventArgs | ITimeSpanEventArgs | IDependencyEventArgs | ITaskAddedEventArgs | ZoomEventArgs>;
|
|
914
906
|
/**
|
|
915
907
|
* Triggers when Gantt actions such as sorting, filtering, searching etc. are completed.
|
|
916
908
|
*
|
|
917
909
|
* @event actionComplete
|
|
918
|
-
* @blazorproperty 'OnActionComplete'
|
|
919
|
-
* @blazorType Syncfusion.EJ2.Blazor.Gantt.ActionCompleteArgs<TValue>
|
|
920
910
|
*/
|
|
921
911
|
actionComplete: EmitType<FilterEventArgs | SortEventArgs | ITaskAddedEventArgs | IKeyPressedEventArgs | ZoomEventArgs>;
|
|
922
912
|
/**
|
|
923
913
|
* Triggers when actions are failed.
|
|
924
914
|
*
|
|
925
915
|
* @event actionFailure
|
|
926
|
-
* @blazorproperty 'OnActionFailure'
|
|
927
|
-
* @blazorType Syncfusion.EJ2.Blazor.Grids.FailureEventArgs
|
|
928
916
|
*/
|
|
929
917
|
actionFailure: EmitType<FailureEventArgs>;
|
|
930
918
|
/**
|
|
@@ -950,14 +938,12 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
|
|
|
950
938
|
* This will be triggered a cell get begins to edit.
|
|
951
939
|
*
|
|
952
940
|
* @event cellEdit
|
|
953
|
-
* @blazorproperty 'OnCellEdit'
|
|
954
941
|
*/
|
|
955
942
|
cellEdit: EmitType<CellEditArgs>;
|
|
956
943
|
/**
|
|
957
944
|
* Triggered before the Gantt control gets rendered.
|
|
958
945
|
*
|
|
959
946
|
* @event load
|
|
960
|
-
* @blazorproperty 'OnLoad'
|
|
961
947
|
*/
|
|
962
948
|
load: EmitType<Object>;
|
|
963
949
|
/**
|
|
@@ -1009,14 +995,12 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
|
|
|
1009
995
|
* Triggers when splitter resizing starts.
|
|
1010
996
|
*
|
|
1011
997
|
* @event splitterResizeStart
|
|
1012
|
-
* @blazorType Syncfusion.EJ2.Blazor.Layouts.ResizeEventArgs
|
|
1013
998
|
*/
|
|
1014
999
|
splitterResizeStart: EmitType<ResizeEventArgs>;
|
|
1015
1000
|
/**
|
|
1016
1001
|
* Triggers when splitter bar was dragging.
|
|
1017
1002
|
*
|
|
1018
1003
|
* @event splitterResizing
|
|
1019
|
-
* @blazorType Syncfusion.EJ2.Blazor.Layouts.ResizingEventArgs
|
|
1020
1004
|
*/
|
|
1021
1005
|
splitterResizing: EmitType<ResizingEventArgs>;
|
|
1022
1006
|
/**
|
|
@@ -1087,7 +1071,6 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
|
|
|
1087
1071
|
* Triggers after a cell is selected.
|
|
1088
1072
|
*
|
|
1089
1073
|
* @event cellSelected
|
|
1090
|
-
* @blazorType Syncfusion.EJ2.Blazor.Grids.CellSelectEventArgs<TValue>
|
|
1091
1074
|
*/
|
|
1092
1075
|
cellSelected: EmitType<CellSelectEventArgs>;
|
|
1093
1076
|
/**
|
|
@@ -1114,7 +1097,6 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
|
|
|
1114
1097
|
* This will be triggered before the header cell element is appended to the Grid element.
|
|
1115
1098
|
*
|
|
1116
1099
|
* @event headerCellInfo
|
|
1117
|
-
* @blazorType Syncfusion.EJ2.Blazor.Grids.HeaderCellInfoEventArgs
|
|
1118
1100
|
*/
|
|
1119
1101
|
headerCellInfo: EmitType<HeaderCellInfoEventArgs>;
|
|
1120
1102
|
/**
|
|
@@ -1134,31 +1116,24 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
|
|
|
1134
1116
|
* Triggers when toolbar item was clicked.
|
|
1135
1117
|
*
|
|
1136
1118
|
* @event toolbarClick
|
|
1137
|
-
* @blazorproperty 'OnToolbarClick'
|
|
1138
|
-
* @blazorType Syncfusion.EJ2.Blazor.Navigations.ClickEventArgs
|
|
1139
1119
|
*/
|
|
1140
1120
|
toolbarClick: EmitType<ClickEventArgs>;
|
|
1141
1121
|
/**
|
|
1142
1122
|
* Triggers when click on column menu.
|
|
1143
1123
|
*
|
|
1144
1124
|
* @event columnMenuClick
|
|
1145
|
-
* @blazorproperty 'ColumnMenuClicked'
|
|
1146
|
-
* @blazorType Syncfusion.EJ2.Blazor.Grids.ColumnMenuClickEventArgs
|
|
1147
1125
|
*/
|
|
1148
1126
|
columnMenuClick: EmitType<ColumnMenuClickEventArgs>;
|
|
1149
1127
|
/**
|
|
1150
1128
|
* Triggers before context menu opens.
|
|
1151
1129
|
*
|
|
1152
1130
|
* @event contextMenuOpen
|
|
1153
|
-
* @blazorType Syncfusion.EJ2.Blazor.Gantt.ContextMenuOpenEventArgs<TValue>
|
|
1154
1131
|
*/
|
|
1155
1132
|
contextMenuOpen: EmitType<CMenuOpenEventArgs>;
|
|
1156
1133
|
/**
|
|
1157
1134
|
* Triggers when click on context menu.
|
|
1158
1135
|
*
|
|
1159
1136
|
* @event contextMenuClick
|
|
1160
|
-
* @blazorproperty 'ContextMenuItemClicked'
|
|
1161
|
-
* @blazorType Syncfusion.EJ2.Blazor.Gantt.ContextMenuClickEventArgs<TValue>
|
|
1162
1137
|
*/
|
|
1163
1138
|
contextMenuClick: EmitType<CMenuClickEventArgs>;
|
|
1164
1139
|
constructor(options?: GanttModel, element?: string | HTMLElement);
|
|
@@ -1561,7 +1536,6 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
|
|
|
1561
1536
|
* @param {workbook} workbook - Defines the Workbook if multiple export is enabled.
|
|
1562
1537
|
* @param {boolean} isBlob - If 'isBlob' set to true, then it will be returned as blob data.
|
|
1563
1538
|
* @returns {Promise<any>} .
|
|
1564
|
-
* @blazorType void
|
|
1565
1539
|
*/
|
|
1566
1540
|
excelExport(excelExportProperties?: ExcelExportProperties, isMultipleExport?: boolean, workbook?: any, isBlob?: boolean): Promise<any>;
|
|
1567
1541
|
/**
|
|
@@ -1572,7 +1546,6 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
|
|
|
1572
1546
|
* @param {workbook} workbook - Defines the Workbook if multiple export is enabled.
|
|
1573
1547
|
* @param {boolean} isBlob - If 'isBlob' set to true, then it will be returned as blob data.
|
|
1574
1548
|
* @returns {Promise<any>} .
|
|
1575
|
-
* @blazorType void
|
|
1576
1549
|
*/
|
|
1577
1550
|
csvExport(excelExportProperties?: ExcelExportProperties, isMultipleExport?: boolean, workbook?: any, isBlob?: boolean): Promise<any>;
|
|
1578
1551
|
/**
|
|
@@ -1582,7 +1555,6 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
|
|
|
1582
1555
|
* @param {isMultipleExport} isMultipleExport - Define to enable multiple export.
|
|
1583
1556
|
* @param {pdfDoc} pdfDoc - Defined the Pdf Document if multiple export is enabled.
|
|
1584
1557
|
* @returns {Promise<any>} .
|
|
1585
|
-
* @blazorType void
|
|
1586
1558
|
*/
|
|
1587
1559
|
pdfExport(pdfExportProperties?: PdfExportProperties, isMultipleExport?: boolean, pdfDoc?: Object): Promise<Object>;
|
|
1588
1560
|
/**
|
package/src/gantt/base/gantt.js
CHANGED
|
@@ -79,6 +79,8 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
79
79
|
/** @hidden */
|
|
80
80
|
_this.showActiveElement = true;
|
|
81
81
|
/** @hidden */
|
|
82
|
+
_this.addDeleteRecord = false;
|
|
83
|
+
/** @hidden */
|
|
82
84
|
_this.enableHeaderFocus = true;
|
|
83
85
|
/** @hidden */
|
|
84
86
|
_this.enableValidation = true;
|
|
@@ -265,7 +267,19 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
265
267
|
* @returns {void} .
|
|
266
268
|
*/
|
|
267
269
|
Gantt.prototype.calculateDimensions = function () {
|
|
268
|
-
var settingsHeight
|
|
270
|
+
var settingsHeight;
|
|
271
|
+
if (typeof (this.height) !== 'number' && this.height.indexOf('%') !== -1 && (this.element.parentElement &&
|
|
272
|
+
!this.element.parentElement.style.height)) {
|
|
273
|
+
var ganttHeight = Number(this.height.split("%")[0]);
|
|
274
|
+
ganttHeight = (ganttHeight * window.innerHeight) / 100;
|
|
275
|
+
if (this.height === '100%') {
|
|
276
|
+
ganttHeight = ganttHeight - 16;
|
|
277
|
+
}
|
|
278
|
+
settingsHeight = this.validateDimentionValue(ganttHeight);
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
settingsHeight = this.validateDimentionValue(this.height);
|
|
282
|
+
}
|
|
269
283
|
var settingsWidth = this.validateDimentionValue(this.width);
|
|
270
284
|
if (!isNullOrUndefined(this.width) && typeof (this.width) === 'string' && this.width.indexOf('%') !== -1) {
|
|
271
285
|
settingsWidth = this.width;
|
|
@@ -406,6 +420,33 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
406
420
|
*/
|
|
407
421
|
Gantt.prototype.windowResize = function () {
|
|
408
422
|
if (!isNullOrUndefined(this.element)) {
|
|
423
|
+
var settingsHeight = void 0;
|
|
424
|
+
if (this.height.indexOf('%') !== -1) {
|
|
425
|
+
var ganttHeight = Number(this.height.split("%")[0]);
|
|
426
|
+
if (this.element.parentElement && this.element.parentElement.style.height) {
|
|
427
|
+
var containerHeight = Number(this.element.parentElement.style.height.split("px")[0]);
|
|
428
|
+
ganttHeight = (ganttHeight * containerHeight) / 100;
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
ganttHeight = Number(this.height.split("%")[0]);
|
|
432
|
+
ganttHeight = (ganttHeight * window.innerHeight) / 100;
|
|
433
|
+
}
|
|
434
|
+
if (this.height === '100%') {
|
|
435
|
+
ganttHeight = ganttHeight - 16;
|
|
436
|
+
}
|
|
437
|
+
var toolbarHeight = 0;
|
|
438
|
+
if (!isNullOrUndefined(this.toolbarModule) && !isNullOrUndefined(this.toolbarModule.element)) {
|
|
439
|
+
toolbarHeight = this.toolbarModule.element.offsetHeight;
|
|
440
|
+
}
|
|
441
|
+
var contentHeight = ganttHeight - this.ganttChartModule.chartTimelineContainer.offsetHeight - toolbarHeight;
|
|
442
|
+
settingsHeight = this.validateDimentionValue(ganttHeight);
|
|
443
|
+
this.element.style.height = settingsHeight;
|
|
444
|
+
this.element.querySelectorAll('.e-content')[0]['style'].height = contentHeight + 'px';
|
|
445
|
+
this.element.querySelectorAll('.e-content')[2]['style'].height = contentHeight + 'px';
|
|
446
|
+
}
|
|
447
|
+
else {
|
|
448
|
+
settingsHeight = this.validateDimentionValue(this.height);
|
|
449
|
+
}
|
|
409
450
|
this.updateContentHeight();
|
|
410
451
|
this.ganttChartModule.updateWidthAndHeight(); // Updating chart scroll conatiner height for row mismatch
|
|
411
452
|
this.treeGridModule.ensureScrollBar();
|
|
@@ -1313,6 +1354,23 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
1313
1354
|
this.treeGrid.height = this.ganttHeight - toolbarHeight -
|
|
1314
1355
|
this.treeGrid.grid.getHeaderContent().offsetHeight;
|
|
1315
1356
|
this.splitterModule.splitterObject.height = (this.ganttHeight - toolbarHeight).toString();
|
|
1357
|
+
if (!isNullOrUndefined(this.chartVerticalLineContainer)) {
|
|
1358
|
+
this.chartVerticalLineContainer.style.height = this.ganttHeight + 'px';
|
|
1359
|
+
}
|
|
1360
|
+
if (!isNullOrUndefined(this.dayMarkersModule)) {
|
|
1361
|
+
var holidayContainer = getValue('nonworkingDayRender.holidayContainer', this.dayMarkersModule);
|
|
1362
|
+
var weekendContainer = getValue('nonworkingDayRender.weekendContainer', this.dayMarkersModule);
|
|
1363
|
+
var eventMarkersContainer = getValue('eventMarkerRender.eventMarkersContainer', this.dayMarkersModule);
|
|
1364
|
+
if (holidayContainer) {
|
|
1365
|
+
holidayContainer.style.height = this.ganttHeight + 'px';
|
|
1366
|
+
}
|
|
1367
|
+
if (weekendContainer) {
|
|
1368
|
+
weekendContainer.style.height = this.ganttHeight + 'px';
|
|
1369
|
+
}
|
|
1370
|
+
if (eventMarkersContainer) {
|
|
1371
|
+
eventMarkersContainer.style.height = this.ganttHeight + 'px';
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1316
1374
|
this.splitterModule.splitterObject.width = this.ganttWidth.toString();
|
|
1317
1375
|
this.ganttChartModule.scrollObject.
|
|
1318
1376
|
setHeight(this.ganttHeight - this.ganttChartModule.chartTimelineContainer.offsetHeight - toolbarHeight);
|
|
@@ -1589,7 +1647,6 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
1589
1647
|
* @param {workbook} workbook - Defines the Workbook if multiple export is enabled.
|
|
1590
1648
|
* @param {boolean} isBlob - If 'isBlob' set to true, then it will be returned as blob data.
|
|
1591
1649
|
* @returns {Promise<any>} .
|
|
1592
|
-
* @blazorType void
|
|
1593
1650
|
*/
|
|
1594
1651
|
Gantt.prototype.excelExport = function (excelExportProperties, isMultipleExport,
|
|
1595
1652
|
/* eslint-disable-next-line */
|
|
@@ -1604,7 +1661,6 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
1604
1661
|
* @param {workbook} workbook - Defines the Workbook if multiple export is enabled.
|
|
1605
1662
|
* @param {boolean} isBlob - If 'isBlob' set to true, then it will be returned as blob data.
|
|
1606
1663
|
* @returns {Promise<any>} .
|
|
1607
|
-
* @blazorType void
|
|
1608
1664
|
*/
|
|
1609
1665
|
Gantt.prototype.csvExport = function (excelExportProperties,
|
|
1610
1666
|
/* eslint-disable-next-line */
|
|
@@ -1618,7 +1674,6 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
1618
1674
|
* @param {isMultipleExport} isMultipleExport - Define to enable multiple export.
|
|
1619
1675
|
* @param {pdfDoc} pdfDoc - Defined the Pdf Document if multiple export is enabled.
|
|
1620
1676
|
* @returns {Promise<any>} .
|
|
1621
|
-
* @blazorType void
|
|
1622
1677
|
*/
|
|
1623
1678
|
Gantt.prototype.pdfExport = function (pdfExportProperties, isMultipleExport, pdfDoc) {
|
|
1624
1679
|
return this.pdfExportModule ? this.pdfExportModule.export(pdfExportProperties, isMultipleExport, pdfDoc)
|