@progress/kendo-angular-gantt 2.0.0-next.202204010911 → 2.0.0-next.202204121022
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 +24 -0
- package/binding-directives/hierarchy-binding.directive.d.ts +22 -0
- package/bundles/kendo-angular-gantt.umd.js +1 -1
- package/columns/cell-template.directive.d.ts +28 -0
- package/columns/column-base.d.ts +85 -0
- package/columns/column-group.component.d.ts +103 -0
- package/columns/column-menu-template.directive.d.ts +22 -0
- package/columns/column.component.d.ts +130 -0
- package/columns/columns.d.ts +15 -0
- package/columns/edit-template.directive.d.ts +26 -0
- package/columns/filter-cell-template.directive.d.ts +21 -0
- package/columns/filter-menu-template.directive.d.ts +20 -0
- package/columns/footer-template.directive.d.ts +24 -0
- package/columns/header-template.directive.d.ts +22 -0
- package/columns/span-column.component.d.ts +112 -0
- package/common/default-callbacks.d.ts +25 -0
- package/common/mapping.service.d.ts +38 -0
- package/common/option-changes.service.d.ts +17 -0
- package/common/touch-enabled.d.ts +9 -0
- package/dependencies/dependency-dom.service.d.ts +46 -0
- package/dependencies/dom-dependency-args.d.ts +24 -0
- package/dependencies/gantt-dependency.directive.d.ts +29 -0
- package/dependencies/utils.d.ts +53 -0
- package/dragging/dependency-drag-create.directive.d.ts +75 -0
- package/dragging/drag-validation-tooltip.component.d.ts +32 -0
- package/editing/add-task.component.d.ts +48 -0
- package/editing/dependencies-table.component.d.ts +42 -0
- package/editing/edit-dialog.component.d.ts +33 -0
- package/editing/edit.service.d.ts +44 -0
- package/editing/task-fields.component.d.ts +25 -0
- package/editing/utils.d.ts +10 -0
- package/esm2015/binding-directives/flat-binding.directive.js +34 -0
- package/esm2015/binding-directives/hierarchy-binding.directive.js +32 -0
- package/esm2015/columns/cell-template.directive.js +37 -0
- package/esm2015/columns/column-base.js +52 -0
- package/esm2015/columns/column-group.component.js +94 -0
- package/esm2015/columns/column-menu-template.directive.js +31 -0
- package/esm2015/columns/column.component.js +133 -0
- package/esm2015/columns/columns.js +15 -0
- package/esm2015/columns/edit-template.directive.js +35 -0
- package/esm2015/columns/filter-cell-template.directive.js +30 -0
- package/esm2015/columns/filter-menu-template.directive.js +29 -0
- package/esm2015/columns/footer-template.directive.js +33 -0
- package/esm2015/columns/header-template.directive.js +31 -0
- package/esm2015/columns/span-column.component.js +86 -0
- package/esm2015/common/default-callbacks.js +25 -0
- package/esm2015/common/mapping.service.js +64 -0
- package/esm2015/common/option-changes.service.js +26 -0
- package/esm2015/common/touch-enabled.js +9 -0
- package/esm2015/dependencies/dependency-dom.service.js +70 -0
- package/esm2015/dependencies/dom-dependency-args.js +5 -0
- package/esm2015/dependencies/gantt-dependency.directive.js +82 -0
- package/esm2015/dependencies/utils.js +195 -0
- package/esm2015/dragging/dependency-drag-create.directive.js +318 -0
- package/esm2015/dragging/drag-validation-tooltip.component.js +90 -0
- package/esm2015/editing/add-task.component.js +109 -0
- package/esm2015/editing/dependencies-table.component.js +196 -0
- package/esm2015/editing/edit-dialog.component.js +170 -0
- package/esm2015/editing/edit.service.js +111 -0
- package/esm2015/editing/task-fields.component.js +101 -0
- package/esm2015/editing/utils.js +15 -0
- package/esm2015/expanded-state/expand-event.js +9 -0
- package/esm2015/expanded-state/expandable.directive.js +23 -0
- package/esm2015/gantt.component.js +2226 -0
- package/esm2015/gantt.module.js +264 -0
- package/esm2015/kendo-angular-gantt.js +8 -0
- package/esm2015/localization/custom-messages.component.js +41 -0
- package/esm2015/localization/gantt-localization.service.js +25 -0
- package/esm2015/localization/localized-messages.directive.js +36 -0
- package/esm2015/localization/messages.js +157 -0
- package/esm2015/main.js +37 -0
- package/esm2015/models/cell-content-type.interface.js +5 -0
- package/esm2015/models/class-callbacks.js +5 -0
- package/esm2015/models/column-menu-settings.interface.js +5 -0
- package/esm2015/models/column-reorder-config.js +5 -0
- package/esm2015/models/date-range.interface.js +5 -0
- package/esm2015/models/dependency-type.enum.js +20 -0
- package/esm2015/models/events/cell-click-event.interface.js +5 -0
- package/esm2015/models/events/cell-close-event.interface.js +14 -0
- package/esm2015/models/events/click-event.interface.js +5 -0
- package/esm2015/models/events/column-locked-change-event.interface.js +5 -0
- package/esm2015/models/events/column-reorder-event.interface.js +5 -0
- package/esm2015/models/events/column-resize-event.interface.js +5 -0
- package/esm2015/models/events/column-visibility-change-event.interface.js +5 -0
- package/esm2015/models/events/data-state-change-event.interface.js +5 -0
- package/esm2015/models/events/dependency-add-event.interface.js +5 -0
- package/esm2015/models/events/selected-view-change-event.interface.js +5 -0
- package/esm2015/models/events/task-add-event.interface.js +5 -0
- package/esm2015/models/events/task-click-event.interface.js +5 -0
- package/esm2015/models/events/task-delete-event.interface.js +5 -0
- package/esm2015/models/events/task-edit-event.interface.js +5 -0
- package/esm2015/models/events/task-move-end-event.interface.js +5 -0
- package/esm2015/models/events/task-move-event.interface.js +5 -0
- package/esm2015/models/events/task-move-start-event.interface.js +5 -0
- package/esm2015/models/events/task-resize-end-event.interface.js +5 -0
- package/esm2015/models/events/task-resize-event.interface.js +5 -0
- package/esm2015/models/events/task-resize-start-event.interface.js +5 -0
- package/esm2015/models/filterable-settings.js +5 -0
- package/esm2015/models/gantt-dependency-model-fields.interface.js +13 -0
- package/esm2015/models/gantt-dependency.interface.js +5 -0
- package/esm2015/models/gantt-task-model-fields.interface.js +15 -0
- package/esm2015/models/gantt-task.interface.js +5 -0
- package/esm2015/models/models.js +7 -0
- package/esm2015/models/slot.interface.js +5 -0
- package/esm2015/models/sort-settings.js +17 -0
- package/esm2015/models/splitter-pane-options.interface.js +20 -0
- package/esm2015/models/timeline-options.interface.js +5 -0
- package/esm2015/models/timeline-view.js +5 -0
- package/esm2015/models/toolbar-settings.js +5 -0
- package/esm2015/models/view-item.interface.js +5 -0
- package/esm2015/navigation/navigation-models.js +5 -0
- package/esm2015/navigation/navigation.service.js +265 -0
- package/esm2015/navigation/utils.js +69 -0
- package/esm2015/package-metadata.js +15 -0
- package/esm2015/rendering/gantt-header-table-body.component.js +42 -0
- package/esm2015/rendering/gantt-milestone-task.component.js +107 -0
- package/esm2015/rendering/gantt-summary-task.component.js +158 -0
- package/esm2015/rendering/gantt-task-base.js +148 -0
- package/esm2015/rendering/gantt-task.component.js +204 -0
- package/esm2015/rendering/gantt-tasks-table-body.component.js +160 -0
- package/esm2015/scrolling/drag-scroll-settings.js +20 -0
- package/esm2015/scrolling/scroll-sync.service.js +80 -0
- package/esm2015/scrolling/timeline-scroll.directive.js +75 -0
- package/esm2015/scrolling/timeline-scroll.service.js +39 -0
- package/esm2015/scrolling/utils.js +77 -0
- package/esm2015/selection/selectable.directive.js +112 -0
- package/esm2015/selection/selection-change-event.js +5 -0
- package/esm2015/template-directives/summary-task-template.directive.js +50 -0
- package/esm2015/template-directives/task-content-template.directive.js +45 -0
- package/esm2015/template-directives/task-template.directive.js +48 -0
- package/esm2015/timeline/gantt-timeline.component.js +334 -0
- package/esm2015/timeline/timeline-base-view.service.js +160 -0
- package/esm2015/timeline/timeline-day-view.component.js +38 -0
- package/esm2015/timeline/timeline-day-view.service.js +66 -0
- package/esm2015/timeline/timeline-month-view.component.js +38 -0
- package/esm2015/timeline/timeline-month-view.service.js +64 -0
- package/esm2015/timeline/timeline-view.service.js +35 -0
- package/esm2015/timeline/timeline-week-view.component.js +38 -0
- package/esm2015/timeline/timeline-week-view.service.js +60 -0
- package/esm2015/timeline/view-base.js +45 -0
- package/esm2015/toolbar/toolbar-template.directive.js +127 -0
- package/esm2015/toolbar/toolbar.component.js +94 -0
- package/esm2015/toolbar/view-selector.component.js +96 -0
- package/esm2015/utils.js +293 -0
- package/expanded-state/expand-event.d.ts +13 -0
- package/expanded-state/expandable.directive.d.ts +20 -0
- package/fesm2015/kendo-angular-gantt.js +7706 -0
- package/gantt.component.d.ts +750 -0
- package/gantt.module.d.ts +94 -0
- package/kendo-angular-gantt.d.ts +9 -0
- package/localization/custom-messages.component.d.ts +18 -0
- package/localization/gantt-localization.service.d.ts +18 -0
- package/localization/localized-messages.directive.d.ts +16 -0
- package/localization/messages.d.ts +293 -0
- package/main.d.ts +39 -0
- package/models/cell-content-type.interface.d.ts +10 -0
- package/models/class-callbacks.d.ts +43 -0
- package/models/column-menu-settings.interface.d.ts +26 -0
- package/models/column-reorder-config.d.ts +10 -0
- package/models/date-range.interface.d.ts +19 -0
- package/models/dependency-type.enum.d.ts +19 -0
- package/models/events/cell-click-event.interface.d.ts +43 -0
- package/models/events/cell-close-event.interface.d.ts +48 -0
- package/models/events/click-event.interface.d.ts +23 -0
- package/models/events/column-locked-change-event.interface.d.ts +16 -0
- package/models/events/column-reorder-event.interface.d.ts +10 -0
- package/models/events/column-resize-event.interface.d.ts +10 -0
- package/models/events/column-visibility-change-event.interface.d.ts +14 -0
- package/models/events/data-state-change-event.interface.d.ts +10 -0
- package/models/events/dependency-add-event.interface.d.ts +26 -0
- package/models/events/selected-view-change-event.interface.d.ts +19 -0
- package/models/events/task-add-event.interface.d.ts +31 -0
- package/models/events/task-click-event.interface.d.ts +30 -0
- package/models/events/task-delete-event.interface.d.ts +21 -0
- package/models/events/task-edit-event.interface.d.ts +76 -0
- package/models/events/task-move-end-event.interface.d.ts +12 -0
- package/models/events/task-move-event.interface.d.ts +23 -0
- package/models/events/task-move-start-event.interface.d.ts +15 -0
- package/models/events/task-resize-end-event.interface.d.ts +12 -0
- package/models/events/task-resize-event.interface.d.ts +23 -0
- package/models/events/task-resize-start-event.interface.d.ts +15 -0
- package/models/filterable-settings.d.ts +10 -0
- package/models/gantt-dependency-model-fields.interface.d.ts +35 -0
- package/models/gantt-dependency.interface.d.ts +26 -0
- package/models/gantt-task-model-fields.interface.d.ts +42 -0
- package/models/gantt-task.interface.d.ts +31 -0
- package/models/models.d.ts +42 -0
- package/models/slot.interface.d.ts +31 -0
- package/models/sort-settings.d.ts +42 -0
- package/models/splitter-pane-options.interface.d.ts +54 -0
- package/models/timeline-options.interface.d.ts +41 -0
- package/models/timeline-view.d.ts +8 -0
- package/models/toolbar-settings.d.ts +29 -0
- package/models/view-item.interface.d.ts +35 -0
- package/navigation/navigation-models.d.ts +38 -0
- package/navigation/navigation.service.d.ts +130 -0
- package/navigation/utils.d.ts +26 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +10 -14
- package/rendering/gantt-header-table-body.component.d.ts +14 -0
- package/rendering/gantt-milestone-task.component.d.ts +22 -0
- package/rendering/gantt-summary-task.component.d.ts +25 -0
- package/rendering/gantt-task-base.d.ts +59 -0
- package/rendering/gantt-task.component.d.ts +26 -0
- package/rendering/gantt-tasks-table-body.component.d.ts +33 -0
- package/scrolling/drag-scroll-settings.d.ts +47 -0
- package/scrolling/scroll-sync.service.d.ts +33 -0
- package/scrolling/timeline-scroll.directive.d.ts +27 -0
- package/scrolling/timeline-scroll.service.d.ts +23 -0
- package/scrolling/utils.d.ts +29 -0
- package/selection/selectable.directive.d.ts +45 -0
- package/selection/selection-change-event.d.ts +25 -0
- package/template-directives/summary-task-template.directive.d.ts +41 -0
- package/template-directives/task-content-template.directive.d.ts +36 -0
- package/template-directives/task-template.directive.d.ts +39 -0
- package/timeline/gantt-timeline.component.d.ts +67 -0
- package/timeline/timeline-base-view.service.d.ts +77 -0
- package/timeline/timeline-day-view.component.d.ts +18 -0
- package/timeline/timeline-day-view.service.d.ts +38 -0
- package/timeline/timeline-month-view.component.d.ts +18 -0
- package/timeline/timeline-month-view.service.d.ts +38 -0
- package/timeline/timeline-view.service.d.ts +19 -0
- package/timeline/timeline-week-view.component.d.ts +18 -0
- package/timeline/timeline-week-view.service.d.ts +38 -0
- package/timeline/view-base.d.ts +34 -0
- package/toolbar/toolbar-template.directive.d.ts +112 -0
- package/toolbar/toolbar.component.d.ts +29 -0
- package/toolbar/view-selector.component.d.ts +43 -0
- package/utils.d.ts +166 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import type { GanttComponent } from '../../gantt.component';
|
|
6
|
+
import { GanttColumnComponent, GanttSpanColumnComponent } from '../../columns/columns';
|
|
7
|
+
/**
|
|
8
|
+
* Triggered every time a cell is clicked.
|
|
9
|
+
*/
|
|
10
|
+
export interface CellClickEvent {
|
|
11
|
+
/**
|
|
12
|
+
* The column component associated with the clicked cell.
|
|
13
|
+
*/
|
|
14
|
+
column: GanttColumnComponent | GanttSpanColumnComponent;
|
|
15
|
+
/**
|
|
16
|
+
* The column index of the clicked cell.
|
|
17
|
+
*/
|
|
18
|
+
columnIndex: number;
|
|
19
|
+
/**
|
|
20
|
+
* The data item associated with the clicked cell.
|
|
21
|
+
*/
|
|
22
|
+
dataItem: any;
|
|
23
|
+
/**
|
|
24
|
+
* Indicates whether the cell is in edit mode.
|
|
25
|
+
*/
|
|
26
|
+
isEdited: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The DOM event that triggered the `cellClick` event.
|
|
29
|
+
*/
|
|
30
|
+
originalEvent: PointerEvent;
|
|
31
|
+
/**
|
|
32
|
+
* The row index for the clicked cell.
|
|
33
|
+
*/
|
|
34
|
+
rowIndex: number;
|
|
35
|
+
/**
|
|
36
|
+
* The Gantt component instance.
|
|
37
|
+
*/
|
|
38
|
+
sender: GanttComponent;
|
|
39
|
+
/**
|
|
40
|
+
* The type of the event that triggered the `cellClick` event.
|
|
41
|
+
*/
|
|
42
|
+
type: 'click' | 'contextmenu' | 'dblclick';
|
|
43
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import type { GanttComponent } from '../../gantt.component';
|
|
6
|
+
import { PreventableEvent } from '@progress/kendo-angular-treelist';
|
|
7
|
+
import { TaskEditItem } from './task-edit-event.interface';
|
|
8
|
+
/**
|
|
9
|
+
* Called every time a user leaves an edited cell.
|
|
10
|
+
*/
|
|
11
|
+
export declare class CellCloseEvent extends PreventableEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The data item.
|
|
14
|
+
*/
|
|
15
|
+
dataItem: any;
|
|
16
|
+
/**
|
|
17
|
+
* Indicates if the data item is new or existing.
|
|
18
|
+
*/
|
|
19
|
+
isNew: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The data row index for the operation.
|
|
22
|
+
*/
|
|
23
|
+
rowIndex: number;
|
|
24
|
+
/**
|
|
25
|
+
* The Gantt column that will be closed.
|
|
26
|
+
*/
|
|
27
|
+
column: any;
|
|
28
|
+
/**
|
|
29
|
+
* The [`FormGroup`]({{ site.data.urls.angular['formgroupapi'] }}) that is used to edit the cell which will be closed.
|
|
30
|
+
*/
|
|
31
|
+
formGroup: any;
|
|
32
|
+
/**
|
|
33
|
+
* The DOM event that caused the `cellClose` event.
|
|
34
|
+
* May not be present if `cellClose` was caused by an API call.
|
|
35
|
+
*/
|
|
36
|
+
originalEvent: any;
|
|
37
|
+
/**
|
|
38
|
+
* The `GanttComponent` instance.
|
|
39
|
+
*/
|
|
40
|
+
sender: GanttComponent;
|
|
41
|
+
/**
|
|
42
|
+
* The `TaskEditItem` associated with the edited task.
|
|
43
|
+
* The parent item is accessible through the `parent` property,
|
|
44
|
+
* and allows traversing all ancestors that need to be updated.
|
|
45
|
+
*/
|
|
46
|
+
item: TaskEditItem;
|
|
47
|
+
constructor(options: any);
|
|
48
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*
|
|
8
|
+
* Arguments for the `remove` event.
|
|
9
|
+
*/
|
|
10
|
+
export interface ClickEvent {
|
|
11
|
+
/**
|
|
12
|
+
* The event type.
|
|
13
|
+
*/
|
|
14
|
+
dataItem: any;
|
|
15
|
+
/**
|
|
16
|
+
* The row index for the operation.
|
|
17
|
+
*/
|
|
18
|
+
rowIndex: number;
|
|
19
|
+
/**
|
|
20
|
+
* The original DOM event.
|
|
21
|
+
*/
|
|
22
|
+
originalEvent: any;
|
|
23
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { GanttColumnBase } from '../../columns/column-base';
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*
|
|
9
|
+
* Arguments for the `columnLockedChange` event.
|
|
10
|
+
*/
|
|
11
|
+
export interface ColumnLockedChangeEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The columns whose locked state is changed.
|
|
14
|
+
*/
|
|
15
|
+
columns: GanttColumnBase[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { ColumnReorderEvent as TreeListColumnReorderEvent } from '@progress/kendo-angular-treelist';
|
|
6
|
+
/**
|
|
7
|
+
* Arguments for the `columnReorder` event.
|
|
8
|
+
*/
|
|
9
|
+
export interface ColumnReorderEvent extends TreeListColumnReorderEvent {
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { ColumnResizeArgs } from '@progress/kendo-angular-treelist';
|
|
6
|
+
/**
|
|
7
|
+
* Arguments for the `columnResize` event.
|
|
8
|
+
*/
|
|
9
|
+
export interface ColumnResizeEvent extends ColumnResizeArgs {
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { GanttColumnBase } from '../../columns/column-base';
|
|
6
|
+
/**
|
|
7
|
+
* Arguments for the `columnVisibilityChange` event.
|
|
8
|
+
*/
|
|
9
|
+
export interface ColumnVisibilityChangeEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The columns whose visibility is changed.
|
|
12
|
+
*/
|
|
13
|
+
columns: GanttColumnBase[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { DataStateChangeEvent as TreeListDataStateChangeEvent } from "@progress/kendo-angular-treelist";
|
|
6
|
+
/**
|
|
7
|
+
* Arguments for the `dataStateChange` event
|
|
8
|
+
*/
|
|
9
|
+
export interface DataStateChangeEvent extends TreeListDataStateChangeEvent {
|
|
10
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { DependencyType } from '../dependency-type.enum';
|
|
6
|
+
/**
|
|
7
|
+
* The event data of the [`dependencyAdd`]({% slug api_gantt_ganttcomponent %}#toc-dependencyadd) event.
|
|
8
|
+
*/
|
|
9
|
+
export interface DependencyAddEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The task from which the dependency starts (predecessor).
|
|
12
|
+
*/
|
|
13
|
+
fromTask: any;
|
|
14
|
+
/**
|
|
15
|
+
* The task where the dependency ends (successor).
|
|
16
|
+
*/
|
|
17
|
+
toTask: any;
|
|
18
|
+
/**
|
|
19
|
+
* The dependency type of the linked tasks.
|
|
20
|
+
*/
|
|
21
|
+
type: DependencyType;
|
|
22
|
+
/**
|
|
23
|
+
* Specifies whether the dependency creation attempt is a valid link between the two targeted tasks.
|
|
24
|
+
*/
|
|
25
|
+
isValid: boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*
|
|
8
|
+
* Called every time the active view is changed.
|
|
9
|
+
*/
|
|
10
|
+
export interface SelectedViewChangeEvent {
|
|
11
|
+
/**
|
|
12
|
+
* The selected view.
|
|
13
|
+
*/
|
|
14
|
+
value: string;
|
|
15
|
+
/**
|
|
16
|
+
* The original DOM event.
|
|
17
|
+
*/
|
|
18
|
+
originalEvent: any;
|
|
19
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { TaskEditItem } from "./task-edit-event.interface";
|
|
6
|
+
/**
|
|
7
|
+
* The event data of the [`taskAdd`]({% slug api_gantt_ganttcomponent %}#toc-taskadd) event.
|
|
8
|
+
*/
|
|
9
|
+
export interface TaskAddEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The currently selected Gantt task.
|
|
12
|
+
*/
|
|
13
|
+
selectedItem: TaskEditItem | null;
|
|
14
|
+
/**
|
|
15
|
+
* The type of the add action. The built-in types are `addTask`, `addChild`, `addAbove`, and `addBelow`.
|
|
16
|
+
*/
|
|
17
|
+
actionType: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The interface of the AddTask DropDownButton options.
|
|
21
|
+
*/
|
|
22
|
+
export interface GanttAddTaskActionItem {
|
|
23
|
+
/**
|
|
24
|
+
* The text of the respective DropDownButton option.
|
|
25
|
+
*/
|
|
26
|
+
text: string;
|
|
27
|
+
/**
|
|
28
|
+
* The type of action associated with selecting the respective DropDownButton option.
|
|
29
|
+
*/
|
|
30
|
+
type: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import type { GanttComponent } from '../../gantt.component';
|
|
6
|
+
/**
|
|
7
|
+
* Triggered every time a task is clicked.
|
|
8
|
+
*/
|
|
9
|
+
export interface TaskClickEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The DOM event that triggered the `taskClick` event.
|
|
12
|
+
*/
|
|
13
|
+
originalEvent: PointerEvent | KeyboardEvent;
|
|
14
|
+
/**
|
|
15
|
+
* The data item associated with the clicked task.
|
|
16
|
+
*/
|
|
17
|
+
dataItem: any;
|
|
18
|
+
/**
|
|
19
|
+
* The Gantt component instance.
|
|
20
|
+
*/
|
|
21
|
+
sender: GanttComponent;
|
|
22
|
+
/**
|
|
23
|
+
* The order index of the clicked task, defined by the number of rendered tasks in the Timeline.
|
|
24
|
+
*/
|
|
25
|
+
index: number;
|
|
26
|
+
/**
|
|
27
|
+
* The type of the event that triggered the `taskClick` event.
|
|
28
|
+
*/
|
|
29
|
+
type: 'click' | 'contextmenu' | 'dblclick';
|
|
30
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import type { GanttComponent } from '../../gantt.component';
|
|
6
|
+
import { TaskEditItem } from './task-edit-event.interface';
|
|
7
|
+
/**
|
|
8
|
+
* The event data of the [`taskDelete`]({% slug api_gantt_ganttcomponent %}#toc-taskdelete) event.
|
|
9
|
+
*/
|
|
10
|
+
export interface TaskDeleteEvent {
|
|
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.
|
|
15
|
+
*/
|
|
16
|
+
item: TaskEditItem;
|
|
17
|
+
/**
|
|
18
|
+
* The GanttComponent instance.
|
|
19
|
+
*/
|
|
20
|
+
sender: GanttComponent;
|
|
21
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { FormGroup } from "@angular/forms";
|
|
6
|
+
import type { GanttComponent } from "../../gantt.component";
|
|
7
|
+
/**
|
|
8
|
+
* The event data for the task editing events.
|
|
9
|
+
*/
|
|
10
|
+
export interface TaskEditEvent {
|
|
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.
|
|
15
|
+
*/
|
|
16
|
+
item: TaskEditItem;
|
|
17
|
+
/**
|
|
18
|
+
* The FormGroup instance associated with the edited task.
|
|
19
|
+
*/
|
|
20
|
+
taskFormGroup?: FormGroup;
|
|
21
|
+
/**
|
|
22
|
+
* The dependencies associated with the edited task.
|
|
23
|
+
*/
|
|
24
|
+
dependencies: EditEventDependencies;
|
|
25
|
+
/**
|
|
26
|
+
* The GanttComponent instance.
|
|
27
|
+
*/
|
|
28
|
+
sender: GanttComponent;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
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.
|
|
34
|
+
*/
|
|
35
|
+
export interface TaskEditItem {
|
|
36
|
+
/**
|
|
37
|
+
* The original data item for this entry.
|
|
38
|
+
*/
|
|
39
|
+
dataItem: any;
|
|
40
|
+
/**
|
|
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`.
|
|
43
|
+
*/
|
|
44
|
+
parent?: TaskEditItem;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The `EditEventDependencies` object associated with the edited task.
|
|
48
|
+
* The created, updated and deleted items are accessible through their respective properties.
|
|
49
|
+
*/
|
|
50
|
+
export interface EditEventDependencies {
|
|
51
|
+
/**
|
|
52
|
+
* Lists the newly created dependencies.
|
|
53
|
+
*/
|
|
54
|
+
createdItems: any[];
|
|
55
|
+
/**
|
|
56
|
+
* Lists the updated dependencies.
|
|
57
|
+
*/
|
|
58
|
+
updatedItems: any[];
|
|
59
|
+
/**
|
|
60
|
+
* Lists the deleted dependencies.
|
|
61
|
+
*/
|
|
62
|
+
deletedItems: any[];
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @hidden
|
|
66
|
+
*/
|
|
67
|
+
export declare type EditResultType = 'save' | 'remove' | 'cancel';
|
|
68
|
+
/**
|
|
69
|
+
* @hidden
|
|
70
|
+
*/
|
|
71
|
+
export interface EditEvent {
|
|
72
|
+
taskFormGroup: FormGroup;
|
|
73
|
+
dataItem: any;
|
|
74
|
+
dependencies: EditEventDependencies;
|
|
75
|
+
editResultType: EditResultType;
|
|
76
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { TaskMoveEvent } from "./task-move-event.interface";
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*
|
|
9
|
+
* Fired when the user stops moving a task.
|
|
10
|
+
*/
|
|
11
|
+
export interface TaskMoveEndEvent extends TaskMoveEvent {
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*
|
|
8
|
+
* Fired when the user is moving a task.
|
|
9
|
+
*/
|
|
10
|
+
export interface TaskMoveEvent {
|
|
11
|
+
/**
|
|
12
|
+
* The task which is being moved.
|
|
13
|
+
*/
|
|
14
|
+
dataItem: any;
|
|
15
|
+
/**
|
|
16
|
+
* The current task start date.
|
|
17
|
+
*/
|
|
18
|
+
start: Date;
|
|
19
|
+
/**
|
|
20
|
+
* The current task end date.
|
|
21
|
+
*/
|
|
22
|
+
end: Date;
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*
|
|
8
|
+
* Fired when the user starts to drag a task.
|
|
9
|
+
*/
|
|
10
|
+
export interface TaskMoveStartEvent {
|
|
11
|
+
/**
|
|
12
|
+
* The task which is being moved.
|
|
13
|
+
*/
|
|
14
|
+
dataItem: any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { TaskResizeEvent } from "./task-resize-event.interface";
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*
|
|
9
|
+
* Fired when the user stops resizing a task.
|
|
10
|
+
*/
|
|
11
|
+
export interface TaskResizeEndEvent extends TaskResizeEvent {
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*
|
|
8
|
+
* Fired when the user is resizing a task.
|
|
9
|
+
*/
|
|
10
|
+
export interface TaskResizeEvent {
|
|
11
|
+
/**
|
|
12
|
+
* The task which is being resized.
|
|
13
|
+
*/
|
|
14
|
+
dataItem: any;
|
|
15
|
+
/**
|
|
16
|
+
* The current task start date.
|
|
17
|
+
*/
|
|
18
|
+
start: Date;
|
|
19
|
+
/**
|
|
20
|
+
* The current task end date.
|
|
21
|
+
*/
|
|
22
|
+
end: Date;
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*
|
|
8
|
+
* Fired when the user starts to resize a task.
|
|
9
|
+
*/
|
|
10
|
+
export interface TaskResizeStartEvent {
|
|
11
|
+
/**
|
|
12
|
+
* The task which is being resized.
|
|
13
|
+
*/
|
|
14
|
+
dataItem: any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { FilterableSettings as TreeListFilterableSettings } from '@progress/kendo-angular-treelist';
|
|
6
|
+
/**
|
|
7
|
+
* Represents the options for the `filterable` setting of the Gantt.
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export declare type FilterableSettings = TreeListFilterableSettings;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Defines the model fields that will be used for creating GanttDependency instances.
|
|
7
|
+
*
|
|
8
|
+
* > All dependency fields can be set to point to nested property values - e.g. `'category.id'`.
|
|
9
|
+
*/
|
|
10
|
+
export interface GanttDependencyModelFields {
|
|
11
|
+
/**
|
|
12
|
+
* The name of the from task id model field.
|
|
13
|
+
* Defaults to `"fromId"`.
|
|
14
|
+
*/
|
|
15
|
+
fromId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The name of the `ID` model field of the dependency item.
|
|
18
|
+
* Defaults to `"id"`.
|
|
19
|
+
*/
|
|
20
|
+
id?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The name of the to task id model field.
|
|
23
|
+
* Defaults to `"toId"`.
|
|
24
|
+
*/
|
|
25
|
+
toId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The name of the type model field.
|
|
28
|
+
* Defaults to `"type"`.
|
|
29
|
+
*/
|
|
30
|
+
type?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
export declare const DEFAULT_DEPENDENCY_MODEL_FIELDS: GanttDependencyModelFields;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { DependencyType } from './dependency-type.enum';
|
|
6
|
+
/**
|
|
7
|
+
* Represents an instance of a Gantt dependency.
|
|
8
|
+
*/
|
|
9
|
+
export interface GanttDependency {
|
|
10
|
+
/**
|
|
11
|
+
* The `id` of the origin task of this dependency.
|
|
12
|
+
*/
|
|
13
|
+
fromId: string | number;
|
|
14
|
+
/**
|
|
15
|
+
* The unique identifier of the dependency.
|
|
16
|
+
*/
|
|
17
|
+
id: string | number;
|
|
18
|
+
/**
|
|
19
|
+
* The `id` of the destination task of this dependency.
|
|
20
|
+
*/
|
|
21
|
+
toId: string | number;
|
|
22
|
+
/**
|
|
23
|
+
* The type of the dependency.
|
|
24
|
+
*/
|
|
25
|
+
type: DependencyType;
|
|
26
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Defines the model fields that will be used for creating `GanttTask` instances.
|
|
7
|
+
*
|
|
8
|
+
* > All task fields can be set to point to nested property values - e.g. `'category.id'`.
|
|
9
|
+
*/
|
|
10
|
+
export interface GanttTaskModelFields {
|
|
11
|
+
/**
|
|
12
|
+
* The name of the end date model field.
|
|
13
|
+
* Defaults to `"end"`.
|
|
14
|
+
*/
|
|
15
|
+
end?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The name of the `ID` model field.
|
|
18
|
+
* Defaults to `"id"`.
|
|
19
|
+
*/
|
|
20
|
+
id?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The name of the percent complete model field.
|
|
23
|
+
* Defaults to `"completionRatio"`.
|
|
24
|
+
*/
|
|
25
|
+
completionRatio?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The name of the start date model field.
|
|
28
|
+
* Defaults to `"start"`.
|
|
29
|
+
*/
|
|
30
|
+
start?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The name of the title model field.
|
|
33
|
+
* Used as text in the task content area.
|
|
34
|
+
* Defaults to `"title"`.
|
|
35
|
+
*/
|
|
36
|
+
title?: string;
|
|
37
|
+
children?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
*/
|
|
42
|
+
export declare const DEFAULT_TASK_MODEL_FIELDS: GanttTaskModelFields;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Represents an instance of a Gantt task.
|
|
7
|
+
*/
|
|
8
|
+
export interface GanttTask {
|
|
9
|
+
/**
|
|
10
|
+
* The date at which the Gantt task ends.
|
|
11
|
+
*/
|
|
12
|
+
end: Date;
|
|
13
|
+
/**
|
|
14
|
+
* The unique identifier of the task.
|
|
15
|
+
*/
|
|
16
|
+
id: string | number;
|
|
17
|
+
/**
|
|
18
|
+
* The completion ratio of the task. A value between 0 and 1 representing the completed portion of the task.
|
|
19
|
+
* Defaults to `0`.
|
|
20
|
+
*/
|
|
21
|
+
completionRatio?: number;
|
|
22
|
+
/**
|
|
23
|
+
* The date at which the Gantt task starts.
|
|
24
|
+
*/
|
|
25
|
+
start: Date;
|
|
26
|
+
/**
|
|
27
|
+
* The title of the task which is displayed by the Gantt component.
|
|
28
|
+
* Defaults to `""`.
|
|
29
|
+
*/
|
|
30
|
+
title?: string;
|
|
31
|
+
}
|