@syncfusion/ej2-gantt 21.2.9 → 22.1.34
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 -0
- package/CHANGELOG.md +23 -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 +751 -715
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +790 -755
- 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/connector-line-edit.js +21 -26
- package/src/gantt/actions/context-menu.js +2 -2
- package/src/gantt/actions/critical-path.js +4 -9
- package/src/gantt/actions/day-markers.js +4 -1
- package/src/gantt/actions/edit.js +9 -6
- package/src/gantt/actions/pdf-export.js +1 -1
- package/src/gantt/actions/taskbar-edit.d.ts +6 -0
- package/src/gantt/actions/taskbar-edit.js +120 -45
- package/src/gantt/base/css-constants.d.ts +5 -10
- package/src/gantt/base/css-constants.js +5 -10
- package/src/gantt/base/date-processor.js +10 -20
- package/src/gantt/base/enum.d.ts +215 -231
- package/src/gantt/base/gantt-chart.js +112 -5
- package/src/gantt/base/gantt-model.d.ts +6 -3
- package/src/gantt/base/gantt.d.ts +7 -3
- package/src/gantt/base/gantt.js +17 -13
- package/src/gantt/base/interface.d.ts +36 -1
- package/src/gantt/base/task-processor.js +21 -18
- package/src/gantt/base/tree-grid.js +1 -1
- package/src/gantt/export/export-helper.js +1 -0
- package/src/gantt/export/pdf-connector-line.d.ts +4 -4
- package/src/gantt/export/pdf-connector-line.js +11 -22
- package/src/gantt/export/pdf-gantt.d.ts +1 -2
- package/src/gantt/export/pdf-gantt.js +4 -4
- package/src/gantt/models/column.d.ts +8 -4
- package/src/gantt/models/edit-settings-model.d.ts +1 -0
- package/src/gantt/models/edit-settings.d.ts +1 -0
- package/src/gantt/models/filter-settings-model.d.ts +3 -0
- package/src/gantt/models/filter-settings.d.ts +3 -0
- package/src/gantt/models/search-settings-model.d.ts +1 -0
- package/src/gantt/models/search-settings.d.ts +1 -0
- package/src/gantt/models/sort-settings-model.d.ts +1 -0
- package/src/gantt/models/sort-settings.d.ts +1 -0
- package/src/gantt/models/tooltip-settings-model.d.ts +8 -4
- package/src/gantt/models/tooltip-settings.d.ts +8 -4
- package/src/gantt/renderer/chart-rows.d.ts +1 -1
- package/src/gantt/renderer/chart-rows.js +27 -65
- package/src/gantt/renderer/connector-line.d.ts +23 -0
- package/src/gantt/renderer/connector-line.js +287 -384
- package/src/gantt/renderer/edit-tooltip.js +4 -4
- package/src/gantt/renderer/nonworking-day.js +2 -2
- package/src/gantt/renderer/tooltip.d.ts +3 -3
- package/src/gantt/renderer/tooltip.js +103 -76
- package/styles/bootstrap-dark.css +27 -47
- package/styles/bootstrap.css +29 -49
- package/styles/bootstrap4.css +29 -49
- package/styles/bootstrap5-dark.css +27 -47
- package/styles/bootstrap5.css +27 -47
- package/styles/fabric-dark.css +27 -47
- package/styles/fabric.css +27 -47
- package/styles/fluent-dark.css +28 -47
- package/styles/fluent.css +28 -47
- package/styles/gantt/_layout.scss +53 -7
- package/styles/gantt/_material3-dark-definition.scss +1 -0
- package/styles/gantt/_material3-definition.scss +220 -0
- package/styles/gantt/_theme.scss +53 -53
- package/styles/gantt/bootstrap-dark.css +27 -47
- package/styles/gantt/bootstrap.css +29 -49
- package/styles/gantt/bootstrap4.css +29 -49
- package/styles/gantt/bootstrap5-dark.css +27 -47
- package/styles/gantt/bootstrap5.css +27 -47
- package/styles/gantt/fabric-dark.css +27 -47
- package/styles/gantt/fabric.css +27 -47
- package/styles/gantt/fluent-dark.css +28 -47
- package/styles/gantt/fluent.css +28 -47
- package/styles/gantt/highcontrast-light.css +27 -47
- package/styles/gantt/highcontrast.css +27 -47
- package/styles/gantt/icons/_material3-dark.scss +1 -0
- package/styles/gantt/material-dark.css +27 -47
- package/styles/gantt/material.css +27 -47
- package/styles/gantt/material3-dark.css +2184 -0
- package/styles/gantt/material3-dark.scss +23 -0
- package/styles/gantt/material3.css +2240 -0
- package/styles/gantt/material3.scss +23 -0
- package/styles/gantt/tailwind-dark.css +27 -47
- package/styles/gantt/tailwind.css +27 -47
- package/styles/highcontrast-light.css +27 -47
- package/styles/highcontrast.css +27 -47
- package/styles/material-dark.css +27 -47
- package/styles/material.css +27 -47
- package/styles/material3-dark.css +2184 -0
- package/styles/material3-dark.scss +3 -0
- package/styles/material3.css +2240 -0
- package/styles/material3.scss +3 -0
- package/styles/tailwind-dark.css +27 -47
- package/styles/tailwind.css +27 -47
|
@@ -172,23 +172,23 @@ var EditTooltip = /** @class */ (function () {
|
|
|
172
172
|
var duration = void 0;
|
|
173
173
|
if (!isNullOrUndefined(editRecord.startDate)) {
|
|
174
174
|
startDate = '<tr><td class = "e-gantt-tooltip-label">' + this.parent.localeObj.getConstant('startDate') +
|
|
175
|
-
'</td><td>:</td><td class = "e-gantt-tooltip-value">' +
|
|
175
|
+
'</td><td style="padding: 2px;">:</td><td class = "e-gantt-tooltip-value">' +
|
|
176
176
|
instance.formatDate(editRecord.startDate, { format: this.parent.getDateFormat() }) + '</td></tr>';
|
|
177
177
|
}
|
|
178
178
|
if (!isNullOrUndefined(editRecord.endDate)) {
|
|
179
179
|
endDate = '<tr><td class = "e-gantt-tooltip-label">' + this.parent.localeObj.getConstant('endDate') +
|
|
180
|
-
'</td><td>:</td><td class = "e-gantt-tooltip-value">' +
|
|
180
|
+
'</td><td style="padding: 2px;">:</td><td class = "e-gantt-tooltip-value">' +
|
|
181
181
|
instance.formatDate(editRecord.endDate, { format: this.parent.getDateFormat() }) + '</td></tr>';
|
|
182
182
|
}
|
|
183
183
|
if (!isNullOrUndefined(editRecord.duration)) {
|
|
184
184
|
duration = '<tr><td class = "e-gantt-tooltip-label">' + this.parent.localeObj.getConstant('duration') +
|
|
185
|
-
'</td><td>:</td><td class = "e-gantt-tooltip-value">' +
|
|
185
|
+
'</td><td style="padding: 2px;">:</td><td class = "e-gantt-tooltip-value">' +
|
|
186
186
|
this.parent.getDurationString(editRecord.duration, editRecord.durationUnit) + '</td></tr>';
|
|
187
187
|
}
|
|
188
188
|
switch (this.taskbarEdit.taskBarEditAction) {
|
|
189
189
|
case 'ProgressResizing':
|
|
190
190
|
var progress = '<tr><td class = "e-gantt-tooltip-label">' + this.parent.localeObj.getConstant('progress') +
|
|
191
|
-
'</td><td>:</td><td class = "e-gantt-tooltip-value">' + editRecord.progress + '</td></tr>';
|
|
191
|
+
'</td><td style="padding: 2px;">:</td><td class = "e-gantt-tooltip-value">' + editRecord.progress + '</td></tr>';
|
|
192
192
|
tooltipString = '<table class = "e-gantt-tooltiptable"><tbody>' +
|
|
193
193
|
progress + '</tbody></table>';
|
|
194
194
|
break;
|
|
@@ -19,7 +19,7 @@ var NonWorkingDay = /** @class */ (function () {
|
|
|
19
19
|
this.nonworkingContainer = createElement('div', {
|
|
20
20
|
className: cls.nonworkingContainer
|
|
21
21
|
});
|
|
22
|
-
this.parent.ganttChartModule.chartBodyContent.
|
|
22
|
+
this.parent.ganttChartModule.chartBodyContent.insertBefore(this.nonworkingContainer, this.parent.ganttChartModule.chartBodyContent.lastChild);
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
@@ -168,7 +168,7 @@ var NonWorkingDay = /** @class */ (function () {
|
|
|
168
168
|
};
|
|
169
169
|
NonWorkingDay.prototype.updateHolidayLabelHeight = function () {
|
|
170
170
|
var height = this.parent.getContentHeight();
|
|
171
|
-
var gantttable =
|
|
171
|
+
var gantttable = document.getElementById("ganttContainer");
|
|
172
172
|
// eslint-disable-next-line
|
|
173
173
|
var toolbarHeight = 0;
|
|
174
174
|
if (!isNullOrUndefined(this.parent.toolbarModule) && !isNullOrUndefined(this.parent.toolbarModule.element)) {
|
|
@@ -43,7 +43,7 @@ export declare class Tooltip {
|
|
|
43
43
|
* @param {IGanttData} ganttData .
|
|
44
44
|
* @param {Gantt} parent .
|
|
45
45
|
* @param {TooltipEventArgs} args .
|
|
46
|
-
* @returns {string} .
|
|
46
|
+
* @returns {string | Function} .
|
|
47
47
|
*/
|
|
48
48
|
private getTooltipContent;
|
|
49
49
|
/**
|
|
@@ -65,13 +65,13 @@ export declare class Tooltip {
|
|
|
65
65
|
/**
|
|
66
66
|
* To compile template string.
|
|
67
67
|
*
|
|
68
|
-
* @param {string} template .
|
|
68
|
+
* @param {string | Function} template .
|
|
69
69
|
* @param {Gantt} parent .
|
|
70
70
|
* @param {IGanttData|PredecessorTooltip} data .
|
|
71
71
|
* @param {string} propName .
|
|
72
72
|
* @returns {NodeList} .
|
|
73
73
|
* @private
|
|
74
74
|
*/
|
|
75
|
-
templateCompiler(template: string, parent: Gantt, data: IGanttData | PredecessorTooltip, propName: string): NodeList;
|
|
75
|
+
templateCompiler(template: string | Function, parent: Gantt, data: IGanttData | PredecessorTooltip, propName: string): NodeList;
|
|
76
76
|
private destroy;
|
|
77
77
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tooltip as TooltipComponent } from '@syncfusion/ej2-popups';
|
|
2
2
|
import { parentsUntil } from '../base/utils';
|
|
3
3
|
import * as cls from '../base/css-constants';
|
|
4
|
-
import { extend, isNullOrUndefined, getValue, EventHandler, closest, SanitizeHtmlHelper } from '@syncfusion/ej2-base';
|
|
4
|
+
import { extend, isNullOrUndefined, getValue, EventHandler, closest, SanitizeHtmlHelper, initializeCSPTemplate } from '@syncfusion/ej2-base';
|
|
5
5
|
import { Deferred } from '@syncfusion/ej2-data';
|
|
6
6
|
/**
|
|
7
7
|
* File for handling tooltip in Gantt.
|
|
@@ -233,7 +233,7 @@ var Tooltip = /** @class */ (function () {
|
|
|
233
233
|
* @param {IGanttData} ganttData .
|
|
234
234
|
* @param {Gantt} parent .
|
|
235
235
|
* @param {TooltipEventArgs} args .
|
|
236
|
-
* @returns {string} .
|
|
236
|
+
* @returns {string | Function} .
|
|
237
237
|
*/
|
|
238
238
|
Tooltip.prototype.getTooltipContent = function (elementType, ganttData, parent, args) {
|
|
239
239
|
var content;
|
|
@@ -262,11 +262,14 @@ var Tooltip = /** @class */ (function () {
|
|
|
262
262
|
if (this.parent.enableHtmlSanitizer && typeof (sDateValue) === 'string') {
|
|
263
263
|
sDateValue = SanitizeHtmlHelper.sanitize(sDateValue);
|
|
264
264
|
}
|
|
265
|
-
var
|
|
265
|
+
var sDate_1 = !isNullOrUndefined(milestoneStartDate) ? '<tr><td class = "e-gantt-tooltip-label"> Date</td><td>:</td>' +
|
|
266
266
|
'<td class = "e-gantt-tooltip-value">' +
|
|
267
267
|
sDateValue + '</td></tr>' : '';
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
var contentTemp_1 = function () {
|
|
269
|
+
return '<table class = "e-gantt-tooltiptable"><tbody>' +
|
|
270
|
+
taskName + sDate_1 + '</tbody></table>';
|
|
271
|
+
};
|
|
272
|
+
content = initializeCSPTemplate(contentTemp_1);
|
|
270
273
|
break;
|
|
271
274
|
}
|
|
272
275
|
case 'taskbar':
|
|
@@ -282,96 +285,114 @@ var Tooltip = /** @class */ (function () {
|
|
|
282
285
|
durationValue = typeof (durationValue) === 'string' ? SanitizeHtmlHelper.sanitize(durationValue) : durationValue;
|
|
283
286
|
progressValue = typeof (progressValue) === 'string' ? SanitizeHtmlHelper.sanitize(progressValue) : progressValue;
|
|
284
287
|
}
|
|
285
|
-
var
|
|
288
|
+
var startDate_1 = data.startDate ? '<tr><td class = "e-gantt-tooltip-label">' +
|
|
286
289
|
this.parent.localeObj.getConstant(scheduledTask ? 'startDate' : 'subTasksStartDate') +
|
|
287
|
-
'</td><td>:</td>' + '<td class = "e-gantt-tooltip-value"> ' + startDateValue + '</td></tr>' : '';
|
|
288
|
-
var
|
|
290
|
+
'</td><td style="padding: 2px;">:</td>' + '<td class = "e-gantt-tooltip-value"> ' + startDateValue + '</td></tr>' : '';
|
|
291
|
+
var endDate_1 = data.endDate ? '<tr><td class = "e-gantt-tooltip-label">' +
|
|
289
292
|
this.parent.localeObj.getConstant(scheduledTask ? 'endDate' : 'subTasksEndDate') +
|
|
290
|
-
'</td><td>:</td>' + '<td class = "e-gantt-tooltip-value">' + endDateValue + '</td></tr>' : '';
|
|
291
|
-
var
|
|
292
|
-
this.parent.localeObj.getConstant('duration') + '</td><td>:</td>' +
|
|
293
|
+
'</td><td style="padding: 2px;">:</td>' + '<td class = "e-gantt-tooltip-value">' + endDateValue + '</td></tr>' : '';
|
|
294
|
+
var duration_1 = !isNullOrUndefined(data.duration) ? '<tr><td class = "e-gantt-tooltip-label">' +
|
|
295
|
+
this.parent.localeObj.getConstant('duration') + '</td><td style="padding: 2px;">:</td>' +
|
|
293
296
|
'<td class = "e-gantt-tooltip-value"> ' + durationValue +
|
|
294
297
|
'</td></tr>' : '';
|
|
295
|
-
var
|
|
296
|
-
this.parent.localeObj.getConstant('progress') + '</td><td>:</td><td>' + progressValue +
|
|
298
|
+
var progress_1 = !isNullOrUndefined(data.progress) ? '<tr><td class = "e-gantt-tooltip-label">' +
|
|
299
|
+
this.parent.localeObj.getConstant('progress') + '</td><td style="padding: 2px;">:</td><td>' + progressValue +
|
|
297
300
|
'</td></tr>' : '';
|
|
298
|
-
|
|
299
|
-
|
|
301
|
+
var contentTemp_2 = function () {
|
|
302
|
+
return '<table class = "e-gantt-tooltiptable"><tbody>' +
|
|
303
|
+
taskName + startDate_1 + endDate_1 + duration_1 + progress_1 + '</tbody></table>';
|
|
304
|
+
};
|
|
305
|
+
content = initializeCSPTemplate(contentTemp_2);
|
|
300
306
|
break;
|
|
301
307
|
}
|
|
302
308
|
case 'baseline':
|
|
303
309
|
{
|
|
304
|
-
var
|
|
305
|
-
var
|
|
310
|
+
var baselineStartDateValue_1 = this.parent.getFormatedDate(data.baselineStartDate, this.parent.getDateFormat());
|
|
311
|
+
var baselineEndDateValue_1 = this.parent.getFormatedDate(data.baselineEndDate, this.parent.getDateFormat());
|
|
306
312
|
if (this.parent.enableHtmlSanitizer) {
|
|
307
|
-
|
|
308
|
-
|
|
313
|
+
baselineStartDateValue_1 = typeof (baselineStartDateValue_1) === 'string' ? SanitizeHtmlHelper.sanitize(baselineStartDateValue_1) : baselineStartDateValue_1;
|
|
314
|
+
baselineEndDateValue_1 = typeof (baselineEndDateValue_1) === 'string' ? SanitizeHtmlHelper.sanitize(baselineEndDateValue_1) : baselineEndDateValue_1;
|
|
309
315
|
}
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
316
|
+
var contentTemp_3 = function () {
|
|
317
|
+
return '<table class = "e-gantt-tooltiptable"><tbody>' +
|
|
318
|
+
taskName + '<tr><td class = "e-gantt-tooltip-label">' +
|
|
319
|
+
this.parent.localeObj.getConstant('baselineStartDate') + '</td><td>:</td>' + '<td class = "e-gantt-tooltip-value">' +
|
|
320
|
+
baselineStartDateValue_1 + '</td></tr><tr>' +
|
|
321
|
+
'<td class = "e-gantt-tooltip-label">' + this.parent.localeObj.getConstant('baselineEndDate') +
|
|
322
|
+
'</td><td>:</td><td class = "e-gantt-tooltip-value">' +
|
|
323
|
+
baselineEndDateValue_1 + '</td></tr></tbody></table>';
|
|
324
|
+
};
|
|
325
|
+
content = initializeCSPTemplate(contentTemp_3, this);
|
|
317
326
|
break;
|
|
318
327
|
}
|
|
319
328
|
case 'marker':
|
|
320
329
|
{
|
|
321
330
|
var markerTooltipElement = parent.tooltipModule.getMarkerTooltipData(args);
|
|
322
|
-
var
|
|
323
|
-
var
|
|
331
|
+
var markerTooltipElementValue_1 = this.parent.getFormatedDate(this.parent.dateValidationModule.getDateFromFormat(markerTooltipElement.day), this.parent.getDateFormat());
|
|
332
|
+
var markerLabel_1 = markerTooltipElement.label ? markerTooltipElement.label : '';
|
|
324
333
|
if (this.parent.enableHtmlSanitizer) {
|
|
325
|
-
|
|
326
|
-
|
|
334
|
+
markerLabel_1 = typeof (markerLabel_1) === 'string' ? SanitizeHtmlHelper.sanitize(markerLabel_1) : markerLabel_1;
|
|
335
|
+
markerTooltipElementValue_1 = typeof (markerTooltipElementValue_1) === 'string' ? SanitizeHtmlHelper.sanitize(markerTooltipElementValue_1) : markerTooltipElementValue_1;
|
|
327
336
|
}
|
|
328
|
-
|
|
329
|
-
|
|
337
|
+
var contentTemp_4 = function () {
|
|
338
|
+
return '<table class = "e-gantt-tooltiptable"><tbody><tr><td>' +
|
|
339
|
+
markerTooltipElementValue_1 + '</td></tr><tr><td>' + (this.parent.disableHtmlEncode ? markerLabel_1.replace(/</g, "<").replace(/>/g, ">") : markerLabel_1) + '</td></tr></tbody></table>';
|
|
340
|
+
};
|
|
341
|
+
content = initializeCSPTemplate(contentTemp_4, this);
|
|
330
342
|
break;
|
|
331
343
|
}
|
|
332
344
|
case 'connectorLine':
|
|
333
345
|
{
|
|
334
|
-
var
|
|
335
|
-
var
|
|
336
|
-
var
|
|
337
|
-
var
|
|
338
|
-
var
|
|
339
|
-
var
|
|
346
|
+
var fromNameValue_1 = parent.tooltipModule.predecessorTooltipData.fromName;
|
|
347
|
+
var fromIdValue_1 = parent.tooltipModule.predecessorTooltipData.fromId;
|
|
348
|
+
var toNameValue_1 = parent.tooltipModule.predecessorTooltipData.toName;
|
|
349
|
+
var toIdValue_1 = parent.tooltipModule.predecessorTooltipData.toId;
|
|
350
|
+
var linkTextValue_1 = parent.tooltipModule.predecessorTooltipData.linkText;
|
|
351
|
+
var offsetStringValue_1 = parent.tooltipModule.predecessorTooltipData.offsetString;
|
|
340
352
|
if (this.parent.enableHtmlSanitizer) {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
353
|
+
fromNameValue_1 = typeof (fromNameValue_1) === 'string' ? SanitizeHtmlHelper.sanitize(fromNameValue_1) : fromNameValue_1;
|
|
354
|
+
fromIdValue_1 = typeof (fromIdValue_1) === 'string' ? SanitizeHtmlHelper.sanitize(fromIdValue_1) : fromIdValue_1;
|
|
355
|
+
toNameValue_1 = typeof (toNameValue_1) === 'string' ? SanitizeHtmlHelper.sanitize(toNameValue_1) : toNameValue_1;
|
|
356
|
+
toIdValue_1 = typeof (toIdValue_1) === 'string' ? SanitizeHtmlHelper.sanitize(toIdValue_1) : toIdValue_1;
|
|
357
|
+
linkTextValue_1 = typeof (linkTextValue_1) === 'string' ? SanitizeHtmlHelper.sanitize(linkTextValue_1) : linkTextValue_1;
|
|
358
|
+
offsetStringValue_1 = typeof (offsetStringValue_1) === 'string' ? SanitizeHtmlHelper.sanitize(offsetStringValue_1) : offsetStringValue_1;
|
|
347
359
|
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
360
|
+
var contentTemp_5 = function () {
|
|
361
|
+
return '<table class = "e-gantt-tooltiptable"><tbody><tr><td class = "e-gantt-tooltip-label">' +
|
|
362
|
+
this.parent.localeObj.getConstant('from') + '</td><td>:</td>' +
|
|
363
|
+
'<td class = "e-gantt-tooltip-value">' + (this.parent.disableHtmlEncode ? fromNameValue_1.replace(/</g, "<").replace(/>/g, ">") : fromNameValue_1) + ' (' +
|
|
364
|
+
(this.parent.disableHtmlEncode ? (typeof (fromIdValue_1) === 'string' ? fromIdValue_1.replace(/</g, "<").replace(/>/g, ">") : fromIdValue_1) : fromIdValue_1) + ')' + '</td></tr><tr><td class = "e-gantt-tooltip-label">' +
|
|
365
|
+
this.parent.localeObj.getConstant('to') + '</td><td>:</td>' + '<td class = "e-gantt-tooltip-value">' +
|
|
366
|
+
(this.parent.disableHtmlEncode ? toNameValue_1.replace(/</g, "<").replace(/>/g, ">") : toNameValue_1) + ' (' + toIdValue_1 + ')' + '</td></tr><tr><td class = "e-gantt-tooltip-label">' + this.parent.localeObj.getConstant('taskLink') +
|
|
367
|
+
'</td><td>:</td><td class = "e-gantt-tooltip-value"> ' + linkTextValue_1 +
|
|
368
|
+
'</td></tr><tr><td class = "e-gantt-tooltip-label">' + this.parent.localeObj.getConstant('lag') +
|
|
369
|
+
'</td><td>:</td><td class = "e-gantt-tooltip-value">' +
|
|
370
|
+
offsetStringValue_1 + '</td></tr></tbody></table>';
|
|
371
|
+
};
|
|
372
|
+
content = initializeCSPTemplate(contentTemp_5, this);
|
|
358
373
|
break;
|
|
359
374
|
}
|
|
360
375
|
case 'indicator':
|
|
361
376
|
if (args.target.title.length) {
|
|
362
|
-
var
|
|
363
|
-
if (this.parent.enableHtmlSanitizer && typeof (
|
|
364
|
-
|
|
377
|
+
var titleValue_1 = args.target.title;
|
|
378
|
+
if (this.parent.enableHtmlSanitizer && typeof (titleValue_1) === 'string') {
|
|
379
|
+
titleValue_1 = SanitizeHtmlHelper.sanitize(titleValue_1);
|
|
365
380
|
}
|
|
366
|
-
|
|
381
|
+
var contentTemp_6 = function () {
|
|
382
|
+
return '<table class = "e-gantt-tooltiptable"><tbody><tr>' + titleValue_1 + '</tr></tbody></table>';
|
|
383
|
+
};
|
|
384
|
+
content = initializeCSPTemplate(contentTemp_6);
|
|
367
385
|
}
|
|
368
386
|
break;
|
|
369
387
|
case 'timeline':
|
|
370
|
-
var
|
|
371
|
-
if (this.parent.enableHtmlSanitizer && typeof (
|
|
372
|
-
|
|
388
|
+
var timlineTitleValue_1 = args.target.title;
|
|
389
|
+
if (this.parent.enableHtmlSanitizer && typeof (timlineTitleValue_1) === 'string') {
|
|
390
|
+
timlineTitleValue_1 = SanitizeHtmlHelper.sanitize(timlineTitleValue_1);
|
|
373
391
|
}
|
|
374
|
-
|
|
392
|
+
var contentTemp = function () {
|
|
393
|
+
return '<table class = "e-gantt-tooltiptable"><tbody><tr>' + timlineTitleValue_1 + '</tr></tbody></table>';
|
|
394
|
+
};
|
|
395
|
+
content = initializeCSPTemplate(contentTemp);
|
|
375
396
|
break;
|
|
376
397
|
case 'manualtaskbar':
|
|
377
398
|
{
|
|
@@ -387,24 +408,27 @@ var Tooltip = /** @class */ (function () {
|
|
|
387
408
|
manualStartDateValue = typeof (manualStartDateValue) === 'string' ? SanitizeHtmlHelper.sanitize(manualStartDateValue) : manualStartDateValue;
|
|
388
409
|
manualEndDateValue = typeof (manualEndDateValue) === 'string' ? SanitizeHtmlHelper.sanitize(manualEndDateValue) : manualEndDateValue;
|
|
389
410
|
}
|
|
390
|
-
var
|
|
411
|
+
var autoStartDate_1 = data.autoStartDate ? '<tr><td class = "e-gantt-tooltip-label">' +
|
|
391
412
|
this.parent.localeObj.getConstant('subTasksStartDate') + '</td><td>:</td>' + '<td class = "e-gantt-tooltip-value"> ' +
|
|
392
413
|
autoStartDateValue + '</td></tr>' : '';
|
|
393
|
-
var
|
|
414
|
+
var autoEndDate_1 = data.autoEndDate ? '<tr><td class = "e-gantt-tooltip-label">' +
|
|
394
415
|
this.parent.localeObj.getConstant('subTasksEndDate') + '</td><td>:</td>' + '<td class = "e-gantt-tooltip-value">' +
|
|
395
416
|
autoEndDateValue + '</td></tr>' : '';
|
|
396
|
-
var
|
|
417
|
+
var durationValue_1 = !isNullOrUndefined(data.duration) ? '<tr><td class = "e-gantt-tooltip-label">' +
|
|
397
418
|
this.parent.localeObj.getConstant('duration') + '</td><td>:</td>' +
|
|
398
419
|
'<td class = "e-gantt-tooltip-value"> ' + durationUnitValue +
|
|
399
420
|
'</td></tr>' : '';
|
|
400
|
-
var
|
|
421
|
+
var manualStartDate_1 = data.startDate ? '<tr><td class = "e-gantt-tooltip-label">' +
|
|
401
422
|
this.parent.localeObj.getConstant('startDate') + '</td><td>:</td>' + '<td class = "e-gantt-tooltip-value"> ' +
|
|
402
423
|
manualStartDateValue + '</td></tr>' : '';
|
|
403
|
-
var
|
|
424
|
+
var manualEndDate_1 = data.endDate ? '<tr><td class = "e-gantt-tooltip-label">' +
|
|
404
425
|
this.parent.localeObj.getConstant('endDate') + '</td><td>:</td>' + '<td class = "e-gantt-tooltip-value">' +
|
|
405
426
|
manualEndDateValue + '</td></tr>' : '';
|
|
406
|
-
|
|
407
|
-
|
|
427
|
+
var contentTemp_7 = function () {
|
|
428
|
+
return '<table class = "e-gantt-tooltiptable"><tbody>' +
|
|
429
|
+
taskName + manualStartDate_1 + autoStartDate_1 + manualEndDate_1 + autoEndDate_1 + durationValue_1 + '</tbody></table>';
|
|
430
|
+
};
|
|
431
|
+
content = initializeCSPTemplate(contentTemp_7);
|
|
408
432
|
break;
|
|
409
433
|
}
|
|
410
434
|
case 'manualmilestone':
|
|
@@ -417,17 +441,20 @@ var Tooltip = /** @class */ (function () {
|
|
|
417
441
|
autoEndValue = typeof (autoEndValue) === 'string' ? SanitizeHtmlHelper.sanitize(autoEndValue) : autoEndValue;
|
|
418
442
|
dateValue = typeof (dateValue) === 'string' ? SanitizeHtmlHelper.sanitize(dateValue) : dateValue;
|
|
419
443
|
}
|
|
420
|
-
var
|
|
444
|
+
var autoStart_1 = data.autoStartDate ? '<tr><td class = "e-gantt-tooltip-label">' +
|
|
421
445
|
this.parent.localeObj.getConstant('subTasksStartDate') + '</td><td>:</td>' + '<td class = "e-gantt-tooltip-value"> ' +
|
|
422
446
|
autoStartValue + '</td></tr>' : '';
|
|
423
|
-
var
|
|
447
|
+
var autoEnd_1 = data.autoEndDate ? '<tr><td class = "e-gantt-tooltip-label">' +
|
|
424
448
|
this.parent.localeObj.getConstant('subTasksEndDate') + '</td><td>:</td>' + '<td class = "e-gantt-tooltip-value">' +
|
|
425
449
|
autoEndValue + '</td></tr>' : '';
|
|
426
|
-
var
|
|
450
|
+
var date_1 = '<tr><td class = "e-gantt-tooltip-label"> Date</td><td>:</td>' +
|
|
427
451
|
'<td class = "e-gantt-tooltip-value">' +
|
|
428
452
|
dateValue + '</tr>';
|
|
429
|
-
|
|
430
|
-
|
|
453
|
+
var contentTemp_8 = function () {
|
|
454
|
+
return '<table class = "e-gantt-tooltiptable"><tbody>' +
|
|
455
|
+
taskName + date_1 + autoStart_1 + autoEnd_1 + '</tbody></table>';
|
|
456
|
+
};
|
|
457
|
+
content = initializeCSPTemplate(contentTemp_8);
|
|
431
458
|
break;
|
|
432
459
|
}
|
|
433
460
|
}
|
|
@@ -453,7 +480,7 @@ var Tooltip = /** @class */ (function () {
|
|
|
453
480
|
* @private
|
|
454
481
|
*/
|
|
455
482
|
Tooltip.prototype.getPredecessorTooltipData = function (args) {
|
|
456
|
-
var predeceesorParent = args.target.
|
|
483
|
+
var predeceesorParent = args.target.id;
|
|
457
484
|
if (this.parent.enableHtmlSanitizer && typeof (predeceesorParent) === 'string') {
|
|
458
485
|
predeceesorParent = SanitizeHtmlHelper.sanitize(predeceesorParent);
|
|
459
486
|
}
|
|
@@ -486,7 +513,7 @@ var Tooltip = /** @class */ (function () {
|
|
|
486
513
|
/**
|
|
487
514
|
* To compile template string.
|
|
488
515
|
*
|
|
489
|
-
* @param {string} template .
|
|
516
|
+
* @param {string | Function} template .
|
|
490
517
|
* @param {Gantt} parent .
|
|
491
518
|
* @param {IGanttData|PredecessorTooltip} data .
|
|
492
519
|
* @param {string} propName .
|
|
@@ -337,9 +337,6 @@
|
|
|
337
337
|
.e-bigger .e-gantt .e-dialog .e-dlg-header {
|
|
338
338
|
line-height: 28px;
|
|
339
339
|
}
|
|
340
|
-
.e-bigger .e-gantt .e-filter-popup.e-popup {
|
|
341
|
-
width: 350px !important;
|
|
342
|
-
}
|
|
343
340
|
.e-bigger .e-gantt .e-grid .e-flmenu-valuediv {
|
|
344
341
|
padding: 16px 0 0 !important;
|
|
345
342
|
}
|
|
@@ -678,6 +675,9 @@
|
|
|
678
675
|
line-height: 10px;
|
|
679
676
|
vertical-align: middle;
|
|
680
677
|
}
|
|
678
|
+
.e-gantt .e-gantt-tree-grid-pane .e-grid .e-gantt-resource-parent .e-rowdragdrop {
|
|
679
|
+
pointer-events: none;
|
|
680
|
+
}
|
|
681
681
|
.e-gantt .e-gantt-chart {
|
|
682
682
|
height: 100%;
|
|
683
683
|
overflow: hidden;
|
|
@@ -1601,6 +1601,9 @@
|
|
|
1601
1601
|
background: #484848;
|
|
1602
1602
|
opacity: 1;
|
|
1603
1603
|
}
|
|
1604
|
+
.e-gantt .e-taskbar-resize-div {
|
|
1605
|
+
border-color: #0070f0;
|
|
1606
|
+
}
|
|
1604
1607
|
.e-gantt .e-gantt-chart .e-timeline-header-container {
|
|
1605
1608
|
background: #1a1a1a;
|
|
1606
1609
|
border-bottom-color: #484848;
|
|
@@ -1648,7 +1651,7 @@
|
|
|
1648
1651
|
outline-color: #248aff;
|
|
1649
1652
|
}
|
|
1650
1653
|
.e-gantt .e-gantt-chart .e-gantt-child-taskbar-inner-div {
|
|
1651
|
-
background
|
|
1654
|
+
background: #248aff;
|
|
1652
1655
|
outline: 1px solid #0070f0;
|
|
1653
1656
|
border-radius: 4px;
|
|
1654
1657
|
}
|
|
@@ -1685,7 +1688,7 @@
|
|
|
1685
1688
|
border-radius: 3px;
|
|
1686
1689
|
}
|
|
1687
1690
|
.e-gantt .e-gantt-chart .e-gantt-child-manualtaskbar {
|
|
1688
|
-
background
|
|
1691
|
+
background: #8dd1c4;
|
|
1689
1692
|
outline: #4fb29f;
|
|
1690
1693
|
}
|
|
1691
1694
|
.e-gantt .e-gantt-chart .e-gantt-unscheduled-taskbar.e-gantt-child-manualtaskbar {
|
|
@@ -1853,23 +1856,16 @@
|
|
|
1853
1856
|
.e-gantt .e-gantt-chart .e-icon {
|
|
1854
1857
|
color: #fff;
|
|
1855
1858
|
}
|
|
1856
|
-
.e-gantt .e-gantt-chart .e-milestone
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
.e-gantt .e-gantt-chart .e-milestone-bottom {
|
|
1860
|
-
border-top-color: #dadada;
|
|
1861
|
-
}
|
|
1862
|
-
.e-gantt .e-gantt-chart .e-parent-milestone-top {
|
|
1863
|
-
border-bottom-color: #4cc7ba;
|
|
1864
|
-
}
|
|
1865
|
-
.e-gantt .e-gantt-chart .e-parent-milestone-bottom {
|
|
1866
|
-
border-top-color: #4cc7ba;
|
|
1859
|
+
.e-gantt .e-gantt-chart .e-gantt-milestone {
|
|
1860
|
+
background-color: #dadada;
|
|
1861
|
+
border-color: #0070f0;
|
|
1867
1862
|
}
|
|
1868
|
-
.e-gantt .e-gantt-chart .e-
|
|
1869
|
-
|
|
1863
|
+
.e-gantt .e-gantt-chart .e-gantt-parent-milestone {
|
|
1864
|
+
background-color: #4cc7ba;
|
|
1870
1865
|
}
|
|
1871
|
-
.e-gantt .e-gantt-chart .e-manualparent-milestone
|
|
1872
|
-
|
|
1866
|
+
.e-gantt .e-gantt-chart .e-gantt-manualparent-milestone {
|
|
1867
|
+
background-color: #989A9C;
|
|
1868
|
+
border-color: #0070f0;
|
|
1873
1869
|
}
|
|
1874
1870
|
.e-gantt .e-gantt-chart .e-gantt-unscheduled-manualtask {
|
|
1875
1871
|
background: linear-gradient(to right, rgba(63, 81, 181, 0.2), #989A9C 30%, #989A9C 70%, #989A9C 70%, rgba(63, 81, 181, 0.2) 100%);
|
|
@@ -1889,11 +1885,8 @@
|
|
|
1889
1885
|
.e-gantt .e-gantt-chart .e-baseline-bar {
|
|
1890
1886
|
background-color: #fac168;
|
|
1891
1887
|
}
|
|
1892
|
-
.e-gantt .e-gantt-chart .e-baseline-milestone-
|
|
1893
|
-
|
|
1894
|
-
}
|
|
1895
|
-
.e-gantt .e-gantt-chart .e-baseline-milestone-bottom {
|
|
1896
|
-
border-top-color: #fac168;
|
|
1888
|
+
.e-gantt .e-gantt-chart .e-baseline-gantt-milestone-container {
|
|
1889
|
+
background-color: #fac168;
|
|
1897
1890
|
}
|
|
1898
1891
|
.e-gantt .e-gantt-chart .e-uptail::before {
|
|
1899
1892
|
border-bottom-color: #e0e0e0;
|
|
@@ -1947,11 +1940,8 @@
|
|
|
1947
1940
|
background-color: transparent !important; /* stylelint-disable-line declaration-no-important */
|
|
1948
1941
|
border: transparent !important; /* stylelint-disable-line declaration-no-important */
|
|
1949
1942
|
}
|
|
1950
|
-
.e-gantt .e-gantt-chart .e-predecessor-touch-mode .e-milestone
|
|
1951
|
-
|
|
1952
|
-
}
|
|
1953
|
-
.e-gantt .e-gantt-chart .e-predecessor-touch-mode .e-milestone-bottom {
|
|
1954
|
-
border-top-color: #D5D5D5 !important; /* stylelint-disable-line declaration-no-important */
|
|
1943
|
+
.e-gantt .e-gantt-chart .e-predecessor-touch-mode .e-gantt-milestone {
|
|
1944
|
+
background-color: #D5D5D5 !important; /* stylelint-disable-line declaration-no-important */
|
|
1955
1945
|
}
|
|
1956
1946
|
.e-gantt .e-gantt-chart .e-predecessor-touch-mode .e-gantt-parent-taskbar-inner-div {
|
|
1957
1947
|
background-color: #8A8A8A !important; /* stylelint-disable-line declaration-no-important */
|
|
@@ -1965,21 +1955,15 @@
|
|
|
1965
1955
|
background: #0070f0 !important; /* stylelint-disable-line declaration-no-important */
|
|
1966
1956
|
border: #0070f0 !important; /* stylelint-disable-line declaration-no-important */
|
|
1967
1957
|
}
|
|
1968
|
-
.e-gantt .e-gantt-chart .e-predecessor-touch-mode .e-active-child-task .e-milestone
|
|
1969
|
-
|
|
1970
|
-
}
|
|
1971
|
-
.e-gantt .e-gantt-chart .e-predecessor-touch-mode .e-active-child-task .e-milestone-bottom {
|
|
1972
|
-
border-top-color: #0070f0 !important; /* stylelint-disable-line declaration-no-important */
|
|
1958
|
+
.e-gantt .e-gantt-chart .e-predecessor-touch-mode .e-active-child-task .e-gantt-milestone {
|
|
1959
|
+
background-color: #0070f0 !important; /* stylelint-disable-line declaration-no-important */
|
|
1973
1960
|
}
|
|
1974
1961
|
.e-gantt .e-gantt-chart .e-predecessor-touch-mode .e-active-connected-task .e-gantt-child-taskbar-inner-div {
|
|
1975
1962
|
background: #57a5ff !important; /* stylelint-disable-line declaration-no-important */
|
|
1976
1963
|
border: #57a5ff !important; /* stylelint-disable-line declaration-no-important */
|
|
1977
1964
|
}
|
|
1978
|
-
.e-gantt .e-gantt-chart .e-predecessor-touch-mode .e-active-connected-task .e-milestone
|
|
1979
|
-
|
|
1980
|
-
}
|
|
1981
|
-
.e-gantt .e-gantt-chart .e-predecessor-touch-mode .e-active-connected-task .e-milestone-bottom {
|
|
1982
|
-
border-top-color: #57a5ff !important; /* stylelint-disable-line declaration-no-important */
|
|
1965
|
+
.e-gantt .e-gantt-chart .e-predecessor-touch-mode .e-active-connected-task .e-gantt-milestone {
|
|
1966
|
+
background-color: #57a5ff !important; /* stylelint-disable-line declaration-no-important */
|
|
1983
1967
|
}
|
|
1984
1968
|
.e-gantt .e-gantt-chart .e-predecessor-touch-mode .e-active-connected-task .e-line {
|
|
1985
1969
|
border-color: #0070f0 !important; /* stylelint-disable-line declaration-no-important */
|
|
@@ -2079,7 +2063,7 @@
|
|
|
2079
2063
|
}
|
|
2080
2064
|
|
|
2081
2065
|
.e-gantt .e-gantt-chart .e-gantt-child-critical-taskbar-inner-div {
|
|
2082
|
-
background
|
|
2066
|
+
background: #F3D8DA;
|
|
2083
2067
|
outline: 1px solid #F3D8DA;
|
|
2084
2068
|
border-radius: 4px;
|
|
2085
2069
|
}
|
|
@@ -2098,10 +2082,6 @@
|
|
|
2098
2082
|
border-radius: 4px;
|
|
2099
2083
|
}
|
|
2100
2084
|
|
|
2101
|
-
.e-gantt .e-gantt-chart .e-critical-milestone
|
|
2102
|
-
|
|
2103
|
-
}
|
|
2104
|
-
|
|
2105
|
-
.e-gantt .e-gantt-chart .e-critical-milestone-bottom {
|
|
2106
|
-
border-top-color: #D13438;
|
|
2085
|
+
.e-gantt .e-gantt-chart .e-critical-milestone {
|
|
2086
|
+
background-color: #D13438;
|
|
2107
2087
|
}
|