@progress/kendo-angular-gantt 21.1.1-develop.2 → 21.2.0-develop.10
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/esm2022/editing/task-fields.component.mjs +70 -55
- package/esm2022/gantt.component.mjs +562 -547
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/rendering/gantt-header-table-body.component.mjs +21 -10
- package/esm2022/rendering/gantt-milestone-task.component.mjs +43 -43
- package/esm2022/rendering/gantt-summary-task.component.mjs +79 -77
- package/esm2022/rendering/gantt-task.component.mjs +131 -127
- package/esm2022/rendering/gantt-tasks-table-body.component.mjs +86 -79
- package/esm2022/timeline/gantt-timeline.component.mjs +292 -270
- package/esm2022/toolbar/toolbar.component.mjs +35 -27
- package/esm2022/toolbar/view-selector.component.mjs +32 -25
- package/fesm2022/progress-kendo-angular-gantt.mjs +1355 -1259
- package/package.json +17 -17
- package/rendering/gantt-header-table-body.component.d.ts +1 -0
- package/schematics/ngAdd/index.js +7 -7
- package/timeline/gantt-timeline.component.d.ts +1 -0
|
@@ -8,7 +8,7 @@ import { ToolbarNavigationService } from './toolbar-navigation.service';
|
|
|
8
8
|
import { closest, focusableSelector, isDocumentAvailable, isFocusable, isVisible } from '@progress/kendo-angular-common';
|
|
9
9
|
import { ViewSelectorComponent } from './view-selector.component';
|
|
10
10
|
import { GanttAddTaskComponent } from '../editing/add-task.component';
|
|
11
|
-
import {
|
|
11
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
import * as i1 from "./toolbar-navigation.service";
|
|
14
14
|
/**
|
|
@@ -87,23 +87,27 @@ export class ToolbarComponent {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarComponent, deps: [{ token: i0.ElementRef }, { token: i1.ToolbarNavigationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
90
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
<
|
|
90
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ToolbarComponent, isStandalone: true, selector: "kendo-gantt-toolbar", inputs: { showAddTask: "showAddTask", showViewSelector: "showViewSelector", views: "views", activeView: "activeView", toolbarTemplate: "toolbarTemplate", navigable: "navigable", position: "position" }, outputs: { activeViewChange: "activeViewChange" }, host: { listeners: { "click": "clickHandler($event)", "keydown.arrowleft": "arrowLeftListener($event)", "keydown.arrowright": "arrowRightListener($event)" }, properties: { "attr.role": "this.role", "class.k-gantt-toolbar": "this.hostClasses", "class.k-toolbar": "this.hostClasses", "class.k-toolbar-md": "this.hostClasses", "class.k-toolbar-solid": "this.hostClasses" } }, providers: [ToolbarNavigationService], ngImport: i0, template: `
|
|
91
|
+
@if (!renderTemplate) {
|
|
92
|
+
@if (showAddTask) {
|
|
93
|
+
<kendo-gantt-add-task></kendo-gantt-add-task>
|
|
94
|
+
}
|
|
95
|
+
<span class="k-spacer k-toolbar-spacer"></span>
|
|
96
|
+
@if (showViewSelector) {
|
|
94
97
|
<kendo-gantt-view-selector
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
[views]="views"
|
|
99
|
+
[activeView]="activeView"
|
|
100
|
+
(activeViewChange)="handleViewChange($event)"></kendo-gantt-view-selector>
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
@if (renderTemplate) {
|
|
104
|
+
<ng-template
|
|
102
105
|
[ngTemplateOutlet]="toolbarTemplateRef"
|
|
103
106
|
[ngTemplateOutletContext]="context"
|
|
104
107
|
>
|
|
105
|
-
|
|
106
|
-
|
|
108
|
+
</ng-template>
|
|
109
|
+
}
|
|
110
|
+
`, isInline: true, dependencies: [{ kind: "component", type: GanttAddTaskComponent, selector: "kendo-gantt-add-task", inputs: ["data", "icon", "svgIcon"] }, { kind: "component", type: ViewSelectorComponent, selector: "kendo-gantt-view-selector", inputs: ["views", "activeView"], outputs: ["activeViewChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
107
111
|
}
|
|
108
112
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarComponent, decorators: [{
|
|
109
113
|
type: Component,
|
|
@@ -111,24 +115,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
111
115
|
selector: 'kendo-gantt-toolbar',
|
|
112
116
|
providers: [ToolbarNavigationService],
|
|
113
117
|
template: `
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
<
|
|
118
|
+
@if (!renderTemplate) {
|
|
119
|
+
@if (showAddTask) {
|
|
120
|
+
<kendo-gantt-add-task></kendo-gantt-add-task>
|
|
121
|
+
}
|
|
122
|
+
<span class="k-spacer k-toolbar-spacer"></span>
|
|
123
|
+
@if (showViewSelector) {
|
|
117
124
|
<kendo-gantt-view-selector
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
+
[views]="views"
|
|
126
|
+
[activeView]="activeView"
|
|
127
|
+
(activeViewChange)="handleViewChange($event)"></kendo-gantt-view-selector>
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
@if (renderTemplate) {
|
|
131
|
+
<ng-template
|
|
125
132
|
[ngTemplateOutlet]="toolbarTemplateRef"
|
|
126
133
|
[ngTemplateOutletContext]="context"
|
|
127
134
|
>
|
|
128
|
-
|
|
129
|
-
|
|
135
|
+
</ng-template>
|
|
136
|
+
}
|
|
137
|
+
`,
|
|
130
138
|
standalone: true,
|
|
131
|
-
imports: [
|
|
139
|
+
imports: [GanttAddTaskComponent, ViewSelectorComponent, NgTemplateOutlet]
|
|
132
140
|
}]
|
|
133
141
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.ToolbarNavigationService }], propDecorators: { role: [{
|
|
134
142
|
type: HostBinding,
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import { Component, EventEmitter, Input, Output, HostBinding } from '@angular/core';
|
|
6
6
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
7
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
8
|
-
import { NgFor } from '@angular/common';
|
|
9
8
|
import { ButtonComponent, ButtonGroupComponent } from '@progress/kendo-angular-buttons';
|
|
10
9
|
import * as i0 from "@angular/core";
|
|
11
10
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
@@ -53,22 +52,26 @@ export class ViewSelectorComponent {
|
|
|
53
52
|
this.activeViewChange.emit(event.target.value);
|
|
54
53
|
}
|
|
55
54
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ViewSelectorComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
56
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
55
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ViewSelectorComponent, isStandalone: true, selector: "kendo-gantt-view-selector", inputs: { views: "views", activeView: "activeView" }, outputs: { activeViewChange: "activeViewChange" }, host: { properties: { "class.k-gantt-views-wrapper": "this.hostClass" } }, ngImport: i0, template: `
|
|
57
56
|
<select
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
class="k-dropdownlist k-picker k-rounded-md k-views-dropdown"
|
|
58
|
+
aria-label="View Selector"
|
|
59
|
+
[value]="activeView"
|
|
60
|
+
(change)="onActiveViewChange($event)">
|
|
61
|
+
@for (view of views; track view) {
|
|
62
|
+
<option [value]="view">{{getViewTypeText(view)}}</option>
|
|
63
|
+
}
|
|
63
64
|
</select>
|
|
64
65
|
<kendo-buttongroup class="k-gantt-views" selection="single" [navigable]="false">
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
@for (view of views; track view) {
|
|
67
|
+
<button
|
|
68
|
+
kendoButton
|
|
69
|
+
type="button"
|
|
70
|
+
[selected]="view === activeView"
|
|
71
|
+
(click)="onClick(view)">{{getViewTypeText(view)}}</button>
|
|
72
|
+
}
|
|
70
73
|
</kendo-buttongroup>
|
|
71
|
-
|
|
74
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "component", type: ButtonGroupComponent, selector: "kendo-buttongroup", inputs: ["disabled", "selection", "width", "tabIndex", "navigable"], outputs: ["navigate"], exportAs: ["kendoButtonGroup"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
72
75
|
}
|
|
73
76
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ViewSelectorComponent, decorators: [{
|
|
74
77
|
type: Component,
|
|
@@ -76,22 +79,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
76
79
|
selector: 'kendo-gantt-view-selector',
|
|
77
80
|
template: `
|
|
78
81
|
<select
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
class="k-dropdownlist k-picker k-rounded-md k-views-dropdown"
|
|
83
|
+
aria-label="View Selector"
|
|
84
|
+
[value]="activeView"
|
|
85
|
+
(change)="onActiveViewChange($event)">
|
|
86
|
+
@for (view of views; track view) {
|
|
87
|
+
<option [value]="view">{{getViewTypeText(view)}}</option>
|
|
88
|
+
}
|
|
84
89
|
</select>
|
|
85
90
|
<kendo-buttongroup class="k-gantt-views" selection="single" [navigable]="false">
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
@for (view of views; track view) {
|
|
92
|
+
<button
|
|
93
|
+
kendoButton
|
|
94
|
+
type="button"
|
|
95
|
+
[selected]="view === activeView"
|
|
96
|
+
(click)="onClick(view)">{{getViewTypeText(view)}}</button>
|
|
97
|
+
}
|
|
91
98
|
</kendo-buttongroup>
|
|
92
|
-
|
|
99
|
+
`,
|
|
93
100
|
standalone: true,
|
|
94
|
-
imports: [
|
|
101
|
+
imports: [ReactiveFormsModule, ButtonGroupComponent, ButtonComponent]
|
|
95
102
|
}]
|
|
96
103
|
}], ctorParameters: () => [{ type: i1.LocalizationService }], propDecorators: { hostClass: [{
|
|
97
104
|
type: HostBinding,
|