@progress/kendo-angular-gantt 17.0.0-develop.9 → 17.0.0
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 +1 -1
- package/binding-directives/hierarchy-binding.directive.d.ts +1 -1
- package/columns/column-base.component.d.ts +1 -74
- package/columns/column-group.component.d.ts +1 -80
- package/columns/column.component.d.ts +1 -80
- package/columns/span-column.component.d.ts +1 -90
- package/dependencies/gantt-dependency.directive.d.ts +1 -1
- package/dragging/dependency-drag-create.directive.d.ts +1 -1
- package/editing/add-task.component.d.ts +1 -1
- package/editing/dependencies-table.component.d.ts +1 -1
- package/editing/edit-dialog.component.d.ts +1 -1
- package/{esm2020 → esm2022}/binding-directives/flat-binding.directive.mjs +7 -3
- package/{esm2020 → esm2022}/binding-directives/hierarchy-binding.directive.mjs +7 -3
- package/{esm2020 → esm2022}/columns/cell-template.directive.mjs +4 -3
- package/esm2022/columns/column-base.component.mjs +22 -0
- package/esm2022/columns/column-group.component.mjs +66 -0
- package/{esm2020 → esm2022}/columns/column-menu-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/columns/column.component.mjs +37 -65
- package/{esm2020 → esm2022}/columns/edit-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/columns/filter-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/columns/filter-menu-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/columns/footer-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/columns/header-template.directive.mjs +4 -3
- package/esm2022/columns/span-column.component.mjs +66 -0
- package/{esm2020 → esm2022}/common/mapping.service.mjs +5 -7
- package/{esm2020 → esm2022}/common/option-changes.service.mjs +6 -8
- package/{esm2020 → esm2022}/dependencies/dependency-dom.service.mjs +21 -12
- package/{esm2020 → esm2022}/dependencies/gantt-dependency.directive.mjs +10 -4
- package/{esm2020 → esm2022}/dragging/dependency-drag-create.directive.mjs +41 -18
- package/{esm2020 → esm2022}/dragging/drag-validation-tooltip.component.mjs +24 -12
- package/{esm2020 → esm2022}/editing/add-task.component.mjs +31 -28
- package/{esm2020 → esm2022}/editing/dependencies-table.component.mjs +22 -15
- package/{esm2020 → esm2022}/editing/edit-dialog.component.mjs +14 -8
- package/{esm2020 → esm2022}/editing/edit.service.mjs +23 -17
- package/{esm2020 → esm2022}/editing/task-fields.component.mjs +8 -5
- package/{esm2020 → esm2022}/expanded-state/expand-event.mjs +4 -0
- package/{esm2020 → esm2022}/expanded-state/expandable.directive.mjs +3 -3
- package/{esm2020 → esm2022}/gantt.component.mjs +434 -364
- package/{esm2020 → esm2022}/gantt.module.mjs +31 -31
- package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/localization/gantt-localization.service.mjs +4 -3
- package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +9 -8
- package/esm2022/localization/messages.mjs +441 -0
- package/esm2022/models/events/cell-close-event.interface.mjs +45 -0
- package/{esm2020 → esm2022}/navigation/navigation.service.mjs +40 -35
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/rendering/gantt-header-table-body.component.mjs +7 -7
- package/{esm2020 → esm2022}/rendering/gantt-milestone-task.component.mjs +11 -11
- package/{esm2020 → esm2022}/rendering/gantt-summary-task.component.mjs +16 -14
- package/{esm2020 → esm2022}/rendering/gantt-task-base.mjs +37 -18
- package/{esm2020 → esm2022}/rendering/gantt-task.component.mjs +14 -11
- package/{esm2020 → esm2022}/rendering/gantt-tasks-table-body.component.mjs +20 -8
- package/{esm2020 → esm2022}/scrolling/scroll-sync.service.mjs +9 -6
- package/{esm2020 → esm2022}/scrolling/timeline-scroll.directive.mjs +10 -4
- package/{esm2020 → esm2022}/scrolling/timeline-scroll.service.mjs +6 -8
- package/{esm2020 → esm2022}/selection/selectable.directive.mjs +18 -14
- package/{esm2020 → esm2022}/template-directives/summary-task-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/template-directives/task-content-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/template-directives/task-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/timeline/current-time-marker.service.mjs +36 -27
- package/{esm2020 → esm2022}/timeline/gantt-timeline.component.mjs +54 -16
- package/{esm2020 → esm2022}/timeline/timeline-base-view.service.mjs +6 -3
- package/{esm2020 → esm2022}/timeline/timeline-day-view.component.mjs +12 -12
- package/{esm2020 → esm2022}/timeline/timeline-day-view.service.mjs +4 -3
- package/{esm2020 → esm2022}/timeline/timeline-month-view.component.mjs +12 -12
- package/{esm2020 → esm2022}/timeline/timeline-month-view.service.mjs +4 -3
- package/{esm2020 → esm2022}/timeline/timeline-view.service.mjs +5 -4
- package/{esm2020 → esm2022}/timeline/timeline-week-view.component.mjs +12 -12
- package/{esm2020 → esm2022}/timeline/timeline-week-view.service.mjs +4 -3
- package/{esm2020 → esm2022}/timeline/timeline-year-view.component.mjs +12 -12
- package/{esm2020 → esm2022}/timeline/timeline-year-view.service.mjs +4 -3
- package/{esm2020 → esm2022}/timeline/view-base.mjs +22 -9
- package/{esm2020 → esm2022}/toolbar/toolbar-navigation.service.mjs +6 -4
- package/{esm2020 → esm2022}/toolbar/toolbar-template.directive.mjs +8 -7
- package/{esm2020 → esm2022}/toolbar/toolbar.component.mjs +21 -12
- package/{esm2020 → esm2022}/toolbar/view-selector.component.mjs +19 -14
- package/expanded-state/expandable.directive.d.ts +1 -1
- package/{fesm2020 → fesm2022}/progress-kendo-angular-gantt.mjs +1579 -1114
- package/gantt.component.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/models/cell-content-type.interface.d.ts +1 -1
- package/models/class-callbacks.d.ts +2 -2
- package/models/events/task-edit-event.interface.d.ts +1 -1
- package/models/filterable-settings.d.ts +1 -1
- package/models/sort-settings.d.ts +2 -2
- package/models/timeline-view.d.ts +1 -1
- package/models/toolbar-settings.d.ts +1 -1
- package/package.json +25 -31
- package/rendering/gantt-header-table-body.component.d.ts +1 -1
- package/rendering/gantt-summary-task.component.d.ts +1 -1
- package/rendering/gantt-task-base.d.ts +1 -1
- package/rendering/gantt-task.component.d.ts +1 -1
- package/rendering/gantt-tasks-table-body.component.d.ts +1 -1
- package/schematics/ngAdd/index.js +8 -8
- package/scrolling/scroll-sync.service.d.ts +2 -2
- package/scrolling/timeline-scroll.directive.d.ts +1 -1
- package/selection/selectable.directive.d.ts +1 -1
- package/timeline/gantt-timeline.component.d.ts +1 -1
- package/timeline/view-base.d.ts +1 -1
- package/toolbar/toolbar-template.directive.d.ts +1 -1
- package/toolbar/toolbar.component.d.ts +1 -1
- package/toolbar/view-selector.component.d.ts +1 -1
- package/utils.d.ts +1 -1
- package/esm2020/columns/column-base.component.mjs +0 -55
- package/esm2020/columns/column-group.component.mjs +0 -101
- package/esm2020/columns/span-column.component.mjs +0 -120
- package/esm2020/localization/messages.mjs +0 -157
- package/esm2020/models/events/cell-close-event.interface.mjs +0 -14
- package/fesm2015/progress-kendo-angular-gantt.mjs +0 -8219
- /package/{esm2020 → esm2022}/columns/columns.mjs +0 -0
- /package/{esm2020 → esm2022}/common/default-callbacks.mjs +0 -0
- /package/{esm2020 → esm2022}/dependencies/dom-dependency-args.mjs +0 -0
- /package/{esm2020 → esm2022}/dependencies/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/editing/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/models/cell-content-type.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/class-callbacks.mjs +0 -0
- /package/{esm2020 → esm2022}/models/column-menu-settings.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/column-reorder-config.mjs +0 -0
- /package/{esm2020 → esm2022}/models/current-time-settings.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/date-range.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/dependency-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/cell-click-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/click-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/column-locked-change-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/column-reorder-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/column-resize-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/column-visibility-change-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/data-state-change-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/dependency-add-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/selected-view-change-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/task-add-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/task-click-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/task-delete-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/task-edit-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/task-move-end-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/task-move-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/task-move-start-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/task-resize-end-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/task-resize-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/events/task-resize-start-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/filterable-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/models/gantt-dependency-model-fields.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/gantt-dependency.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/gantt-task-model-fields.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/gantt-task.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/models.mjs +0 -0
- /package/{esm2020 → esm2022}/models/slot.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/sort-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/models/splitter-pane-options.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/timeline-header-date-format.mjs +0 -0
- /package/{esm2020 → esm2022}/models/timeline-options.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/models/timeline-view.mjs +0 -0
- /package/{esm2020 → esm2022}/models/toolbar-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/models/view-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/navigation-models.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-gantt.mjs +0 -0
- /package/{esm2020 → esm2022}/scrolling/drag-scroll-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/scrolling/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/selection/selection-change-event.mjs +0 -0
- /package/{esm2020 → esm2022}/utils.mjs +0 -0
|
@@ -32,13 +32,14 @@ import * as i0 from "@angular/core";
|
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
34
|
export class GanttTaskTemplateDirective {
|
|
35
|
+
templateRef;
|
|
35
36
|
constructor(templateRef) {
|
|
36
37
|
this.templateRef = templateRef;
|
|
37
38
|
}
|
|
39
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GanttTaskTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
40
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GanttTaskTemplateDirective, isStandalone: true, selector: "[kendoGanttTaskTemplate]", ngImport: i0 });
|
|
38
41
|
}
|
|
39
|
-
|
|
40
|
-
GanttTaskTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: GanttTaskTemplateDirective, isStandalone: true, selector: "[kendoGanttTaskTemplate]", ngImport: i0 });
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GanttTaskTemplateDirective, decorators: [{
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GanttTaskTemplateDirective, decorators: [{
|
|
42
43
|
type: Directive,
|
|
43
44
|
args: [{
|
|
44
45
|
selector: '[kendoGanttTaskTemplate]',
|
|
@@ -11,30 +11,15 @@ const MS_PER_MINUTE = 60 * MS_PER_SECOND;
|
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
13
|
export class CurrentTimeMarkerService {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
this.removeTimeMarker();
|
|
25
|
-
if (this.slotIndex >= 0) {
|
|
26
|
-
this.now = new Date(Date.now());
|
|
27
|
-
this.timeMarkerDiv = this.renderer.createElement('div');
|
|
28
|
-
this.renderer.addClass(this.timeMarkerDiv, 'k-current-time');
|
|
29
|
-
this.renderer.setStyle(this.timeMarkerDiv, 'width', '1px');
|
|
30
|
-
this.renderer.setStyle(this.timeMarkerDiv, 'top', '0px');
|
|
31
|
-
this.renderer.setStyle(this.timeMarkerDiv, `${this.rtl ? 'right' : 'left'}`, this.deltaOffset + 'px');
|
|
32
|
-
this.renderer.appendChild(this.container.nativeElement, this.timeMarkerDiv);
|
|
33
|
-
this.renderer.setStyle(this.timeMarkerDiv, 'height', this.height + 'px');
|
|
34
|
-
this.currentTimeTimeout = setTimeout(this.createTimeMarker, this.interval || MS_PER_MINUTE);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
}
|
|
14
|
+
renderer;
|
|
15
|
+
cdr;
|
|
16
|
+
container;
|
|
17
|
+
slots = [];
|
|
18
|
+
rows = [];
|
|
19
|
+
currentTimeMarker;
|
|
20
|
+
rowHeight;
|
|
21
|
+
rtl;
|
|
22
|
+
activeView;
|
|
38
23
|
get deltaOffset() {
|
|
39
24
|
if (this.slotIndex >= 0) {
|
|
40
25
|
const total = this.slots[this.slotIndex].end.getTime() - this.slots[this.slotIndex].start.getTime();
|
|
@@ -63,6 +48,13 @@ export class CurrentTimeMarkerService {
|
|
|
63
48
|
}
|
|
64
49
|
return this.currentTimeMarker?.updateInterval || MS_PER_MINUTE;
|
|
65
50
|
}
|
|
51
|
+
now = new Date(Date.now());
|
|
52
|
+
currentTimeTimeout;
|
|
53
|
+
timeMarkerDiv;
|
|
54
|
+
constructor(renderer, cdr) {
|
|
55
|
+
this.renderer = renderer;
|
|
56
|
+
this.cdr = cdr;
|
|
57
|
+
}
|
|
66
58
|
ngOnDestroy() {
|
|
67
59
|
clearTimeout(this.currentTimeTimeout);
|
|
68
60
|
}
|
|
@@ -73,9 +65,26 @@ export class CurrentTimeMarkerService {
|
|
|
73
65
|
this.cdr.detectChanges();
|
|
74
66
|
}
|
|
75
67
|
}
|
|
68
|
+
createTimeMarker = () => {
|
|
69
|
+
if (!isDocumentAvailable()) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
this.removeTimeMarker();
|
|
73
|
+
if (this.slotIndex >= 0) {
|
|
74
|
+
this.now = new Date(Date.now());
|
|
75
|
+
this.timeMarkerDiv = this.renderer.createElement('div');
|
|
76
|
+
this.renderer.addClass(this.timeMarkerDiv, 'k-current-time');
|
|
77
|
+
this.renderer.setStyle(this.timeMarkerDiv, 'width', '1px');
|
|
78
|
+
this.renderer.setStyle(this.timeMarkerDiv, 'top', '0px');
|
|
79
|
+
this.renderer.setStyle(this.timeMarkerDiv, `${this.rtl ? 'right' : 'left'}`, this.deltaOffset + 'px');
|
|
80
|
+
this.renderer.appendChild(this.container.nativeElement, this.timeMarkerDiv);
|
|
81
|
+
this.renderer.setStyle(this.timeMarkerDiv, 'height', this.height + 'px');
|
|
82
|
+
this.currentTimeTimeout = setTimeout(this.createTimeMarker, this.interval || MS_PER_MINUTE);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CurrentTimeMarkerService, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
86
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CurrentTimeMarkerService });
|
|
76
87
|
}
|
|
77
|
-
|
|
78
|
-
CurrentTimeMarkerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CurrentTimeMarkerService });
|
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CurrentTimeMarkerService, decorators: [{
|
|
88
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CurrentTimeMarkerService, decorators: [{
|
|
80
89
|
type: Injectable
|
|
81
90
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }]; } });
|
|
@@ -23,18 +23,62 @@ import * as i3 from "./current-time-marker.service";
|
|
|
23
23
|
* @hidden
|
|
24
24
|
*/
|
|
25
25
|
export class GanttTimelineComponent {
|
|
26
|
+
scrollSyncService;
|
|
27
|
+
dependencyDomService;
|
|
28
|
+
renderer;
|
|
29
|
+
zone;
|
|
30
|
+
currentTimeMarkerService;
|
|
31
|
+
/**
|
|
32
|
+
* Represents the scrollable container of the timeline content.
|
|
33
|
+
* Used externally by the DependencyDragCreateDirective.
|
|
34
|
+
*/
|
|
35
|
+
timelineContent;
|
|
36
|
+
timelineColumns;
|
|
37
|
+
timelineHeaderWrap;
|
|
38
|
+
tasksContainer;
|
|
39
|
+
/**
|
|
40
|
+
* Represents the view container ref used for rendering the dependency drag popop.
|
|
41
|
+
* Used externally by the DependencyDragCreateDirective.
|
|
42
|
+
*/
|
|
43
|
+
dragPopupContainer;
|
|
44
|
+
/**
|
|
45
|
+
* Represents the polyline element used for rendering the dependency drag editing interaction.
|
|
46
|
+
* Used externally by the DependencyDragCreateDirective.
|
|
47
|
+
*/
|
|
48
|
+
dependencyDragCreatePolyline;
|
|
49
|
+
rows;
|
|
50
|
+
slots;
|
|
51
|
+
groupSlots;
|
|
52
|
+
tableWidth;
|
|
53
|
+
activeView;
|
|
54
|
+
taskContentTemplate;
|
|
55
|
+
taskTemplate;
|
|
56
|
+
summaryTaskTemplate;
|
|
57
|
+
taskClass;
|
|
58
|
+
renderDependencyDragClues;
|
|
59
|
+
dragScrollSettings;
|
|
60
|
+
currentTimeMarker;
|
|
61
|
+
selectable;
|
|
62
|
+
isTaskSelected;
|
|
63
|
+
isExpanded;
|
|
64
|
+
dependencies = [];
|
|
65
|
+
// as all drag-and-drop operations are on the timeline container, use a single draggable instance
|
|
66
|
+
timelineContainerPress = new EventEmitter();
|
|
67
|
+
timelineContainerDrag = new EventEmitter();
|
|
68
|
+
timelineContainerRelease = new EventEmitter();
|
|
69
|
+
/**
|
|
70
|
+
* Specifies whether the draggable will attach or detach its pointer event listeners.
|
|
71
|
+
*/
|
|
72
|
+
get draggableEnabled() {
|
|
73
|
+
return this.renderDependencyDragClues;
|
|
74
|
+
}
|
|
75
|
+
subscriptions = new Subscription();
|
|
26
76
|
constructor(scrollSyncService, dependencyDomService, renderer, zone, currentTimeMarkerService) {
|
|
27
77
|
this.scrollSyncService = scrollSyncService;
|
|
28
78
|
this.dependencyDomService = dependencyDomService;
|
|
29
79
|
this.renderer = renderer;
|
|
30
80
|
this.zone = zone;
|
|
31
81
|
this.currentTimeMarkerService = currentTimeMarkerService;
|
|
32
|
-
this.dependencies = [];
|
|
33
|
-
// as all drag-and-drop operations are on the timeline container, use a single draggable instance
|
|
34
|
-
this.timelineContainerPress = new EventEmitter();
|
|
35
|
-
this.timelineContainerDrag = new EventEmitter();
|
|
36
|
-
this.timelineContainerRelease = new EventEmitter();
|
|
37
|
-
this.subscriptions = new Subscription();
|
|
38
82
|
this.subscriptions.add(
|
|
39
83
|
// task changes indicates change in row content, number, height, etc.
|
|
40
84
|
this.dependencyDomService.taskChanges
|
|
@@ -51,12 +95,6 @@ export class GanttTimelineComponent {
|
|
|
51
95
|
this.renderer.setStyle(this.timelineColumns.nativeElement, 'height', `${(this.rows || []).length * timelineRowHeight}px`);
|
|
52
96
|
}));
|
|
53
97
|
}
|
|
54
|
-
/**
|
|
55
|
-
* Specifies whether the draggable will attach or detach its pointer event listeners.
|
|
56
|
-
*/
|
|
57
|
-
get draggableEnabled() {
|
|
58
|
-
return this.renderDependencyDragClues;
|
|
59
|
-
}
|
|
60
98
|
ngOnChanges(changes) {
|
|
61
99
|
if (changes['currentTimeMarker']) {
|
|
62
100
|
this.createTimeMarker();
|
|
@@ -86,9 +124,8 @@ export class GanttTimelineComponent {
|
|
|
86
124
|
}
|
|
87
125
|
});
|
|
88
126
|
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
GanttTimelineComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: GanttTimelineComponent, isStandalone: true, selector: "kendo-gantt-timeline", inputs: { rows: "rows", slots: "slots", groupSlots: "groupSlots", tableWidth: "tableWidth", activeView: "activeView", taskContentTemplate: "taskContentTemplate", taskTemplate: "taskTemplate", summaryTaskTemplate: "summaryTaskTemplate", taskClass: "taskClass", renderDependencyDragClues: "renderDependencyDragClues", dragScrollSettings: "dragScrollSettings", currentTimeMarker: "currentTimeMarker", selectable: "selectable", isTaskSelected: "isTaskSelected", isExpanded: "isExpanded", dependencies: "dependencies" }, outputs: { timelineContainerPress: "timelineContainerPress", timelineContainerDrag: "timelineContainerDrag", timelineContainerRelease: "timelineContainerRelease" }, viewQueries: [{ propertyName: "timelineContent", first: true, predicate: ["timelineContent"], descendants: true, static: true }, { propertyName: "timelineColumns", first: true, predicate: ["timelineColumns"], descendants: true, static: true }, { propertyName: "timelineHeaderWrap", first: true, predicate: ["timelineHeaderWrap"], descendants: true, static: true }, { propertyName: "tasksContainer", first: true, predicate: ["tasksContainer"], descendants: true, static: true }, { propertyName: "dragPopupContainer", first: true, predicate: ["dragPopupContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "dependencyDragCreatePolyline", first: true, predicate: ["dependencyDragCreatePolyline"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
127
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GanttTimelineComponent, deps: [{ token: i1.ScrollSyncService }, { token: i2.DependencyDomService }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i3.CurrentTimeMarkerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
128
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GanttTimelineComponent, isStandalone: true, selector: "kendo-gantt-timeline", inputs: { rows: "rows", slots: "slots", groupSlots: "groupSlots", tableWidth: "tableWidth", activeView: "activeView", taskContentTemplate: "taskContentTemplate", taskTemplate: "taskTemplate", summaryTaskTemplate: "summaryTaskTemplate", taskClass: "taskClass", renderDependencyDragClues: "renderDependencyDragClues", dragScrollSettings: "dragScrollSettings", currentTimeMarker: "currentTimeMarker", selectable: "selectable", isTaskSelected: "isTaskSelected", isExpanded: "isExpanded", dependencies: "dependencies" }, outputs: { timelineContainerPress: "timelineContainerPress", timelineContainerDrag: "timelineContainerDrag", timelineContainerRelease: "timelineContainerRelease" }, viewQueries: [{ propertyName: "timelineContent", first: true, predicate: ["timelineContent"], descendants: true, static: true }, { propertyName: "timelineColumns", first: true, predicate: ["timelineColumns"], descendants: true, static: true }, { propertyName: "timelineHeaderWrap", first: true, predicate: ["timelineHeaderWrap"], descendants: true, static: true }, { propertyName: "tasksContainer", first: true, predicate: ["tasksContainer"], descendants: true, static: true }, { propertyName: "dragPopupContainer", first: true, predicate: ["dragPopupContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "dependencyDragCreatePolyline", first: true, predicate: ["dependencyDragCreatePolyline"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
92
129
|
<div class="k-gantt-timeline k-grid k-grid-md">
|
|
93
130
|
<div class="k-grid-header">
|
|
94
131
|
<div #timelineHeaderWrap class="k-grid-header-wrap">
|
|
@@ -192,7 +229,8 @@ GanttTimelineComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
192
229
|
</div>
|
|
193
230
|
</div>
|
|
194
231
|
`, isInline: true, dependencies: [{ kind: "component", type: GanttHeaderTableBodyComponent, selector: "[kendoGanttHeaderTableBody]", inputs: ["groupSlots", "slots"] }, { kind: "directive", type: TimelineScrollableDirective, selector: "[kendoGanttTimelineScrollable]", inputs: ["scrollSettings"] }, { kind: "directive", type: DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: GanttTasksTableBodyComponent, selector: "[kendoGanttTasksTableBody]", inputs: ["selectable", "rows", "activeView", "taskContentTemplate", "taskTemplate", "summaryTaskTemplate", "taskClass", "isExpanded", "isTaskSelected", "renderDependencyDragClues"] }, { kind: "directive", type: GanttDependencyDirective, selector: "[kendoGanttDependency]", inputs: ["dependency"] }] });
|
|
195
|
-
|
|
232
|
+
}
|
|
233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GanttTimelineComponent, decorators: [{
|
|
196
234
|
type: Component,
|
|
197
235
|
args: [{
|
|
198
236
|
selector: 'kendo-gantt-timeline',
|
|
@@ -34,12 +34,16 @@ const END_OF_DAY_DATE = new Date(1980, 0, 1, 23, 59, 59, 999);
|
|
|
34
34
|
/**
|
|
35
35
|
* @hidden
|
|
36
36
|
*/
|
|
37
|
-
let TimelineBaseViewService = class TimelineBaseViewService {
|
|
37
|
+
export let TimelineBaseViewService = class TimelineBaseViewService {
|
|
38
|
+
intlService;
|
|
39
|
+
mapper;
|
|
40
|
+
localeId;
|
|
41
|
+
options;
|
|
42
|
+
_viewStart = 0;
|
|
38
43
|
constructor(intlService, mapper, localeId) {
|
|
39
44
|
this.intlService = intlService;
|
|
40
45
|
this.mapper = mapper;
|
|
41
46
|
this.localeId = localeId;
|
|
42
|
-
this._viewStart = 0;
|
|
43
47
|
}
|
|
44
48
|
get viewStart() {
|
|
45
49
|
return this._viewStart;
|
|
@@ -206,4 +210,3 @@ TimelineBaseViewService = __decorate([
|
|
|
206
210
|
__metadata("design:paramtypes", [IntlService,
|
|
207
211
|
MappingService, String])
|
|
208
212
|
], TimelineBaseViewService);
|
|
209
|
-
export { TimelineBaseViewService };
|
|
@@ -13,22 +13,22 @@ import * as i2 from "../dependencies/dependency-dom.service";
|
|
|
13
13
|
* The Gantt timeline day view component.
|
|
14
14
|
*/
|
|
15
15
|
export class TimelineDayViewComponent extends ViewBase {
|
|
16
|
+
/**
|
|
17
|
+
* The type for this view (`day`).
|
|
18
|
+
*/
|
|
19
|
+
type = 'day';
|
|
16
20
|
constructor(optionChangesService, dependencyDomService) {
|
|
17
21
|
super(optionChangesService, dependencyDomService);
|
|
18
|
-
/**
|
|
19
|
-
* The type for this view (`day`).
|
|
20
|
-
*/
|
|
21
|
-
this.type = 'day';
|
|
22
22
|
}
|
|
23
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineDayViewComponent, deps: [{ token: i1.OptionChangesService }, { token: i2.DependencyDomService }], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TimelineDayViewComponent, isStandalone: true, selector: "kendo-gantt-timeline-day-view", providers: [
|
|
25
|
+
{
|
|
26
|
+
provide: ViewBase,
|
|
27
|
+
useExisting: forwardRef(() => TimelineDayViewComponent)
|
|
28
|
+
}
|
|
29
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
23
30
|
}
|
|
24
|
-
|
|
25
|
-
TimelineDayViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TimelineDayViewComponent, isStandalone: true, selector: "kendo-gantt-timeline-day-view", providers: [
|
|
26
|
-
{
|
|
27
|
-
provide: ViewBase,
|
|
28
|
-
useExisting: forwardRef(() => TimelineDayViewComponent)
|
|
29
|
-
}
|
|
30
|
-
], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineDayViewComponent, decorators: [{
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineDayViewComponent, decorators: [{
|
|
32
32
|
type: Component,
|
|
33
33
|
args: [{
|
|
34
34
|
selector: 'kendo-gantt-timeline-day-view',
|
|
@@ -14,6 +14,7 @@ import * as i2 from "../common/mapping.service";
|
|
|
14
14
|
* @hidden
|
|
15
15
|
*/
|
|
16
16
|
export class TimelineDayViewService extends TimelineBaseViewService {
|
|
17
|
+
localeId;
|
|
17
18
|
constructor(intlService, mapper, localeId) {
|
|
18
19
|
super(intlService, mapper, localeId);
|
|
19
20
|
this.localeId = localeId;
|
|
@@ -61,10 +62,10 @@ export class TimelineDayViewService extends TimelineBaseViewService {
|
|
|
61
62
|
slots.push(daySlots, hourSlots);
|
|
62
63
|
return slots;
|
|
63
64
|
}
|
|
65
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineDayViewService, deps: [{ token: i1.IntlService }, { token: i2.MappingService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
66
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineDayViewService });
|
|
64
67
|
}
|
|
65
|
-
|
|
66
|
-
TimelineDayViewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineDayViewService });
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineDayViewService, decorators: [{
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineDayViewService, decorators: [{
|
|
68
69
|
type: Injectable
|
|
69
70
|
}], ctorParameters: function () { return [{ type: i1.IntlService }, { type: i2.MappingService }, { type: undefined, decorators: [{
|
|
70
71
|
type: Inject,
|
|
@@ -13,22 +13,22 @@ import * as i2 from "../dependencies/dependency-dom.service";
|
|
|
13
13
|
* The Gantt timeline month view component.
|
|
14
14
|
*/
|
|
15
15
|
export class TimelineMonthViewComponent extends ViewBase {
|
|
16
|
+
/**
|
|
17
|
+
* The type for this view (`month`).
|
|
18
|
+
*/
|
|
19
|
+
type = 'month';
|
|
16
20
|
constructor(optionChangesService, dependencyDomService) {
|
|
17
21
|
super(optionChangesService, dependencyDomService);
|
|
18
|
-
/**
|
|
19
|
-
* The type for this view (`month`).
|
|
20
|
-
*/
|
|
21
|
-
this.type = 'month';
|
|
22
22
|
}
|
|
23
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineMonthViewComponent, deps: [{ token: i1.OptionChangesService }, { token: i2.DependencyDomService }], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TimelineMonthViewComponent, isStandalone: true, selector: "kendo-gantt-timeline-month-view", providers: [
|
|
25
|
+
{
|
|
26
|
+
provide: ViewBase,
|
|
27
|
+
useExisting: forwardRef(() => TimelineMonthViewComponent)
|
|
28
|
+
}
|
|
29
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
23
30
|
}
|
|
24
|
-
|
|
25
|
-
TimelineMonthViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TimelineMonthViewComponent, isStandalone: true, selector: "kendo-gantt-timeline-month-view", providers: [
|
|
26
|
-
{
|
|
27
|
-
provide: ViewBase,
|
|
28
|
-
useExisting: forwardRef(() => TimelineMonthViewComponent)
|
|
29
|
-
}
|
|
30
|
-
], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineMonthViewComponent, decorators: [{
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineMonthViewComponent, decorators: [{
|
|
32
32
|
type: Component,
|
|
33
33
|
args: [{
|
|
34
34
|
selector: 'kendo-gantt-timeline-month-view',
|
|
@@ -14,6 +14,7 @@ import * as i2 from "../common/mapping.service";
|
|
|
14
14
|
* @hidden
|
|
15
15
|
*/
|
|
16
16
|
export class TimelineMonthViewService extends TimelineBaseViewService {
|
|
17
|
+
localeId;
|
|
17
18
|
constructor(intlService, mapper, localeId) {
|
|
18
19
|
super(intlService, mapper, localeId);
|
|
19
20
|
this.localeId = localeId;
|
|
@@ -59,10 +60,10 @@ export class TimelineMonthViewService extends TimelineBaseViewService {
|
|
|
59
60
|
slots.push(months, weeks);
|
|
60
61
|
return slots;
|
|
61
62
|
}
|
|
63
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineMonthViewService, deps: [{ token: i1.IntlService }, { token: i2.MappingService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
64
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineMonthViewService });
|
|
62
65
|
}
|
|
63
|
-
|
|
64
|
-
TimelineMonthViewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineMonthViewService });
|
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineMonthViewService, decorators: [{
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineMonthViewService, decorators: [{
|
|
66
67
|
type: Injectable
|
|
67
68
|
}], ctorParameters: function () { return [{ type: i1.IntlService }, { type: i2.MappingService }, { type: undefined, decorators: [{
|
|
68
69
|
type: Inject,
|
|
@@ -21,17 +21,18 @@ const services = {
|
|
|
21
21
|
* @hidden
|
|
22
22
|
*/
|
|
23
23
|
export class TimelineViewService {
|
|
24
|
+
injector;
|
|
25
|
+
viewChange = new EventEmitter();
|
|
24
26
|
constructor(injector) {
|
|
25
27
|
this.injector = injector;
|
|
26
|
-
this.viewChange = new EventEmitter();
|
|
27
28
|
}
|
|
28
29
|
service(view) {
|
|
29
30
|
const serviceType = services[view];
|
|
30
31
|
return serviceType ? this.injector.get(serviceType) : null;
|
|
31
32
|
}
|
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineViewService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
34
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineViewService });
|
|
32
35
|
}
|
|
33
|
-
|
|
34
|
-
TimelineViewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineViewService });
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineViewService, decorators: [{
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineViewService, decorators: [{
|
|
36
37
|
type: Injectable
|
|
37
38
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
@@ -13,22 +13,22 @@ import * as i2 from "../dependencies/dependency-dom.service";
|
|
|
13
13
|
* The Gantt timeline week view component.
|
|
14
14
|
*/
|
|
15
15
|
export class TimelineWeekViewComponent extends ViewBase {
|
|
16
|
+
/**
|
|
17
|
+
* The type for this view (`week`).
|
|
18
|
+
*/
|
|
19
|
+
type = 'week';
|
|
16
20
|
constructor(optionChangesService, dependencyDomService) {
|
|
17
21
|
super(optionChangesService, dependencyDomService);
|
|
18
|
-
/**
|
|
19
|
-
* The type for this view (`week`).
|
|
20
|
-
*/
|
|
21
|
-
this.type = 'week';
|
|
22
22
|
}
|
|
23
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineWeekViewComponent, deps: [{ token: i1.OptionChangesService }, { token: i2.DependencyDomService }], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TimelineWeekViewComponent, isStandalone: true, selector: "kendo-gantt-timeline-week-view", providers: [
|
|
25
|
+
{
|
|
26
|
+
provide: ViewBase,
|
|
27
|
+
useExisting: forwardRef(() => TimelineWeekViewComponent)
|
|
28
|
+
}
|
|
29
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
23
30
|
}
|
|
24
|
-
|
|
25
|
-
TimelineWeekViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TimelineWeekViewComponent, isStandalone: true, selector: "kendo-gantt-timeline-week-view", providers: [
|
|
26
|
-
{
|
|
27
|
-
provide: ViewBase,
|
|
28
|
-
useExisting: forwardRef(() => TimelineWeekViewComponent)
|
|
29
|
-
}
|
|
30
|
-
], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineWeekViewComponent, decorators: [{
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineWeekViewComponent, decorators: [{
|
|
32
32
|
type: Component,
|
|
33
33
|
args: [{
|
|
34
34
|
selector: 'kendo-gantt-timeline-week-view',
|
|
@@ -14,6 +14,7 @@ import * as i2 from "../common/mapping.service";
|
|
|
14
14
|
* @hidden
|
|
15
15
|
*/
|
|
16
16
|
export class TimelineWeekViewService extends TimelineBaseViewService {
|
|
17
|
+
localeId;
|
|
17
18
|
constructor(intlService, mapper, localeId) {
|
|
18
19
|
super(intlService, mapper, localeId);
|
|
19
20
|
this.localeId = localeId;
|
|
@@ -55,10 +56,10 @@ export class TimelineWeekViewService extends TimelineBaseViewService {
|
|
|
55
56
|
slots.push(weeks, days);
|
|
56
57
|
return slots;
|
|
57
58
|
}
|
|
59
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineWeekViewService, deps: [{ token: i1.IntlService }, { token: i2.MappingService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
60
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineWeekViewService });
|
|
58
61
|
}
|
|
59
|
-
|
|
60
|
-
TimelineWeekViewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineWeekViewService });
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineWeekViewService, decorators: [{
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineWeekViewService, decorators: [{
|
|
62
63
|
type: Injectable
|
|
63
64
|
}], ctorParameters: function () { return [{ type: i1.IntlService }, { type: i2.MappingService }, { type: undefined, decorators: [{
|
|
64
65
|
type: Inject,
|
|
@@ -13,22 +13,22 @@ import * as i2 from "../dependencies/dependency-dom.service";
|
|
|
13
13
|
* The Gantt timeline year view component.
|
|
14
14
|
*/
|
|
15
15
|
export class TimelineYearViewComponent extends ViewBase {
|
|
16
|
+
/**
|
|
17
|
+
* The type for this view (`year`).
|
|
18
|
+
*/
|
|
19
|
+
type = 'year';
|
|
16
20
|
constructor(optionChangesService, dependencyDomService) {
|
|
17
21
|
super(optionChangesService, dependencyDomService);
|
|
18
|
-
/**
|
|
19
|
-
* The type for this view (`year`).
|
|
20
|
-
*/
|
|
21
|
-
this.type = 'year';
|
|
22
22
|
}
|
|
23
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineYearViewComponent, deps: [{ token: i1.OptionChangesService }, { token: i2.DependencyDomService }], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TimelineYearViewComponent, isStandalone: true, selector: "kendo-gantt-timeline-year-view", providers: [
|
|
25
|
+
{
|
|
26
|
+
provide: ViewBase,
|
|
27
|
+
useExisting: forwardRef(() => TimelineYearViewComponent)
|
|
28
|
+
}
|
|
29
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
23
30
|
}
|
|
24
|
-
|
|
25
|
-
TimelineYearViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TimelineYearViewComponent, isStandalone: true, selector: "kendo-gantt-timeline-year-view", providers: [
|
|
26
|
-
{
|
|
27
|
-
provide: ViewBase,
|
|
28
|
-
useExisting: forwardRef(() => TimelineYearViewComponent)
|
|
29
|
-
}
|
|
30
|
-
], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineYearViewComponent, decorators: [{
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineYearViewComponent, decorators: [{
|
|
32
32
|
type: Component,
|
|
33
33
|
args: [{
|
|
34
34
|
selector: 'kendo-gantt-timeline-year-view',
|
|
@@ -14,6 +14,7 @@ import * as i2 from "../common/mapping.service";
|
|
|
14
14
|
* @hidden
|
|
15
15
|
*/
|
|
16
16
|
export class TimeLineYearViewService extends TimelineBaseViewService {
|
|
17
|
+
localeId;
|
|
17
18
|
constructor(intlService, mapper, localeId) {
|
|
18
19
|
super(intlService, mapper, localeId);
|
|
19
20
|
this.localeId = localeId;
|
|
@@ -50,10 +51,10 @@ export class TimeLineYearViewService extends TimelineBaseViewService {
|
|
|
50
51
|
slots.push(years, months);
|
|
51
52
|
return slots;
|
|
52
53
|
}
|
|
54
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeLineYearViewService, deps: [{ token: i1.IntlService }, { token: i2.MappingService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
55
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeLineYearViewService });
|
|
53
56
|
}
|
|
54
|
-
|
|
55
|
-
TimeLineYearViewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimeLineYearViewService });
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimeLineYearViewService, decorators: [{
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeLineYearViewService, decorators: [{
|
|
57
58
|
type: Injectable
|
|
58
59
|
}], ctorParameters: function () { return [{ type: i1.IntlService }, { type: i2.MappingService }, { type: undefined, decorators: [{
|
|
59
60
|
type: Inject,
|
|
@@ -13,6 +13,25 @@ import * as i2 from "../dependencies/dependency-dom.service";
|
|
|
13
13
|
* The base class for the timeline view components of the Gantt.
|
|
14
14
|
*/
|
|
15
15
|
export class ViewBase {
|
|
16
|
+
optionChangesService;
|
|
17
|
+
dependencyDomService;
|
|
18
|
+
/**
|
|
19
|
+
* The width of the time slot headers. Values are treated as pixels.
|
|
20
|
+
*
|
|
21
|
+
* @default 100
|
|
22
|
+
*/
|
|
23
|
+
slotWidth = 100;
|
|
24
|
+
/**
|
|
25
|
+
* Sets the date format for the Grouped and Column headers.
|
|
26
|
+
*/
|
|
27
|
+
timelineHeadersDateFormat;
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the current time marker settings.
|
|
30
|
+
* If not set, the value is taken from the Gantt component
|
|
31
|
+
* [`currentTimeMarker`]({% slug api_gantt_ganttcomponent %}#toc-currentTimeMarker) property.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
currentTimeMarker;
|
|
16
35
|
/**
|
|
17
36
|
*
|
|
18
37
|
* @hidden
|
|
@@ -20,12 +39,6 @@ export class ViewBase {
|
|
|
20
39
|
constructor(optionChangesService, dependencyDomService) {
|
|
21
40
|
this.optionChangesService = optionChangesService;
|
|
22
41
|
this.dependencyDomService = dependencyDomService;
|
|
23
|
-
/**
|
|
24
|
-
* The width of the time slot headers. Values are treated as pixels.
|
|
25
|
-
*
|
|
26
|
-
* @default 100
|
|
27
|
-
*/
|
|
28
|
-
this.slotWidth = 100;
|
|
29
42
|
}
|
|
30
43
|
ngOnChanges(changes) {
|
|
31
44
|
if (anyChanged(['slotWidth'], changes)) {
|
|
@@ -36,10 +49,10 @@ export class ViewBase {
|
|
|
36
49
|
this.optionChangesService.notifyDateFormatChanges();
|
|
37
50
|
}
|
|
38
51
|
}
|
|
52
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ViewBase, deps: [{ token: i1.OptionChangesService }, { token: i2.DependencyDomService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
53
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ViewBase, selector: "kendo-gantt-view-base", inputs: { slotWidth: "slotWidth", timelineHeadersDateFormat: "timelineHeadersDateFormat", currentTimeMarker: "currentTimeMarker" }, usesOnChanges: true, ngImport: i0 });
|
|
39
54
|
}
|
|
40
|
-
|
|
41
|
-
ViewBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ViewBase, selector: "kendo-gantt-view-base", inputs: { slotWidth: "slotWidth", timelineHeadersDateFormat: "timelineHeadersDateFormat", currentTimeMarker: "currentTimeMarker" }, usesOnChanges: true, ngImport: i0 });
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ViewBase, decorators: [{
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ViewBase, decorators: [{
|
|
43
56
|
type: Directive,
|
|
44
57
|
args: [{
|
|
45
58
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -8,9 +8,11 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
10
|
export class ToolbarNavigationService {
|
|
11
|
+
renderer;
|
|
12
|
+
focusableContent;
|
|
13
|
+
focusIndex = 0;
|
|
11
14
|
constructor(renderer) {
|
|
12
15
|
this.renderer = renderer;
|
|
13
|
-
this.focusIndex = 0;
|
|
14
16
|
}
|
|
15
17
|
updateFocus() {
|
|
16
18
|
this.focusableContent.forEach(el => {
|
|
@@ -19,9 +21,9 @@ export class ToolbarNavigationService {
|
|
|
19
21
|
this.renderer.setAttribute(this.focusableContent[this.focusIndex], 'tabindex', '0');
|
|
20
22
|
this.focusableContent[this.focusIndex].focus();
|
|
21
23
|
}
|
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarNavigationService, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
25
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarNavigationService });
|
|
22
26
|
}
|
|
23
|
-
|
|
24
|
-
ToolbarNavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarNavigationService });
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarNavigationService, decorators: [{
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarNavigationService, decorators: [{
|
|
26
28
|
type: Injectable
|
|
27
29
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }]; } });
|
|
@@ -93,10 +93,8 @@ import * as i0 from "@angular/core";
|
|
|
93
93
|
* ```
|
|
94
94
|
*/
|
|
95
95
|
export class ToolbarTemplateDirective {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
this._position = "top";
|
|
99
|
-
}
|
|
96
|
+
templateRef;
|
|
97
|
+
_position = "top";
|
|
100
98
|
/**
|
|
101
99
|
* Defines the Gantt Toolbar that will use this template.
|
|
102
100
|
*
|
|
@@ -111,10 +109,13 @@ export class ToolbarTemplateDirective {
|
|
|
111
109
|
get position() {
|
|
112
110
|
return this._position;
|
|
113
111
|
}
|
|
112
|
+
constructor(templateRef) {
|
|
113
|
+
this.templateRef = templateRef;
|
|
114
|
+
}
|
|
115
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
116
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ToolbarTemplateDirective, isStandalone: true, selector: "[kendoGanttToolbarTemplate]", inputs: { position: "position" }, ngImport: i0 });
|
|
114
117
|
}
|
|
115
|
-
|
|
116
|
-
ToolbarTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ToolbarTemplateDirective, isStandalone: true, selector: "[kendoGanttToolbarTemplate]", inputs: { position: "position" }, ngImport: i0 });
|
|
117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarTemplateDirective, decorators: [{
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarTemplateDirective, decorators: [{
|
|
118
119
|
type: Directive,
|
|
119
120
|
args: [{
|
|
120
121
|
selector: '[kendoGanttToolbarTemplate]',
|