@progress/kendo-angular-gantt 19.1.2-develop.3 → 19.1.2-develop.5

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 (102) hide show
  1. package/binding-directives/flat-binding.directive.d.ts +16 -4
  2. package/binding-directives/hierarchy-binding.directive.d.ts +16 -3
  3. package/columns/cell-template.directive.d.ts +20 -12
  4. package/columns/column-base.component.d.ts +2 -1
  5. package/columns/column-group.component.d.ts +14 -0
  6. package/columns/column-menu-template.directive.d.ts +14 -7
  7. package/columns/column.component.d.ts +12 -2
  8. package/columns/edit-template.directive.d.ts +15 -6
  9. package/columns/filter-menu-template.directive.d.ts +14 -4
  10. package/columns/footer-template.directive.d.ts +14 -5
  11. package/columns/header-template.directive.d.ts +15 -5
  12. package/columns/span-column.component.d.ts +16 -0
  13. package/directives.d.ts +1 -1
  14. package/dragging/dependency-drag-create.directive.d.ts +9 -2
  15. package/dragging/task-drag.directive.d.ts +17 -4
  16. package/editing/add-task.component.d.ts +7 -7
  17. package/esm2022/binding-directives/flat-binding.directive.mjs +16 -4
  18. package/esm2022/binding-directives/hierarchy-binding.directive.mjs +16 -3
  19. package/esm2022/columns/cell-template.directive.mjs +20 -12
  20. package/esm2022/columns/column-base.component.mjs +2 -1
  21. package/esm2022/columns/column-group.component.mjs +14 -0
  22. package/esm2022/columns/column-menu-template.directive.mjs +14 -7
  23. package/esm2022/columns/column.component.mjs +12 -2
  24. package/esm2022/columns/edit-template.directive.mjs +15 -6
  25. package/esm2022/columns/filter-menu-template.directive.mjs +14 -4
  26. package/esm2022/columns/footer-template.directive.mjs +14 -5
  27. package/esm2022/columns/header-template.directive.mjs +15 -5
  28. package/esm2022/columns/span-column.component.mjs +16 -0
  29. package/esm2022/directives.mjs +1 -1
  30. package/esm2022/dragging/dependency-drag-create.directive.mjs +9 -18
  31. package/esm2022/dragging/task-drag.directive.mjs +17 -4
  32. package/esm2022/editing/add-task.component.mjs +7 -7
  33. package/esm2022/expanded-state/expand-event.mjs +3 -2
  34. package/esm2022/expanded-state/expandable.directive.mjs +11 -5
  35. package/esm2022/gantt.component.mjs +163 -211
  36. package/esm2022/gantt.module.mjs +9 -20
  37. package/esm2022/localization/custom-messages.component.mjs +10 -2
  38. package/esm2022/models/dependency-type.enum.mjs +14 -2
  39. package/esm2022/models/events/cell-close-event.interface.mjs +9 -10
  40. package/esm2022/package-metadata.mjs +2 -2
  41. package/esm2022/selection/selectable.directive.mjs +13 -5
  42. package/esm2022/template-directives/summary-task-template.directive.mjs +14 -23
  43. package/esm2022/template-directives/task-content-template.directive.mjs +3 -4
  44. package/esm2022/template-directives/task-template.directive.mjs +12 -21
  45. package/esm2022/template-directives/task-tooltip-template.directive.mjs +3 -4
  46. package/esm2022/timeline/timeline-day-view.component.mjs +7 -2
  47. package/esm2022/timeline/timeline-month-view.component.mjs +7 -2
  48. package/esm2022/timeline/timeline-week-view.component.mjs +7 -2
  49. package/esm2022/timeline/timeline-year-view.component.mjs +7 -2
  50. package/esm2022/timeline/view-base.mjs +10 -4
  51. package/esm2022/toolbar/toolbar-template.directive.mjs +13 -86
  52. package/esm2022/toolbar/view-selector.component.mjs +4 -4
  53. package/expanded-state/expand-event.d.ts +3 -2
  54. package/expanded-state/expandable.directive.d.ts +11 -5
  55. package/fesm2022/progress-kendo-angular-gantt.mjs +520 -490
  56. package/gantt.component.d.ts +159 -207
  57. package/gantt.module.d.ts +9 -20
  58. package/localization/custom-messages.component.d.ts +10 -2
  59. package/models/cell-content-type.interface.d.ts +4 -3
  60. package/models/class-callbacks.d.ts +20 -20
  61. package/models/column-menu-settings.interface.d.ts +7 -8
  62. package/models/column-reorder-config.d.ts +4 -1
  63. package/models/current-time-settings.interface.d.ts +8 -5
  64. package/models/dependency-type.enum.d.ts +13 -1
  65. package/models/events/cell-click-event.interface.d.ts +9 -9
  66. package/models/events/cell-close-event.interface.d.ts +9 -10
  67. package/models/events/column-reorder-event.interface.d.ts +1 -1
  68. package/models/events/column-resize-event.interface.d.ts +1 -1
  69. package/models/events/column-visibility-change-event.interface.d.ts +2 -2
  70. package/models/events/data-state-change-event.interface.d.ts +1 -1
  71. package/models/events/dependency-add-event.interface.d.ts +5 -5
  72. package/models/events/task-add-event.interface.d.ts +6 -6
  73. package/models/events/task-click-event.interface.d.ts +6 -6
  74. package/models/events/task-delete-event.interface.d.ts +4 -5
  75. package/models/events/task-drag-event.interface.d.ts +13 -15
  76. package/models/events/task-edit-event.interface.d.ts +13 -15
  77. package/models/gantt-dependency-model-fields.interface.d.ts +11 -10
  78. package/models/gantt-dependency.interface.d.ts +8 -5
  79. package/models/gantt-task-model-fields.interface.d.ts +22 -13
  80. package/models/gantt-task.interface.d.ts +11 -10
  81. package/models/sort-settings.d.ts +6 -6
  82. package/models/splitter-pane-options.interface.d.ts +8 -8
  83. package/models/timeline-header-date-format.d.ts +4 -3
  84. package/models/timeline-view.d.ts +1 -1
  85. package/models/toolbar-settings.d.ts +5 -6
  86. package/models/tooltip-options.interface.d.ts +4 -4
  87. package/package.json +17 -17
  88. package/schematics/ngAdd/index.js +7 -7
  89. package/scrolling/drag-scroll-settings.d.ts +4 -4
  90. package/selection/selectable.directive.d.ts +13 -5
  91. package/selection/selection-change-event.d.ts +6 -7
  92. package/template-directives/summary-task-template.directive.d.ts +14 -23
  93. package/template-directives/task-content-template.directive.d.ts +3 -4
  94. package/template-directives/task-template.directive.d.ts +12 -21
  95. package/template-directives/task-tooltip-template.directive.d.ts +3 -4
  96. package/timeline/timeline-day-view.component.d.ts +7 -2
  97. package/timeline/timeline-month-view.component.d.ts +7 -2
  98. package/timeline/timeline-week-view.component.d.ts +7 -2
  99. package/timeline/timeline-year-view.component.d.ts +7 -2
  100. package/timeline/view-base.d.ts +11 -5
  101. package/toolbar/toolbar-template.directive.d.ts +13 -86
  102. package/toolbar/view-selector.component.d.ts +4 -4
@@ -67,75 +67,58 @@ const DEFAULT_DRAG_SCROLL_SETTINGS = {
67
67
  threshold: 10
68
68
  };
69
69
  /**
70
- * Represents the Kendo UI Gantt component for Angular.
70
+ * Represents the [Kendo UI Gantt component for Angular](slug:overview_gantt).
71
+ *
72
+ * Use the Gantt component to display and manage project tasks and dependencies in a timeline view.
71
73
  *
72
74
  * @example
73
- * ```ts-preview
74
- * _@Component({
75
- * selector: 'my-app',
76
- * template: `
77
- * <kendo-gantt
78
- * [style.height.px]="500"
79
- * [kendoGanttHierarchyBinding]="data"
80
- * childrenField="subtasks"
81
- * [dependencies]="dependencies">
82
- * <kendo-gantt-column
83
- * field="title"
84
- * title="Task"
85
- * [width]="200"
86
- * [expandable]="true"></kendo-gantt-column>
87
- * <kendo-gantt-column
88
- * field="start"
89
- * title="Start"
90
- * format="dd-MMM-yyyy"
91
- * [width]="120"></kendo-gantt-column>
92
- * <kendo-gantt-column
93
- * field="end"
94
- * title="End"
95
- * format="dd-MMM-yyyy"
96
- * [width]="120"></kendo-gantt-column>
97
- * <kendo-gantt-timeline-day-view></kendo-gantt-timeline-day-view>
98
- * <kendo-gantt-timeline-week-view></kendo-gantt-timeline-week-view>
99
- * <kendo-gantt-timeline-month-view></kendo-gantt-timeline-month-view>
100
- * </kendo-gantt>
101
- * `
102
- * })
103
- * class AppComponent {
104
- * public data: Task[] = [{
105
- * id: 7, title: 'Validation and R&D', start: new Date('2014-06-02T00:00:00.000Z'),
106
- * end: new Date('2014-06-19T00:00:00.000Z'), completionRatio: 0.45708333333333334,
107
- * subtasks: [
108
- * { id: 18, title: 'Project Kickoff', start: new Date('2014-06-02T00:00:00.000Z'),
109
- * end: new Date('2014-06-02T00:00:00.000Z'), completionRatio: 0.23 },
110
- * { id: 11, title: 'Research', start: new Date('2014-06-02T00:00:00.000Z'),
111
- * end: new Date('2014-06-07T00:00:00.000Z'), completionRatio: 0.5766666666666667,
112
- * subtasks: [
113
- * { id: 19, title: 'Validation', start: new Date('2014-06-02T00:00:00.000Z'),
114
- * end: new Date('2014-06-04T00:00:00.000Z'), completionRatio: 0.25 },
115
- * { id: 39, title: 'Specification', start: new Date('2014-06-04T00:00:00.000Z'),
116
- * end: new Date('2014-06-07T00:00:00.000Z'), completionRatio: 0.66 }]
117
- * }, { id: 13, title: 'Implementation', start: new Date('2014-06-08T00:00:00.000Z'),
118
- * end: new Date('2014-06-19T00:00:00.000Z'), completionRatio: 0.77,
119
- * subtasks: [
120
- * { id: 24, title: 'Prototype', start: new Date('2014-06-08T00:00:00.000Z'),
121
- * end: new Date('2014-06-14T00:00:00.000Z'), completionRatio: 0.77 },
122
- * { id: 29, title: 'UI and Interaction', start: new Date('2014-06-14T00:00:00.000Z'),
123
- * end: new Date('2014-06-19T00:00:00.000Z'), completionRatio: 0.6 }]
124
- * }, { id: 17, title: 'Release', start: new Date('2014-06-19T00:00:00.000Z'),
125
- * end: new Date('2014-06-19T00:00:00.000Z'), completionRatio: 0 }]
126
- * }];
75
+ * ```ts
76
+ * import { Component } from '@angular/core';
77
+ * import { GanttComponent, DependencyType } from '@progress/kendo-angular-gantt';
127
78
  *
128
- * public dependencies: GanttDependency[] = [
129
- * { id: 528, fromId: 18, toId: 19, type: DependencyType.FS },
130
- * { id: 529, fromId: 19, toId: 39, type: DependencyType.FS },
131
- * { id: 535, fromId: 24, toId: 29, type: DependencyType.FS },
132
- * { id: 551, fromId: 13, toId: 29, type: DependencyType.FF },
133
- * { id: 777, fromId: 7, toId: 11, type: DependencyType.SF },
134
- * { id: 556, fromId: 39, toId: 24, type: DependencyType.FS },
135
- * { id: 546, fromId: 29, toId: 17, type: DependencyType.FS },
136
- * ];
79
+ * @Component({
80
+ * selector: 'my-app',
81
+ * template: `
82
+ * <kendo-gantt
83
+ * [style.height.px]="500"
84
+ * [kendoGanttHierarchyBinding]="data"
85
+ * childrenField="subtasks"
86
+ * [dependencies]="dependencies">
87
+ * <kendo-gantt-column field="title" title="Task" [width]="200" [expandable]="true"></kendo-gantt-column>
88
+ * <kendo-gantt-column field="start" title="Start" format="dd-MMM-yyyy" [width]="120"></kendo-gantt-column>
89
+ * <kendo-gantt-column field="end" title="End" format="dd-MMM-yyyy" [width]="120"></kendo-gantt-column>
90
+ * <kendo-gantt-timeline-day-view></kendo-gantt-timeline-day-view>
91
+ * <kendo-gantt-timeline-week-view></kendo-gantt-timeline-week-view>
92
+ * <kendo-gantt-timeline-month-view></kendo-gantt-timeline-month-view>
93
+ * </kendo-gantt>
94
+ * `
95
+ * })
96
+ * export class AppComponent {
97
+ * public data: Task[] = [
98
+ * {
99
+ * id: 1,
100
+ * title: 'Planning',
101
+ * start: new Date('2024-01-01'),
102
+ * end: new Date('2024-01-05'),
103
+ * subtasks: []
104
+ * }
105
+ * ];
106
+ * public dependencies = [
107
+ * { id: 1, fromId: 1, toId: 2, type: DependencyType.FS }
108
+ * ];
137
109
  * }
138
110
  * ```
111
+ *
112
+ * @remarks
113
+ * Supported children components are:
114
+ * {@link GanttColumnComponent},
115
+ * {@link GanttSpanColumnComponent},
116
+ * {@link GanttColumnGroupComponent},
117
+ * {@link TimelineDayViewComponent},
118
+ * {@link TimelineWeekViewComponent},
119
+ * {@link TimelineMonthViewComponent},
120
+ * {@link TimelineYearViewComponent},
121
+ * {@link CustomMessagesComponent}.
139
122
  */
140
123
  export class GanttComponent {
141
124
  timelineViewService;
@@ -225,18 +208,16 @@ export class GanttComponent {
225
208
  return this._columns;
226
209
  }
227
210
  /**
228
- * Sets the fields which will be used to extract the task data from the provided `data` array items.
229
- * The `id` field is also used as a TreeList data item unique identifier (defaults to `'id'`).
230
- *
231
- * > If no object is provided, the Gantt task data items will have to conform to the [`GanttTask`]({% slug api_gantt_gantttask %}) interface.
211
+ * Sets the fields used to extract task data from the `data` array items.
212
+ * The `id` field is also used as a unique identifier for TreeList data items.
213
+ * If not set, task data items must match the [`GanttTask`](slug:api_gantt_gantttask) interface.
232
214
  */
233
215
  set taskModelFields(fields) {
234
216
  this.mapper.taskFields = fields;
235
217
  }
236
218
  /**
237
- * Sets the fields which will be used to extract the dependency data from the provided `dependencies` array items.
238
- *
239
- * > If no object is provided, the Gantt dependency data items will have to conform to the [`GanttDependency`]({% slug api_gantt_ganttdependency %}) interface.
219
+ * Sets the fields used to extract dependency data from the `dependencies` array items.
220
+ * If not set, dependency data items must match the [`GanttDependency`](slug:api_gantt_ganttdependency) interface.
240
221
  */
241
222
  set dependencyModelFields(fields) {
242
223
  this.mapper.dependencyFields = fields;
@@ -246,7 +227,7 @@ export class GanttComponent {
246
227
  */
247
228
  views;
248
229
  /**
249
- * The active timeline view.
230
+ * Sets the active timeline view.
250
231
  * @default 'week'
251
232
  */
252
233
  set activeView(view) {
@@ -275,9 +256,8 @@ export class GanttComponent {
275
256
  return activeViewCurrentTimeMarker || this.currentTimeMarker;
276
257
  }
277
258
  /**
278
- * Gets or sets the data of the Gantt.
279
- *
280
- * > The task data items should either conform to the [`GanttTask`]({% slug api_gantt_gantttask %}) interface, or a [`taskModelFields`]({% slug api_gantt_ganttcomponent %}#toc-taskmodelfields) object has to be provided.
259
+ * Gets or sets the Gantt data.
260
+ * The task data items must match the [`GanttTask`]({% slug api_gantt_gantttask %}) interface or use [`taskModelFields`]({% slug api_gantt_ganttcomponent %}#toc-taskmodelfields).
281
261
  */
282
262
  set data(data) {
283
263
  this._data = normalizeGanttData(data);
@@ -287,49 +267,31 @@ export class GanttComponent {
287
267
  return this._data;
288
268
  }
289
269
  /**
290
- * Specifies a callback that determines if the given task is selected ([see example]({% slug selection_gantt %}#toc-custom-selection)).
291
- *
292
- * > The [`selectable`]({% slug api_gantt_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
270
+ * Specifies a callback to determine if a task is selected ([see example]({% slug selection_gantt %}#toc-custom-selection)).
271
+ * Set [`selectable`]({% slug api_gantt_ganttcomponent %}#toc-selectable) to `true` to use this callback.
293
272
  */
294
273
  isSelected = isSelected;
295
274
  /**
296
- * Specifies a callback that determines if a new dependency is valid.
297
- * Used when evaluating if an attempt to create a new dependency will result in a valid link between the two tasks
298
- * [see example]({% slug editing_drag_create_dependencies_gantt %}#toc-validation).
299
- *
300
- * By defalut, dependencies are deemed invalid when:
301
- * - The two tasks are in a parent-child relationship.
302
- * - The two tasks are already dependent on one another. Only one dependency is allowed per pair.
303
- * - The start or end times of the two tasks are incompatible with the attempted dependency type.
275
+ * Specifies a callback to validate new dependencies.
276
+ * Use this callback to control the valid dependencies that users can create ([see example]({% slug editing_drag_create_dependencies_gantt %}#toc-validation)).
304
277
  */
305
278
  validateNewDependency = this.defaultValidateNewDependencyCallback.bind(this);
306
279
  /**
307
- * Fires when the Gantt selection is changed through user interaction.
308
- *
309
- * Holds data about the affected [`items`]({% slug api_gantt_selectionchangeevent %}#toc-items) and the attempted [`action`]({% slug api_gantt_selectionchangeevent %}#toc-action):
310
- * - `select` - Triggered on `click` or `ctrl + click` on deselected items.
311
- * - `remove` - Triggered on `ctrl + click` on selected items.
280
+ * Fires when the Gantt selection changes through user interaction.
281
+ * The event data contains the affected items and the action type.
312
282
  */
313
283
  selectionChange = new EventEmitter();
314
284
  /**
315
- * Enables or disables the Gantt selection mechanism ([see example]({% slug selection_gantt %}#toc-custom-selection)).
316
- *
285
+ * Enables or disables selection in the Gantt ([see example]({% slug selection_gantt %}#toc-custom-selection)).
286
+ * Set to `true` to allow selection.
317
287
  * > When set to `true`, the [`isSelected`]({% slug api_gantt_ganttcomponent %}#toc-isselected) callback has to be provided.
318
288
  * > When applied, the [`SelectableDirective`]({% slug api_gantt_selectabledirective %}) sets `selectable` to `true` internally.
289
+ * @default false
319
290
  */
320
291
  selectable = false;
321
292
  /**
322
- * The toolbar configuration. Defines the position and content of the toolbar(s).
323
- * The available properties are `position`, `addTaskTool`, and `viewSelectorTool`.
324
- * All are optional and default to `top`.
325
- *
326
- * The possible values for each option are:
327
- * - `top`&mdash;Positions the toolbar above the Gantt panes. Renders the respective tool in the top toolbar.
328
- * - `bottom`&mdash;Positions the toolbar below the Gantt panes. Renders the respective tool in the bottom toolbar.
329
- * - `both`&mdash;Displays two toolbar instances. Positions the first one above,
330
- * and the second one - below the Gantt panes. Renders the respective tool in the both toolbars.
331
- * - `none`&mdash;No toolbar is rendered when used for setting `position`.
332
- * No add task or view selector tool is rendered when used for setting `addTaskTool` or `viewSelectorTool`.
293
+ * Configures the toolbar position and content.
294
+ * Set `position`, `addTaskTool`, and `viewSelectorTool` as needed.
333
295
  */
334
296
  set toolbarSettings(value) {
335
297
  this._toolbarSettings = {
@@ -342,12 +304,13 @@ export class GanttComponent {
342
304
  return this._toolbarSettings;
343
305
  }
344
306
  /**
345
- * Allows setting the toolbar(s) `aria-label` attribute value as necessary to comply with accessibility requirements.
346
- * Typically, toolbars need an `aria-label` when there is more than one toolbar in the application.
307
+ * Sets the `aria-label` attribute value for the toolbar.
308
+ * Use this to improve accessibility.
309
+ * @default "Toolbar"
347
310
  */
348
311
  toolbarAriaLabel = 'Toolbar';
349
312
  /**
350
- * Gets or sets the callback function that retrieves the child items for a particular item.
313
+ * Sets the callback function to retrieve child items for a data item.
351
314
  */
352
315
  set fetchChildren(fn) {
353
316
  this._fetchChildren = fn;
@@ -357,7 +320,7 @@ export class GanttComponent {
357
320
  return this._fetchChildren;
358
321
  }
359
322
  /**
360
- * Gets or sets the callback function that indicates if a particular item has child items.
323
+ * Sets the callback function to indicate if a data item has child items.
361
324
  */
362
325
  set hasChildren(fn) {
363
326
  this._hasChildren = fn;
@@ -367,58 +330,56 @@ export class GanttComponent {
367
330
  return this._hasChildren;
368
331
  }
369
332
  /**
370
- * Defines the dependencies that will be drawn between the rendered tasks.
371
- *
372
- * > The dependency data items should either conform to the [`GanttDependency`]({% slug api_gantt_ganttdependency %}) interface, or a [`dependencyModelFields`]({% slug api_gantt_ganttcomponent %}#toc-dependencymodelfields) object has to be provided.
333
+ * Sets the dependencies to display between tasks.
334
+ * Dependency data items must match the [`GanttDependency`]({% slug api_gantt_ganttdependency %}) interface or use [`dependencyModelFields`]({% slug api_gantt_ganttcomponent %}#toc-dependencymodelfields).
373
335
  */
374
336
  dependencies = [];
375
337
  /**
376
- * Enables the sorting of the Gantt columns that have their `field` option set.
338
+ * Enables sorting for columns with a `field` option.
377
339
  */
378
340
  sortable = false;
379
341
  /**
380
- * The descriptors by which the data will be sorted.
342
+ * Sets the descriptors for sorting the data.
381
343
  */
382
344
  sort = [];
383
345
  /**
384
- * Enables the filtering of the Gantt columns that have their `field` option set.
385
- *
346
+ * Enables filtering for columns with a `field` option.
386
347
  * @default false
387
348
  */
388
349
  filterable = false;
389
350
  /**
390
- * The descriptor by which the data will be filtered.
351
+ * Sets the descriptor for filtering the data.
391
352
  */
392
353
  filter;
393
354
  /**
394
- * The start time of the work day.
395
- * Accepts string values in the `HH:mm` format.
355
+ * Sets the start time of the work day in `HH:mm` format.
356
+ * @default "08:00"
396
357
  */
397
358
  workDayStart = '08:00';
398
359
  /**
399
- * The end time of the work day.
400
- * Accepts string values in the `HH:mm` format.
360
+ * Sets the end time of the work day in `HH:mm` format.
361
+ * @default "17:00"
401
362
  */
402
363
  workDayEnd = '17:00';
403
364
  /**
404
- * The start of the work week (index based).
365
+ * Sets the start day of the work week (index based).
366
+ * @default 1
405
367
  */
406
368
  workWeekStart = 1;
407
369
  /**
408
- * The end of the work week (index based).
370
+ * Sets the end day of the work week (index based).
371
+ * @default 5
409
372
  */
410
373
  workWeekEnd = 5;
411
374
  /**
412
- * When `true`, the user can use dedicated shortcuts to interact with the Gantt.
413
- * By default, navigation is enabled for the TreeList and Timeline parts of the component,
414
- * ([see example]({% slug keyboard_navigation_gantt %})).
415
- *
375
+ * Enables keyboard navigation for the Gantt.
376
+ * By default, navigation is enabled for the TreeList and Timeline parts of the component ([see example]({% slug keyboard_navigation_gantt %})).
416
377
  * @default true
417
378
  */
418
379
  navigable = true;
419
380
  /**
420
- * The options of the timeline splitter pane. By default the pane is `collapsible`,
421
- * `resizable`, not `collapsed`, and its `size` is `'50%'`.
381
+ * Sets the options for the timeline splitter pane.
382
+ * By default, the pane is collapsible, resizable, not collapsed, and its size is `'50%'`.
422
383
  */
423
384
  set timelinePaneOptions(value) {
424
385
  if (this._timelinePaneOptions.collapsed && !value.collapsed) {
@@ -430,8 +391,8 @@ export class GanttComponent {
430
391
  return { ...this._timelinePaneOptions, size: this.treeListPaneOptions.collapsed ? '100%' : this._timelinePaneOptions.size };
431
392
  }
432
393
  /**
433
- * The options of the treelist splitter pane.
434
- * By default the pane is `collapsible` and not `collapsed`.
394
+ * Sets the options for the treelist splitter pane.
395
+ * By default the pane is collapsible and not collapsed.
435
396
  */
436
397
  set treeListPaneOptions(value) {
437
398
  this._treeListPaneOptions = { ...DEFAULT_TREELIST_PANE_SETTINGS, ...value };
@@ -440,8 +401,8 @@ export class GanttComponent {
440
401
  return this._treeListPaneOptions;
441
402
  }
442
403
  /**
443
- * Defines a function that is executed for every task in the component.
444
- * The classes returned from the function are applied to the task wrapper element.
404
+ * Sets a function to apply custom CSS classes to each task.
405
+ * The function receives the task data item.
445
406
  */
446
407
  set taskClass(fn) {
447
408
  if (isDevMode() && typeof fn !== 'function') {
@@ -453,7 +414,8 @@ export class GanttComponent {
453
414
  return this._taskClass;
454
415
  }
455
416
  /**
456
- * Defines a function that is executed for every data row in the component.
417
+ * Sets a function to apply custom CSS classes to each data row.
418
+ * The function receives the row data item.
457
419
  */
458
420
  set rowClass(fn) {
459
421
  if (isDevMode() && typeof fn !== 'function') {
@@ -465,54 +427,45 @@ export class GanttComponent {
465
427
  return this._rowClass;
466
428
  }
467
429
  /**
468
- * The name of the field which contains the unique identifier of the task data item.
469
- * Defaults to 'id'.
430
+ * Gets the name of the field that contains the unique identifier for task data items.
431
+ * @default "id"
470
432
  */
471
433
  get taskIdField() {
472
434
  return this.mapper.taskFields.id;
473
435
  }
474
436
  /**
475
- * Sets the callback function that indicates if a particular item is expanded.
476
- * If no callback is set, all items will be expanded and no expand icons will be rendered.
437
+ * Sets a callback function to indicate if a data item is expanded.
438
+ * If not set, all items are expanded and no expand icons are shown.
477
439
  */
478
440
  isExpanded;
479
441
  /**
480
- * Indicates whether the Gantt columns will be resized during initialization so that they fit their headers and row content.
481
- * Columns with autoSize set to false are excluded.
482
- *
442
+ * Enables automatic resizing of columns to fit their content.
483
443
  * @default false
484
444
  */
485
445
  columnsAutoSize = false;
486
446
  /**
487
- * Specifies the Gantt current time marker settings.
488
- * The settings will be applied for all views.
489
- * If the `currentTimeMarker` is set for a view then it takes precedence.
490
- *
447
+ * Sets the current time marker settings for the Gantt.
448
+ * Applies to all views unless overridden by the settings of a particular view.
491
449
  * @default true
492
450
  */
493
451
  currentTimeMarker = true;
494
452
  /**
495
- * Specifies if the column menu of the columns will be displayed.
496
- *
453
+ * Enables the column menu for all columns.
497
454
  * @default false
498
455
  */
499
456
  columnMenu = false;
500
457
  /**
501
- * If set to true, the user can reorder columns by dragging their header cells.
502
- *
458
+ * Enables reordering of the columns by dragging their header cells.
503
459
  * @default false
504
460
  */
505
461
  columnsReorderable = false;
506
462
  /**
507
- * If set to true, the user can resize columns by dragging the edges (resize handles) of their header cells.
508
- *
463
+ * Enables resizing of the columns by dragging the header cell edges (resize handles).
509
464
  * @default false
510
465
  */
511
466
  columnsResizable = false;
512
467
  /**
513
- * Specifies the settings for auto-scrolling during dragging
514
- * when the pointer moves outside of the container bounderies
515
- * [see example]({% slug editing_drag_create_dependencies_gantt %}#toc-auto-scrolling).
468
+ * Defines the settings for auto-scrolling during dragging when the pointer moves outside the container ([see example](slug:editing_drag_create_dependencies_gantt#auto-scrolling)).
516
469
  */
517
470
  set dragScrollSettings(settings) {
518
471
  this._dragScrollSettings = { ...DEFAULT_DRAG_SCROLL_SETTINGS, ...settings };
@@ -521,8 +474,7 @@ export class GanttComponent {
521
474
  return this._dragScrollSettings;
522
475
  }
523
476
  /**
524
- * Allows setting the task tooltip `position`, `callout`, and `showAfter` options.
525
- *
477
+ * Sets the options for the task tooltip, such as `position`, `callout`, and `showAfter`.
526
478
  * @default { position: 'top', callout: true, showAfter: 100 }
527
479
  */
528
480
  taskTooltipOptions = {
@@ -531,30 +483,30 @@ export class GanttComponent {
531
483
  showAfter: 100
532
484
  };
533
485
  /**
534
- * Fires when an item is expanded.
486
+ * Fires when a row is expanded.
535
487
  */
536
488
  rowExpand = new EventEmitter();
537
489
  /**
538
- * Fires when a Gantt task in the timeline pane is double-clicked. The data item, associated with the clicked task,
539
- * is available in the event data. Use the event handler to open a task editing dialog as necessary.
490
+ * Fires when a Gantt task in the timeline pane is double-clicked.
491
+ * The event data contains the clicked task. Use this event to open a task editing dialog if needed.
540
492
  */
541
493
  taskDblClick = new EventEmitter();
542
494
  /**
543
- * Fires when the user double clicks a cell.
495
+ * Fires when a cell is double-clicked.
544
496
  */
545
497
  cellDblClick = new EventEmitter();
546
498
  /**
547
- * Fires when the user leaves an edited cell.
499
+ * Fires when an edited cell is closed.
548
500
  */
549
501
  cellClose = new EventEmitter();
550
502
  /**
551
- * Fires when the end user clicks the `Delete` button in the task editing dialog,
552
- * the task delete icon, or presses the `Delete` key on the keyboard when a task in the timeline is focused.
553
- * Use the event handler to open a confirmation dialog when necessary.
503
+ * Fires when the user clicks the `Delete` button in the task editing dialog,
504
+ * the task delete icon, or presses the `Delete` key on a focused task.
505
+ * Use this event to open a confirmation dialog if needed.
554
506
  */
555
507
  taskDelete = new EventEmitter();
556
508
  /**
557
- * Fires when an item is collapsed.
509
+ * Fires when a row is collapsed.
558
510
  */
559
511
  rowCollapse = new EventEmitter();
560
512
  /**
@@ -574,50 +526,50 @@ export class GanttComponent {
574
526
  */
575
527
  taskAdd = new EventEmitter();
576
528
  /**
577
- * Fires when the user adds a dependency via dragging
578
- * [see example]({% slug editing_drag_create_dependencies_gantt %}#toc-basic-concepts).
529
+ * Fires when the user adds a dependency by dragging [see example]({% slug editing_drag_create_dependencies_gantt %}#toc-basic-concepts).
579
530
  */
580
531
  dependencyAdd = new EventEmitter();
581
532
  /**
582
- * Fires when the sorting of the Gantt is changed.
583
- * You have to handle the event yourself and sort the data.
533
+ * Fires when there are changes in the Gantt sorting.
534
+ * Handle this event to sort the data.
584
535
  */
585
536
  sortChange = new EventEmitter();
586
537
  /**
587
- * Fires when the Gantt filter is modified.
588
- * You have to handle the event yourself and filter the data.
538
+ * Fires when there are changes in the Gantt filtering.
539
+ * Handle this event to filter the data.
589
540
  */
590
541
  filterChange = new EventEmitter();
591
542
  /**
592
- * Fires when the filter or sort state of the Gantt is changed.
543
+ * Fires when the filter or sort state changes.
593
544
  */
594
545
  dataStateChange = new EventEmitter();
595
546
  /**
596
- * Fires when the collapsed state of the treelist pane is changed.
547
+ * Fires when the collapsed state of the treelist pane changes.
597
548
  */
598
549
  treeListPaneCollapsedChange = new EventEmitter();
599
550
  /**
600
- * Fires when the collapsed state of the timeline pane is changed.
551
+ * Fires when the collapsed state of the timeline pane changes.
601
552
  */
602
553
  timelinePaneCollapsedChange = new EventEmitter();
603
554
  /**
604
- * Fires each time the user resizes the timeline pane.
555
+ * Fires when the user resizes the timeline pane.
605
556
  */
606
557
  timelinePaneSizeChange = new EventEmitter();
607
558
  /**
608
- * Fires each time the user selects a different view type. The event data contains the type of the newly selected view.
559
+ * Fires when the user selects a different view type.
560
+ * The event data contains the type of the new view.
609
561
  */
610
562
  activeViewChange = new EventEmitter();
611
563
  /**
612
- * Fires when the user completes the resizing of the column.
564
+ * Fires when the user completes resizing a column.
613
565
  */
614
566
  columnResize = new EventEmitter();
615
567
  /**
616
- * Fires when the user completes the reordering of the column.
568
+ * Fires when the user completes reordering a column.
617
569
  */
618
570
  columnReorder = new EventEmitter();
619
571
  /**
620
- * Fires when the user changes the visibility of the columns from the column menu or column chooser.
572
+ * Fires when the user changes column visibility from the column menu or chooser.
621
573
  */
622
574
  columnVisibilityChange = new EventEmitter();
623
575
  /**
@@ -877,8 +829,7 @@ export class GanttComponent {
877
829
  }
878
830
  /**
879
831
  * Focuses the last active cell or task in the Gantt.
880
- * If no item has previously been focused, the first cell of the TreeList part will receive focus,
881
- * ([see example]({% slug keyboard_navigation_gantt %}#toc-controlling-the-focus)).
832
+ * If no item was previously focused, focuses the first TreeList cell ([see example]({% slug keyboard_navigation_gantt %}#toc-controlling-the-focus)).
882
833
  */
883
834
  focus() {
884
835
  if (this.navigable) {
@@ -886,8 +837,9 @@ export class GanttComponent {
886
837
  }
887
838
  }
888
839
  /**
889
- * Focuses the targeted cell in the TreeList part of the component,
890
- * ([see example]({% slug keyboard_navigation_gantt %}#toc-controlling-the-focus)).
840
+ * Focuses the specified cell in the TreeList ([see example]({% slug keyboard_navigation_gantt %}#toc-controlling-the-focus)).
841
+ * @param rowIndex The row index.
842
+ * @param colIndex The column index.
891
843
  */
892
844
  focusCell(rowIndex, colIndex) {
893
845
  if (this.navigable) {
@@ -895,8 +847,8 @@ export class GanttComponent {
895
847
  }
896
848
  }
897
849
  /**
898
- * Focuses the targeted task in the Timeline part of the component,
899
- * ([see example]({% slug keyboard_navigation_gantt %}#toc-controlling-the-focus)).
850
+ * Focuses the specified task in the Timeline ([see example]({% slug keyboard_navigation_gantt %}#toc-controlling-the-focus)).
851
+ * @param taskIndex The index of the task.
900
852
  */
901
853
  focusTask(taskIndex) {
902
854
  if (this.navigable) {
@@ -904,10 +856,9 @@ export class GanttComponent {
904
856
  }
905
857
  }
906
858
  /**
907
- * Applies the minimum possible width for the specified column,
908
- * so that the whole text fits without wrapping. This method expects the Gantt
909
- * to be resizable (set `resizable` to `true`).
910
- * Makes sense to execute this method only after the Gantt is already populated with data.
859
+ * Sets the minimum width for the specified column so that its content fits.
860
+ * The Gantt must be resizable.
861
+ * @param column The column to auto-fit.
911
862
  */
912
863
  autoFitColumn(column) {
913
864
  if (isPresent(this.treeList)) {
@@ -915,10 +866,10 @@ export class GanttComponent {
915
866
  }
916
867
  }
917
868
  /**
918
- * Adjusts the width of the specified columns to fit the entire content, including headers, without wrapping.
919
- * If no columns are specified, `autoFitColumns` is applied to all columns.
920
- *
921
- * This method requires the Gantt to be resizable (set `resizable` to `true`).
869
+ * Adjusts the width of the specified columns to fit their content.
870
+ * If no columns are specified, fits all columns.
871
+ * The Gantt must be resizable to use this method.
872
+ * @param columns The columns to auto-fit.
922
873
  */
923
874
  autoFitColumns(columns = this.columns) {
924
875
  if (isPresent(this.treeList)) {
@@ -926,7 +877,9 @@ export class GanttComponent {
926
877
  }
927
878
  }
928
879
  /**
929
- * Clears the already loaded children for the dataItem so that the Gantt will fetch them again the next time it is rendered.
880
+ * Clears loaded children for the data item so the Gantt fetches them again.
881
+ * @param dataItem The data item to reload.
882
+ * @param reloadChildren Whether to reload children.
930
883
  */
931
884
  reload(dataItem, reloadChildren) {
932
885
  if (isPresent(this.treeList)) {
@@ -935,14 +888,10 @@ export class GanttComponent {
935
888
  }
936
889
  /**
937
890
  * Changes the position of the specified column.
938
- * The reordering of columns operates only on the level
939
- * which is inferred by the source column.
940
- * For the `reorderColumn` method to work properly,
941
- * the `source` column has to be visible.
942
- *
943
- * @param {ColumnBase} source - The column whose position will be changed.
944
- * @param {number} destIndex - The new position of the column.
945
- * @param {ColumnReorderConfig} options - Additional options.
891
+ * The source column must be visible.
892
+ * @param source The column to move.
893
+ * @param destIndex The new position index.
894
+ * @param options Additional options.
946
895
  */
947
896
  reorderColumn(source, destIndex, options = { before: false }) {
948
897
  if (isPresent(this.treeList)) {
@@ -950,10 +899,8 @@ export class GanttComponent {
950
899
  }
951
900
  }
952
901
  /**
953
- * Forces the TreeList to evaluate if some data items have changed and re-renders the rows information, if needed.
954
- * Recalculates and re-renders the Timeline period, if needed.
955
- * Redraws changed dependencies, if needed.
956
- * Executes all row-related callbacks anew.
902
+ * Forces the Gantt to re-evaluate data items and re-render the rows and Timeline period, if needed.
903
+ * Also redraws dependencies and executes row-related callbacks.
957
904
  */
958
905
  updateView() {
959
906
  if (isPresent(this.treeList)) {
@@ -963,7 +910,9 @@ export class GanttComponent {
963
910
  this.dependencyDomService.notifyChanges();
964
911
  }
965
912
  /**
966
- * Opens the task editing dialog.
913
+ * Opens the task editing dialog for the specified data item.
914
+ * @param dataItem The task data item.
915
+ * @param formGroup The form group for editing.
967
916
  */
968
917
  editTask(dataItem, formGroup) {
969
918
  if (!this.showEditingDialog) {
@@ -998,12 +947,15 @@ export class GanttComponent {
998
947
  }
999
948
  /**
1000
949
  * Opens a cell for editing.
950
+ * @param dataItem The data item.
951
+ * @param column The column index, name, or object.
952
+ * @param formGroup The form group for editing.
1001
953
  */
1002
954
  editCell(dataItem, column, formGroup) {
1003
955
  this.treeList.editCell(dataItem, column, formGroup);
1004
956
  }
1005
957
  /**
1006
- * Closes an edited cell.
958
+ * Closes the currently edited cell.
1007
959
  */
1008
960
  closeCell() {
1009
961
  this.treeList.closeCell();
@@ -1659,10 +1611,10 @@ export class GanttComponent {
1659
1611
 
1660
1612
  i18n-columnsReset="kendo.gantt.columnsReset|The text shown in the column menu or column chooser for the columns reset button"
1661
1613
  columnsReset="Reset"
1662
-
1614
+
1663
1615
  i18n-tooltipStartDateText="kendo.gantt.tooltipStartDateText|The text shown in the task tooltip before the task start date"
1664
1616
  tooltipStartDateText="Start"
1665
-
1617
+
1666
1618
  i18n-tooltipEndDateText="kendo.gantt.tooltipEndDateText|The text shown in the task tooltip before the task end date"
1667
1619
  tooltipEndDateText="End"></ng-container>
1668
1620
  <kendo-gantt-toolbar
@@ -2075,10 +2027,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2075
2027
 
2076
2028
  i18n-columnsReset="kendo.gantt.columnsReset|The text shown in the column menu or column chooser for the columns reset button"
2077
2029
  columnsReset="Reset"
2078
-
2030
+
2079
2031
  i18n-tooltipStartDateText="kendo.gantt.tooltipStartDateText|The text shown in the task tooltip before the task start date"
2080
2032
  tooltipStartDateText="Start"
2081
-
2033
+
2082
2034
  i18n-tooltipEndDateText="kendo.gantt.tooltipEndDateText|The text shown in the task tooltip before the task end date"
2083
2035
  tooltipEndDateText="End"></ng-container>
2084
2036
  <kendo-gantt-toolbar