@progress/kendo-angular-gantt 24.2.2-develop.9 → 25.0.0-develop.1

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 (123) hide show
  1. package/fesm2022/progress-kendo-angular-gantt.mjs +199 -199
  2. package/index.d.ts +3876 -41
  3. package/package-metadata.mjs +2 -2
  4. package/package.json +22 -22
  5. package/schematics/ngAdd/index.js +7 -7
  6. package/binding-directives/flat-binding.directive.d.ts +0 -36
  7. package/binding-directives/hierarchy-binding.directive.d.ts +0 -35
  8. package/columns/cell-template.directive.d.ts +0 -36
  9. package/columns/column-base.component.d.ts +0 -14
  10. package/columns/column-group.component.d.ts +0 -39
  11. package/columns/column-menu-template.directive.d.ts +0 -29
  12. package/columns/column.component.d.ts +0 -62
  13. package/columns/columns.d.ts +0 -15
  14. package/columns/edit-template.directive.d.ts +0 -35
  15. package/columns/filter-cell-template.directive.d.ts +0 -21
  16. package/columns/filter-menu-template.directive.d.ts +0 -30
  17. package/columns/footer-template.directive.d.ts +0 -33
  18. package/columns/header-template.directive.d.ts +0 -32
  19. package/columns/span-column.component.d.ts +0 -41
  20. package/common/default-callbacks.d.ts +0 -25
  21. package/common/mapping.service.d.ts +0 -38
  22. package/common/option-changes.service.d.ts +0 -19
  23. package/dependencies/dependency-dom.service.d.ts +0 -46
  24. package/dependencies/dom-dependency-args.d.ts +0 -24
  25. package/dependencies/gantt-dependency.directive.d.ts +0 -29
  26. package/dependencies/utils.d.ts +0 -53
  27. package/directives.d.ts +0 -32
  28. package/dragging/dependency-drag-create.directive.d.ts +0 -82
  29. package/dragging/drag-validation-tooltip.component.d.ts +0 -32
  30. package/dragging/task-drag.directive.d.ts +0 -42
  31. package/dragging/task-drag.service.d.ts +0 -49
  32. package/editing/add-task.component.d.ts +0 -53
  33. package/editing/dependencies-table.component.d.ts +0 -45
  34. package/editing/edit-dialog.component.d.ts +0 -37
  35. package/editing/edit.service.d.ts +0 -44
  36. package/editing/task-fields.component.d.ts +0 -25
  37. package/editing/utils.d.ts +0 -10
  38. package/expanded-state/expand-event.d.ts +0 -16
  39. package/expanded-state/expandable.directive.d.ts +0 -26
  40. package/gantt.component.d.ts +0 -769
  41. package/gantt.module.d.ts +0 -60
  42. package/localization/custom-messages.component.d.ts +0 -26
  43. package/localization/gantt-localization.service.d.ts +0 -18
  44. package/localization/localized-messages.directive.d.ts +0 -16
  45. package/localization/messages.d.ts +0 -304
  46. package/models/cell-content-type.interface.d.ts +0 -11
  47. package/models/class-callbacks.d.ts +0 -43
  48. package/models/column-menu-settings.interface.d.ts +0 -26
  49. package/models/column-reorder-config.d.ts +0 -13
  50. package/models/current-time-settings.interface.d.ts +0 -22
  51. package/models/date-range.interface.d.ts +0 -19
  52. package/models/dependency-type.enum.d.ts +0 -31
  53. package/models/events/cell-click-event.interface.d.ts +0 -43
  54. package/models/events/cell-close-event.interface.d.ts +0 -43
  55. package/models/events/click-event.interface.d.ts +0 -23
  56. package/models/events/column-locked-change-event.interface.d.ts +0 -16
  57. package/models/events/column-reorder-event.interface.d.ts +0 -10
  58. package/models/events/column-resize-event.interface.d.ts +0 -10
  59. package/models/events/column-visibility-change-event.interface.d.ts +0 -14
  60. package/models/events/data-state-change-event.interface.d.ts +0 -10
  61. package/models/events/dependency-add-event.interface.d.ts +0 -26
  62. package/models/events/index.d.ts +0 -21
  63. package/models/events/selected-view-change-event.interface.d.ts +0 -19
  64. package/models/events/task-add-event.interface.d.ts +0 -31
  65. package/models/events/task-click-event.interface.d.ts +0 -30
  66. package/models/events/task-delete-event.interface.d.ts +0 -20
  67. package/models/events/task-drag-event.interface.d.ts +0 -65
  68. package/models/events/task-edit-event.interface.d.ts +0 -74
  69. package/models/filterable-settings.d.ts +0 -10
  70. package/models/gantt-dependency-model-fields.interface.d.ts +0 -36
  71. package/models/gantt-dependency.interface.d.ts +0 -29
  72. package/models/gantt-task-model-fields.interface.d.ts +0 -51
  73. package/models/gantt-task.interface.d.ts +0 -34
  74. package/models/models.d.ts +0 -23
  75. package/models/slot.interface.d.ts +0 -37
  76. package/models/sort-settings.d.ts +0 -42
  77. package/models/splitter-pane-options.interface.d.ts +0 -54
  78. package/models/timeline-header-date-format.d.ts +0 -19
  79. package/models/timeline-options.interface.d.ts +0 -46
  80. package/models/timeline-view.d.ts +0 -8
  81. package/models/toolbar-settings.d.ts +0 -28
  82. package/models/tooltip-options.interface.d.ts +0 -28
  83. package/models/view-item.interface.d.ts +0 -35
  84. package/navigation/navigation-models.d.ts +0 -38
  85. package/navigation/navigation.service.d.ts +0 -143
  86. package/navigation/utils.d.ts +0 -26
  87. package/package-metadata.d.ts +0 -9
  88. package/rendering/gantt-header-table-body.component.d.ts +0 -16
  89. package/rendering/gantt-milestone-task.component.d.ts +0 -22
  90. package/rendering/gantt-summary-task.component.d.ts +0 -25
  91. package/rendering/gantt-task-base.d.ts +0 -66
  92. package/rendering/gantt-task.component.d.ts +0 -29
  93. package/rendering/gantt-tasks-table-body.component.d.ts +0 -38
  94. package/scrolling/drag-scroll-settings.d.ts +0 -47
  95. package/scrolling/scroll-sync.service.d.ts +0 -33
  96. package/scrolling/timeline-scroll.directive.d.ts +0 -27
  97. package/scrolling/timeline-scroll.service.d.ts +0 -23
  98. package/scrolling/utils.d.ts +0 -29
  99. package/selection/selectable.directive.d.ts +0 -53
  100. package/selection/selection-change-event.d.ts +0 -24
  101. package/template-directives/summary-task-template.directive.d.ts +0 -32
  102. package/template-directives/task-content-template.directive.d.ts +0 -35
  103. package/template-directives/task-drag-tooltip-template.directive.d.ts +0 -36
  104. package/template-directives/task-template.directive.d.ts +0 -30
  105. package/template-directives/task-tooltip-template.directive.d.ts +0 -37
  106. package/timeline/current-time-marker.service.d.ts +0 -36
  107. package/timeline/gantt-timeline.component.d.ts +0 -101
  108. package/timeline/timeline-base-view.service.d.ts +0 -82
  109. package/timeline/timeline-day-view.component.d.ts +0 -26
  110. package/timeline/timeline-day-view.service.d.ts +0 -45
  111. package/timeline/timeline-month-view.component.d.ts +0 -26
  112. package/timeline/timeline-month-view.service.d.ts +0 -43
  113. package/timeline/timeline-view.service.d.ts +0 -19
  114. package/timeline/timeline-week-view.component.d.ts +0 -26
  115. package/timeline/timeline-week-view.service.d.ts +0 -43
  116. package/timeline/timeline-year-view.component.d.ts +0 -26
  117. package/timeline/timeline-year-view.service.d.ts +0 -36
  118. package/timeline/view-base.d.ts +0 -53
  119. package/toolbar/toolbar-navigation.service.d.ts +0 -18
  120. package/toolbar/toolbar-template.directive.d.ts +0 -39
  121. package/toolbar/toolbar.component.d.ts +0 -39
  122. package/toolbar/view-selector.component.d.ts +0 -55
  123. package/utils.d.ts +0 -173
@@ -1,769 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { EventEmitter, OnChanges, QueryList, SimpleChanges, Renderer2, AfterContentInit, OnDestroy, ElementRef, NgZone } from '@angular/core';
6
- import { FormGroup } from '@angular/forms';
7
- import { TreeListComponent, DataBoundTreeComponent, ExpandableTreeComponent, SelectionChangeEvent as TreeListSelectionChangeEvent, CellClickEvent as TreeListCellClickEvent } from '@progress/kendo-angular-treelist';
8
- import { CompositeFilterDescriptor, SortDescriptor } from '@progress/kendo-data-query';
9
- import { Day } from '@progress/kendo-date-math';
10
- import { Observable } from 'rxjs';
11
- import { LicenseMessage } from '@progress/kendo-licensing';
12
- import { GanttTimelineComponent } from './timeline/gantt-timeline.component';
13
- import { GanttColumnBase } from './columns/columns';
14
- import { DataStateChangeEvent, ColumnMenuSettings, RowClassFn, TaskClassFn, ColumnVisibilityChangeEvent, ColumnResizeEvent, ColumnLockedChangeEvent, ColumnReorderEvent, ColumnReorderConfig, GanttTaskModelFields, GanttDependencyModelFields, SortSettings, CellClickEvent, TaskClickEvent, DependencyAddEvent, TaskDeleteEvent } from './models/models';
15
- import { LocalizationService } from '@progress/kendo-angular-l10n';
16
- import { TimelineViewService } from './timeline/timeline-view.service';
17
- import { TimelineViewType } from './models/timeline-view';
18
- import { TimelineBaseViewService } from './timeline/timeline-base-view.service';
19
- import { ScrollSyncService } from './scrolling/scroll-sync.service';
20
- import { DependencyDomService } from './dependencies/dependency-dom.service';
21
- import { MappingService } from './common/mapping.service';
22
- import { OptionChangesService } from './common/option-changes.service';
23
- import { EditService } from './editing/edit.service';
24
- import { NavigationService } from './navigation/navigation.service';
25
- import { TimelinePaneOptions, TreeListPaneOptions } from './models/splitter-pane-options.interface';
26
- import { GanttTaskTemplateDirective } from './template-directives/task-template.directive';
27
- import { GanttSummaryTaskTemplateDirective } from './template-directives/summary-task-template.directive';
28
- import { GanttTaskContentTemplateDirective } from './template-directives/task-content-template.directive';
29
- import { ToolbarTemplateDirective } from './toolbar/toolbar-template.directive';
30
- import { ToolbarSettings } from './models/toolbar-settings';
31
- import { ExpandEvent } from './expanded-state/expand-event';
32
- import { ViewBase } from './timeline/view-base';
33
- import { SelectionChangeEvent } from './selection/selection-change-event';
34
- import { TaskEditEvent } from './models/events/task-edit-event.interface';
35
- import { CellCloseEvent } from './models/events/cell-close-event.interface';
36
- import { CellCloseEvent as TreeListCellCloseEvent } from '@progress/kendo-angular-treelist';
37
- import { TaskAddEvent } from './models/events/task-add-event.interface';
38
- import { ViewItem } from './models/view-item.interface';
39
- import { DragScrollSettings } from './scrolling/drag-scroll-settings';
40
- import { FilterableSettings } from './models/filterable-settings';
41
- import { CurrentTimeMarkerService } from './timeline/current-time-marker.service';
42
- import { CurrentTimeSettings } from './models/current-time-settings.interface';
43
- import { GanttTaskTooltipTemplateDirective } from './template-directives/task-tooltip-template.directive';
44
- import { TaskTooltipOptions } from './models/tooltip-options.interface';
45
- import { IntlService } from '@progress/kendo-angular-intl';
46
- import { GanttTaskDragTooltipTemplateDirective } from './template-directives/task-drag-tooltip-template.directive';
47
- import * as i0 from "@angular/core";
48
- /**
49
- * Represents the [Kendo UI Gantt component for Angular](https://www.telerik.com/kendo-angular-ui/components/gantt).
50
- *
51
- * Use the Gantt component to display and manage project tasks and dependencies in a timeline view.
52
- *
53
- * @example
54
- * ```ts
55
- * import { Component } from '@angular/core';
56
- * import { GanttComponent, DependencyType } from '@progress/kendo-angular-gantt';
57
- *
58
- * @Component({
59
- * selector: 'my-app',
60
- * template: `
61
- * <kendo-gantt
62
- * [style.height.px]="500"
63
- * [kendoGanttHierarchyBinding]="data"
64
- * childrenField="subtasks"
65
- * [dependencies]="dependencies">
66
- * <kendo-gantt-column field="title" title="Task" [width]="200" [expandable]="true"></kendo-gantt-column>
67
- * <kendo-gantt-column field="start" title="Start" format="dd-MMM-yyyy" [width]="120"></kendo-gantt-column>
68
- * <kendo-gantt-column field="end" title="End" format="dd-MMM-yyyy" [width]="120"></kendo-gantt-column>
69
- * <kendo-gantt-timeline-day-view></kendo-gantt-timeline-day-view>
70
- * <kendo-gantt-timeline-week-view></kendo-gantt-timeline-week-view>
71
- * <kendo-gantt-timeline-month-view></kendo-gantt-timeline-month-view>
72
- * </kendo-gantt>
73
- * `
74
- * })
75
- * export class AppComponent {
76
- * public data: Task[] = [
77
- * {
78
- * id: 1,
79
- * title: 'Planning',
80
- * start: new Date('2024-01-01'),
81
- * end: new Date('2024-01-05'),
82
- * subtasks: []
83
- * }
84
- * ];
85
- * public dependencies = [
86
- * { id: 1, fromId: 1, toId: 2, type: DependencyType.FS }
87
- * ];
88
- * }
89
- * ```
90
- *
91
- * @remarks
92
- * Supported children components are:
93
- * {@link GanttColumnComponent},
94
- * {@link GanttSpanColumnComponent},
95
- * {@link GanttColumnGroupComponent},
96
- * {@link TimelineDayViewComponent},
97
- * {@link TimelineWeekViewComponent},
98
- * {@link TimelineMonthViewComponent},
99
- * {@link TimelineYearViewComponent},
100
- * {@link CustomMessagesComponent}.
101
- */
102
- export declare class GanttComponent implements AfterContentInit, OnChanges, OnDestroy, DataBoundTreeComponent, ExpandableTreeComponent {
103
- private timelineViewService;
104
- private scrollSyncService;
105
- private renderer;
106
- private mapper;
107
- private optionChangesService;
108
- private dependencyDomService;
109
- private editService;
110
- private localizationService;
111
- hostElement: ElementRef<HTMLElement>;
112
- private zone;
113
- private navigation;
114
- private currentTimeMarkerService;
115
- private intlService;
116
- localeId: string;
117
- treeList: TreeListComponent;
118
- timeline: GanttTimelineComponent;
119
- /**
120
- * @hidden
121
- *
122
- * Queries the template for a task content template declaration.
123
- * In newer Angular versions the ngIf-ed value gets evaluated after the static query is resolved.
124
- * Therefore the `static` property needs to be set to `false`.
125
- */
126
- taskContentTemplate: GanttTaskContentTemplateDirective;
127
- /**
128
- * @hidden
129
- *
130
- * Queries the template for a task template declaration.
131
- * In newer Angular versions the ngIf-ed value gets evaluated after the static query is resolved.
132
- * Therefore the `static` property needs to be set to `false`.
133
- */
134
- taskTemplate: GanttTaskTemplateDirective;
135
- /**
136
- * @hidden
137
- *
138
- * Queries the template for a task tooltip template declaration.
139
- * In newer Angular versions the ngIf-ed value gets evaluated after the static query is resolved.
140
- * Therefore the `static` property needs to be set to `false`.
141
- */
142
- taskTooltipTemplate: GanttTaskTooltipTemplateDirective;
143
- /**
144
- * @hidden
145
- *
146
- * Queries the template for a task drag tooltip template declaration.
147
- * In newer Angular versions the ngIf-ed value gets evaluated after the static query is resolved.
148
- * Therefore the `static` property needs to be set to `false`.
149
- */
150
- taskDragTooltipTemplate: GanttTaskDragTooltipTemplateDirective;
151
- /**
152
- * @hidden
153
- *
154
- * Queries the template for a task summary template declaration.
155
- * In newer Angular versions the ngIf-ed value gets evaluated after the static query is resolved.
156
- * Therefore the `static` property needs to be set to `false`.
157
- */
158
- summaryTaskTemplate: GanttSummaryTaskTemplateDirective;
159
- toolbarTemplateChildren: QueryList<ToolbarTemplateDirective>;
160
- get toolbarTemplate(): ToolbarTemplateDirective;
161
- set toolbarTemplate(customToolbarTemplate: ToolbarTemplateDirective);
162
- /**
163
- * @hidden
164
- */
165
- roleDescription: string;
166
- get hostRoleDescriptionAttr(): string;
167
- /**
168
- * @hidden
169
- */
170
- role: string;
171
- get hostRoleAttr(): string;
172
- hostClasses: boolean;
173
- get dir(): string;
174
- /**
175
- * A query list of all declared columns.
176
- */
177
- set columns(columns: QueryList<GanttColumnBase>);
178
- get columns(): QueryList<GanttColumnBase>;
179
- /**
180
- * Sets the fields used to extract task data from the `data` array items.
181
- * The `id` field is also used as a unique identifier for TreeList data items.
182
- * If not set, task data items must match the [`GanttTask`](https://www.telerik.com/kendo-angular-ui/components/gantt/api/gantttask) interface.
183
- */
184
- set taskModelFields(fields: GanttTaskModelFields);
185
- /**
186
- * Sets the fields used to extract dependency data from the `dependencies` array items.
187
- * If not set, dependency data items must match the [`GanttDependency`](https://www.telerik.com/kendo-angular-ui/components/gantt/api/ganttdependency) interface.
188
- */
189
- set dependencyModelFields(fields: GanttDependencyModelFields);
190
- /**
191
- * A query list of all declared views.
192
- */
193
- views: QueryList<ViewBase>;
194
- /**
195
- * Sets the active timeline view.
196
- * @default 'week'
197
- */
198
- set activeView(view: TimelineViewType);
199
- get activeView(): TimelineViewType;
200
- /**
201
- * @hidden
202
- *
203
- */
204
- get activeViewCurrentTimeMarker(): boolean | CurrentTimeSettings;
205
- /**
206
- * Gets or sets the Gantt data.
207
- * The task data items must match the [`GanttTask`](https://www.telerik.com/kendo-angular-ui/components/gantt/api/gantttask) interface or use [`taskModelFields`](https://www.telerik.com/kendo-angular-ui/components/gantt/api/ganttcomponent#taskmodelfields).
208
- */
209
- set data(data: any[]);
210
- get data(): any[];
211
- /**
212
- * Specifies a callback to determine if a task is selected ([see example](https://www.telerik.com/kendo-angular-ui/components/gantt/selection#custom-selection)).
213
- * Set [`selectable`](https://www.telerik.com/kendo-angular-ui/components/gantt/api/ganttcomponent#selectable) to `true` to use this callback.
214
- */
215
- isSelected: (dataItem: object) => boolean;
216
- /**
217
- * Specifies a callback to validate new dependencies.
218
- * Use this callback to control the valid dependencies that users can create ([see example](https://www.telerik.com/kendo-angular-ui/components/gantt/editing/dependencies-drag-create#validation)).
219
- */
220
- validateNewDependency: (dependency: object) => boolean;
221
- /**
222
- * Fires when the Gantt selection changes through user interaction.
223
- * The event data contains the affected items and the action type.
224
- */
225
- selectionChange: EventEmitter<SelectionChangeEvent>;
226
- /**
227
- * Enables or disables selection in the Gantt ([see example](https://www.telerik.com/kendo-angular-ui/components/gantt/selection#custom-selection)).
228
- * Set to `true` to allow selection.
229
- * > When set to `true`, the [`isSelected`](https://www.telerik.com/kendo-angular-ui/components/gantt/api/ganttcomponent#isselected) callback has to be provided.
230
- * > When applied, the [`SelectableDirective`](https://www.telerik.com/kendo-angular-ui/components/gantt/api/selectabledirective) sets `selectable` to `true` internally.
231
- * @default false
232
- */
233
- selectable: boolean;
234
- /**
235
- * Configures the toolbar position and content.
236
- * Set `position`, `addTaskTool`, and `viewSelectorTool` as needed.
237
- */
238
- set toolbarSettings(value: ToolbarSettings);
239
- get toolbarSettings(): ToolbarSettings;
240
- /**
241
- * Sets the `aria-label` attribute value for the toolbar.
242
- * Use this to improve accessibility.
243
- * @default "Toolbar"
244
- *
245
- * @remarks
246
- * This property is related to accessibility.
247
- */
248
- toolbarAriaLabel: string;
249
- /**
250
- * Sets the callback function to retrieve child items for a data item.
251
- */
252
- set fetchChildren(fn: (dataItem: any) => Observable<object[]> | object[]);
253
- get fetchChildren(): (dataItem: any) => Observable<object[]> | object[];
254
- /**
255
- * Sets the callback function to indicate if a data item has child items.
256
- */
257
- set hasChildren(fn: (dataItem: any) => boolean);
258
- get hasChildren(): (dataItem: any) => boolean;
259
- /**
260
- * Sets the dependencies to display between tasks.
261
- * Dependency data items must match the [`GanttDependency`](https://www.telerik.com/kendo-angular-ui/components/gantt/api/ganttdependency) interface or use [`dependencyModelFields`](https://www.telerik.com/kendo-angular-ui/components/gantt/api/ganttcomponent#dependencymodelfields).
262
- */
263
- dependencies: any[];
264
- /**
265
- * Enables sorting for columns with a `field` option.
266
- */
267
- sortable: SortSettings;
268
- /**
269
- * Sets the descriptors for sorting the data.
270
- */
271
- sort: SortDescriptor[];
272
- /**
273
- * Enables filtering for columns with a `field` option.
274
- * @default false
275
- */
276
- filterable: boolean;
277
- /**
278
- * Sets the descriptor for filtering the data.
279
- */
280
- filter: CompositeFilterDescriptor;
281
- /**
282
- * Sets the start time of the work day in `HH:mm` format.
283
- * @default "08:00"
284
- */
285
- workDayStart: string;
286
- /**
287
- * Sets the end time of the work day in `HH:mm` format.
288
- * @default "17:00"
289
- */
290
- workDayEnd: string;
291
- /**
292
- * Sets the start day of the work week (index based).
293
- * @default 1
294
- */
295
- workWeekStart: Day;
296
- /**
297
- * Sets the end day of the work week (index based).
298
- * @default 5
299
- */
300
- workWeekEnd: Day;
301
- /**
302
- * Enables keyboard navigation for the Gantt.
303
- * By default, navigation is enabled for the TreeList and Timeline parts of the component ([see example](https://www.telerik.com/kendo-angular-ui/components/gantt/keyboard-navigation)).
304
- * @default true
305
- *
306
- * @remarks
307
- * This property is related to accessibility.
308
- */
309
- navigable: boolean;
310
- /**
311
- * Sets the options for the timeline splitter pane.
312
- * By default, the pane is collapsible, resizable, not collapsed, and its size is `'50%'`.
313
- */
314
- set timelinePaneOptions(value: TimelinePaneOptions);
315
- get timelinePaneOptions(): TimelinePaneOptions;
316
- /**
317
- * Sets the options for the treelist splitter pane.
318
- * By default the pane is collapsible and not collapsed.
319
- */
320
- set treeListPaneOptions(value: TreeListPaneOptions);
321
- get treeListPaneOptions(): TreeListPaneOptions;
322
- /**
323
- * Sets a function to apply custom CSS classes to each task.
324
- * The function receives the task data item.
325
- */
326
- set taskClass(fn: TaskClassFn);
327
- get taskClass(): TaskClassFn;
328
- /**
329
- * Sets a function to apply custom CSS classes to each data row.
330
- * The function receives the row data item.
331
- */
332
- set rowClass(fn: RowClassFn);
333
- get rowClass(): RowClassFn;
334
- /**
335
- * Gets the name of the field that contains the unique identifier for task data items.
336
- * @default "id"
337
- */
338
- get taskIdField(): any;
339
- /**
340
- * Sets a callback function to indicate if a data item is expanded.
341
- * If not set, all items are expanded and no expand icons are shown.
342
- */
343
- isExpanded: (item: object) => boolean;
344
- /**
345
- * Enables automatic resizing of columns to fit their content.
346
- * @default false
347
- */
348
- columnsAutoSize: boolean;
349
- /**
350
- * Sets the current time marker settings for the Gantt.
351
- * Applies to all views unless overridden by the settings of a particular view.
352
- * @default true
353
- */
354
- currentTimeMarker: boolean | CurrentTimeSettings;
355
- /**
356
- * Enables the column menu for all columns.
357
- * @default false
358
- */
359
- columnMenu: boolean | ColumnMenuSettings;
360
- /**
361
- * Enables reordering of the columns by dragging their header cells.
362
- * @default false
363
- */
364
- columnsReorderable: boolean;
365
- /**
366
- * Enables resizing of the columns by dragging the header cell edges (resize handles).
367
- * @default false
368
- */
369
- columnsResizable: boolean;
370
- /**
371
- * Defines the settings for auto-scrolling during dragging when the pointer moves outside the container ([see example](https://www.telerik.com/kendo-angular-ui/components/gantt/editing/dependencies-drag-create#auto-scrolling)).
372
- */
373
- set dragScrollSettings(settings: DragScrollSettings);
374
- get dragScrollSettings(): DragScrollSettings;
375
- /**
376
- * Sets the options for the task tooltip, such as `position`, `callout`, and `showAfter`.
377
- * @default { position: 'top', callout: true, showAfter: 100 }
378
- */
379
- taskTooltipOptions: TaskTooltipOptions;
380
- /**
381
- * Fires when a row is expanded.
382
- */
383
- rowExpand: EventEmitter<ExpandEvent>;
384
- /**
385
- * Fires when a Gantt task in the timeline pane is double-clicked.
386
- * The event data contains the clicked task. Use this event to open a task editing dialog if needed.
387
- */
388
- taskDblClick: EventEmitter<TaskClickEvent>;
389
- /**
390
- * Fires when a cell is double-clicked.
391
- */
392
- cellDblClick: EventEmitter<CellClickEvent>;
393
- /**
394
- * Fires when an edited cell is closed.
395
- */
396
- cellClose: EventEmitter<CellCloseEvent>;
397
- /**
398
- * Fires when the user clicks the `Delete` button in the task editing dialog,
399
- * the task delete icon, or presses the `Delete` key on a focused task.
400
- * Use this event to open a confirmation dialog if needed.
401
- */
402
- taskDelete: EventEmitter<TaskDeleteEvent>;
403
- /**
404
- * Fires when a row is collapsed.
405
- */
406
- rowCollapse: EventEmitter<ExpandEvent>;
407
- /**
408
- * Fires when the user confirms deleting a task.
409
- */
410
- remove: EventEmitter<TaskEditEvent>;
411
- /**
412
- * Fires when the user cancels editing a task.
413
- */
414
- cancel: EventEmitter<TaskEditEvent>;
415
- /**
416
- * Fires when the user saves an edited task.
417
- */
418
- save: EventEmitter<TaskEditEvent>;
419
- /**
420
- * Fires when the user adds a task.
421
- */
422
- taskAdd: EventEmitter<TaskAddEvent>;
423
- /**
424
- * Fires when the user adds a dependency by dragging [see example](https://www.telerik.com/kendo-angular-ui/components/gantt/editing/dependencies-drag-create#basic-concepts).
425
- */
426
- dependencyAdd: EventEmitter<DependencyAddEvent>;
427
- /**
428
- * Fires when there are changes in the Gantt sorting.
429
- * Handle this event to sort the data.
430
- */
431
- sortChange: EventEmitter<SortDescriptor[]>;
432
- /**
433
- * Fires when there are changes in the Gantt filtering.
434
- * Handle this event to filter the data.
435
- */
436
- filterChange: EventEmitter<CompositeFilterDescriptor>;
437
- /**
438
- * Fires when the filter or sort state changes.
439
- */
440
- dataStateChange: EventEmitter<DataStateChangeEvent>;
441
- /**
442
- * Fires when the collapsed state of the treelist pane changes.
443
- */
444
- treeListPaneCollapsedChange: EventEmitter<boolean>;
445
- /**
446
- * Fires when the collapsed state of the timeline pane changes.
447
- */
448
- timelinePaneCollapsedChange: EventEmitter<boolean>;
449
- /**
450
- * Fires when the user resizes the timeline pane.
451
- */
452
- timelinePaneSizeChange: EventEmitter<string>;
453
- /**
454
- * Fires when the user selects a different view type.
455
- * The event data contains the type of the new view.
456
- */
457
- activeViewChange: EventEmitter<TimelineViewType>;
458
- /**
459
- * Fires when the user completes resizing a column.
460
- */
461
- columnResize: EventEmitter<ColumnResizeEvent[]>;
462
- /**
463
- * Fires when the user completes reordering a column.
464
- */
465
- columnReorder: EventEmitter<ColumnReorderEvent>;
466
- /**
467
- * Fires when the user changes column visibility from the column menu or chooser.
468
- */
469
- columnVisibilityChange: EventEmitter<ColumnVisibilityChangeEvent>;
470
- /**
471
- * @hidden
472
- *
473
- * Fires when the user changes the locked state of the columns from the column menu or by reordering the columns.
474
- */
475
- columnLockedChange: EventEmitter<ColumnLockedChangeEvent>;
476
- /**
477
- * Fires when a cell is clicked.
478
- */
479
- cellClick: EventEmitter<CellClickEvent>;
480
- /**
481
- * Fires when a task is clicked.
482
- */
483
- taskClick: EventEmitter<TaskClickEvent>;
484
- /**
485
- * @hidden
486
- */
487
- get renderedTreeListItems(): any[];
488
- /**
489
- * @hidden
490
- */
491
- get viewItems(): ViewItem[];
492
- /**
493
- * @hidden
494
- */
495
- get filterMenu(): FilterableSettings;
496
- /**
497
- * @hidden
498
- *
499
- * Specifies whether the dependency drag clues will be rendered.
500
- * Set internally by the dependency-drag-create directive.
501
- *
502
- * @default false
503
- */
504
- renderDependencyDragClues: boolean;
505
- /**
506
- * @hidden
507
- */
508
- timelineSlots: any[];
509
- /**
510
- * @hidden
511
- */
512
- timelineGroupSlots: any[];
513
- /**
514
- * @hidden
515
- */
516
- tableWidth: number;
517
- /**
518
- * @hidden
519
- */
520
- get viewService(): TimelineBaseViewService;
521
- /**
522
- * @hidden
523
- *
524
- * Retrieves the `isSelected` callback if `selectable` is set to `true`
525
- * Otherwise returns the default callback, which always returns `false`.
526
- */
527
- get isTaskSelected(): (dataItem: any) => boolean;
528
- /**
529
- * @hidden
530
- *
531
- * Used by the GanttExpandableDirective.
532
- */
533
- get idGetter(): any;
534
- /**
535
- * @hidden
536
- *
537
- * Used by the views selector.
538
- */
539
- get viewTypes(): TimelineViewType[];
540
- /**
541
- * @hidden
542
- *
543
- * Used by the GanttExpandableDirective.
544
- */
545
- expandStateChange: EventEmitter<any>;
546
- /**
547
- * @hidden
548
- */
549
- showEditingDialog: boolean;
550
- /**
551
- * @hidden
552
- */
553
- showConfirmationDialog: boolean;
554
- /**
555
- * @hidden
556
- */
557
- get isInEditMode(): boolean;
558
- /**
559
- * @hidden
560
- */
561
- showLicenseWatermark: boolean;
562
- /**
563
- * @hidden
564
- */
565
- licenseMessage?: LicenseMessage;
566
- private _columns;
567
- private _data;
568
- private _dragScrollSettings;
569
- private _timelinePaneOptions;
570
- private _treeListPaneOptions;
571
- private _customToolbarTemplate;
572
- private _rowClass;
573
- private _taskClass;
574
- private _activeView;
575
- private _toolbarSettings;
576
- private _fetchChildren;
577
- private _hasChildren;
578
- private lastTreeListCellClick;
579
- private direction;
580
- private rtl;
581
- private editItem;
582
- private optionChangesSubscriptions;
583
- private editServiceSubscription;
584
- private localizationSubscription;
585
- private intlSubscription;
586
- private keydownListenerDisposers;
587
- constructor(timelineViewService: TimelineViewService, scrollSyncService: ScrollSyncService, renderer: Renderer2, mapper: MappingService, optionChangesService: OptionChangesService, dependencyDomService: DependencyDomService, editService: EditService, localizationService: LocalizationService, hostElement: ElementRef<HTMLElement>, zone: NgZone, navigation: NavigationService, currentTimeMarkerService: CurrentTimeMarkerService, intlService: IntlService, localeId: string);
588
- ngOnChanges(changes: SimpleChanges): void;
589
- ngAfterViewInit(): void;
590
- ngAfterContentInit(): void;
591
- ngOnDestroy(): void;
592
- /**
593
- * Focuses the last active cell or task in the Gantt.
594
- * If no item was previously focused, focuses the first TreeList cell ([see example](https://www.telerik.com/kendo-angular-ui/components/gantt/keyboard-navigation#controlling-the-focus)).
595
- */
596
- focus(): void;
597
- /**
598
- * Focuses the specified cell in the TreeList ([see example](https://www.telerik.com/kendo-angular-ui/components/gantt/keyboard-navigation#controlling-the-focus)).
599
- * @param rowIndex The row index.
600
- * @param colIndex The column index.
601
- */
602
- focusCell(rowIndex: number, colIndex: number): void;
603
- /**
604
- * Focuses the specified task in the Timeline ([see example](https://www.telerik.com/kendo-angular-ui/components/gantt/keyboard-navigation#controlling-the-focus)).
605
- * @param taskIndex The index of the task.
606
- */
607
- focusTask(taskIndex: number): void;
608
- /**
609
- * Sets the minimum width for the specified column so that its content fits.
610
- * The Gantt must be resizable.
611
- * @param column The column to auto-fit.
612
- */
613
- autoFitColumn(column: GanttColumnBase): void;
614
- /**
615
- * Adjusts the width of the specified columns to fit their content.
616
- * If no columns are specified, fits all columns.
617
- * The Gantt must be resizable to use this method.
618
- * @param columns The columns to auto-fit.
619
- */
620
- autoFitColumns(columns?: Array<GanttColumnBase> | QueryList<GanttColumnBase>): void;
621
- /**
622
- * Clears loaded children for the data item so the Gantt fetches them again.
623
- * @param dataItem The data item to reload.
624
- * @param reloadChildren Whether to reload children.
625
- */
626
- reload(dataItem: any, reloadChildren?: boolean): void;
627
- /**
628
- * Changes the position of the specified column.
629
- * The source column must be visible.
630
- * @param source The column to move.
631
- * @param destIndex The new position index.
632
- * @param options Additional options.
633
- */
634
- reorderColumn(source: GanttColumnBase, destIndex: number, options?: ColumnReorderConfig): void;
635
- /**
636
- * Forces the Gantt to re-evaluate data items and re-render the rows and Timeline period, if needed.
637
- * Also redraws dependencies and executes row-related callbacks.
638
- */
639
- updateView(): void;
640
- /**
641
- * Opens the task editing dialog for the specified data item.
642
- * @param dataItem The task data item.
643
- * @param formGroup The form group for editing.
644
- */
645
- editTask(dataItem: any, formGroup: FormGroup): void;
646
- /**
647
- * Closes the task editing dialog.
648
- */
649
- closeTaskDialog(): void;
650
- /**
651
- * Opens the delete task confirmation dialog.
652
- */
653
- openConfirmationDialog(): void;
654
- /**
655
- * @hidden
656
- */
657
- handleConfirmationDialogClose(): void;
658
- /**
659
- * Opens a cell for editing.
660
- * @param dataItem The data item.
661
- * @param column The column index, name, or object.
662
- * @param formGroup The form group for editing.
663
- */
664
- editCell(dataItem: any, column: number | string | any, formGroup?: FormGroup): void;
665
- /**
666
- * Closes the currently edited cell.
667
- */
668
- closeCell(): void;
669
- /**
670
- * @hidden
671
- */
672
- handleCellClose(e: TreeListCellCloseEvent): void;
673
- /**
674
- * @hidden
675
- */
676
- onTreeListCollapsedChange(collapsed: boolean): void;
677
- /**
678
- * @hidden
679
- */
680
- onTimelineCollapsedChange(collapsed: boolean): void;
681
- /**
682
- * @hidden
683
- */
684
- loadTimelineData(): void;
685
- /**
686
- * @hidden
687
- */
688
- showToolbar(position: string): boolean;
689
- /**
690
- * @hidden
691
- */
692
- handleColumnVisibilityChange(event: ColumnVisibilityChangeEvent): void;
693
- /**
694
- * @hidden
695
- */
696
- onTimelinePaneSizeChange(e: string): void;
697
- /**
698
- * @hidden
699
- */
700
- handleTimelineRightClick(event: PointerEvent): void;
701
- /**
702
- * @hidden
703
- */
704
- handleTimelineClick(event: PointerEvent): void;
705
- /**
706
- * @hidden
707
- */
708
- handleTreeListDoubleClick(event: PointerEvent): void;
709
- /**
710
- * @hidden
711
- */
712
- handleTreeListSelectionChange(event: TreeListSelectionChangeEvent): void;
713
- /**
714
- * @hidden
715
- */
716
- handleTreeListCellClick(event: TreeListCellClickEvent): void;
717
- /**
718
- * @hidden
719
- */
720
- handleDeleteConfirmation(): void;
721
- /**
722
- * @hidden
723
- */
724
- handleTimelineMouseDown(event: MouseEvent): void;
725
- /**
726
- * @hidden
727
- */
728
- handleTimelineDblClick(event: PointerEvent): void;
729
- /**
730
- * @hidden
731
- */
732
- getText(token: string): string;
733
- /**
734
- * @hidden
735
- */
736
- changeActiveView(view: TimelineViewType): void;
737
- /**
738
- * @hidden
739
- */
740
- notifyTaskClick(event: PointerEvent | KeyboardEvent, dataItem: any, itemIndex: number): void;
741
- /**
742
- * @hidden
743
- */
744
- notifySelectionChange(dataItem: any, action: 'select' | 'remove'): void;
745
- /**
746
- * @hidden
747
- */
748
- notifyTaskDelete(task: any): void;
749
- /**
750
- * @hidden
751
- */
752
- isSameSelection(action: 'select' | 'remove', dataItem: any): boolean;
753
- /**
754
- * @hidden
755
- */
756
- getSelectionAction({ ctrlKey, metaKey }: PointerEvent | KeyboardEvent, dataItem: any): 'select' | 'remove';
757
- private updateTreeListGroupClass;
758
- /**
759
- * Used to hide the vertical scrollbar
760
- */
761
- private updateTreeListMargin;
762
- private get activeTimelineIndex();
763
- private getActiveViewOptions;
764
- private getFirstSelectedItem;
765
- private defaultValidateNewDependencyCallback;
766
- private handleKeydown;
767
- static ɵfac: i0.ɵɵFactoryDeclaration<GanttComponent, never>;
768
- static ɵcmp: i0.ɵɵComponentDeclaration<GanttComponent, "kendo-gantt", ["kendoGantt"], { "roleDescription": { "alias": "aria-roledescription"; "required": false; }; "role": { "alias": "role"; "required": false; }; "taskModelFields": { "alias": "taskModelFields"; "required": false; }; "dependencyModelFields": { "alias": "dependencyModelFields"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "data": { "alias": "data"; "required": false; }; "isSelected": { "alias": "isSelected"; "required": false; }; "validateNewDependency": { "alias": "validateNewDependency"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "toolbarSettings": { "alias": "toolbarSettings"; "required": false; }; "toolbarAriaLabel": { "alias": "toolbarAriaLabel"; "required": false; }; "fetchChildren": { "alias": "fetchChildren"; "required": false; }; "hasChildren": { "alias": "hasChildren"; "required": false; }; "dependencies": { "alias": "dependencies"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "filterable": { "alias": "filterable"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "workDayStart": { "alias": "workDayStart"; "required": false; }; "workDayEnd": { "alias": "workDayEnd"; "required": false; }; "workWeekStart": { "alias": "workWeekStart"; "required": false; }; "workWeekEnd": { "alias": "workWeekEnd"; "required": false; }; "navigable": { "alias": "navigable"; "required": false; }; "timelinePaneOptions": { "alias": "timelinePaneOptions"; "required": false; }; "treeListPaneOptions": { "alias": "treeListPaneOptions"; "required": false; }; "taskClass": { "alias": "taskClass"; "required": false; }; "rowClass": { "alias": "rowClass"; "required": false; }; "isExpanded": { "alias": "isExpanded"; "required": false; }; "columnsAutoSize": { "alias": "columnsAutoSize"; "required": false; }; "currentTimeMarker": { "alias": "currentTimeMarker"; "required": false; }; "columnMenu": { "alias": "columnMenu"; "required": false; }; "columnsReorderable": { "alias": "columnsReorderable"; "required": false; }; "columnsResizable": { "alias": "columnsResizable"; "required": false; }; "dragScrollSettings": { "alias": "dragScrollSettings"; "required": false; }; "taskTooltipOptions": { "alias": "taskTooltipOptions"; "required": false; }; }, { "selectionChange": "selectionChange"; "rowExpand": "rowExpand"; "taskDblClick": "taskDblClick"; "cellDblClick": "cellDblClick"; "cellClose": "cellClose"; "taskDelete": "taskDelete"; "rowCollapse": "rowCollapse"; "remove": "remove"; "cancel": "cancel"; "save": "save"; "taskAdd": "taskAdd"; "dependencyAdd": "dependencyAdd"; "sortChange": "sortChange"; "filterChange": "filterChange"; "dataStateChange": "dataStateChange"; "treeListPaneCollapsedChange": "treeListPaneCollapsedChange"; "timelinePaneCollapsedChange": "timelinePaneCollapsedChange"; "timelinePaneSizeChange": "timelinePaneSizeChange"; "activeViewChange": "activeViewChange"; "columnResize": "columnResize"; "columnReorder": "columnReorder"; "columnVisibilityChange": "columnVisibilityChange"; "columnLockedChange": "columnLockedChange"; "cellClick": "cellClick"; "taskClick": "taskClick"; }, ["taskContentTemplate", "taskTemplate", "taskTooltipTemplate", "taskDragTooltipTemplate", "summaryTaskTemplate", "toolbarTemplateChildren", "columns", "views"], never, true, never>;
769
- }