@syncfusion/ej2-gantt 19.4.56 → 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.
Files changed (211) hide show
  1. package/CHANGELOG.md +1072 -1060
  2. package/README.md +75 -75
  3. package/dist/ej2-gantt.umd.min.js +1 -10
  4. package/dist/ej2-gantt.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-gantt.es2015.js +274 -176
  6. package/dist/es6/ej2-gantt.es2015.js.map +1 -1
  7. package/dist/es6/ej2-gantt.es5.js +642 -534
  8. package/dist/es6/ej2-gantt.es5.js.map +1 -1
  9. package/dist/global/ej2-gantt.min.js +1 -10
  10. package/dist/global/ej2-gantt.min.js.map +1 -1
  11. package/dist/global/index.d.ts +0 -9
  12. package/dist/ts/components.ts +4 -0
  13. package/dist/ts/gantt/actions/actions.ts +18 -0
  14. package/dist/ts/gantt/actions/cell-edit.ts +606 -0
  15. package/dist/ts/gantt/actions/chart-scroll.ts +167 -0
  16. package/dist/ts/gantt/actions/column-menu.ts +35 -0
  17. package/dist/ts/gantt/actions/column-reorder.ts +52 -0
  18. package/dist/ts/gantt/actions/column-resize.ts +52 -0
  19. package/dist/ts/gantt/actions/connector-line-edit.ts +829 -0
  20. package/dist/ts/gantt/actions/context-menu.ts +754 -0
  21. package/dist/ts/gantt/actions/day-markers.ts +80 -0
  22. package/dist/ts/gantt/actions/dependency.ts +692 -0
  23. package/dist/ts/gantt/actions/dialog-edit.ts +2208 -0
  24. package/dist/ts/gantt/actions/edit.ts +3499 -0
  25. package/dist/ts/gantt/actions/excel-export.ts +61 -0
  26. package/dist/ts/gantt/actions/filter.ts +302 -0
  27. package/dist/ts/gantt/actions/keyboard.ts +306 -0
  28. package/dist/ts/gantt/actions/pdf-export.ts +214 -0
  29. package/dist/ts/gantt/actions/rowdragdrop.ts +839 -0
  30. package/dist/ts/gantt/actions/selection.ts +536 -0
  31. package/dist/ts/gantt/actions/sort.ts +98 -0
  32. package/dist/ts/gantt/actions/taskbar-edit.ts +1940 -0
  33. package/dist/ts/gantt/actions/toolbar.ts +489 -0
  34. package/dist/ts/gantt/actions/virtual-scroll.ts +60 -0
  35. package/dist/ts/gantt/base/common.ts +9 -0
  36. package/dist/ts/gantt/base/constant.ts +13 -0
  37. package/dist/ts/gantt/base/css-constants.ts +148 -0
  38. package/dist/ts/gantt/base/date-processor.ts +1257 -0
  39. package/dist/ts/gantt/base/enum.ts +372 -0
  40. package/dist/ts/gantt/base/gantt-chart.ts +1248 -0
  41. package/dist/ts/gantt/base/gantt.ts +4069 -0
  42. package/dist/ts/gantt/base/interface.ts +955 -0
  43. package/dist/ts/gantt/base/splitter.ts +174 -0
  44. package/dist/ts/gantt/base/task-processor.ts +2217 -0
  45. package/dist/ts/gantt/base/tree-grid.ts +694 -0
  46. package/dist/ts/gantt/base/utils.ts +208 -0
  47. package/dist/ts/gantt/export/export-helper.ts +552 -0
  48. package/dist/ts/gantt/export/pdf-base/dictionary.ts +152 -0
  49. package/dist/ts/gantt/export/pdf-base/pdf-borders.ts +277 -0
  50. package/dist/ts/gantt/export/pdf-base/pdf-grid-table.ts +901 -0
  51. package/dist/ts/gantt/export/pdf-base/pdf-style/gantt-theme.ts +131 -0
  52. package/dist/ts/gantt/export/pdf-base/pdf-style/style.ts +91 -0
  53. package/dist/ts/gantt/export/pdf-base/treegrid-layouter.ts +414 -0
  54. package/dist/ts/gantt/export/pdf-connector-line.ts +422 -0
  55. package/dist/ts/gantt/export/pdf-gantt.ts +282 -0
  56. package/dist/ts/gantt/export/pdf-taskbar.ts +395 -0
  57. package/dist/ts/gantt/export/pdf-timeline.ts +202 -0
  58. package/dist/ts/gantt/export/pdf-treegrid.ts +406 -0
  59. package/dist/ts/gantt/models/add-dialog-field-settings.ts +33 -0
  60. package/dist/ts/gantt/models/column.ts +464 -0
  61. package/dist/ts/gantt/models/day-working-time.ts +22 -0
  62. package/dist/ts/gantt/models/edit-dialog-field-settings.ts +33 -0
  63. package/dist/ts/gantt/models/edit-settings.ts +79 -0
  64. package/dist/ts/gantt/models/event-marker.ts +27 -0
  65. package/dist/ts/gantt/models/filter-settings.ts +53 -0
  66. package/dist/ts/gantt/models/holiday.ts +34 -0
  67. package/dist/ts/gantt/models/label-settings.ts +30 -0
  68. package/dist/ts/gantt/models/models.ts +36 -0
  69. package/dist/ts/gantt/models/resource-fields.ts +38 -0
  70. package/dist/ts/gantt/models/search-settings.ts +77 -0
  71. package/dist/ts/gantt/models/selection-settings.ts +56 -0
  72. package/dist/ts/gantt/models/sort-settings.ts +50 -0
  73. package/dist/ts/gantt/models/splitter-settings.ts +47 -0
  74. package/dist/ts/gantt/models/task-fields.ts +171 -0
  75. package/dist/ts/gantt/models/timeline-settings.ts +112 -0
  76. package/dist/ts/gantt/models/tooltip-settings.ts +46 -0
  77. package/dist/ts/gantt/renderer/chart-rows.ts +1838 -0
  78. package/dist/ts/gantt/renderer/connector-line.ts +1025 -0
  79. package/dist/ts/gantt/renderer/edit-tooltip.ts +228 -0
  80. package/dist/ts/gantt/renderer/event-marker.ts +96 -0
  81. package/dist/ts/gantt/renderer/nonworking-day.ts +205 -0
  82. package/dist/ts/gantt/renderer/render.ts +5 -0
  83. package/dist/ts/gantt/renderer/timeline.ts +1397 -0
  84. package/dist/ts/gantt/renderer/tooltip.ts +450 -0
  85. package/dist/ts/gantt/renderer/virtual-content-render.ts +50 -0
  86. package/license +9 -9
  87. package/package.json +80 -80
  88. package/src/gantt/actions/cell-edit.js +2 -1
  89. package/src/gantt/actions/dialog-edit.js +2 -1
  90. package/src/gantt/actions/edit.js +11 -2
  91. package/src/gantt/actions/rowdragdrop.js +37 -15
  92. package/src/gantt/actions/taskbar-edit.js +24 -24
  93. package/src/gantt/base/date-processor.js +0 -1
  94. package/src/gantt/base/gantt-chart.js +9 -4
  95. package/src/gantt/base/gantt-model.d.ts +779 -779
  96. package/src/gantt/base/gantt.d.ts +27 -27
  97. package/src/gantt/base/gantt.js +22 -22
  98. package/src/gantt/base/splitter.js +1 -0
  99. package/src/gantt/base/task-processor.js +13 -13
  100. package/src/gantt/base/tree-grid.js +3 -1
  101. package/src/gantt/export/pdf-base/treegrid-layouter.js +13 -13
  102. package/src/gantt/export/pdf-connector-line.js +11 -11
  103. package/src/gantt/export/pdf-gantt.js +24 -24
  104. package/src/gantt/export/pdf-taskbar.js +11 -11
  105. package/src/gantt/export/pdf-treegrid.js +13 -13
  106. package/src/gantt/models/add-dialog-field-settings-model.d.ts +21 -21
  107. package/src/gantt/models/add-dialog-field-settings.js +19 -19
  108. package/src/gantt/models/day-working-time-model.d.ts +11 -11
  109. package/src/gantt/models/day-working-time.js +19 -19
  110. package/src/gantt/models/edit-dialog-field-settings-model.d.ts +21 -21
  111. package/src/gantt/models/edit-dialog-field-settings.js +19 -19
  112. package/src/gantt/models/edit-settings-model.d.ts +50 -50
  113. package/src/gantt/models/edit-settings.js +19 -19
  114. package/src/gantt/models/event-marker-model.d.ts +16 -16
  115. package/src/gantt/models/event-marker.js +19 -19
  116. package/src/gantt/models/filter-settings-model.d.ts +34 -34
  117. package/src/gantt/models/filter-settings.js +19 -19
  118. package/src/gantt/models/holiday-model.d.ts +21 -21
  119. package/src/gantt/models/holiday.js +19 -19
  120. package/src/gantt/models/label-settings-model.d.ts +16 -16
  121. package/src/gantt/models/label-settings.js +19 -19
  122. package/src/gantt/models/resource-fields-model.d.ts +21 -21
  123. package/src/gantt/models/resource-fields.js +19 -19
  124. package/src/gantt/models/search-settings-model.d.ts +56 -56
  125. package/src/gantt/models/search-settings.js +19 -19
  126. package/src/gantt/models/selection-settings-model.d.ts +35 -35
  127. package/src/gantt/models/selection-settings.js +19 -19
  128. package/src/gantt/models/sort-settings-model.d.ts +24 -24
  129. package/src/gantt/models/sort-settings.js +19 -19
  130. package/src/gantt/models/splitter-settings-model.d.ts +30 -30
  131. package/src/gantt/models/splitter-settings.js +19 -19
  132. package/src/gantt/models/task-fields-model.d.ts +110 -110
  133. package/src/gantt/models/task-fields.js +19 -19
  134. package/src/gantt/models/timeline-settings-model.d.ts +71 -71
  135. package/src/gantt/models/timeline-settings.js +19 -19
  136. package/src/gantt/models/tooltip-settings-model.d.ts +26 -26
  137. package/src/gantt/models/tooltip-settings.js +19 -19
  138. package/src/gantt/renderer/chart-rows.js +49 -37
  139. package/src/gantt/renderer/connector-line.js +22 -18
  140. package/src/gantt/renderer/event-marker.js +1 -0
  141. package/src/gantt/renderer/nonworking-day.js +13 -6
  142. package/src/gantt/renderer/timeline.d.ts +1 -0
  143. package/src/gantt/renderer/timeline.js +48 -12
  144. package/src/gantt/renderer/tooltip.js +11 -3
  145. package/styles/bootstrap-dark.css +442 -427
  146. package/styles/bootstrap.css +442 -433
  147. package/styles/bootstrap4.css +454 -479
  148. package/styles/bootstrap5-dark.css +457 -433
  149. package/styles/bootstrap5.css +457 -433
  150. package/styles/fabric-dark.css +438 -421
  151. package/styles/fabric.css +445 -428
  152. package/styles/fluent-dark.css +1938 -0
  153. package/styles/fluent-dark.scss +1 -0
  154. package/styles/fluent.css +1938 -0
  155. package/styles/fluent.scss +1 -0
  156. package/styles/gantt/_all.scss +2 -2
  157. package/styles/gantt/_bootstrap-dark-definition.scss +210 -156
  158. package/styles/gantt/_bootstrap-definition.scss +211 -157
  159. package/styles/gantt/_bootstrap4-definition.scss +213 -158
  160. package/styles/gantt/_bootstrap5-definition.scss +215 -162
  161. package/styles/gantt/_fabric-dark-definition.scss +211 -157
  162. package/styles/gantt/_fabric-definition.scss +211 -157
  163. package/styles/gantt/_fluent-dark-definition.scss +1 -0
  164. package/styles/gantt/_fluent-definition.scss +215 -162
  165. package/styles/gantt/_fusionnew-definition.scss +214 -0
  166. package/styles/gantt/_highcontrast-definition.scss +211 -157
  167. package/styles/gantt/_highcontrast-light-definition.scss +211 -157
  168. package/styles/gantt/_layout.scss +1446 -1027
  169. package/styles/gantt/_material-dark-definition.scss +212 -157
  170. package/styles/gantt/_material-definition.scss +212 -157
  171. package/styles/gantt/_material3-definition.scss +215 -0
  172. package/styles/gantt/_tailwind-definition.scss +215 -161
  173. package/styles/gantt/_theme.scss +702 -668
  174. package/styles/gantt/bootstrap-dark.css +442 -427
  175. package/styles/gantt/bootstrap.css +442 -433
  176. package/styles/gantt/bootstrap4.css +454 -479
  177. package/styles/gantt/bootstrap5-dark.css +457 -433
  178. package/styles/gantt/bootstrap5.css +457 -433
  179. package/styles/gantt/fabric-dark.css +438 -421
  180. package/styles/gantt/fabric.css +445 -428
  181. package/styles/gantt/fluent-dark.css +1938 -0
  182. package/styles/gantt/fluent-dark.scss +22 -0
  183. package/styles/gantt/fluent.css +1938 -0
  184. package/styles/gantt/fluent.scss +22 -0
  185. package/styles/gantt/highcontrast-light.css +405 -405
  186. package/styles/gantt/highcontrast.css +444 -456
  187. package/styles/gantt/icons/_bootstrap-dark.scss +124 -113
  188. package/styles/gantt/icons/_bootstrap.scss +124 -113
  189. package/styles/gantt/icons/_bootstrap4.scss +124 -113
  190. package/styles/gantt/icons/_bootstrap5.scss +124 -112
  191. package/styles/gantt/icons/_fabric-dark.scss +124 -112
  192. package/styles/gantt/icons/_fabric.scss +124 -112
  193. package/styles/gantt/icons/_fluent-dark.scss +1 -0
  194. package/styles/gantt/icons/_fluent.scss +124 -112
  195. package/styles/gantt/icons/_fusionnew.scss +120 -0
  196. package/styles/gantt/icons/_highcontrast.scss +124 -112
  197. package/styles/gantt/icons/_material-dark.scss +124 -112
  198. package/styles/gantt/icons/_material.scss +124 -112
  199. package/styles/gantt/icons/_material3.scss +124 -0
  200. package/styles/gantt/icons/_tailwind-dark.scss +124 -113
  201. package/styles/gantt/icons/_tailwind.scss +124 -113
  202. package/styles/gantt/material-dark.css +446 -417
  203. package/styles/gantt/material.css +445 -419
  204. package/styles/gantt/tailwind-dark.css +452 -482
  205. package/styles/gantt/tailwind.css +449 -479
  206. package/styles/highcontrast-light.css +405 -405
  207. package/styles/highcontrast.css +444 -456
  208. package/styles/material-dark.css +446 -417
  209. package/styles/material.css +445 -419
  210. package/styles/tailwind-dark.css +452 -482
  211. package/styles/tailwind.css +449 -479
@@ -0,0 +1,34 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+ /**
3
+ * Defines holidays of project.
4
+ */
5
+ export class Holiday extends ChildProperty<Holiday> {
6
+ /**
7
+ * Defines start date of holiday.
8
+ *
9
+ * @default null
10
+ */
11
+ @Property(null)
12
+ public from: Date | string;
13
+ /**
14
+ * Defines end date of holiday.
15
+ *
16
+ * @default null
17
+ */
18
+ @Property(null)
19
+ public to: Date | string;
20
+ /**
21
+ * Defines label of holiday.
22
+ *
23
+ * @default null
24
+ */
25
+ @Property(null)
26
+ public label: string;
27
+ /**
28
+ * Defines custom css class of holiday to customize background and label.
29
+ *
30
+ * @default null
31
+ */
32
+ @Property(null)
33
+ public cssClass: string;
34
+ }
@@ -0,0 +1,30 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+
3
+ /**
4
+ * Defines labels for task, this will be placed right, left and inner side of taskbar.
5
+ */
6
+ export class LabelSettings extends ChildProperty<LabelSettings> {
7
+ /**
8
+ * Defines right side label of task.
9
+ *
10
+ * @default null
11
+ */
12
+ @Property(null)
13
+ public rightLabel: string;
14
+
15
+ /**
16
+ * Defines left side label of task.
17
+ *
18
+ * @default null
19
+ */
20
+ @Property(null)
21
+ public leftLabel: string;
22
+
23
+ /**
24
+ * Defines label which is placed inside the taskbar.
25
+ *
26
+ * @default null
27
+ */
28
+ @Property(null)
29
+ public taskLabel: string;
30
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Export all generated models for complex settings
3
+ */
4
+ export * from './column';
5
+ export * from './day-working-time';
6
+ export * from './day-working-time-model';
7
+ export * from './add-dialog-field-settings';
8
+ export * from './add-dialog-field-settings-model';
9
+ export * from './edit-dialog-field-settings';
10
+ export * from './edit-dialog-field-settings-model';
11
+ export * from './edit-settings';
12
+ export * from './edit-settings-model';
13
+ export * from './event-marker';
14
+ export * from './event-marker-model';
15
+ export * from './filter-settings';
16
+ export * from './filter-settings-model';
17
+ export * from './search-settings';
18
+ export * from './search-settings-model';
19
+ export * from './holiday';
20
+ export * from './holiday-model';
21
+ export * from './label-settings';
22
+ export * from './label-settings-model';
23
+ export * from './selection-settings';
24
+ export * from './selection-settings-model';
25
+ export * from './splitter-settings';
26
+ export * from './splitter-settings-model';
27
+ export * from './task-fields';
28
+ export * from './task-fields-model';
29
+ export * from './timeline-settings';
30
+ export * from './timeline-settings-model';
31
+ export * from './tooltip-settings';
32
+ export * from './tooltip-settings-model';
33
+ export * from './sort-settings';
34
+ export * from './sort-settings-model';
35
+ export * from './resource-fields';
36
+ export * from './resource-fields-model';
@@ -0,0 +1,38 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+
3
+ /**
4
+ * Defines mapping property to get resource details from resource collection.
5
+ */
6
+ export class ResourceFields extends ChildProperty<ResourceFields> {
7
+ /**
8
+ * To map id of resource from resource collection.
9
+ *
10
+ * @default null
11
+ */
12
+ @Property(null)
13
+ public id: string;
14
+
15
+ /**
16
+ * To map name of resource from resource collection.
17
+ *
18
+ * @default null
19
+ */
20
+ @Property(null)
21
+ public name: string;
22
+
23
+ /**
24
+ * To map unit of resource from resource collection.
25
+ *
26
+ * @default null
27
+ */
28
+ @Property(null)
29
+ public unit: string;
30
+
31
+ /**
32
+ * To map group of resource from resource collection.
33
+ *
34
+ * @default null
35
+ */
36
+ @Property(null)
37
+ public group: string;
38
+ }
@@ -0,0 +1,77 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+ import { SearchHierarchyMode } from '../base/enum';
3
+ /**
4
+ * Configures the searching behavior of the Gantt.
5
+ */
6
+ export class SearchSettings extends ChildProperty<SearchSettings> {
7
+ /**
8
+ * Specifies the columns to be searched at initial rendering of the Gantt.
9
+ * You can also get the columns that were currently filtered.
10
+ *
11
+ * @default []
12
+ */
13
+ @Property([])
14
+ public fields: string[];
15
+
16
+ /**
17
+ * If ignoreCase set to true, then search ignores the diacritic characters or accents while filtering.
18
+ *
19
+ * @default false
20
+ */
21
+ @Property(false)
22
+ public ignoreCase: boolean;
23
+
24
+
25
+ /**
26
+ * Defines the operator to search records. The available operators are:
27
+ * <table>
28
+ * <tr>
29
+ * <td colspan=1 rowspan=1>
30
+ * Operator<br/></td><td colspan=1 rowspan=1>
31
+ * Description<br/></td></tr>
32
+ * <tr>
33
+ * <td colspan=1 rowspan=1>
34
+ * startswith<br/></td><td colspan=1 rowspan=1>
35
+ * Checks whether the string begins with the specified string.<br/></td></tr>
36
+ * <tr>
37
+ * <td colspan=1 rowspan=1>
38
+ * endswith<br/></td><td colspan=1 rowspan=1>
39
+ * Checks whether the string ends with the specified string.<br/></td></tr>
40
+ * <tr>
41
+ * <td colspan=1 rowspan=1>
42
+ * contains<br/></td><td colspan=1 rowspan=1>
43
+ * Checks whether the string contains the specified string. <br/></td></tr>
44
+ * <tr>
45
+ * <td colspan=1 rowspan=1>
46
+ * equal<br/></td><td colspan=1 rowspan=1>
47
+ * Checks whether the string is equal to the specified string.<br/></td></tr>
48
+ * <tr>
49
+ * <td colspan=1 rowspan=1>
50
+ * notequal<br/></td><td colspan=1 rowspan=1>
51
+ * Checks for strings not equal to the specified string. <br/></td></tr>
52
+ * </table>
53
+ *
54
+ * @default 'contains'
55
+ */
56
+ @Property('contains')
57
+ public operator: string;
58
+
59
+ /**
60
+ * A key word for searching the Gantt content.
61
+ */
62
+ @Property('')
63
+ public key: string;
64
+
65
+ /**
66
+ * Defines the search types. The available options are,
67
+ * `Parent`: Shows the searched record with parent record.
68
+ * `Child`: Shows the searched record with child record.
69
+ * `Both` : shows the searched record with both parent and child record.
70
+ * `None` : Shows only searched record.
71
+ *
72
+ * @default Parent
73
+ * @isEnumeration true
74
+ */
75
+ @Property('Parent')
76
+ public hierarchyMode: SearchHierarchyMode;
77
+ }
@@ -0,0 +1,56 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+ import { SelectionMode, CellSelectionMode, SelectionType } from '@syncfusion/ej2-grids';
3
+
4
+ /**
5
+ * Configures the selection behavior of the Gantt.
6
+ */
7
+ export class SelectionSettings extends ChildProperty<SelectionSettings> {
8
+ /**
9
+ * Gantt supports row, cell, and both (row and cell) selection mode.
10
+ *
11
+ * @default Syncfusion.EJ2.Grids.SelectionMode.Row
12
+ * @isEnumeration true
13
+ * @aspType Syncfusion.EJ2.Grids.SelectionMode
14
+ */
15
+ @Property('Row')
16
+ public mode: SelectionMode;
17
+
18
+ /**
19
+ * To define selection mode of cell.
20
+ *
21
+ * @default Syncfusion.EJ2.Grids.CellSelectionMode.Flow
22
+ * @isEnumeration true
23
+ * @aspType Syncfusion.EJ2.Grids.CellSelectionMode
24
+ */
25
+ @Property('Flow')
26
+ public cellSelectionMode: CellSelectionMode;
27
+
28
+ /**
29
+ * Defines options for selection type. They are
30
+ * * `Single`: Allows selection of only a row or a cell.
31
+ * * `Multiple`: Allows selection of multiple rows or cells.
32
+ *
33
+ * @default Syncfusion.EJ2.Grids.SelectionType.Single
34
+ * @aspDefaultValueIgnore
35
+ * @isEnumeration true
36
+ * @aspType Syncfusion.EJ2.Grids.SelectionType
37
+ */
38
+ @Property('Single')
39
+ public type: SelectionType;
40
+
41
+ /**
42
+ * If 'persistSelection' set to true, then the Gantt selection is persisted on all operations.
43
+ *
44
+ * @default false
45
+ */
46
+ @Property(false)
47
+ public persistSelection: boolean;
48
+
49
+ /**
50
+ * If 'enableToggle' set to true, then the user can able to perform toggle for the selected row.
51
+ *
52
+ * @default false
53
+ */
54
+ @Property(false)
55
+ public enableToggle: boolean;
56
+ }
@@ -0,0 +1,50 @@
1
+ import { ChildProperty, Property, Collection } from '@syncfusion/ej2-base';
2
+ import { SortDescriptorModel } from './sort-settings-model';
3
+ import { SortDirection } from '../base/enum';
4
+
5
+ /**
6
+ * Represents the field name and direction of sort column.
7
+ */
8
+ export class SortDescriptor extends ChildProperty<SortDescriptor> {
9
+ /**
10
+ * Defines the field name of sort column.
11
+ *
12
+ * @default ''
13
+ */
14
+ @Property()
15
+ public field: string;
16
+
17
+ /**
18
+ * Defines the direction of sort column.
19
+ *
20
+ * @default null
21
+ * @isEnumeration true
22
+ *
23
+ */
24
+ @Property()
25
+ public direction: SortDirection;
26
+
27
+ }
28
+
29
+ /**
30
+ * Configures the sorting behavior of Gantt.
31
+ */
32
+ export class SortSettings extends ChildProperty<SortSettings> {
33
+ /**
34
+ * Specifies the columns to sort at initial rendering of Gantt.
35
+ * Also user can get current sorted columns.
36
+ *
37
+ * @default []
38
+ */
39
+ @Collection<SortDescriptorModel>([], SortDescriptor)
40
+ public columns: SortDescriptorModel[];
41
+
42
+ /**
43
+ * If `allowUnsort` set to false the user can not get the Tree grid in unsorted state by clicking the sorted column header.
44
+ *
45
+ * @default true
46
+ */
47
+ @Property(true)
48
+ public allowUnsort: boolean;
49
+ }
50
+
@@ -0,0 +1,47 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+ import { SplitterView } from '../base/enum';
3
+
4
+ /**
5
+ * Configures splitter position and splitter bar.
6
+ */
7
+ export class SplitterSettings extends ChildProperty<SplitterSettings> {
8
+ /**
9
+ * Defines splitter position at initial load, it accepts values in pixels.
10
+ *
11
+ * @default null
12
+ */
13
+ @Property(null)
14
+ public position: string;
15
+ /**
16
+ * Defines splitter position with respect to column index value.
17
+ * If `columnIndex` set as `2` then splitter bar placed at third column of grid.
18
+ *
19
+ * @default -1
20
+ */
21
+ @Property(-1)
22
+ public columnIndex: number;
23
+ /**
24
+ * Defines splitter bar size
25
+ *
26
+ * @default 4
27
+ */
28
+ @Property(4)
29
+ public separatorSize: number;
30
+ /**
31
+ * Defines minimum width of Grid part, splitter can't be moved less than this value on grid side.
32
+ *
33
+ * @default null
34
+ */
35
+ @Property(null)
36
+ public minimum: string;
37
+ /**
38
+ * Defines predefined view of Gantt.
39
+ * * `Default` - Shows grid side and side of Gantt.
40
+ * * `Grid` - Shows grid side alone in Gantt.
41
+ * * `Chart` - Shows chart side alone in Gantt.
42
+ *
43
+ * @default Default
44
+ */
45
+ @Property('Default')
46
+ public view: SplitterView;
47
+ }
@@ -0,0 +1,171 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+
3
+ /**
4
+ * Defines mapping property to get task details from data source.
5
+ */
6
+ export class TaskFields extends ChildProperty<TaskFields> {
7
+ /**
8
+ * To map id of task from data source.
9
+ *
10
+ * @default null
11
+ */
12
+ @Property(null)
13
+ public id: string;
14
+
15
+ /**
16
+ * To map name of task from data source.
17
+ *
18
+ * @default null
19
+ */
20
+ @Property(null)
21
+ public name: string;
22
+
23
+ /**
24
+ * To map parent id of task from data source.
25
+ *
26
+ * @default null
27
+ */
28
+ @Property(null)
29
+ public parentID: string;
30
+
31
+ /**
32
+ * To map start date of task from data source.
33
+ *
34
+ * @default null
35
+ */
36
+ @Property(null)
37
+ public startDate: string;
38
+ /**
39
+ * To map end date of task from data source.
40
+ *
41
+ * @default null
42
+ */
43
+ @Property(null)
44
+ public endDate: string;
45
+
46
+ /**
47
+ * To map dependency of task from data source.
48
+ *
49
+ * @default null
50
+ */
51
+ @Property(null)
52
+ public dependency: string;
53
+
54
+ /**
55
+ * To map progress of task from data source.
56
+ *
57
+ * @default null
58
+ */
59
+ @Property(null)
60
+ public progress: string;
61
+
62
+ /**
63
+ * To map child of task from data source.
64
+ *
65
+ * @default null
66
+ */
67
+ @Property(null)
68
+ public child: string;
69
+
70
+ /**
71
+ * To map milestone of task from data source.
72
+ *
73
+ * @default null
74
+ */
75
+ @Property(null)
76
+ public milestone: string;
77
+
78
+ /**
79
+ * To map duration of task from data source.
80
+ *
81
+ * @default null
82
+ */
83
+ @Property(null)
84
+ public duration: string;
85
+
86
+ /**
87
+ * To map duration unit of task from data source.
88
+ *
89
+ */
90
+ @Property(null)
91
+ public durationUnit: string;
92
+ /**
93
+ * To map custom css class of task from data source.
94
+ *
95
+ */
96
+ @Property(null)
97
+ public cssClass: string;
98
+ /**
99
+ * To map baseline start date of task from data source.
100
+ *
101
+ */
102
+ @Property(null)
103
+ public baselineStartDate: string;
104
+ /**
105
+ * To map baseline end date of task from data source.
106
+ *
107
+ */
108
+ @Property(null)
109
+ public baselineEndDate: string;
110
+ /**
111
+ * To map assigned resources of task from data source.
112
+ *
113
+ */
114
+ @Property(null)
115
+ public resourceInfo: string;
116
+ /**
117
+ * To map expand status of parent record from data source.
118
+ *
119
+ */
120
+ @Property(null)
121
+ public expandState: string;
122
+ /**
123
+ * To map indicators of task from data source.
124
+ *
125
+ * @default null
126
+ */
127
+ @Property(null)
128
+ public indicators: string;
129
+ /**
130
+ * To map notes value of task from data source.
131
+ *
132
+ * @default null
133
+ */
134
+ @Property(null)
135
+ public notes: string;
136
+ /**
137
+ * To map work of task from data source.
138
+ *
139
+ * @default null
140
+ */
141
+ @Property(null)
142
+ public work: string;
143
+ /**
144
+ * To map schedule mode of task from data source.
145
+ *
146
+ * @default null
147
+ */
148
+ @Property(null)
149
+ public manual: string;
150
+ /**
151
+ * To map taskType value of task from data source
152
+ *
153
+ * @default null
154
+ */
155
+ @Property(null)
156
+ public type: string;
157
+ /**
158
+ * To map segments details of a task from data source
159
+ *
160
+ * @default null
161
+ */
162
+ @Property(null)
163
+ public segments: string;
164
+ /**
165
+ * To map segment id details of a task from data source
166
+ *
167
+ * @default null
168
+ */
169
+ @Property(null)
170
+ public segmentId: string;
171
+ }
@@ -0,0 +1,112 @@
1
+ import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
2
+ import { TimelineViewMode } from '../base/enum';
3
+ import { TimelineTierSettingsModel } from './timeline-settings-model';
4
+ import { ITimelineFormatter } from '../base/interface';
5
+
6
+ /**
7
+ * Configures timeline settings of Gantt.
8
+ */
9
+ export class TimelineTierSettings extends ChildProperty<TimelineTierSettings> {
10
+ /**
11
+ * Defines timeline cell format.
12
+ *
13
+ * @default ''
14
+ */
15
+ @Property('')
16
+ public format: string;
17
+
18
+ /**
19
+ * Defines timeline mode of Gantt header.
20
+ * * `None` - Default.
21
+ * * `Week` - Define the week mode header.
22
+ * * `Day` - Define the day mode header.
23
+ * * `Hour` - Define the hour mode header.
24
+ * * `Month` - Define the month mode header.
25
+ * * `Year` - Define the year mode header.
26
+ * * `Minutes` - Define the minutes mode header.
27
+ *
28
+ * @default 'None'
29
+ */
30
+ @Property('None')
31
+ public unit: TimelineViewMode;
32
+
33
+ /**
34
+ * Defines number of timeline units combined for single cell.
35
+ *
36
+ * @default 1
37
+ */
38
+ @Property(1)
39
+ public count: number;
40
+
41
+ /**
42
+ * Defines method to get custom formatted values of timeline cells.
43
+ *
44
+ * @default null
45
+ */
46
+ @Property(null)
47
+ public formatter: string | ITimelineFormatter;
48
+ }
49
+ /**
50
+ * Configures the timeline settings property in the Gantt.
51
+ */
52
+ export class TimelineSettings extends ChildProperty<TimelineSettings> {
53
+ /**
54
+ * Defines timeline mode of Gantt header.
55
+ * * `None` - Default.
56
+ * * `Week` - Define the week mode header.
57
+ * * `Day` - Define the day mode header.
58
+ * * `Hour` - Define the hour mode header.
59
+ * * `Month` - Define the month mode header.
60
+ * * `Year` - Define the year mode header.
61
+ * * `Minutes` - Define the minutes mode header.
62
+ *
63
+ * @default 'None'
64
+ */
65
+ @Property('Week')
66
+ public timelineViewMode: TimelineViewMode;
67
+ /**
68
+ * Defines top tier setting in timeline.
69
+ */
70
+ @Complex<TimelineTierSettingsModel>({}, TimelineTierSettings)
71
+ public topTier: TimelineTierSettingsModel;
72
+ /**
73
+ * Defines bottom tier settings in timeline.
74
+ */
75
+ @Complex<TimelineTierSettingsModel>({}, TimelineTierSettings)
76
+ public bottomTier: TimelineTierSettingsModel;
77
+ /**
78
+ * Defines width of timeline cell.
79
+ *
80
+ * @default 33
81
+ */
82
+ @Property(33)
83
+ public timelineUnitSize: number;
84
+ /**
85
+ * Defines week start day in timeline.
86
+ *
87
+ * @default 0
88
+ */
89
+ @Property(0)
90
+ public weekStartDay: number;
91
+ /**
92
+ * Defines background color of weekend cell in week - day timeline mode.
93
+ *
94
+ * @default null
95
+ */
96
+ @Property(null)
97
+ public weekendBackground: string;
98
+ /**
99
+ * Enables or disables tooltip for timeline cells.
100
+ *
101
+ * @default true
102
+ */
103
+ @Property(true)
104
+ public showTooltip: boolean;
105
+ /**
106
+ * Enables or disables timeline auto update on editing action.
107
+ *
108
+ * @default true
109
+ */
110
+ @Property(true)
111
+ public updateTimescaleView: boolean;
112
+ }
@@ -0,0 +1,46 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+
3
+ /**
4
+ * Configures tooltip settings for Gantt.
5
+ */
6
+ export class TooltipSettings extends ChildProperty<TooltipSettings> {
7
+ /**
8
+ * Enables or disables tooltip of Gantt element.
9
+ *
10
+ * @default true
11
+ */
12
+ @Property(true)
13
+ public showTooltip: boolean;
14
+
15
+ /**
16
+ * Defines tooltip template for taskbar elements.
17
+ *
18
+ * @default null
19
+ */
20
+ @Property()
21
+ public taskbar: string;
22
+
23
+ /**
24
+ * Defines template for baseline tooltip element.
25
+ *
26
+ * @default null
27
+ */
28
+ @Property()
29
+ public baseline: string;
30
+
31
+ /**
32
+ * Defines template for dependency line tooltip.
33
+ *
34
+ * @default null
35
+ */
36
+ @Property()
37
+ public connectorLine: string;
38
+
39
+ /**
40
+ * Defines tooltip template for taskbar editing action.
41
+ *
42
+ * @default null
43
+ */
44
+ @Property()
45
+ public editing: string;
46
+ }