@progress/kendo-angular-gantt 19.1.2-develop.4 → 19.1.2-develop.6

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
package/gantt.module.d.ts CHANGED
@@ -33,34 +33,23 @@ import * as i27 from "./editing/add-task.component";
33
33
  import * as i28 from "./dragging/task-drag.directive";
34
34
  import * as i29 from "./template-directives/task-tooltip-template.directive";
35
35
  /**
36
- * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
37
- * definition for the Gantt component.
36
+ * Represents the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) definition for the Gantt component.
38
37
  *
39
- * @example
38
+ * Use this module to include the Gantt component in your NgModule-based application.
40
39
  *
41
- * ```ts-no-run
42
- * // Import the Gantt module
40
+ * @example
41
+ * ```typescript
43
42
  * import { GanttModule } from '@progress/kendo-angular-gantt';
44
- *
45
- * // The browser platform with a compiler
46
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
47
- *
48
43
  * import { NgModule } from '@angular/core';
49
- *
50
- * // Import the app component
44
+ * import { BrowserModule } from '@angular/platform-browser';
51
45
  * import { AppComponent } from './app.component';
52
46
  *
53
- * // Define the app module
54
- * _@NgModule({
55
- * declarations: [AppComponent], // declare app component
56
- * imports: [BrowserModule, GanttModule], // import Gantt module
57
- * bootstrap: [AppComponent]
47
+ * @NgModule({
48
+ * declarations: [AppComponent],
49
+ * imports: [BrowserModule, GanttModule],
50
+ * bootstrap: [AppComponent]
58
51
  * })
59
52
  * export class AppModule {}
60
- *
61
- * // Compile and launch the module
62
- * platformBrowserDynamic().bootstrapModule(AppModule);
63
- *
64
53
  * ```
65
54
  */
66
55
  export declare class GanttModule {
@@ -6,8 +6,16 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
6
6
  import { Messages } from './messages';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
- * Custom component messages override default component messages
10
- * ([see example](slug:globalization_treelist#toc-custom-messages)).
9
+ * Represents the custom messages component for the Kendo UI for Angular Gantt.
10
+ * Use this component to override default messages.
11
+ *
12
+ * @example
13
+ * ```html
14
+ * <kendo-gantt-messages
15
+ * addTaskText="Add Task"
16
+ * cancelButtonText="Cancel">
17
+ * </kendo-gantt-messages>
18
+ * ```
11
19
  */
12
20
  export declare class CustomMessagesComponent extends Messages {
13
21
  protected service: LocalizationService;
@@ -3,8 +3,9 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Specifies the cell content type.
7
- * Used to define which filter component will be rendered for the targeted column,
8
- * or which built-in editor, when the row is in edit mode.
6
+ * Defines the cell content type.
7
+ * Use this type to specify which filter component appears for a column,
8
+ * or which built-in editor displays when a row enters edit mode.
9
+ *
9
10
  */
10
11
  export type CellContentType = 'text' | 'numeric' | 'boolean' | 'date';
@@ -3,17 +3,17 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Represents the callback that is used by the
7
- * [rowClass]({% slug api_gantt_ganttcomponent %}#toc-rowclass) property.
6
+ * Represents the callback that is used by the [`rowClass`]({% slug api_gantt_ganttcomponent %}#toc-rowclass) property.
8
7
  *
9
- * ```ts-no-run
10
- * public rowCallback({ dataItem, index }: any): any {
11
- * const isEven = index % 2 == 0;
12
- * return {
13
- * even: isEven,
14
- * odd: !isEven
15
- * };
16
- * }
8
+ * @example
9
+ * ```typescript
10
+ * public rowCallback({ dataItem, index }: any): any {
11
+ * const isEven = index % 2 == 0;
12
+ * return {
13
+ * even: isEven,
14
+ * odd: !isEven
15
+ * };
16
+ * }
17
17
  * ```
18
18
  *
19
19
  */
@@ -24,17 +24,17 @@ export type RowClassFn = (args: {
24
24
  [key: string]: any;
25
25
  };
26
26
  /**
27
- * Represents the callback that is used by the
28
- * [taskClass]({% slug api_gantt_ganttcomponent %}#toc-taskclass) property.
27
+ * Represents the callback that is used by the [`taskClass`]({% slug api_gantt_ganttcomponent %}#toc-taskclass) property.
29
28
  *
30
- * ```ts-no-run
31
- * public taskCallback(dataItem: any): any {
32
- * const moreThanHalfCompleted = dataItem.completionRatio > 0.5;
33
- * return {
34
- * 'more-than-half': moreThanHalfCompleted,
35
- * 'less-than-half': !moreThanHalfCompleted
36
- * };
37
- * }
29
+ * @example
30
+ * ```typescript
31
+ * public taskCallback(dataItem: any): any {
32
+ * const moreThanHalfCompleted = dataItem.completionRatio > 0.5;
33
+ * return {
34
+ * 'more-than-half': moreThanHalfCompleted,
35
+ * 'less-than-half': !moreThanHalfCompleted
36
+ * };
37
+ * }
38
38
  * ```
39
39
  *
40
40
  */
@@ -4,23 +4,22 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ExpandableColumnMenuItem } from "@progress/kendo-angular-treelist";
6
6
  /**
7
- * The settings of the column menu in the Gantt component.
7
+ * Configures the column menu settings in the Gantt component.
8
8
  */
9
9
  export interface ColumnMenuSettings {
10
10
  /**
11
- * Specifies if the columns can be sorted in the column menu.
12
- * If [sorting]({% slug api_gantt_ganttcomponent %}#toc-sortable) is enabled, defaults to `true`.
13
- * @default true
11
+ * Lets you sort columns in the column menu.
12
+ * If you enable [sorting]({% slug api_gantt_ganttcomponent %}#toc-sortable), this option defaults to `true`.
14
13
  */
15
14
  sort?: boolean;
16
15
  /**
17
- * Specifies if the columns can be filtered in the column menu.
18
- * If [filtering]({% slug api_gantt_ganttcomponent %}#toc-filterable) is enabled, defaults to `true`.
19
- * @default true
16
+ * Enables filtering columns in the column menu.
17
+ * If you enable [filtering]({% slug api_gantt_ganttcomponent %}#toc-filterable), this option defaults to `true`.
18
+ * Enables sorting columns in the column menu.
20
19
  */
21
20
  filter?: boolean | ExpandableColumnMenuItem;
22
21
  /**
23
- * Specifies if the item for column selection will be displayed in the column menu.
22
+ * Shows the column selection item in the column menu.
24
23
  * @default true
25
24
  */
26
25
  columnChooser?: boolean | ExpandableColumnMenuItem;
@@ -4,7 +4,10 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ColumnReorderConfig as TreeListColumnReorderConfig } from '@progress/kendo-angular-treelist';
6
6
  /**
7
- * Additional configuration for the `reorderColumn` method.
7
+ * Extends the configuration for the `reorderColumn` method.
8
+ *
9
+ * Use this interface to provide additional options when you reorder columns.
10
+ *
8
11
  */
9
12
  export interface ColumnReorderConfig extends TreeListColumnReorderConfig {
10
13
  }
@@ -3,17 +3,20 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * The settings for the current time marker.
6
+ * Represents the settings for the current time marker in the Gantt component.
7
+ *
7
8
  */
8
9
  export interface CurrentTimeSettings {
9
10
  /**
10
- * The update interval (in milliseconds) of the current time marker.
11
- * Defaults to `60000` (a minute).
11
+ * Sets the update interval in milliseconds for the current time marker.
12
+ * Use this property to control how often the marker updates.
13
+ * @default 60000
12
14
  */
13
15
  updateInterval?: number;
14
16
  /**
15
- * Specifies if the current time marker will be displayed.
16
- * Defaults to `true`.
17
+ * Shows or hides the current time marker.
18
+ * Set to `true` to display the marker.
19
+ * @default true
17
20
  */
18
21
  enabled?: boolean;
19
22
  }
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * The dependency type when two tasks are connected.
6
+ * Represents the dependency type when you connect two tasks.
7
7
  *
8
8
  * The supported values are:
9
9
  * * `FF`&mdash;from 'finish' to 'finish'
@@ -12,8 +12,20 @@
12
12
  * * `SF`&mdash;from 'start' to 'finish'
13
13
  */
14
14
  export declare enum DependencyType {
15
+ /**
16
+ * Specifies that task B can't finish before task A finishes.
17
+ */
15
18
  FF = 0,
19
+ /**
20
+ * Specifies that task B can't start before task A finishes.
21
+ */
16
22
  FS = 1,
23
+ /**
24
+ * Specifies that task A can't finish before task B starts.
25
+ */
17
26
  SF = 2,
27
+ /**
28
+ * Specifies that task B can't start before task A starts.
29
+ */
18
30
  SS = 3
19
31
  }
@@ -5,39 +5,39 @@
5
5
  import type { GanttComponent } from '../../gantt.component';
6
6
  import { GanttColumnComponent, GanttSpanColumnComponent } from '../../columns/columns';
7
7
  /**
8
- * Triggered every time a cell is clicked.
8
+ * Represents the arguments for the `cellClick` event of the Gantt.
9
9
  */
10
10
  export interface CellClickEvent {
11
11
  /**
12
- * The column component associated with the clicked cell.
12
+ * Contains the column component associated with the clicked cell.
13
13
  */
14
14
  column: GanttColumnComponent | GanttSpanColumnComponent;
15
15
  /**
16
- * The column index of the clicked cell.
16
+ * Holds the column index of the clicked cell.
17
17
  */
18
18
  columnIndex: number;
19
19
  /**
20
- * The data item associated with the clicked cell.
20
+ * Contains the data item for the clicked cell.
21
21
  */
22
22
  dataItem: any;
23
23
  /**
24
- * Indicates whether the cell is in edit mode.
24
+ * Indicates if the cell is in edit mode.
25
25
  */
26
26
  isEdited: boolean;
27
27
  /**
28
- * The DOM event that triggered the `cellClick` event.
28
+ * Contains the DOM event that triggered the `cellClick` event.
29
29
  */
30
30
  originalEvent: PointerEvent;
31
31
  /**
32
- * The row index for the clicked cell.
32
+ * Holds the row index for the clicked cell.
33
33
  */
34
34
  rowIndex: number;
35
35
  /**
36
- * The Gantt component instance.
36
+ * Contains the Gantt component instance.
37
37
  */
38
38
  sender: GanttComponent;
39
39
  /**
40
- * The type of the event that triggered the `cellClick` event.
40
+ * Specifies the type of event that triggered the `cellClick` event.
41
41
  */
42
42
  type: 'click' | 'contextmenu' | 'dblclick';
43
43
  }
@@ -6,11 +6,11 @@ import type { GanttComponent } from '../../gantt.component';
6
6
  import { PreventableEvent } from '@progress/kendo-angular-common';
7
7
  import { TaskEditItem } from './task-edit-event.interface';
8
8
  /**
9
- * Called every time a user leaves an edited cell.
9
+ * Represents the arguments for the `cellClose` event of the Gantt.
10
10
  */
11
11
  export declare class CellCloseEvent extends PreventableEvent {
12
12
  /**
13
- * The data item.
13
+ * Holds the data item.
14
14
  */
15
15
  dataItem: any;
16
16
  /**
@@ -18,26 +18,25 @@ export declare class CellCloseEvent extends PreventableEvent {
18
18
  */
19
19
  isNew: boolean;
20
20
  /**
21
- * The Gantt column that will be closed.
21
+ * Contains the Gantt column associated with the closed cell.
22
22
  */
23
23
  column: any;
24
24
  /**
25
- * The [`FormGroup`](link:site.data.urls.angular['formgroupapi']) that is used to edit the cell which will be closed.
25
+ * Contains the [`FormGroup`](link:site.data.urls.angular['formgroupapi']) used to edit the cell that will be closed.
26
26
  */
27
27
  formGroup: any;
28
28
  /**
29
- * The DOM event that caused the `cellClose` event.
30
- * May not be present if `cellClose` was caused by an API call.
29
+ * Contains the DOM event that triggered the `cellClose` event.
30
+ * This property may be missing if `cellClose` is triggered by an API call.
31
31
  */
32
32
  originalEvent: any;
33
33
  /**
34
- * The `GanttComponent` instance.
34
+ * Holds the `GanttComponent` instance.
35
35
  */
36
36
  sender: GanttComponent;
37
37
  /**
38
- * The `TaskEditItem` associated with the edited task.
39
- * The parent item is accessible through the `parent` property,
40
- * and allows traversing all ancestors that need to be updated.
38
+ * Contains the `TaskEditItem` for the edited task.
39
+ * Access the parent item through the `parent` property to traverse all ancestors that need updates.
41
40
  */
42
41
  item: TaskEditItem;
43
42
  constructor(options: any);
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ColumnReorderEvent as TreeListColumnReorderEvent } from '@progress/kendo-angular-treelist';
6
6
  /**
7
- * Arguments for the `columnReorder` event.
7
+ * Provides the arguments for the `columnReorder` event.
8
8
  */
9
9
  export interface ColumnReorderEvent extends TreeListColumnReorderEvent {
10
10
  }
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ColumnResizeArgs } from '@progress/kendo-angular-treelist';
6
6
  /**
7
- * Arguments for the `columnResize` event.
7
+ * Provides the arguments for the `columnResize` event.
8
8
  */
9
9
  export interface ColumnResizeEvent extends ColumnResizeArgs {
10
10
  }
@@ -4,11 +4,11 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { GanttColumnBase } from '../../columns/column-base.component';
6
6
  /**
7
- * Arguments for the `columnVisibilityChange` event.
7
+ * Provides the arguments for the `columnVisibilityChange` event.
8
8
  */
9
9
  export interface ColumnVisibilityChangeEvent {
10
10
  /**
11
- * The columns whose visibility is changed.
11
+ * Contains the columns whose visibility changes.
12
12
  */
13
13
  columns: GanttColumnBase[];
14
14
  }
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { DataStateChangeEvent as TreeListDataStateChangeEvent } from "@progress/kendo-angular-treelist";
6
6
  /**
7
- * Arguments for the `dataStateChange` event
7
+ * Provides the arguments for the `dataStateChange` event.
8
8
  */
9
9
  export interface DataStateChangeEvent extends TreeListDataStateChangeEvent {
10
10
  }
@@ -4,23 +4,23 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { DependencyType } from '../dependency-type.enum';
6
6
  /**
7
- * The event data of the [`dependencyAdd`]({% slug api_gantt_ganttcomponent %}#toc-dependencyadd) event.
7
+ * Provides the event data for the [`dependencyAdd`]({% slug api_gantt_ganttcomponent %}#toc-dependencyadd) event.
8
8
  */
9
9
  export interface DependencyAddEvent {
10
10
  /**
11
- * The task from which the dependency starts (predecessor).
11
+ * Represents the task where the dependency starts (predecessor).
12
12
  */
13
13
  fromTask: any;
14
14
  /**
15
- * The task where the dependency ends (successor).
15
+ * Represents the task where the dependency ends (successor).
16
16
  */
17
17
  toTask: any;
18
18
  /**
19
- * The dependency type of the linked tasks.
19
+ * Specifies the dependency type for the linked tasks.
20
20
  */
21
21
  type: DependencyType;
22
22
  /**
23
- * Specifies whether the dependency creation attempt is a valid link between the two targeted tasks.
23
+ * Indicates if the dependency creation is a valid link between the two tasks.
24
24
  */
25
25
  isValid: boolean;
26
26
  }
@@ -4,28 +4,28 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { TaskEditItem } from "./task-edit-event.interface";
6
6
  /**
7
- * The event data of the [`taskAdd`]({% slug api_gantt_ganttcomponent %}#toc-taskadd) event.
7
+ * Contains the event data for the [`taskAdd`]({% slug api_gantt_ganttcomponent %}#toc-taskadd) event.
8
8
  */
9
9
  export interface TaskAddEvent {
10
10
  /**
11
- * The currently selected Gantt task.
11
+ * Holds the currently selected Gantt task.
12
12
  */
13
13
  selectedItem: TaskEditItem | null;
14
14
  /**
15
- * The type of the add action. The built-in types are `addTask`, `addChild`, `addAbove`, and `addBelow`.
15
+ * Holds the type of add action. The built-in types are `addTask`, `addChild`, `addAbove`, and `addBelow`.
16
16
  */
17
17
  actionType: string;
18
18
  }
19
19
  /**
20
- * The interface of the AddTask DropDownButton options.
20
+ * Describes the AddTask DropDownButton options.
21
21
  */
22
22
  export interface GanttAddTaskActionItem {
23
23
  /**
24
- * The text of the respective DropDownButton option.
24
+ * Holds the text for the DropDownButton option.
25
25
  */
26
26
  text: string;
27
27
  /**
28
- * The type of action associated with selecting the respective DropDownButton option.
28
+ * Holds the type of action for the DropDownButton option.
29
29
  */
30
30
  type: string;
31
31
  }
@@ -4,27 +4,27 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import type { GanttComponent } from '../../gantt.component';
6
6
  /**
7
- * Triggered every time a task is clicked.
7
+ * Provides the arguments for the `taskClick` event of the Gantt.
8
8
  */
9
9
  export interface TaskClickEvent {
10
10
  /**
11
- * The DOM event that triggered the `taskClick` event.
11
+ * Holds the DOM event that triggered the `taskClick` event.
12
12
  */
13
13
  originalEvent: PointerEvent | KeyboardEvent;
14
14
  /**
15
- * The data item associated with the clicked task.
15
+ * Holds the data item for the clicked task.
16
16
  */
17
17
  dataItem: any;
18
18
  /**
19
- * The Gantt component instance.
19
+ * Holds the Gantt component instance.
20
20
  */
21
21
  sender: GanttComponent;
22
22
  /**
23
- * The order index of the clicked task, defined by the number of rendered tasks in the Timeline.
23
+ * Holds the order index of the clicked task, based on the number of rendered tasks in the Timeline.
24
24
  */
25
25
  index: number;
26
26
  /**
27
- * The type of the event that triggered the `taskClick` event.
27
+ * Holds the type of event that triggered the `taskClick` event.
28
28
  */
29
29
  type: 'click' | 'contextmenu' | 'dblclick';
30
30
  }
@@ -5,17 +5,16 @@
5
5
  import type { GanttComponent } from '../../gantt.component';
6
6
  import { TaskEditItem } from './task-edit-event.interface';
7
7
  /**
8
- * The event data of the [`taskDelete`]({% slug api_gantt_ganttcomponent %}#toc-taskdelete) event.
8
+ * Contains the event data for the [`taskDelete`]({% slug api_gantt_ganttcomponent %}#toc-taskdelete) event.
9
9
  */
10
10
  export interface TaskDeleteEvent {
11
11
  /**
12
- * The item associated with the delete request.
13
- * The parent item is accessible through the `parent` property,
14
- * and allows traversing all ancestors that need to be updated.
12
+ * Holds the item for the delete request.
13
+ * You can access the parent item through the `parent` property to update all ancestors.
15
14
  */
16
15
  item: TaskEditItem;
17
16
  /**
18
- * The GanttComponent instance.
17
+ * Holds the `GanttComponent` instance.
19
18
  */
20
19
  sender: GanttComponent;
21
20
  }
@@ -5,28 +5,27 @@
5
5
  import { DragTargetDragEndEvent, DragTargetDragEvent } from "@progress/kendo-angular-utils";
6
6
  import { TaskEditItem } from "./task-edit-event.interface";
7
7
  /**
8
- * The event data of the Gantt `TaskDragEvent`. The event is triggered when the end user resizes or moves a Task.
8
+ * Contains the event data for the Gantt `TaskDragEvent`. This event triggers when the user resizes or moves a task.
9
9
  */
10
10
  export interface TaskDragEvent {
11
11
  /**
12
- * The calculated new start date of the task.
12
+ * Holds the new start date for the task.
13
13
  */
14
14
  start: Date;
15
15
  /**
16
- * The calculated new end date of the task.
16
+ * Holds the new end date for the task.
17
17
  */
18
18
  end: Date;
19
19
  /**
20
- * The calculated new completion ratio.
20
+ * Holds the new completion ratio.
21
21
  */
22
22
  completionRatio: number;
23
23
  /**
24
- * The drag event, triggered from the end user dragging action.
24
+ * Holds the drag event triggered by the user's action.
25
25
  */
26
26
  dragEvent: DragTargetDragEvent | DragTargetDragEndEvent;
27
27
  /**
28
- * The item object, associated with the dragged event. Contains the original data item, and its parent, allowing to access
29
- * and update all affected ancestor tasks in the data hierarchy as necessary.
28
+ * Holds the item object for the dragged event. Contains the original data item and its parent. Use this to update all affected ancestor tasks in the data hierarchy.
30
29
  */
31
30
  item: TaskEditItem;
32
31
  }
@@ -36,32 +35,31 @@ export interface TaskDragEvent {
36
35
  */
37
36
  export interface InternalTaskDragEvent {
38
37
  /**
39
- * The calculated new start date of the task.
38
+ * Holds the new start date for the task.
40
39
  */
41
40
  start: Date;
42
41
  /**
43
- * The calculated new end date of the task.
42
+ * Holds the new end date for the task.
44
43
  */
45
44
  end: Date;
46
45
  /**
47
- * The calculated new completion ratio.
46
+ * Holds the new completion ratio.
48
47
  */
49
48
  completionRatio: number;
50
49
  /**
51
- * The offset of the task DOM element, relative to the view start.
50
+ * Holds the offset of the task DOM element, relative to the view start.
52
51
  */
53
52
  offset: number;
54
53
  /**
55
- * The new width of the task DOM element in pixels.
54
+ * Holds the new width of the task DOM element in pixels.
56
55
  */
57
56
  width: number;
58
57
  /**
59
- * The drag event, triggered from the end user dragging action.
58
+ * Holds the drag event triggered by the user's action.
60
59
  */
61
60
  dragEvent: DragTargetDragEvent | DragTargetDragEndEvent;
62
61
  /**
63
- * The item object, associated with the dragged event. Contains the original data item, and its parent, allowing to access
64
- * and update all affected ancestor tasks in the data hierarchy as necessary.
62
+ * Holds the item object for the dragged event. Contains the original data item and its parent. Use this to update all affected ancestor tasks in the data hierarchy.
65
63
  */
66
64
  item: any;
67
65
  }
@@ -5,47 +5,45 @@
5
5
  import { FormGroup } from "@angular/forms";
6
6
  import type { GanttComponent } from "../../gantt.component";
7
7
  /**
8
- * The event data for the task editing events.
8
+ * Contains the event data for task editing events.
9
9
  */
10
10
  export interface TaskEditEvent {
11
11
  /**
12
- * The `TaskEditItem` associated with the edited task.
13
- * The parent item is accessible through the `parent` property,
14
- * and allows traversing all ancestors that need to be updated.
12
+ * Holds the `TaskEditItem` for the edited task.
13
+ * Access the parent item through the `parent` property to update all ancestors.
15
14
  */
16
15
  item: TaskEditItem;
17
16
  /**
18
- * The FormGroup instance associated with the edited task.
17
+ * Holds the `FormGroup` instance for the edited task.
19
18
  */
20
19
  taskFormGroup?: FormGroup;
21
20
  /**
22
- * The dependencies associated with the edited task.
21
+ * Holds the dependencies for the edited task.
23
22
  */
24
23
  dependencies: EditEventDependencies;
25
24
  /**
26
- * The GanttComponent instance.
25
+ * Holds the `GanttComponent` instance.
27
26
  */
28
27
  sender: GanttComponent;
29
28
  }
30
29
  /**
31
- * The `TaskEditItem` associated with the edited task.
32
- * The parent item is accessible through the `parent` property,
33
- * and allows traversing all ancestors that need to be updated.
30
+ * Represents the `TaskEditItem` associated with the edited task.
31
+ * Access the parent item through the `parent` property to update all ancestors.
34
32
  */
35
33
  export interface TaskEditItem {
36
34
  /**
37
- * The original data item for this entry.
35
+ * Holds the original data item for this entry.
38
36
  */
39
37
  dataItem: any;
40
38
  /**
41
- * Holds the parent data item and data about its parent.
42
- * If the current data item is at root level, this prop will be set to `null`.
39
+ * Holds the parent data item and its parent data.
40
+ * If the current data item is at root level, this property is `null`.
43
41
  */
44
42
  parent?: TaskEditItem;
45
43
  }
46
44
  /**
47
- * The `EditEventDependencies` object associated with the edited task.
48
- * The created, updated and deleted items are accessible through their respective properties.
45
+ * Provides the `EditEventDependencies` object associated with the edited task.
46
+ * You can access the created, updated, and deleted items through the respective properties.
49
47
  */
50
48
  export interface EditEventDependencies {
51
49
  /**