@progress/kendo-angular-gantt 0.2.1-dev.202112101349 → 0.3.0-dev.202112141015
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/dist/cdn/js/kendo-angular-gantt.js +1 -1
- package/dist/cdn/main.js +2 -2
- package/dist/es/editing/add-task.component.js +94 -0
- package/dist/es/editing/edit.service.js +1 -0
- package/dist/es/gantt.component.js +59 -15
- package/dist/es/gantt.module.js +3 -1
- package/dist/es/index.js +1 -0
- package/dist/es/localization/messages.js +45 -1
- package/dist/es/models/events/{add-event.interface.js → task-add-event.interface.js} +0 -0
- package/dist/es/models/{toolbar-position.js → toolbar-settings.js} +0 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/toolbar/toolbar.component.js +9 -1
- package/dist/es2015/editing/add-task.component.d.ts +45 -0
- package/dist/es2015/editing/add-task.component.js +102 -0
- package/dist/es2015/editing/edit.service.d.ts +3 -0
- package/dist/es2015/editing/edit.service.js +1 -0
- package/dist/es2015/gantt.component.d.ts +18 -8
- package/dist/es2015/gantt.component.js +91 -14
- package/dist/es2015/gantt.module.js +3 -1
- package/dist/es2015/index.d.ts +1 -0
- package/dist/es2015/index.js +1 -0
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/localization/messages.d.ts +46 -2
- package/dist/es2015/localization/messages.js +45 -1
- package/dist/es2015/models/events/task-add-event.interface.d.ts +31 -0
- package/dist/es2015/models/events/{add-event.interface.js → task-add-event.interface.js} +0 -0
- package/dist/es2015/models/models.d.ts +2 -1
- package/dist/es2015/models/toolbar-settings.d.ts +29 -0
- package/dist/es2015/models/{toolbar-position.js → toolbar-settings.js} +0 -0
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/toolbar/toolbar-template.directive.d.ts +1 -1
- package/dist/es2015/toolbar/toolbar.component.d.ts +2 -0
- package/dist/es2015/toolbar/toolbar.component.js +10 -0
- package/dist/fesm2015/index.js +245 -18
- package/dist/fesm5/index.js +204 -20
- package/dist/npm/editing/add-task.component.js +96 -0
- package/dist/npm/editing/edit.service.js +1 -0
- package/dist/npm/gantt.component.js +59 -15
- package/dist/npm/gantt.module.js +3 -1
- package/dist/npm/index.js +2 -0
- package/dist/npm/localization/messages.js +45 -1
- package/dist/npm/models/events/{add-event.interface.js → task-add-event.interface.js} +0 -0
- package/dist/npm/models/{toolbar-position.js → toolbar-settings.js} +0 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/toolbar/toolbar.component.js +9 -1
- package/dist/systemjs/kendo-angular-gantt.js +1 -1
- package/package.json +1 -1
- package/dist/es2015/models/events/add-event.interface.d.ts +0 -16
- package/dist/es2015/models/toolbar-position.d.ts +0 -9
|
@@ -7,6 +7,38 @@ import { ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
|
7
7
|
* @hidden
|
|
8
8
|
*/
|
|
9
9
|
export declare class Messages extends ComponentMessages {
|
|
10
|
+
/**
|
|
11
|
+
* The title of the "General" tab of the editing dialog TabStrip.
|
|
12
|
+
*/
|
|
13
|
+
taskEditingGeneralTabTitle: string;
|
|
14
|
+
/**
|
|
15
|
+
* The title of the "Predecessors" dependencies tab of the editing dialog TabStrip.
|
|
16
|
+
*/
|
|
17
|
+
taskEditingPredecessorsTabTitle: string;
|
|
18
|
+
/**
|
|
19
|
+
* The title of the "Successors" dependencies tab of the editing dialog TabStrip.
|
|
20
|
+
*/
|
|
21
|
+
taskEditingSuccessorsTabTitle: string;
|
|
22
|
+
/**
|
|
23
|
+
* The text of the "Add" button in the dependencies tabs of the editing dialog TabStrip.
|
|
24
|
+
*/
|
|
25
|
+
taskEditingDependenciesAddButtonText: string;
|
|
26
|
+
/**
|
|
27
|
+
* The text of the "Remove" button in the dependencies tabs of the editing dialog TabStrip.
|
|
28
|
+
*/
|
|
29
|
+
taskEditingDependenciesRemoveButtonText: string;
|
|
30
|
+
/**
|
|
31
|
+
* The title of the "Task Title" Grid column in the dependencies tabs of the editing dialog TabStrip.
|
|
32
|
+
*/
|
|
33
|
+
taskEditingDependenciesGridNameColumnTitle: string;
|
|
34
|
+
/**
|
|
35
|
+
* The title of the "Type" Grid column in the dependencies tabs of the editing dialog TabStrip.
|
|
36
|
+
*/
|
|
37
|
+
taskEditingDependenciesGridTypeColumnTitle: string;
|
|
38
|
+
/**
|
|
39
|
+
* The text of the task editing dialog 'Delete' button.
|
|
40
|
+
*/
|
|
41
|
+
deleteButtonText: string;
|
|
10
42
|
/**
|
|
11
43
|
* The label for the task delete button.
|
|
12
44
|
*/
|
|
@@ -28,9 +60,21 @@ export declare class Messages extends ComponentMessages {
|
|
|
28
60
|
*/
|
|
29
61
|
confirmationDialogTitle: string;
|
|
30
62
|
/**
|
|
31
|
-
* The text of the
|
|
63
|
+
* The text of the DropDownButton in the AddTask component.
|
|
32
64
|
*/
|
|
33
|
-
|
|
65
|
+
addTaskText: string;
|
|
66
|
+
/**
|
|
67
|
+
* The text of the `Add Child` option in the AddTask component.
|
|
68
|
+
*/
|
|
69
|
+
addChildText: string;
|
|
70
|
+
/**
|
|
71
|
+
* The text of the `Add Above` option in the AddTask component.
|
|
72
|
+
*/
|
|
73
|
+
addAboveText: string;
|
|
74
|
+
/**
|
|
75
|
+
* The text of the `Add Below` option in the AddTask component.
|
|
76
|
+
*/
|
|
77
|
+
addBelowText: string;
|
|
34
78
|
/**
|
|
35
79
|
* The text of the task editing dialog `Cancel` button.
|
|
36
80
|
*/
|
|
@@ -10,6 +10,38 @@ import { ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
|
10
10
|
*/
|
|
11
11
|
export class Messages extends ComponentMessages {
|
|
12
12
|
}
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
Input(),
|
|
15
|
+
tslib_1.__metadata("design:type", String)
|
|
16
|
+
], Messages.prototype, "taskEditingGeneralTabTitle", void 0);
|
|
17
|
+
tslib_1.__decorate([
|
|
18
|
+
Input(),
|
|
19
|
+
tslib_1.__metadata("design:type", String)
|
|
20
|
+
], Messages.prototype, "taskEditingPredecessorsTabTitle", void 0);
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
Input(),
|
|
23
|
+
tslib_1.__metadata("design:type", String)
|
|
24
|
+
], Messages.prototype, "taskEditingSuccessorsTabTitle", void 0);
|
|
25
|
+
tslib_1.__decorate([
|
|
26
|
+
Input(),
|
|
27
|
+
tslib_1.__metadata("design:type", String)
|
|
28
|
+
], Messages.prototype, "taskEditingDependenciesAddButtonText", void 0);
|
|
29
|
+
tslib_1.__decorate([
|
|
30
|
+
Input(),
|
|
31
|
+
tslib_1.__metadata("design:type", String)
|
|
32
|
+
], Messages.prototype, "taskEditingDependenciesRemoveButtonText", void 0);
|
|
33
|
+
tslib_1.__decorate([
|
|
34
|
+
Input(),
|
|
35
|
+
tslib_1.__metadata("design:type", String)
|
|
36
|
+
], Messages.prototype, "taskEditingDependenciesGridNameColumnTitle", void 0);
|
|
37
|
+
tslib_1.__decorate([
|
|
38
|
+
Input(),
|
|
39
|
+
tslib_1.__metadata("design:type", String)
|
|
40
|
+
], Messages.prototype, "taskEditingDependenciesGridTypeColumnTitle", void 0);
|
|
41
|
+
tslib_1.__decorate([
|
|
42
|
+
Input(),
|
|
43
|
+
tslib_1.__metadata("design:type", String)
|
|
44
|
+
], Messages.prototype, "deleteButtonText", void 0);
|
|
13
45
|
tslib_1.__decorate([
|
|
14
46
|
Input(),
|
|
15
47
|
tslib_1.__metadata("design:type", String)
|
|
@@ -33,7 +65,19 @@ tslib_1.__decorate([
|
|
|
33
65
|
tslib_1.__decorate([
|
|
34
66
|
Input(),
|
|
35
67
|
tslib_1.__metadata("design:type", String)
|
|
36
|
-
], Messages.prototype, "
|
|
68
|
+
], Messages.prototype, "addTaskText", void 0);
|
|
69
|
+
tslib_1.__decorate([
|
|
70
|
+
Input(),
|
|
71
|
+
tslib_1.__metadata("design:type", String)
|
|
72
|
+
], Messages.prototype, "addChildText", void 0);
|
|
73
|
+
tslib_1.__decorate([
|
|
74
|
+
Input(),
|
|
75
|
+
tslib_1.__metadata("design:type", String)
|
|
76
|
+
], Messages.prototype, "addAboveText", void 0);
|
|
77
|
+
tslib_1.__decorate([
|
|
78
|
+
Input(),
|
|
79
|
+
tslib_1.__metadata("design:type", String)
|
|
80
|
+
], Messages.prototype, "addBelowText", void 0);
|
|
37
81
|
tslib_1.__decorate([
|
|
38
82
|
Input(),
|
|
39
83
|
tslib_1.__metadata("design:type", String)
|
|
@@ -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 { TaskEditItem } from "./task-edit-event.interface";
|
|
6
|
+
/**
|
|
7
|
+
* The event data of the [`taskAdd`]({% slug api_gantt_ganttcomponent %}#toc-taskadd) event.
|
|
8
|
+
*/
|
|
9
|
+
export interface TaskAddEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The currently selected Gantt task.
|
|
12
|
+
*/
|
|
13
|
+
selectedItem: TaskEditItem | null;
|
|
14
|
+
/**
|
|
15
|
+
* The type of the add action. The built-in types are `addTask`, `addChild`, `addAbove`, and `addBelow`.
|
|
16
|
+
*/
|
|
17
|
+
actionType: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The interface of the AddTask DropDownButton options.
|
|
21
|
+
*/
|
|
22
|
+
export interface GanttAddTaskActionItem {
|
|
23
|
+
/**
|
|
24
|
+
* The text of the respective DropDownButton option.
|
|
25
|
+
*/
|
|
26
|
+
text: string;
|
|
27
|
+
/**
|
|
28
|
+
* The type of action associated with selecting the respective DropDownButton option.
|
|
29
|
+
*/
|
|
30
|
+
type: string;
|
|
31
|
+
}
|
|
File without changes
|
|
@@ -16,7 +16,6 @@ export { DependencyType } from './dependency-type.enum';
|
|
|
16
16
|
export { TimelineViewType } from './timeline-view';
|
|
17
17
|
export { SortSettings } from './sort-settings';
|
|
18
18
|
export { ColumnSortSettings } from './sort-settings';
|
|
19
|
-
export { AddEvent } from './events/add-event.interface';
|
|
20
19
|
export { ClickEvent } from './events/click-event.interface';
|
|
21
20
|
export { EditEvent } from './events/edit-event.interface';
|
|
22
21
|
export { RemoveEvent } from './events/remove-event.interface';
|
|
@@ -31,9 +30,11 @@ export { DataStateChangeEvent } from './events/data-state-change-event.interface
|
|
|
31
30
|
export { CellClickEvent } from './events/cell-click-event.interface';
|
|
32
31
|
export { CellCloseEvent } from './events/cell-close-event.interface';
|
|
33
32
|
export { TaskClickEvent } from './events/task-click-event.interface';
|
|
33
|
+
export { TaskAddEvent, GanttAddTaskActionItem } from './events/task-add-event.interface';
|
|
34
34
|
export { TaskEditEvent } from './events/task-edit-event.interface';
|
|
35
35
|
export { TaskEditItem } from './events/task-edit-event.interface';
|
|
36
36
|
export { ColumnLockedChangeEvent } from './events/column-locked-change-event.interface';
|
|
37
37
|
export { ColumnReorderEvent } from './events/column-reorder-event.interface';
|
|
38
38
|
export { ColumnResizeEvent } from './events/column-resize-event.interface';
|
|
39
39
|
export { ColumnVisibilityChangeEvent } from './events/column-visibility-change-event.interface';
|
|
40
|
+
export { ToolbarPosition, ToolbarSettings } from './toolbar-settings';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* The position at which the Gantt toolbar or any of its inner tools is rendered. Defaults to `'top'`.
|
|
7
|
+
* The possible values are `'top'`, `'bottom'`, `'both'`, and `'none'`.
|
|
8
|
+
*/
|
|
9
|
+
export declare type ToolbarPosition = 'top' | 'bottom' | 'both' | 'none';
|
|
10
|
+
/**
|
|
11
|
+
* The configuration of the toolbar position and content.
|
|
12
|
+
*/
|
|
13
|
+
export interface ToolbarSettings {
|
|
14
|
+
/**
|
|
15
|
+
* The position of the toolbar(s).
|
|
16
|
+
* @default 'top'
|
|
17
|
+
*/
|
|
18
|
+
position?: ToolbarPosition;
|
|
19
|
+
/**
|
|
20
|
+
* The position of the toolbar(s) where the [`AddTaskComponent`]({% slug api_gantt_ganttaddtaskcomponent %}) is rendered.
|
|
21
|
+
* @default 'none'
|
|
22
|
+
*/
|
|
23
|
+
addTaskTool?: ToolbarPosition;
|
|
24
|
+
/**
|
|
25
|
+
* The position of the toolbar(s) where the [`ViewSelectorComponent`](api_gantt_viewselectorcomponent) is rendered.
|
|
26
|
+
* @default 'top'
|
|
27
|
+
*/
|
|
28
|
+
viewSelectorTool?: ToolbarPosition;
|
|
29
|
+
}
|
|
File without changes
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-gantt',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1639476447,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ToolbarPosition } from '
|
|
5
|
+
import { ToolbarPosition } from '../models/toolbar-settings';
|
|
6
6
|
import { TemplateRef } from '@angular/core';
|
|
7
7
|
/**
|
|
8
8
|
* Represents the toolbar template of the Gantt.
|
|
@@ -13,6 +13,8 @@ export declare class ToolbarComponent {
|
|
|
13
13
|
gantt: GanttComponent;
|
|
14
14
|
private scrollSyncService;
|
|
15
15
|
context: any;
|
|
16
|
+
showAddTask: boolean;
|
|
17
|
+
showViewSelector: boolean;
|
|
16
18
|
position: 'top' | 'bottom';
|
|
17
19
|
readonly toolbarTemplateRef: TemplateRef<any>;
|
|
18
20
|
readonly renderTemplate: boolean;
|
|
@@ -36,6 +36,14 @@ let ToolbarComponent = class ToolbarComponent {
|
|
|
36
36
|
this.scrollSyncService.resetTimelineScrollLeft();
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
+
tslib_1.__decorate([
|
|
40
|
+
Input(),
|
|
41
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
42
|
+
], ToolbarComponent.prototype, "showAddTask", void 0);
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
Input(),
|
|
45
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
46
|
+
], ToolbarComponent.prototype, "showViewSelector", void 0);
|
|
39
47
|
tslib_1.__decorate([
|
|
40
48
|
Input(),
|
|
41
49
|
tslib_1.__metadata("design:type", String),
|
|
@@ -46,8 +54,10 @@ ToolbarComponent = tslib_1.__decorate([
|
|
|
46
54
|
selector: 'kendo-gantt-toolbar',
|
|
47
55
|
template: `
|
|
48
56
|
<ng-container *ngIf="!renderTemplate">
|
|
57
|
+
<kendo-gantt-add-task *ngIf="showAddTask"></kendo-gantt-add-task>
|
|
49
58
|
<span class="k-spacer k-toolbar-spacer"></span>
|
|
50
59
|
<kendo-gantt-view-selector
|
|
60
|
+
*ngIf="showViewSelector"
|
|
51
61
|
[views]="gantt.viewTypes"
|
|
52
62
|
[activeView]="gantt.activeView"
|
|
53
63
|
(activeViewChange)="onViewChange($event)"></kendo-gantt-view-selector>
|