@syncfusion/ej2-gantt 19.4.55 → 20.1.47-1460716
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1072 -1047
- package/README.md +75 -75
- package/dist/ej2-gantt.umd.min.js +1 -10
- package/dist/ej2-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-gantt.es2015.js +341 -240
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +713 -598
- package/dist/es6/ej2-gantt.es5.js.map +1 -1
- package/dist/global/ej2-gantt.min.js +1 -10
- package/dist/global/ej2-gantt.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/dist/ts/components.ts +4 -0
- package/dist/ts/gantt/actions/actions.ts +18 -0
- package/dist/ts/gantt/actions/cell-edit.ts +606 -0
- package/dist/ts/gantt/actions/chart-scroll.ts +167 -0
- package/dist/ts/gantt/actions/column-menu.ts +35 -0
- package/dist/ts/gantt/actions/column-reorder.ts +52 -0
- package/dist/ts/gantt/actions/column-resize.ts +52 -0
- package/dist/ts/gantt/actions/connector-line-edit.ts +829 -0
- package/dist/ts/gantt/actions/context-menu.ts +754 -0
- package/dist/ts/gantt/actions/day-markers.ts +80 -0
- package/dist/ts/gantt/actions/dependency.ts +692 -0
- package/dist/ts/gantt/actions/dialog-edit.ts +2208 -0
- package/dist/ts/gantt/actions/edit.ts +3499 -0
- package/dist/ts/gantt/actions/excel-export.ts +61 -0
- package/dist/ts/gantt/actions/filter.ts +302 -0
- package/dist/ts/gantt/actions/keyboard.ts +306 -0
- package/dist/ts/gantt/actions/pdf-export.ts +214 -0
- package/dist/ts/gantt/actions/rowdragdrop.ts +839 -0
- package/dist/ts/gantt/actions/selection.ts +536 -0
- package/dist/ts/gantt/actions/sort.ts +98 -0
- package/dist/ts/gantt/actions/taskbar-edit.ts +1940 -0
- package/dist/ts/gantt/actions/toolbar.ts +489 -0
- package/dist/ts/gantt/actions/virtual-scroll.ts +60 -0
- package/dist/ts/gantt/base/common.ts +9 -0
- package/dist/ts/gantt/base/constant.ts +13 -0
- package/dist/ts/gantt/base/css-constants.ts +148 -0
- package/dist/ts/gantt/base/date-processor.ts +1257 -0
- package/dist/ts/gantt/base/enum.ts +372 -0
- package/dist/ts/gantt/base/gantt-chart.ts +1248 -0
- package/dist/ts/gantt/base/gantt.ts +4069 -0
- package/dist/ts/gantt/base/interface.ts +955 -0
- package/dist/ts/gantt/base/splitter.ts +174 -0
- package/dist/ts/gantt/base/task-processor.ts +2217 -0
- package/dist/ts/gantt/base/tree-grid.ts +694 -0
- package/dist/ts/gantt/base/utils.ts +208 -0
- package/dist/ts/gantt/export/export-helper.ts +552 -0
- package/dist/ts/gantt/export/pdf-base/dictionary.ts +152 -0
- package/dist/ts/gantt/export/pdf-base/pdf-borders.ts +277 -0
- package/dist/ts/gantt/export/pdf-base/pdf-grid-table.ts +901 -0
- package/dist/ts/gantt/export/pdf-base/pdf-style/gantt-theme.ts +131 -0
- package/dist/ts/gantt/export/pdf-base/pdf-style/style.ts +91 -0
- package/dist/ts/gantt/export/pdf-base/treegrid-layouter.ts +414 -0
- package/dist/ts/gantt/export/pdf-connector-line.ts +422 -0
- package/dist/ts/gantt/export/pdf-gantt.ts +282 -0
- package/dist/ts/gantt/export/pdf-taskbar.ts +395 -0
- package/dist/ts/gantt/export/pdf-timeline.ts +202 -0
- package/dist/ts/gantt/export/pdf-treegrid.ts +406 -0
- package/dist/ts/gantt/models/add-dialog-field-settings.ts +33 -0
- package/dist/ts/gantt/models/column.ts +464 -0
- package/dist/ts/gantt/models/day-working-time.ts +22 -0
- package/dist/ts/gantt/models/edit-dialog-field-settings.ts +33 -0
- package/dist/ts/gantt/models/edit-settings.ts +79 -0
- package/dist/ts/gantt/models/event-marker.ts +27 -0
- package/dist/ts/gantt/models/filter-settings.ts +53 -0
- package/dist/ts/gantt/models/holiday.ts +34 -0
- package/dist/ts/gantt/models/label-settings.ts +30 -0
- package/dist/ts/gantt/models/models.ts +36 -0
- package/dist/ts/gantt/models/resource-fields.ts +38 -0
- package/dist/ts/gantt/models/search-settings.ts +77 -0
- package/dist/ts/gantt/models/selection-settings.ts +56 -0
- package/dist/ts/gantt/models/sort-settings.ts +50 -0
- package/dist/ts/gantt/models/splitter-settings.ts +47 -0
- package/dist/ts/gantt/models/task-fields.ts +171 -0
- package/dist/ts/gantt/models/timeline-settings.ts +112 -0
- package/dist/ts/gantt/models/tooltip-settings.ts +46 -0
- package/dist/ts/gantt/renderer/chart-rows.ts +1838 -0
- package/dist/ts/gantt/renderer/connector-line.ts +1025 -0
- package/dist/ts/gantt/renderer/edit-tooltip.ts +228 -0
- package/dist/ts/gantt/renderer/event-marker.ts +96 -0
- package/dist/ts/gantt/renderer/nonworking-day.ts +205 -0
- package/dist/ts/gantt/renderer/render.ts +5 -0
- package/dist/ts/gantt/renderer/timeline.ts +1397 -0
- package/dist/ts/gantt/renderer/tooltip.ts +450 -0
- package/dist/ts/gantt/renderer/virtual-content-render.ts +50 -0
- package/license +9 -9
- package/package.json +80 -80
- package/src/gantt/actions/cell-edit.js +2 -1
- package/src/gantt/actions/dialog-edit.js +2 -1
- package/src/gantt/actions/edit.js +36 -9
- package/src/gantt/actions/rowdragdrop.js +37 -15
- package/src/gantt/actions/selection.js +3 -2
- package/src/gantt/actions/taskbar-edit.js +24 -24
- package/src/gantt/base/date-processor.js +0 -1
- package/src/gantt/base/gantt-chart.js +36 -5
- package/src/gantt/base/gantt-model.d.ts +779 -779
- package/src/gantt/base/gantt.d.ts +27 -27
- package/src/gantt/base/gantt.js +35 -76
- package/src/gantt/base/splitter.js +1 -0
- package/src/gantt/base/task-processor.js +13 -13
- package/src/gantt/base/tree-grid.js +3 -1
- package/src/gantt/export/pdf-base/treegrid-layouter.js +13 -13
- package/src/gantt/export/pdf-connector-line.js +11 -11
- package/src/gantt/export/pdf-gantt.js +24 -24
- package/src/gantt/export/pdf-taskbar.js +11 -11
- package/src/gantt/export/pdf-treegrid.js +13 -13
- package/src/gantt/models/add-dialog-field-settings-model.d.ts +21 -21
- package/src/gantt/models/add-dialog-field-settings.js +19 -19
- package/src/gantt/models/day-working-time-model.d.ts +11 -11
- package/src/gantt/models/day-working-time.js +19 -19
- package/src/gantt/models/edit-dialog-field-settings-model.d.ts +21 -21
- package/src/gantt/models/edit-dialog-field-settings.js +19 -19
- package/src/gantt/models/edit-settings-model.d.ts +50 -50
- package/src/gantt/models/edit-settings.js +19 -19
- package/src/gantt/models/event-marker-model.d.ts +16 -16
- package/src/gantt/models/event-marker.js +19 -19
- package/src/gantt/models/filter-settings-model.d.ts +34 -34
- package/src/gantt/models/filter-settings.js +19 -19
- package/src/gantt/models/holiday-model.d.ts +21 -21
- package/src/gantt/models/holiday.js +19 -19
- package/src/gantt/models/label-settings-model.d.ts +16 -16
- package/src/gantt/models/label-settings.js +19 -19
- package/src/gantt/models/resource-fields-model.d.ts +21 -21
- package/src/gantt/models/resource-fields.js +19 -19
- package/src/gantt/models/search-settings-model.d.ts +56 -56
- package/src/gantt/models/search-settings.js +19 -19
- package/src/gantt/models/selection-settings-model.d.ts +35 -35
- package/src/gantt/models/selection-settings.js +19 -19
- package/src/gantt/models/sort-settings-model.d.ts +24 -24
- package/src/gantt/models/sort-settings.js +19 -19
- package/src/gantt/models/splitter-settings-model.d.ts +30 -30
- package/src/gantt/models/splitter-settings.js +19 -19
- package/src/gantt/models/task-fields-model.d.ts +110 -110
- package/src/gantt/models/task-fields.js +19 -19
- package/src/gantt/models/timeline-settings-model.d.ts +71 -71
- package/src/gantt/models/timeline-settings.js +19 -19
- package/src/gantt/models/tooltip-settings-model.d.ts +26 -26
- package/src/gantt/models/tooltip-settings.js +19 -19
- package/src/gantt/renderer/chart-rows.js +49 -37
- package/src/gantt/renderer/connector-line.js +22 -18
- package/src/gantt/renderer/event-marker.js +1 -0
- package/src/gantt/renderer/nonworking-day.js +13 -6
- package/src/gantt/renderer/timeline.d.ts +1 -0
- package/src/gantt/renderer/timeline.js +51 -12
- package/src/gantt/renderer/tooltip.js +11 -3
- package/styles/bootstrap-dark.css +442 -427
- package/styles/bootstrap.css +442 -433
- package/styles/bootstrap4.css +454 -479
- package/styles/bootstrap5-dark.css +457 -433
- package/styles/bootstrap5.css +457 -433
- package/styles/fabric-dark.css +438 -421
- package/styles/fabric.css +445 -428
- package/styles/fluent-dark.css +1938 -0
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.css +1938 -0
- package/styles/fluent.scss +1 -0
- package/styles/gantt/_all.scss +2 -2
- package/styles/gantt/_bootstrap-dark-definition.scss +210 -156
- package/styles/gantt/_bootstrap-definition.scss +211 -157
- package/styles/gantt/_bootstrap4-definition.scss +213 -158
- package/styles/gantt/_bootstrap5-definition.scss +215 -162
- package/styles/gantt/_fabric-dark-definition.scss +211 -157
- package/styles/gantt/_fabric-definition.scss +211 -157
- package/styles/gantt/_fluent-dark-definition.scss +1 -0
- package/styles/gantt/_fluent-definition.scss +215 -162
- package/styles/gantt/_fusionnew-definition.scss +214 -0
- package/styles/gantt/_highcontrast-definition.scss +211 -157
- package/styles/gantt/_highcontrast-light-definition.scss +211 -157
- package/styles/gantt/_layout.scss +1446 -1027
- package/styles/gantt/_material-dark-definition.scss +212 -157
- package/styles/gantt/_material-definition.scss +212 -157
- package/styles/gantt/_material3-definition.scss +215 -0
- package/styles/gantt/_tailwind-definition.scss +215 -161
- package/styles/gantt/_theme.scss +702 -668
- package/styles/gantt/bootstrap-dark.css +442 -427
- package/styles/gantt/bootstrap.css +442 -433
- package/styles/gantt/bootstrap4.css +454 -479
- package/styles/gantt/bootstrap5-dark.css +457 -433
- package/styles/gantt/bootstrap5.css +457 -433
- package/styles/gantt/fabric-dark.css +438 -421
- package/styles/gantt/fabric.css +445 -428
- package/styles/gantt/fluent-dark.css +1938 -0
- package/styles/gantt/fluent-dark.scss +22 -0
- package/styles/gantt/fluent.css +1938 -0
- package/styles/gantt/fluent.scss +22 -0
- package/styles/gantt/highcontrast-light.css +405 -405
- package/styles/gantt/highcontrast.css +444 -456
- package/styles/gantt/icons/_bootstrap-dark.scss +124 -113
- package/styles/gantt/icons/_bootstrap.scss +124 -113
- package/styles/gantt/icons/_bootstrap4.scss +124 -113
- package/styles/gantt/icons/_bootstrap5.scss +124 -112
- package/styles/gantt/icons/_fabric-dark.scss +124 -112
- package/styles/gantt/icons/_fabric.scss +124 -112
- package/styles/gantt/icons/_fluent-dark.scss +1 -0
- package/styles/gantt/icons/_fluent.scss +124 -112
- package/styles/gantt/icons/_fusionnew.scss +120 -0
- package/styles/gantt/icons/_highcontrast.scss +124 -112
- package/styles/gantt/icons/_material-dark.scss +124 -112
- package/styles/gantt/icons/_material.scss +124 -112
- package/styles/gantt/icons/_material3.scss +124 -0
- package/styles/gantt/icons/_tailwind-dark.scss +124 -113
- package/styles/gantt/icons/_tailwind.scss +124 -113
- package/styles/gantt/material-dark.css +446 -417
- package/styles/gantt/material.css +445 -419
- package/styles/gantt/tailwind-dark.css +452 -482
- package/styles/gantt/tailwind.css +449 -479
- package/styles/highcontrast-light.css +405 -405
- package/styles/highcontrast.css +444 -456
- package/styles/material-dark.css +446 -417
- package/styles/material.css +445 -419
- package/styles/tailwind-dark.css +452 -482
- package/styles/tailwind.css +449 -479
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Interface for a class TimelineTierSettings
|
|
@@ -6,39 +6,39 @@ import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';import {
|
|
|
6
6
|
export interface TimelineTierSettingsModel {
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Defines timeline cell format.
|
|
10
|
-
*
|
|
11
|
-
* @default ''
|
|
12
|
-
*/
|
|
13
|
-
format?: string;
|
|
9
|
+
* Defines timeline cell format.
|
|
10
|
+
*
|
|
11
|
+
* @default ''
|
|
12
|
+
*/
|
|
13
|
+
format?: string;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Defines timeline mode of Gantt header.
|
|
17
|
-
* * `None` - Default.
|
|
18
|
-
* * `Week` - Define the week mode header.
|
|
19
|
-
* * `Day` - Define the day mode header.
|
|
20
|
-
* * `Hour` - Define the hour mode header.
|
|
21
|
-
* * `Month` - Define the month mode header.
|
|
22
|
-
* * `Year` - Define the year mode header.
|
|
23
|
-
* * `Minutes` - Define the minutes mode header.
|
|
24
|
-
*
|
|
25
|
-
* @default 'None'
|
|
26
|
-
*/
|
|
27
|
-
unit?: TimelineViewMode;
|
|
16
|
+
* Defines timeline mode of Gantt header.
|
|
17
|
+
* * `None` - Default.
|
|
18
|
+
* * `Week` - Define the week mode header.
|
|
19
|
+
* * `Day` - Define the day mode header.
|
|
20
|
+
* * `Hour` - Define the hour mode header.
|
|
21
|
+
* * `Month` - Define the month mode header.
|
|
22
|
+
* * `Year` - Define the year mode header.
|
|
23
|
+
* * `Minutes` - Define the minutes mode header.
|
|
24
|
+
*
|
|
25
|
+
* @default 'None'
|
|
26
|
+
*/
|
|
27
|
+
unit?: TimelineViewMode;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Defines number of timeline units combined for single cell.
|
|
31
|
-
*
|
|
32
|
-
* @default 1
|
|
33
|
-
*/
|
|
34
|
-
count?: number;
|
|
30
|
+
* Defines number of timeline units combined for single cell.
|
|
31
|
+
*
|
|
32
|
+
* @default 1
|
|
33
|
+
*/
|
|
34
|
+
count?: number;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
* Defines method to get custom formatted values of timeline cells.
|
|
38
|
-
*
|
|
39
|
-
* @default null
|
|
40
|
-
*/
|
|
41
|
-
formatter?: string | ITimelineFormatter;
|
|
37
|
+
* Defines method to get custom formatted values of timeline cells.
|
|
38
|
+
*
|
|
39
|
+
* @default null
|
|
40
|
+
*/
|
|
41
|
+
formatter?: string | ITimelineFormatter;
|
|
42
42
|
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -48,62 +48,62 @@ export interface TimelineTierSettingsModel {
|
|
|
48
48
|
export interface TimelineSettingsModel {
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* Defines timeline mode of Gantt header.
|
|
52
|
-
* * `None` - Default.
|
|
53
|
-
* * `Week` - Define the week mode header.
|
|
54
|
-
* * `Day` - Define the day mode header.
|
|
55
|
-
* * `Hour` - Define the hour mode header.
|
|
56
|
-
* * `Month` - Define the month mode header.
|
|
57
|
-
* * `Year` - Define the year mode header.
|
|
58
|
-
* * `Minutes` - Define the minutes mode header.
|
|
59
|
-
*
|
|
60
|
-
* @default 'None'
|
|
61
|
-
*/
|
|
62
|
-
timelineViewMode?: TimelineViewMode;
|
|
51
|
+
* Defines timeline mode of Gantt header.
|
|
52
|
+
* * `None` - Default.
|
|
53
|
+
* * `Week` - Define the week mode header.
|
|
54
|
+
* * `Day` - Define the day mode header.
|
|
55
|
+
* * `Hour` - Define the hour mode header.
|
|
56
|
+
* * `Month` - Define the month mode header.
|
|
57
|
+
* * `Year` - Define the year mode header.
|
|
58
|
+
* * `Minutes` - Define the minutes mode header.
|
|
59
|
+
*
|
|
60
|
+
* @default 'None'
|
|
61
|
+
*/
|
|
62
|
+
timelineViewMode?: TimelineViewMode;
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
* Defines top tier setting in timeline.
|
|
66
|
-
*/
|
|
67
|
-
topTier?: TimelineTierSettingsModel;
|
|
65
|
+
* Defines top tier setting in timeline.
|
|
66
|
+
*/
|
|
67
|
+
topTier?: TimelineTierSettingsModel;
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
|
-
* Defines bottom tier settings in timeline.
|
|
71
|
-
*/
|
|
72
|
-
bottomTier?: TimelineTierSettingsModel;
|
|
70
|
+
* Defines bottom tier settings in timeline.
|
|
71
|
+
*/
|
|
72
|
+
bottomTier?: TimelineTierSettingsModel;
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
* Defines width of timeline cell.
|
|
76
|
-
*
|
|
77
|
-
* @default 33
|
|
78
|
-
*/
|
|
79
|
-
timelineUnitSize?: number;
|
|
75
|
+
* Defines width of timeline cell.
|
|
76
|
+
*
|
|
77
|
+
* @default 33
|
|
78
|
+
*/
|
|
79
|
+
timelineUnitSize?: number;
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
|
-
* Defines week start day in timeline.
|
|
83
|
-
*
|
|
84
|
-
* @default 0
|
|
85
|
-
*/
|
|
86
|
-
weekStartDay?: number;
|
|
82
|
+
* Defines week start day in timeline.
|
|
83
|
+
*
|
|
84
|
+
* @default 0
|
|
85
|
+
*/
|
|
86
|
+
weekStartDay?: number;
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
* Defines background color of weekend cell in week - day timeline mode.
|
|
90
|
-
*
|
|
91
|
-
* @default null
|
|
92
|
-
*/
|
|
93
|
-
weekendBackground?: string;
|
|
89
|
+
* Defines background color of weekend cell in week - day timeline mode.
|
|
90
|
+
*
|
|
91
|
+
* @default null
|
|
92
|
+
*/
|
|
93
|
+
weekendBackground?: string;
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
|
-
* Enables or disables tooltip for timeline cells.
|
|
97
|
-
*
|
|
98
|
-
* @default true
|
|
99
|
-
*/
|
|
100
|
-
showTooltip?: boolean;
|
|
96
|
+
* Enables or disables tooltip for timeline cells.
|
|
97
|
+
*
|
|
98
|
+
* @default true
|
|
99
|
+
*/
|
|
100
|
+
showTooltip?: boolean;
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
|
-
* Enables or disables timeline auto update on editing action.
|
|
104
|
-
*
|
|
105
|
-
* @default true
|
|
106
|
-
*/
|
|
107
|
-
updateTimescaleView?: boolean;
|
|
103
|
+
* Enables or disables timeline auto update on editing action.
|
|
104
|
+
*
|
|
105
|
+
* @default true
|
|
106
|
+
*/
|
|
107
|
+
updateTimescaleView?: boolean;
|
|
108
108
|
|
|
109
109
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
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
|
-
};
|
|
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
20
|
import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
|
|
21
21
|
/**
|
|
22
22
|
* Configures timeline settings of Gantt.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Interface for a class TooltipSettings
|
|
@@ -6,38 +6,38 @@ import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
|
6
6
|
export interface TooltipSettingsModel {
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Enables or disables tooltip of Gantt element.
|
|
10
|
-
*
|
|
11
|
-
* @default true
|
|
12
|
-
*/
|
|
13
|
-
showTooltip?: boolean;
|
|
9
|
+
* Enables or disables tooltip of Gantt element.
|
|
10
|
+
*
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
showTooltip?: boolean;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Defines tooltip template for taskbar elements.
|
|
17
|
-
*
|
|
18
|
-
* @default null
|
|
19
|
-
*/
|
|
20
|
-
taskbar?: string;
|
|
16
|
+
* Defines tooltip template for taskbar elements.
|
|
17
|
+
*
|
|
18
|
+
* @default null
|
|
19
|
+
*/
|
|
20
|
+
taskbar?: string;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* Defines template for baseline tooltip element.
|
|
24
|
-
*
|
|
25
|
-
* @default null
|
|
26
|
-
*/
|
|
27
|
-
baseline?: string;
|
|
23
|
+
* Defines template for baseline tooltip element.
|
|
24
|
+
*
|
|
25
|
+
* @default null
|
|
26
|
+
*/
|
|
27
|
+
baseline?: string;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Defines template for dependency line tooltip.
|
|
31
|
-
*
|
|
32
|
-
* @default null
|
|
33
|
-
*/
|
|
34
|
-
connectorLine?: string;
|
|
30
|
+
* Defines template for dependency line tooltip.
|
|
31
|
+
*
|
|
32
|
+
* @default null
|
|
33
|
+
*/
|
|
34
|
+
connectorLine?: string;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
* Defines tooltip template for taskbar editing action.
|
|
38
|
-
*
|
|
39
|
-
* @default null
|
|
40
|
-
*/
|
|
41
|
-
editing?: string;
|
|
37
|
+
* Defines tooltip template for taskbar editing action.
|
|
38
|
+
*
|
|
39
|
+
* @default null
|
|
40
|
+
*/
|
|
41
|
+
editing?: string;
|
|
42
42
|
|
|
43
43
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
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
|
-
};
|
|
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
20
|
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
21
21
|
/**
|
|
22
22
|
* Configures tooltip settings for Gantt.
|
|
@@ -1,16 +1,16 @@
|
|
|
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
|
-
})();
|
|
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
14
|
import { createElement, isNullOrUndefined, extend, compile, getValue, setValue } from '@syncfusion/ej2-base';
|
|
15
15
|
import { formatUnit, addClass } from '@syncfusion/ej2-base';
|
|
16
16
|
import { isScheduledTask } from '../base/utils';
|
|
@@ -28,7 +28,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
28
28
|
_this.milestoneHeight = 0;
|
|
29
29
|
_this.milesStoneRadius = 0;
|
|
30
30
|
_this.baselineTop = 0;
|
|
31
|
-
_this.baselineHeight =
|
|
31
|
+
_this.baselineHeight = 8;
|
|
32
32
|
_this.touchLeftConnectorpoint = '';
|
|
33
33
|
_this.touchRightConnectorpoint = '';
|
|
34
34
|
_this.dropSplit = false;
|
|
@@ -111,7 +111,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
111
111
|
* @private
|
|
112
112
|
*/
|
|
113
113
|
ChartRows.prototype.getIndicatorNode = function (indicator) {
|
|
114
|
-
var templateString = '<label class="' + cls.label + ' ' + cls.taskIndicatorDiv + '"
|
|
114
|
+
var templateString = '<label class="' + cls.label + ' ' + cls.taskIndicatorDiv + '" role="LabelIndicator" style="line-height:'
|
|
115
115
|
+ (this.parent.rowHeight) + 'px;' +
|
|
116
116
|
'left:' + this.getIndicatorleft(indicator.date) + 'px;"><i class="' + indicator.iconClass + '"></i> </label>';
|
|
117
117
|
return this.createDivElement(templateString);
|
|
@@ -184,9 +184,9 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
184
184
|
}
|
|
185
185
|
else {
|
|
186
186
|
taskLabel = '<span class="' + cls.taskLabel + '" style="line-height:' +
|
|
187
|
-
(this.taskBarHeight - 1) + 'px;
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
(this.taskBarHeight - 1) + 'px;' + (this.parent.viewType === 'ResourceView' ? 'text-align: left;' : '') +
|
|
188
|
+
+(this.parent.viewType === 'ResourceView' ? 'display:inline-flex;' : '') +
|
|
189
|
+
+(this.parent.viewType === 'ResourceView' ? (data.ganttProperties.width - 10) : '') + 'px; height:' +
|
|
190
190
|
this.taskBarHeight + 'px;">' + labelString + '</span>';
|
|
191
191
|
}
|
|
192
192
|
}
|
|
@@ -603,7 +603,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
603
603
|
*/
|
|
604
604
|
ChartRows.prototype.getTaskBaselineNode = function () {
|
|
605
605
|
var data = this.templateData;
|
|
606
|
-
var template = '<div class="' + cls.baselineBar + ' ' + '" style="margin-top:' + this.baselineTop +
|
|
606
|
+
var template = '<div class="' + cls.baselineBar + ' ' + '" role="BaselineBar" style="margin-top:' + this.baselineTop +
|
|
607
607
|
'px;left:' + data.ganttProperties.baselineLeft + 'px;' +
|
|
608
608
|
'width:' + data.ganttProperties.baselineWidth + 'px;height:' +
|
|
609
609
|
this.baselineHeight + 'px;' + (this.baselineColor ? 'background-color: ' + this.baselineColor + ';' : '') + '"></div>';
|
|
@@ -617,9 +617,10 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
617
617
|
*/
|
|
618
618
|
ChartRows.prototype.getMilestoneBaselineNode = function () {
|
|
619
619
|
var data = this.templateData;
|
|
620
|
+
var baselineMilestoneHeight = this.parent.renderBaseline ? 5 : 2;
|
|
620
621
|
var template = '<div class="' + cls.baselineMilestoneContainer + ' ' + '" style="' +
|
|
621
622
|
'left:' + (data.ganttProperties.baselineLeft - this.milesStoneRadius) + 'px;' +
|
|
622
|
-
'margin-top:' + (-Math.floor(this.parent.rowHeight - this.milestoneMarginTop) +
|
|
623
|
+
'margin-top:' + (-Math.floor(this.parent.rowHeight - this.milestoneMarginTop) + baselineMilestoneHeight) +
|
|
623
624
|
'px">' + '<div class="' + cls.baselineMilestoneDiv + '">' + '<div class="' + cls.baselineMilestoneDiv +
|
|
624
625
|
' ' + cls.baselineMilestoneTop + '" ' +
|
|
625
626
|
'style="top:' + (-this.milestoneHeight) + 'px;border-right:' + this.milesStoneRadius +
|
|
@@ -647,7 +648,9 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
647
648
|
*/
|
|
648
649
|
ChartRows.prototype.getLeftLabelNode = function (i) {
|
|
649
650
|
var leftLabelNode = this.leftLabelContainer();
|
|
650
|
-
|
|
651
|
+
if (this.generateTaskLabelAriaLabel('left') !== "") {
|
|
652
|
+
leftLabelNode[0].setAttribute('aria-label', this.generateTaskLabelAriaLabel('left'));
|
|
653
|
+
}
|
|
651
654
|
var leftLabelTemplateNode = null;
|
|
652
655
|
if (this.leftTaskLabelTemplateFunction) {
|
|
653
656
|
leftLabelTemplateNode = this.leftTaskLabelTemplateFunction(extend({ index: i }, this.templateData), this.parent, 'LeftLabelTemplate', this.getTemplateID('LeftLabelTemplate'), false, undefined, leftLabelNode[0], this.parent.treeGrid['root']);
|
|
@@ -669,9 +672,10 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
669
672
|
return leftLabelNode;
|
|
670
673
|
};
|
|
671
674
|
ChartRows.prototype.getLableText = function (labelString, labelDiv) {
|
|
675
|
+
var leftLabelHeight = this.parent.renderBaseline ? ((this.parent.rowHeight - this.taskBarHeight) / 2) : this.taskBarMarginTop;
|
|
672
676
|
var templateString = createElement('div', {
|
|
673
677
|
className: labelDiv, styles: 'height:' + (this.taskBarHeight) + 'px;' +
|
|
674
|
-
'margin-top:' +
|
|
678
|
+
'margin-top:' + leftLabelHeight + 'px;'
|
|
675
679
|
});
|
|
676
680
|
var spanElem = createElement('span', { className: cls.label });
|
|
677
681
|
var property = this.parent.disableHtmlEncode ? 'textContent' : 'innerHTML';
|
|
@@ -690,7 +694,9 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
690
694
|
*/
|
|
691
695
|
ChartRows.prototype.getRightLabelNode = function (i) {
|
|
692
696
|
var rightLabelNode = this.rightLabelContainer();
|
|
693
|
-
|
|
697
|
+
if (this.generateTaskLabelAriaLabel('right') !== "") {
|
|
698
|
+
rightLabelNode[0].setAttribute('aria-label', this.generateTaskLabelAriaLabel('right'));
|
|
699
|
+
}
|
|
694
700
|
var rightLabelTemplateNode = null;
|
|
695
701
|
if (this.rightTaskLabelTemplateFunction) {
|
|
696
702
|
rightLabelTemplateNode = this.rightTaskLabelTemplateFunction(extend({ index: i }, this.templateData), this.parent, 'RightLabelTemplate', this.getTemplateID('RightLabelTemplate'), false, undefined, rightLabelNode[0], this.parent.treeGrid['root']);
|
|
@@ -803,8 +809,10 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
803
809
|
else {
|
|
804
810
|
labelDiv = this.createDivElement('<span class="' +
|
|
805
811
|
cls.taskLabel + '" style="line-height:' +
|
|
806
|
-
(this.taskBarHeight - 1) + 'px;
|
|
807
|
-
(this.parent.viewType === 'ResourceView' ? (data.ganttProperties.width - 10) : '
|
|
812
|
+
(this.taskBarHeight - 1) + 'px;' + (this.parent.viewType === 'ResourceView' ? 'display:inline-flex;' : '') +
|
|
813
|
+
(this.parent.viewType === 'ResourceView' ? 'width:' + (data.ganttProperties.width - 10) : '') + 'px; height:' +
|
|
814
|
+
(this.taskBarHeight - 1) + 'px;' + (this.parent.viewType === 'ResourceView' ? 'display: inline-flex;' : '') +
|
|
815
|
+
(this.parent.viewType === 'ResourceView' ? 'width:' + (data.ganttProperties.width - 10) : '') + 'px; height:' +
|
|
808
816
|
this.taskBarHeight + 'px;">' + labelString + '</span>');
|
|
809
817
|
}
|
|
810
818
|
progressBarInnerDiv[0].appendChild([].slice.call(labelDiv)[0]);
|
|
@@ -833,10 +841,10 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
833
841
|
var className = (this.parent.gridLines === 'Horizontal' || this.parent.gridLines === 'Both') ?
|
|
834
842
|
'e-chart-row-border' : '';
|
|
835
843
|
table.innerHTML = '<tr class="' + this.getRowClassName(this.templateData) + ' ' + cls.chartRow + '"' +
|
|
836
|
-
'style="display:' + this.getExpandDisplayProp(this.templateData) + ';height:' +
|
|
844
|
+
'role="ChartRow" style="display:' + this.getExpandDisplayProp(this.templateData) + ';height:' +
|
|
837
845
|
this.parent.rowHeight + 'px;">' +
|
|
838
846
|
'<td class="' + cls.chartRowCell + ' ' + className
|
|
839
|
-
+ '" style="width:' + this.parent.timelineModule.totalTimelineWidth + 'px;"></td></tr>';
|
|
847
|
+
+ '" role="ChartCell" style="width:' + this.parent.timelineModule.totalTimelineWidth + 'px;"></td></tr>';
|
|
840
848
|
return table.childNodes;
|
|
841
849
|
};
|
|
842
850
|
/**
|
|
@@ -901,7 +909,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
901
909
|
};
|
|
902
910
|
ChartRows.prototype.leftLabelContainer = function () {
|
|
903
911
|
var template = '<div class="' + ((this.leftTaskLabelTemplateFunction) ? cls.leftLabelTempContainer :
|
|
904
|
-
cls.leftLabelContainer) + ' ' + '" tabindex="-1" style="height:' +
|
|
912
|
+
cls.leftLabelContainer) + ' ' + '" tabindex="-1" role="LeftLabel" style="height:' +
|
|
905
913
|
(this.parent.rowHeight - 2) + 'px;width:' + this.taskNameWidth(this.templateData) + '"></div>';
|
|
906
914
|
return this.createDivElement(template);
|
|
907
915
|
};
|
|
@@ -913,7 +921,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
913
921
|
var template = '<div class="' + cls.taskBarMainContainer + ' ' +
|
|
914
922
|
this.parent.getUnscheduledTaskClass(data.ganttProperties) + ' ' +
|
|
915
923
|
((data.ganttProperties.cssClass) ? data.ganttProperties.cssClass : '') + '" ' +
|
|
916
|
-
' tabindex="-1" style="' + ((data.ganttProperties.isMilestone && !manualParent) ?
|
|
924
|
+
' tabindex="-1" role="TaskBar" style="' + ((data.ganttProperties.isMilestone && !manualParent) ?
|
|
917
925
|
('width:' + this.milestoneHeight + 'px;height:' +
|
|
918
926
|
this.milestoneHeight + 'px;margin-top:' + this.milestoneMarginTop + 'px;left:' + (data.ganttProperties.left -
|
|
919
927
|
(this.milestoneHeight / 2)) + 'px;') : ('width:' + data.ganttProperties.width +
|
|
@@ -924,26 +932,26 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
924
932
|
};
|
|
925
933
|
ChartRows.prototype.rightLabelContainer = function () {
|
|
926
934
|
var template = '<div class="' + ((this.rightTaskLabelTemplateFunction) ? cls.rightLabelTempContainer :
|
|
927
|
-
cls.rightLabelContainer) + '" ' + ' tabindex="-1" style="left:' + this.getRightLabelLeft(this.templateData) + 'px;height:'
|
|
935
|
+
cls.rightLabelContainer) + '" ' + ' tabindex="-1" role="RightLabel" style="left:' + this.getRightLabelLeft(this.templateData) + 'px; height:'
|
|
928
936
|
+ (this.parent.rowHeight - 2) + 'px;"></div>';
|
|
929
937
|
return this.createDivElement(template);
|
|
930
938
|
};
|
|
931
939
|
ChartRows.prototype.childTaskbarLeftResizer = function () {
|
|
932
940
|
var lResizerLeft = -(this.parent.isAdaptive ? 12 : 2);
|
|
933
941
|
var template = '<div class="' + cls.taskBarLeftResizer + ' ' + cls.icon + '"' +
|
|
934
|
-
' style="left:' + lResizerLeft + 'px;height:' + (this.taskBarHeight) + 'px;"></div>';
|
|
942
|
+
' role="LeftResizer" style="left:' + lResizerLeft + 'px;height:' + (this.taskBarHeight) + 'px;"></div>';
|
|
935
943
|
return this.createDivElement(template);
|
|
936
944
|
};
|
|
937
945
|
ChartRows.prototype.childTaskbarRightResizer = function () {
|
|
938
946
|
var rResizerLeft = this.parent.isAdaptive ? -2 : -10;
|
|
939
947
|
var template = '<div class="' + cls.taskBarRightResizer + ' ' + cls.icon + '"' +
|
|
940
|
-
' style="left:' + (this.templateData.ganttProperties.width + rResizerLeft) + 'px;' +
|
|
948
|
+
' role="RightResizer" style="left:' + (this.templateData.ganttProperties.width + rResizerLeft) + 'px;' +
|
|
941
949
|
'height:' + (this.taskBarHeight) + 'px;"></div>';
|
|
942
950
|
return this.createDivElement(template);
|
|
943
951
|
};
|
|
944
952
|
ChartRows.prototype.childTaskbarProgressResizer = function () {
|
|
945
953
|
var template = '<div class="' + cls.childProgressResizer + '"' +
|
|
946
|
-
' style="left:' + (this.templateData.ganttProperties.progressWidth - 6) + 'px;margin-top:' +
|
|
954
|
+
' role="ProgressResizer" style="left:' + (this.templateData.ganttProperties.progressWidth - 6) + 'px;margin-top:' +
|
|
947
955
|
(this.taskBarHeight - 4) + 'px;"><div class="' + cls.progressBarHandler + '"' +
|
|
948
956
|
'><div class="' + cls.progressHandlerElement + '"></div>' +
|
|
949
957
|
'<div class="' + cls.progressBarHandlerAfter + '"></div></div>';
|
|
@@ -1141,10 +1149,13 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1141
1149
|
* @private
|
|
1142
1150
|
*/
|
|
1143
1151
|
ChartRows.prototype.initChartHelperPrivateVariable = function () {
|
|
1152
|
+
var taskbarHeightValue = this.parent.renderBaseline ? 0.45 : 0.62;
|
|
1153
|
+
var taskBarMarginTopValue = this.parent.renderBaseline ? 4 : 2;
|
|
1154
|
+
var milestoneHeightValue = this.parent.renderBaseline ? 1.13 : 0.82;
|
|
1144
1155
|
this.baselineColor = !isNullOrUndefined(this.parent.baselineColor) &&
|
|
1145
1156
|
this.parent.baselineColor !== '' ? this.parent.baselineColor : null;
|
|
1146
1157
|
this.taskBarHeight = isNullOrUndefined(this.parent.taskbarHeight) || this.parent.taskbarHeight >= this.parent.rowHeight ?
|
|
1147
|
-
Math.floor(this.parent.rowHeight *
|
|
1158
|
+
Math.floor(this.parent.rowHeight * taskbarHeightValue) : this.parent.taskbarHeight; // 0.62 -- Standard Ratio.
|
|
1148
1159
|
if (this.parent.renderBaseline) {
|
|
1149
1160
|
var height = void 0;
|
|
1150
1161
|
if ((this.taskBarHeight + this.baselineHeight) <= this.parent.rowHeight) {
|
|
@@ -1155,11 +1166,11 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1155
1166
|
}
|
|
1156
1167
|
this.taskBarHeight = height;
|
|
1157
1168
|
}
|
|
1158
|
-
this.milestoneHeight = Math.floor(this.taskBarHeight *
|
|
1159
|
-
this.taskBarMarginTop = Math.floor((this.parent.rowHeight - this.taskBarHeight) /
|
|
1169
|
+
this.milestoneHeight = Math.floor(this.taskBarHeight * milestoneHeightValue); // 0.82 -- Standard Ratio.
|
|
1170
|
+
this.taskBarMarginTop = Math.floor((this.parent.rowHeight - this.taskBarHeight) / taskBarMarginTopValue);
|
|
1160
1171
|
this.milestoneMarginTop = Math.floor((this.parent.rowHeight - this.milestoneHeight) / 2);
|
|
1161
1172
|
this.milesStoneRadius = Math.floor((this.milestoneHeight) / 2);
|
|
1162
|
-
this.baselineTop = -(Math.floor((this.parent.rowHeight - (this.taskBarHeight + this.taskBarMarginTop))) -
|
|
1173
|
+
this.baselineTop = -(Math.floor((this.parent.rowHeight - (this.taskBarHeight + this.taskBarMarginTop))) - 4);
|
|
1163
1174
|
this.connectorPointWidth = this.parent.isAdaptive ? Math.round(this.taskBarHeight / 2) : 8;
|
|
1164
1175
|
this.connectorPointMargin = Math.floor((this.taskBarHeight / 2) - (this.connectorPointWidth / 2));
|
|
1165
1176
|
};
|
|
@@ -1353,6 +1364,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1353
1364
|
var indicators = this.templateData.ganttProperties.indicators;
|
|
1354
1365
|
for (var indicatorIndex = 0; indicatorIndex < indicators.length; indicatorIndex++) {
|
|
1355
1366
|
taskIndicatorNode = this.getIndicatorNode(indicators[indicatorIndex]);
|
|
1367
|
+
taskIndicatorNode[0].setAttribute('aria-label', indicators[indicatorIndex].name);
|
|
1356
1368
|
if (indicators[indicatorIndex].name.indexOf('$') > -1 || indicators[indicatorIndex].name.indexOf('#') > -1) {
|
|
1357
1369
|
taskIndicatorTextFunction = this.templateCompiler(indicators[indicatorIndex].name);
|
|
1358
1370
|
taskIndicatorTextNode = taskIndicatorTextFunction(extend({ index: i }, this.templateData), this.parent, 'indicatorLabelText');
|