@syncfusion/ej2-gantt 20.3.61 → 20.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/.eslintrc.json +16 -1
- package/CHANGELOG.md +5 -0
- package/dist/ej2-gantt.min.js +2 -2
- 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 +1412 -476
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +1438 -484
- 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 +19 -18
- package/src/gantt/actions/chart-scroll.d.ts +5 -1
- package/src/gantt/actions/chart-scroll.js +39 -1
- package/src/gantt/actions/connector-line-edit.js +2 -0
- package/src/gantt/actions/context-menu.js +36 -5
- package/src/gantt/actions/critical-path.d.ts +2 -2
- package/src/gantt/actions/critical-path.js +23 -16
- package/src/gantt/actions/dialog-edit.js +37 -14
- package/src/gantt/actions/edit.d.ts +1 -0
- package/src/gantt/actions/edit.js +156 -34
- package/src/gantt/actions/excel-export.js +13 -0
- package/src/gantt/actions/filter.js +3 -0
- package/src/gantt/actions/keyboard.js +1 -0
- package/src/gantt/actions/pdf-export.js +12 -0
- package/src/gantt/actions/rowdragdrop.js +8 -2
- package/src/gantt/actions/taskbar-edit.js +140 -43
- package/src/gantt/actions/toolbar.js +21 -1
- package/src/gantt/base/date-processor.js +1 -1
- package/src/gantt/base/gantt-chart.js +31 -3
- package/src/gantt/base/gantt-model.d.ts +25 -2
- package/src/gantt/base/gantt.d.ts +64 -21
- package/src/gantt/base/gantt.js +396 -26
- package/src/gantt/base/interface.d.ts +0 -4
- package/src/gantt/base/splitter.js +12 -2
- package/src/gantt/base/task-processor.js +4 -3
- package/src/gantt/base/tree-grid.js +37 -0
- package/src/gantt/base/utils.js +1 -0
- package/src/gantt/export/pdf-connector-line.js +185 -187
- package/src/gantt/models/loading-indicator-model.d.ts +20 -0
- package/src/gantt/models/loading-indicator.d.ts +18 -0
- package/src/gantt/models/loading-indicator.js +34 -0
- package/src/gantt/models/models.d.ts +2 -0
- package/src/gantt/models/models.js +1 -0
- package/src/gantt/renderer/chart-rows.js +75 -30
- package/src/gantt/renderer/connector-line.js +100 -97
- package/src/gantt/renderer/edit-tooltip.js +22 -3
- package/src/gantt/renderer/event-marker.js +15 -2
- package/src/gantt/renderer/nonworking-day.js +4 -2
- package/src/gantt/renderer/timeline.js +21 -1
- package/src/gantt/renderer/tooltip.js +1 -0
- package/styles/bootstrap-dark.css +179 -12
- package/styles/bootstrap.css +179 -12
- package/styles/bootstrap4.css +178 -10
- package/styles/bootstrap5-dark.css +178 -10
- package/styles/bootstrap5.css +178 -10
- package/styles/fabric-dark.css +179 -12
- package/styles/fabric.css +179 -12
- package/styles/fluent-dark.css +180 -10
- package/styles/fluent.css +180 -10
- package/styles/gantt/_bootstrap-dark-definition.scss +6 -2
- package/styles/gantt/_bootstrap-definition.scss +6 -3
- package/styles/gantt/_bootstrap4-definition.scss +6 -3
- package/styles/gantt/_bootstrap5-definition.scss +6 -3
- package/styles/gantt/_fabric-dark-definition.scss +6 -3
- package/styles/gantt/_fabric-definition.scss +6 -3
- package/styles/gantt/_fluent-definition.scss +6 -3
- package/styles/gantt/_fusionnew-definition.scss +6 -3
- package/styles/gantt/_highcontrast-definition.scss +7 -4
- package/styles/gantt/_highcontrast-light-definition.scss +6 -3
- package/styles/gantt/_layout.scss +234 -21
- package/styles/gantt/_material-dark-definition.scss +6 -3
- package/styles/gantt/_material-definition.scss +6 -3
- package/styles/gantt/_material3-definition.scss +6 -3
- package/styles/gantt/_tailwind-definition.scss +6 -3
- package/styles/gantt/_theme.scss +17 -8
- package/styles/gantt/bootstrap-dark.css +179 -12
- package/styles/gantt/bootstrap.css +179 -12
- package/styles/gantt/bootstrap4.css +178 -10
- package/styles/gantt/bootstrap5-dark.css +178 -10
- package/styles/gantt/bootstrap5.css +178 -10
- package/styles/gantt/fabric-dark.css +179 -12
- package/styles/gantt/fabric.css +179 -12
- package/styles/gantt/fluent-dark.css +180 -10
- package/styles/gantt/fluent.css +180 -10
- package/styles/gantt/highcontrast-light.css +178 -10
- package/styles/gantt/highcontrast.css +179 -12
- package/styles/gantt/icons/_bootstrap-dark.scss +1 -1
- package/styles/gantt/icons/_bootstrap.scss +1 -1
- package/styles/gantt/icons/_fabric-dark.scss +1 -1
- package/styles/gantt/icons/_fabric.scss +1 -1
- package/styles/gantt/icons/_highcontrast.scss +1 -1
- package/styles/gantt/icons/_material-dark.scss +1 -1
- package/styles/gantt/icons/_material.scss +1 -1
- package/styles/gantt/material-dark.css +177 -12
- package/styles/gantt/material.css +179 -12
- package/styles/gantt/tailwind-dark.css +178 -10
- package/styles/gantt/tailwind.css +178 -10
- package/styles/highcontrast-light.css +178 -10
- package/styles/highcontrast.css +179 -12
- package/styles/material-dark.css +177 -12
- package/styles/material.css +179 -12
- package/styles/tailwind-dark.css +178 -10
- package/styles/tailwind.css +178 -10
|
@@ -101,9 +101,12 @@ var GanttTreeGrid = /** @class */ (function () {
|
|
|
101
101
|
this.parent.treeGrid.showColumnMenu = this.parent.showColumnMenu;
|
|
102
102
|
this.parent.treeGrid.enableCollapseAll = this.parent.collapseAllParentTasks;
|
|
103
103
|
this.parent.treeGrid.columnMenuItems = this.parent.columnMenuItems;
|
|
104
|
+
this.parent.treeGrid.enableRtl = this.parent.enableRtl;
|
|
104
105
|
this.parent.treeGrid.childMapping = isNullOrUndefined(this.parent.taskFields.child) ? '' : this.parent.taskFields.child;
|
|
105
106
|
this.parent.treeGrid.treeColumnIndex = this.parent.treeColumnIndex;
|
|
106
107
|
this.parent.treeGrid.columns = this.treeGridColumns;
|
|
108
|
+
this.parent.treeGrid.loadingIndicator = this.parent.loadingIndicator;
|
|
109
|
+
this.parent.treeGrid.enableVirtualMaskRow = this.parent.enableVirtualMaskRow;
|
|
107
110
|
if (this.parent.dataSource instanceof Object && isCountRequired(this.parent)) {
|
|
108
111
|
// In order to bind the observable data at load time, hasChildMapping is necessary to be mapped.
|
|
109
112
|
this.parent.treeGrid.hasChildMapping = 'isParent';
|
|
@@ -197,6 +200,14 @@ var GanttTreeGrid = /** @class */ (function () {
|
|
|
197
200
|
GanttTreeGrid.prototype.dataBound = function (args) {
|
|
198
201
|
this.ensureScrollBar();
|
|
199
202
|
this.parent.treeDataBound(args);
|
|
203
|
+
if (this.parent.isVirtualScroll) {
|
|
204
|
+
if ((this.parent.enableVirtualMaskRow && this.parent.enableVirtualization) ||
|
|
205
|
+
(this.parent.enableVirtualization && !this.parent.enableVirtualMaskRow && this.parent.loadingIndicator.indicatorType === "Shimmer") ||
|
|
206
|
+
(this.parent.loadingIndicator.indicatorType === "Shimmer")) {
|
|
207
|
+
this.parent.hideMaskRow();
|
|
208
|
+
}
|
|
209
|
+
this.parent.isVirtualScroll = false;
|
|
210
|
+
}
|
|
200
211
|
this.prevCurrentView = extend([], [], this.parent.currentViewData, true);
|
|
201
212
|
};
|
|
202
213
|
GanttTreeGrid.prototype.dataStateChange = function (args) {
|
|
@@ -231,6 +242,12 @@ var GanttTreeGrid = /** @class */ (function () {
|
|
|
231
242
|
var collapsedArgs = this.createExpandCollapseArgs(args);
|
|
232
243
|
this.parent.ganttChartModule.collapsedGanttRow(collapsedArgs);
|
|
233
244
|
}
|
|
245
|
+
if (!isNullOrUndefined(this.parent.loadingIndicator) && this.parent.loadingIndicator.indicatorType === "Shimmer") {
|
|
246
|
+
this.parent.hideMaskRow();
|
|
247
|
+
}
|
|
248
|
+
else {
|
|
249
|
+
this.parent.hideSpinner();
|
|
250
|
+
}
|
|
234
251
|
};
|
|
235
252
|
GanttTreeGrid.prototype.expanded = function (args) {
|
|
236
253
|
if (!this.parent.ganttChartModule.isExpandCollapseFromChart && !this.parent.isExpandCollapseLevelMethod) {
|
|
@@ -239,6 +256,12 @@ var GanttTreeGrid = /** @class */ (function () {
|
|
|
239
256
|
this.parent.ganttChartModule.expandedGanttRow(expandedArgs);
|
|
240
257
|
}
|
|
241
258
|
}
|
|
259
|
+
if (!isNullOrUndefined(this.parent.loadingIndicator) && this.parent.loadingIndicator.indicatorType === "Shimmer") {
|
|
260
|
+
this.parent.hideMaskRow();
|
|
261
|
+
}
|
|
262
|
+
else {
|
|
263
|
+
this.parent.hideSpinner();
|
|
264
|
+
}
|
|
242
265
|
};
|
|
243
266
|
GanttTreeGrid.prototype.actionBegin = function (args) {
|
|
244
267
|
this.parent.notify('actionBegin', args);
|
|
@@ -247,6 +270,14 @@ var GanttTreeGrid = /** @class */ (function () {
|
|
|
247
270
|
setValue('doubleClickTarget', null, this.parent.treeGrid.editModule);
|
|
248
271
|
}
|
|
249
272
|
this.parent.trigger('actionBegin', args);
|
|
273
|
+
if (args.requestType != "virtualscroll" && args.type != "edit" && args.requestType != "beginEdit") {
|
|
274
|
+
if (!isNullOrUndefined(this.parent.loadingIndicator) && this.parent.loadingIndicator.indicatorType === "Shimmer") {
|
|
275
|
+
this.parent.showMaskRow();
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
this.parent.showSpinner();
|
|
279
|
+
}
|
|
280
|
+
}
|
|
250
281
|
}; // eslint-disable-next-line
|
|
251
282
|
GanttTreeGrid.prototype.created = function (args) {
|
|
252
283
|
this.updateKeyConfigSettings();
|
|
@@ -315,6 +346,12 @@ var GanttTreeGrid = /** @class */ (function () {
|
|
|
315
346
|
this.parent.addDeleteRecord = false;
|
|
316
347
|
}
|
|
317
348
|
this.parent.trigger('actionComplete', updatedArgs);
|
|
349
|
+
if (!isNullOrUndefined(this.parent.loadingIndicator) && this.parent.loadingIndicator.indicatorType === "Shimmer") {
|
|
350
|
+
this.parent.hideMaskRow();
|
|
351
|
+
}
|
|
352
|
+
else {
|
|
353
|
+
this.parent.hideSpinner();
|
|
354
|
+
}
|
|
318
355
|
};
|
|
319
356
|
GanttTreeGrid.prototype.updateKeyConfigSettings = function () {
|
|
320
357
|
delete this.parent.treeGrid.grid.keyboardModule.keyConfigs.delete;
|
package/src/gantt/base/utils.js
CHANGED
|
@@ -139,6 +139,7 @@ export function updateDates(record, parent) {
|
|
|
139
139
|
export function formatString(str, args) {
|
|
140
140
|
var regx;
|
|
141
141
|
for (var i = 0; i < args.length; i++) {
|
|
142
|
+
// eslint-disable-next-line detect-non-literal-regexp
|
|
142
143
|
regx = new RegExp('\\{' + (i) + '\\}', 'gm');
|
|
143
144
|
str = str.replace(regx, args[i].toString());
|
|
144
145
|
}
|
|
@@ -46,217 +46,215 @@ var PdfGanttPredecessor = /** @class */ (function () {
|
|
|
46
46
|
var childPageData;
|
|
47
47
|
var parentY = 0;
|
|
48
48
|
var childY = 0;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
if (this.
|
|
58
|
-
|
|
59
|
-
predecessorType = 'FSType1';
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
predecessorType = 'FSType2';
|
|
63
|
-
}
|
|
49
|
+
switch (this.type) {
|
|
50
|
+
case 'FS':
|
|
51
|
+
if (childTask.startPage > -1 && parentTask.endPage > -1) {
|
|
52
|
+
startPage = pages[parentTask.endPage];
|
|
53
|
+
endPage = pages[childTask.startPage];
|
|
54
|
+
parentPageData = pdfGantt.pdfPageDetail[parentTask.endPage - pdfGantt.chartPageIndex];
|
|
55
|
+
childPageData = pdfGantt.pdfPageDetail[childTask.startPage - pdfGantt.chartPageIndex];
|
|
56
|
+
if (this.parentIndex < this.childIndex) {
|
|
57
|
+
if (this.parentLeft < this.childLeft && this.childLeft > (this.parentLeft + this.parentWidth + 25)) {
|
|
58
|
+
predecessorType = 'FSType1';
|
|
64
59
|
}
|
|
65
60
|
else {
|
|
66
|
-
|
|
67
|
-
predecessorType = 'FSType3';
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
predecessorType = 'FSType4';
|
|
71
|
-
}
|
|
61
|
+
predecessorType = 'FSType2';
|
|
72
62
|
}
|
|
73
63
|
}
|
|
74
64
|
else {
|
|
75
|
-
|
|
65
|
+
if (this.parentLeft < this.childLeft && this.childLeft > (this.parentLeft + this.parentWidth + 25)) {
|
|
66
|
+
predecessorType = 'FSType3';
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
predecessorType = 'FSType4';
|
|
70
|
+
}
|
|
76
71
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
break;
|
|
77
|
+
case 'SF':
|
|
78
|
+
if (childTask.endPage > -1 && parentTask.startPage > -1) {
|
|
79
|
+
startPage = pages[parentTask.startPage];
|
|
80
|
+
endPage = pages[childTask.endPage];
|
|
81
|
+
parentPageData = pdfGantt.pdfPageDetail[parentTask.endPage - pdfGantt.chartPageIndex];
|
|
82
|
+
childPageData = pdfGantt.pdfPageDetail[childTask.startPage - pdfGantt.chartPageIndex];
|
|
83
|
+
if (this.parentIndex < this.childIndex) {
|
|
84
|
+
if (this.parentLeft > this.childLeft + this.childWidth) {
|
|
85
|
+
predecessorType = 'SFType1';
|
|
91
86
|
}
|
|
92
87
|
else {
|
|
93
|
-
|
|
94
|
-
predecessorType = 'SFType3';
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
predecessorType = 'SFType4';
|
|
98
|
-
}
|
|
88
|
+
predecessorType = 'SFType2';
|
|
99
89
|
}
|
|
100
90
|
}
|
|
101
91
|
else {
|
|
102
|
-
|
|
92
|
+
if (this.parentLeft > this.childLeft + this.childWidth) {
|
|
93
|
+
predecessorType = 'SFType3';
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
predecessorType = 'SFType4';
|
|
97
|
+
}
|
|
103
98
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
break;
|
|
104
|
+
case 'FF':
|
|
105
|
+
if (childTask.endPage > -1 && parentTask.endPage > -1) {
|
|
106
|
+
startPage = pages[parentTask.endPage];
|
|
107
|
+
endPage = pages[childTask.endPage];
|
|
108
|
+
parentPageData = pdfGantt.pdfPageDetail[parentTask.endPage - pdfGantt.chartPageIndex];
|
|
109
|
+
childPageData = pdfGantt.pdfPageDetail[childTask.endPage - pdfGantt.chartPageIndex];
|
|
110
|
+
if (this.parentIndex < this.childIndex) {
|
|
111
|
+
if ((this.childLeft + this.childWidth) >= (this.parentLeft + this.parentWidth)) {
|
|
112
|
+
predecessorType = 'FFType1';
|
|
118
113
|
}
|
|
119
114
|
else {
|
|
120
|
-
|
|
121
|
-
predecessorType = 'FFType3';
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
predecessorType = 'FFType4';
|
|
125
|
-
}
|
|
115
|
+
predecessorType = 'FFType2';
|
|
126
116
|
}
|
|
127
117
|
}
|
|
128
118
|
else {
|
|
129
|
-
|
|
119
|
+
if ((this.childLeft + this.childWidth) >= (this.parentLeft + this.parentWidth)) {
|
|
120
|
+
predecessorType = 'FFType3';
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
predecessorType = 'FFType4';
|
|
124
|
+
}
|
|
130
125
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
break;
|
|
131
|
+
case 'SS':
|
|
132
|
+
if (childTask.startPage > -1 && parentTask.startPage > -1) {
|
|
133
|
+
startPage = pages[parentTask.startPage];
|
|
134
|
+
endPage = pages[childTask.startPage];
|
|
135
|
+
parentPageData = pdfGantt.pdfPageDetail[parentTask.startPage - pdfGantt.chartPageIndex];
|
|
136
|
+
childPageData = pdfGantt.pdfPageDetail[childTask.startPage - pdfGantt.chartPageIndex];
|
|
137
|
+
if (this.parentIndex < this.childIndex) {
|
|
138
|
+
if (this.parentLeft >= this.childLeft) {
|
|
139
|
+
predecessorType = 'SSType1';
|
|
145
140
|
}
|
|
146
141
|
else {
|
|
147
|
-
|
|
148
|
-
predecessorType = 'SSType3';
|
|
149
|
-
}
|
|
150
|
-
else {
|
|
151
|
-
predecessorType = 'SSType4';
|
|
152
|
-
}
|
|
142
|
+
predecessorType = 'SSType2';
|
|
153
143
|
}
|
|
154
144
|
}
|
|
155
145
|
else {
|
|
156
|
-
|
|
146
|
+
if (this.parentLeft >= this.childLeft) {
|
|
147
|
+
predecessorType = 'SSType3';
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
predecessorType = 'SSType4';
|
|
151
|
+
}
|
|
157
152
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
var midPoint = Math.round((this.parent.rowHeight - 1) / 2.0);
|
|
160
|
+
midPoint = pixelToPoint(midPoint);
|
|
161
|
+
/* eslint-disable-next-line */
|
|
162
|
+
var point1, point2, point3, point4, point5, point6;
|
|
163
|
+
point1 = point2 = point3 = point4 = point5 = point6 = new PointF();
|
|
164
|
+
var parentTaskpoint = __assign({}, parentTask.taskStartPoint);
|
|
165
|
+
var childTaskpoint = __assign({}, childTask.taskStartPoint);
|
|
166
|
+
parentY = parentTaskpoint.y + parentPageData.startPoint.y;
|
|
167
|
+
childY = childTaskpoint.y + childPageData.startPoint.y;
|
|
168
|
+
var ffpoint1 = new PointF(pixelToPoint(this.parentLeft + this.parentWidth), parentY + midPoint);
|
|
169
|
+
var sspoint1 = new PointF(pixelToPoint(this.parentLeft) - 1, parentY + midPoint);
|
|
170
|
+
var ffpoint3 = new PointF(pixelToPoint(this.childLeft - 20), childY + midPoint);
|
|
171
|
+
var ffpoint4 = new PointF(pixelToPoint(this.childLeft - 6 - this.lineWidth) - 1, childY + midPoint);
|
|
172
|
+
var sspoint4 = new PointF(pixelToPoint(this.childLeft + this.childWidth + 6 + this.lineWidth) + 1, childY + midPoint);
|
|
173
|
+
switch (predecessorType) {
|
|
174
|
+
case 'FSType1':
|
|
175
|
+
case 'FSType3':
|
|
176
|
+
point1 = ffpoint1;
|
|
177
|
+
point2 = new PointF(pixelToPoint(this.childLeft - 20), parentY + midPoint);
|
|
178
|
+
point3 = ffpoint3;
|
|
179
|
+
point4 = ffpoint4;
|
|
180
|
+
this.connectLines(startPage, endPage, point1, point2, point3, point4, childTask, midPoint);
|
|
181
|
+
break;
|
|
182
|
+
case 'FSType2':
|
|
183
|
+
point1 = ffpoint1;
|
|
184
|
+
point2 = new PointF(point1.x + 10, parentY + midPoint);
|
|
185
|
+
point3 = new PointF(point1.x + 10, childY + 2);
|
|
186
|
+
point4 = new PointF(pixelToPoint(this.childLeft - 20), childY + 2);
|
|
187
|
+
point5 = ffpoint3;
|
|
188
|
+
point6 = ffpoint4;
|
|
189
|
+
this.connectLines(startPage, endPage, point1, point2, point3, point4, childTask, midPoint, point5, point6);
|
|
190
|
+
break;
|
|
191
|
+
case 'FSType4':
|
|
192
|
+
point1 = ffpoint1;
|
|
193
|
+
point2 = new PointF(point1.x + 10, parentY + midPoint);
|
|
194
|
+
point3 = new PointF(point1.x + 10, parentY + 2);
|
|
195
|
+
point4 = new PointF(pixelToPoint(this.childLeft - 20), parentY + 2);
|
|
196
|
+
point5 = ffpoint3;
|
|
197
|
+
point6 = ffpoint4;
|
|
198
|
+
this.connectLines(startPage, endPage, point1, point2, point3, point4, childTask, midPoint, point5, point6);
|
|
199
|
+
break;
|
|
200
|
+
case 'FFType1':
|
|
201
|
+
case 'FFType3':
|
|
202
|
+
point1 = new PointF(pixelToPoint(this.parentLeft + this.parentWidth) + 1, parentY + midPoint);
|
|
203
|
+
point2 = new PointF(pixelToPoint(this.childLeft + this.childWidth + 20), parentY + midPoint);
|
|
204
|
+
point3 = new PointF(point2.x, childY + midPoint);
|
|
205
|
+
point4 = sspoint4;
|
|
206
|
+
this.connectLines(startPage, endPage, point1, point2, point3, point4, childTask, midPoint);
|
|
207
|
+
break;
|
|
208
|
+
case 'FFType2':
|
|
209
|
+
case 'FFType4':
|
|
210
|
+
point1 = new PointF(pixelToPoint(this.parentLeft + this.parentWidth) + 1, parentY + midPoint);
|
|
211
|
+
point2 = new PointF(pixelToPoint(this.parentLeft + this.parentWidth + 20), parentY + midPoint);
|
|
212
|
+
point3 = new PointF(point2.x, childY + midPoint);
|
|
213
|
+
point4 = sspoint4;
|
|
214
|
+
this.connectLines(startPage, endPage, point1, point2, point3, point4, childTask, midPoint);
|
|
215
|
+
break;
|
|
216
|
+
case 'SSType1':
|
|
217
|
+
case 'SSType3':
|
|
218
|
+
point1 = sspoint1;
|
|
219
|
+
point2 = new PointF(pixelToPoint(this.childLeft - 20), parentY + midPoint);
|
|
220
|
+
point3 = new PointF(point2.x, childY + midPoint);
|
|
221
|
+
point4 = ffpoint4;
|
|
222
|
+
this.connectLines(startPage, endPage, point1, point2, point3, point4, childTask, midPoint);
|
|
223
|
+
break;
|
|
224
|
+
case 'SSType2':
|
|
225
|
+
case 'SSType4':
|
|
226
|
+
point1 = sspoint1;
|
|
227
|
+
point2 = new PointF(pixelToPoint(this.parentLeft - 20), parentY + midPoint);
|
|
228
|
+
point3 = new PointF(point2.x, childY + midPoint);
|
|
229
|
+
point4 = ffpoint4;
|
|
230
|
+
this.connectLines(startPage, endPage, point1, point2, point3, point4, childTask, midPoint);
|
|
231
|
+
break;
|
|
232
|
+
case 'SFType1':
|
|
233
|
+
case 'SFType3':
|
|
234
|
+
point1 = sspoint1;
|
|
235
|
+
point2 = new PointF(pixelToPoint(this.childLeft + this.childWidth + 20), parentY + midPoint);
|
|
236
|
+
point3 = new PointF(point2.x, childY + midPoint);
|
|
237
|
+
point4 = sspoint4;
|
|
238
|
+
this.connectLines(startPage, endPage, point1, point2, point3, point4, childTask, midPoint);
|
|
239
|
+
break;
|
|
240
|
+
case 'SFType2':
|
|
241
|
+
point1 = sspoint1;
|
|
242
|
+
point2 = new PointF(pixelToPoint(this.parentLeft - 20), parentY + midPoint);
|
|
243
|
+
point3 = new PointF(point2.x, childY + 2);
|
|
244
|
+
point4 = new PointF(pixelToPoint(this.childLeft + this.childWidth + 20), childY + 2);
|
|
245
|
+
point5 = new PointF(point4.x, childY + midPoint);
|
|
246
|
+
point6 = sspoint4;
|
|
247
|
+
this.connectLines(startPage, endPage, point1, point2, point3, point4, childTask, midPoint, point5, point6);
|
|
248
|
+
break;
|
|
249
|
+
case 'SFType4':
|
|
250
|
+
point1 = sspoint1;
|
|
251
|
+
point2 = new PointF(pixelToPoint(this.parentLeft - 20), parentY + midPoint);
|
|
252
|
+
point3 = new PointF(point2.x, parentY + 2);
|
|
253
|
+
point4 = new PointF(pixelToPoint(this.childLeft + this.childWidth + 20), parentY + 2);
|
|
254
|
+
point5 = new PointF(point4.x, childY + midPoint);
|
|
255
|
+
point6 = sspoint4;
|
|
256
|
+
this.connectLines(startPage, endPage, point1, point2, point3, point4, childTask, midPoint, point5, point6);
|
|
257
|
+
break;
|
|
260
258
|
}
|
|
261
259
|
};
|
|
262
260
|
/**
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ChildProperty, Property } from "@syncfusion/ej2-base";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for a class LoadingIndicator
|
|
5
|
+
*/
|
|
6
|
+
export interface LoadingIndicatorModel {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Defines the loading indicator. The available loading indicator are:
|
|
10
|
+
* * Spinner
|
|
11
|
+
* * Shimmer
|
|
12
|
+
*
|
|
13
|
+
* @default Syncfusion.EJ2.Grids.IndicatorType.Spinner
|
|
14
|
+
* @isEnumeration true
|
|
15
|
+
* @aspType Syncfusion.EJ2.Grids.IndicatorType
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
indicatorType?: IndicatorType;
|
|
19
|
+
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChildProperty } from "@syncfusion/ej2-base";
|
|
2
|
+
import { IndicatorType } from "@syncfusion/ej2-grids";
|
|
3
|
+
/**
|
|
4
|
+
* Configures the Loading Indicator of the Gantt.
|
|
5
|
+
*/
|
|
6
|
+
export declare class LoadingIndicator extends ChildProperty<LoadingIndicator> {
|
|
7
|
+
/**
|
|
8
|
+
* Defines the loading indicator. The available loading indicator are:
|
|
9
|
+
* * Spinner
|
|
10
|
+
* * Shimmer
|
|
11
|
+
*
|
|
12
|
+
* @default Syncfusion.EJ2.Grids.IndicatorType.Spinner
|
|
13
|
+
* @isEnumeration true
|
|
14
|
+
* @aspType Syncfusion.EJ2.Grids.IndicatorType
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
indicatorType: IndicatorType;
|
|
18
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
import { ChildProperty, Property } from "@syncfusion/ej2-base";
|
|
21
|
+
/**
|
|
22
|
+
* Configures the Loading Indicator of the Gantt.
|
|
23
|
+
*/
|
|
24
|
+
var LoadingIndicator = /** @class */ (function (_super) {
|
|
25
|
+
__extends(LoadingIndicator, _super);
|
|
26
|
+
function LoadingIndicator() {
|
|
27
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
28
|
+
}
|
|
29
|
+
__decorate([
|
|
30
|
+
Property('Spinner')
|
|
31
|
+
], LoadingIndicator.prototype, "indicatorType", void 0);
|
|
32
|
+
return LoadingIndicator;
|
|
33
|
+
}(ChildProperty));
|
|
34
|
+
export { LoadingIndicator };
|