@progress/kendo-angular-gantt 1.0.1 → 2.0.0-next.202204011501

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 (462) hide show
  1. package/bundles/kendo-angular-gantt.umd.js +5 -0
  2. package/package.json +46 -125
  3. package/schematics/ngAdd/index.js +5 -2
  4. package/schematics/ngAdd/index.js.map +1 -1
  5. package/dist/cdn/js/kendo-angular-gantt.js +0 -20
  6. package/dist/cdn/main.js +0 -5
  7. package/dist/es/binding-directives/flat-binding.directive.js +0 -36
  8. package/dist/es/binding-directives/hierarchy-binding.directive.js +0 -34
  9. package/dist/es/columns/cell-template.directive.js +0 -36
  10. package/dist/es/columns/column-base.js +0 -66
  11. package/dist/es/columns/column-group.component.js +0 -111
  12. package/dist/es/columns/column-menu-template.directive.js +0 -30
  13. package/dist/es/columns/column.component.js +0 -163
  14. package/dist/es/columns/columns.js +0 -15
  15. package/dist/es/columns/edit-template.directive.js +0 -34
  16. package/dist/es/columns/filter-cell-template.directive.js +0 -29
  17. package/dist/es/columns/filter-menu-template.directive.js +0 -28
  18. package/dist/es/columns/footer-template.directive.js +0 -32
  19. package/dist/es/columns/header-template.directive.js +0 -30
  20. package/dist/es/columns/span-column.component.js +0 -104
  21. package/dist/es/common/default-callbacks.js +0 -25
  22. package/dist/es/common/mapping.service.js +0 -72
  23. package/dist/es/common/option-changes.service.js +0 -26
  24. package/dist/es/common/touch-enabled.js +0 -9
  25. package/dist/es/dependencies/dependency-dom.service.js +0 -79
  26. package/dist/es/dependencies/dom-dependency-args.js +0 -4
  27. package/dist/es/dependencies/gantt-dependency.directive.js +0 -94
  28. package/dist/es/dependencies/utils.js +0 -199
  29. package/dist/es/dragging/dependency-drag-create.directive.js +0 -347
  30. package/dist/es/dragging/drag-validation-tooltip.component.js +0 -27
  31. package/dist/es/editing/add-task.component.js +0 -94
  32. package/dist/es/editing/dependencies-table.component.js +0 -131
  33. package/dist/es/editing/edit-dialog.component.js +0 -75
  34. package/dist/es/editing/edit.service.js +0 -123
  35. package/dist/es/editing/task-fields.component.js +0 -43
  36. package/dist/es/editing/utils.js +0 -17
  37. package/dist/es/expanded-state/expand-event.js +0 -13
  38. package/dist/es/expanded-state/expandable.directive.js +0 -28
  39. package/dist/es/gantt.component.js +0 -1634
  40. package/dist/es/gantt.module.js +0 -167
  41. package/dist/es/index.js +0 -46
  42. package/dist/es/localization/custom-messages.component.js +0 -44
  43. package/dist/es/localization/gantt-localization.service.js +0 -26
  44. package/dist/es/localization/localized-messages.directive.js +0 -35
  45. package/dist/es/localization/messages.js +0 -290
  46. package/dist/es/main.js +0 -17
  47. package/dist/es/models/cell-content-type.interface.js +0 -4
  48. package/dist/es/models/class-callbacks.js +0 -4
  49. package/dist/es/models/column-menu-settings.interface.js +0 -4
  50. package/dist/es/models/column-reorder-config.js +0 -4
  51. package/dist/es/models/date-range.interface.js +0 -4
  52. package/dist/es/models/dependency-type.enum.js +0 -20
  53. package/dist/es/models/events/cell-click-event.interface.js +0 -4
  54. package/dist/es/models/events/cell-close-event.interface.js +0 -19
  55. package/dist/es/models/events/click-event.interface.js +0 -4
  56. package/dist/es/models/events/column-locked-change-event.interface.js +0 -4
  57. package/dist/es/models/events/column-reorder-event.interface.js +0 -4
  58. package/dist/es/models/events/column-resize-event.interface.js +0 -4
  59. package/dist/es/models/events/column-visibility-change-event.interface.js +0 -4
  60. package/dist/es/models/events/data-state-change-event.interface.js +0 -4
  61. package/dist/es/models/events/dependency-add-event.interface.js +0 -4
  62. package/dist/es/models/events/preventable-event.js +0 -32
  63. package/dist/es/models/events/selected-view-change-event.interface.js +0 -4
  64. package/dist/es/models/events/task-add-event.interface.js +0 -4
  65. package/dist/es/models/events/task-click-event.interface.js +0 -4
  66. package/dist/es/models/events/task-delete-event.interface.js +0 -4
  67. package/dist/es/models/events/task-edit-event.interface.js +0 -4
  68. package/dist/es/models/events/task-move-end-event.interface.js +0 -4
  69. package/dist/es/models/events/task-move-event.interface.js +0 -4
  70. package/dist/es/models/events/task-move-start-event.interface.js +0 -4
  71. package/dist/es/models/events/task-resize-end-event.interface.js +0 -4
  72. package/dist/es/models/events/task-resize-event.interface.js +0 -4
  73. package/dist/es/models/events/task-resize-start-event.interface.js +0 -4
  74. package/dist/es/models/gantt-dependency-model-fields.interface.js +0 -13
  75. package/dist/es/models/gantt-dependency.interface.js +0 -4
  76. package/dist/es/models/gantt-task-model-fields.interface.js +0 -15
  77. package/dist/es/models/gantt-task.interface.js +0 -4
  78. package/dist/es/models/models.js +0 -6
  79. package/dist/es/models/slot.interface.js +0 -4
  80. package/dist/es/models/sort-settings.js +0 -23
  81. package/dist/es/models/splitter-pane-options.interface.js +0 -20
  82. package/dist/es/models/timeline-options.interface.js +0 -4
  83. package/dist/es/models/timeline-view.js +0 -4
  84. package/dist/es/models/toolbar-settings.js +0 -4
  85. package/dist/es/models/view-item.interface.js +0 -4
  86. package/dist/es/navigation/navigation-models.js +0 -4
  87. package/dist/es/navigation/navigation.service.js +0 -390
  88. package/dist/es/navigation/utils.js +0 -77
  89. package/dist/es/package-metadata.js +0 -15
  90. package/dist/es/rendering/gantt-header-table-body.component.js +0 -29
  91. package/dist/es/rendering/gantt-milestone-task.component.js +0 -53
  92. package/dist/es/rendering/gantt-summary-task.component.js +0 -72
  93. package/dist/es/rendering/gantt-task-base.js +0 -192
  94. package/dist/es/rendering/gantt-task.component.js +0 -62
  95. package/dist/es/rendering/gantt-tasks-table-body.component.js +0 -88
  96. package/dist/es/scrolling/drag-scroll-settings.js +0 -20
  97. package/dist/es/scrolling/scroll-sync.service.js +0 -88
  98. package/dist/es/scrolling/timeline-scroll.directive.js +0 -89
  99. package/dist/es/scrolling/timeline-scroll.service.js +0 -39
  100. package/dist/es/scrolling/utils.js +0 -80
  101. package/dist/es/selection/selectable.directive.js +0 -141
  102. package/dist/es/selection/selection-change-event.js +0 -4
  103. package/dist/es/template-directives/summary-task-template.directive.js +0 -49
  104. package/dist/es/template-directives/task-content-template.directive.js +0 -44
  105. package/dist/es/template-directives/task-template.directive.js +0 -47
  106. package/dist/es/timeline/gantt-timeline.component.js +0 -176
  107. package/dist/es/timeline/timeline-base-view.service.js +0 -166
  108. package/dist/es/timeline/timeline-day-view.component.js +0 -37
  109. package/dist/es/timeline/timeline-day-view.service.js +0 -68
  110. package/dist/es/timeline/timeline-month-view.component.js +0 -37
  111. package/dist/es/timeline/timeline-month-view.service.js +0 -66
  112. package/dist/es/timeline/timeline-view.service.js +0 -36
  113. package/dist/es/timeline/timeline-week-view.component.js +0 -37
  114. package/dist/es/timeline/timeline-week-view.service.js +0 -62
  115. package/dist/es/timeline/view-base.js +0 -38
  116. package/dist/es/toolbar/toolbar-template.directive.js +0 -132
  117. package/dist/es/toolbar/toolbar.component.js +0 -72
  118. package/dist/es/toolbar/view-selector.component.js +0 -64
  119. package/dist/es/utils.js +0 -296
  120. package/dist/es2015/binding-directives/flat-binding.directive.d.ts +0 -21
  121. package/dist/es2015/binding-directives/flat-binding.directive.js +0 -39
  122. package/dist/es2015/binding-directives/hierarchy-binding.directive.d.ts +0 -19
  123. package/dist/es2015/binding-directives/hierarchy-binding.directive.js +0 -35
  124. package/dist/es2015/columns/cell-template.directive.d.ts +0 -25
  125. package/dist/es2015/columns/cell-template.directive.js +0 -35
  126. package/dist/es2015/columns/column-base.d.ts +0 -82
  127. package/dist/es2015/columns/column-base.js +0 -62
  128. package/dist/es2015/columns/column-group.component.d.ts +0 -100
  129. package/dist/es2015/columns/column-group.component.js +0 -107
  130. package/dist/es2015/columns/column-menu-template.directive.d.ts +0 -19
  131. package/dist/es2015/columns/column-menu-template.directive.js +0 -29
  132. package/dist/es2015/columns/column.component.d.ts +0 -127
  133. package/dist/es2015/columns/column.component.js +0 -159
  134. package/dist/es2015/columns/columns.d.ts +0 -15
  135. package/dist/es2015/columns/columns.js +0 -15
  136. package/dist/es2015/columns/edit-template.directive.d.ts +0 -23
  137. package/dist/es2015/columns/edit-template.directive.js +0 -33
  138. package/dist/es2015/columns/filter-cell-template.directive.d.ts +0 -18
  139. package/dist/es2015/columns/filter-cell-template.directive.js +0 -28
  140. package/dist/es2015/columns/filter-menu-template.directive.d.ts +0 -17
  141. package/dist/es2015/columns/filter-menu-template.directive.js +0 -27
  142. package/dist/es2015/columns/footer-template.directive.d.ts +0 -21
  143. package/dist/es2015/columns/footer-template.directive.js +0 -31
  144. package/dist/es2015/columns/header-template.directive.d.ts +0 -19
  145. package/dist/es2015/columns/header-template.directive.js +0 -29
  146. package/dist/es2015/columns/span-column.component.d.ts +0 -109
  147. package/dist/es2015/columns/span-column.component.js +0 -100
  148. package/dist/es2015/common/default-callbacks.d.ts +0 -24
  149. package/dist/es2015/common/default-callbacks.js +0 -25
  150. package/dist/es2015/common/mapping.service.d.ts +0 -32
  151. package/dist/es2015/common/mapping.service.js +0 -66
  152. package/dist/es2015/common/option-changes.service.d.ts +0 -14
  153. package/dist/es2015/common/option-changes.service.js +0 -28
  154. package/dist/es2015/common/touch-enabled.d.ts +0 -9
  155. package/dist/es2015/common/touch-enabled.js +0 -9
  156. package/dist/es2015/dependencies/dependency-dom.service.d.ts +0 -43
  157. package/dist/es2015/dependencies/dependency-dom.service.js +0 -70
  158. package/dist/es2015/dependencies/dom-dependency-args.d.ts +0 -24
  159. package/dist/es2015/dependencies/dom-dependency-args.js +0 -4
  160. package/dist/es2015/dependencies/gantt-dependency.directive.d.ts +0 -26
  161. package/dist/es2015/dependencies/gantt-dependency.directive.js +0 -87
  162. package/dist/es2015/dependencies/utils.d.ts +0 -53
  163. package/dist/es2015/dependencies/utils.js +0 -199
  164. package/dist/es2015/dragging/dependency-drag-create.directive.d.ts +0 -72
  165. package/dist/es2015/dragging/dependency-drag-create.directive.js +0 -324
  166. package/dist/es2015/dragging/drag-validation-tooltip.component.d.ts +0 -29
  167. package/dist/es2015/dragging/drag-validation-tooltip.component.js +0 -76
  168. package/dist/es2015/editing/add-task.component.d.ts +0 -45
  169. package/dist/es2015/editing/add-task.component.js +0 -102
  170. package/dist/es2015/editing/dependencies-table.component.d.ts +0 -39
  171. package/dist/es2015/editing/dependencies-table.component.js +0 -160
  172. package/dist/es2015/editing/edit-dialog.component.d.ts +0 -28
  173. package/dist/es2015/editing/edit-dialog.component.js +0 -116
  174. package/dist/es2015/editing/edit.service.d.ts +0 -40
  175. package/dist/es2015/editing/edit.service.js +0 -111
  176. package/dist/es2015/editing/task-fields.component.d.ts +0 -22
  177. package/dist/es2015/editing/task-fields.component.js +0 -67
  178. package/dist/es2015/editing/utils.d.ts +0 -10
  179. package/dist/es2015/editing/utils.js +0 -17
  180. package/dist/es2015/expanded-state/expand-event.d.ts +0 -13
  181. package/dist/es2015/expanded-state/expand-event.js +0 -9
  182. package/dist/es2015/expanded-state/expandable.directive.d.ts +0 -17
  183. package/dist/es2015/expanded-state/expandable.directive.js +0 -23
  184. package/dist/es2015/gantt.component.d.ts +0 -730
  185. package/dist/es2015/gantt.component.js +0 -1867
  186. package/dist/es2015/gantt.module.d.ts +0 -37
  187. package/dist/es2015/gantt.module.js +0 -164
  188. package/dist/es2015/index.d.ts +0 -46
  189. package/dist/es2015/index.js +0 -46
  190. package/dist/es2015/index.metadata.json +0 -1
  191. package/dist/es2015/localization/custom-messages.component.d.ts +0 -15
  192. package/dist/es2015/localization/custom-messages.component.js +0 -36
  193. package/dist/es2015/localization/gantt-localization.service.d.ts +0 -15
  194. package/dist/es2015/localization/gantt-localization.service.js +0 -25
  195. package/dist/es2015/localization/localized-messages.directive.d.ts +0 -13
  196. package/dist/es2015/localization/localized-messages.directive.js +0 -31
  197. package/dist/es2015/localization/messages.d.ts +0 -290
  198. package/dist/es2015/localization/messages.js +0 -284
  199. package/dist/es2015/main.d.ts +0 -19
  200. package/dist/es2015/main.js +0 -17
  201. package/dist/es2015/models/cell-content-type.interface.d.ts +0 -10
  202. package/dist/es2015/models/cell-content-type.interface.js +0 -4
  203. package/dist/es2015/models/class-callbacks.d.ts +0 -43
  204. package/dist/es2015/models/class-callbacks.js +0 -4
  205. package/dist/es2015/models/column-menu-settings.interface.d.ts +0 -26
  206. package/dist/es2015/models/column-menu-settings.interface.js +0 -4
  207. package/dist/es2015/models/column-reorder-config.d.ts +0 -10
  208. package/dist/es2015/models/column-reorder-config.js +0 -4
  209. package/dist/es2015/models/date-range.interface.d.ts +0 -19
  210. package/dist/es2015/models/date-range.interface.js +0 -4
  211. package/dist/es2015/models/dependency-type.enum.d.ts +0 -19
  212. package/dist/es2015/models/dependency-type.enum.js +0 -20
  213. package/dist/es2015/models/events/cell-click-event.interface.d.ts +0 -43
  214. package/dist/es2015/models/events/cell-click-event.interface.js +0 -4
  215. package/dist/es2015/models/events/cell-close-event.interface.d.ts +0 -48
  216. package/dist/es2015/models/events/cell-close-event.interface.js +0 -14
  217. package/dist/es2015/models/events/click-event.interface.d.ts +0 -23
  218. package/dist/es2015/models/events/click-event.interface.js +0 -4
  219. package/dist/es2015/models/events/column-locked-change-event.interface.d.ts +0 -16
  220. package/dist/es2015/models/events/column-locked-change-event.interface.js +0 -4
  221. package/dist/es2015/models/events/column-reorder-event.interface.d.ts +0 -10
  222. package/dist/es2015/models/events/column-reorder-event.interface.js +0 -4
  223. package/dist/es2015/models/events/column-resize-event.interface.d.ts +0 -10
  224. package/dist/es2015/models/events/column-resize-event.interface.js +0 -4
  225. package/dist/es2015/models/events/column-visibility-change-event.interface.d.ts +0 -14
  226. package/dist/es2015/models/events/column-visibility-change-event.interface.js +0 -4
  227. package/dist/es2015/models/events/data-state-change-event.interface.d.ts +0 -10
  228. package/dist/es2015/models/events/data-state-change-event.interface.js +0 -4
  229. package/dist/es2015/models/events/dependency-add-event.interface.d.ts +0 -26
  230. package/dist/es2015/models/events/dependency-add-event.interface.js +0 -4
  231. package/dist/es2015/models/events/preventable-event.d.ts +0 -24
  232. package/dist/es2015/models/events/preventable-event.js +0 -30
  233. package/dist/es2015/models/events/selected-view-change-event.interface.d.ts +0 -19
  234. package/dist/es2015/models/events/selected-view-change-event.interface.js +0 -4
  235. package/dist/es2015/models/events/task-add-event.interface.d.ts +0 -31
  236. package/dist/es2015/models/events/task-add-event.interface.js +0 -4
  237. package/dist/es2015/models/events/task-click-event.interface.d.ts +0 -30
  238. package/dist/es2015/models/events/task-click-event.interface.js +0 -4
  239. package/dist/es2015/models/events/task-delete-event.interface.d.ts +0 -21
  240. package/dist/es2015/models/events/task-delete-event.interface.js +0 -4
  241. package/dist/es2015/models/events/task-edit-event.interface.d.ts +0 -76
  242. package/dist/es2015/models/events/task-edit-event.interface.js +0 -4
  243. package/dist/es2015/models/events/task-move-end-event.interface.d.ts +0 -12
  244. package/dist/es2015/models/events/task-move-end-event.interface.js +0 -4
  245. package/dist/es2015/models/events/task-move-event.interface.d.ts +0 -23
  246. package/dist/es2015/models/events/task-move-event.interface.js +0 -4
  247. package/dist/es2015/models/events/task-move-start-event.interface.d.ts +0 -15
  248. package/dist/es2015/models/events/task-move-start-event.interface.js +0 -4
  249. package/dist/es2015/models/events/task-resize-end-event.interface.d.ts +0 -12
  250. package/dist/es2015/models/events/task-resize-end-event.interface.js +0 -4
  251. package/dist/es2015/models/events/task-resize-event.interface.d.ts +0 -23
  252. package/dist/es2015/models/events/task-resize-event.interface.js +0 -4
  253. package/dist/es2015/models/events/task-resize-start-event.interface.d.ts +0 -15
  254. package/dist/es2015/models/events/task-resize-start-event.interface.js +0 -4
  255. package/dist/es2015/models/gantt-dependency-model-fields.interface.d.ts +0 -35
  256. package/dist/es2015/models/gantt-dependency-model-fields.interface.js +0 -13
  257. package/dist/es2015/models/gantt-dependency.interface.d.ts +0 -26
  258. package/dist/es2015/models/gantt-dependency.interface.js +0 -4
  259. package/dist/es2015/models/gantt-task-model-fields.interface.d.ts +0 -42
  260. package/dist/es2015/models/gantt-task-model-fields.interface.js +0 -15
  261. package/dist/es2015/models/gantt-task.interface.d.ts +0 -31
  262. package/dist/es2015/models/gantt-task.interface.js +0 -4
  263. package/dist/es2015/models/models.d.ts +0 -42
  264. package/dist/es2015/models/models.js +0 -6
  265. package/dist/es2015/models/slot.interface.d.ts +0 -31
  266. package/dist/es2015/models/slot.interface.js +0 -4
  267. package/dist/es2015/models/sort-settings.d.ts +0 -107
  268. package/dist/es2015/models/sort-settings.js +0 -17
  269. package/dist/es2015/models/splitter-pane-options.interface.d.ts +0 -54
  270. package/dist/es2015/models/splitter-pane-options.interface.js +0 -20
  271. package/dist/es2015/models/timeline-options.interface.d.ts +0 -41
  272. package/dist/es2015/models/timeline-options.interface.js +0 -4
  273. package/dist/es2015/models/timeline-view.d.ts +0 -8
  274. package/dist/es2015/models/timeline-view.js +0 -4
  275. package/dist/es2015/models/toolbar-settings.d.ts +0 -29
  276. package/dist/es2015/models/toolbar-settings.js +0 -4
  277. package/dist/es2015/models/view-item.interface.d.ts +0 -35
  278. package/dist/es2015/models/view-item.interface.js +0 -4
  279. package/dist/es2015/navigation/navigation-models.d.ts +0 -34
  280. package/dist/es2015/navigation/navigation-models.js +0 -4
  281. package/dist/es2015/navigation/navigation.service.d.ts +0 -126
  282. package/dist/es2015/navigation/navigation.service.js +0 -355
  283. package/dist/es2015/navigation/utils.d.ts +0 -26
  284. package/dist/es2015/navigation/utils.js +0 -69
  285. package/dist/es2015/package-metadata.d.ts +0 -9
  286. package/dist/es2015/package-metadata.js +0 -15
  287. package/dist/es2015/rendering/gantt-header-table-body.component.d.ts +0 -11
  288. package/dist/es2015/rendering/gantt-header-table-body.component.js +0 -34
  289. package/dist/es2015/rendering/gantt-milestone-task.component.d.ts +0 -19
  290. package/dist/es2015/rendering/gantt-milestone-task.component.js +0 -81
  291. package/dist/es2015/rendering/gantt-summary-task.component.d.ts +0 -22
  292. package/dist/es2015/rendering/gantt-summary-task.component.js +0 -116
  293. package/dist/es2015/rendering/gantt-task-base.d.ts +0 -56
  294. package/dist/es2015/rendering/gantt-task-base.js +0 -156
  295. package/dist/es2015/rendering/gantt-task.component.d.ts +0 -23
  296. package/dist/es2015/rendering/gantt-task.component.js +0 -135
  297. package/dist/es2015/rendering/gantt-tasks-table-body.component.d.ts +0 -30
  298. package/dist/es2015/rendering/gantt-tasks-table-body.component.js +0 -130
  299. package/dist/es2015/scrolling/drag-scroll-settings.d.ts +0 -47
  300. package/dist/es2015/scrolling/drag-scroll-settings.js +0 -20
  301. package/dist/es2015/scrolling/scroll-sync.service.d.ts +0 -30
  302. package/dist/es2015/scrolling/scroll-sync.service.js +0 -80
  303. package/dist/es2015/scrolling/timeline-scroll.directive.d.ts +0 -24
  304. package/dist/es2015/scrolling/timeline-scroll.directive.js +0 -78
  305. package/dist/es2015/scrolling/timeline-scroll.service.d.ts +0 -20
  306. package/dist/es2015/scrolling/timeline-scroll.service.js +0 -44
  307. package/dist/es2015/scrolling/utils.d.ts +0 -29
  308. package/dist/es2015/scrolling/utils.js +0 -80
  309. package/dist/es2015/selection/selectable.directive.d.ts +0 -42
  310. package/dist/es2015/selection/selectable.directive.js +0 -122
  311. package/dist/es2015/selection/selection-change-event.d.ts +0 -25
  312. package/dist/es2015/selection/selection-change-event.js +0 -4
  313. package/dist/es2015/template-directives/summary-task-template.directive.d.ts +0 -38
  314. package/dist/es2015/template-directives/summary-task-template.directive.js +0 -48
  315. package/dist/es2015/template-directives/task-content-template.directive.d.ts +0 -33
  316. package/dist/es2015/template-directives/task-content-template.directive.js +0 -43
  317. package/dist/es2015/template-directives/task-template.directive.d.ts +0 -36
  318. package/dist/es2015/template-directives/task-template.directive.js +0 -46
  319. package/dist/es2015/timeline/gantt-timeline.component.d.ts +0 -64
  320. package/dist/es2015/timeline/gantt-timeline.component.js +0 -271
  321. package/dist/es2015/timeline/timeline-base-view.service.d.ts +0 -77
  322. package/dist/es2015/timeline/timeline-base-view.service.js +0 -160
  323. package/dist/es2015/timeline/timeline-day-view.component.d.ts +0 -15
  324. package/dist/es2015/timeline/timeline-day-view.component.js +0 -33
  325. package/dist/es2015/timeline/timeline-day-view.service.d.ts +0 -35
  326. package/dist/es2015/timeline/timeline-day-view.service.js +0 -66
  327. package/dist/es2015/timeline/timeline-month-view.component.d.ts +0 -15
  328. package/dist/es2015/timeline/timeline-month-view.component.js +0 -33
  329. package/dist/es2015/timeline/timeline-month-view.service.d.ts +0 -35
  330. package/dist/es2015/timeline/timeline-month-view.service.js +0 -64
  331. package/dist/es2015/timeline/timeline-view.service.d.ts +0 -16
  332. package/dist/es2015/timeline/timeline-view.service.js +0 -35
  333. package/dist/es2015/timeline/timeline-week-view.component.d.ts +0 -15
  334. package/dist/es2015/timeline/timeline-week-view.component.js +0 -33
  335. package/dist/es2015/timeline/timeline-week-view.service.d.ts +0 -35
  336. package/dist/es2015/timeline/timeline-week-view.service.js +0 -60
  337. package/dist/es2015/timeline/view-base.d.ts +0 -31
  338. package/dist/es2015/timeline/view-base.js +0 -36
  339. package/dist/es2015/toolbar/toolbar-template.directive.d.ts +0 -108
  340. package/dist/es2015/toolbar/toolbar-template.directive.js +0 -127
  341. package/dist/es2015/toolbar/toolbar.component.d.ts +0 -23
  342. package/dist/es2015/toolbar/toolbar.component.js +0 -75
  343. package/dist/es2015/toolbar/view-selector.component.d.ts +0 -36
  344. package/dist/es2015/toolbar/view-selector.component.js +0 -78
  345. package/dist/es2015/utils.d.ts +0 -166
  346. package/dist/es2015/utils.js +0 -293
  347. package/dist/fesm2015/index.js +0 -7112
  348. package/dist/fesm5/index.js +0 -6674
  349. package/dist/npm/binding-directives/flat-binding.directive.js +0 -38
  350. package/dist/npm/binding-directives/hierarchy-binding.directive.js +0 -36
  351. package/dist/npm/columns/cell-template.directive.js +0 -38
  352. package/dist/npm/columns/column-base.js +0 -68
  353. package/dist/npm/columns/column-group.component.js +0 -113
  354. package/dist/npm/columns/column-menu-template.directive.js +0 -32
  355. package/dist/npm/columns/column.component.js +0 -165
  356. package/dist/npm/columns/columns.js +0 -28
  357. package/dist/npm/columns/edit-template.directive.js +0 -36
  358. package/dist/npm/columns/filter-cell-template.directive.js +0 -31
  359. package/dist/npm/columns/filter-menu-template.directive.js +0 -30
  360. package/dist/npm/columns/footer-template.directive.js +0 -34
  361. package/dist/npm/columns/header-template.directive.js +0 -32
  362. package/dist/npm/columns/span-column.component.js +0 -106
  363. package/dist/npm/common/default-callbacks.js +0 -27
  364. package/dist/npm/common/mapping.service.js +0 -74
  365. package/dist/npm/common/option-changes.service.js +0 -28
  366. package/dist/npm/common/touch-enabled.js +0 -11
  367. package/dist/npm/dependencies/dependency-dom.service.js +0 -81
  368. package/dist/npm/dependencies/dom-dependency-args.js +0 -6
  369. package/dist/npm/dependencies/gantt-dependency.directive.js +0 -96
  370. package/dist/npm/dependencies/utils.js +0 -203
  371. package/dist/npm/dragging/dependency-drag-create.directive.js +0 -349
  372. package/dist/npm/dragging/drag-validation-tooltip.component.js +0 -29
  373. package/dist/npm/editing/add-task.component.js +0 -96
  374. package/dist/npm/editing/dependencies-table.component.js +0 -133
  375. package/dist/npm/editing/edit-dialog.component.js +0 -77
  376. package/dist/npm/editing/edit.service.js +0 -125
  377. package/dist/npm/editing/task-fields.component.js +0 -45
  378. package/dist/npm/editing/utils.js +0 -19
  379. package/dist/npm/expanded-state/expand-event.js +0 -15
  380. package/dist/npm/expanded-state/expandable.directive.js +0 -30
  381. package/dist/npm/gantt.component.js +0 -1636
  382. package/dist/npm/gantt.module.js +0 -169
  383. package/dist/npm/index.js +0 -87
  384. package/dist/npm/localization/custom-messages.component.js +0 -46
  385. package/dist/npm/localization/gantt-localization.service.js +0 -28
  386. package/dist/npm/localization/localized-messages.directive.js +0 -37
  387. package/dist/npm/localization/messages.js +0 -292
  388. package/dist/npm/main.js +0 -31
  389. package/dist/npm/models/cell-content-type.interface.js +0 -6
  390. package/dist/npm/models/class-callbacks.js +0 -6
  391. package/dist/npm/models/column-menu-settings.interface.js +0 -6
  392. package/dist/npm/models/column-reorder-config.js +0 -6
  393. package/dist/npm/models/date-range.interface.js +0 -6
  394. package/dist/npm/models/dependency-type.enum.js +0 -22
  395. package/dist/npm/models/events/cell-click-event.interface.js +0 -6
  396. package/dist/npm/models/events/cell-close-event.interface.js +0 -21
  397. package/dist/npm/models/events/click-event.interface.js +0 -6
  398. package/dist/npm/models/events/column-locked-change-event.interface.js +0 -6
  399. package/dist/npm/models/events/column-reorder-event.interface.js +0 -6
  400. package/dist/npm/models/events/column-resize-event.interface.js +0 -6
  401. package/dist/npm/models/events/column-visibility-change-event.interface.js +0 -6
  402. package/dist/npm/models/events/data-state-change-event.interface.js +0 -6
  403. package/dist/npm/models/events/dependency-add-event.interface.js +0 -6
  404. package/dist/npm/models/events/preventable-event.js +0 -34
  405. package/dist/npm/models/events/selected-view-change-event.interface.js +0 -6
  406. package/dist/npm/models/events/task-add-event.interface.js +0 -6
  407. package/dist/npm/models/events/task-click-event.interface.js +0 -6
  408. package/dist/npm/models/events/task-delete-event.interface.js +0 -6
  409. package/dist/npm/models/events/task-edit-event.interface.js +0 -6
  410. package/dist/npm/models/events/task-move-end-event.interface.js +0 -6
  411. package/dist/npm/models/events/task-move-event.interface.js +0 -6
  412. package/dist/npm/models/events/task-move-start-event.interface.js +0 -6
  413. package/dist/npm/models/events/task-resize-end-event.interface.js +0 -6
  414. package/dist/npm/models/events/task-resize-event.interface.js +0 -6
  415. package/dist/npm/models/events/task-resize-start-event.interface.js +0 -6
  416. package/dist/npm/models/gantt-dependency-model-fields.interface.js +0 -15
  417. package/dist/npm/models/gantt-dependency.interface.js +0 -6
  418. package/dist/npm/models/gantt-task-model-fields.interface.js +0 -17
  419. package/dist/npm/models/gantt-task.interface.js +0 -6
  420. package/dist/npm/models/models.js +0 -10
  421. package/dist/npm/models/slot.interface.js +0 -6
  422. package/dist/npm/models/sort-settings.js +0 -25
  423. package/dist/npm/models/splitter-pane-options.interface.js +0 -22
  424. package/dist/npm/models/timeline-options.interface.js +0 -6
  425. package/dist/npm/models/timeline-view.js +0 -6
  426. package/dist/npm/models/toolbar-settings.js +0 -6
  427. package/dist/npm/models/view-item.interface.js +0 -6
  428. package/dist/npm/navigation/navigation-models.js +0 -6
  429. package/dist/npm/navigation/navigation.service.js +0 -392
  430. package/dist/npm/navigation/utils.js +0 -79
  431. package/dist/npm/package-metadata.js +0 -17
  432. package/dist/npm/rendering/gantt-header-table-body.component.js +0 -31
  433. package/dist/npm/rendering/gantt-milestone-task.component.js +0 -55
  434. package/dist/npm/rendering/gantt-summary-task.component.js +0 -74
  435. package/dist/npm/rendering/gantt-task-base.js +0 -194
  436. package/dist/npm/rendering/gantt-task.component.js +0 -64
  437. package/dist/npm/rendering/gantt-tasks-table-body.component.js +0 -90
  438. package/dist/npm/scrolling/drag-scroll-settings.js +0 -22
  439. package/dist/npm/scrolling/scroll-sync.service.js +0 -90
  440. package/dist/npm/scrolling/timeline-scroll.directive.js +0 -91
  441. package/dist/npm/scrolling/timeline-scroll.service.js +0 -41
  442. package/dist/npm/scrolling/utils.js +0 -83
  443. package/dist/npm/selection/selectable.directive.js +0 -143
  444. package/dist/npm/selection/selection-change-event.js +0 -6
  445. package/dist/npm/template-directives/summary-task-template.directive.js +0 -51
  446. package/dist/npm/template-directives/task-content-template.directive.js +0 -46
  447. package/dist/npm/template-directives/task-template.directive.js +0 -49
  448. package/dist/npm/timeline/gantt-timeline.component.js +0 -178
  449. package/dist/npm/timeline/timeline-base-view.service.js +0 -168
  450. package/dist/npm/timeline/timeline-day-view.component.js +0 -39
  451. package/dist/npm/timeline/timeline-day-view.service.js +0 -70
  452. package/dist/npm/timeline/timeline-month-view.component.js +0 -39
  453. package/dist/npm/timeline/timeline-month-view.service.js +0 -68
  454. package/dist/npm/timeline/timeline-view.service.js +0 -38
  455. package/dist/npm/timeline/timeline-week-view.component.js +0 -39
  456. package/dist/npm/timeline/timeline-week-view.service.js +0 -64
  457. package/dist/npm/timeline/view-base.js +0 -40
  458. package/dist/npm/toolbar/toolbar-template.directive.js +0 -134
  459. package/dist/npm/toolbar/toolbar.component.js +0 -74
  460. package/dist/npm/toolbar/view-selector.component.js +0 -66
  461. package/dist/npm/utils.js +0 -298
  462. package/dist/systemjs/kendo-angular-gantt.js +0 -5
@@ -1,1636 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var kendo_angular_treelist_1 = require("@progress/kendo-angular-treelist");
10
- var kendo_date_math_1 = require("@progress/kendo-date-math");
11
- var rxjs_1 = require("rxjs");
12
- var kendo_licensing_1 = require("@progress/kendo-licensing");
13
- var package_metadata_1 = require("./package-metadata");
14
- var kendo_angular_common_1 = require("@progress/kendo-angular-common");
15
- var gantt_timeline_component_1 = require("./timeline/gantt-timeline.component");
16
- var columns_1 = require("./columns/columns");
17
- var default_callbacks_1 = require("./common/default-callbacks");
18
- var models_1 = require("./models/models");
19
- var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
20
- var timeline_view_service_1 = require("./timeline/timeline-view.service");
21
- var timeline_day_view_service_1 = require("./timeline/timeline-day-view.service");
22
- var timeline_week_view_service_1 = require("./timeline/timeline-week-view.service");
23
- var timeline_month_view_service_1 = require("./timeline/timeline-month-view.service");
24
- var scroll_sync_service_1 = require("./scrolling/scroll-sync.service");
25
- var dependency_dom_service_1 = require("./dependencies/dependency-dom.service");
26
- var mapping_service_1 = require("./common/mapping.service");
27
- var option_changes_service_1 = require("./common/option-changes.service");
28
- var edit_service_1 = require("./editing/edit.service");
29
- var timeline_scroll_service_1 = require("./scrolling/timeline-scroll.service");
30
- var gantt_localization_service_1 = require("./localization/gantt-localization.service");
31
- var navigation_service_1 = require("./navigation/navigation.service");
32
- var utils_1 = require("./utils");
33
- var splitter_pane_options_interface_1 = require("./models/splitter-pane-options.interface");
34
- var task_template_directive_1 = require("./template-directives/task-template.directive");
35
- var summary_task_template_directive_1 = require("./template-directives/summary-task-template.directive");
36
- var task_content_template_directive_1 = require("./template-directives/task-content-template.directive");
37
- var toolbar_template_directive_1 = require("./toolbar/toolbar-template.directive");
38
- var view_base_1 = require("./timeline/view-base");
39
- var utils_2 = require("./editing/utils");
40
- var TREELIST_GROUP_COLUMNS_CLASS = 'k-gantt-treelist-nested-columns';
41
- var DEFAULT_VIEW = 'week';
42
- var DEFAULT_DRAG_SCROLL_SETTINGS = {
43
- enabled: true,
44
- step: 3,
45
- interval: 1,
46
- threshold: 10
47
- };
48
- /**
49
- * Represents the Kendo UI Gantt component for Angular.
50
- *
51
- * @example
52
- * ```ts-preview
53
- * _@Component({
54
- * selector: 'my-app',
55
- * template: `
56
- * <kendo-gantt
57
- * [style.height.px]="500"
58
- * [kendoGanttHierarchyBinding]="data"
59
- * childrenField="subtasks"
60
- * [dependencies]="dependencies">
61
- * <kendo-gantt-column
62
- * field="title"
63
- * title="Task"
64
- * [width]="200"
65
- * [expandable]="true"></kendo-gantt-column>
66
- * <kendo-gantt-column
67
- * field="start"
68
- * title="Start"
69
- * format="dd-MMM-yyyy"
70
- * [width]="120"></kendo-gantt-column>
71
- * <kendo-gantt-column
72
- * field="end"
73
- * title="End"
74
- * format="dd-MMM-yyyy"
75
- * [width]="120"></kendo-gantt-column>
76
- * <kendo-gantt-timeline-day-view></kendo-gantt-timeline-day-view>
77
- * <kendo-gantt-timeline-week-view></kendo-gantt-timeline-week-view>
78
- * <kendo-gantt-timeline-month-view></kendo-gantt-timeline-month-view>
79
- * </kendo-gantt>
80
- * `
81
- * })
82
- * class AppComponent {
83
- * public data: Task[] = [{
84
- * id: 7, title: 'Validation and R&D', start: new Date('2014-06-02T00:00:00.000Z'),
85
- * end: new Date('2014-06-19T00:00:00.000Z'), completionRatio: 0.45708333333333334,
86
- * subtasks: [
87
- * { id: 18, title: 'Project Kickoff', start: new Date('2014-06-02T00:00:00.000Z'),
88
- * end: new Date('2014-06-02T00:00:00.000Z'), completionRatio: 0.23 },
89
- * { id: 11, title: 'Research', start: new Date('2014-06-02T00:00:00.000Z'),
90
- * end: new Date('2014-06-07T00:00:00.000Z'), completionRatio: 0.5766666666666667,
91
- * subtasks: [
92
- * { id: 19, title: 'Validation', start: new Date('2014-06-02T00:00:00.000Z'),
93
- * end: new Date('2014-06-04T00:00:00.000Z'), completionRatio: 0.25 },
94
- * { id: 39, title: 'Specification', start: new Date('2014-06-04T00:00:00.000Z'),
95
- * end: new Date('2014-06-07T00:00:00.000Z'), completionRatio: 0.66 }]
96
- * }, { id: 13, title: 'Implementation', start: new Date('2014-06-08T00:00:00.000Z'),
97
- * end: new Date('2014-06-19T00:00:00.000Z'), completionRatio: 0.77,
98
- * subtasks: [
99
- * { id: 24, title: 'Prototype', start: new Date('2014-06-08T00:00:00.000Z'),
100
- * end: new Date('2014-06-14T00:00:00.000Z'), completionRatio: 0.77 },
101
- * { id: 29, title: 'UI and Interaction', start: new Date('2014-06-14T00:00:00.000Z'),
102
- * end: new Date('2014-06-19T00:00:00.000Z'), completionRatio: 0.6 }]
103
- * }, { id: 17, title: 'Release', start: new Date('2014-06-19T00:00:00.000Z'),
104
- * end: new Date('2014-06-19T00:00:00.000Z'), completionRatio: 0 }]
105
- * }];
106
- *
107
- * public dependencies: GanttDependency[] = [
108
- * { id: 528, fromId: 18, toId: 19, type: DependencyType.FS },
109
- * { id: 529, fromId: 19, toId: 39, type: DependencyType.FS },
110
- * { id: 535, fromId: 24, toId: 29, type: DependencyType.FS },
111
- * { id: 551, fromId: 13, toId: 29, type: DependencyType.FF },
112
- * { id: 777, fromId: 7, toId: 11, type: DependencyType.SF },
113
- * { id: 556, fromId: 39, toId: 24, type: DependencyType.FS },
114
- * { id: 546, fromId: 29, toId: 17, type: DependencyType.FS },
115
- * ];
116
- * }
117
- * ```
118
- */
119
- var GanttComponent = /** @class */ (function () {
120
- function GanttComponent(timelineViewService, scrollSyncService, renderer, mapper, optionChangesService, dependencyDomService, editService, localizationService, hostElement, zone, navigationService) {
121
- var _this = this;
122
- this.timelineViewService = timelineViewService;
123
- this.scrollSyncService = scrollSyncService;
124
- this.renderer = renderer;
125
- this.mapper = mapper;
126
- this.optionChangesService = optionChangesService;
127
- this.dependencyDomService = dependencyDomService;
128
- this.editService = editService;
129
- this.localizationService = localizationService;
130
- this.hostElement = hostElement;
131
- this.zone = zone;
132
- this.navigationService = navigationService;
133
- /**
134
- * @hidden
135
- */
136
- this.roleDescription = 'Gantt Chart';
137
- /**
138
- * @hidden
139
- */
140
- this.role = 'application';
141
- this.hostClasses = true;
142
- /**
143
- * Specifies a callback that determines if the given task is selected ([see example]({% slug selection_gantt %}#toc-custom-selection)).
144
- *
145
- * > The [`selectable`]({% slug api_gantt_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
146
- */
147
- this.isSelected = default_callbacks_1.isSelected;
148
- /**
149
- * Specifies a callback that determines if a new dependency is valid.
150
- * Used when evaluating if an attempt to create a new dependency will result in a valid link between the two tasks
151
- * [see example]({% slug editing_drag_create_dependencies_gantt %}#toc-validation).
152
- *
153
- * By defalut, dependencies are deemed invalid when:
154
- * - The two tasks are in a parent-child relationship.
155
- * - The two tasks are already dependent on one another. Only one dependency is allowed per pair.
156
- * - The start or end times of the two tasks are incompatible with the attempted dependency type.
157
- */
158
- this.validateNewDependency = this.defaultValidateNewDependencyCallback.bind(this);
159
- /**
160
- * Fires when the Gantt selection is changed through user interaction.
161
- *
162
- * Holds data about the affected [`items`]({% slug api_gantt_selectionchangeevent %}#toc-items) and the attempted [`action`]({% slug api_gantt_selectionchangeevent %}#toc-action):
163
- * - `select` - Triggered on `click` or `ctrl + click` on deselected items.
164
- * - `remove` - Triggered on `ctrl + click` on selected items.
165
- */
166
- this.selectionChange = new core_1.EventEmitter();
167
- /**
168
- * Enables or disables the Gantt selection mechanism ([see example]({% slug selection_gantt %}#toc-custom-selection)).
169
- *
170
- * > When set to `true`, the [`isSelected`]({% slug api_gantt_ganttcomponent %}#toc-isselected) callback has to be provided.
171
- * > When applied, the [`SelectableDirective`]({% slug api_gantt_selectabledirective %}) sets `selectable` to `true` internally.
172
- */
173
- this.selectable = false;
174
- /**
175
- * Defines the dependencies that will be drawn between the rendered tasks.
176
- *
177
- * > The dependency data items should either conform to the [`GanttDependency`]({% slug api_gantt_ganttdependency %}) interface, or a [`dependencyModelFields`]({% slug api_gantt_ganttcomponent %}#toc-dependencymodelfields) object has to be provided.
178
- */
179
- this.dependencies = [];
180
- /**
181
- * Enables the sorting of the Gantt columns that have their `field` option set.
182
- */
183
- this.sortable = false;
184
- /**
185
- * The descriptors by which the data will be sorted.
186
- */
187
- this.sort = [];
188
- /**
189
- * Enables the filtering of the Gantt columns that have their `field` option set.
190
- *
191
- * @default false
192
- */
193
- this.filterable = false;
194
- /**
195
- * The start time of the work day.
196
- * Accepts string values in the `HH:mm` format.
197
- */
198
- this.workDayStart = '08:00';
199
- /**
200
- * The end time of the work day.
201
- * Accepts string values in the `HH:mm` format.
202
- */
203
- this.workDayEnd = '17:00';
204
- /**
205
- * The start of the work week (index based).
206
- */
207
- this.workWeekStart = 1;
208
- /**
209
- * The end of the work week (index based).
210
- */
211
- this.workWeekEnd = 5;
212
- /**
213
- * If set to `true`, the user can use dedicated shortcuts to interact with the Gantt.
214
- * By default, navigation is disabled for the TreeList and Timeline parts of the component,
215
- * ([see example]({% slug keyboard_navigation_gantt %})).
216
- */
217
- this.navigable = false;
218
- /**
219
- * Indicates whether the Gantt columns will be resized during initialization so that they fit their headers and row content.
220
- * Columns with autoSize set to false are excluded.
221
- *
222
- * @default false
223
- */
224
- this.columnsAutoSize = false;
225
- /**
226
- * Specifies if the column menu of the columns will be displayed.
227
- *
228
- * @default false
229
- */
230
- this.columnMenu = false;
231
- /**
232
- * If set to true, the user can reorder columns by dragging their header cells.
233
- *
234
- * @default false
235
- */
236
- this.columnsReorderable = false;
237
- /**
238
- * If set to true, the user can resize columns by dragging the edges (resize handles) of their header cells.
239
- *
240
- * @default false
241
- */
242
- this.columnsResizable = false;
243
- /**
244
- * Fires when an item is expanded.
245
- */
246
- this.rowExpand = new core_1.EventEmitter();
247
- /**
248
- * Fires when a Gantt task in the timeline pane is double-clicked. The data item, associated with the clicked task,
249
- * is available in the event data. Use the event handler to open a task editing dialog as necessary.
250
- */
251
- this.taskDblClick = new core_1.EventEmitter();
252
- /**
253
- * Fires when the user double clicks a cell.
254
- */
255
- this.cellDblClick = new core_1.EventEmitter();
256
- /**
257
- * Fires when the user leaves an edited cell.
258
- */
259
- this.cellClose = new core_1.EventEmitter();
260
- /**
261
- * Fires when the end user clicks the `Delete` button in the task editing dialog,
262
- * the task delete icon, or presses the `Delete` key on the keyboard when a task in the timeline is focused.
263
- * Use the event handler to open a confirmation dialog when necessary.
264
- */
265
- this.taskDelete = new core_1.EventEmitter();
266
- /**
267
- * Fires when an item is collapsed.
268
- */
269
- this.rowCollapse = new core_1.EventEmitter();
270
- /**
271
- * Fires when the user confirms deleting a task.
272
- */
273
- this.remove = new core_1.EventEmitter();
274
- /**
275
- * Fires when the user cancels editing a task.
276
- */
277
- this.cancel = new core_1.EventEmitter();
278
- /**
279
- * Fires when the user saves an edited task.
280
- */
281
- this.save = new core_1.EventEmitter();
282
- /**
283
- * Fires when the user adds a task.
284
- */
285
- this.taskAdd = new core_1.EventEmitter();
286
- /**
287
- * Fires when the user adds a dependency via dragging
288
- * [see example]({% slug editing_drag_create_dependencies_gantt %}#toc-basic-concepts).
289
- */
290
- this.dependencyAdd = new core_1.EventEmitter();
291
- /**
292
- * Fires when the sorting of the Gantt is changed.
293
- * You have to handle the event yourself and sort the data.
294
- */
295
- this.sortChange = new core_1.EventEmitter();
296
- /**
297
- * Fires when the Gantt filter is modified.
298
- * You have to handle the event yourself and filter the data.
299
- */
300
- this.filterChange = new core_1.EventEmitter();
301
- /**
302
- * Fires when the filter or sort state of the Gantt is changed.
303
- */
304
- this.dataStateChange = new core_1.EventEmitter();
305
- /**
306
- * Fires when the collapsed state of the treelist pane is changed.
307
- */
308
- this.treeListPaneCollapsedChange = new core_1.EventEmitter();
309
- /**
310
- * Fires when the collapsed state of the timeline pane is changed.
311
- */
312
- this.timelinePaneCollapsedChange = new core_1.EventEmitter();
313
- /**
314
- * Fires each time the user resizes the timeline pane.
315
- */
316
- this.timelinePaneSizeChange = new core_1.EventEmitter();
317
- /**
318
- * Fires each time the user selects a different view type. The event data contains the type of the newly selected view.
319
- */
320
- this.activeViewChange = new core_1.EventEmitter();
321
- /**
322
- * Fires when the user completes the resizing of the column.
323
- */
324
- this.columnResize = new core_1.EventEmitter();
325
- /**
326
- * Fires when the user completes the reordering of the column.
327
- */
328
- this.columnReorder = new core_1.EventEmitter();
329
- /**
330
- * Fires when the user changes the visibility of the columns from the column menu or column chooser.
331
- */
332
- this.columnVisibilityChange = new core_1.EventEmitter();
333
- /**
334
- * @hidden
335
- *
336
- * Fires when the user changes the locked state of the columns from the column menu or by reordering the columns.
337
- */
338
- this.columnLockedChange = new core_1.EventEmitter();
339
- /**
340
- * Fires when a cell is clicked.
341
- */
342
- this.cellClick = new core_1.EventEmitter();
343
- /**
344
- * Fires when a task is clicked.
345
- */
346
- this.taskClick = new core_1.EventEmitter();
347
- /**
348
- * @hidden
349
- *
350
- * Specifies whether the dependency drag clues will be rendered.
351
- * Set internally by the dependency-drag-create directive.
352
- *
353
- * @default false
354
- */
355
- this.renderDependencyDragClues = false;
356
- /**
357
- * @hidden
358
- *
359
- * Used by the GanttExpandableDirective.
360
- */
361
- this.expandStateChange = new core_1.EventEmitter();
362
- /**
363
- * @hidden
364
- */
365
- this.showEditingDialog = false;
366
- /**
367
- * @hidden
368
- */
369
- this.showConfirmationDialog = false;
370
- this._columns = new core_1.QueryList();
371
- this._data = [];
372
- this._dragScrollSettings = tslib_1.__assign({}, DEFAULT_DRAG_SCROLL_SETTINGS);
373
- this._timelinePaneOptions = tslib_1.__assign({}, splitter_pane_options_interface_1.DEFAULT_TIMELINE_PANE_SETTINGS);
374
- this._treeListPaneOptions = tslib_1.__assign({}, splitter_pane_options_interface_1.DEFAULT_TREELIST_PANE_SETTINGS);
375
- this._rowClass = default_callbacks_1.rowClassCallback;
376
- this._taskClass = default_callbacks_1.taskClassCallback;
377
- this._activeView = DEFAULT_VIEW;
378
- this._toolbarSettings = {
379
- position: 'top',
380
- addTaskTool: 'none',
381
- viewSelectorTool: 'top'
382
- };
383
- this._fetchChildren = default_callbacks_1.fetchChildren;
384
- this._hasChildren = default_callbacks_1.hasChildren;
385
- this.rtl = false;
386
- this.optionChangesSubscriptions = new rxjs_1.Subscription();
387
- this.editServiceSubscription = new rxjs_1.Subscription();
388
- kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
389
- this.optionChangesSubscriptions.add(this.optionChangesService.viewChanges.subscribe(function () {
390
- _this.loadTimelineData();
391
- }));
392
- this.optionChangesSubscriptions.add(this.optionChangesService.columnChanges.subscribe(function () {
393
- _this.treeList.columns.notifyOnChanges();
394
- }));
395
- this.editService.getSelectedItem = this.getFirstSelectedItem.bind(this);
396
- this.editServiceSubscription.add(this.editService.showEditingDialog.subscribe(function (show) { return _this.showEditingDialog = show; }));
397
- this.editServiceSubscription.add(this.editService.taskDelete.subscribe(function (task) {
398
- if (kendo_angular_common_1.hasObservers(_this.taskDelete)) {
399
- _this.zone.run(function () {
400
- return _this.notifyTaskDelete(task);
401
- });
402
- }
403
- }));
404
- this.editServiceSubscription.add(this.editService.editEvent.subscribe(function (args) {
405
- _this[args.editResultType].emit({
406
- taskFormGroup: args.taskFormGroup,
407
- item: utils_2.getEditItem(args.dataItem, _this.treeList.view.data, _this.mapper),
408
- dependencies: args.dependencies,
409
- sender: _this
410
- });
411
- _this.showConfirmationDialog = _this.showEditingDialog = false;
412
- _this.editService.dataItem = _this.editService.taskFormGroup = null;
413
- _this.updateView();
414
- if (_this.navigable) {
415
- _this.focus();
416
- }
417
- }));
418
- this.editServiceSubscription.add(this.editService.addEvent.subscribe(function (args) {
419
- var selectedItem = _this.getFirstSelectedItem();
420
- _this.taskAdd.emit({
421
- actionType: args.actionType,
422
- selectedItem: selectedItem ? utils_2.getEditItem(selectedItem, _this.treeList.view.data, _this.mapper) : null
423
- });
424
- _this.updateView();
425
- }));
426
- this.localizationSubscription = this.localizationService.changes.subscribe(function (_a) {
427
- var rtl = _a.rtl;
428
- _this.rtl = rtl;
429
- _this.direction = _this.rtl ? 'rtl' : 'ltr';
430
- });
431
- }
432
- GanttComponent_1 = GanttComponent;
433
- Object.defineProperty(GanttComponent.prototype, "toolbarTemplate", {
434
- get: function () {
435
- if (this._customToolbarTemplate) {
436
- return this._customToolbarTemplate;
437
- }
438
- return this.toolbarTemplateChildren ? this.toolbarTemplateChildren.first : undefined;
439
- },
440
- set: function (customToolbarTemplate) {
441
- this._customToolbarTemplate = customToolbarTemplate;
442
- },
443
- enumerable: true,
444
- configurable: true
445
- });
446
- Object.defineProperty(GanttComponent.prototype, "hostRoleDescriptionAttr", {
447
- get: function () {
448
- return this.roleDescription;
449
- },
450
- enumerable: true,
451
- configurable: true
452
- });
453
- Object.defineProperty(GanttComponent.prototype, "hostRoleAttr", {
454
- get: function () {
455
- return this.role;
456
- },
457
- enumerable: true,
458
- configurable: true
459
- });
460
- Object.defineProperty(GanttComponent.prototype, "dir", {
461
- get: function () {
462
- return this.direction;
463
- },
464
- enumerable: true,
465
- configurable: true
466
- });
467
- Object.defineProperty(GanttComponent.prototype, "columns", {
468
- get: function () {
469
- return this._columns;
470
- },
471
- /**
472
- * A query list of all declared columns.
473
- */
474
- set: function (columns) {
475
- this._columns = columns;
476
- this.updateTreeListGroupClass(columns);
477
- },
478
- enumerable: true,
479
- configurable: true
480
- });
481
- Object.defineProperty(GanttComponent.prototype, "taskModelFields", {
482
- /**
483
- * Sets the fields which will be used to extract the task data from the provided `data` array items.
484
- * The `id` field is also used as a TreeList data item unique identifier (defaults to `'id'`).
485
- *
486
- * > If no object is provided, the Gantt task data items will have to conform to the [`GanttTask`]({% slug api_gantt_gantttask %}) interface.
487
- */
488
- set: function (fields) {
489
- this.mapper.taskFields = fields;
490
- },
491
- enumerable: true,
492
- configurable: true
493
- });
494
- Object.defineProperty(GanttComponent.prototype, "dependencyModelFields", {
495
- /**
496
- * Sets the fields which will be used to extract the dependency data from the provided `dependencies` array items.
497
- *
498
- * > If no object is provided, the Gantt dependency data items will have to conform to the [`GanttDependency`]({% slug api_gantt_ganttdependency %}) interface.
499
- */
500
- set: function (fields) {
501
- this.mapper.dependencyFields = fields;
502
- },
503
- enumerable: true,
504
- configurable: true
505
- });
506
- Object.defineProperty(GanttComponent.prototype, "activeView", {
507
- get: function () {
508
- var _this = this;
509
- /**
510
- * If the default/provided activeView is not among the provided views,
511
- * fallback to setting the first provided view as active
512
- */
513
- var view = this.views.find(function (view) { return view.type === _this._activeView; }) ?
514
- this._activeView :
515
- this.views.first.type;
516
- return view;
517
- },
518
- /**
519
- * The active timeline view.
520
- * @default 'week'
521
- */
522
- set: function (view) {
523
- this._activeView = view;
524
- },
525
- enumerable: true,
526
- configurable: true
527
- });
528
- Object.defineProperty(GanttComponent.prototype, "data", {
529
- get: function () {
530
- return this._data;
531
- },
532
- /**
533
- * Gets or sets the data of the Gantt.
534
- *
535
- * > The task data items should either conform to the [`GanttTask`]({% slug api_gantt_gantttask %}) interface, or a [`taskModelFields`]({% slug api_gantt_ganttcomponent %}#toc-taskmodelfields) object has to be provided.
536
- */
537
- set: function (data) {
538
- this._data = utils_1.normalizeGanttData(data);
539
- this.loadTimelineData();
540
- },
541
- enumerable: true,
542
- configurable: true
543
- });
544
- Object.defineProperty(GanttComponent.prototype, "toolbarSettings", {
545
- get: function () {
546
- return this._toolbarSettings;
547
- },
548
- /**
549
- * The toolbar configuration. Defines the position and content of the toolbar(s).
550
- * The available properties are `position`, `addTaskTool`, and `viewSelectorTool`.
551
- * All are optional and default to `top`.
552
- *
553
- * The possible values for each option are:
554
- * - `top`&mdash;Positions the toolbar above the Gantt panes. Renders the respective tool in the top toolbar.
555
- * - `bottom`&mdash;Positions the toolbar below the Gantt panes. Renders the respective tool in the bottom toolbar.
556
- * - `both`&mdash;Displays two toolbar instances. Positions the first one above,
557
- * and the second one - below the Gantt panes. Renders the respective tool in the both toolbars.
558
- * - `none`&mdash;No toolbar is rendered when used for setting `position`.
559
- * No add task or view selector tool is rendered when used for setting `addTaskTool` or `viewSelectorTool`.
560
- */
561
- set: function (value) {
562
- this._toolbarSettings = {
563
- position: value.position || 'top',
564
- addTaskTool: value.addTaskTool || 'none',
565
- viewSelectorTool: value.viewSelectorTool || 'top'
566
- };
567
- },
568
- enumerable: true,
569
- configurable: true
570
- });
571
- Object.defineProperty(GanttComponent.prototype, "fetchChildren", {
572
- get: function () {
573
- return this._fetchChildren;
574
- },
575
- /**
576
- * Gets or sets the callback function that retrieves the child items for a particular item.
577
- */
578
- set: function (fn) {
579
- this._fetchChildren = fn;
580
- this.editService.fetchChildren = fn;
581
- },
582
- enumerable: true,
583
- configurable: true
584
- });
585
- Object.defineProperty(GanttComponent.prototype, "hasChildren", {
586
- get: function () {
587
- return this._hasChildren;
588
- },
589
- /**
590
- * Gets or sets the callback function that indicates if a particular item has child items.
591
- */
592
- set: function (fn) {
593
- this._hasChildren = fn;
594
- this.editService.hasChildren = fn;
595
- },
596
- enumerable: true,
597
- configurable: true
598
- });
599
- Object.defineProperty(GanttComponent.prototype, "timelinePaneOptions", {
600
- get: function () {
601
- return tslib_1.__assign({}, this._timelinePaneOptions, { size: this.treeListPaneOptions.collapsed ? '100%' : this._timelinePaneOptions.size });
602
- },
603
- /**
604
- * The options of the timeline splitter pane. By default the pane is `collapsible`,
605
- * `resizable`, not `collapsed`, and its `size` is `'50%'`.
606
- */
607
- set: function (value) {
608
- if (this._timelinePaneOptions.collapsed && !value.collapsed) {
609
- this.dependencyDomService.notifyChanges();
610
- }
611
- this._timelinePaneOptions = tslib_1.__assign({}, splitter_pane_options_interface_1.DEFAULT_TIMELINE_PANE_SETTINGS, value);
612
- },
613
- enumerable: true,
614
- configurable: true
615
- });
616
- Object.defineProperty(GanttComponent.prototype, "treeListPaneOptions", {
617
- get: function () {
618
- return this._treeListPaneOptions;
619
- },
620
- /**
621
- * The options of the treelist splitter pane.
622
- * By default the pane is `collapsible` and not `collapsed`.
623
- */
624
- set: function (value) {
625
- this._treeListPaneOptions = tslib_1.__assign({}, splitter_pane_options_interface_1.DEFAULT_TREELIST_PANE_SETTINGS, value);
626
- },
627
- enumerable: true,
628
- configurable: true
629
- });
630
- Object.defineProperty(GanttComponent.prototype, "taskClass", {
631
- get: function () {
632
- return this._taskClass;
633
- },
634
- /**
635
- * Defines a function that is executed for every task in the component.
636
- * The classes returned from the function are applied to the task wrapper element.
637
- */
638
- set: function (fn) {
639
- if (core_1.isDevMode() && typeof fn !== 'function') {
640
- throw new Error("taskClass must be a function, but received " + JSON.stringify(fn) + ".");
641
- }
642
- this._taskClass = fn;
643
- },
644
- enumerable: true,
645
- configurable: true
646
- });
647
- Object.defineProperty(GanttComponent.prototype, "rowClass", {
648
- get: function () {
649
- return this._rowClass;
650
- },
651
- /**
652
- * Defines a function that is executed for every data row in the component.
653
- */
654
- set: function (fn) {
655
- if (core_1.isDevMode() && typeof fn !== 'function') {
656
- throw new Error("rowClass must be a function, but received " + JSON.stringify(fn) + ".");
657
- }
658
- this._rowClass = fn;
659
- },
660
- enumerable: true,
661
- configurable: true
662
- });
663
- Object.defineProperty(GanttComponent.prototype, "taskIdField", {
664
- /**
665
- * The name of the field which contains the unique identifier of the task data item.
666
- * Defaults to 'id'.
667
- */
668
- get: function () {
669
- return this.mapper.taskFields.id;
670
- },
671
- enumerable: true,
672
- configurable: true
673
- });
674
- Object.defineProperty(GanttComponent.prototype, "dragScrollSettings", {
675
- get: function () {
676
- return this._dragScrollSettings;
677
- },
678
- /**
679
- * Specifies the settings for auto-scrolling during dragging
680
- * when the pointer moves outside of the container bounderies
681
- * [see example]({% slug editing_drag_create_dependencies_gantt %}#toc-auto-scrolling).
682
- */
683
- set: function (settings) {
684
- this._dragScrollSettings = tslib_1.__assign({}, DEFAULT_DRAG_SCROLL_SETTINGS, settings);
685
- },
686
- enumerable: true,
687
- configurable: true
688
- });
689
- Object.defineProperty(GanttComponent.prototype, "renderedTreeListItems", {
690
- /**
691
- * @hidden
692
- */
693
- get: function () {
694
- if (!utils_1.isPresent(this.treeList)) {
695
- return [];
696
- }
697
- return this.treeList.view.data.map(function (item) { return item.data; });
698
- },
699
- enumerable: true,
700
- configurable: true
701
- });
702
- Object.defineProperty(GanttComponent.prototype, "viewItems", {
703
- /**
704
- * @hidden
705
- */
706
- get: function () {
707
- if (!utils_1.isPresent(this.treeList)) {
708
- return [];
709
- }
710
- return this.treeList.view.data;
711
- },
712
- enumerable: true,
713
- configurable: true
714
- });
715
- Object.defineProperty(GanttComponent.prototype, "filterMenu", {
716
- /**
717
- * @hidden
718
- */
719
- get: function () {
720
- return this.filterable ? 'menu' : false;
721
- },
722
- enumerable: true,
723
- configurable: true
724
- });
725
- Object.defineProperty(GanttComponent.prototype, "viewService", {
726
- /**
727
- * @hidden
728
- */
729
- get: function () {
730
- if (!this.views || !this.views.length) {
731
- return null;
732
- }
733
- // TODO: review if this is a performance concern?
734
- return this.timelineViewService.service(this.activeView);
735
- },
736
- enumerable: true,
737
- configurable: true
738
- });
739
- Object.defineProperty(GanttComponent.prototype, "isTaskSelected", {
740
- /**
741
- * @hidden
742
- *
743
- * Retrieves the `isSelected` callback if `selectable` is set to `true`
744
- * Otherwise returns the default callback, which always returns `false`.
745
- */
746
- get: function () {
747
- return this.selectable ? this.isSelected : default_callbacks_1.isSelected;
748
- },
749
- enumerable: true,
750
- configurable: true
751
- });
752
- Object.defineProperty(GanttComponent.prototype, "idGetter", {
753
- /**
754
- * @hidden
755
- *
756
- * Used by the GanttExpandableDirective.
757
- */
758
- get: function () {
759
- if (utils_1.isPresent(this.treeList)) {
760
- return this.treeList.idGetter;
761
- }
762
- },
763
- enumerable: true,
764
- configurable: true
765
- });
766
- Object.defineProperty(GanttComponent.prototype, "viewTypes", {
767
- /**
768
- * @hidden
769
- *
770
- * Used by the views selector.
771
- */
772
- get: function () {
773
- return this.views.map(function (view) { return view.type; });
774
- },
775
- enumerable: true,
776
- configurable: true
777
- });
778
- Object.defineProperty(GanttComponent.prototype, "isInEditMode", {
779
- /**
780
- * @hidden
781
- */
782
- get: function () {
783
- return this.showEditingDialog || this.showConfirmationDialog || this.treeList.isEditing();
784
- },
785
- enumerable: true,
786
- configurable: true
787
- });
788
- GanttComponent.prototype.ngOnChanges = function (changes) {
789
- if (kendo_angular_common_1.anyChanged(['data', 'activeView', 'workWeekStart', 'workWeekEnd', 'workDayStart', 'workDayEnd'], changes)) {
790
- this.loadTimelineData();
791
- }
792
- };
793
- GanttComponent.prototype.ngAfterViewInit = function () {
794
- this.updateTreeListMargin();
795
- if (this.navigable) {
796
- this.navigationService.initialize({
797
- gantt: this,
798
- host: this.hostElement.nativeElement,
799
- treeListElement: this.treeList.wrapper.nativeElement,
800
- timelineElement: this.timeline.timelineContent.nativeElement
801
- });
802
- }
803
- var leftContainer = this.treeList.wrapper.nativeElement.querySelector('kendo-treelist-list > div');
804
- this.scrollSyncService.registerElement(leftContainer, 'treelist');
805
- };
806
- GanttComponent.prototype.ngAfterContentInit = function () {
807
- if (core_1.isDevMode() && this.views.length === 0) {
808
- throw new Error('No views declared for <kendo-gantt>. Please, declare at least one view.');
809
- }
810
- this.loadTimelineData();
811
- this.updateTreeListGroupClass();
812
- };
813
- GanttComponent.prototype.ngOnDestroy = function () {
814
- this.optionChangesSubscriptions.unsubscribe();
815
- this.editServiceSubscription.unsubscribe();
816
- if (this.localizationSubscription) {
817
- this.localizationSubscription.unsubscribe();
818
- }
819
- };
820
- /**
821
- * Focuses the last active cell or task in the Gantt.
822
- * If no item has previously been focused, the first cell of the TreeList part will receive focus,
823
- * ([see example]({% slug keyboard_navigation_gantt %}#toc-controlling-the-focus)).
824
- */
825
- GanttComponent.prototype.focus = function () {
826
- if (this.navigable) {
827
- this.navigationService.focusLastActiveItem();
828
- }
829
- };
830
- /**
831
- * Focuses the targeted cell in the TreeList part of the component,
832
- * ([see example]({% slug keyboard_navigation_gantt %}#toc-controlling-the-focus)).
833
- */
834
- GanttComponent.prototype.focusCell = function (rowIndex, colIndex) {
835
- if (this.navigable) {
836
- this.navigationService.focusCell(rowIndex, colIndex);
837
- }
838
- };
839
- /**
840
- * Focuses the targeted task in the Timeline part of the component,
841
- * ([see example]({% slug keyboard_navigation_gantt %}#toc-controlling-the-focus)).
842
- */
843
- GanttComponent.prototype.focusTask = function (taskIndex) {
844
- if (this.navigable) {
845
- this.navigationService.focusTask(taskIndex);
846
- }
847
- };
848
- /**
849
- * Applies the minimum possible width for the specified column,
850
- * so that the whole text fits without wrapping. This method expects the Gantt
851
- * to be resizable (set `resizable` to `true`).
852
- * Makes sense to execute this method only after the Gantt is already populated with data.
853
- */
854
- GanttComponent.prototype.autoFitColumn = function (column) {
855
- if (utils_1.isPresent(this.treeList)) {
856
- this.treeList.autoFitColumn(column);
857
- }
858
- };
859
- /**
860
- * Adjusts the width of the specified columns to fit the entire content, including headers, without wrapping.
861
- * If no columns are specified, `autoFitColumns` is applied to all columns.
862
- *
863
- * This method requires the Gantt to be resizable (set `resizable` to `true`).
864
- */
865
- GanttComponent.prototype.autoFitColumns = function (columns) {
866
- if (columns === void 0) { columns = this.columns; }
867
- if (utils_1.isPresent(this.treeList)) {
868
- this.treeList.autoFitColumns(columns);
869
- }
870
- };
871
- /**
872
- * Clears the already loaded children for the dataItem so that the Gantt will fetch them again the next time it is rendered.
873
- */
874
- GanttComponent.prototype.reload = function (dataItem, reloadChildren) {
875
- if (utils_1.isPresent(this.treeList)) {
876
- this.treeList.reload(dataItem, reloadChildren);
877
- }
878
- };
879
- /**
880
- * Changes the position of the specified column.
881
- * The reordering of columns operates only on the level
882
- * which is inferred by the source column.
883
- * For the `reorderColumn` method to work properly,
884
- * the `source` column has to be visible.
885
- *
886
- * @param {ColumnBase} source - The column whose position will be changed.
887
- * @param {number} destIndex - The new position of the column.
888
- * @param {ColumnReorderConfig} options - Additional options.
889
- */
890
- GanttComponent.prototype.reorderColumn = function (source, destIndex, options) {
891
- if (options === void 0) { options = { before: false }; }
892
- if (utils_1.isPresent(this.treeList)) {
893
- this.treeList.reorderColumn(source, destIndex, options);
894
- }
895
- };
896
- /**
897
- * Forces the TreeList to evaluate if some data items have changed and re-renders the rows information, if needed.
898
- * Recalculates and re-renders the Timeline period, if needed.
899
- * Redraws changed dependencies, if needed.
900
- * Executes all row-related callbacks anew.
901
- */
902
- GanttComponent.prototype.updateView = function () {
903
- if (utils_1.isPresent(this.treeList)) {
904
- this.treeList.updateView();
905
- }
906
- this.loadTimelineData();
907
- this.dependencyDomService.notifyChanges();
908
- };
909
- /**
910
- * Opens the task editing dialog.
911
- */
912
- GanttComponent.prototype.editTask = function (dataItem, formGroup) {
913
- var _this = this;
914
- if (!this.showEditingDialog) {
915
- var taskId_1 = this.mapper.extractFromTask(dataItem, 'id');
916
- var dependencies = this.dependencies.filter(function (item) {
917
- return _this.mapper.extractFromDependency(item, 'toId') === taskId_1
918
- || _this.mapper.extractFromDependency(item, 'fromId') === taskId_1;
919
- });
920
- this.editService.createEditDialog(dataItem, formGroup, dependencies);
921
- }
922
- };
923
- /**
924
- * Closes the task editing dialog.
925
- */
926
- GanttComponent.prototype.closeTaskDialog = function () {
927
- if (this.showEditingDialog) {
928
- this.editService.closeEditDialog();
929
- }
930
- };
931
- /**
932
- * Opens the delete task confirmation dialog.
933
- */
934
- GanttComponent.prototype.openConfirmationDialog = function () {
935
- this.showConfirmationDialog = true;
936
- };
937
- /**
938
- * @hidden
939
- */
940
- GanttComponent.prototype.handleConfirmationDialogClose = function () {
941
- this.showConfirmationDialog = false;
942
- if (this.navigable) {
943
- this.focus();
944
- }
945
- };
946
- /**
947
- * Opens a cell for editing.
948
- */
949
- GanttComponent.prototype.editCell = function (dataItem, column, formGroup) {
950
- this.treeList.editCell(dataItem, column, formGroup);
951
- };
952
- /**
953
- * Closes an edited cell.
954
- */
955
- GanttComponent.prototype.closeCell = function () {
956
- this.treeList.closeCell();
957
- };
958
- /**
959
- * @hidden
960
- */
961
- GanttComponent.prototype.handleCellClose = function (e) {
962
- this.cellClose.emit(Object.assign(e, { item: this.editItem, sender: this }));
963
- this.dependencyDomService.notifyChanges();
964
- };
965
- /**
966
- * @hidden
967
- */
968
- GanttComponent.prototype.onTreeListCollapsedChange = function (collapsed) {
969
- this.treeListPaneCollapsedChange.emit(collapsed);
970
- if (!collapsed) {
971
- this.scrollSyncService.syncScrollTop('timeline', 'treelist');
972
- }
973
- };
974
- /**
975
- * @hidden
976
- */
977
- GanttComponent.prototype.onTimelineCollapsedChange = function (collapsed) {
978
- this.timelinePaneCollapsedChange.emit(collapsed);
979
- if (!collapsed) {
980
- this.scrollSyncService.syncScrollTop('treelist', 'timeline');
981
- this.dependencyDomService.notifyChanges();
982
- }
983
- };
984
- /**
985
- * @hidden
986
- */
987
- GanttComponent.prototype.loadTimelineData = function () {
988
- if (!utils_1.isPresent(this.viewService)) {
989
- return;
990
- }
991
- var activeViewOptions = this.getActiveViewOptions();
992
- this.viewService.options = tslib_1.__assign({ workWeekStart: this.workWeekStart, workWeekEnd: this.workWeekEnd, workDayStart: this.workDayStart, workDayEnd: this.workDayEnd }, activeViewOptions);
993
- this.tableWidth = this.viewService.getTableWidth(this.data);
994
- var _a = this.viewService.getSlots(this.data), groupedSlots = _a[0], slots = _a[1];
995
- this.timelineSlots = slots;
996
- this.timelineGroupSlots = groupedSlots;
997
- };
998
- /**
999
- * @hidden
1000
- */
1001
- GanttComponent.prototype.showToolbar = function (position) {
1002
- return this.toolbarSettings.position !== 'none' && ([position, 'both'].indexOf(this.toolbarSettings.position) > -1);
1003
- };
1004
- /**
1005
- * @hidden
1006
- */
1007
- GanttComponent.prototype.handleColumnVisibilityChange = function (event) {
1008
- this.columnVisibilityChange.emit(event);
1009
- this.updateTreeListGroupClass();
1010
- };
1011
- /**
1012
- * @hidden
1013
- */
1014
- GanttComponent.prototype.onTimelinePaneSizeChange = function (e) {
1015
- this._timelinePaneOptions.size = e;
1016
- this.timelinePaneSizeChange.emit(e);
1017
- };
1018
- /**
1019
- * @hidden
1020
- */
1021
- GanttComponent.prototype.handleTimelineRightClick = function (event) {
1022
- var _this = this;
1023
- var target = event.target;
1024
- var gantt = this.hostElement.nativeElement;
1025
- if (!utils_1.isTask(target, gantt) || utils_1.isClearButton(target, gantt)) {
1026
- return;
1027
- }
1028
- if (kendo_angular_common_1.hasObservers(this.taskClick)) {
1029
- var taskIndex_1 = utils_1.getClosestTaskIndex(target, gantt);
1030
- var task_1 = this.renderedTreeListItems[taskIndex_1];
1031
- this.zone.run(function () { return _this.notifyTaskClick(event, task_1, taskIndex_1); });
1032
- }
1033
- };
1034
- /**
1035
- * @hidden
1036
- */
1037
- GanttComponent.prototype.handleTimelineClick = function (event) {
1038
- var _this = this;
1039
- var target = event.target;
1040
- var gantt = this.hostElement.nativeElement;
1041
- if (!utils_1.isTask(target, gantt) || utils_1.isClearButton(target, gantt)) {
1042
- return;
1043
- }
1044
- var taskIndex = utils_1.getClosestTaskIndex(target, gantt);
1045
- var task = this.renderedTreeListItems[taskIndex];
1046
- var selectionAction = this.getSelectionAction(event, task);
1047
- if ((kendo_angular_common_1.hasObservers(this.selectionChange) && !this.isSameSelection(selectionAction, task)) ||
1048
- kendo_angular_common_1.hasObservers(this.taskClick)) {
1049
- this.zone.run(function () {
1050
- _this.notifySelectionChange(task, selectionAction);
1051
- _this.notifyTaskClick(event, task, taskIndex);
1052
- });
1053
- }
1054
- };
1055
- /**
1056
- * @hidden
1057
- */
1058
- GanttComponent.prototype.handleTreeListDoubleClick = function (event) {
1059
- var _this = this;
1060
- if (!utils_1.isPresent(this.lastTreeListCellClick) || event.target !== this.lastTreeListCellClick.originalEvent.target) {
1061
- return;
1062
- }
1063
- this.editItem = utils_2.getEditItem(this.lastTreeListCellClick.dataItem, this.treeList.view.data, this.mapper);
1064
- if (kendo_angular_common_1.hasObservers(this.cellDblClick)) {
1065
- this.zone.run(function () {
1066
- _this.cellDblClick.emit({
1067
- column: _this.lastTreeListCellClick.column,
1068
- columnIndex: _this.lastTreeListCellClick.columnIndex,
1069
- dataItem: _this.lastTreeListCellClick.dataItem,
1070
- isEdited: _this.lastTreeListCellClick.isEdited,
1071
- originalEvent: _this.lastTreeListCellClick.originalEvent,
1072
- rowIndex: _this.lastTreeListCellClick.rowIndex,
1073
- type: 'dblclick',
1074
- sender: _this
1075
- });
1076
- });
1077
- }
1078
- };
1079
- /**
1080
- * @hidden
1081
- */
1082
- GanttComponent.prototype.handleTreeListSelectionChange = function (event) {
1083
- // prevent selection change from right-click
1084
- if (utils_1.isPresent(this.lastTreeListCellClick) && this.lastTreeListCellClick.type === 'contextmenu') {
1085
- return;
1086
- }
1087
- var task = event.items.map(function (item) { return item.dataItem; })[0]; // single selection only currently available
1088
- var action = event.action;
1089
- this.notifySelectionChange(task, action);
1090
- };
1091
- /**
1092
- * @hidden
1093
- */
1094
- GanttComponent.prototype.handleTreeListCellClick = function (event) {
1095
- this.lastTreeListCellClick = event;
1096
- this.cellClick.emit({
1097
- column: event.column,
1098
- columnIndex: event.columnIndex,
1099
- dataItem: event.dataItem,
1100
- isEdited: event.isEdited,
1101
- originalEvent: event.originalEvent,
1102
- rowIndex: event.rowIndex,
1103
- type: event.type,
1104
- sender: this
1105
- });
1106
- };
1107
- /**
1108
- * @hidden
1109
- */
1110
- GanttComponent.prototype.handleDeleteConfirmation = function () {
1111
- this.editService.triggerEditEvent('remove');
1112
- };
1113
- /**
1114
- * @hidden
1115
- */
1116
- GanttComponent.prototype.handleTimelineMouseDown = function (event) {
1117
- var target = event.target;
1118
- var gantt = this.hostElement.nativeElement;
1119
- if (!utils_1.isTask(target, gantt) || utils_1.isClearButton(target, gantt)) {
1120
- return;
1121
- }
1122
- event.preventDefault();
1123
- };
1124
- /**
1125
- * @hidden
1126
- */
1127
- GanttComponent.prototype.handleTimelineDblClick = function (event) {
1128
- var _this = this;
1129
- var target = event.target;
1130
- var gantt = this.hostElement.nativeElement;
1131
- if (!utils_1.isTask(target, gantt) || utils_1.isClearButton(target, gantt)) {
1132
- return;
1133
- }
1134
- if (kendo_angular_common_1.hasObservers(this.taskDblClick)) {
1135
- var taskIndex_2 = utils_1.getClosestTaskIndex(target, gantt);
1136
- var task_2 = this.renderedTreeListItems[taskIndex_2];
1137
- this.zone.run(function () { return _this.taskDblClick.emit({
1138
- dataItem: task_2,
1139
- originalEvent: event,
1140
- sender: _this,
1141
- index: taskIndex_2,
1142
- type: 'dblclick'
1143
- }); });
1144
- }
1145
- };
1146
- /**
1147
- * @hidden
1148
- */
1149
- GanttComponent.prototype.getText = function (token) {
1150
- return this.localizationService.get(token);
1151
- };
1152
- /**
1153
- * @hidden
1154
- */
1155
- GanttComponent.prototype.changeActiveView = function (view) {
1156
- if (view !== this.activeView) {
1157
- this.activeView = view;
1158
- this.loadTimelineData();
1159
- this.scrollSyncService.resetTimelineScrollLeft();
1160
- this.activeViewChange.emit(view);
1161
- }
1162
- };
1163
- /**
1164
- * @hidden
1165
- */
1166
- GanttComponent.prototype.notifyTaskClick = function (event, dataItem, itemIndex) {
1167
- // simulates the TreeList `cellClick` event triggered by enter press (type: 'click')
1168
- var type = event instanceof KeyboardEvent ? 'click' : event.type;
1169
- this.taskClick.emit({
1170
- originalEvent: event,
1171
- dataItem: dataItem,
1172
- index: itemIndex,
1173
- type: type,
1174
- sender: this
1175
- });
1176
- };
1177
- /**
1178
- * @hidden
1179
- */
1180
- GanttComponent.prototype.notifySelectionChange = function (dataItem, action) {
1181
- if (this.isSameSelection(action, dataItem)) {
1182
- return;
1183
- }
1184
- this.selectionChange.emit({
1185
- action: action,
1186
- items: [dataItem],
1187
- sender: this
1188
- });
1189
- this.treeList.updateView();
1190
- };
1191
- /**
1192
- * @hidden
1193
- */
1194
- GanttComponent.prototype.notifyTaskDelete = function (task) {
1195
- this.editService.dataItem = task;
1196
- this.taskDelete.emit({
1197
- item: utils_2.getEditItem(task, this.treeList.view.data, this.mapper),
1198
- sender: this
1199
- });
1200
- };
1201
- /**
1202
- * @hidden
1203
- */
1204
- GanttComponent.prototype.isSameSelection = function (action, dataItem) {
1205
- return action === 'select' && this.isSelected(dataItem);
1206
- };
1207
- /**
1208
- * @hidden
1209
- */
1210
- GanttComponent.prototype.getSelectionAction = function (_a, dataItem) {
1211
- var ctrlKey = _a.ctrlKey, metaKey = _a.metaKey;
1212
- var shouldToggleSelection = ctrlKey || metaKey;
1213
- return (shouldToggleSelection && this.isSelected(dataItem)) ? 'remove' : 'select';
1214
- };
1215
- GanttComponent.prototype.updateTreeListGroupClass = function (columns) {
1216
- if (columns === void 0) { columns = this.columns; }
1217
- if (!utils_1.isPresent(this.treeList)) {
1218
- return;
1219
- }
1220
- var hasColumns = utils_1.isPresent(columns) && columns.length > 0;
1221
- var hasVisibleGroupedColumns = hasColumns && columns.some(function (column) {
1222
- return utils_1.isColumnGroup(column) && column.childrenArray.some(function (childColumn) { return childColumn.isVisible; });
1223
- });
1224
- if (hasVisibleGroupedColumns) {
1225
- this.renderer.addClass(this.treeList.wrapper.nativeElement, TREELIST_GROUP_COLUMNS_CLASS);
1226
- }
1227
- else {
1228
- this.renderer.removeClass(this.treeList.wrapper.nativeElement, TREELIST_GROUP_COLUMNS_CLASS);
1229
- }
1230
- };
1231
- /**
1232
- * Used to hide the vertical scrollbar
1233
- */
1234
- GanttComponent.prototype.updateTreeListMargin = function () {
1235
- var treeListContentEl = this.treeList.wrapper.nativeElement.querySelector('.k-treelist .k-grid-content');
1236
- this.renderer.setStyle(treeListContentEl, 'margin-right', -Math.abs(utils_1.scrollbarWidth() - 1) + "px");
1237
- };
1238
- GanttComponent.prototype.getActiveViewOptions = function () {
1239
- var _this = this;
1240
- if (!this.views) {
1241
- return;
1242
- }
1243
- return this.views.find(function (view) { return view.type === _this.activeView; });
1244
- };
1245
- GanttComponent.prototype.getFirstSelectedItem = function () {
1246
- var isSelectedCallback = this.isSelected || default_callbacks_1.isSelected;
1247
- var loadedItems = this.renderedTreeListItems || [];
1248
- return loadedItems.find(isSelectedCallback);
1249
- };
1250
- GanttComponent.prototype.defaultValidateNewDependencyCallback = function (dependency) {
1251
- var _this = this;
1252
- var fromTaskId = this.mapper.extractFromDependency(dependency, 'fromId');
1253
- var toTaskId = this.mapper.extractFromDependency(dependency, 'toId');
1254
- var fromTask = this.treeList.view.data.find(function (task) {
1255
- return _this.mapper.extractFromTask(task.data, 'id') === fromTaskId;
1256
- });
1257
- var toTask = this.treeList.view.data.find(function (task) {
1258
- return _this.mapper.extractFromTask(task.data, 'id') === toTaskId;
1259
- });
1260
- // mark as invalid if the attempted dependency is lacking valid from- and to-tasks
1261
- // or when the from- and to-tasks are actually the same task
1262
- if (!utils_1.isPresent(fromTask) || !utils_1.isPresent(fromTask.data) ||
1263
- !utils_1.isPresent(toTask) || !utils_1.isPresent(toTask.data) ||
1264
- fromTask.data === toTask.data) {
1265
- return false;
1266
- }
1267
- var tasksDependentOnOneAnother = this.dependencies.some(function (current) {
1268
- var currentFromId = _this.mapper.extractFromDependency(current, 'fromId');
1269
- var currentToId = _this.mapper.extractFromDependency(current, 'toId');
1270
- return (fromTaskId === currentFromId && toTaskId === currentToId) ||
1271
- (toTaskId === currentFromId && fromTaskId === currentToId);
1272
- });
1273
- // mark as invalid if the attempted dependency is trying to connect already dependent tasks
1274
- // mark as invalid if the two tasks are in parent-child relationship
1275
- if (tasksDependentOnOneAnother || utils_1.areParentChild(fromTask, toTask)) {
1276
- return false;
1277
- }
1278
- var fromTaskStart = this.mapper.extractFromTask(fromTask.data, 'start');
1279
- var fromTaskEnd = this.mapper.extractFromTask(fromTask.data, 'end');
1280
- var toTaskStart = this.mapper.extractFromTask(toTask.data, 'start');
1281
- var toTaskEnd = this.mapper.extractFromTask(toTask.data, 'end');
1282
- // if the two tasks are available to be connected via a dependency,
1283
- // check if their start and end time allow for the attempted dependency type
1284
- switch (this.mapper.extractFromDependency(dependency, 'type')) {
1285
- // finish to finish (FF) — the from-task ends before the to-task can end
1286
- case models_1.DependencyType.FF:
1287
- return fromTaskEnd <= toTaskEnd;
1288
- // finish to start (FS) — the from-task ends before the to-task can begin
1289
- case models_1.DependencyType.FS:
1290
- return fromTaskEnd <= toTaskStart;
1291
- // start to finish (SF) — the from-task begins before the to-task can end
1292
- case models_1.DependencyType.SF:
1293
- return fromTaskStart <= toTaskEnd;
1294
- // start to start (SS) — the from-task begins before the to-task can begin
1295
- case models_1.DependencyType.SS:
1296
- return fromTaskStart <= toTaskStart;
1297
- default: return false;
1298
- }
1299
- };
1300
- var GanttComponent_1;
1301
- tslib_1.__decorate([
1302
- core_1.ViewChild(kendo_angular_treelist_1.TreeListComponent, { static: true }),
1303
- tslib_1.__metadata("design:type", kendo_angular_treelist_1.TreeListComponent)
1304
- ], GanttComponent.prototype, "treeList", void 0);
1305
- tslib_1.__decorate([
1306
- core_1.ViewChild(gantt_timeline_component_1.GanttTimelineComponent, { static: false }),
1307
- tslib_1.__metadata("design:type", gantt_timeline_component_1.GanttTimelineComponent)
1308
- ], GanttComponent.prototype, "timeline", void 0);
1309
- tslib_1.__decorate([
1310
- core_1.ContentChild(task_content_template_directive_1.GanttTaskContentTemplateDirective, { static: false }),
1311
- tslib_1.__metadata("design:type", task_content_template_directive_1.GanttTaskContentTemplateDirective)
1312
- ], GanttComponent.prototype, "taskContentTemplate", void 0);
1313
- tslib_1.__decorate([
1314
- core_1.ContentChild(task_template_directive_1.GanttTaskTemplateDirective, { static: false }),
1315
- tslib_1.__metadata("design:type", task_template_directive_1.GanttTaskTemplateDirective)
1316
- ], GanttComponent.prototype, "taskTemplate", void 0);
1317
- tslib_1.__decorate([
1318
- core_1.ContentChild(summary_task_template_directive_1.GanttSummaryTaskTemplateDirective, { static: false }),
1319
- tslib_1.__metadata("design:type", summary_task_template_directive_1.GanttSummaryTaskTemplateDirective)
1320
- ], GanttComponent.prototype, "summaryTaskTemplate", void 0);
1321
- tslib_1.__decorate([
1322
- core_1.ContentChildren(toolbar_template_directive_1.ToolbarTemplateDirective),
1323
- tslib_1.__metadata("design:type", core_1.QueryList)
1324
- ], GanttComponent.prototype, "toolbarTemplateChildren", void 0);
1325
- tslib_1.__decorate([
1326
- core_1.Input('aria-roledescription'),
1327
- tslib_1.__metadata("design:type", String)
1328
- ], GanttComponent.prototype, "roleDescription", void 0);
1329
- tslib_1.__decorate([
1330
- core_1.HostBinding('attr.aria-roledescription'),
1331
- tslib_1.__metadata("design:type", String),
1332
- tslib_1.__metadata("design:paramtypes", [])
1333
- ], GanttComponent.prototype, "hostRoleDescriptionAttr", null);
1334
- tslib_1.__decorate([
1335
- core_1.Input('role'),
1336
- tslib_1.__metadata("design:type", String)
1337
- ], GanttComponent.prototype, "role", void 0);
1338
- tslib_1.__decorate([
1339
- core_1.HostBinding('attr.role'),
1340
- tslib_1.__metadata("design:type", String),
1341
- tslib_1.__metadata("design:paramtypes", [])
1342
- ], GanttComponent.prototype, "hostRoleAttr", null);
1343
- tslib_1.__decorate([
1344
- core_1.HostBinding('class.k-gantt'),
1345
- tslib_1.__metadata("design:type", Boolean)
1346
- ], GanttComponent.prototype, "hostClasses", void 0);
1347
- tslib_1.__decorate([
1348
- core_1.HostBinding('attr.dir'),
1349
- tslib_1.__metadata("design:type", String),
1350
- tslib_1.__metadata("design:paramtypes", [])
1351
- ], GanttComponent.prototype, "dir", null);
1352
- tslib_1.__decorate([
1353
- core_1.ContentChildren(columns_1.GanttColumnBase),
1354
- tslib_1.__metadata("design:type", core_1.QueryList),
1355
- tslib_1.__metadata("design:paramtypes", [core_1.QueryList])
1356
- ], GanttComponent.prototype, "columns", null);
1357
- tslib_1.__decorate([
1358
- core_1.Input(),
1359
- tslib_1.__metadata("design:type", Object),
1360
- tslib_1.__metadata("design:paramtypes", [Object])
1361
- ], GanttComponent.prototype, "taskModelFields", null);
1362
- tslib_1.__decorate([
1363
- core_1.Input(),
1364
- tslib_1.__metadata("design:type", Object),
1365
- tslib_1.__metadata("design:paramtypes", [Object])
1366
- ], GanttComponent.prototype, "dependencyModelFields", null);
1367
- tslib_1.__decorate([
1368
- core_1.ContentChildren(view_base_1.ViewBase),
1369
- tslib_1.__metadata("design:type", core_1.QueryList)
1370
- ], GanttComponent.prototype, "views", void 0);
1371
- tslib_1.__decorate([
1372
- core_1.Input(),
1373
- tslib_1.__metadata("design:type", String),
1374
- tslib_1.__metadata("design:paramtypes", [String])
1375
- ], GanttComponent.prototype, "activeView", null);
1376
- tslib_1.__decorate([
1377
- core_1.Input(),
1378
- tslib_1.__metadata("design:type", Array),
1379
- tslib_1.__metadata("design:paramtypes", [Array])
1380
- ], GanttComponent.prototype, "data", null);
1381
- tslib_1.__decorate([
1382
- core_1.Input(),
1383
- tslib_1.__metadata("design:type", Function)
1384
- ], GanttComponent.prototype, "isSelected", void 0);
1385
- tslib_1.__decorate([
1386
- core_1.Input(),
1387
- tslib_1.__metadata("design:type", Function)
1388
- ], GanttComponent.prototype, "validateNewDependency", void 0);
1389
- tslib_1.__decorate([
1390
- core_1.Output(),
1391
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1392
- ], GanttComponent.prototype, "selectionChange", void 0);
1393
- tslib_1.__decorate([
1394
- core_1.Input(),
1395
- tslib_1.__metadata("design:type", Boolean)
1396
- ], GanttComponent.prototype, "selectable", void 0);
1397
- tslib_1.__decorate([
1398
- core_1.Input(),
1399
- tslib_1.__metadata("design:type", Object),
1400
- tslib_1.__metadata("design:paramtypes", [Object])
1401
- ], GanttComponent.prototype, "toolbarSettings", null);
1402
- tslib_1.__decorate([
1403
- core_1.Input(),
1404
- tslib_1.__metadata("design:type", Function),
1405
- tslib_1.__metadata("design:paramtypes", [Function])
1406
- ], GanttComponent.prototype, "fetchChildren", null);
1407
- tslib_1.__decorate([
1408
- core_1.Input(),
1409
- tslib_1.__metadata("design:type", Function),
1410
- tslib_1.__metadata("design:paramtypes", [Function])
1411
- ], GanttComponent.prototype, "hasChildren", null);
1412
- tslib_1.__decorate([
1413
- core_1.Input(),
1414
- tslib_1.__metadata("design:type", Array)
1415
- ], GanttComponent.prototype, "dependencies", void 0);
1416
- tslib_1.__decorate([
1417
- core_1.Input(),
1418
- tslib_1.__metadata("design:type", Object)
1419
- ], GanttComponent.prototype, "sortable", void 0);
1420
- tslib_1.__decorate([
1421
- core_1.Input(),
1422
- tslib_1.__metadata("design:type", Array)
1423
- ], GanttComponent.prototype, "sort", void 0);
1424
- tslib_1.__decorate([
1425
- core_1.Input(),
1426
- tslib_1.__metadata("design:type", Boolean)
1427
- ], GanttComponent.prototype, "filterable", void 0);
1428
- tslib_1.__decorate([
1429
- core_1.Input(),
1430
- tslib_1.__metadata("design:type", Object)
1431
- ], GanttComponent.prototype, "filter", void 0);
1432
- tslib_1.__decorate([
1433
- core_1.Input(),
1434
- tslib_1.__metadata("design:type", String)
1435
- ], GanttComponent.prototype, "workDayStart", void 0);
1436
- tslib_1.__decorate([
1437
- core_1.Input(),
1438
- tslib_1.__metadata("design:type", String)
1439
- ], GanttComponent.prototype, "workDayEnd", void 0);
1440
- tslib_1.__decorate([
1441
- core_1.Input(),
1442
- tslib_1.__metadata("design:type", Number)
1443
- ], GanttComponent.prototype, "workWeekStart", void 0);
1444
- tslib_1.__decorate([
1445
- core_1.Input(),
1446
- tslib_1.__metadata("design:type", Number)
1447
- ], GanttComponent.prototype, "workWeekEnd", void 0);
1448
- tslib_1.__decorate([
1449
- core_1.Input(),
1450
- tslib_1.__metadata("design:type", Boolean)
1451
- ], GanttComponent.prototype, "navigable", void 0);
1452
- tslib_1.__decorate([
1453
- core_1.Input(),
1454
- tslib_1.__metadata("design:type", Object),
1455
- tslib_1.__metadata("design:paramtypes", [Object])
1456
- ], GanttComponent.prototype, "timelinePaneOptions", null);
1457
- tslib_1.__decorate([
1458
- core_1.Input(),
1459
- tslib_1.__metadata("design:type", Object),
1460
- tslib_1.__metadata("design:paramtypes", [Object])
1461
- ], GanttComponent.prototype, "treeListPaneOptions", null);
1462
- tslib_1.__decorate([
1463
- core_1.Input(),
1464
- tslib_1.__metadata("design:type", Function),
1465
- tslib_1.__metadata("design:paramtypes", [Function])
1466
- ], GanttComponent.prototype, "taskClass", null);
1467
- tslib_1.__decorate([
1468
- core_1.Input(),
1469
- tslib_1.__metadata("design:type", Function),
1470
- tslib_1.__metadata("design:paramtypes", [Function])
1471
- ], GanttComponent.prototype, "rowClass", null);
1472
- tslib_1.__decorate([
1473
- core_1.Input(),
1474
- tslib_1.__metadata("design:type", Function)
1475
- ], GanttComponent.prototype, "isExpanded", void 0);
1476
- tslib_1.__decorate([
1477
- core_1.Input(),
1478
- tslib_1.__metadata("design:type", Boolean)
1479
- ], GanttComponent.prototype, "columnsAutoSize", void 0);
1480
- tslib_1.__decorate([
1481
- core_1.Input(),
1482
- tslib_1.__metadata("design:type", Object)
1483
- ], GanttComponent.prototype, "columnMenu", void 0);
1484
- tslib_1.__decorate([
1485
- core_1.Input(),
1486
- tslib_1.__metadata("design:type", Boolean)
1487
- ], GanttComponent.prototype, "columnsReorderable", void 0);
1488
- tslib_1.__decorate([
1489
- core_1.Input(),
1490
- tslib_1.__metadata("design:type", Boolean)
1491
- ], GanttComponent.prototype, "columnsResizable", void 0);
1492
- tslib_1.__decorate([
1493
- core_1.Input(),
1494
- tslib_1.__metadata("design:type", Object),
1495
- tslib_1.__metadata("design:paramtypes", [Object])
1496
- ], GanttComponent.prototype, "dragScrollSettings", null);
1497
- tslib_1.__decorate([
1498
- core_1.Output(),
1499
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1500
- ], GanttComponent.prototype, "rowExpand", void 0);
1501
- tslib_1.__decorate([
1502
- core_1.Output(),
1503
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1504
- ], GanttComponent.prototype, "taskDblClick", void 0);
1505
- tslib_1.__decorate([
1506
- core_1.Output(),
1507
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1508
- ], GanttComponent.prototype, "cellDblClick", void 0);
1509
- tslib_1.__decorate([
1510
- core_1.Output(),
1511
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1512
- ], GanttComponent.prototype, "cellClose", void 0);
1513
- tslib_1.__decorate([
1514
- core_1.Output(),
1515
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1516
- ], GanttComponent.prototype, "taskDelete", void 0);
1517
- tslib_1.__decorate([
1518
- core_1.Output(),
1519
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1520
- ], GanttComponent.prototype, "rowCollapse", void 0);
1521
- tslib_1.__decorate([
1522
- core_1.Output(),
1523
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1524
- ], GanttComponent.prototype, "remove", void 0);
1525
- tslib_1.__decorate([
1526
- core_1.Output(),
1527
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1528
- ], GanttComponent.prototype, "cancel", void 0);
1529
- tslib_1.__decorate([
1530
- core_1.Output(),
1531
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1532
- ], GanttComponent.prototype, "save", void 0);
1533
- tslib_1.__decorate([
1534
- core_1.Output(),
1535
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1536
- ], GanttComponent.prototype, "taskAdd", void 0);
1537
- tslib_1.__decorate([
1538
- core_1.Output(),
1539
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1540
- ], GanttComponent.prototype, "dependencyAdd", void 0);
1541
- tslib_1.__decorate([
1542
- core_1.Output(),
1543
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1544
- ], GanttComponent.prototype, "sortChange", void 0);
1545
- tslib_1.__decorate([
1546
- core_1.Output(),
1547
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1548
- ], GanttComponent.prototype, "filterChange", void 0);
1549
- tslib_1.__decorate([
1550
- core_1.Output(),
1551
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1552
- ], GanttComponent.prototype, "dataStateChange", void 0);
1553
- tslib_1.__decorate([
1554
- core_1.Output(),
1555
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1556
- ], GanttComponent.prototype, "treeListPaneCollapsedChange", void 0);
1557
- tslib_1.__decorate([
1558
- core_1.Output(),
1559
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1560
- ], GanttComponent.prototype, "timelinePaneCollapsedChange", void 0);
1561
- tslib_1.__decorate([
1562
- core_1.Output(),
1563
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1564
- ], GanttComponent.prototype, "timelinePaneSizeChange", void 0);
1565
- tslib_1.__decorate([
1566
- core_1.Output(),
1567
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1568
- ], GanttComponent.prototype, "activeViewChange", void 0);
1569
- tslib_1.__decorate([
1570
- core_1.Output(),
1571
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1572
- ], GanttComponent.prototype, "columnResize", void 0);
1573
- tslib_1.__decorate([
1574
- core_1.Output(),
1575
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1576
- ], GanttComponent.prototype, "columnReorder", void 0);
1577
- tslib_1.__decorate([
1578
- core_1.Output(),
1579
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1580
- ], GanttComponent.prototype, "columnVisibilityChange", void 0);
1581
- tslib_1.__decorate([
1582
- core_1.Output(),
1583
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1584
- ], GanttComponent.prototype, "columnLockedChange", void 0);
1585
- tslib_1.__decorate([
1586
- core_1.Output(),
1587
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1588
- ], GanttComponent.prototype, "cellClick", void 0);
1589
- tslib_1.__decorate([
1590
- core_1.Output(),
1591
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1592
- ], GanttComponent.prototype, "taskClick", void 0);
1593
- GanttComponent = GanttComponent_1 = tslib_1.__decorate([
1594
- core_1.Component({
1595
- selector: 'kendo-gantt',
1596
- exportAs: 'kendoGantt',
1597
- providers: [
1598
- gantt_localization_service_1.GanttLocalizationService,
1599
- kendo_angular_l10n_1.LocalizationService,
1600
- {
1601
- provide: kendo_angular_treelist_1.DataBoundTreeComponent,
1602
- useExisting: core_1.forwardRef(function () { return GanttComponent_1; })
1603
- },
1604
- {
1605
- provide: kendo_angular_treelist_1.ExpandableTreeComponent,
1606
- useExisting: core_1.forwardRef(function () { return GanttComponent_1; })
1607
- },
1608
- timeline_view_service_1.TimelineViewService,
1609
- timeline_day_view_service_1.TimelineDayViewService,
1610
- timeline_week_view_service_1.TimelineWeekViewService,
1611
- timeline_month_view_service_1.TimelineMonthViewService,
1612
- scroll_sync_service_1.ScrollSyncService,
1613
- dependency_dom_service_1.DependencyDomService,
1614
- mapping_service_1.MappingService,
1615
- option_changes_service_1.OptionChangesService,
1616
- edit_service_1.EditService,
1617
- timeline_scroll_service_1.TimelineScrollService,
1618
- navigation_service_1.NavigationService
1619
- ],
1620
- template: "\n <ng-container kendoGanttLocalizedMessages\n i18n-taskEditingGeneralTabTitle=\"kendo.gantt.taskEditingGeneralTabTitle|The title of the 'General' tab of the editing dialog TabStrip\"\n taskEditingGeneralTabTitle=\"General\"\n\n i18n-taskEditingPredecessorsTabTitle=\"kendo.gantt.taskEditingPredecessorsTabTitle|The title of the 'Predecessors' dependencies tab of the editing dialog TabStrip\"\n taskEditingPredecessorsTabTitle=\"Predecessors\"\n\n i18n-taskEditingSuccessorsTabTitle=\"kendo.gantt.taskEditingSuccessorsTabTitle|The title of the 'Successors' dependencies tab of the editing dialog TabStrip\"\n taskEditingSuccessorsTabTitle=\"Successors\"\n\n i18n-taskEditingDependenciesAddButtonText=\"kendo.gantt.taskEditingDependenciesAddButtonText|The text of the 'Add' button in the dependencies tabs of the editing dialog TabStrip\"\n taskEditingDependenciesAddButtonText=\"Add\"\n\n i18n-taskEditingDependenciesRemoveButtonText=\"kendo.gantt.taskEditingDependenciesRemoveButtonText|The text of the 'Remove' button in the dependencies tabs of the editing dialog TabStrip\"\n taskEditingDependenciesRemoveButtonText=\"Remove\"\n\n i18n-taskEditingDependenciesGridNameColumnTitle=\"kendo.gantt.taskEditingDependenciesGridNameColumnTitle|The title of the 'Task Title' Grid column in the dependencies tabs of the editing dialog TabStrip\"\n taskEditingDependenciesGridNameColumnTitle=\"Task Title\"\n\n i18n-taskEditingDependenciesGridTypeColumnTitle=\"kendo.gantt.taskEditingDependenciesGridTypeColumnTitle|The title of the 'Type' Grid column in the dependencies tabs of the editing dialog TabStrip\"\n taskEditingDependenciesGridTypeColumnTitle=\"Type\"\n\n i18n-taskDeleteLabel=\"kendo.gantt.taskDeleteLabel|The label of the task delete icon\"\n taskDeleteLabel=\"Delete\"\n\n i18n-taskEditingDialogTitle=\"kendo.gantt.taskEditingDialogTitle|The title of the task editing dialog\"\n taskEditingDialogTitle=\"Editing Task\"\n\n i18n-taskEditingDialogCloseTitle=\"kendo.gantt.taskEditingDialogCloseTitle|The title of the task editing dialog close button\"\n taskEditingDialogCloseTitle=\"Close\"\n\n i18n-confirmationDialogCloseTitle=\"kendo.gantt.confirmationDialogCloseTitle|The title of the confirmation dialog close button\"\n confirmationDialogCloseTitle=\"Close\"\n\n i18n-confirmationDialogTitle=\"kendo.gantt.confirmationDialogTitle|The title of the delete task confirmation dialog\"\n confirmationDialogTitle=\"Delete Task\"\n\n i18n-confirmationDialogContent=\"kendo.gantt.confirmationDialogContent|The content of the delete task confirmation dialog\"\n confirmationDialogContent=\"Are you sure you want to delete this task?\"\n\n i18n-deleteButtonText=\"kendo.gantt.deleteButtonText|The text of the task editing dialog 'Delete' button\"\n deleteButtonText=\"Delete\"\n\n i18n-cancelButtonText=\"kendo.gantt.cancelButtonText|The text of the task editing dialog 'Cancel' button\"\n cancelButtonText=\"Cancel\"\n\n i18n-saveButtonText=\"kendo.gantt.saveButtonText|The text of the task editing dialog 'Save' button\"\n saveButtonText=\"Save\"\n\n i18n-titleFieldInputLabel=\"kendo.gantt.titleFieldInputLabel|The label of the 'title' field input in editing mode\"\n titleFieldInputLabel=\"Title\"\n\n i18n-startFieldInputLabel=\"kendo.gantt.startFieldInputLabel|The label of the 'start' field input in editing mode\"\n startFieldInputLabel=\"Start\"\n\n i18n-endFieldInputLabel=\"kendo.gantt.endFieldInputLabel|The label of the 'end' field input in editing mode\"\n endFieldInputLabel=\"End\"\n\n i18n-completionRatioFieldInputLabel=\"kendo.gantt.completionRatioFieldInputLabel|The label of the 'completionRatio' field input in editing mode\"\n completionRatioFieldInputLabel=\"Progress\"\n\n i18n-dayViewText=\"kendo.gantt.dayViewText|The text of the day view in the ViewSelector component\"\n dayViewText=\"Day\"\n\n i18n-weekViewText=\"kendo.gantt.weekViewText|The text of the week view in the ViewSelector component\"\n weekViewText=\"Week\"\n\n i18n-monthViewText=\"kendo.gantt.monthViewText|The text of the month view in the ViewSelector component\"\n monthViewText=\"Month\"\n\n i18n-yearViewText-disabled=\"kendo.gantt.yearViewText|The text of the year view in the ViewSelector component\"\n yearViewText=\"Year\"\n\n i18n-addTaskText=\"kendo.gantt.addTaskText|The text of the DropDownButton in the AddTask component\"\n addTaskText=\"Add Task\"\n\n i18n-addChildText=\"kendo.gantt.addChildText|The text of the 'Add Child' option in the AddTask component\"\n addChildText=\"Add Child\"\n\n i18n-addAboveText=\"kendo.gantt.addAboveText|The text of the 'Add Above' option in the AddTask component\"\n addAboveText=\"Add Above\"\n\n i18n-addBelowText=\"kendo.gantt.addBelowText|The text of the 'Add Below' option in the AddTask component\"\n addBelowText=\"Add Below\"\n\n i18n-noRecords=\"kendo.gantt.noRecords|The label visible in the TreeList when there are no records\"\n noRecords=\"No records available.\"\n\n i18n-filter=\"kendo.gantt.filter|The label of the filter cell or icon\"\n filter=\"Filter\"\n\n i18n-filterEqOperator=\"kendo.gantt.filterEqOperator|The text of the equal filter operator\"\n filterEqOperator=\"Is equal to\"\n\n i18n-filterNotEqOperator=\"kendo.gantt.filterNotEqOperator|The text of the not equal filter operator\"\n filterNotEqOperator=\"Is not equal to\"\n\n i18n-filterIsNullOperator=\"kendo.gantt.filterIsNullOperator|The text of the is null filter operator\"\n filterIsNullOperator=\"Is null\"\n\n i18n-filterIsNotNullOperator=\"kendo.gantt.filterIsNotNullOperator|The text of the is not null filter operator\"\n filterIsNotNullOperator=\"Is not null\"\n\n i18n-filterIsEmptyOperator=\"kendo.gantt.filterIsEmptyOperator|The text of the is empty filter operator\"\n filterIsEmptyOperator=\"Is empty\"\n\n i18n-filterIsNotEmptyOperator=\"kendo.gantt.filterIsNotEmptyOperator|The text of the is not empty filter operator\"\n filterIsNotEmptyOperator=\"Is not empty\"\n\n i18n-filterStartsWithOperator=\"kendo.gantt.filterStartsWithOperator|The text of the starts with filter operator\"\n filterStartsWithOperator=\"Starts with\"\n\n i18n-filterContainsOperator=\"kendo.gantt.filterContainsOperator|The text of the contains filter operator\"\n filterContainsOperator=\"Contains\"\n\n i18n-filterNotContainsOperator=\"kendo.gantt.filterNotContainsOperator|The text of the does not contain filter operator\"\n filterNotContainsOperator=\"Does not contain\"\n\n i18n-filterEndsWithOperator=\"kendo.gantt.filterEndsWithOperator|The text of the ends with filter operator\"\n filterEndsWithOperator=\"Ends with\"\n\n i18n-filterGteOperator=\"kendo.gantt.filterGteOperator|The text of the greater than or equal filter operator\"\n filterGteOperator=\"Is greater than or equal to\"\n\n i18n-filterGtOperator=\"kendo.gantt.filterGtOperator|The text of the greater than filter operator\"\n filterGtOperator=\"Is greater than\"\n\n i18n-filterLteOperator=\"kendo.gantt.filterLteOperator|The text of the less than or equal filter operator\"\n filterLteOperator=\"Is less than or equal to\"\n\n i18n-filterLtOperator=\"kendo.gantt.filterLtOperator|The text of the less than filter operator\"\n filterLtOperator=\"Is less than\"\n\n i18n-filterIsTrue=\"kendo.gantt.filterIsTrue|The text of the IsTrue boolean filter option\"\n filterIsTrue=\"Is True\"\n\n i18n-filterIsFalse=\"kendo.gantt.filterIsFalse|The text of the IsFalse boolean filter option\"\n filterIsFalse=\"Is False\"\n\n i18n-filterBooleanAll=\"kendo.gantt.filterBooleanAll|The text of the (All) boolean filter option\"\n filterBooleanAll=\"(All)\"\n\n i18n-filterAfterOrEqualOperator=\"kendo.gantt.filterAfterOrEqualOperator|The text of the after or equal date filter operator\"\n filterAfterOrEqualOperator=\"Is after or equal to\"\n\n i18n-filterAfterOperator=\"kendo.gantt.filterAfterOperator|The text of the after date filter operator\"\n filterAfterOperator=\"Is after\"\n\n i18n-filterBeforeOperator=\"kendo.gantt.filterBeforeOperator|The text of the before date filter operator\"\n filterBeforeOperator=\"Is before\"\n\n i18n-filterBeforeOrEqualOperator=\"kendo.gantt.filterBeforeOrEqualOperator|The text of the before or equal date filter operator\"\n filterBeforeOrEqualOperator=\"Is before or equal to\"\n\n i18n-filterFilterButton=\"kendo.gantt.filterFilterButton|The text of the filter button\"\n filterFilterButton=\"Filter\"\n\n i18n-filterClearButton=\"kendo.gantt.filterClearButton|The text of the clear filter button\"\n filterClearButton=\"Clear\"\n\n i18n-filterAndLogic=\"kendo.gantt.filterAndLogic|The text of the And filter logic\"\n filterAndLogic=\"And\"\n\n i18n-filterOrLogic=\"kendo.gantt.filterOrLogic|The text of the Or filter logic\"\n filterOrLogic=\"Or\"\n\n i18n-loading=\"kendo.gantt.loading|The loading text\"\n loading=\"Loading\"\n\n i18n-columnMenu=\"kendo.gantt.columnMenu|The title of the column menu icon\"\n columnMenu=\"Column Menu\"\n\n i18n-columns=\"kendo.gantt.columns|The text shown in the column menu for the columns item\"\n columns=\"Columns\"\n\n i18n-lock-disabled=\"kendo.gantt.lock|The text shown in the column menu for the lock item\"\n lock-disabled=\"Lock\"\n\n i18n-unlock-disabled=\"kendo.gantt.unlock|The text shown in the column menu for the unlock item\"\n unlock-disabled=\"Unlock\"\n\n i18n-sortable=\"kendo.gantt.sortable|The label of the sort icon\"\n sortable=\"Sortable\"\n\n i18n-sortAscending=\"kendo.gantt.sortAscending|The text shown in the column menu for the sort ascending item\"\n sortAscending=\"Sort Ascending\"\n\n i18n-sortDescending=\"kendo.gantt.sortDescending|The text shown in the column menu for the sort descending item\"\n sortDescending=\"Sort Descending\"\n\n i18n-sortedAscending=\"kendo.gantt.sortedAscending|The status announcement when a column is sorted ascending\"\n sortedAscending=\"Sorted Ascending\"\n\n i18n-sortedDescending=\"kendo.gantt.sortedDescending|The status announcement when a column is sorted descending\"\n sortedDescending=\"Sorted Descending\"\n\n i18n-sortedDefault=\"kendo.gantt.sortedDefault|The status announcement when a column is no longer sorted\"\n sortedDefault=\"Not Sorted\"\n\n i18n-columnsApply=\"kendo.gantt.columnsApply|The text shown in the column menu or column chooser for the columns apply button\"\n columnsApply=\"Apply\"\n\n i18n-columnsReset=\"kendo.gantt.columnsReset|The text shown in the column menu or column chooser for the columns reset button\"\n columnsReset=\"Reset\"></ng-container>\n <kendo-gantt-toolbar\n *ngIf=\"showToolbar('top')\"\n [showAddTask]=\"toolbarSettings.addTaskTool === 'top' || toolbarSettings.addTaskTool === 'both'\"\n [showViewSelector]=\"toolbarSettings.viewSelectorTool === 'top' || toolbarSettings.viewSelectorTool === 'both'\"\n class=\"k-gantt-header k-toolbar k-gantt-toolbar\"\n position=\"top\"></kendo-gantt-toolbar>\n <div class=\"k-gantt-content\">\n <kendo-splitter [style.border]=\"0\">\n <kendo-splitter-pane\n class=\"k-gantt-treelist k-gantt-treelist-scrollable\"\n [collapsible]=\"treeListPaneOptions?.collapsible\"\n [collapsed]=\"treeListPaneOptions?.collapsed\"\n (collapsedChange)=\"onTreeListCollapsedChange($event)\"\n [scrollable]=\"false\">\n <kendo-treelist\n [idField]=\"taskIdField\"\n [columns]=\"columns\"\n [data]=\"data\"\n [hasChildren]=\"hasChildren\"\n [fetchChildren]=\"fetchChildren\"\n [navigable]=\"navigable\"\n [isExpanded]=\"isExpanded\"\n [autoSize]=\"columnsAutoSize\"\n [columnMenu]=\"columnMenu\"\n [reorderable]=\"columnsReorderable\"\n [resizable]=\"columnsResizable\"\n [rowClass]=\"rowClass\"\n [isSelected]=\"isSelected\"\n [selectable]=\"selectable\"\n [sortable]=\"sortable\"\n [sort]=\"sort\"\n [filterable]=\"filterMenu\"\n [filter]=\"filter\"\n (filterChange)=\"filterChange.emit($event)\"\n (sortChange)=\"sortChange.emit($event)\"\n (dataStateChange)=\"dataStateChange.emit({\n filter: $event.filter,\n sort: $event.sort\n })\"\n (expandStateChange)=\"expandStateChange.emit($event)\"\n (expand)=\"rowExpand.emit({ dataItem: $event.dataItem })\"\n (collapse)=\"rowCollapse.emit({ dataItem: $event.dataItem })\"\n (columnReorder)=\"columnReorder.emit($event)\"\n (columnResize)=\"columnResize.emit($event)\"\n (columnVisibilityChange)=\"handleColumnVisibilityChange($event)\"\n (columnLockedChange)=\"columnLockedChange.emit($event)\"\n (selectionChange)=\"handleTreeListSelectionChange($event)\"\n (cellClick)=\"handleTreeListCellClick($event)\"\n (cellClose)=\"handleCellClose($event)\"\n [kendoEventsOutsideAngular]=\"{\n dblclick: handleTreeListDoubleClick\n }\"\n [scope]=\"this\"\n >\n <kendo-treelist-messages\n [noRecords]=\"getText('noRecords')\"\n [filter]=\"getText('filter')\"\n [filterEqOperator]=\"getText('filterEqOperator')\"\n [filterNotEqOperator]=\"getText('filterNotEqOperator')\"\n [filterIsNullOperator]=\"getText('filterIsNullOperator')\"\n [filterIsNotNullOperator]=\"getText('filterIsNotNullOperator')\"\n [filterIsEmptyOperator]=\"getText('filterIsEmptyOperator')\"\n [filterIsNotEmptyOperator]=\"getText('filterIsNotEmptyOperator')\"\n [filterStartsWithOperator]=\"getText('filterStartsWithOperator')\"\n [filterContainsOperator]=\"getText('filterContainsOperator')\"\n [filterNotContainsOperator]=\"getText('filterNotContainsOperator')\"\n [filterEndsWithOperator]=\"getText('filterEndsWithOperator')\"\n [filterGteOperator]=\"getText('filterGteOperator')\"\n [filterGtOperator]=\"getText('filterGtOperator')\"\n [filterLteOperator]=\"getText('filterLteOperator')\"\n [filterLtOperator]=\"getText('filterLtOperator')\"\n [filterIsTrue]=\"getText('filterIsTrue')\"\n [filterIsFalse]=\"getText('filterIsFalse')\"\n [filterBooleanAll]=\"getText('filterBooleanAll')\"\n [filterAfterOrEqualOperator]=\"getText('filterAfterOrEqualOperator')\"\n [filterAfterOperator]=\"getText('filterAfterOperator')\"\n [filterBeforeOperator]=\"getText('filterBeforeOperator')\"\n [filterBeforeOrEqualOperator]=\"getText('filterBeforeOrEqualOperator')\"\n [filterFilterButton]=\"getText('filterFilterButton')\"\n [filterClearButton]=\"getText('filterClearButton')\"\n [filterAndLogic]=\"getText('filterAndLogic')\"\n [filterOrLogic]=\"getText('filterOrLogic')\"\n [loading]=\"getText('loading')\"\n [columnMenu]=\"getText('columnMenu')\"\n [columns]=\"getText('columns')\"\n [sortable]=\"getText('sortable')\"\n [sortAscending]=\"getText('sortAscending')\"\n [sortDescending]=\"getText('sortDescending')\"\n [sortedAscending]=\"getText('sortedAscending')\"\n [sortedDescending]=\"getText('sortedDescending')\"\n [sortedDefault]=\"getText('sortedDefault')\"\n [columnsApply]=\"getText('columnsApply')\"\n [columnsReset]=\"getText('columnsReset')\"\n >\n </kendo-treelist-messages>\n </kendo-treelist>\n </kendo-splitter-pane>\n <kendo-splitter-pane\n [collapsible]=\"timelinePaneOptions?.collapsible\"\n [resizable]=\"timelinePaneOptions?.resizable\"\n [collapsed]=\"timelinePaneOptions?.collapsed\"\n [min]=\"timelinePaneOptions?.min\"\n [max]=\"timelinePaneOptions?.max\"\n [size]=\"timelinePaneOptions?.size\"\n (collapsedChange)=\"onTimelineCollapsedChange($event)\"\n (sizeChange)=\"onTimelinePaneSizeChange($event)\"\n [scrollable]=\"false\">\n <kendo-gantt-timeline\n *ngIf=\"views && views.length\"\n [renderDependencyDragClues]=\"renderDependencyDragClues\"\n [dragScrollSettings]=\"dragScrollSettings\"\n [rows]=\"viewItems\"\n [slots]=\"timelineSlots\"\n [groupSlots]=\"timelineGroupSlots\"\n [tableWidth]=\"tableWidth\"\n [activeView]=\"activeView\"\n [taskContentTemplate]=\"taskContentTemplate?.templateRef\"\n [taskTemplate]=\"taskTemplate?.templateRef\"\n [summaryTaskTemplate]=\"summaryTaskTemplate?.templateRef\"\n [taskClass]=\"taskClass\"\n [dependencies]=\"dependencies\"\n [isExpanded]=\"isExpanded\"\n [selectable]=\"selectable\"\n [isTaskSelected]=\"isTaskSelected\"\n [kendoEventsOutsideAngular]=\"{\n click: handleTimelineClick,\n contextmenu: handleTimelineRightClick,\n dblclick: handleTimelineDblClick,\n mousedown: handleTimelineMouseDown\n }\"\n [scope]=\"this\"\n ></kendo-gantt-timeline>\n </kendo-splitter-pane>\n </kendo-splitter>\n </div>\n <kendo-gantt-toolbar\n *ngIf=\"showToolbar('bottom')\"\n [showAddTask]=\"toolbarSettings.addTaskTool === 'bottom' || toolbarSettings.addTaskTool === 'both'\"\n [showViewSelector]=\"toolbarSettings.viewSelectorTool === 'bottom' || toolbarSettings.viewSelectorTool === 'both'\"\n class=\"k-gantt-footer k-toolbar k-gantt-toolbar\"\n position=\"bottom\"></kendo-gantt-toolbar>\n <kendo-gantt-edit-dialog\n *ngIf=\"showEditingDialog\"\n [data]=\"data\">\n </kendo-gantt-edit-dialog>\n <kendo-dialog\n *ngIf=\"showConfirmationDialog\"\n [width]=\"575\"\n [height]=\"170\"\n [title]=\"getText('confirmationDialogTitle')\"\n (close)=\"handleConfirmationDialogClose()\">\n <span>{{ getText('confirmationDialogContent') }}</span>\n <kendo-dialog-actions layout=\"normal\">\n <kendo-treelist-spacer></kendo-treelist-spacer>\n <button kendoButton [primary]=\"true\" (click)=\"handleDeleteConfirmation()\">{{ getText('deleteButtonText') }}</button>\n <button kendoButton (click)=\"handleConfirmationDialogClose()\">{{ getText('cancelButtonText') }}</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n "
1621
- }),
1622
- tslib_1.__metadata("design:paramtypes", [timeline_view_service_1.TimelineViewService,
1623
- scroll_sync_service_1.ScrollSyncService,
1624
- core_1.Renderer2,
1625
- mapping_service_1.MappingService,
1626
- option_changes_service_1.OptionChangesService,
1627
- dependency_dom_service_1.DependencyDomService,
1628
- edit_service_1.EditService,
1629
- kendo_angular_l10n_1.LocalizationService,
1630
- core_1.ElementRef,
1631
- core_1.NgZone,
1632
- navigation_service_1.NavigationService])
1633
- ], GanttComponent);
1634
- return GanttComponent;
1635
- }());
1636
- exports.GanttComponent = GanttComponent;