@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.
Files changed (212) hide show
  1. package/CHANGELOG.md +1072 -1047
  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 +341 -240
  6. package/dist/es6/ej2-gantt.es2015.js.map +1 -1
  7. package/dist/es6/ej2-gantt.es5.js +713 -598
  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 +36 -9
  91. package/src/gantt/actions/rowdragdrop.js +37 -15
  92. package/src/gantt/actions/selection.js +3 -2
  93. package/src/gantt/actions/taskbar-edit.js +24 -24
  94. package/src/gantt/base/date-processor.js +0 -1
  95. package/src/gantt/base/gantt-chart.js +36 -5
  96. package/src/gantt/base/gantt-model.d.ts +779 -779
  97. package/src/gantt/base/gantt.d.ts +27 -27
  98. package/src/gantt/base/gantt.js +35 -76
  99. package/src/gantt/base/splitter.js +1 -0
  100. package/src/gantt/base/task-processor.js +13 -13
  101. package/src/gantt/base/tree-grid.js +3 -1
  102. package/src/gantt/export/pdf-base/treegrid-layouter.js +13 -13
  103. package/src/gantt/export/pdf-connector-line.js +11 -11
  104. package/src/gantt/export/pdf-gantt.js +24 -24
  105. package/src/gantt/export/pdf-taskbar.js +11 -11
  106. package/src/gantt/export/pdf-treegrid.js +13 -13
  107. package/src/gantt/models/add-dialog-field-settings-model.d.ts +21 -21
  108. package/src/gantt/models/add-dialog-field-settings.js +19 -19
  109. package/src/gantt/models/day-working-time-model.d.ts +11 -11
  110. package/src/gantt/models/day-working-time.js +19 -19
  111. package/src/gantt/models/edit-dialog-field-settings-model.d.ts +21 -21
  112. package/src/gantt/models/edit-dialog-field-settings.js +19 -19
  113. package/src/gantt/models/edit-settings-model.d.ts +50 -50
  114. package/src/gantt/models/edit-settings.js +19 -19
  115. package/src/gantt/models/event-marker-model.d.ts +16 -16
  116. package/src/gantt/models/event-marker.js +19 -19
  117. package/src/gantt/models/filter-settings-model.d.ts +34 -34
  118. package/src/gantt/models/filter-settings.js +19 -19
  119. package/src/gantt/models/holiday-model.d.ts +21 -21
  120. package/src/gantt/models/holiday.js +19 -19
  121. package/src/gantt/models/label-settings-model.d.ts +16 -16
  122. package/src/gantt/models/label-settings.js +19 -19
  123. package/src/gantt/models/resource-fields-model.d.ts +21 -21
  124. package/src/gantt/models/resource-fields.js +19 -19
  125. package/src/gantt/models/search-settings-model.d.ts +56 -56
  126. package/src/gantt/models/search-settings.js +19 -19
  127. package/src/gantt/models/selection-settings-model.d.ts +35 -35
  128. package/src/gantt/models/selection-settings.js +19 -19
  129. package/src/gantt/models/sort-settings-model.d.ts +24 -24
  130. package/src/gantt/models/sort-settings.js +19 -19
  131. package/src/gantt/models/splitter-settings-model.d.ts +30 -30
  132. package/src/gantt/models/splitter-settings.js +19 -19
  133. package/src/gantt/models/task-fields-model.d.ts +110 -110
  134. package/src/gantt/models/task-fields.js +19 -19
  135. package/src/gantt/models/timeline-settings-model.d.ts +71 -71
  136. package/src/gantt/models/timeline-settings.js +19 -19
  137. package/src/gantt/models/tooltip-settings-model.d.ts +26 -26
  138. package/src/gantt/models/tooltip-settings.js +19 -19
  139. package/src/gantt/renderer/chart-rows.js +49 -37
  140. package/src/gantt/renderer/connector-line.js +22 -18
  141. package/src/gantt/renderer/event-marker.js +1 -0
  142. package/src/gantt/renderer/nonworking-day.js +13 -6
  143. package/src/gantt/renderer/timeline.d.ts +1 -0
  144. package/src/gantt/renderer/timeline.js +51 -12
  145. package/src/gantt/renderer/tooltip.js +11 -3
  146. package/styles/bootstrap-dark.css +442 -427
  147. package/styles/bootstrap.css +442 -433
  148. package/styles/bootstrap4.css +454 -479
  149. package/styles/bootstrap5-dark.css +457 -433
  150. package/styles/bootstrap5.css +457 -433
  151. package/styles/fabric-dark.css +438 -421
  152. package/styles/fabric.css +445 -428
  153. package/styles/fluent-dark.css +1938 -0
  154. package/styles/fluent-dark.scss +1 -0
  155. package/styles/fluent.css +1938 -0
  156. package/styles/fluent.scss +1 -0
  157. package/styles/gantt/_all.scss +2 -2
  158. package/styles/gantt/_bootstrap-dark-definition.scss +210 -156
  159. package/styles/gantt/_bootstrap-definition.scss +211 -157
  160. package/styles/gantt/_bootstrap4-definition.scss +213 -158
  161. package/styles/gantt/_bootstrap5-definition.scss +215 -162
  162. package/styles/gantt/_fabric-dark-definition.scss +211 -157
  163. package/styles/gantt/_fabric-definition.scss +211 -157
  164. package/styles/gantt/_fluent-dark-definition.scss +1 -0
  165. package/styles/gantt/_fluent-definition.scss +215 -162
  166. package/styles/gantt/_fusionnew-definition.scss +214 -0
  167. package/styles/gantt/_highcontrast-definition.scss +211 -157
  168. package/styles/gantt/_highcontrast-light-definition.scss +211 -157
  169. package/styles/gantt/_layout.scss +1446 -1027
  170. package/styles/gantt/_material-dark-definition.scss +212 -157
  171. package/styles/gantt/_material-definition.scss +212 -157
  172. package/styles/gantt/_material3-definition.scss +215 -0
  173. package/styles/gantt/_tailwind-definition.scss +215 -161
  174. package/styles/gantt/_theme.scss +702 -668
  175. package/styles/gantt/bootstrap-dark.css +442 -427
  176. package/styles/gantt/bootstrap.css +442 -433
  177. package/styles/gantt/bootstrap4.css +454 -479
  178. package/styles/gantt/bootstrap5-dark.css +457 -433
  179. package/styles/gantt/bootstrap5.css +457 -433
  180. package/styles/gantt/fabric-dark.css +438 -421
  181. package/styles/gantt/fabric.css +445 -428
  182. package/styles/gantt/fluent-dark.css +1938 -0
  183. package/styles/gantt/fluent-dark.scss +22 -0
  184. package/styles/gantt/fluent.css +1938 -0
  185. package/styles/gantt/fluent.scss +22 -0
  186. package/styles/gantt/highcontrast-light.css +405 -405
  187. package/styles/gantt/highcontrast.css +444 -456
  188. package/styles/gantt/icons/_bootstrap-dark.scss +124 -113
  189. package/styles/gantt/icons/_bootstrap.scss +124 -113
  190. package/styles/gantt/icons/_bootstrap4.scss +124 -113
  191. package/styles/gantt/icons/_bootstrap5.scss +124 -112
  192. package/styles/gantt/icons/_fabric-dark.scss +124 -112
  193. package/styles/gantt/icons/_fabric.scss +124 -112
  194. package/styles/gantt/icons/_fluent-dark.scss +1 -0
  195. package/styles/gantt/icons/_fluent.scss +124 -112
  196. package/styles/gantt/icons/_fusionnew.scss +120 -0
  197. package/styles/gantt/icons/_highcontrast.scss +124 -112
  198. package/styles/gantt/icons/_material-dark.scss +124 -112
  199. package/styles/gantt/icons/_material.scss +124 -112
  200. package/styles/gantt/icons/_material3.scss +124 -0
  201. package/styles/gantt/icons/_tailwind-dark.scss +124 -113
  202. package/styles/gantt/icons/_tailwind.scss +124 -113
  203. package/styles/gantt/material-dark.css +446 -417
  204. package/styles/gantt/material.css +445 -419
  205. package/styles/gantt/tailwind-dark.css +452 -482
  206. package/styles/gantt/tailwind.css +449 -479
  207. package/styles/highcontrast-light.css +405 -405
  208. package/styles/highcontrast.css +444 -456
  209. package/styles/material-dark.css +446 -417
  210. package/styles/material.css +445 -419
  211. package/styles/tailwind-dark.css +452 -482
  212. package/styles/tailwind.css +449 -479
@@ -503,7 +503,7 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
503
503
  * To show notes column cell values inside the cell or in tooltip.
504
504
  *
505
505
  * @default false
506
-
506
+ * @deprecated
507
507
  */
508
508
  showInlineNotes: boolean;
509
509
  /**
@@ -822,14 +822,14 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
822
822
  /**
823
823
  * Triggers before Gantt data is exported to Excel file.
824
824
  *
825
-
825
+ * @deprecated
826
826
  * @event beforeExcelExport
827
827
  */
828
828
  beforeExcelExport: EmitType<Object>;
829
829
  /**
830
830
  * Triggers after Gantt data is exported to Excel file.
831
831
  *
832
-
832
+ * @deprecated
833
833
  * @event excelExportComplete
834
834
  */
835
835
  excelExportComplete: EmitType<ExcelExportCompleteArgs>;
@@ -837,7 +837,7 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
837
837
  * Triggers before exporting each cell to Excel file.
838
838
  * You can also customize the Excel cells.
839
839
  *
840
-
840
+ * @deprecated
841
841
  * @event excelQueryCellInfo
842
842
  */
843
843
  excelQueryCellInfo: EmitType<ExcelQueryCellInfoEventArgs>;
@@ -845,7 +845,7 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
845
845
  * Triggers before exporting each header cell to Excel file.
846
846
  * You can also customize the Excel cells.
847
847
  *
848
-
848
+ * @deprecated
849
849
  * @event excelHeaderQueryCellInfo
850
850
  */
851
851
  excelHeaderQueryCellInfo: EmitType<ExcelHeaderQueryCellInfoEventArgs>;
@@ -853,14 +853,14 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
853
853
  * Triggers when row elements are dragged (moved) continuously.
854
854
  *
855
855
  * @event rowDrag
856
-
856
+ * @deprecated
857
857
  */
858
858
  rowDrag: EmitType<RowDragEventArgs>;
859
859
  /**
860
860
  * Triggers when row element’s drag(move) starts.
861
861
  *
862
862
  * @event rowDragStart
863
-
863
+ * @deprecated
864
864
  */
865
865
  rowDragStart: EmitType<RowDragEventArgs>;
866
866
  /**
@@ -975,21 +975,21 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
975
975
  /**
976
976
  * Triggers when column resize starts.
977
977
  *
978
-
978
+ * @deprecated
979
979
  * @event resizeStart
980
980
  */
981
981
  resizeStart: EmitType<ResizeArgs>;
982
982
  /**
983
983
  * Triggers on column resizing.
984
984
  *
985
-
985
+ * @deprecated
986
986
  * @event resizing
987
987
  */
988
988
  resizing: EmitType<ResizeArgs>;
989
989
  /**
990
990
  * Triggers when column resize ends.
991
991
  *
992
-
992
+ * @deprecated
993
993
  * @event resizeStop
994
994
  */
995
995
  resizeStop: EmitType<ResizeArgs>;
@@ -1014,21 +1014,21 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
1014
1014
  /**
1015
1015
  * Triggers when column header element drag (move) starts.
1016
1016
  *
1017
-
1017
+ * @deprecated
1018
1018
  * @event columnDragStart
1019
1019
  */
1020
1020
  columnDragStart: EmitType<ColumnDragEventArgs>;
1021
1021
  /**
1022
1022
  * Triggers when column header element is dragged (moved) continuously.
1023
1023
  *
1024
-
1024
+ * @deprecated
1025
1025
  * @event columnDrag
1026
1026
  */
1027
1027
  columnDrag: EmitType<ColumnDragEventArgs>;
1028
1028
  /**
1029
1029
  * Triggers when a column header element is dropped on the target column.
1030
1030
  *
1031
-
1031
+ * @deprecated
1032
1032
  * @event columnDrop
1033
1033
  */
1034
1034
  columnDrop: EmitType<ColumnDragEventArgs>;
@@ -1053,7 +1053,7 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
1053
1053
  /**
1054
1054
  * Triggers before deselecting the selected row.
1055
1055
  *
1056
-
1056
+ * @deprecated
1057
1057
  * @event rowDeselecting
1058
1058
  */
1059
1059
  rowDeselecting: EmitType<RowDeselectEventArgs>;
@@ -1078,14 +1078,14 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
1078
1078
  /**
1079
1079
  * Triggers before the selected cell is deselecting.
1080
1080
  *
1081
-
1081
+ * @deprecated
1082
1082
  * @event cellDeselecting
1083
1083
  */
1084
1084
  cellDeselecting: EmitType<CellDeselectEventArgs>;
1085
1085
  /**
1086
1086
  * Triggers when a particular selected cell is deselected.
1087
1087
  *
1088
-
1088
+ * @deprecated
1089
1089
  * @event cellDeselected
1090
1090
  */
1091
1091
  cellDeselected: EmitType<CellDeselectEventArgs>;
@@ -1110,7 +1110,7 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
1110
1110
  /**
1111
1111
  * Triggers before column menu opens.
1112
1112
  *
1113
-
1113
+ * @deprecated
1114
1114
  * @event columnMenuOpen
1115
1115
  */
1116
1116
  columnMenuOpen: EmitType<ColumnMenuOpenEventArgs>;
@@ -1142,21 +1142,21 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
1142
1142
  /**
1143
1143
  * This event will be triggered when click on taskbar element.
1144
1144
  *
1145
-
1145
+ * @deprecated
1146
1146
  * @event onTaskbarClick
1147
1147
  */
1148
1148
  onTaskbarClick: EmitType<ITaskbarClickEventArgs>;
1149
1149
  /**
1150
1150
  * This event will be triggered when double click on record.
1151
1151
  *
1152
-
1152
+ * @deprecated
1153
1153
  * @event recordDoubleClick
1154
1154
  */
1155
1155
  recordDoubleClick: EmitType<RecordDoubleClickEventArgs>;
1156
1156
  /**
1157
1157
  * This event will be triggered when mouse move on Gantt.
1158
1158
  *
1159
-
1159
+ * @deprecated
1160
1160
  * @event onMouseMove
1161
1161
  */
1162
1162
  onMouseMove: EmitType<IMouseMoveEventArgs>;
@@ -1164,42 +1164,42 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
1164
1164
  * Triggers before Gantt data is exported to PDF document.
1165
1165
  *
1166
1166
  * @event beforePdfExport
1167
-
1167
+ * @deprecated
1168
1168
  */
1169
1169
  beforePdfExport: EmitType<Object>;
1170
1170
  /**
1171
1171
  * Triggers after TreeGrid data is exported to PDF document.
1172
1172
  *
1173
1173
  * @event pdfExportComplete
1174
-
1174
+ * @deprecated
1175
1175
  */
1176
1176
  pdfExportComplete: EmitType<Object>;
1177
1177
  /**
1178
1178
  * Triggers before exporting each cell to PDF document. You can also customize the PDF cells.
1179
1179
  *
1180
1180
  * @event pdfQueryCellInfo
1181
-
1181
+ * @deprecated
1182
1182
  */
1183
1183
  pdfQueryCellInfo: EmitType<PdfQueryCellInfoEventArgs>;
1184
1184
  /**
1185
1185
  * Triggers before exporting each taskbar to PDF document. You can also customize the taskbar.
1186
1186
  *
1187
1187
  * @event pdfQueryTaskbarInfo
1188
-
1188
+ * @deprecated
1189
1189
  */
1190
1190
  pdfQueryTaskbarInfo: EmitType<Object>;
1191
1191
  /**
1192
1192
  * Triggers before exporting each cell to PDF document. You can also customize the PDF cells.
1193
1193
  *
1194
1194
  * @event pdfQueryTimelineCellInfo
1195
-
1195
+ * @deprecated
1196
1196
  */
1197
1197
  pdfQueryTimelineCellInfo: EmitType<PdfQueryTimelineCellInfoEventArgs>;
1198
1198
  /**
1199
1199
  * Triggers before exporting each header cell to PDF document. You can also customize the PDF cells.
1200
1200
  *
1201
1201
  * @event pdfColumnHeaderQueryCellInfo
1202
-
1202
+ * @deprecated
1203
1203
  */
1204
1204
  pdfColumnHeaderQueryCellInfo: EmitType<PdfColumnHeaderQueryCellInfoEventArgs>;
1205
1205
  /**
@@ -1337,7 +1337,7 @@ export declare class Gantt extends Component<HTMLElement> implements INotifyProp
1337
1337
  *
1338
1338
  * @param {IGanttData[]} records - Defines record collection.
1339
1339
  * @returns {IGanttData[]} .
1340
-
1340
+ * @deprecated
1341
1341
  */
1342
1342
  getExpandedRecords(records: IGanttData[]): IGanttData[];
1343
1343
  /**
@@ -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 { Component, createElement, Complex, addClass, removeClass, Event, formatUnit, Browser } from '@syncfusion/ej2-base';
21
21
  import { Internationalization, extend, getValue, isObjectArray, isObject, setValue, isUndefined } from '@syncfusion/ej2-base';
22
22
  import { Property, NotifyPropertyChanges, L10n, EventHandler } from '@syncfusion/ej2-base';
@@ -290,25 +290,7 @@ var Gantt = /** @class */ (function (_super) {
290
290
  * @returns {void} .
291
291
  */
292
292
  Gantt.prototype.calculateDimensions = function () {
293
- var settingsHeight;
294
- if (typeof (this.height) !== 'number' && this.height.indexOf('%') !== -1 && (this.element.parentElement &&
295
- !this.element.parentElement.style.height || this.element.parentElement.style.height.indexOf('%') !== -1)) {
296
- var ganttHeight = void 0;
297
- if (this.element.parentElement.style.height.indexOf('%') == -1) {
298
- ganttHeight = Number(this.height.split("%")[0]);
299
- }
300
- else {
301
- ganttHeight = Number(this.element.parentElement.style.height.split("%")[0]);
302
- }
303
- ganttHeight = (ganttHeight * window.innerHeight) / 100;
304
- if (this.height === '100%') {
305
- ganttHeight = ganttHeight - 16;
306
- }
307
- settingsHeight = this.validateDimentionValue(ganttHeight);
308
- }
309
- else {
310
- settingsHeight = this.validateDimentionValue(this.height);
311
- }
293
+ var settingsHeight = this.validateDimentionValue(this.height);
312
294
  var settingsWidth = this.validateDimentionValue(this.width);
313
295
  if (!isNullOrUndefined(this.width) && typeof (this.width) === 'string' && this.width.indexOf('%') !== -1) {
314
296
  settingsWidth = this.width;
@@ -451,40 +433,6 @@ var Gantt = /** @class */ (function (_super) {
451
433
  */
452
434
  Gantt.prototype.windowResize = function () {
453
435
  if (!isNullOrUndefined(this.element)) {
454
- var settingsHeight = void 0;
455
- if (this.height.indexOf('%') !== -1) {
456
- var ganttHeight = Number(this.height.split("%")[0]);
457
- if (this.element.parentElement && (this.element.parentElement.style.height)) {
458
- var containerHeight = void 0;
459
- if (this.element.parentElement.style.height.indexOf('%') == -1) {
460
- containerHeight = Number(this.element.parentElement.style.height.split("px")[0]);
461
- ganttHeight = (ganttHeight * containerHeight) / 100;
462
- }
463
- else {
464
- containerHeight = Number(this.element.parentElement.style.height.split("%")[0]);
465
- ganttHeight = (window.innerHeight * containerHeight) / 100;
466
- }
467
- }
468
- else {
469
- ganttHeight = Number(this.height.split("%")[0]);
470
- ganttHeight = (ganttHeight * window.innerHeight) / 100;
471
- }
472
- if (this.height === '100%') {
473
- ganttHeight = ganttHeight - 16;
474
- }
475
- var toolbarHeight = 0;
476
- if (!isNullOrUndefined(this.toolbarModule) && !isNullOrUndefined(this.toolbarModule.element)) {
477
- toolbarHeight = this.toolbarModule.element.offsetHeight;
478
- }
479
- var contentHeight = ganttHeight - this.ganttChartModule.chartTimelineContainer.offsetHeight - toolbarHeight;
480
- settingsHeight = this.validateDimentionValue(ganttHeight);
481
- this.element.style.height = settingsHeight;
482
- this.element.querySelectorAll('.e-content')[0]['style'].height = contentHeight + 'px';
483
- this.element.querySelectorAll('.e-content')[2]['style'].height = contentHeight + 'px';
484
- }
485
- else {
486
- settingsHeight = this.validateDimentionValue(this.height);
487
- }
488
436
  this.updateContentHeight();
489
437
  this.ganttChartModule.updateWidthAndHeight(); // Updating chart scroll conatiner height for row mismatch
490
438
  this.treeGridModule.ensureScrollBar();
@@ -606,7 +554,7 @@ var Gantt = /** @class */ (function (_super) {
606
554
  *
607
555
  * @param {IGanttData[]} records - Defines record collection.
608
556
  * @returns {IGanttData[]} .
609
-
557
+ * @deprecated
610
558
  */
611
559
  Gantt.prototype.getExpandedRecords = function (records) {
612
560
  var _this = this;
@@ -830,6 +778,18 @@ var Gantt = /** @class */ (function (_super) {
830
778
  * @private
831
779
  */
832
780
  Gantt.prototype.treeDataBound = function (args) {
781
+ this.element.getElementsByClassName('e-chart-root-container')[0]['style'].height = '100%';
782
+ var gridHeight = this.element.getElementsByClassName('e-gridcontent')[0]['style'].height;
783
+ var timelineContainer = this.element.getElementsByClassName('e-timeline-header-container')[0]['offsetHeight'];
784
+ gridHeight = 'calc(100% - ' + timelineContainer + 'px)';
785
+ // eslint-disable-next-line
786
+ this.element.getElementsByClassName('e-chart-scroll-container e-content')[0]['style'].height = 'calc(100% - ' + timelineContainer + 'px)';
787
+ if (!isNullOrUndefined(this.toolbarModule) && !isNullOrUndefined(this.toolbarModule.element)) {
788
+ this.splitterElement.style.height = 'calc(100% - ' + this.toolbarModule.element.offsetHeight + 'px)';
789
+ }
790
+ else {
791
+ this.splitterElement.style.height = '100%';
792
+ }
833
793
  if (this.isLoad) {
834
794
  this.updateCurrentViewData();
835
795
  if (!this.enableVirtualization) {
@@ -849,8 +809,7 @@ var Gantt = /** @class */ (function (_super) {
849
809
  removeClass(this.treeGrid.element.querySelectorAll('.e-headercell'), cls.timelineSingleHeaderOuterDiv);
850
810
  removeClass(this.treeGrid.element.querySelectorAll('.e-columnheader'), cls.timelineSingleHeaderOuterDiv);
851
811
  }
852
- this.treeGrid.height = this.ganttHeight - toolbarHeight -
853
- this.treeGrid.grid.getHeaderContent().offsetHeight;
812
+ this.treeGrid.height = '100%';
854
813
  this.notify('tree-grid-created', {});
855
814
  this.createGanttPopUpElement();
856
815
  this.hideSpinner();
@@ -1361,7 +1320,7 @@ var Gantt = /** @class */ (function (_super) {
1361
1320
  */
1362
1321
  Gantt.prototype.updateGridLineContainerHeight = function () {
1363
1322
  if (this.chartVerticalLineContainer) {
1364
- this.chartVerticalLineContainer.style.height = formatUnit(this.getContentHeight());
1323
+ this.chartVerticalLineContainer.style.height = formatUnit(this.contentHeight);
1365
1324
  }
1366
1325
  };
1367
1326
  /**
@@ -60,6 +60,7 @@ var Splitter = /** @class */ (function () {
60
60
  _this.splitterObject.paneSettings[1].size = null;
61
61
  _this.splitterObject.paneSettings[1].size = _this.getSpliterPositionInPercentage(_this.splitterPreviousPositionChart);
62
62
  }
63
+ _this.parent.timelineModule.updateTimelineAfterZooming(_this.parent.timelineModule.timelineEndDate, true);
63
64
  callBackPromise.resolve(splitterResizedArgs);
64
65
  });
65
66
  return callBackPromise;
@@ -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 { isNullOrUndefined, getValue, extend, setValue } from '@syncfusion/ej2-base';
15
15
  import { getUid } from '@syncfusion/ej2-grids';
16
16
  import { DataManager, Query } from '@syncfusion/ej2-data';
@@ -92,6 +92,8 @@ var GanttTreeGrid = /** @class */ (function () {
92
92
  GanttTreeGrid.prototype.renderTreeGrid = function () {
93
93
  this.composeProperties();
94
94
  this.bindEvents();
95
+ var root = 'root';
96
+ this.parent.treeGrid[root] = this.parent[root] ? this.parent[root] : this.parent;
95
97
  this.parent.treeGrid.appendTo(this.treeGridElement);
96
98
  this.wireEvents();
97
99
  };
@@ -155,7 +157,7 @@ var GanttTreeGrid = /** @class */ (function () {
155
157
  var scrollWidth = this.getScrollbarWidth();
156
158
  var isMobile = /Android|Mac|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
157
159
  if (scrollWidth !== 0) {
158
- content.style.cssText += 'width: calc(100% + ' + scrollWidth + 'px);';
160
+ content.style.cssText += 'width: calc(100% + ' + (scrollWidth + 1) + 'px);';
159
161
  }
160
162
  else {
161
163
  content.classList.add('e-gantt-scroll-padding');
@@ -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 { isNullOrUndefined } from '@syncfusion/ej2-base';
15
15
  import { PdfBorders, TemporaryDictionary } from './index';
16
16
  import { PdfHorizontalOverflowType } from '../../base/interface';
@@ -1,14 +1,14 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
12
  import { PointF, PdfPage, PdfPen, PdfSolidBrush, RectangleF, SizeF } from '@syncfusion/ej2-pdf-export';
13
13
  import { pixelToPoint } from '../base/utils';
14
14
  import { isNullOrUndefined } from '@syncfusion/ej2-base';
@@ -1,27 +1,27 @@
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 __assign = (this && this.__assign) || function () {
15
- __assign = Object.assign || function(t) {
16
- for (var s, i = 1, n = arguments.length; i < n; i++) {
17
- s = arguments[i];
18
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
19
- t[p] = s[p];
20
- }
21
- return t;
22
- };
23
- return __assign.apply(this, arguments);
24
- };
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 __assign = (this && this.__assign) || function () {
15
+ __assign = Object.assign || function(t) {
16
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
17
+ s = arguments[i];
18
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
19
+ t[p] = s[p];
20
+ }
21
+ return t;
22
+ };
23
+ return __assign.apply(this, arguments);
24
+ };
25
25
  import { PdfGanttTaskbarCollection } from './pdf-taskbar';
26
26
  import { isNullOrUndefined } from '@syncfusion/ej2-base';
27
27
  import { PointF, PdfPen, PdfColor } from '@syncfusion/ej2-pdf-export';
@@ -1,14 +1,14 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
12
  import { PointF, PdfStringLayouter, PdfPen, PdfSolidBrush, RectangleF, SizeF, PdfStandardFont, PdfFontStyle, PdfStringFormat, PdfVerticalAlignment, PdfTextAlignment, PdfWordWrapType } from '@syncfusion/ej2-pdf-export';
13
13
  import { pixelToPoint } from '../base/utils';
14
14
  import { isNullOrUndefined } from '@syncfusion/ej2-base';
@@ -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 { PdfTreeGridColumnCollection, PdfTreeGridHeaderCollection, PdfTreeGridRowCollection } from './pdf-base/index';
15
15
  import { PdfTreeGridStyle, PdfBorders, PdfTreeGridLayouter } from './pdf-base/index';
16
16
  import { PdfLayoutElement, RectangleF, PdfLayoutFormat, PointF, SizeF } from '@syncfusion/ej2-pdf-export';
@@ -1,4 +1,4 @@
1
- import { Property, ChildProperty } from '@syncfusion/ej2-base';import { DialogFieldType } from '../base/enum';
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
2
 
3
3
  /**
4
4
  * Interface for a class AddDialogFieldSettings
@@ -6,29 +6,29 @@ import { Property, ChildProperty } from '@syncfusion/ej2-base';import { DialogFi
6
6
  export interface AddDialogFieldSettingsModel {
7
7
 
8
8
  /**
9
- * Defines types of tab which contains editor for columns.
10
- * * `General` - Defines tab container type as general.
11
- * * `Dependency` - Defines tab as dependency editor.
12
- * * `Resources` - Defines tab as resources editor.
13
- * * `Notes` - Defines tab as notes editor.
14
- * * `Custom` - Defines tab as custom column editor.
15
- *
16
- * @default null
17
- */
18
- type?: DialogFieldType;
9
+ * Defines types of tab which contains editor for columns.
10
+ * * `General` - Defines tab container type as general.
11
+ * * `Dependency` - Defines tab as dependency editor.
12
+ * * `Resources` - Defines tab as resources editor.
13
+ * * `Notes` - Defines tab as notes editor.
14
+ * * `Custom` - Defines tab as custom column editor.
15
+ *
16
+ * @default null
17
+ */
18
+ type?: DialogFieldType;
19
19
 
20
20
  /**
21
- * Defines header text of tab item.
22
- *
23
- * @default null
24
- */
25
- headerText?: string;
21
+ * Defines header text of tab item.
22
+ *
23
+ * @default null
24
+ */
25
+ headerText?: string;
26
26
 
27
27
  /**
28
- * Defines edited column fields placed inside the tab.
29
- *
30
- * @default null
31
- */
32
- fields?: string[];
28
+ * Defines edited column fields placed inside the tab.
29
+ *
30
+ * @default null
31
+ */
32
+ fields?: string[];
33
33
 
34
34
  }