@progress/kendo-angular-gantt 2.0.0-next.202204011501 → 2.0.0-next.202204121507
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 +47 -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 +2227 -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 +9 -13
- 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,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 { ChangeDetectorRef, TemplateRef } from '@angular/core';
|
|
6
|
+
import { MappingService } from '../common/mapping.service';
|
|
7
|
+
import { NavigationService } from '../navigation/navigation.service';
|
|
8
|
+
import { EditService } from '../editing/edit.service';
|
|
9
|
+
import { DependencyDomService } from '../dependencies/dependency-dom.service';
|
|
10
|
+
import { OptionChangesService } from '../common/option-changes.service';
|
|
11
|
+
import { TimelineViewService } from './../timeline/timeline-view.service';
|
|
12
|
+
import { GanttTaskBase } from './gantt-task-base';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export declare class GanttTaskComponent extends GanttTaskBase {
|
|
18
|
+
private editService;
|
|
19
|
+
touchEnabled: boolean;
|
|
20
|
+
taskContentTemplate: TemplateRef<any>;
|
|
21
|
+
taskTemplate: TemplateRef<any>;
|
|
22
|
+
constructor(editService: EditService, touchEnabled: boolean, mapper: MappingService, timelineViewService: TimelineViewService, dependencyDomService: DependencyDomService, optionChangesService: OptionChangesService, cdr: ChangeDetectorRef, navigationService: NavigationService);
|
|
23
|
+
onTaskDelete(): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GanttTaskComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GanttTaskComponent, "kendo-gantt-task", never, { "taskContentTemplate": "taskContentTemplate"; "taskTemplate": "taskTemplate"; }, {}, never, never>;
|
|
26
|
+
}
|
|
@@ -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 { TemplateRef, ElementRef } from '@angular/core';
|
|
6
|
+
import { TaskClassFn } from '../models/class-callbacks';
|
|
7
|
+
import { TimelineViewType } from '../models/timeline-view';
|
|
8
|
+
import { DependencyDomService } from '../dependencies/dependency-dom.service';
|
|
9
|
+
import { MappingService } from '../common/mapping.service';
|
|
10
|
+
import { ViewItem } from '../models/view-item.interface';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare class GanttTasksTableBodyComponent {
|
|
16
|
+
private dependencyDomService;
|
|
17
|
+
private mapper;
|
|
18
|
+
set timelineRow(timelineRow: ElementRef<HTMLTableRowElement>);
|
|
19
|
+
selectable: boolean;
|
|
20
|
+
rows: ViewItem[];
|
|
21
|
+
activeView: TimelineViewType;
|
|
22
|
+
taskContentTemplate: TemplateRef<any>;
|
|
23
|
+
taskTemplate: TemplateRef<any>;
|
|
24
|
+
summaryTaskTemplate: TemplateRef<any>;
|
|
25
|
+
taskClass: TaskClassFn;
|
|
26
|
+
isExpanded: (item: object) => boolean;
|
|
27
|
+
isTaskSelected: (item: object) => boolean;
|
|
28
|
+
renderDependencyDragClues: boolean;
|
|
29
|
+
constructor(dependencyDomService: DependencyDomService, mapper: MappingService);
|
|
30
|
+
isMileStone(item: ViewItem): boolean;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GanttTasksTableBodyComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GanttTasksTableBodyComponent, "[kendoGanttTasksTableBody]", never, { "selectable": "selectable"; "rows": "rows"; "activeView": "activeView"; "taskContentTemplate": "taskContentTemplate"; "taskTemplate": "taskTemplate"; "summaryTaskTemplate": "summaryTaskTemplate"; "taskClass": "taskClass"; "isExpanded": "isExpanded"; "isTaskSelected": "isTaskSelected"; "renderDependencyDragClues": "renderDependencyDragClues"; }, {}, never, never>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
* Specifies the settings for auto-scrolling during drag editing operations.
|
|
7
|
+
*/
|
|
8
|
+
export interface DragScrollSettings {
|
|
9
|
+
/**
|
|
10
|
+
* Specifies whether auto-scrolling during drag editing operations is enabled.
|
|
11
|
+
*
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
14
|
+
enabled?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the scrolling step in pixels.
|
|
17
|
+
*
|
|
18
|
+
* @default: 3
|
|
19
|
+
*/
|
|
20
|
+
step?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Specifies the scrolling interval in milliseconds.
|
|
23
|
+
*
|
|
24
|
+
* @default: 1
|
|
25
|
+
*/
|
|
26
|
+
interval?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the threshold (in pixels) at each end of the scrollable container which when reached will trigger scrolling.
|
|
29
|
+
*
|
|
30
|
+
* @default: 10
|
|
31
|
+
*/
|
|
32
|
+
threshold?: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
*/
|
|
37
|
+
export declare enum ScrollDirection {
|
|
38
|
+
Backwards = -1,
|
|
39
|
+
Forward = 1
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
export declare enum ScrollAxis {
|
|
45
|
+
Vertical = "scrollTop",
|
|
46
|
+
Horizontal = "scrollLeft"
|
|
47
|
+
}
|
|
@@ -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 { NgZone, OnDestroy } from '@angular/core';
|
|
6
|
+
import { Subject } from 'rxjs';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
declare type ScrollSyncEvent = {
|
|
9
|
+
scrollLeft?: number;
|
|
10
|
+
scrollTop?: number;
|
|
11
|
+
sourceType: string;
|
|
12
|
+
};
|
|
13
|
+
declare type SourceType = 'treelist' | 'header' | 'timeline';
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export declare class ScrollSyncService implements OnDestroy {
|
|
18
|
+
private ngZone;
|
|
19
|
+
changes: Subject<ScrollSyncEvent>;
|
|
20
|
+
private elements;
|
|
21
|
+
private subscriptions;
|
|
22
|
+
private syncingTimeline;
|
|
23
|
+
private syncingTreeList;
|
|
24
|
+
constructor(ngZone: NgZone);
|
|
25
|
+
registerElement(el: any, sourceType: SourceType): void;
|
|
26
|
+
ngOnDestroy(): void;
|
|
27
|
+
syncScrollTop(sourceType: SourceType, targetType: SourceType): void;
|
|
28
|
+
resetTimelineScrollLeft(): void;
|
|
29
|
+
private scroll;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollSyncService, never>;
|
|
31
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ScrollSyncService>;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
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 } from '@angular/core';
|
|
6
|
+
import { DragScrollSettings } from './drag-scroll-settings';
|
|
7
|
+
import { TimelineScrollService } from './timeline-scroll.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare class TimelineScrollableDirective {
|
|
13
|
+
private timelineScrollableContainer;
|
|
14
|
+
private scrollService;
|
|
15
|
+
private zone;
|
|
16
|
+
scrollSettings: DragScrollSettings;
|
|
17
|
+
private subscriptions;
|
|
18
|
+
private verticalScrollInterval;
|
|
19
|
+
private horizontalScrollInterval;
|
|
20
|
+
constructor(timelineScrollableContainer: ElementRef<Element>, scrollService: TimelineScrollService, zone: NgZone);
|
|
21
|
+
ngOnDestroy(): void;
|
|
22
|
+
private scrollHorizontallyTo;
|
|
23
|
+
private scrollVerticallyTo;
|
|
24
|
+
private cancelScroll;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineScrollableDirective, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TimelineScrollableDirective, "[kendoGanttTimelineScrollable]", never, { "scrollSettings": "scrollSettings"; }, {}, never>;
|
|
27
|
+
}
|
|
@@ -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
|
+
import { Subject } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*
|
|
10
|
+
* Notifies the timeline-scroll.directive to scroll into view to requested coordinates.
|
|
11
|
+
* The scrolling is performed based on client (viewport) coordinates.
|
|
12
|
+
*/
|
|
13
|
+
export declare class TimelineScrollService {
|
|
14
|
+
readonly horizontalScroll: Subject<number>;
|
|
15
|
+
readonly verticalScroll: Subject<number>;
|
|
16
|
+
readonly scrollCancel: Subject<any>;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
requestHorizontalScroll(clientTop: number): void;
|
|
19
|
+
requestVerticalScroll(clientLeft: number): void;
|
|
20
|
+
requestScrollCancel(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineScrollService, never>;
|
|
22
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TimelineScrollService>;
|
|
23
|
+
}
|
|
@@ -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 { ScrollAxis, ScrollDirection } from './drag-scroll-settings';
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*
|
|
9
|
+
* Scrolls the element in the given direction by the provided step in the provided scroll axis.
|
|
10
|
+
*
|
|
11
|
+
* If the targeted scroll incrementation doesn't yield any result due to device pixel ratio issues (https://github.com/dimitar-pechev/RenderingIndependentScrollOffsets#readme),
|
|
12
|
+
* increments the step with 1px and again attempts to change the scrollTop of the element, until the content is actually scrolled.
|
|
13
|
+
*
|
|
14
|
+
* Cuts the operation short after 20 unsuccessful attempts to prevent infinite loops in possible corner-case scenarios.
|
|
15
|
+
*/
|
|
16
|
+
export declare const scrollElement: (element: Element, step: number, direction: ScrollDirection, scrollAxis: ScrollAxis) => void;
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*
|
|
20
|
+
* As client coordinates are not restricted to the range 0px - {viewportSize}px, but can have negative starting values or ending values greater than the viewport size,
|
|
21
|
+
* this function extracts the visible boundaries of the provided element - fall-backing to 0 when the top/left are below 0,
|
|
22
|
+
* and fall-backing to the actual visible size of the container for bottom/right.
|
|
23
|
+
*/
|
|
24
|
+
export declare const getViewportBoundaries: (element: Element) => {
|
|
25
|
+
top: number;
|
|
26
|
+
left: number;
|
|
27
|
+
right: number;
|
|
28
|
+
bottom: number;
|
|
29
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { OnDestroy, EventEmitter } from '@angular/core';
|
|
6
|
+
import { GanttComponent } from '../gantt.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* A directive which handles the [`selectionChange`]({% slug api_gantt_ganttcomponent %}#toc-selectionchange) event of the Gantt
|
|
10
|
+
* ([see example]({% slug selection_gantt %}#toc-built-in-directive))
|
|
11
|
+
*/
|
|
12
|
+
export declare class SelectableDirective implements OnDestroy {
|
|
13
|
+
private gantt;
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
set selectable(value: boolean);
|
|
18
|
+
/**
|
|
19
|
+
* Sets the selected keys.
|
|
20
|
+
*/
|
|
21
|
+
set selectedKeys(value: any[]);
|
|
22
|
+
/**
|
|
23
|
+
* Fires when the selected keys are changed.
|
|
24
|
+
*/
|
|
25
|
+
selectedKeysChange: EventEmitter<any[]>;
|
|
26
|
+
/**
|
|
27
|
+
* The field name or a function that specifies the data item unique key identifier.
|
|
28
|
+
* By default, the string field `id` is used.
|
|
29
|
+
*/
|
|
30
|
+
set itemKey(value: string | ((dataItem: any) => any));
|
|
31
|
+
private get keyGetter();
|
|
32
|
+
private selectionSubscription;
|
|
33
|
+
private state;
|
|
34
|
+
private lastChange;
|
|
35
|
+
private _keyGetter;
|
|
36
|
+
constructor(gantt: GanttComponent);
|
|
37
|
+
ngOnDestroy(): void;
|
|
38
|
+
private isSelected;
|
|
39
|
+
private selectionChange;
|
|
40
|
+
private emitSelectedItemsChange;
|
|
41
|
+
private subscribeSelection;
|
|
42
|
+
private unsubscribeSelection;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectableDirective, never>;
|
|
44
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectableDirective, "[kendoGanttSelectable]", ["kendoGanttSelectable"], { "selectable": "selectable"; "selectedKeys": "selectedKeys"; "itemKey": "itemKey"; }, { "selectedKeysChange": "selectedKeysChange"; }, never>;
|
|
45
|
+
}
|
|
@@ -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 { GanttComponent } from '../gantt.component';
|
|
6
|
+
/**
|
|
7
|
+
* Arguments for the Gantt [`selectionChange`]({% slug api_gantt_ganttcomponent %}#toc-selectionchange) event.
|
|
8
|
+
*/
|
|
9
|
+
export interface SelectionChangeEvent {
|
|
10
|
+
/**
|
|
11
|
+
* Specifies how was the selection changed.
|
|
12
|
+
*
|
|
13
|
+
* - `select` - All specified `items` should be selected, all other persisted ones should be removed.
|
|
14
|
+
* - `remove` - Only the specified `items` should be removed, all others should be left untouched.
|
|
15
|
+
*/
|
|
16
|
+
action: 'select' | 'remove';
|
|
17
|
+
/**
|
|
18
|
+
* Specifies which items were changed.
|
|
19
|
+
*/
|
|
20
|
+
items: any[];
|
|
21
|
+
/**
|
|
22
|
+
* The Gantt component that triggered the event.
|
|
23
|
+
*/
|
|
24
|
+
sender: GanttComponent;
|
|
25
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Represents a template that defines the whole content of the summary task component.
|
|
9
|
+
* To define the template, nest an `<ng-template>` tag
|
|
10
|
+
* with the `kendoGanttSummaryTaskTemplate` directive inside the `<kendo-gantt>` tag.
|
|
11
|
+
*
|
|
12
|
+
* The template context is set to the current data item. The following additional field is passed:
|
|
13
|
+
* - `elementWidth`—The current summary task wrapper element's calculated width in pixels based on its start and end date.
|
|
14
|
+
* Use it as an alias for a template variable by utilizing the `let-elementWidth="elementWidth"` syntax.
|
|
15
|
+
* Useful for calculations related to rendering custom elements representing the task progress.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts-preview
|
|
19
|
+
* _@Component({
|
|
20
|
+
* selector: 'my-app',
|
|
21
|
+
* template: `
|
|
22
|
+
* <kendo-gantt [kendoGanttHierarchyBinding]="data">
|
|
23
|
+
* <ng-template kendoGanttSummaryTaskTemplate let-dataItem let-elementWidth="elementWidth">
|
|
24
|
+
* <div style="color: white; font-size: 8px;">
|
|
25
|
+
* {{ dataItem.title }} - {{ dataItem.completionRatio * 100 }}% complete; width: {{ elementWidth }}
|
|
26
|
+
* </div>
|
|
27
|
+
* </ng-template>
|
|
28
|
+
* </kendo-gantt>
|
|
29
|
+
* `
|
|
30
|
+
* })
|
|
31
|
+
* class AppComponent {
|
|
32
|
+
* public data: any[] = sampleTasks;
|
|
33
|
+
* }
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare class GanttSummaryTaskTemplateDirective {
|
|
37
|
+
templateRef: TemplateRef<any>;
|
|
38
|
+
constructor(templateRef: TemplateRef<any>);
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GanttSummaryTaskTemplateDirective, [{ optional: true; }]>;
|
|
40
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GanttSummaryTaskTemplateDirective, "[kendoGanttSummaryTaskTemplate]", never, {}, {}, never>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Represents a template that defines the text content section of the task component.
|
|
9
|
+
* To define the template, nest an `<ng-template>` tag
|
|
10
|
+
* with the `kendoGanttTaskContentTemplate` directive inside the `<kendo-gantt>` tag.
|
|
11
|
+
*
|
|
12
|
+
* The template context is set to the current data item.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts-preview
|
|
16
|
+
* _@Component({
|
|
17
|
+
* selector: 'my-app',
|
|
18
|
+
* template: `
|
|
19
|
+
* <kendo-gantt [kendoGanttHierarchyBinding]="data">
|
|
20
|
+
* <ng-template kendoGanttTaskContentTemplate let-dataItem>
|
|
21
|
+
* {{ dataItem.title }} - {{ dataItem.completionRatio * 100 }}% complete
|
|
22
|
+
* </ng-template>
|
|
23
|
+
* </kendo-gantt>
|
|
24
|
+
* `
|
|
25
|
+
* })
|
|
26
|
+
* class AppComponent {
|
|
27
|
+
* public data: any[] = sampleTasks;
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare class GanttTaskContentTemplateDirective {
|
|
32
|
+
templateRef: TemplateRef<any>;
|
|
33
|
+
constructor(templateRef: TemplateRef<any>);
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GanttTaskContentTemplateDirective, [{ optional: true; }]>;
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GanttTaskContentTemplateDirective, "[kendoGanttTaskContentTemplate]", never, {}, {}, never>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Represents a template that defines the whole content of the task component.
|
|
9
|
+
* To define the template, nest an `<ng-template>` tag
|
|
10
|
+
* with the `kendoGanttTaskTemplate` directive inside the `<kendo-gantt>` tag.
|
|
11
|
+
*
|
|
12
|
+
* The template context is set to the current data item. The following additional field is passed:
|
|
13
|
+
* - `elementWidth`—The current task wrapper element's calculated width in pixels based on its start and end date.
|
|
14
|
+
* Use it as an alias for a template variable by utilizing the `let-elementWidth="elementWidth"` syntax.
|
|
15
|
+
* Useful for calculations related to rendering custom elements representing the task progress.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts-preview
|
|
19
|
+
* _@Component({
|
|
20
|
+
* selector: 'my-app',
|
|
21
|
+
* template: `
|
|
22
|
+
* <kendo-gantt [kendoGanttHierarchyBinding]="data">
|
|
23
|
+
* <ng-template kendoGanttTaskTemplate let-dataItem let-elementWidth="elementWidth">
|
|
24
|
+
* {{ dataItem.title }} - {{ dataItem.completionRatio * 100 }}% complete
|
|
25
|
+
* </ng-template>
|
|
26
|
+
* </kendo-gantt>
|
|
27
|
+
* `
|
|
28
|
+
* })
|
|
29
|
+
* class AppComponent {
|
|
30
|
+
* public data: any[] = sampleTasks;
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare class GanttTaskTemplateDirective {
|
|
35
|
+
templateRef: TemplateRef<any>;
|
|
36
|
+
constructor(templateRef: TemplateRef<any>);
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GanttTaskTemplateDirective, [{ optional: true; }]>;
|
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GanttTaskTemplateDirective, "[kendoGanttTaskTemplate]", never, {}, {}, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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, ElementRef, EventEmitter, NgZone, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
6
|
+
import { ScrollSyncService } from '../scrolling/scroll-sync.service';
|
|
7
|
+
import { DependencyDomService } from '../dependencies/dependency-dom.service';
|
|
8
|
+
import { ViewItem } from '../models/view-item.interface';
|
|
9
|
+
import { TimelineViewType, TaskClassFn, DragScrollSettings } from '../models/models';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare class GanttTimelineComponent implements AfterViewInit {
|
|
15
|
+
private scrollSyncService;
|
|
16
|
+
private dependencyDomService;
|
|
17
|
+
private renderer;
|
|
18
|
+
private zone;
|
|
19
|
+
/**
|
|
20
|
+
* Represents the scrollable container of the timeline content.
|
|
21
|
+
* Used externally by the DependencyDragCreateDirective.
|
|
22
|
+
*/
|
|
23
|
+
timelineContent: ElementRef<HTMLElement>;
|
|
24
|
+
timelineColumns: ElementRef<HTMLElement>;
|
|
25
|
+
timelineHeaderWrap: ElementRef<HTMLElement>;
|
|
26
|
+
tasksContainer: ElementRef<HTMLElement>;
|
|
27
|
+
/**
|
|
28
|
+
* Represents the view container ref used for rendering the dependency drag popop.
|
|
29
|
+
* Used externally by the DependencyDragCreateDirective.
|
|
30
|
+
*/
|
|
31
|
+
dragPopupContainer: ViewContainerRef;
|
|
32
|
+
/**
|
|
33
|
+
* Represents the polyline element used for rendering the dependency drag editing interaction.
|
|
34
|
+
* Used externally by the DependencyDragCreateDirective.
|
|
35
|
+
*/
|
|
36
|
+
dependencyDragCreatePolyline: ElementRef<SVGPolylineElement>;
|
|
37
|
+
hostClass: boolean;
|
|
38
|
+
rows: ViewItem[];
|
|
39
|
+
slots: any[];
|
|
40
|
+
groupSlots: any[];
|
|
41
|
+
tableWidth: number;
|
|
42
|
+
activeView: TimelineViewType;
|
|
43
|
+
taskContentTemplate: TemplateRef<any>;
|
|
44
|
+
taskTemplate: TemplateRef<any>;
|
|
45
|
+
summaryTaskTemplate: TemplateRef<any>;
|
|
46
|
+
taskClass: TaskClassFn;
|
|
47
|
+
renderDependencyDragClues: boolean;
|
|
48
|
+
dragScrollSettings: DragScrollSettings;
|
|
49
|
+
selectable: boolean;
|
|
50
|
+
isTaskSelected: (item: object) => boolean;
|
|
51
|
+
isExpanded: (item: object) => boolean;
|
|
52
|
+
dependencies: any[];
|
|
53
|
+
timelineContainerPress: EventEmitter<any>;
|
|
54
|
+
timelineContainerDrag: EventEmitter<any>;
|
|
55
|
+
timelineContainerRelease: EventEmitter<any>;
|
|
56
|
+
/**
|
|
57
|
+
* Specifies whether the draggable will attach or detach its pointer event listeners.
|
|
58
|
+
*/
|
|
59
|
+
get draggableEnabled(): boolean;
|
|
60
|
+
private subscriptions;
|
|
61
|
+
constructor(scrollSyncService: ScrollSyncService, dependencyDomService: DependencyDomService, renderer: Renderer2, zone: NgZone);
|
|
62
|
+
ngAfterViewInit(): void;
|
|
63
|
+
ngOnDestroy(): void;
|
|
64
|
+
isNonWorking(item: any): boolean;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GanttTimelineComponent, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GanttTimelineComponent, "kendo-gantt-timeline", never, { "rows": "rows"; "slots": "slots"; "groupSlots": "groupSlots"; "tableWidth": "tableWidth"; "activeView": "activeView"; "taskContentTemplate": "taskContentTemplate"; "taskTemplate": "taskTemplate"; "summaryTaskTemplate": "summaryTaskTemplate"; "taskClass": "taskClass"; "renderDependencyDragClues": "renderDependencyDragClues"; "dragScrollSettings": "dragScrollSettings"; "selectable": "selectable"; "isTaskSelected": "isTaskSelected"; "isExpanded": "isExpanded"; "dependencies": "dependencies"; }, { "timelineContainerPress": "timelineContainerPress"; "timelineContainerDrag": "timelineContainerDrag"; "timelineContainerRelease": "timelineContainerRelease"; }, never, never>;
|
|
67
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 { IntlService } from '@progress/kendo-angular-intl';
|
|
6
|
+
import { MappingService } from '../common/mapping.service';
|
|
7
|
+
import { TimelineOptions } from '../models/timeline-options.interface';
|
|
8
|
+
import { DateRange } from '../models/date-range.interface';
|
|
9
|
+
import { Slot } from '../models/slot.interface';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare const DAY_FORMAT = "E d/MM";
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export declare const HOUR_FORMAT = "HH:mm aa";
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export declare const MONTH_FORMAT = "MMM";
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
export declare abstract class TimelineBaseViewService {
|
|
26
|
+
protected intlService: IntlService;
|
|
27
|
+
protected mapper: MappingService;
|
|
28
|
+
options: TimelineOptions;
|
|
29
|
+
private _viewStart;
|
|
30
|
+
constructor(intlService: IntlService, mapper: MappingService);
|
|
31
|
+
get viewStart(): number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @param tasks - The tasks which are going to be rendered in the table
|
|
35
|
+
* @returns {number}
|
|
36
|
+
*/
|
|
37
|
+
abstract getSlots(tasks: any[]): Array<Slot[]>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @param tasks - The tasks which are going to be rendered in the table
|
|
41
|
+
* @returns {Array<Object>} - A collection containing the day and hours slots
|
|
42
|
+
* Used to render the number of columns and the header
|
|
43
|
+
*/
|
|
44
|
+
abstract getTableWidth(tasks: any[]): number;
|
|
45
|
+
/**
|
|
46
|
+
* Gets the date which will be used for the first slot.
|
|
47
|
+
* The first slot should not be the range start - it might not leave space for dependency connections drawn on the left.
|
|
48
|
+
*/
|
|
49
|
+
abstract getStartOffset(rangeStart: Date): Date;
|
|
50
|
+
/**
|
|
51
|
+
* Gets the date which will be used for the last slot.
|
|
52
|
+
* The last slot should not be the range end - it might not leave space for dependency connections drawn on the right.
|
|
53
|
+
*/
|
|
54
|
+
abstract getEndOffset(rangeEnd: Date): Date;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @param tasks - The tasks which are going to be rendered in the table
|
|
58
|
+
* @returns {Object} - An object containing the range start and end dates
|
|
59
|
+
*/
|
|
60
|
+
protected getRange(tasks: any): DateRange;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @param start - The tasks' range start date
|
|
64
|
+
* @param end - The tasks' range end date
|
|
65
|
+
* @returns {Array<Object>} - A collection containing the hour slots
|
|
66
|
+
*/
|
|
67
|
+
protected getHours(start: any, end: any): Array<Slot>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @param start - The tasks' range start date
|
|
71
|
+
* @param end - The tasks' range end date
|
|
72
|
+
* @returns {Array<Object>} - A collection containing the day slots
|
|
73
|
+
*/
|
|
74
|
+
protected getDays(start: any, end: any): Array<Slot>;
|
|
75
|
+
protected getWeeks(start: any, end: any): Array<Slot>;
|
|
76
|
+
protected getMonths(start: any, end: any): Array<Slot>;
|
|
77
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { DependencyDomService } from '../dependencies/dependency-dom.service';
|
|
6
|
+
import { TimelineViewType } from '../models/timeline-view';
|
|
7
|
+
import { ViewBase } from './view-base';
|
|
8
|
+
import { OptionChangesService } from '../common/option-changes.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class TimelineDayViewComponent extends ViewBase {
|
|
11
|
+
/**
|
|
12
|
+
* The type for this view (`day`).
|
|
13
|
+
*/
|
|
14
|
+
readonly type: TimelineViewType;
|
|
15
|
+
constructor(optionChangesService: OptionChangesService, dependencyDomService: DependencyDomService);
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineDayViewComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimelineDayViewComponent, "kendo-gantt-timeline-day-view", never, {}, {}, never, never>;
|
|
18
|
+
}
|
|
@@ -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 { IntlService } from '@progress/kendo-angular-intl';
|
|
6
|
+
import { TimelineBaseViewService } from './timeline-base-view.service';
|
|
7
|
+
import { MappingService } from '../common/mapping.service';
|
|
8
|
+
import { Slot } from '../models/slot.interface';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare class TimelineDayViewService extends TimelineBaseViewService {
|
|
14
|
+
constructor(intlService: IntlService, mapper: MappingService);
|
|
15
|
+
/**
|
|
16
|
+
* Gets a date an hour before the first task start with minutes, seconds, milliseconds cleared.
|
|
17
|
+
*/
|
|
18
|
+
getStartOffset(rangeStart: Date): Date;
|
|
19
|
+
/**
|
|
20
|
+
* Gets a date an hour after the last task end with minutes, seconds, milliseconds cleared.
|
|
21
|
+
*/
|
|
22
|
+
getEndOffset(rangeEnd: Date): Date;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @param tasks - The tasks which are going to be rendered in the table
|
|
26
|
+
* @returns {number}
|
|
27
|
+
*/
|
|
28
|
+
getTableWidth(tasks: any[]): number;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param tasks - The tasks which are going to be rendered in the table
|
|
32
|
+
* @returns {Array<Object>} - A collection containing the day and hours slots
|
|
33
|
+
* Used to render the number of columns and the header
|
|
34
|
+
*/
|
|
35
|
+
getSlots(tasks: any[]): Array<Slot[]>;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineDayViewService, never>;
|
|
37
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TimelineDayViewService>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { DependencyDomService } from '../dependencies/dependency-dom.service';
|
|
6
|
+
import { TimelineViewType } from '../models/timeline-view';
|
|
7
|
+
import { ViewBase } from './view-base';
|
|
8
|
+
import { OptionChangesService } from '../common/option-changes.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class TimelineMonthViewComponent extends ViewBase {
|
|
11
|
+
/**
|
|
12
|
+
* The type for this view (`month`).
|
|
13
|
+
*/
|
|
14
|
+
readonly type: TimelineViewType;
|
|
15
|
+
constructor(optionChangesService: OptionChangesService, dependencyDomService: DependencyDomService);
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineMonthViewComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimelineMonthViewComponent, "kendo-gantt-timeline-month-view", never, {}, {}, never, never>;
|
|
18
|
+
}
|