@progress/kendo-angular-gantt 0.2.1-dev.202112101349 → 0.3.0-dev.202201190830

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 (171) hide show
  1. package/dist/cdn/js/kendo-angular-gantt.js +2 -2
  2. package/dist/cdn/main.js +4 -4
  3. package/dist/es/common/touch-enabled.js +9 -0
  4. package/dist/es/dependencies/utils.js +40 -5
  5. package/dist/es/dragging/dependency-drag-create.directive.js +347 -0
  6. package/dist/es/dragging/drag-validation-tooltip.component.js +27 -0
  7. package/dist/es/editing/add-task.component.js +94 -0
  8. package/dist/es/editing/dependencies-table.component.js +131 -0
  9. package/dist/es/editing/edit-dialog.component.js +39 -8
  10. package/dist/es/editing/edit.service.js +92 -8
  11. package/dist/es/editing/task-fields.component.js +43 -0
  12. package/dist/es/editing/{util.js → utils.js} +0 -0
  13. package/dist/es/gantt.component.js +408 -56
  14. package/dist/es/gantt.module.js +37 -9
  15. package/dist/es/index.js +9 -0
  16. package/dist/es/localization/gantt-localization.service.js +26 -0
  17. package/dist/es/localization/messages.js +45 -1
  18. package/dist/es/main.js +1 -0
  19. package/dist/es/models/dependency-type.enum.js +16 -0
  20. package/dist/es/models/events/{add-event.interface.js → dependency-add-event.interface.js} +0 -0
  21. package/dist/es/models/events/{edit-event.interface.js → task-add-event.interface.js} +0 -0
  22. package/dist/es/models/events/{remove-event.interface.js → task-delete-event.interface.js} +0 -0
  23. package/dist/es/models/models.js +1 -0
  24. package/dist/es/models/{toolbar-position.js → toolbar-settings.js} +0 -0
  25. package/dist/{es2015/models/events/add-event.interface.js → es/models/view-item.interface.js} +0 -0
  26. package/dist/{es2015/models/events/edit-event.interface.js → es/navigation/navigation-models.js} +0 -0
  27. package/dist/es/navigation/navigation.service.js +390 -0
  28. package/dist/es/navigation/utils.js +77 -0
  29. package/dist/es/package-metadata.js +1 -1
  30. package/dist/es/rendering/gantt-milestone-task.component.js +12 -6
  31. package/dist/es/rendering/gantt-summary-task.component.js +27 -6
  32. package/dist/es/rendering/gantt-task-base.js +84 -22
  33. package/dist/es/rendering/gantt-task.component.js +13 -8
  34. package/dist/es/rendering/gantt-tasks-table-body.component.js +13 -5
  35. package/dist/es/scrolling/drag-scroll-settings.js +20 -0
  36. package/dist/es/scrolling/timeline-scroll.directive.js +89 -0
  37. package/dist/es/scrolling/timeline-scroll.service.js +39 -0
  38. package/dist/es/scrolling/utils.js +80 -0
  39. package/dist/es/timeline/gantt-timeline.component.js +50 -4
  40. package/dist/es/toolbar/toolbar.component.js +20 -13
  41. package/dist/es/toolbar/view-selector.component.js +1 -1
  42. package/dist/es/utils.js +153 -12
  43. package/dist/es2015/common/touch-enabled.d.ts +9 -0
  44. package/dist/es2015/common/touch-enabled.js +9 -0
  45. package/dist/es2015/dependencies/utils.d.ts +15 -0
  46. package/dist/es2015/dependencies/utils.js +40 -5
  47. package/dist/es2015/dragging/dependency-drag-create.directive.d.ts +72 -0
  48. package/dist/es2015/dragging/dependency-drag-create.directive.js +324 -0
  49. package/dist/es2015/dragging/drag-validation-tooltip.component.d.ts +29 -0
  50. package/dist/es2015/dragging/drag-validation-tooltip.component.js +76 -0
  51. package/dist/es2015/editing/add-task.component.d.ts +45 -0
  52. package/dist/es2015/editing/add-task.component.js +102 -0
  53. package/dist/es2015/editing/dependencies-table.component.d.ts +39 -0
  54. package/dist/es2015/editing/dependencies-table.component.js +160 -0
  55. package/dist/es2015/editing/edit-dialog.component.d.ts +11 -4
  56. package/dist/es2015/editing/edit-dialog.component.js +66 -36
  57. package/dist/es2015/editing/edit.service.d.ts +24 -4
  58. package/dist/es2015/editing/edit.service.js +81 -11
  59. package/dist/es2015/editing/task-fields.component.d.ts +22 -0
  60. package/dist/es2015/editing/task-fields.component.js +67 -0
  61. package/dist/es2015/editing/{util.d.ts → utils.d.ts} +2 -2
  62. package/dist/es2015/editing/{util.js → utils.js} +0 -0
  63. package/dist/es2015/gantt.component.d.ts +134 -31
  64. package/dist/es2015/gantt.component.js +419 -61
  65. package/dist/es2015/gantt.module.js +37 -9
  66. package/dist/es2015/index.d.ts +9 -0
  67. package/dist/es2015/index.js +9 -0
  68. package/dist/es2015/index.metadata.json +1 -1
  69. package/dist/es2015/{models/events/edit-event.interface.d.ts → localization/gantt-localization.service.d.ts} +6 -10
  70. package/dist/es2015/localization/gantt-localization.service.js +25 -0
  71. package/dist/es2015/localization/messages.d.ts +46 -2
  72. package/dist/es2015/localization/messages.js +45 -1
  73. package/dist/es2015/main.d.ts +1 -0
  74. package/dist/es2015/main.js +1 -0
  75. package/dist/es2015/models/dependency-type.enum.d.ts +1 -1
  76. package/dist/es2015/models/dependency-type.enum.js +16 -0
  77. package/dist/es2015/models/events/dependency-add-event.interface.d.ts +26 -0
  78. package/dist/es2015/models/events/{remove-event.interface.js → dependency-add-event.interface.js} +0 -0
  79. package/dist/es2015/models/events/task-add-event.interface.d.ts +31 -0
  80. package/dist/es2015/models/{toolbar-position.js → events/task-add-event.interface.js} +0 -0
  81. package/dist/es2015/models/events/task-click-event.interface.d.ts +3 -3
  82. package/dist/es2015/models/events/task-delete-event.interface.d.ts +21 -0
  83. package/dist/es2015/models/events/task-delete-event.interface.js +4 -0
  84. package/dist/es2015/models/events/task-edit-event.interface.d.ts +36 -6
  85. package/dist/es2015/models/models.d.ts +6 -3
  86. package/dist/es2015/models/models.js +1 -0
  87. package/dist/es2015/models/toolbar-settings.d.ts +29 -0
  88. package/dist/es2015/models/toolbar-settings.js +4 -0
  89. package/dist/es2015/models/view-item.interface.d.ts +35 -0
  90. package/dist/es2015/models/view-item.interface.js +4 -0
  91. package/dist/es2015/navigation/navigation-models.d.ts +34 -0
  92. package/dist/es2015/navigation/navigation-models.js +4 -0
  93. package/dist/es2015/navigation/navigation.service.d.ts +126 -0
  94. package/dist/es2015/navigation/navigation.service.js +355 -0
  95. package/dist/es2015/navigation/utils.d.ts +26 -0
  96. package/dist/es2015/navigation/utils.js +69 -0
  97. package/dist/es2015/package-metadata.js +1 -1
  98. package/dist/es2015/rendering/gantt-milestone-task.component.d.ts +3 -1
  99. package/dist/es2015/rendering/gantt-milestone-task.component.js +35 -8
  100. package/dist/es2015/rendering/gantt-summary-task.component.d.ts +5 -1
  101. package/dist/es2015/rendering/gantt-summary-task.component.js +47 -8
  102. package/dist/es2015/rendering/gantt-task-base.d.ts +20 -6
  103. package/dist/es2015/rendering/gantt-task-base.js +75 -22
  104. package/dist/es2015/rendering/gantt-task.component.d.ts +4 -2
  105. package/dist/es2015/rendering/gantt-task.component.js +47 -13
  106. package/dist/es2015/rendering/gantt-tasks-table-body.component.d.ts +6 -3
  107. package/dist/es2015/rendering/gantt-tasks-table-body.component.js +27 -9
  108. package/dist/es2015/scrolling/drag-scroll-settings.d.ts +47 -0
  109. package/dist/es2015/scrolling/drag-scroll-settings.js +20 -0
  110. package/dist/es2015/scrolling/scroll-sync.service.d.ts +1 -1
  111. package/dist/es2015/scrolling/timeline-scroll.directive.d.ts +24 -0
  112. package/dist/es2015/scrolling/timeline-scroll.directive.js +78 -0
  113. package/dist/es2015/scrolling/timeline-scroll.service.d.ts +20 -0
  114. package/dist/es2015/scrolling/timeline-scroll.service.js +44 -0
  115. package/dist/es2015/scrolling/utils.d.ts +29 -0
  116. package/dist/es2015/scrolling/utils.js +80 -0
  117. package/dist/es2015/timeline/gantt-timeline.component.d.ts +29 -4
  118. package/dist/es2015/timeline/gantt-timeline.component.js +67 -5
  119. package/dist/es2015/toolbar/toolbar-template.directive.d.ts +1 -1
  120. package/dist/es2015/toolbar/toolbar.component.d.ts +6 -5
  121. package/dist/es2015/toolbar/toolbar.component.js +22 -13
  122. package/dist/es2015/toolbar/view-selector.component.js +3 -1
  123. package/dist/es2015/utils.d.ts +77 -8
  124. package/dist/es2015/utils.js +153 -12
  125. package/dist/fesm2015/index.js +5258 -3012
  126. package/dist/fesm5/index.js +2862 -733
  127. package/dist/npm/common/touch-enabled.js +11 -0
  128. package/dist/npm/dependencies/utils.js +40 -5
  129. package/dist/npm/dragging/dependency-drag-create.directive.js +349 -0
  130. package/dist/npm/dragging/drag-validation-tooltip.component.js +29 -0
  131. package/dist/npm/editing/add-task.component.js +96 -0
  132. package/dist/npm/editing/dependencies-table.component.js +133 -0
  133. package/dist/npm/editing/edit-dialog.component.js +38 -7
  134. package/dist/npm/editing/edit.service.js +91 -7
  135. package/dist/npm/editing/task-fields.component.js +45 -0
  136. package/dist/npm/editing/{util.js → utils.js} +0 -0
  137. package/dist/npm/gantt.component.js +409 -57
  138. package/dist/npm/gantt.module.js +35 -7
  139. package/dist/npm/index.js +18 -0
  140. package/dist/npm/localization/gantt-localization.service.js +28 -0
  141. package/dist/npm/localization/messages.js +45 -1
  142. package/dist/npm/main.js +2 -0
  143. package/dist/npm/models/dependency-type.enum.js +16 -0
  144. package/dist/npm/models/events/{add-event.interface.js → dependency-add-event.interface.js} +0 -0
  145. package/dist/npm/models/events/{edit-event.interface.js → task-add-event.interface.js} +0 -0
  146. package/dist/npm/models/events/{remove-event.interface.js → task-delete-event.interface.js} +0 -0
  147. package/dist/npm/models/models.js +2 -0
  148. package/dist/npm/models/{toolbar-position.js → toolbar-settings.js} +0 -0
  149. package/dist/npm/models/view-item.interface.js +6 -0
  150. package/dist/npm/navigation/navigation-models.js +6 -0
  151. package/dist/npm/navigation/navigation.service.js +392 -0
  152. package/dist/npm/navigation/utils.js +79 -0
  153. package/dist/npm/package-metadata.js +1 -1
  154. package/dist/npm/rendering/gantt-milestone-task.component.js +11 -5
  155. package/dist/npm/rendering/gantt-summary-task.component.js +26 -5
  156. package/dist/npm/rendering/gantt-task-base.js +84 -22
  157. package/dist/npm/rendering/gantt-task.component.js +12 -7
  158. package/dist/npm/rendering/gantt-tasks-table-body.component.js +13 -5
  159. package/dist/npm/scrolling/drag-scroll-settings.js +22 -0
  160. package/dist/npm/scrolling/timeline-scroll.directive.js +91 -0
  161. package/dist/npm/scrolling/timeline-scroll.service.js +41 -0
  162. package/dist/npm/scrolling/utils.js +83 -0
  163. package/dist/npm/timeline/gantt-timeline.component.js +49 -3
  164. package/dist/npm/toolbar/toolbar.component.js +18 -11
  165. package/dist/npm/toolbar/view-selector.component.js +1 -1
  166. package/dist/npm/utils.js +153 -12
  167. package/dist/systemjs/kendo-angular-gantt.js +1 -1
  168. package/package.json +7 -4
  169. package/dist/es2015/models/events/add-event.interface.d.ts +0 -16
  170. package/dist/es2015/models/events/remove-event.interface.d.ts +0 -16
  171. package/dist/es2015/models/toolbar-position.d.ts +0 -9
@@ -8,8 +8,10 @@ import { TreeListComponent, DataBoundTreeComponent, ExpandableTreeComponent, Sel
8
8
  import { CompositeFilterDescriptor, SortDescriptor } from '@progress/kendo-data-query';
9
9
  import { Day } from '@progress/kendo-date-math';
10
10
  import { Observable } from 'rxjs';
11
+ import { GanttTimelineComponent } from './timeline/gantt-timeline.component';
11
12
  import { GanttColumnBase } from './columns/columns';
12
- import { DataStateChangeEvent, ColumnMenuSettings, RowClassFn, TaskClassFn, ColumnVisibilityChangeEvent, ColumnResizeEvent, ColumnLockedChangeEvent, ColumnReorderEvent, ColumnReorderConfig, GanttTaskModelFields, GanttDependencyModelFields, SortSettings, CellClickEvent, TaskClickEvent } from './models/models';
13
+ import { DataStateChangeEvent, ColumnMenuSettings, RowClassFn, TaskClassFn, ColumnVisibilityChangeEvent, ColumnResizeEvent, ColumnLockedChangeEvent, ColumnReorderEvent, ColumnReorderConfig, GanttTaskModelFields, GanttDependencyModelFields, SortSettings, CellClickEvent, TaskClickEvent, DependencyAddEvent, TaskDeleteEvent } from './models/models';
14
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
13
15
  import { TimelineViewService } from './timeline/timeline-view.service';
14
16
  import { TimelineViewType } from './models/timeline-view';
15
17
  import { TimelineBaseViewService } from './timeline/timeline-base-view.service';
@@ -18,18 +20,21 @@ import { DependencyDomService } from './dependencies/dependency-dom.service';
18
20
  import { MappingService } from './common/mapping.service';
19
21
  import { OptionChangesService } from './common/option-changes.service';
20
22
  import { EditService } from './editing/edit.service';
21
- import { LocalizationService } from '@progress/kendo-angular-l10n';
23
+ import { NavigationService } from './navigation/navigation.service';
22
24
  import { TimelinePaneOptions, TreeListPaneOptions } from './models/splitter-pane-options.interface';
23
25
  import { GanttTaskTemplateDirective } from './template-directives/task-template.directive';
24
26
  import { GanttSummaryTaskTemplateDirective } from './template-directives/summary-task-template.directive';
25
27
  import { GanttTaskContentTemplateDirective } from './template-directives/task-content-template.directive';
26
28
  import { ToolbarTemplateDirective } from './toolbar/toolbar-template.directive';
27
- import { ToolbarPosition } from './models/toolbar-position';
29
+ import { ToolbarSettings } from './models/toolbar-settings';
28
30
  import { ExpandEvent } from './expanded-state/expand-event';
29
31
  import { ViewBase } from './timeline/view-base';
30
32
  import { SelectionChangeEvent } from './selection/selection-change-event';
31
33
  import { TaskEditEvent } from './models/events/task-edit-event.interface';
32
34
  import { CellCloseEvent } from './models/events/cell-close-event.interface';
35
+ import { TaskAddEvent } from './models/events/task-add-event.interface';
36
+ import { ViewItem } from './models/view-item.interface';
37
+ import { DragScrollSettings } from './scrolling/drag-scroll-settings';
33
38
  /**
34
39
  * Represents the Kendo UI Gantt component for Angular.
35
40
  *
@@ -112,21 +117,24 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
112
117
  private localizationService;
113
118
  private hostElement;
114
119
  private zone;
120
+ private navigationService;
115
121
  treeList: TreeListComponent;
116
- /**
117
- * @hidden
118
- */
122
+ timeline: GanttTimelineComponent;
119
123
  taskContentTemplate: GanttTaskContentTemplateDirective;
124
+ taskTemplate: GanttTaskTemplateDirective;
125
+ summaryTaskTemplate: GanttSummaryTaskTemplateDirective;
126
+ toolbarTemplateChildren: QueryList<ToolbarTemplateDirective>;
127
+ toolbarTemplate: ToolbarTemplateDirective;
120
128
  /**
121
129
  * @hidden
122
130
  */
123
- taskTemplate: GanttTaskTemplateDirective;
131
+ roleDescription: string;
132
+ readonly hostRoleDescriptionAttr: string;
124
133
  /**
125
134
  * @hidden
126
135
  */
127
- summaryTaskTemplate: GanttSummaryTaskTemplateDirective;
128
- toolbarTemplateChildren: QueryList<ToolbarTemplateDirective>;
129
- toolbarTemplate: ToolbarTemplateDirective;
136
+ role: string;
137
+ readonly hostRoleAttr: string;
130
138
  hostClasses: boolean;
131
139
  readonly dir: string;
132
140
  /**
@@ -162,11 +170,22 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
162
170
  */
163
171
  data: any[];
164
172
  /**
165
- * Provides a callback that determines if the given task is selected ([see example]({% slug selection_gantt %}#toc-custom-selection))
173
+ * Specifies a callback that determines if the given task is selected ([see example]({% slug selection_gantt %}#toc-custom-selection)).
166
174
  *
167
175
  * > The [`selectable`]({% slug api_gantt_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
168
176
  */
169
177
  isSelected: (dataItem: object) => boolean;
178
+ /**
179
+ * Specifies a callback that determines if a new dependency is valid.
180
+ * Used when evaluating if an attempt to create a new dependency will result in a valid link between the two tasks
181
+ * [see example]({% slug editing_drag_create_dependencies_gantt %}#toc-validation).
182
+ *
183
+ * By defalut, dependencies are deemed invalid when:
184
+ * - The two tasks are in a parent-child relationship.
185
+ * - The two tasks are already dependent on one another. Only one dependency is allowed per pair.
186
+ * - The start or end times of the two tasks are incompatible with the attempted dependency type.
187
+ */
188
+ validateNewDependency: (dependency: object) => boolean;
170
189
  /**
171
190
  * Fires when the Gantt selection is changed through user interaction.
172
191
  *
@@ -183,24 +202,27 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
183
202
  */
184
203
  selectable: boolean;
185
204
  /**
186
- * The position of the toolbar.
205
+ * The toolbar configuration. Defines the position and content of the toolbar(s).
206
+ * The available properties are `position`, `addTaskTool`, and `viewSelectorTool`.
207
+ * All are optional and default to `top`.
187
208
  *
188
- * The possible values are:
189
- * - `top`&mdash;Positions the toolbar above the Gantt panes.
190
- * - `bottom`&mdash;Positions the toolbar below the Gantt panes.
209
+ * The possible values for each option are:
210
+ * - `top`&mdash;Positions the toolbar above the Gantt panes. Renders the respective tool in the top toolbar.
211
+ * - `bottom`&mdash;Positions the toolbar below the Gantt panes. Renders the respective tool in the bottom toolbar.
191
212
  * - `both`&mdash;Displays two toolbar instances. Positions the first one above,
192
- * and the second one - below the Gantt panes.
193
- * - `none`&mdash;No toolbar is rendered.
213
+ * and the second one - below the Gantt panes. Renders the respective tool in the both toolbars.
214
+ * - `none`&mdash;No toolbar is rendered when used for setting `position`.
215
+ * No add task or view selector tool is rendered when used for setting `addTaskTool` or `viewSelectorTool`.
194
216
  */
195
- toolbarPosition: ToolbarPosition;
217
+ toolbarSettings: ToolbarSettings;
196
218
  /**
197
219
  * Gets or sets the callback function that retrieves the child items for a particular item.
198
220
  */
199
- fetchChildren: (item: object) => Observable<object[]>;
221
+ fetchChildren: (dataItem: any) => Observable<object[]>;
200
222
  /**
201
223
  * Gets or sets the callback function that indicates if a particular item has child items.
202
224
  */
203
- hasChildren: (item: object) => boolean;
225
+ hasChildren: (dataItem: any) => boolean;
204
226
  /**
205
227
  * Defines the dependencies that will be drawn between the rendered tasks.
206
228
  *
@@ -243,6 +265,12 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
243
265
  * The end of the work week (index based).
244
266
  */
245
267
  workWeekEnd: Day;
268
+ /**
269
+ * If set to `true`, the user can use dedicated shortcuts to interact with the Gantt.
270
+ * By default, navigation is disabled for the TreeList and Timeline parts of the component,
271
+ * ([see example]({% slug keyboard_navigation_gantt %})).
272
+ */
273
+ navigable: boolean;
246
274
  /**
247
275
  * The options of the timeline splitter pane. By default the pane is `collapsible`,
248
276
  * `resizable`, not `collapsed`, and its `size` is `'50%'`.
@@ -297,6 +325,12 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
297
325
  * @default false
298
326
  */
299
327
  columnsResizable: boolean;
328
+ /**
329
+ * Specifies the settings for auto-scrolling during dragging
330
+ * when the pointer moves outside of the container bounderies
331
+ * [see example]({% slug editing_drag_create_dependencies_gantt %}#toc-auto-scrolling).
332
+ */
333
+ dragScrollSettings: DragScrollSettings;
300
334
  /**
301
335
  * Fires when an item is expanded.
302
336
  */
@@ -315,10 +349,11 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
315
349
  */
316
350
  cellClose: EventEmitter<CellCloseEvent>;
317
351
  /**
318
- * Fires when the end user clicks the `Delete` button in the task editing dialog or the task delete icon.
352
+ * Fires when the end user clicks the `Delete` button in the task editing dialog,
353
+ * the task delete icon, or presses the `Delete` key on the keyboard when a task in the timeline is focused.
319
354
  * Use the event handler to open a confirmation dialog when necessary.
320
355
  */
321
- taskDelete: EventEmitter<any>;
356
+ taskDelete: EventEmitter<TaskDeleteEvent>;
322
357
  /**
323
358
  * Fires when an item is collapsed.
324
359
  */
@@ -335,6 +370,15 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
335
370
  * Fires when the user saves an edited task.
336
371
  */
337
372
  save: EventEmitter<TaskEditEvent>;
373
+ /**
374
+ * Fires when the user adds a task.
375
+ */
376
+ taskAdd: EventEmitter<TaskAddEvent>;
377
+ /**
378
+ * Fires when the user adds a dependency via dragging
379
+ * [see example]({% slug editing_drag_create_dependencies_gantt %}#toc-basic-concepts).
380
+ */
381
+ dependencyAdd: EventEmitter<DependencyAddEvent>;
338
382
  /**
339
383
  * Fires when the sorting of the Gantt is changed.
340
384
  * You have to handle the event yourself and sort the data.
@@ -395,10 +439,23 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
395
439
  * @hidden
396
440
  */
397
441
  readonly renderedTreeListItems: any[];
442
+ /**
443
+ * @hidden
444
+ */
445
+ readonly viewItems: ViewItem[];
398
446
  /**
399
447
  * @hidden
400
448
  */
401
449
  readonly filterMenu: string | boolean;
450
+ /**
451
+ * @hidden
452
+ *
453
+ * Specifies whether the dependency drag clues will be rendered.
454
+ * Set internally by the dependency-drag-create directive.
455
+ *
456
+ * @default false
457
+ */
458
+ renderDependencyDragClues: boolean;
402
459
  /**
403
460
  * @hidden
404
461
  */
@@ -434,10 +491,6 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
434
491
  * Used by the views selector.
435
492
  */
436
493
  readonly viewTypes: string[];
437
- /**
438
- * @hidden
439
- */
440
- readonly editDialogFormGroup: FormGroup;
441
494
  /**
442
495
  * @hidden
443
496
  *
@@ -452,14 +505,22 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
452
505
  * @hidden
453
506
  */
454
507
  showConfirmationDialog: boolean;
508
+ /**
509
+ * @hidden
510
+ */
511
+ readonly isInEditMode: boolean;
455
512
  private _columns;
456
513
  private _data;
514
+ private _dragScrollSettings;
457
515
  private _timelinePaneOptions;
458
516
  private _treeListPaneOptions;
459
517
  private _customToolbarTemplate;
460
518
  private _rowClass;
461
519
  private _taskClass;
462
520
  private _activeView;
521
+ private _toolbarSettings;
522
+ private _fetchChildren;
523
+ private _hasChildren;
463
524
  private lastTreeListCellClick;
464
525
  private direction;
465
526
  private rtl;
@@ -467,11 +528,27 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
467
528
  private optionChangesSubscriptions;
468
529
  private editServiceSubscription;
469
530
  private localizationSubscription;
470
- constructor(timelineViewService: TimelineViewService, scrollSyncService: ScrollSyncService, renderer: Renderer2, mapper: MappingService, optionChangesService: OptionChangesService, dependencyDomService: DependencyDomService, editService: EditService, localizationService: LocalizationService, hostElement: ElementRef<HTMLElement>, zone: NgZone);
531
+ constructor(timelineViewService: TimelineViewService, scrollSyncService: ScrollSyncService, renderer: Renderer2, mapper: MappingService, optionChangesService: OptionChangesService, dependencyDomService: DependencyDomService, editService: EditService, localizationService: LocalizationService, hostElement: ElementRef<HTMLElement>, zone: NgZone, navigationService: NavigationService);
471
532
  ngOnChanges(changes: SimpleChanges): void;
472
533
  ngAfterViewInit(): void;
473
534
  ngAfterContentInit(): void;
474
535
  ngOnDestroy(): void;
536
+ /**
537
+ * Focuses the last active cell or task in the Gantt.
538
+ * If no item has previously been focused, the first cell of the TreeList part will receive focus,
539
+ * ([see example]({% slug keyboard_navigation_gantt %}#toc-controlling-the-focus)).
540
+ */
541
+ focus(): void;
542
+ /**
543
+ * Focuses the targeted cell in the TreeList part of the component,
544
+ * ([see example]({% slug keyboard_navigation_gantt %}#toc-controlling-the-focus)).
545
+ */
546
+ focusCell(rowIndex: number, colIndex: number): void;
547
+ /**
548
+ * Focuses the targeted task in the Timeline part of the component,
549
+ * ([see example]({% slug keyboard_navigation_gantt %}#toc-controlling-the-focus)).
550
+ */
551
+ focusTask(taskIndex: number): void;
475
552
  /**
476
553
  * Applies the minimum possible width for the specified column,
477
554
  * so that the whole text fits without wrapping. This method expects the Gantt
@@ -521,6 +598,10 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
521
598
  * Opens the delete task confirmation dialog.
522
599
  */
523
600
  openConfirmationDialog(): void;
601
+ /**
602
+ * @hidden
603
+ */
604
+ handleConfirmationDialogClose(): void;
524
605
  /**
525
606
  * Opens a cell for editing.
526
607
  */
@@ -593,14 +674,36 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
593
674
  * @hidden
594
675
  */
595
676
  getText(token: string): string;
596
- private emitTaskClick;
597
- private emitSelectionChange;
677
+ /**
678
+ * @hidden
679
+ */
680
+ changeActiveView(view: TimelineViewType): void;
681
+ /**
682
+ * @hidden
683
+ */
684
+ notifyTaskClick(event: PointerEvent | KeyboardEvent, dataItem: any, itemIndex: number): void;
685
+ /**
686
+ * @hidden
687
+ */
688
+ notifySelectionChange(dataItem: any, action: 'select' | 'remove'): void;
689
+ /**
690
+ * @hidden
691
+ */
692
+ notifyTaskDelete(task: any): void;
693
+ /**
694
+ * @hidden
695
+ */
696
+ isSameSelection(action: 'select' | 'remove', dataItem: any): boolean;
697
+ /**
698
+ * @hidden
699
+ */
700
+ getSelectionAction({ ctrlKey, metaKey }: PointerEvent | KeyboardEvent, dataItem: any): 'select' | 'remove';
598
701
  private updateTreeListGroupClass;
599
702
  /**
600
703
  * Used to hide the vertical scrollbar
601
704
  */
602
705
  private updateTreeListMargin;
603
706
  private getActiveViewOptions;
604
- private isSameSelection;
605
- private getSelectionAction;
707
+ private getFirstSelectedItem;
708
+ private defaultValidateNewDependencyCallback;
606
709
  }