@progress/kendo-angular-gantt 19.1.2-develop.4 → 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
@@ -16,6 +16,14 @@ import { EditTemplateDirective } from './edit-template.directive';
16
16
  import * as i0 from "@angular/core";
17
17
  import * as i1 from "../common/option-changes.service";
18
18
  import * as i2 from "./column-base.component";
19
+ /**
20
+ * Represents a column in the Gantt. Use this component to define columns and customize their behavior and appearance.
21
+ *
22
+ * @example
23
+ * ```html
24
+ * <kendo-gantt-column field="title" title="Task"></kendo-gantt-column>
25
+ * ```
26
+ */
19
27
  export class GanttColumnComponent extends ColumnComponent {
20
28
  options;
21
29
  headerTemplates = new QueryList();
@@ -26,11 +34,13 @@ export class GanttColumnComponent extends ColumnComponent {
26
34
  filterCellTemplate;
27
35
  filterMenuTemplate;
28
36
  /**
29
- * Defines the filter type that is displayed inside the filter row. The default value is `text`.
37
+ * Sets the filter type for the filter row. The default value is `text`.
38
+ * @default 'text'
30
39
  */
31
40
  filter = 'text';
32
41
  /**
33
- * Defines if a filter UI will be displayed for this column. The default value is `true`.
42
+ * Shows or hides the filter UI for this column. The default value is `true`.
43
+ * @default true
34
44
  */
35
45
  filterable = true;
36
46
  /**
@@ -5,18 +5,27 @@
5
5
  import { Directive, TemplateRef, Optional } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Represents the column edit-cell template of the Gantt.
9
- * Helps to customize the content of the edited cells. To define the cell template, nest an `<ng-template>`
8
+ * Represents the column template for edited cells in the Gantt.
9
+ *
10
+ * Use this directive to customize the content of edited cells. To define the cell template, nest an `<ng-template>`
10
11
  * tag with the `kendoGanttEditTemplate` directive inside a `<kendo-gantt-column>` tag.
11
12
  *
12
- * The template context contains the following fields:
13
+ * The template context provides the following fields:
13
14
  * - `column`&mdash;The current column instance.
14
15
  * - `dataItem`&mdash;The current data item.
15
- * - `cellContext`&mdash;An object used to pass context information to built-in directives.
16
- * - `formGroup`&mdash;The current [`FormGroup`](link:site.data.urls.angular['formgroupapi']).
17
- * If you use the Gantt inside [Template-Driven Forms](link:site.data.urls.angular['forms']), it will be `undefined`.
16
+ * - `cellContext`&mdash;An object for passing context information to built-in directives.
17
+ * - `formGroup`&mdash;The current [`FormGroup`](link:site.data.urls.angular['formgroupapi']). If you use the Gantt inside [Template-Driven Forms](link:site.data.urls.angular['forms']), it is `undefined`.
18
18
  * - `isNew`&mdash;The state of the current item.
19
19
  * - `rowIndex`&mdash;The current row index. If inside a new item row, `rowIndex` is `-1`.
20
+ *
21
+ * @example
22
+ * ```html
23
+ * <kendo-gantt-column>
24
+ * <ng-template kendoGanttEditTemplate let-dataItem="dataItem" let-formGroup="formGroup">
25
+ * <input [formControl]="formGroup.get('field')" />
26
+ * </ng-template>
27
+ * </kendo-gantt-column>
28
+ * ```
20
29
  */
21
30
  export class EditTemplateDirective {
22
31
  templateRef;
@@ -5,12 +5,22 @@
5
5
  import { Directive, TemplateRef, Optional } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Represents the filter-menu template.
8
+ * Represents the filter-menu template for the Gantt column.
9
9
  *
10
- * The column, current filter and the filter service are available as context variables:
11
- * - `column`&mdash;The current column instance. Use it as an alias for a template variable by utilizing the `let-column="column"` syntax.
10
+ * Use this directive to customize the filter menu for a column.
11
+ * The template context provides:
12
+ * - `column`&mdash;The current column instance. Use as an alias for a template variable with the `let-column="column"` syntax.
12
13
  * - `filter`&mdash;The filter descriptor.
13
- * - `cellContext`&mdash;An object used to pass context information to built-in directives.
14
+ * - `cellContext`&mdash;An object for passing context information to built-in directives.
15
+ *
16
+ * @example
17
+ * ```html
18
+ * <kendo-gantt-column>
19
+ * <ng-template kendoGanttFilterMenuTemplate let-column let-filter="filter">
20
+ * Custom filter for {{ column.field }}
21
+ * </ng-template>
22
+ * </kendo-gantt-column>
23
+ * ```
14
24
  */
15
25
  export class FilterMenuTemplateDirective {
16
26
  templateRef;
@@ -5,16 +5,25 @@
5
5
  import { Directive, TemplateRef, Optional } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Represents the column footer cell template of the Gantt.
8
+ * Represents the footer cell template of the Gantt columns.
9
9
  *
10
- * Helps to customize the table footer cell for the column.
10
+ * Use this directive to customize the table footer cell for a column.
11
11
  * To define a footer template, nest an `<ng-template>` tag with the
12
12
  * [`kendoGanttFooterTemplate`]({% slug api_gantt_footertemplatedirective %}) directive inside the `<kendo-gantt-column>` tag.
13
13
  *
14
- * The current column, column index and field are available as context variables:
15
- * * `column`&mdash;Points to the instance of the current [`ColumnComponent`]({% slug api_gantt_ganttcolumncomponent %}).
16
- * * `columnIndex`&mdash;Defines the current column index.
14
+ * The template context provides:
15
+ * * `column`&mdash;The current [`ColumnComponent`]({% slug api_gantt_ganttcolumncomponent %}).
16
+ * * `columnIndex`&mdash;The current column index.
17
17
  * * `field`&mdash;The name of the column field, if set.
18
+ *
19
+ * @example
20
+ * ```html
21
+ * <kendo-gantt-column>
22
+ * <ng-template kendoGanttFooterTemplate let-column let-columnIndex="columnIndex" let-field="field">
23
+ * Footer for {{ field }}
24
+ * </ng-template>
25
+ * </kendo-gantt-column>
26
+ * ```
18
27
  */
19
28
  export class FooterTemplateDirective {
20
29
  templateRef;
@@ -5,14 +5,24 @@
5
5
  import { Directive, TemplateRef, Optional } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Represents the column header cell template of the Gantt.
9
- * Helps to customize the table header cell for the column.
8
+ * Represents the header cell template of the Gantt columns.
9
+ *
10
+ * Use this directive to customize the table header cell for a column.
10
11
  * To define a header template, nest an `<ng-template>` tag with the
11
12
  * [`kendoGanttHeaderTemplate`]({% slug api_gantt_headertemplatedirective %}) directive inside the `<kendo-gantt-column>` tag.
12
13
  *
13
- * The current column and column index are available as context variables:
14
- * * `column`&mdash;Points to the instance of the current [`ColumnComponent`]({% slug api_gantt_ganttcolumncomponent %}).
15
- * * `columnIndex`&mdash;Defines the current column index.
14
+ * The template context provides:
15
+ * * `column`&mdash;The current [`ColumnComponent`]({% slug api_gantt_ganttcolumncomponent %}).
16
+ * * `columnIndex`&mdash;The current column index.
17
+ *
18
+ * @example
19
+ * ```html
20
+ * <kendo-gantt-column>
21
+ * <ng-template kendoGanttHeaderTemplate let-column let-columnIndex="columnIndex">
22
+ * Custom Header for {{ column.field }} ({{ columnIndex }})
23
+ * </ng-template>
24
+ * </kendo-gantt-column>
25
+ * ```
16
26
  */
17
27
  export class HeaderTemplateDirective {
18
28
  templateRef;
@@ -12,6 +12,22 @@ import { EditTemplateDirective } from './edit-template.directive';
12
12
  import * as i0 from "@angular/core";
13
13
  import * as i1 from "../common/option-changes.service";
14
14
  import * as i2 from "./column-base.component";
15
+ /**
16
+ * Represents the Gantt span column.
17
+ *
18
+ * Use this component to span row content over multiple column cells.
19
+ *
20
+ * @example
21
+ * ```html
22
+ * <kendo-gantt-span-column>
23
+ * <kendo-gantt-column field="id"></kendo-gantt-column>
24
+ * <kendo-gantt-column field="name"></kendo-gantt-column>
25
+ * </kendo-gantt-span-column>
26
+ * ```
27
+ *
28
+ * @remarks
29
+ * Supported children components are: {@link GanttColumnComponent}.
30
+ */
15
31
  export class GanttSpanColumnComponent extends SpanColumnComponent {
16
32
  options;
17
33
  /**
@@ -26,7 +26,7 @@ import { ToolbarTemplateDirective } from "./toolbar/toolbar-template.directive";
26
26
  import { TaskDragDirective } from "./dragging/task-drag.directive";
27
27
  import { GanttTaskTooltipTemplateDirective } from "./template-directives/task-tooltip-template.directive";
28
28
  /**
29
- * Utility array that contains all `@progress/kendo-angular-gantt` related components and directives
29
+ * Use the `KENDO_GANTT` utility array to import all Kendo UI for Angular Gantt components and directives to a standalone Angular component.
30
30
  */
31
31
  export const KENDO_GANTT = [
32
32
  GanttComponent,
@@ -17,28 +17,19 @@ import * as i1 from "../gantt.component";
17
17
  import * as i2 from "../common/mapping.service";
18
18
  import * as i3 from "@progress/kendo-angular-popup";
19
19
  import * as i4 from "../scrolling/timeline-scroll.service";
20
- /**
21
- * When added to the .k-task-dot, the element will be kept with hover styles.
22
- * Used for the drag clue from which the dragging has started.
23
- */
24
20
  const DRAG_CLUE_HOVER_CLASS = 'k-hover';
25
- /**
26
- * Add the selection disabling class to the enitre container.
27
- * Otherwise existing selection on a given task text prevents dragging the clue even if the clue has `user-select: none` styles.
28
- */
29
21
  const USER_SELECT_NONE_CLASS = 'k-user-select-none';
30
- /**
31
- * When added to the .k-task-wrap, the containing .k-task-dot elements will be kept visible even when not hovered.
32
- * Used for the drag clue from which the dragging has started.
33
- */
34
22
  const TASK_WRAPPER_DRAG_CLASS = 'k-origin';
35
- /**
36
- * Use 20px margin between the pointer and the popup.
37
- * Could be made user-configurable if there's demand.
38
- */
39
23
  const DEFAULT_POPUP_VERTICAL_MARGIN = 20;
40
24
  /**
41
- * A directive which enables the creation of new dependencies via dragging.
25
+ * Enables creating new dependencies by dragging.
26
+ *
27
+ * ```html
28
+ * <kendo-gantt kendoGanttDependencyDragCreate></kendo-gantt>
29
+ * ```
30
+ *
31
+ * @remarks
32
+ * Applied to: {@link GanttComponent}
42
33
  */
43
34
  export class DependencyDragCreateDirective {
44
35
  gantt;
@@ -48,7 +39,7 @@ export class DependencyDragCreateDirective {
48
39
  popupService;
49
40
  timelineScrollService;
50
41
  /**
51
- * Specifies whether the validation tooltip will be displayed during drag operations.
42
+ * Shows the validation tooltip during drag operations.
52
43
  *
53
44
  * @default true
54
45
  */
@@ -15,15 +15,28 @@ import * as i1 from "../gantt.component";
15
15
  import * as i2 from "../common/mapping.service";
16
16
  import * as i3 from "@progress/kendo-angular-utils";
17
17
  import * as i4 from "./task-drag.service";
18
+ /**
19
+ * Represents the Gantt task drag directive.
20
+ *
21
+ * Use this directive to enable dragging of tasks in the Gantt. The directive listens and emits events with information about the dragged task.
22
+ *
23
+ * @example
24
+ * ```html
25
+ * <kendo-gantt [data]="tasks" kendoGanttTaskDrag (taskDrag)="onTaskDrag($event)" (taskDragEnd)="onTaskDragEnd($event)">
26
+ * </kendo-gantt>
27
+ * ```
28
+ *
29
+ * @remarks
30
+ * Applied to: {@link GanttComponent}
31
+ */
18
32
  export class TaskDragDirective {
19
33
  /**
20
- * Emitted while the end user is resizing or moving a task through dragging.
34
+ * Emits while the user resizes or moves a task by dragging.
21
35
  */
22
36
  taskDrag = new EventEmitter();
23
37
  /**
24
- * Triggered when the dragging action associated with resizing or moving an event is finished.
25
- * The event data contains all necessary information to update the task and all related tasks
26
- * accordingly.
38
+ * Fires when the user finishes dragging to resize or move a task.
39
+ * The event data gives you all information needed to update the task and related tasks.
27
40
  */
28
41
  taskDragEnd = new EventEmitter();
29
42
  subs = new Subscription();
@@ -12,26 +12,26 @@ import * as i0 from "@angular/core";
12
12
  import * as i1 from "@progress/kendo-angular-l10n";
13
13
  import * as i2 from "./edit.service";
14
14
  /**
15
- * The UI for adding new items to the Gantt.
16
- * Use it within a toolbar template to provide a custom icon or list of options.
15
+ * Displays the UI for adding new items to the Gantt.
16
+ * Use this in a toolbar template to show a custom icon or a list of options.
17
17
  */
18
18
  export class GanttAddTaskComponent {
19
19
  localizationService;
20
20
  editService;
21
21
  ngZone;
22
22
  /**
23
- * Sets the data of the DropDownButton.
24
- * > The data has to be provided in an array-like list.
23
+ * Sets the data for the DropDownButton.
24
+ * Provide the data as an array-like list.
25
25
  */
26
26
  data;
27
27
  /**
28
- * Defines the name of an existing icon in a Kendo UI theme.
28
+ * Sets the name of an existing icon in a Kendo UI theme.
29
29
  * @default 'plus'
30
30
  */
31
31
  icon = 'plus';
32
32
  /**
33
- * Defines an [`SVGIcon`](slug:api_icons_svgicon) icon to be rendered inside the `GanttAddTaskComponent` using
34
- * a [`KendoSVGIcon`](slug:api_icons_svgiconcomponent) component.
33
+ * Sets an [`SVGIcon`](slug:api_icons_svgicon) to render inside the `GanttAddTaskComponent` using
34
+ * an [`SVGIconComponent`](slug:api_icons_svgiconcomponent).
35
35
  */
36
36
  svgIcon = plusIcon;
37
37
  constructor(localizationService, editService, ngZone) {
@@ -3,7 +3,8 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Arguments for the Gantt `expand` and `collapse` events.
6
+ * Represents the arguments for the Gantt `expand` and `collapse` events.
7
+ *
7
8
  */
8
9
  export class ExpandEvent {
9
10
  /** @hidden */
@@ -11,7 +12,7 @@ export class ExpandEvent {
11
12
  //TODO: empty ctor
12
13
  }
13
14
  /**
14
- * The expanded/collapsed data item.
15
+ * The expanded or collapsed data item.
15
16
  */
16
17
  dataItem;
17
18
  }
@@ -6,14 +6,20 @@ import { Directive, Input } from '@angular/core';
6
6
  import { ExpandableDirective } from '@progress/kendo-angular-treelist';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
- * A directive which controls the expanded state of the items.
9
+ * Represents a directive that controls the expanded state of Gantt items.
10
+ *
11
+ * @example
12
+ * ```html
13
+ * <kendo-gantt kendoGanttExpandable [expandedKeys]="expandedKeys"></kendo-gantt>
14
+ * ```
15
+ *
16
+ * @remarks
17
+ * Applied to: {@link GanttComponent}
10
18
  */
11
19
  export class GanttExpandableDirective extends ExpandableDirective {
12
20
  /**
13
- * Defines the item key that will be stored in the expandedKeys collection.
14
- * Defaults to the task data item ID field,
15
- * which is specified in the [`taskModelFields`]({% slug api_gantt_ganttcomponent %}#toc-taskmodelfields) object.
16
- *
21
+ * Sets the item key stored in the `expandedKeys` collection.
22
+ * The default value is the task data item ID field, specified in the `taskModelFields` object.
17
23
  */
18
24
  set expandBy(value) {
19
25
  super.expandBy = value;