@progress/kendo-angular-gantt 2.0.0-next.202204010911 → 2.0.0-next.202204121022

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 (229) hide show
  1. package/binding-directives/flat-binding.directive.d.ts +24 -0
  2. package/binding-directives/hierarchy-binding.directive.d.ts +22 -0
  3. package/bundles/kendo-angular-gantt.umd.js +1 -1
  4. package/columns/cell-template.directive.d.ts +28 -0
  5. package/columns/column-base.d.ts +85 -0
  6. package/columns/column-group.component.d.ts +103 -0
  7. package/columns/column-menu-template.directive.d.ts +22 -0
  8. package/columns/column.component.d.ts +130 -0
  9. package/columns/columns.d.ts +15 -0
  10. package/columns/edit-template.directive.d.ts +26 -0
  11. package/columns/filter-cell-template.directive.d.ts +21 -0
  12. package/columns/filter-menu-template.directive.d.ts +20 -0
  13. package/columns/footer-template.directive.d.ts +24 -0
  14. package/columns/header-template.directive.d.ts +22 -0
  15. package/columns/span-column.component.d.ts +112 -0
  16. package/common/default-callbacks.d.ts +25 -0
  17. package/common/mapping.service.d.ts +38 -0
  18. package/common/option-changes.service.d.ts +17 -0
  19. package/common/touch-enabled.d.ts +9 -0
  20. package/dependencies/dependency-dom.service.d.ts +46 -0
  21. package/dependencies/dom-dependency-args.d.ts +24 -0
  22. package/dependencies/gantt-dependency.directive.d.ts +29 -0
  23. package/dependencies/utils.d.ts +53 -0
  24. package/dragging/dependency-drag-create.directive.d.ts +75 -0
  25. package/dragging/drag-validation-tooltip.component.d.ts +32 -0
  26. package/editing/add-task.component.d.ts +48 -0
  27. package/editing/dependencies-table.component.d.ts +42 -0
  28. package/editing/edit-dialog.component.d.ts +33 -0
  29. package/editing/edit.service.d.ts +44 -0
  30. package/editing/task-fields.component.d.ts +25 -0
  31. package/editing/utils.d.ts +10 -0
  32. package/esm2015/binding-directives/flat-binding.directive.js +34 -0
  33. package/esm2015/binding-directives/hierarchy-binding.directive.js +32 -0
  34. package/esm2015/columns/cell-template.directive.js +37 -0
  35. package/esm2015/columns/column-base.js +52 -0
  36. package/esm2015/columns/column-group.component.js +94 -0
  37. package/esm2015/columns/column-menu-template.directive.js +31 -0
  38. package/esm2015/columns/column.component.js +133 -0
  39. package/esm2015/columns/columns.js +15 -0
  40. package/esm2015/columns/edit-template.directive.js +35 -0
  41. package/esm2015/columns/filter-cell-template.directive.js +30 -0
  42. package/esm2015/columns/filter-menu-template.directive.js +29 -0
  43. package/esm2015/columns/footer-template.directive.js +33 -0
  44. package/esm2015/columns/header-template.directive.js +31 -0
  45. package/esm2015/columns/span-column.component.js +86 -0
  46. package/esm2015/common/default-callbacks.js +25 -0
  47. package/esm2015/common/mapping.service.js +64 -0
  48. package/esm2015/common/option-changes.service.js +26 -0
  49. package/esm2015/common/touch-enabled.js +9 -0
  50. package/esm2015/dependencies/dependency-dom.service.js +70 -0
  51. package/esm2015/dependencies/dom-dependency-args.js +5 -0
  52. package/esm2015/dependencies/gantt-dependency.directive.js +82 -0
  53. package/esm2015/dependencies/utils.js +195 -0
  54. package/esm2015/dragging/dependency-drag-create.directive.js +318 -0
  55. package/esm2015/dragging/drag-validation-tooltip.component.js +90 -0
  56. package/esm2015/editing/add-task.component.js +109 -0
  57. package/esm2015/editing/dependencies-table.component.js +196 -0
  58. package/esm2015/editing/edit-dialog.component.js +170 -0
  59. package/esm2015/editing/edit.service.js +111 -0
  60. package/esm2015/editing/task-fields.component.js +101 -0
  61. package/esm2015/editing/utils.js +15 -0
  62. package/esm2015/expanded-state/expand-event.js +9 -0
  63. package/esm2015/expanded-state/expandable.directive.js +23 -0
  64. package/esm2015/gantt.component.js +2226 -0
  65. package/esm2015/gantt.module.js +264 -0
  66. package/esm2015/kendo-angular-gantt.js +8 -0
  67. package/esm2015/localization/custom-messages.component.js +41 -0
  68. package/esm2015/localization/gantt-localization.service.js +25 -0
  69. package/esm2015/localization/localized-messages.directive.js +36 -0
  70. package/esm2015/localization/messages.js +157 -0
  71. package/esm2015/main.js +37 -0
  72. package/esm2015/models/cell-content-type.interface.js +5 -0
  73. package/esm2015/models/class-callbacks.js +5 -0
  74. package/esm2015/models/column-menu-settings.interface.js +5 -0
  75. package/esm2015/models/column-reorder-config.js +5 -0
  76. package/esm2015/models/date-range.interface.js +5 -0
  77. package/esm2015/models/dependency-type.enum.js +20 -0
  78. package/esm2015/models/events/cell-click-event.interface.js +5 -0
  79. package/esm2015/models/events/cell-close-event.interface.js +14 -0
  80. package/esm2015/models/events/click-event.interface.js +5 -0
  81. package/esm2015/models/events/column-locked-change-event.interface.js +5 -0
  82. package/esm2015/models/events/column-reorder-event.interface.js +5 -0
  83. package/esm2015/models/events/column-resize-event.interface.js +5 -0
  84. package/esm2015/models/events/column-visibility-change-event.interface.js +5 -0
  85. package/esm2015/models/events/data-state-change-event.interface.js +5 -0
  86. package/esm2015/models/events/dependency-add-event.interface.js +5 -0
  87. package/esm2015/models/events/selected-view-change-event.interface.js +5 -0
  88. package/esm2015/models/events/task-add-event.interface.js +5 -0
  89. package/esm2015/models/events/task-click-event.interface.js +5 -0
  90. package/esm2015/models/events/task-delete-event.interface.js +5 -0
  91. package/esm2015/models/events/task-edit-event.interface.js +5 -0
  92. package/esm2015/models/events/task-move-end-event.interface.js +5 -0
  93. package/esm2015/models/events/task-move-event.interface.js +5 -0
  94. package/esm2015/models/events/task-move-start-event.interface.js +5 -0
  95. package/esm2015/models/events/task-resize-end-event.interface.js +5 -0
  96. package/esm2015/models/events/task-resize-event.interface.js +5 -0
  97. package/esm2015/models/events/task-resize-start-event.interface.js +5 -0
  98. package/esm2015/models/filterable-settings.js +5 -0
  99. package/esm2015/models/gantt-dependency-model-fields.interface.js +13 -0
  100. package/esm2015/models/gantt-dependency.interface.js +5 -0
  101. package/esm2015/models/gantt-task-model-fields.interface.js +15 -0
  102. package/esm2015/models/gantt-task.interface.js +5 -0
  103. package/esm2015/models/models.js +7 -0
  104. package/esm2015/models/slot.interface.js +5 -0
  105. package/esm2015/models/sort-settings.js +17 -0
  106. package/esm2015/models/splitter-pane-options.interface.js +20 -0
  107. package/esm2015/models/timeline-options.interface.js +5 -0
  108. package/esm2015/models/timeline-view.js +5 -0
  109. package/esm2015/models/toolbar-settings.js +5 -0
  110. package/esm2015/models/view-item.interface.js +5 -0
  111. package/esm2015/navigation/navigation-models.js +5 -0
  112. package/esm2015/navigation/navigation.service.js +265 -0
  113. package/esm2015/navigation/utils.js +69 -0
  114. package/esm2015/package-metadata.js +15 -0
  115. package/esm2015/rendering/gantt-header-table-body.component.js +42 -0
  116. package/esm2015/rendering/gantt-milestone-task.component.js +107 -0
  117. package/esm2015/rendering/gantt-summary-task.component.js +158 -0
  118. package/esm2015/rendering/gantt-task-base.js +148 -0
  119. package/esm2015/rendering/gantt-task.component.js +204 -0
  120. package/esm2015/rendering/gantt-tasks-table-body.component.js +160 -0
  121. package/esm2015/scrolling/drag-scroll-settings.js +20 -0
  122. package/esm2015/scrolling/scroll-sync.service.js +80 -0
  123. package/esm2015/scrolling/timeline-scroll.directive.js +75 -0
  124. package/esm2015/scrolling/timeline-scroll.service.js +39 -0
  125. package/esm2015/scrolling/utils.js +77 -0
  126. package/esm2015/selection/selectable.directive.js +112 -0
  127. package/esm2015/selection/selection-change-event.js +5 -0
  128. package/esm2015/template-directives/summary-task-template.directive.js +50 -0
  129. package/esm2015/template-directives/task-content-template.directive.js +45 -0
  130. package/esm2015/template-directives/task-template.directive.js +48 -0
  131. package/esm2015/timeline/gantt-timeline.component.js +334 -0
  132. package/esm2015/timeline/timeline-base-view.service.js +160 -0
  133. package/esm2015/timeline/timeline-day-view.component.js +38 -0
  134. package/esm2015/timeline/timeline-day-view.service.js +66 -0
  135. package/esm2015/timeline/timeline-month-view.component.js +38 -0
  136. package/esm2015/timeline/timeline-month-view.service.js +64 -0
  137. package/esm2015/timeline/timeline-view.service.js +35 -0
  138. package/esm2015/timeline/timeline-week-view.component.js +38 -0
  139. package/esm2015/timeline/timeline-week-view.service.js +60 -0
  140. package/esm2015/timeline/view-base.js +45 -0
  141. package/esm2015/toolbar/toolbar-template.directive.js +127 -0
  142. package/esm2015/toolbar/toolbar.component.js +94 -0
  143. package/esm2015/toolbar/view-selector.component.js +96 -0
  144. package/esm2015/utils.js +293 -0
  145. package/expanded-state/expand-event.d.ts +13 -0
  146. package/expanded-state/expandable.directive.d.ts +20 -0
  147. package/fesm2015/kendo-angular-gantt.js +7706 -0
  148. package/gantt.component.d.ts +750 -0
  149. package/gantt.module.d.ts +94 -0
  150. package/kendo-angular-gantt.d.ts +9 -0
  151. package/localization/custom-messages.component.d.ts +18 -0
  152. package/localization/gantt-localization.service.d.ts +18 -0
  153. package/localization/localized-messages.directive.d.ts +16 -0
  154. package/localization/messages.d.ts +293 -0
  155. package/main.d.ts +39 -0
  156. package/models/cell-content-type.interface.d.ts +10 -0
  157. package/models/class-callbacks.d.ts +43 -0
  158. package/models/column-menu-settings.interface.d.ts +26 -0
  159. package/models/column-reorder-config.d.ts +10 -0
  160. package/models/date-range.interface.d.ts +19 -0
  161. package/models/dependency-type.enum.d.ts +19 -0
  162. package/models/events/cell-click-event.interface.d.ts +43 -0
  163. package/models/events/cell-close-event.interface.d.ts +48 -0
  164. package/models/events/click-event.interface.d.ts +23 -0
  165. package/models/events/column-locked-change-event.interface.d.ts +16 -0
  166. package/models/events/column-reorder-event.interface.d.ts +10 -0
  167. package/models/events/column-resize-event.interface.d.ts +10 -0
  168. package/models/events/column-visibility-change-event.interface.d.ts +14 -0
  169. package/models/events/data-state-change-event.interface.d.ts +10 -0
  170. package/models/events/dependency-add-event.interface.d.ts +26 -0
  171. package/models/events/selected-view-change-event.interface.d.ts +19 -0
  172. package/models/events/task-add-event.interface.d.ts +31 -0
  173. package/models/events/task-click-event.interface.d.ts +30 -0
  174. package/models/events/task-delete-event.interface.d.ts +21 -0
  175. package/models/events/task-edit-event.interface.d.ts +76 -0
  176. package/models/events/task-move-end-event.interface.d.ts +12 -0
  177. package/models/events/task-move-event.interface.d.ts +23 -0
  178. package/models/events/task-move-start-event.interface.d.ts +15 -0
  179. package/models/events/task-resize-end-event.interface.d.ts +12 -0
  180. package/models/events/task-resize-event.interface.d.ts +23 -0
  181. package/models/events/task-resize-start-event.interface.d.ts +15 -0
  182. package/models/filterable-settings.d.ts +10 -0
  183. package/models/gantt-dependency-model-fields.interface.d.ts +35 -0
  184. package/models/gantt-dependency.interface.d.ts +26 -0
  185. package/models/gantt-task-model-fields.interface.d.ts +42 -0
  186. package/models/gantt-task.interface.d.ts +31 -0
  187. package/models/models.d.ts +42 -0
  188. package/models/slot.interface.d.ts +31 -0
  189. package/models/sort-settings.d.ts +42 -0
  190. package/models/splitter-pane-options.interface.d.ts +54 -0
  191. package/models/timeline-options.interface.d.ts +41 -0
  192. package/models/timeline-view.d.ts +8 -0
  193. package/models/toolbar-settings.d.ts +29 -0
  194. package/models/view-item.interface.d.ts +35 -0
  195. package/navigation/navigation-models.d.ts +38 -0
  196. package/navigation/navigation.service.d.ts +130 -0
  197. package/navigation/utils.d.ts +26 -0
  198. package/package-metadata.d.ts +9 -0
  199. package/package.json +10 -14
  200. package/rendering/gantt-header-table-body.component.d.ts +14 -0
  201. package/rendering/gantt-milestone-task.component.d.ts +22 -0
  202. package/rendering/gantt-summary-task.component.d.ts +25 -0
  203. package/rendering/gantt-task-base.d.ts +59 -0
  204. package/rendering/gantt-task.component.d.ts +26 -0
  205. package/rendering/gantt-tasks-table-body.component.d.ts +33 -0
  206. package/scrolling/drag-scroll-settings.d.ts +47 -0
  207. package/scrolling/scroll-sync.service.d.ts +33 -0
  208. package/scrolling/timeline-scroll.directive.d.ts +27 -0
  209. package/scrolling/timeline-scroll.service.d.ts +23 -0
  210. package/scrolling/utils.d.ts +29 -0
  211. package/selection/selectable.directive.d.ts +45 -0
  212. package/selection/selection-change-event.d.ts +25 -0
  213. package/template-directives/summary-task-template.directive.d.ts +41 -0
  214. package/template-directives/task-content-template.directive.d.ts +36 -0
  215. package/template-directives/task-template.directive.d.ts +39 -0
  216. package/timeline/gantt-timeline.component.d.ts +67 -0
  217. package/timeline/timeline-base-view.service.d.ts +77 -0
  218. package/timeline/timeline-day-view.component.d.ts +18 -0
  219. package/timeline/timeline-day-view.service.d.ts +38 -0
  220. package/timeline/timeline-month-view.component.d.ts +18 -0
  221. package/timeline/timeline-month-view.service.d.ts +38 -0
  222. package/timeline/timeline-view.service.d.ts +19 -0
  223. package/timeline/timeline-week-view.component.d.ts +18 -0
  224. package/timeline/timeline-week-view.service.d.ts +38 -0
  225. package/timeline/view-base.d.ts +34 -0
  226. package/toolbar/toolbar-template.directive.d.ts +112 -0
  227. package/toolbar/toolbar.component.d.ts +29 -0
  228. package/toolbar/view-selector.component.d.ts +43 -0
  229. package/utils.d.ts +166 -0
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,13 @@
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
+ /**
6
+ * @hidden
7
+ */
8
+ export const DEFAULT_DEPENDENCY_MODEL_FIELDS = Object.freeze({
9
+ toId: 'toId',
10
+ fromId: 'fromId',
11
+ id: 'id',
12
+ type: 'type'
13
+ });
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,15 @@
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
+ /**
6
+ * @hidden
7
+ */
8
+ export const DEFAULT_TASK_MODEL_FIELDS = Object.freeze({
9
+ id: 'id',
10
+ start: 'start',
11
+ end: 'end',
12
+ title: 'title',
13
+ completionRatio: 'completionRatio',
14
+ children: 'children'
15
+ });
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,7 @@
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
+ export * from './slot.interface';
6
+ export { DependencyType } from './dependency-type.enum';
7
+ export { CellCloseEvent } from './events/cell-close-event.interface';
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,17 @@
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
+ /**
6
+ * @hidden
7
+ */
8
+ const DEFAULTS = {
9
+ allowUnsort: true,
10
+ mode: 'single',
11
+ showIndexes: true,
12
+ initialDirection: 'asc'
13
+ };
14
+ /**
15
+ * @hidden
16
+ */
17
+ export const normalize = (...settings) => Object.assign({}, DEFAULTS, ...settings);
@@ -0,0 +1,20 @@
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
+ /**
6
+ * @hidden
7
+ */
8
+ export const DEFAULT_TREELIST_PANE_SETTINGS = Object.freeze({
9
+ collapsible: true,
10
+ collapsed: false
11
+ });
12
+ /**
13
+ * @hidden
14
+ */
15
+ export const DEFAULT_TIMELINE_PANE_SETTINGS = Object.freeze({
16
+ collapsible: true,
17
+ collapsed: false,
18
+ size: '50%',
19
+ resizable: true
20
+ });
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,265 @@
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
+ import { Injectable } from '@angular/core';
6
+ import { Subject } from 'rxjs';
7
+ import { fitToRange, getClosestTaskIndex, isClearButton, isPresent, isTask } from '../utils';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "../scrolling/scroll-sync.service";
10
+ /**
11
+ * @hidden
12
+ */
13
+ export class NavigationService {
14
+ constructor(zone, renderer, scrollSyncService) {
15
+ this.zone = zone;
16
+ this.renderer = renderer;
17
+ this.scrollSyncService = scrollSyncService;
18
+ /**
19
+ * Notifies when the tasks' focused and interactive (tabindex) state has changed.
20
+ *
21
+ * All tasks are rendered with tabindex="-1".
22
+ * When one is clicked, or when some navigation key keyboard key is pressed, it should be focused, assigned the focus class, and its tabindex updated to 0.
23
+ * All other tasks should get -1 tabindex and have the focus class removed from them.
24
+ */
25
+ this.taskStatusChanges = new Subject();
26
+ /**
27
+ * Keeps track of whether the Timeline part is focused.
28
+ * Used when the index of the task elements change (tasks are changed, pushed to, spliced from, etc.)
29
+ * and their status should be updated accordingly.
30
+ */
31
+ this.isTimelineFocused = false;
32
+ /**
33
+ * Keeps track of which part has last been focused.
34
+ * Used when calling `gantt.focus()` to determine which part of the component should receive focus.
35
+ */
36
+ this.treeListLastActive = false;
37
+ /**
38
+ * Keeps track of which part has last been focused.
39
+ * Used when calling `gantt.focus()` to determine which part of the component should receive focus.
40
+ */
41
+ this.timelineLastActive = false;
42
+ this._enabled = false;
43
+ this._activeTimelineIndex = 0;
44
+ this._activeTreeListCell = { rowIndex: 0, colIndex: 0 };
45
+ }
46
+ /**
47
+ * Specifies whether navigation is enabled.
48
+ */
49
+ get enabled() {
50
+ return this._enabled;
51
+ }
52
+ /**
53
+ * Used to retrieve read-only data about the currently active task.
54
+ */
55
+ get activeTask() {
56
+ return {
57
+ activeIndex: this.activeTimelineIndex,
58
+ isFocused: this.isTimelineFocused
59
+ };
60
+ }
61
+ /**
62
+ * Persists the expected Timeline focused task index.
63
+ * When the cells in the TreeList are navigated through, the expected Timeline focus target should also change,
64
+ * in order to allow tabbing from the TreeList to the same row in the Timeline.
65
+ */
66
+ set activeTimelineIndex(index) {
67
+ this._activeTimelineIndex = index;
68
+ }
69
+ get activeTimelineIndex() {
70
+ const firstAvailableIndex = 0;
71
+ const lastAvailableIndex = this.metadata.treeList.view.data.length - 1;
72
+ return fitToRange(this._activeTimelineIndex, firstAvailableIndex, lastAvailableIndex);
73
+ }
74
+ /**
75
+ * Persists the expected TreeList focused cell coords.
76
+ * When the tasks in the Timeline are navigated through, the expected TreeList focus target should also change,
77
+ * in order to allow back-tabbing from the Timeline to the same row in the TreeList.
78
+ */
79
+ set activeTreeListCell(cell) {
80
+ this._activeTreeListCell = cell;
81
+ }
82
+ get activeTreeListCell() {
83
+ const firstAvailableIndex = 0;
84
+ const lastAvailableRowIndex = this.treeListHeaderRowsCount + this.metadata.treeList.view.data.length - 1;
85
+ const rowIndex = fitToRange(this._activeTreeListCell.rowIndex, firstAvailableIndex, lastAvailableRowIndex);
86
+ const lastAvailableColIndex = this.metadata.columns.length;
87
+ const colIndex = fitToRange(this._activeTreeListCell.colIndex, firstAvailableIndex, lastAvailableColIndex);
88
+ return { rowIndex, colIndex };
89
+ }
90
+ /**
91
+ * The TreeList row index takes into account the header and filter rows.
92
+ * Used when translating Timeline task indices to TreeList row indices.
93
+ */
94
+ get treeListHeaderRowsCount() {
95
+ // captures nested group header rows + filter row if we start supporting it at some point
96
+ return this.metadata.treeListElement.querySelectorAll('.k-grid-header tr').length;
97
+ }
98
+ initialize(metadata) {
99
+ // no private property setters in TypeScript, so use a getter and a poorly named private prop for this value
100
+ this._enabled = true;
101
+ this.metadata = metadata;
102
+ // TODO: fix in the splitter package and remove
103
+ // move the splitbar HTML element between the two panes to keep the visial tabbing order in tact
104
+ const splitbar = this.metadata.host.querySelector('.k-splitbar');
105
+ if (isPresent(splitbar) && isPresent(splitbar.previousElementSibling) && isPresent(splitbar.after)) {
106
+ splitbar.after(splitbar.previousElementSibling);
107
+ }
108
+ this.zone.runOutsideAngular(() => {
109
+ this.eventListenerDisposers = [
110
+ this.renderer.listen(this.metadata.treeListElement, 'mousedown', this.focusTreeList.bind(this)),
111
+ this.renderer.listen(this.metadata.treeListElement, 'focusin', this.handleTreeListFocusIn.bind(this)),
112
+ this.renderer.listen(this.metadata.timelineElement, 'mousedown', this.handleTimelineMousedown.bind(this)),
113
+ this.renderer.listen(this.metadata.timelineElement, 'focusin', this.handleTimelineFocusIn.bind(this)),
114
+ this.renderer.listen(this.metadata.timelineElement, 'focusout', this.handleTimelineFocusOut.bind(this))
115
+ ];
116
+ });
117
+ }
118
+ ngOnDestroy() {
119
+ if (isPresent(this.eventListenerDisposers)) {
120
+ this.eventListenerDisposers.forEach(removeListener => removeListener());
121
+ this.eventListenerDisposers = null;
122
+ }
123
+ this.metadata = null;
124
+ }
125
+ /**
126
+ * Focuses either the last active TreeList cell, or the last active Timeline task,
127
+ * dependening on which of the two last held focus.
128
+ *
129
+ * Focuses the first TreeList cell by default.
130
+ */
131
+ focusLastActiveItem() {
132
+ if (this.metadata.data.length === 0 || (!this.treeListLastActive && !this.timelineLastActive)) {
133
+ this.focusCell(0, 0);
134
+ }
135
+ else if (this.treeListLastActive) {
136
+ const { rowIndex, colIndex } = this.activeTreeListCell;
137
+ this.metadata.treeList.focusCell(rowIndex, colIndex);
138
+ }
139
+ else if (this.timelineLastActive) {
140
+ this.focusTask(this.activeTimelineIndex);
141
+ }
142
+ }
143
+ /**
144
+ * Focuses the targeted TreeList cell regardless of the last peresisted target.
145
+ */
146
+ focusCell(rowIndex, colIndex) {
147
+ this.activeTreeListCell = { rowIndex, colIndex };
148
+ this.activeTimelineIndex = rowIndex - this.treeListHeaderRowsCount;
149
+ this.metadata.treeList.focusCell(this.activeTreeListCell.rowIndex, this.activeTreeListCell.colIndex);
150
+ }
151
+ /**
152
+ * Focuses the targeted Timeline task regardless of the last peresisted target.
153
+ */
154
+ focusTask(index) {
155
+ this.activeTimelineIndex = index;
156
+ this.isTimelineFocused = true;
157
+ this.activeTreeListCell = {
158
+ rowIndex: index + this.treeListHeaderRowsCount,
159
+ colIndex: this.activeTreeListCell.colIndex
160
+ };
161
+ this.notifyTaskStatusChange();
162
+ }
163
+ /**
164
+ * Updates the focus target flags and notifies the active task to update its focused state.
165
+ */
166
+ handleTimelineFocusIn({ target }) {
167
+ this.treeListLastActive = false;
168
+ this.timelineLastActive = true;
169
+ this.isTimelineFocused = true;
170
+ if (isTask(target, this.metadata.timelineElement)) {
171
+ this.notifyTaskStatusChange();
172
+ }
173
+ }
174
+ /**
175
+ * Updates the timeline focus state flag and notifies the active task to update its focused state.
176
+ */
177
+ handleTimelineFocusOut({ relatedTarget }) {
178
+ this.isTimelineFocused = this.metadata.timelineElement.contains(relatedTarget);
179
+ // update the task element only if the new focus target is not in the Timeline - focus change between tasks is handled in the focusin handler
180
+ if (!isTask(relatedTarget, this.metadata.timelineElement)) {
181
+ this.notifyTaskStatusChange();
182
+ }
183
+ }
184
+ /**
185
+ * Updates the focus target flags and corrects the TreeList focus target if needed.
186
+ * As the TreeList will keep its last focused cell with tabindex="0",
187
+ * this methods forcefully focuses the correct cell,
188
+ * when navigating in the Timeline has updated the expected TreeList focus target.
189
+ */
190
+ handleTreeListFocusIn(event) {
191
+ this.treeListLastActive = true;
192
+ this.timelineLastActive = false;
193
+ // if the previous focus target was in the TreeList, rely on its component navigation and just record the focused item index
194
+ if (this.metadata.treeListElement.contains(event.relatedTarget)) {
195
+ const { colIndex, rowIndex } = this.metadata.treeList.activeCell;
196
+ this.activeTreeListCell = { colIndex, rowIndex };
197
+ }
198
+ else {
199
+ // if the previous focus target was outside the TreeList, ensure the expected focus coords are used
200
+ const { rowIndex, colIndex } = this.activeTreeListCell;
201
+ this.metadata.treeList.focusCell(rowIndex, colIndex); // activates the target cell even if it has tabindex="-1"
202
+ }
203
+ this.activeTimelineIndex = this.metadata.treeList.activeCell.dataRowIndex;
204
+ this.notifyTaskStatusChange();
205
+ if (this.metadata.treeList.activeCell.dataRowIndex >= 0) {
206
+ this.scrollHorizontallyToTask();
207
+ this.scrollSyncService.syncScrollTop('treelist', 'timeline');
208
+ }
209
+ }
210
+ updateActiveTimeLineIndex(index) {
211
+ this.activeTimelineIndex = index;
212
+ }
213
+ updateActiveTreeListCell() {
214
+ this.activeTreeListCell = {
215
+ rowIndex: this.activeTimelineIndex + this.treeListHeaderRowsCount,
216
+ colIndex: this.activeTreeListCell.colIndex
217
+ };
218
+ }
219
+ /**
220
+ * Fires the `taskStatusChanges` event with active and focused status retrieved from
221
+ * `this.activeTimelineIndex` and `this.isTimelineFocused`.
222
+ */
223
+ notifyTaskStatusChange() {
224
+ this.taskStatusChanges.next(this.activeTask);
225
+ }
226
+ /**
227
+ * Scrolls horizontally to the beginning of the target task if the beginning of its content is not in the viewport.
228
+ */
229
+ scrollHorizontallyToTask() {
230
+ const index = this.activeTimelineIndex;
231
+ const task = this.metadata.timelineElement.querySelectorAll('.k-task-wrap').item(index);
232
+ if (!isPresent(task)) {
233
+ return;
234
+ }
235
+ // scroll horizontally to the item if less than 200px from the beginning of its content are visible
236
+ const targetVisibleWidth = 200;
237
+ const isScrollBeforeTask = (this.metadata.timelineElement.clientWidth + this.metadata.timelineElement.scrollLeft) < (task.offsetLeft + targetVisibleWidth);
238
+ const isScrollAfterTask = this.metadata.timelineElement.scrollLeft > task.offsetLeft;
239
+ if (isScrollBeforeTask || isScrollAfterTask) {
240
+ this.metadata.timelineElement.scrollLeft = task.offsetLeft;
241
+ }
242
+ }
243
+ /**
244
+ * Filters for task mousedown in the Timeline.
245
+ */
246
+ handleTimelineMousedown({ target }) {
247
+ if (isTask(target, this.metadata.host) && !isClearButton(target, this.metadata.host)) {
248
+ const taskIndex = getClosestTaskIndex(target, this.metadata.host);
249
+ this.focusTask(taskIndex);
250
+ }
251
+ }
252
+ /**
253
+ * Focus the TreeList on TreeList mousedown.
254
+ * A nasty hack to trick `handleTreeListFocusIn` into regarding the previous focus target as again the TreeList.
255
+ * Otherwise cell clicks are wrongly overwritten in `handleTreeListFocusIn` and the click focus target is not respected.
256
+ */
257
+ focusTreeList() {
258
+ this.metadata.treeList.focus();
259
+ }
260
+ }
261
+ NavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService, deps: [{ token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1.ScrollSyncService }], target: i0.ɵɵFactoryTarget.Injectable });
262
+ NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService });
263
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService, decorators: [{
264
+ type: Injectable
265
+ }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1.ScrollSyncService }]; } });
@@ -0,0 +1,69 @@
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
+ import { Keys } from '@progress/kendo-angular-common';
6
+ // TODO: add those keys to `import { Keys } from '@progress/kendo-angular-common';`
7
+ var NumpadKeys;
8
+ (function (NumpadKeys) {
9
+ NumpadKeys[NumpadKeys["Digit1"] = 97] = "Digit1";
10
+ NumpadKeys[NumpadKeys["Digit2"] = 98] = "Digit2";
11
+ NumpadKeys[NumpadKeys["Digit3"] = 99] = "Digit3";
12
+ NumpadKeys[NumpadKeys["Digit4"] = 100] = "Digit4";
13
+ })(NumpadKeys || (NumpadKeys = {}));
14
+ /**
15
+ * @hidden
16
+ */
17
+ export const isArrowUpDownKey = (keyCode) => [
18
+ Keys.ArrowUp,
19
+ Keys.ArrowDown
20
+ ].some(arrowKeyCode => keyCode === arrowKeyCode);
21
+ /**
22
+ * @hidden
23
+ */
24
+ export const isNavigationKey = (keyCode) => [
25
+ Keys.ArrowUp,
26
+ Keys.ArrowDown,
27
+ Keys.Home,
28
+ Keys.End
29
+ ].some(navigationKeyCode => keyCode === navigationKeyCode);
30
+ /**
31
+ * @hidden
32
+ */
33
+ export const isExpandCollapseKey = (keyCode, altKey) => {
34
+ return altKey && [
35
+ Keys.ArrowLeft,
36
+ Keys.ArrowRight
37
+ ].some(navigationKeyCode => keyCode === navigationKeyCode);
38
+ };
39
+ /**
40
+ * @hidden
41
+ */
42
+ export const isViewDigitKey = (keyCode) => [
43
+ Keys.Digit1,
44
+ NumpadKeys.Digit1,
45
+ Keys.Digit2,
46
+ NumpadKeys.Digit2,
47
+ Keys.Digit3,
48
+ NumpadKeys.Digit3,
49
+ Keys.Digit4,
50
+ NumpadKeys.Digit4
51
+ ].some(digitKeyCode => keyCode === digitKeyCode);
52
+ /**
53
+ * @hidden
54
+ *
55
+ * Returns the corresponding view index for the pressed digit key (Digit 1 => 0, Digit 2 => 1, etc.).
56
+ */
57
+ export const getIndexFromViewDigitKeyCode = (keyCode) => {
58
+ switch (keyCode) {
59
+ case NumpadKeys.Digit1:
60
+ case Keys.Digit1: return 0;
61
+ case NumpadKeys.Digit2:
62
+ case Keys.Digit2: return 1;
63
+ case NumpadKeys.Digit3:
64
+ case Keys.Digit3: return 2;
65
+ case NumpadKeys.Digit4:
66
+ case Keys.Digit4: return 3;
67
+ default: return null;
68
+ }
69
+ };
@@ -0,0 +1,15 @@
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
+ /**
6
+ * @hidden
7
+ */
8
+ export const packageMetadata = {
9
+ name: '@progress/kendo-angular-gantt',
10
+ productName: 'Kendo UI for Angular',
11
+ productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
+ publishDate: 1649758693,
13
+ version: '',
14
+ licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
+ };