@progress/kendo-angular-gantt 2.0.5 → 2.1.0-dev.202211250900
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/bundles/kendo-angular-gantt.umd.js +1 -1
- package/esm2015/binding-directives/flat-binding.directive.js +3 -3
- package/esm2015/binding-directives/hierarchy-binding.directive.js +3 -3
- package/esm2015/columns/cell-template.directive.js +3 -3
- package/esm2015/columns/column-base.component.js +3 -3
- package/esm2015/columns/column-group.component.js +3 -3
- package/esm2015/columns/column-menu-template.directive.js +3 -3
- package/esm2015/columns/column.component.js +3 -3
- package/esm2015/columns/edit-template.directive.js +3 -3
- package/esm2015/columns/filter-cell-template.directive.js +3 -3
- package/esm2015/columns/filter-menu-template.directive.js +3 -3
- package/esm2015/columns/footer-template.directive.js +3 -3
- package/esm2015/columns/header-template.directive.js +3 -3
- package/esm2015/columns/span-column.component.js +3 -3
- package/esm2015/common/mapping.service.js +3 -3
- package/esm2015/common/option-changes.service.js +3 -3
- package/esm2015/dependencies/dependency-dom.service.js +3 -3
- package/esm2015/dependencies/gantt-dependency.directive.js +3 -3
- package/esm2015/dragging/dependency-drag-create.directive.js +3 -3
- package/esm2015/dragging/drag-validation-tooltip.component.js +3 -3
- package/esm2015/editing/add-task.component.js +3 -3
- package/esm2015/editing/dependencies-table.component.js +3 -3
- package/esm2015/editing/edit-dialog.component.js +3 -3
- package/esm2015/editing/edit.service.js +3 -3
- package/esm2015/editing/task-fields.component.js +3 -3
- package/esm2015/expanded-state/expandable.directive.js +3 -3
- package/esm2015/gantt.component.js +6 -3
- package/esm2015/gantt.module.js +8 -4
- package/esm2015/localization/custom-messages.component.js +3 -3
- package/esm2015/localization/gantt-localization.service.js +3 -3
- package/esm2015/localization/localized-messages.directive.js +3 -3
- package/esm2015/localization/messages.js +3 -3
- package/esm2015/main.js +1 -0
- package/esm2015/navigation/navigation.service.js +3 -3
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/rendering/gantt-header-table-body.component.js +5 -5
- package/esm2015/rendering/gantt-milestone-task.component.js +3 -3
- package/esm2015/rendering/gantt-summary-task.component.js +3 -3
- package/esm2015/rendering/gantt-task-base.js +31 -8
- package/esm2015/rendering/gantt-task.component.js +3 -3
- package/esm2015/rendering/gantt-tasks-table-body.component.js +3 -3
- package/esm2015/scrolling/scroll-sync.service.js +3 -3
- package/esm2015/scrolling/timeline-scroll.directive.js +3 -3
- package/esm2015/scrolling/timeline-scroll.service.js +3 -3
- package/esm2015/selection/selectable.directive.js +3 -3
- package/esm2015/template-directives/summary-task-template.directive.js +3 -3
- package/esm2015/template-directives/task-content-template.directive.js +3 -3
- package/esm2015/template-directives/task-template.directive.js +3 -3
- package/esm2015/timeline/gantt-timeline.component.js +3 -3
- package/esm2015/timeline/timeline-base-view.service.js +36 -9
- package/esm2015/timeline/timeline-day-view.component.js +3 -3
- package/esm2015/timeline/timeline-day-view.service.js +3 -3
- package/esm2015/timeline/timeline-month-view.component.js +3 -3
- package/esm2015/timeline/timeline-month-view.service.js +4 -4
- package/esm2015/timeline/timeline-view.service.js +6 -4
- package/esm2015/timeline/timeline-week-view.component.js +3 -3
- package/esm2015/timeline/timeline-week-view.service.js +3 -3
- package/esm2015/timeline/timeline-year-view.component.js +38 -0
- package/esm2015/timeline/timeline-year-view.service.js +55 -0
- package/esm2015/timeline/view-base.js +3 -3
- package/esm2015/toolbar/toolbar-template.directive.js +3 -3
- package/esm2015/toolbar/toolbar.component.js +3 -3
- package/esm2015/toolbar/view-selector.component.js +3 -3
- package/esm2015/utils.js +20 -2
- package/fesm2015/kendo-angular-gantt.js +341 -191
- package/gantt.module.d.ts +24 -23
- package/main.d.ts +1 -0
- package/models/slot.interface.d.ts +6 -0
- package/models/timeline-view.d.ts +1 -1
- package/package.json +1 -1
- package/timeline/timeline-base-view.service.d.ts +2 -1
- package/timeline/timeline-year-view.component.d.ts +18 -0
- package/timeline/timeline-year-view.service.d.ts +31 -0
- package/timeline/view-base.d.ts +1 -1
- package/utils.d.ts +13 -0
package/gantt.module.d.ts
CHANGED
|
@@ -34,28 +34,29 @@ import * as i28 from "./dragging/dependency-drag-create.directive";
|
|
|
34
34
|
import * as i29 from "./timeline/timeline-day-view.component";
|
|
35
35
|
import * as i30 from "./timeline/timeline-week-view.component";
|
|
36
36
|
import * as i31 from "./timeline/timeline-month-view.component";
|
|
37
|
-
import * as i32 from "./
|
|
38
|
-
import * as i33 from "./
|
|
39
|
-
import * as i34 from "./
|
|
40
|
-
import * as i35 from "./localization/
|
|
41
|
-
import * as i36 from "./
|
|
42
|
-
import * as i37 from "./
|
|
43
|
-
import * as i38 from "./
|
|
44
|
-
import * as i39 from "./
|
|
45
|
-
import * as i40 from "./editing/
|
|
46
|
-
import * as i41 from "
|
|
47
|
-
import * as i42 from "@angular/
|
|
48
|
-
import * as i43 from "@
|
|
49
|
-
import * as i44 from "@progress/kendo-angular-
|
|
50
|
-
import * as i45 from "@progress/kendo-angular-
|
|
51
|
-
import * as i46 from "@progress/kendo-angular-
|
|
52
|
-
import * as i47 from "@progress/kendo-angular-
|
|
53
|
-
import * as i48 from "@progress/kendo-angular-
|
|
54
|
-
import * as i49 from "@progress/kendo-angular-
|
|
55
|
-
import * as i50 from "@progress/kendo-angular-
|
|
56
|
-
import * as i51 from "@progress/kendo-angular-
|
|
57
|
-
import * as i52 from "@progress/kendo-angular-
|
|
58
|
-
import * as i53 from "@progress/kendo-angular-
|
|
37
|
+
import * as i32 from "./timeline/timeline-year-view.component";
|
|
38
|
+
import * as i33 from "./selection/selectable.directive";
|
|
39
|
+
import * as i34 from "./editing/edit-dialog.component";
|
|
40
|
+
import * as i35 from "./localization/custom-messages.component";
|
|
41
|
+
import * as i36 from "./localization/localized-messages.directive";
|
|
42
|
+
import * as i37 from "./editing/add-task.component";
|
|
43
|
+
import * as i38 from "./dragging/drag-validation-tooltip.component";
|
|
44
|
+
import * as i39 from "./scrolling/timeline-scroll.directive";
|
|
45
|
+
import * as i40 from "./editing/dependencies-table.component";
|
|
46
|
+
import * as i41 from "./editing/task-fields.component";
|
|
47
|
+
import * as i42 from "@angular/common";
|
|
48
|
+
import * as i43 from "@angular/forms";
|
|
49
|
+
import * as i44 from "@progress/kendo-angular-label";
|
|
50
|
+
import * as i45 from "@progress/kendo-angular-inputs";
|
|
51
|
+
import * as i46 from "@progress/kendo-angular-dateinputs";
|
|
52
|
+
import * as i47 from "@progress/kendo-angular-buttons";
|
|
53
|
+
import * as i48 from "@progress/kendo-angular-layout";
|
|
54
|
+
import * as i49 from "@progress/kendo-angular-treelist";
|
|
55
|
+
import * as i50 from "@progress/kendo-angular-dialog";
|
|
56
|
+
import * as i51 from "@progress/kendo-angular-common";
|
|
57
|
+
import * as i52 from "@progress/kendo-angular-popup";
|
|
58
|
+
import * as i53 from "@progress/kendo-angular-grid";
|
|
59
|
+
import * as i54 from "@progress/kendo-angular-dropdowns";
|
|
59
60
|
/**
|
|
60
61
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
61
62
|
* definition for the Gantt component.
|
|
@@ -89,6 +90,6 @@ import * as i53 from "@progress/kendo-angular-dropdowns";
|
|
|
89
90
|
*/
|
|
90
91
|
export declare class GanttModule {
|
|
91
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<GanttModule, never>;
|
|
92
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<GanttModule, [typeof i1.GanttComponent, typeof i2.GanttFlatBindingDirective, typeof i3.GanttHierarchyBindingDirective, typeof i4.GanttTaskComponent, typeof i5.GanttSummaryTaskComponent, typeof i6.GanttMilestoneTaskComponent, typeof i7.GanttTimelineComponent, typeof i8.GanttTasksTableBodyComponent, typeof i9.GanttHeaderTableBodyComponent, typeof i10.GanttTaskContentTemplateDirective, typeof i11.GanttTaskTemplateDirective, typeof i12.GanttSummaryTaskTemplateDirective, typeof i13.ToolbarTemplateDirective, typeof i14.ToolbarComponent, typeof i15.ViewSelectorComponent, typeof i16.GanttColumnComponent, typeof i17.GanttColumnGroupComponent, typeof i18.GanttSpanColumnComponent, typeof i19.FilterMenuTemplateDirective, typeof i20.FilterCellTemplateDirective, typeof i21.CellTemplateDirective, typeof i22.EditTemplateDirective, typeof i23.ColumnMenuTemplateDirective, typeof i24.HeaderTemplateDirective, typeof i25.FooterTemplateDirective, typeof i26.GanttExpandableDirective, typeof i27.GanttDependencyDirective, typeof i28.DependencyDragCreateDirective, typeof i29.TimelineDayViewComponent, typeof i30.TimelineWeekViewComponent, typeof i31.TimelineMonthViewComponent, typeof i32.
|
|
93
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GanttModule, [typeof i1.GanttComponent, typeof i2.GanttFlatBindingDirective, typeof i3.GanttHierarchyBindingDirective, typeof i4.GanttTaskComponent, typeof i5.GanttSummaryTaskComponent, typeof i6.GanttMilestoneTaskComponent, typeof i7.GanttTimelineComponent, typeof i8.GanttTasksTableBodyComponent, typeof i9.GanttHeaderTableBodyComponent, typeof i10.GanttTaskContentTemplateDirective, typeof i11.GanttTaskTemplateDirective, typeof i12.GanttSummaryTaskTemplateDirective, typeof i13.ToolbarTemplateDirective, typeof i14.ToolbarComponent, typeof i15.ViewSelectorComponent, typeof i16.GanttColumnComponent, typeof i17.GanttColumnGroupComponent, typeof i18.GanttSpanColumnComponent, typeof i19.FilterMenuTemplateDirective, typeof i20.FilterCellTemplateDirective, typeof i21.CellTemplateDirective, typeof i22.EditTemplateDirective, typeof i23.ColumnMenuTemplateDirective, typeof i24.HeaderTemplateDirective, typeof i25.FooterTemplateDirective, typeof i26.GanttExpandableDirective, typeof i27.GanttDependencyDirective, typeof i28.DependencyDragCreateDirective, typeof i29.TimelineDayViewComponent, typeof i30.TimelineWeekViewComponent, typeof i31.TimelineMonthViewComponent, typeof i32.TimelineYearViewComponent, typeof i33.SelectableDirective, typeof i34.EditDialogComponent, typeof i35.CustomMessagesComponent, typeof i36.LocalizedMessagesDirective, typeof i37.GanttAddTaskComponent, typeof i38.DragValidationTooltipComponent, typeof i39.TimelineScrollableDirective, typeof i40.DependenciesTableComponent, typeof i41.TaskFieldsComponent], [typeof i42.CommonModule, typeof i43.ReactiveFormsModule, typeof i44.LabelModule, typeof i45.InputsModule, typeof i46.DateInputsModule, typeof i47.ButtonsModule, typeof i48.SplitterModule, typeof i49.TreeListModule, typeof i47.ButtonsModule, typeof i50.DialogModule, typeof i51.EventsModule, typeof i52.PopupModule, typeof i51.DraggableModule, typeof i48.TabStripModule, typeof i53.GridModule, typeof i54.DropDownsModule], [typeof i1.GanttComponent, typeof i2.GanttFlatBindingDirective, typeof i3.GanttHierarchyBindingDirective, typeof i4.GanttTaskComponent, typeof i5.GanttSummaryTaskComponent, typeof i6.GanttMilestoneTaskComponent, typeof i7.GanttTimelineComponent, typeof i8.GanttTasksTableBodyComponent, typeof i9.GanttHeaderTableBodyComponent, typeof i10.GanttTaskContentTemplateDirective, typeof i11.GanttTaskTemplateDirective, typeof i12.GanttSummaryTaskTemplateDirective, typeof i13.ToolbarTemplateDirective, typeof i14.ToolbarComponent, typeof i15.ViewSelectorComponent, typeof i16.GanttColumnComponent, typeof i17.GanttColumnGroupComponent, typeof i18.GanttSpanColumnComponent, typeof i19.FilterMenuTemplateDirective, typeof i20.FilterCellTemplateDirective, typeof i21.CellTemplateDirective, typeof i22.EditTemplateDirective, typeof i23.ColumnMenuTemplateDirective, typeof i24.HeaderTemplateDirective, typeof i25.FooterTemplateDirective, typeof i26.GanttExpandableDirective, typeof i27.GanttDependencyDirective, typeof i28.DependencyDragCreateDirective, typeof i29.TimelineDayViewComponent, typeof i30.TimelineWeekViewComponent, typeof i31.TimelineMonthViewComponent, typeof i32.TimelineYearViewComponent, typeof i33.SelectableDirective, typeof i34.EditDialogComponent, typeof i35.CustomMessagesComponent, typeof i36.LocalizedMessagesDirective, typeof i37.GanttAddTaskComponent, typeof i38.DragValidationTooltipComponent, typeof i39.TimelineScrollableDirective, typeof i40.DependenciesTableComponent, typeof i41.TaskFieldsComponent]>;
|
|
93
94
|
static ɵinj: i0.ɵɵInjectorDeclaration<GanttModule>;
|
|
94
95
|
}
|
package/main.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { GanttTimelineComponent } from './timeline/gantt-timeline.component';
|
|
|
8
8
|
export { TimelineDayViewComponent } from './timeline/timeline-day-view.component';
|
|
9
9
|
export { TimelineWeekViewComponent } from './timeline/timeline-week-view.component';
|
|
10
10
|
export { TimelineMonthViewComponent } from './timeline/timeline-month-view.component';
|
|
11
|
+
export { TimelineYearViewComponent } from './timeline/timeline-year-view.component';
|
|
11
12
|
export { TaskFieldsComponent } from './editing/task-fields.component';
|
|
12
13
|
export { DependenciesTableComponent } from './editing/dependencies-table.component';
|
|
13
14
|
export { GanttAddTaskComponent } from './editing/add-task.component';
|
package/package.json
CHANGED
|
@@ -73,5 +73,6 @@ export declare abstract class TimelineBaseViewService {
|
|
|
73
73
|
*/
|
|
74
74
|
protected getDays(start: any, end: any): Array<Slot>;
|
|
75
75
|
protected getWeeks(start: any, end: any): Array<Slot>;
|
|
76
|
-
protected getMonths(start: any, end: any): Array<Slot>;
|
|
76
|
+
protected getMonths(start: any, end: any, isMainViewType?: boolean): Array<Slot>;
|
|
77
|
+
protected getYears(start: any, end: any): Array<Slot>;
|
|
77
78
|
}
|
|
@@ -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 TimelineYearViewComponent extends ViewBase {
|
|
11
|
+
/**
|
|
12
|
+
* The type for this view (`year`).
|
|
13
|
+
*/
|
|
14
|
+
readonly type: TimelineViewType;
|
|
15
|
+
constructor(optionChangesService: OptionChangesService, dependencyDomService: DependencyDomService);
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineYearViewComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimelineYearViewComponent, "kendo-gantt-timeline-year-view", never, {}, {}, never, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { IntlService } from "@progress/kendo-angular-intl";
|
|
6
|
+
import { MappingService } from "../common/mapping.service";
|
|
7
|
+
import { Slot } from "../models/slot.interface";
|
|
8
|
+
import { TimelineBaseViewService } from "./timeline-base-view.service";
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare class TimeLineYearViewService extends TimelineBaseViewService {
|
|
14
|
+
constructor(intlService: IntlService, mapper: MappingService);
|
|
15
|
+
getTableWidth(tasks: any[]): number;
|
|
16
|
+
getStartOffset(rangeStart: Date): Date;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
getEndOffset(rangeEnd: Date): Date;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param tasks - The tasks which are going to be rendered in the table
|
|
24
|
+
* @returns {Array<Object>} - A collection containing the years and months slots
|
|
25
|
+
*
|
|
26
|
+
* Used to render the number of columns and the header
|
|
27
|
+
*/
|
|
28
|
+
getSlots(tasks: any[]): Array<Slot[]>;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimeLineYearViewService, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TimeLineYearViewService>;
|
|
31
|
+
}
|
package/timeline/view-base.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare abstract class ViewBase implements OnChanges {
|
|
|
20
20
|
*/
|
|
21
21
|
slotWidth: number;
|
|
22
22
|
/**
|
|
23
|
-
* The type for the view (`day`, `week` or `
|
|
23
|
+
* The type for the view (`day`, `week`, `month` or `year`).
|
|
24
24
|
*/
|
|
25
25
|
abstract type: TimelineViewType;
|
|
26
26
|
/**
|
package/utils.d.ts
CHANGED
|
@@ -44,6 +44,19 @@ export declare const setTime: (date: Date, hours: number, minutes?: number, seco
|
|
|
44
44
|
* @param firstWeekDay - The week's starting day (e.g. Monday, Tuesday, etc.)
|
|
45
45
|
*/
|
|
46
46
|
export declare const lastDayOfWeek: (standingPoint: Date, firstWeekDay: Day) => Date;
|
|
47
|
+
/**
|
|
48
|
+
* @hidden
|
|
49
|
+
*
|
|
50
|
+
* Returns the total number of days in a month
|
|
51
|
+
*/
|
|
52
|
+
export declare const getTotalDaysInMonth: (date: Date) => number;
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*
|
|
56
|
+
* Returns the total number of months between two dates
|
|
57
|
+
* by excluding the months of the dates themselves.
|
|
58
|
+
*/
|
|
59
|
+
export declare const getTotalMonthsInBetween: (start: Date, end: Date) => number;
|
|
47
60
|
/**
|
|
48
61
|
* @hidden
|
|
49
62
|
*
|