@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,38 @@
|
|
|
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 { GanttDependencyModelFields } from '../models/gantt-dependency-model-fields.interface';
|
|
6
|
+
import { GanttTaskModelFields } from '../models/gantt-task-model-fields.interface';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare class MappingService {
|
|
12
|
+
/**
|
|
13
|
+
* Gets or sets the model fields for the task data items.
|
|
14
|
+
* Uses the default values for fields which are not specified.
|
|
15
|
+
*/
|
|
16
|
+
set taskFields(fields: GanttTaskModelFields);
|
|
17
|
+
get taskFields(): GanttTaskModelFields;
|
|
18
|
+
/**
|
|
19
|
+
* Gets or sets the model fields for the depenency data items.
|
|
20
|
+
* Uses the default values for fields which are not specified.
|
|
21
|
+
*/
|
|
22
|
+
set dependencyFields(fields: GanttDependencyModelFields);
|
|
23
|
+
get dependencyFields(): GanttDependencyModelFields;
|
|
24
|
+
private _taskFields;
|
|
25
|
+
private _dependencyFields;
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves the value for the specified task field.
|
|
28
|
+
* Supports nested fields as well (e.g. 'manager.id').
|
|
29
|
+
*/
|
|
30
|
+
extractFromTask(dataItem: any, field: keyof GanttTaskModelFields): any;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves the value for the specified dependency field.
|
|
33
|
+
* Supports nested fields as well (e.g. 'manager.id').
|
|
34
|
+
*/
|
|
35
|
+
extractFromDependency(dataItem: any, field: keyof GanttDependencyModelFields): any;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MappingService, never>;
|
|
37
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MappingService>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { EventEmitter } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export declare class OptionChangesService {
|
|
11
|
+
readonly viewChanges: EventEmitter<any>;
|
|
12
|
+
readonly columnChanges: EventEmitter<any>;
|
|
13
|
+
notifyColumnChanges(): void;
|
|
14
|
+
notifyViewChanges(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OptionChangesService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OptionChangesService>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 { InjectionToken } from '@angular/core';
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
export declare const TOUCH_ENABLED: InjectionToken<boolean>;
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { Observable } from 'rxjs';
|
|
6
|
+
import { MappingService } from '../common/mapping.service';
|
|
7
|
+
import { DependencyDomArgs } from './dom-dependency-args';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare class DependencyDomService {
|
|
13
|
+
private mapper;
|
|
14
|
+
/**
|
|
15
|
+
* Emits each time some of the tasks or the view have changed.
|
|
16
|
+
* Fires also on the first change of the table rows and the parent container.
|
|
17
|
+
*/
|
|
18
|
+
get taskChanges(): Observable<DependencyDomArgs>;
|
|
19
|
+
get dependencyDomArgs(): DependencyDomArgs;
|
|
20
|
+
private notifier;
|
|
21
|
+
/**
|
|
22
|
+
* The row element in the Timeline part of the Gantt.
|
|
23
|
+
*/
|
|
24
|
+
private timelineRow;
|
|
25
|
+
/**
|
|
26
|
+
* Used to get retrieve the offset of the task elements relative to the parent container.
|
|
27
|
+
*/
|
|
28
|
+
private contentContainer;
|
|
29
|
+
/**
|
|
30
|
+
* Maps each rendered task to its HTML element.
|
|
31
|
+
* Uses the task ID field value as key.
|
|
32
|
+
*/
|
|
33
|
+
private tasks;
|
|
34
|
+
constructor(mapper: MappingService);
|
|
35
|
+
ngOnDestroy(): void;
|
|
36
|
+
registerTimelineRow(timelineRow: HTMLElement): void;
|
|
37
|
+
registerContentContainer(contentContainer: HTMLElement): void;
|
|
38
|
+
registerTask(task: any, element: HTMLElement): void;
|
|
39
|
+
unregisterTask(task: any): void;
|
|
40
|
+
/**
|
|
41
|
+
* Notifies all dependency directives that a change in one of the elements has occured.
|
|
42
|
+
*/
|
|
43
|
+
notifyChanges(): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DependencyDomService, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DependencyDomService>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
* The arguments emitted by the DependencyDomService `taskChanges` observable.
|
|
9
|
+
*/
|
|
10
|
+
export interface DependencyDomArgs {
|
|
11
|
+
/**
|
|
12
|
+
* Maps each rendered task to its HTML element.
|
|
13
|
+
* Uses the task ID field value as key.
|
|
14
|
+
*/
|
|
15
|
+
tasks: Map<any, HTMLElement>;
|
|
16
|
+
/**
|
|
17
|
+
* Used to retrieve the offset of the task elements relative to the parent container.
|
|
18
|
+
*/
|
|
19
|
+
contentContainer: HTMLElement;
|
|
20
|
+
/**
|
|
21
|
+
* Used to store the timeline row element for calculating the timeline row height when needed.
|
|
22
|
+
*/
|
|
23
|
+
timelineRow: HTMLElement;
|
|
24
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { ElementRef, NgZone, Renderer2, SimpleChanges } from '@angular/core';
|
|
6
|
+
import { MappingService } from '../common/mapping.service';
|
|
7
|
+
import { DependencyDomService } from './dependency-dom.service';
|
|
8
|
+
import { DependencyDomArgs } from './dom-dependency-args';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare class GanttDependencyDirective {
|
|
14
|
+
private polyline;
|
|
15
|
+
private zone;
|
|
16
|
+
private renderer;
|
|
17
|
+
private mapper;
|
|
18
|
+
private dependencyDomService;
|
|
19
|
+
dependency: any;
|
|
20
|
+
private subscriptions;
|
|
21
|
+
constructor(polyline: ElementRef<SVGPolylineElement>, zone: NgZone, renderer: Renderer2, mapper: MappingService, dependencyDomService: DependencyDomService);
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
24
|
+
updatePoints({ timelineRow, contentContainer, tasks }: DependencyDomArgs): void;
|
|
25
|
+
private clearPoints;
|
|
26
|
+
private drawPoints;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GanttDependencyDirective, never>;
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GanttDependencyDirective, "[kendoGanttDependency]", never, { "dependency": "dependency"; }, {}, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 '../models/dependency-type.enum';
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*
|
|
9
|
+
* Describes the position of a point for polyline drawing.
|
|
10
|
+
*/
|
|
11
|
+
export interface Position {
|
|
12
|
+
top: number;
|
|
13
|
+
left: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*
|
|
18
|
+
* Describes the top, left and right coordinates of an element.
|
|
19
|
+
*/
|
|
20
|
+
export interface Rectangle {
|
|
21
|
+
top: number;
|
|
22
|
+
left: number;
|
|
23
|
+
right: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*
|
|
28
|
+
* Gets the offset (top and left values) relative to a target element.
|
|
29
|
+
*/
|
|
30
|
+
export declare const getOffsetRelativeToParent: (element: HTMLElement, targetParent: HTMLElement) => Position;
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
export declare const getElementRect: (element: HTMLElement, relativeContainer: HTMLElement) => Rectangle;
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
*/
|
|
38
|
+
export declare const dependencyCoordinates: (from: Rectangle, to: Rectangle, rowHeight: number, type: DependencyType, minDistanceBeforeTurn: number, arrowSize: number) => Position[];
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
*
|
|
42
|
+
* Translates the provided client `left` and `top` coords to coords relative to the provided container.
|
|
43
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSSOM_View/Coordinate_systems#standard_cssom_coordinate_systems
|
|
44
|
+
*/
|
|
45
|
+
export declare const clientToOffsetCoords: (clientLeft: number, clientTop: number, offsetContainer: Element) => Position;
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*
|
|
49
|
+
* Retrieves the `left` and `top` values of the center of the provided element.
|
|
50
|
+
* The retrieved values are relative to the current viewport (client values).
|
|
51
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSSOM_View/Coordinate_systems#standard_cssom_coordinate_systems
|
|
52
|
+
*/
|
|
53
|
+
export declare const getElementClientCenterCoords: (element: Element) => Position;
|
|
@@ -0,0 +1,75 @@
|
|
|
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 { AfterViewInit, NgZone, OnDestroy, Renderer2 } from '@angular/core';
|
|
6
|
+
import { PopupService } from '@progress/kendo-angular-popup';
|
|
7
|
+
import { GanttComponent } from '../gantt.component';
|
|
8
|
+
import { MappingService } from '../common/mapping.service';
|
|
9
|
+
import { TimelineScrollService } from '../scrolling/timeline-scroll.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* A directive which enables the creation of new dependencies via dragging.
|
|
13
|
+
*/
|
|
14
|
+
export declare class DependencyDragCreateDirective implements AfterViewInit, OnDestroy {
|
|
15
|
+
private gantt;
|
|
16
|
+
private zone;
|
|
17
|
+
private renderer;
|
|
18
|
+
private mapper;
|
|
19
|
+
private popupService;
|
|
20
|
+
private timelineScrollService;
|
|
21
|
+
/**
|
|
22
|
+
* Specifies whether the validation tooltip will be displayed during drag operations.
|
|
23
|
+
*
|
|
24
|
+
* @default true
|
|
25
|
+
*/
|
|
26
|
+
displayValidationTooltip: boolean;
|
|
27
|
+
private get container();
|
|
28
|
+
private get polyline();
|
|
29
|
+
private get popupContainer();
|
|
30
|
+
/**
|
|
31
|
+
* Points to the drag clue where the dragging started (the FROM task).
|
|
32
|
+
* Used to attach/detach classes to the target element and its task wrapper parent element.
|
|
33
|
+
*/
|
|
34
|
+
private fromTaskClue;
|
|
35
|
+
/**
|
|
36
|
+
* The drag start element coords will be the same through the enitre dragging session, so compute them on press and cache them.
|
|
37
|
+
*/
|
|
38
|
+
private polylineStartCoords;
|
|
39
|
+
/**
|
|
40
|
+
* Stored during dragging to be consumed by the container scroll subscription.
|
|
41
|
+
* The scroll event doesn't expose the current pointer position, so it has to be stored separately.
|
|
42
|
+
*/
|
|
43
|
+
private currentPointerClientCoords;
|
|
44
|
+
private scrollListenerDisposer;
|
|
45
|
+
private dragPopup;
|
|
46
|
+
private dragSubscriptions;
|
|
47
|
+
constructor(gantt: GanttComponent, zone: NgZone, renderer: Renderer2, mapper: MappingService, popupService: PopupService, timelineScrollService: TimelineScrollService);
|
|
48
|
+
ngAfterViewInit(): void;
|
|
49
|
+
ngOnDestroy(): void;
|
|
50
|
+
private subscribeDraggable;
|
|
51
|
+
private unsubscribeDraggable;
|
|
52
|
+
private handlePress;
|
|
53
|
+
private handleDrag;
|
|
54
|
+
private handleRelease;
|
|
55
|
+
private updatePolyline;
|
|
56
|
+
private clearPolyline;
|
|
57
|
+
private assignDragStartClasses;
|
|
58
|
+
private removeDragStartClasses;
|
|
59
|
+
private scrollPointIntoView;
|
|
60
|
+
private cancelScroll;
|
|
61
|
+
private addScrollListener;
|
|
62
|
+
private removeScrollListener;
|
|
63
|
+
private openDragPopup;
|
|
64
|
+
private updateDragPopup;
|
|
65
|
+
private closeDragPopup;
|
|
66
|
+
private extractTaskName;
|
|
67
|
+
private getTooltipContext;
|
|
68
|
+
/**
|
|
69
|
+
* Restricts the popup position to not go below the scroll height or width of the container.
|
|
70
|
+
* Flips the position of the popup when there's not enough vertical space in the visible part of the container to render the popup.
|
|
71
|
+
*/
|
|
72
|
+
private normalizePopupPosition;
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DependencyDragCreateDirective, never>;
|
|
74
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DependencyDragCreateDirective, "[kendoGanttDependencyDragCreate]", never, { "displayValidationTooltip": "displayValidationTooltip"; }, {}, never>;
|
|
75
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
export declare class DragValidationTooltipComponent {
|
|
10
|
+
/**
|
|
11
|
+
* Sets the status class of the attempted operation.
|
|
12
|
+
* Note that the status will be ignored and the `neutral` status class will be rendered,
|
|
13
|
+
* if the any of the fromTaskName or toTaskName are not populated.
|
|
14
|
+
*/
|
|
15
|
+
isValid: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The name of the task where the dragging has started.
|
|
18
|
+
*/
|
|
19
|
+
fromTaskName: string;
|
|
20
|
+
/**
|
|
21
|
+
* The name of the task which is being currently hovered.
|
|
22
|
+
*/
|
|
23
|
+
toTaskName: string;
|
|
24
|
+
/**
|
|
25
|
+
* Specifies whether the valid/invalid validity classes should be rendered or not.
|
|
26
|
+
* Prevents the validity classes being rendered when e.g. the same task is hovered during drag,
|
|
27
|
+
* or when a task body is hovered and not an actual drag clue.
|
|
28
|
+
*/
|
|
29
|
+
showValidityStatus: boolean;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DragValidationTooltipComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DragValidationTooltipComponent, "ng-component", never, {}, {}, never, never>;
|
|
32
|
+
}
|
|
@@ -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 { NgZone } from '@angular/core';
|
|
6
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
+
import { PreventableEvent } from '@progress/kendo-angular-buttons';
|
|
8
|
+
import { GanttAddTaskActionItem } from '../models/events/task-add-event.interface';
|
|
9
|
+
import { EditService } from './edit.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* The UI for adding new items to the Gantt.
|
|
13
|
+
* Use it within a toolbar template to provide a custom icon or list of options.
|
|
14
|
+
*/
|
|
15
|
+
export declare class GanttAddTaskComponent {
|
|
16
|
+
private localizationService;
|
|
17
|
+
private editService;
|
|
18
|
+
private ngZone;
|
|
19
|
+
/**
|
|
20
|
+
* Sets the data of the DropDownButton.
|
|
21
|
+
* > The data has to be provided in an array-like list.
|
|
22
|
+
*/
|
|
23
|
+
data: GanttAddTaskActionItem[];
|
|
24
|
+
/**
|
|
25
|
+
* Defines the name of an existing icon in a Kendo UI theme.
|
|
26
|
+
* @default 'plus'
|
|
27
|
+
*/
|
|
28
|
+
icon: string;
|
|
29
|
+
constructor(localizationService: LocalizationService, editService: EditService, ngZone: NgZone);
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*/
|
|
33
|
+
getText(message: string): string;
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
*/
|
|
37
|
+
handleOpen(e: PreventableEvent): void;
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
handleMouseClick(): void;
|
|
42
|
+
/**
|
|
43
|
+
* @hidden
|
|
44
|
+
*/
|
|
45
|
+
handleItemClick(e: any): void;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GanttAddTaskComponent, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GanttAddTaskComponent, "kendo-gantt-add-task", never, { "data": "data"; "icon": "icon"; }, {}, never, never>;
|
|
48
|
+
}
|
|
@@ -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
|
+
import { EventEmitter } from '@angular/core';
|
|
6
|
+
import { FormArray, FormControl } from '@angular/forms';
|
|
7
|
+
import { MappingService } from '../common/mapping.service';
|
|
8
|
+
import { GanttLocalizationService } from '../localization/gantt-localization.service';
|
|
9
|
+
import { EditService } from './edit.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare class DependenciesTableComponent {
|
|
15
|
+
mapper: MappingService;
|
|
16
|
+
editService: EditService;
|
|
17
|
+
private localizationService;
|
|
18
|
+
tasks: any[];
|
|
19
|
+
dependencies: any[];
|
|
20
|
+
dependencyType: 'predecessor' | 'successor';
|
|
21
|
+
dependenciesChange: EventEmitter<any>;
|
|
22
|
+
selectedKeys: any[];
|
|
23
|
+
formGroups: FormArray;
|
|
24
|
+
dependencyTypes: {
|
|
25
|
+
type: string;
|
|
26
|
+
id: number;
|
|
27
|
+
}[];
|
|
28
|
+
get taskId(): number;
|
|
29
|
+
get dependencyIdField(): string;
|
|
30
|
+
constructor(mapper: MappingService, editService: EditService, localizationService: GanttLocalizationService);
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
getFormControl(dataItemIndex: number, field: string): FormControl;
|
|
33
|
+
getText(token: string): string;
|
|
34
|
+
getDependencyTypes(): {
|
|
35
|
+
type: string;
|
|
36
|
+
id: number;
|
|
37
|
+
}[];
|
|
38
|
+
addHandler(): void;
|
|
39
|
+
removeHandler(): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DependenciesTableComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DependenciesTableComponent, "kendo-gantt-dependencies-table", never, { "tasks": "tasks"; "dependencies": "dependencies"; "dependencyType": "dependencyType"; }, { "dependenciesChange": "dependenciesChange"; }, never, never>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { ChangeDetectorRef } from '@angular/core';
|
|
6
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
+
import { MappingService } from '../common/mapping.service';
|
|
8
|
+
import { GanttDependency } from '../models/models';
|
|
9
|
+
import { EditService } from './edit.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare class EditDialogComponent {
|
|
15
|
+
mapper: MappingService;
|
|
16
|
+
editService: EditService;
|
|
17
|
+
cdr: ChangeDetectorRef;
|
|
18
|
+
private localizationService;
|
|
19
|
+
data: any[];
|
|
20
|
+
loadedTasks: any[];
|
|
21
|
+
constructor(mapper: MappingService, editService: EditService, cdr: ChangeDetectorRef, localizationService: LocalizationService);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
get predecessors(): GanttDependency[];
|
|
24
|
+
set predecessors(items: GanttDependency[]);
|
|
25
|
+
get successors(): GanttDependency[];
|
|
26
|
+
set successors(items: GanttDependency[]);
|
|
27
|
+
getText(token: string): string;
|
|
28
|
+
getDependencyType(typeId: number): string;
|
|
29
|
+
handleEditingResult(editResultType: 'save' | 'cancel'): void;
|
|
30
|
+
handleTaskDelete(): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditDialogComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditDialogComponent, "kendo-gantt-edit-dialog", never, { "data": "data"; }, {}, never, never>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { Observable, Subject } from 'rxjs';
|
|
7
|
+
import { GanttDependency, TaskAddEvent } from '../models/models';
|
|
8
|
+
import { EditEvent, EditResultType } from '../models/events/task-edit-event.interface';
|
|
9
|
+
import { MappingService } from '../common/mapping.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare class EditService {
|
|
15
|
+
private mapper;
|
|
16
|
+
showEditingDialog: Subject<boolean>;
|
|
17
|
+
taskDelete: Subject<object>;
|
|
18
|
+
editEvent: Subject<EditEvent>;
|
|
19
|
+
addEvent: Subject<TaskAddEvent>;
|
|
20
|
+
taskFormGroup: FormGroup;
|
|
21
|
+
dataItem: any;
|
|
22
|
+
getSelectedItem: () => any;
|
|
23
|
+
hasChildren: (node: any) => boolean;
|
|
24
|
+
fetchChildren: (node: any) => Observable<any[]> | any[];
|
|
25
|
+
set dependencies(items: any[]);
|
|
26
|
+
get dependencies(): any[];
|
|
27
|
+
predecessors: GanttDependency[];
|
|
28
|
+
successors: GanttDependency[];
|
|
29
|
+
updatedItems: any[];
|
|
30
|
+
deletedItems: any[];
|
|
31
|
+
constructor(mapper: MappingService);
|
|
32
|
+
createEditDialog(dataItem: any, taskFormGroup: FormGroup, dependencies: any[]): void;
|
|
33
|
+
closeEditDialog(): void;
|
|
34
|
+
triggerEditEvent(editResultType: EditResultType): void;
|
|
35
|
+
updateDependencies(item: GanttDependency): void;
|
|
36
|
+
getCreatedDependencies(): any[];
|
|
37
|
+
deleteDependency(item: GanttDependency): void;
|
|
38
|
+
loadTasks(initialValues: any[], isInitializer?: boolean): Observable<any[]>;
|
|
39
|
+
private getElementById;
|
|
40
|
+
private itemIndex;
|
|
41
|
+
private isNew;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditService, never>;
|
|
43
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EditService>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { MappingService } from '../common/mapping.service';
|
|
7
|
+
import { GanttLocalizationService } from '../localization/gantt-localization.service';
|
|
8
|
+
import { EditService } from './edit.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare class TaskFieldsComponent {
|
|
14
|
+
mapper: MappingService;
|
|
15
|
+
private editService;
|
|
16
|
+
private localizationService;
|
|
17
|
+
constructor(mapper: MappingService, editService: EditService, localizationService: GanttLocalizationService);
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
get formGroup(): FormGroup;
|
|
22
|
+
getText(token: string): string;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaskFieldsComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TaskFieldsComponent, "kendo-gantt-task-fields", never, {}, {}, never, never>;
|
|
25
|
+
}
|
|
@@ -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 { MappingService } from '../common/mapping.service';
|
|
6
|
+
import { TaskEditItem } from '../models/events/task-edit-event.interface';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export declare const getEditItem: (dataItem: any, data: any[], mapper: MappingService) => TaskEditItem;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { Directive, Input } from '@angular/core';
|
|
6
|
+
import { FlatBindingDirective } from '@progress/kendo-angular-treelist';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* A directive which binds the Gantt to an array of objects by using
|
|
10
|
+
* an ID and parent ID field to define the hierarchy.
|
|
11
|
+
*
|
|
12
|
+
* The directive encapsulates the in-memory handling of data operations such as sorting and filtering.
|
|
13
|
+
*/
|
|
14
|
+
export class GanttFlatBindingDirective extends FlatBindingDirective {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
/**
|
|
18
|
+
* The array of data which will be used to populate the Gantt.
|
|
19
|
+
*/
|
|
20
|
+
this.data = [];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
GanttFlatBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GanttFlatBindingDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
24
|
+
GanttFlatBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: GanttFlatBindingDirective, selector: "[kendoGanttFlatBinding]", inputs: { data: ["kendoGanttFlatBinding", "data"] }, exportAs: ["kendoGanttFlatBinding"], usesInheritance: true, ngImport: i0 });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GanttFlatBindingDirective, decorators: [{
|
|
26
|
+
type: Directive,
|
|
27
|
+
args: [{
|
|
28
|
+
selector: '[kendoGanttFlatBinding]',
|
|
29
|
+
exportAs: 'kendoGanttFlatBinding'
|
|
30
|
+
}]
|
|
31
|
+
}], propDecorators: { data: [{
|
|
32
|
+
type: Input,
|
|
33
|
+
args: ['kendoGanttFlatBinding']
|
|
34
|
+
}] } });
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { Directive, Input } from '@angular/core';
|
|
6
|
+
import { HierarchyBindingDirective } from '@progress/kendo-angular-treelist';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* A directive which binds the Gantt to a tree of objects,
|
|
10
|
+
* which encapsulates the in-memory handling of data operations such as sorting and filtering.
|
|
11
|
+
*/
|
|
12
|
+
export class GanttHierarchyBindingDirective extends HierarchyBindingDirective {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
/**
|
|
16
|
+
* The array of data which will be used to populate the Gantt.
|
|
17
|
+
*/
|
|
18
|
+
this.data = [];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
GanttHierarchyBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GanttHierarchyBindingDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
22
|
+
GanttHierarchyBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: GanttHierarchyBindingDirective, selector: "[kendoGanttHierarchyBinding]", inputs: { data: ["kendoGanttHierarchyBinding", "data"] }, exportAs: ["kendoGanttHierarchyBinding"], usesInheritance: true, ngImport: i0 });
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GanttHierarchyBindingDirective, decorators: [{
|
|
24
|
+
type: Directive,
|
|
25
|
+
args: [{
|
|
26
|
+
selector: '[kendoGanttHierarchyBinding]',
|
|
27
|
+
exportAs: 'kendoGanttHierarchyBinding'
|
|
28
|
+
}]
|
|
29
|
+
}], propDecorators: { data: [{
|
|
30
|
+
type: Input,
|
|
31
|
+
args: ['kendoGanttHierarchyBinding']
|
|
32
|
+
}] } });
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { Directive, Optional } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Represents the column cell template of the Gantt.
|
|
9
|
+
* Helps to customize the content of the cells. To define the cell template, nest an `<ng-template>` tag
|
|
10
|
+
* with the `kendoGanttCellTemplate` directive inside the respective column tag.
|
|
11
|
+
*
|
|
12
|
+
* The template context is set to the current data item and the following additional fields are passed:
|
|
13
|
+
* - `dataItem`—The current data item. Represents the default context that will be assigned to any template variable which utilizes the `let-x` syntax—for example, `let-dataItem`.
|
|
14
|
+
* - `columnIndex`—The current column index. Use it as an alias for a template variable by utilizing the `let-columnIndex="columnIndex"` syntax.
|
|
15
|
+
* - `column`—The current column instance. Use it as an alias for a template variable by utilizing the `let-column="column"` syntax.
|
|
16
|
+
* - `cellContext`—An object used to pass context information to built-in directives.
|
|
17
|
+
* - `hasChildren`—Specifies if the item has children.
|
|
18
|
+
* - `isExpanded`—Specifies if the item is expanded.
|
|
19
|
+
* - `level`—The hierarchy level of the item.
|
|
20
|
+
* - `loading`—Specifies if the item children are currently loading.
|
|
21
|
+
* - `rowIndex`—The current row index. Use it as an alias for a template variable by utilizing the `let-rowIndex="rowIndex"` syntax.
|
|
22
|
+
*/
|
|
23
|
+
export class CellTemplateDirective {
|
|
24
|
+
constructor(templateRef) {
|
|
25
|
+
this.templateRef = templateRef;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
CellTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CellTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
29
|
+
CellTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: CellTemplateDirective, selector: "[kendoGanttCellTemplate]", ngImport: i0 });
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CellTemplateDirective, decorators: [{
|
|
31
|
+
type: Directive,
|
|
32
|
+
args: [{
|
|
33
|
+
selector: '[kendoGanttCellTemplate]'
|
|
34
|
+
}]
|
|
35
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
36
|
+
type: Optional
|
|
37
|
+
}] }]; } });
|