@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.
- package/binding-directives/flat-binding.directive.d.ts +16 -4
- package/binding-directives/hierarchy-binding.directive.d.ts +16 -3
- package/columns/cell-template.directive.d.ts +20 -12
- package/columns/column-base.component.d.ts +2 -1
- package/columns/column-group.component.d.ts +14 -0
- package/columns/column-menu-template.directive.d.ts +14 -7
- package/columns/column.component.d.ts +12 -2
- package/columns/edit-template.directive.d.ts +15 -6
- package/columns/filter-menu-template.directive.d.ts +14 -4
- package/columns/footer-template.directive.d.ts +14 -5
- package/columns/header-template.directive.d.ts +15 -5
- package/columns/span-column.component.d.ts +16 -0
- package/directives.d.ts +1 -1
- package/dragging/dependency-drag-create.directive.d.ts +9 -2
- package/dragging/task-drag.directive.d.ts +17 -4
- package/editing/add-task.component.d.ts +7 -7
- package/esm2022/binding-directives/flat-binding.directive.mjs +16 -4
- package/esm2022/binding-directives/hierarchy-binding.directive.mjs +16 -3
- package/esm2022/columns/cell-template.directive.mjs +20 -12
- package/esm2022/columns/column-base.component.mjs +2 -1
- package/esm2022/columns/column-group.component.mjs +14 -0
- package/esm2022/columns/column-menu-template.directive.mjs +14 -7
- package/esm2022/columns/column.component.mjs +12 -2
- package/esm2022/columns/edit-template.directive.mjs +15 -6
- package/esm2022/columns/filter-menu-template.directive.mjs +14 -4
- package/esm2022/columns/footer-template.directive.mjs +14 -5
- package/esm2022/columns/header-template.directive.mjs +15 -5
- package/esm2022/columns/span-column.component.mjs +16 -0
- package/esm2022/directives.mjs +1 -1
- package/esm2022/dragging/dependency-drag-create.directive.mjs +9 -18
- package/esm2022/dragging/task-drag.directive.mjs +17 -4
- package/esm2022/editing/add-task.component.mjs +7 -7
- package/esm2022/expanded-state/expand-event.mjs +3 -2
- package/esm2022/expanded-state/expandable.directive.mjs +11 -5
- package/esm2022/gantt.component.mjs +163 -211
- package/esm2022/gantt.module.mjs +9 -20
- package/esm2022/localization/custom-messages.component.mjs +10 -2
- package/esm2022/models/dependency-type.enum.mjs +14 -2
- package/esm2022/models/events/cell-close-event.interface.mjs +9 -10
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/selection/selectable.directive.mjs +13 -5
- package/esm2022/template-directives/summary-task-template.directive.mjs +14 -23
- package/esm2022/template-directives/task-content-template.directive.mjs +3 -4
- package/esm2022/template-directives/task-template.directive.mjs +12 -21
- package/esm2022/template-directives/task-tooltip-template.directive.mjs +3 -4
- package/esm2022/timeline/timeline-day-view.component.mjs +7 -2
- package/esm2022/timeline/timeline-month-view.component.mjs +7 -2
- package/esm2022/timeline/timeline-week-view.component.mjs +7 -2
- package/esm2022/timeline/timeline-year-view.component.mjs +7 -2
- package/esm2022/timeline/view-base.mjs +10 -4
- package/esm2022/toolbar/toolbar-template.directive.mjs +13 -86
- package/esm2022/toolbar/view-selector.component.mjs +4 -4
- package/expanded-state/expand-event.d.ts +3 -2
- package/expanded-state/expandable.directive.d.ts +11 -5
- package/fesm2022/progress-kendo-angular-gantt.mjs +520 -490
- package/gantt.component.d.ts +159 -207
- package/gantt.module.d.ts +9 -20
- package/localization/custom-messages.component.d.ts +10 -2
- package/models/cell-content-type.interface.d.ts +4 -3
- package/models/class-callbacks.d.ts +20 -20
- package/models/column-menu-settings.interface.d.ts +7 -8
- package/models/column-reorder-config.d.ts +4 -1
- package/models/current-time-settings.interface.d.ts +8 -5
- package/models/dependency-type.enum.d.ts +13 -1
- package/models/events/cell-click-event.interface.d.ts +9 -9
- package/models/events/cell-close-event.interface.d.ts +9 -10
- package/models/events/column-reorder-event.interface.d.ts +1 -1
- package/models/events/column-resize-event.interface.d.ts +1 -1
- package/models/events/column-visibility-change-event.interface.d.ts +2 -2
- package/models/events/data-state-change-event.interface.d.ts +1 -1
- package/models/events/dependency-add-event.interface.d.ts +5 -5
- package/models/events/task-add-event.interface.d.ts +6 -6
- package/models/events/task-click-event.interface.d.ts +6 -6
- package/models/events/task-delete-event.interface.d.ts +4 -5
- package/models/events/task-drag-event.interface.d.ts +13 -15
- package/models/events/task-edit-event.interface.d.ts +13 -15
- package/models/gantt-dependency-model-fields.interface.d.ts +11 -10
- package/models/gantt-dependency.interface.d.ts +8 -5
- package/models/gantt-task-model-fields.interface.d.ts +22 -13
- package/models/gantt-task.interface.d.ts +11 -10
- package/models/sort-settings.d.ts +6 -6
- package/models/splitter-pane-options.interface.d.ts +8 -8
- package/models/timeline-header-date-format.d.ts +4 -3
- package/models/timeline-view.d.ts +1 -1
- package/models/toolbar-settings.d.ts +5 -6
- package/models/tooltip-options.interface.d.ts +4 -4
- package/package.json +17 -17
- package/schematics/ngAdd/index.js +7 -7
- package/scrolling/drag-scroll-settings.d.ts +4 -4
- package/selection/selectable.directive.d.ts +13 -5
- package/selection/selection-change-event.d.ts +6 -7
- package/template-directives/summary-task-template.directive.d.ts +14 -23
- package/template-directives/task-content-template.directive.d.ts +3 -4
- package/template-directives/task-template.directive.d.ts +12 -21
- package/template-directives/task-tooltip-template.directive.d.ts +3 -4
- package/timeline/timeline-day-view.component.d.ts +7 -2
- package/timeline/timeline-month-view.component.d.ts +7 -2
- package/timeline/timeline-week-view.component.d.ts +7 -2
- package/timeline/timeline-year-view.component.d.ts +7 -2
- package/timeline/view-base.d.ts +11 -5
- package/toolbar/toolbar-template.directive.d.ts +13 -86
- 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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
9
|
-
*
|
|
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
|
|
13
|
+
* The template context provides the following fields:
|
|
13
14
|
* - `column`—The current column instance.
|
|
14
15
|
* - `dataItem`—The current data item.
|
|
15
|
-
* - `cellContext`—An object
|
|
16
|
-
* - `formGroup`—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`—An object for passing context information to built-in directives.
|
|
17
|
+
* - `formGroup`—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`—The state of the current item.
|
|
19
19
|
* - `rowIndex`—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
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* Use this directive to customize the filter menu for a column.
|
|
11
|
+
* The template context provides:
|
|
12
|
+
* - `column`—The current column instance. Use as an alias for a template variable with the `let-column="column"` syntax.
|
|
12
13
|
* - `filter`—The filter descriptor.
|
|
13
|
-
* - `cellContext`—An object
|
|
14
|
+
* - `cellContext`—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
|
|
8
|
+
* Represents the footer cell template of the Gantt columns.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
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
|
-
*
|
|
15
|
-
* * `column`—
|
|
16
|
-
* * `columnIndex`—
|
|
14
|
+
* The template context provides:
|
|
15
|
+
* * `column`—The current [`ColumnComponent`]({% slug api_gantt_ganttcolumncomponent %}).
|
|
16
|
+
* * `columnIndex`—The current column index.
|
|
17
17
|
* * `field`—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
|
|
9
|
-
*
|
|
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
|
-
*
|
|
14
|
-
* * `column`—
|
|
15
|
-
* * `columnIndex`—
|
|
14
|
+
* The template context provides:
|
|
15
|
+
* * `column`—The current [`ColumnComponent`]({% slug api_gantt_ganttcolumncomponent %}).
|
|
16
|
+
* * `columnIndex`—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
|
/**
|
package/esm2022/directives.mjs
CHANGED
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
34
|
+
* Emits while the user resizes or moves a task by dragging.
|
|
21
35
|
*/
|
|
22
36
|
taskDrag = new EventEmitter();
|
|
23
37
|
/**
|
|
24
|
-
*
|
|
25
|
-
* The event data
|
|
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
|
-
*
|
|
16
|
-
* Use
|
|
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
|
|
24
|
-
*
|
|
23
|
+
* Sets the data for the DropDownButton.
|
|
24
|
+
* Provide the data as an array-like list.
|
|
25
25
|
*/
|
|
26
26
|
data;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
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
|
-
*
|
|
34
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
14
|
-
*
|
|
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;
|