@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.
Files changed (75) hide show
  1. package/bundles/kendo-angular-gantt.umd.js +1 -1
  2. package/esm2015/binding-directives/flat-binding.directive.js +3 -3
  3. package/esm2015/binding-directives/hierarchy-binding.directive.js +3 -3
  4. package/esm2015/columns/cell-template.directive.js +3 -3
  5. package/esm2015/columns/column-base.component.js +3 -3
  6. package/esm2015/columns/column-group.component.js +3 -3
  7. package/esm2015/columns/column-menu-template.directive.js +3 -3
  8. package/esm2015/columns/column.component.js +3 -3
  9. package/esm2015/columns/edit-template.directive.js +3 -3
  10. package/esm2015/columns/filter-cell-template.directive.js +3 -3
  11. package/esm2015/columns/filter-menu-template.directive.js +3 -3
  12. package/esm2015/columns/footer-template.directive.js +3 -3
  13. package/esm2015/columns/header-template.directive.js +3 -3
  14. package/esm2015/columns/span-column.component.js +3 -3
  15. package/esm2015/common/mapping.service.js +3 -3
  16. package/esm2015/common/option-changes.service.js +3 -3
  17. package/esm2015/dependencies/dependency-dom.service.js +3 -3
  18. package/esm2015/dependencies/gantt-dependency.directive.js +3 -3
  19. package/esm2015/dragging/dependency-drag-create.directive.js +3 -3
  20. package/esm2015/dragging/drag-validation-tooltip.component.js +3 -3
  21. package/esm2015/editing/add-task.component.js +3 -3
  22. package/esm2015/editing/dependencies-table.component.js +3 -3
  23. package/esm2015/editing/edit-dialog.component.js +3 -3
  24. package/esm2015/editing/edit.service.js +3 -3
  25. package/esm2015/editing/task-fields.component.js +3 -3
  26. package/esm2015/expanded-state/expandable.directive.js +3 -3
  27. package/esm2015/gantt.component.js +6 -3
  28. package/esm2015/gantt.module.js +8 -4
  29. package/esm2015/localization/custom-messages.component.js +3 -3
  30. package/esm2015/localization/gantt-localization.service.js +3 -3
  31. package/esm2015/localization/localized-messages.directive.js +3 -3
  32. package/esm2015/localization/messages.js +3 -3
  33. package/esm2015/main.js +1 -0
  34. package/esm2015/navigation/navigation.service.js +3 -3
  35. package/esm2015/package-metadata.js +1 -1
  36. package/esm2015/rendering/gantt-header-table-body.component.js +5 -5
  37. package/esm2015/rendering/gantt-milestone-task.component.js +3 -3
  38. package/esm2015/rendering/gantt-summary-task.component.js +3 -3
  39. package/esm2015/rendering/gantt-task-base.js +31 -8
  40. package/esm2015/rendering/gantt-task.component.js +3 -3
  41. package/esm2015/rendering/gantt-tasks-table-body.component.js +3 -3
  42. package/esm2015/scrolling/scroll-sync.service.js +3 -3
  43. package/esm2015/scrolling/timeline-scroll.directive.js +3 -3
  44. package/esm2015/scrolling/timeline-scroll.service.js +3 -3
  45. package/esm2015/selection/selectable.directive.js +3 -3
  46. package/esm2015/template-directives/summary-task-template.directive.js +3 -3
  47. package/esm2015/template-directives/task-content-template.directive.js +3 -3
  48. package/esm2015/template-directives/task-template.directive.js +3 -3
  49. package/esm2015/timeline/gantt-timeline.component.js +3 -3
  50. package/esm2015/timeline/timeline-base-view.service.js +36 -9
  51. package/esm2015/timeline/timeline-day-view.component.js +3 -3
  52. package/esm2015/timeline/timeline-day-view.service.js +3 -3
  53. package/esm2015/timeline/timeline-month-view.component.js +3 -3
  54. package/esm2015/timeline/timeline-month-view.service.js +4 -4
  55. package/esm2015/timeline/timeline-view.service.js +6 -4
  56. package/esm2015/timeline/timeline-week-view.component.js +3 -3
  57. package/esm2015/timeline/timeline-week-view.service.js +3 -3
  58. package/esm2015/timeline/timeline-year-view.component.js +38 -0
  59. package/esm2015/timeline/timeline-year-view.service.js +55 -0
  60. package/esm2015/timeline/view-base.js +3 -3
  61. package/esm2015/toolbar/toolbar-template.directive.js +3 -3
  62. package/esm2015/toolbar/toolbar.component.js +3 -3
  63. package/esm2015/toolbar/view-selector.component.js +3 -3
  64. package/esm2015/utils.js +20 -2
  65. package/fesm2015/kendo-angular-gantt.js +341 -191
  66. package/gantt.module.d.ts +24 -23
  67. package/main.d.ts +1 -0
  68. package/models/slot.interface.d.ts +6 -0
  69. package/models/timeline-view.d.ts +1 -1
  70. package/package.json +1 -1
  71. package/timeline/timeline-base-view.service.d.ts +2 -1
  72. package/timeline/timeline-year-view.component.d.ts +18 -0
  73. package/timeline/timeline-year-view.service.d.ts +31 -0
  74. package/timeline/view-base.d.ts +1 -1
  75. 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 "./selection/selectable.directive";
38
- import * as i33 from "./editing/edit-dialog.component";
39
- import * as i34 from "./localization/custom-messages.component";
40
- import * as i35 from "./localization/localized-messages.directive";
41
- import * as i36 from "./editing/add-task.component";
42
- import * as i37 from "./dragging/drag-validation-tooltip.component";
43
- import * as i38 from "./scrolling/timeline-scroll.directive";
44
- import * as i39 from "./editing/dependencies-table.component";
45
- import * as i40 from "./editing/task-fields.component";
46
- import * as i41 from "@angular/common";
47
- import * as i42 from "@angular/forms";
48
- import * as i43 from "@progress/kendo-angular-label";
49
- import * as i44 from "@progress/kendo-angular-inputs";
50
- import * as i45 from "@progress/kendo-angular-dateinputs";
51
- import * as i46 from "@progress/kendo-angular-buttons";
52
- import * as i47 from "@progress/kendo-angular-layout";
53
- import * as i48 from "@progress/kendo-angular-treelist";
54
- import * as i49 from "@progress/kendo-angular-dialog";
55
- import * as i50 from "@progress/kendo-angular-common";
56
- import * as i51 from "@progress/kendo-angular-popup";
57
- import * as i52 from "@progress/kendo-angular-grid";
58
- import * as i53 from "@progress/kendo-angular-dropdowns";
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.SelectableDirective, typeof i33.EditDialogComponent, typeof i34.CustomMessagesComponent, typeof i35.LocalizedMessagesDirective, typeof i36.GanttAddTaskComponent, typeof i37.DragValidationTooltipComponent, typeof i38.TimelineScrollableDirective, typeof i39.DependenciesTableComponent, typeof i40.TaskFieldsComponent], [typeof i41.CommonModule, typeof i42.ReactiveFormsModule, typeof i43.LabelModule, typeof i44.InputsModule, typeof i45.DateInputsModule, typeof i46.ButtonsModule, typeof i47.SplitterModule, typeof i48.TreeListModule, typeof i46.ButtonsModule, typeof i49.DialogModule, typeof i50.EventsModule, typeof i51.PopupModule, typeof i50.DraggableModule, typeof i47.TabStripModule, typeof i52.GridModule, typeof i53.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.SelectableDirective, typeof i33.EditDialogComponent, typeof i34.CustomMessagesComponent, typeof i35.LocalizedMessagesDirective, typeof i36.GanttAddTaskComponent, typeof i37.DragValidationTooltipComponent, typeof i38.TimelineScrollableDirective, typeof i39.DependenciesTableComponent, typeof i40.TaskFieldsComponent]>;
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';
@@ -28,4 +28,10 @@ export interface Slot {
28
28
  * Indicates if the slot is a working hour/day.
29
29
  */
30
30
  isWorking?: boolean;
31
+ /**
32
+ * The configured slot width.
33
+ *
34
+ * @default 100
35
+ */
36
+ slotWidth?: number;
31
37
  }
@@ -5,4 +5,4 @@
5
5
  /**
6
6
  * Defines all possible Timeline view types.
7
7
  */
8
- export declare type TimelineViewType = 'day' | 'week' | 'month';
8
+ export declare type TimelineViewType = 'day' | 'week' | 'month' | 'year';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-gantt",
3
- "version": "2.0.5",
3
+ "version": "2.1.0-dev.202211250900",
4
4
  "description": "Kendo UI Angular Gantt",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -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
+ }
@@ -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 `month`).
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
  *