@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.
- 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
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
|
-
*
|
|
38
|
+
* Use this module to include the Gantt component in your NgModule-based application.
|
|
40
39
|
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
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
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
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
|
-
*
|
|
10
|
-
*
|
|
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
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* or which built-in editor
|
|
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
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
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
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
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
|
-
*
|
|
7
|
+
* Configures the column menu settings in the Gantt component.
|
|
8
8
|
*/
|
|
9
9
|
export interface ColumnMenuSettings {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* If [sorting]({% slug api_gantt_ganttcomponent %}#toc-sortable)
|
|
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
|
-
*
|
|
18
|
-
* If [filtering]({% slug api_gantt_ganttcomponent %}#toc-filterable)
|
|
19
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
6
|
+
* Represents the settings for the current time marker in the Gantt component.
|
|
7
|
+
*
|
|
7
8
|
*/
|
|
8
9
|
export interface CurrentTimeSettings {
|
|
9
10
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
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
|
-
*
|
|
16
|
-
*
|
|
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
|
-
*
|
|
6
|
+
* Represents the dependency type when you connect two tasks.
|
|
7
7
|
*
|
|
8
8
|
* The supported values are:
|
|
9
9
|
* * `FF`—from 'finish' to 'finish'
|
|
@@ -12,8 +12,20 @@
|
|
|
12
12
|
* * `SF`—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
|
-
*
|
|
8
|
+
* Represents the arguments for the `cellClick` event of the Gantt.
|
|
9
9
|
*/
|
|
10
10
|
export interface CellClickEvent {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Contains the column component associated with the clicked cell.
|
|
13
13
|
*/
|
|
14
14
|
column: GanttColumnComponent | GanttSpanColumnComponent;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Holds the column index of the clicked cell.
|
|
17
17
|
*/
|
|
18
18
|
columnIndex: number;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Contains the data item for the clicked cell.
|
|
21
21
|
*/
|
|
22
22
|
dataItem: any;
|
|
23
23
|
/**
|
|
24
|
-
* Indicates
|
|
24
|
+
* Indicates if the cell is in edit mode.
|
|
25
25
|
*/
|
|
26
26
|
isEdited: boolean;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Contains the DOM event that triggered the `cellClick` event.
|
|
29
29
|
*/
|
|
30
30
|
originalEvent: PointerEvent;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Holds the row index for the clicked cell.
|
|
33
33
|
*/
|
|
34
34
|
rowIndex: number;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Contains the Gantt component instance.
|
|
37
37
|
*/
|
|
38
38
|
sender: GanttComponent;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
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
|
-
*
|
|
9
|
+
* Represents the arguments for the `cellClose` event of the Gantt.
|
|
10
10
|
*/
|
|
11
11
|
export declare class CellCloseEvent extends PreventableEvent {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
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
|
-
*
|
|
21
|
+
* Contains the Gantt column associated with the closed cell.
|
|
22
22
|
*/
|
|
23
23
|
column: any;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
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
|
-
*
|
|
30
|
-
*
|
|
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
|
-
*
|
|
34
|
+
* Holds the `GanttComponent` instance.
|
|
35
35
|
*/
|
|
36
36
|
sender: GanttComponent;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
7
|
+
* Provides the arguments for the `columnVisibilityChange` event.
|
|
8
8
|
*/
|
|
9
9
|
export interface ColumnVisibilityChangeEvent {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
11
|
+
* Represents the task where the dependency starts (predecessor).
|
|
12
12
|
*/
|
|
13
13
|
fromTask: any;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Represents the task where the dependency ends (successor).
|
|
16
16
|
*/
|
|
17
17
|
toTask: any;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Specifies the dependency type for the linked tasks.
|
|
20
20
|
*/
|
|
21
21
|
type: DependencyType;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
11
|
+
* Holds the currently selected Gantt task.
|
|
12
12
|
*/
|
|
13
13
|
selectedItem: TaskEditItem | null;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
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
|
-
*
|
|
20
|
+
* Describes the AddTask DropDownButton options.
|
|
21
21
|
*/
|
|
22
22
|
export interface GanttAddTaskActionItem {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Holds the text for the DropDownButton option.
|
|
25
25
|
*/
|
|
26
26
|
text: string;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
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
|
-
*
|
|
7
|
+
* Provides the arguments for the `taskClick` event of the Gantt.
|
|
8
8
|
*/
|
|
9
9
|
export interface TaskClickEvent {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Holds the DOM event that triggered the `taskClick` event.
|
|
12
12
|
*/
|
|
13
13
|
originalEvent: PointerEvent | KeyboardEvent;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Holds the data item for the clicked task.
|
|
16
16
|
*/
|
|
17
17
|
dataItem: any;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Holds the Gantt component instance.
|
|
20
20
|
*/
|
|
21
21
|
sender: GanttComponent;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
13
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
12
|
+
* Holds the new start date for the task.
|
|
13
13
|
*/
|
|
14
14
|
start: Date;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Holds the new end date for the task.
|
|
17
17
|
*/
|
|
18
18
|
end: Date;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Holds the new completion ratio.
|
|
21
21
|
*/
|
|
22
22
|
completionRatio: number;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Holds the drag event triggered by the user's action.
|
|
25
25
|
*/
|
|
26
26
|
dragEvent: DragTargetDragEvent | DragTargetDragEndEvent;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
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
|
-
*
|
|
38
|
+
* Holds the new start date for the task.
|
|
40
39
|
*/
|
|
41
40
|
start: Date;
|
|
42
41
|
/**
|
|
43
|
-
*
|
|
42
|
+
* Holds the new end date for the task.
|
|
44
43
|
*/
|
|
45
44
|
end: Date;
|
|
46
45
|
/**
|
|
47
|
-
*
|
|
46
|
+
* Holds the new completion ratio.
|
|
48
47
|
*/
|
|
49
48
|
completionRatio: number;
|
|
50
49
|
/**
|
|
51
|
-
*
|
|
50
|
+
* Holds the offset of the task DOM element, relative to the view start.
|
|
52
51
|
*/
|
|
53
52
|
offset: number;
|
|
54
53
|
/**
|
|
55
|
-
*
|
|
54
|
+
* Holds the new width of the task DOM element in pixels.
|
|
56
55
|
*/
|
|
57
56
|
width: number;
|
|
58
57
|
/**
|
|
59
|
-
*
|
|
58
|
+
* Holds the drag event triggered by the user's action.
|
|
60
59
|
*/
|
|
61
60
|
dragEvent: DragTargetDragEvent | DragTargetDragEndEvent;
|
|
62
61
|
/**
|
|
63
|
-
*
|
|
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
|
-
*
|
|
8
|
+
* Contains the event data for task editing events.
|
|
9
9
|
*/
|
|
10
10
|
export interface TaskEditEvent {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
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
|
-
*
|
|
17
|
+
* Holds the `FormGroup` instance for the edited task.
|
|
19
18
|
*/
|
|
20
19
|
taskFormGroup?: FormGroup;
|
|
21
20
|
/**
|
|
22
|
-
*
|
|
21
|
+
* Holds the dependencies for the edited task.
|
|
23
22
|
*/
|
|
24
23
|
dependencies: EditEventDependencies;
|
|
25
24
|
/**
|
|
26
|
-
*
|
|
25
|
+
* Holds the `GanttComponent` instance.
|
|
27
26
|
*/
|
|
28
27
|
sender: GanttComponent;
|
|
29
28
|
}
|
|
30
29
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
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
|
-
*
|
|
35
|
+
* Holds the original data item for this entry.
|
|
38
36
|
*/
|
|
39
37
|
dataItem: any;
|
|
40
38
|
/**
|
|
41
|
-
* Holds the parent data item and
|
|
42
|
-
* If the current data item is at root level, this
|
|
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
|
-
*
|
|
48
|
-
*
|
|
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
|
/**
|