@progress/kendo-angular-gantt 0.2.0-dev.202111231320 → 0.2.0-dev.202111241002
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 +2 -2
- package/dist/cdn/main.js +2 -2
- package/dist/es/common/default-callbacks.js +4 -0
- package/dist/es/gantt.component.js +187 -32
- package/dist/es/gantt.module.js +3 -1
- package/dist/es/main.js +1 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/rendering/gantt-milestone-task.component.js +1 -1
- package/dist/es/rendering/gantt-summary-task.component.js +1 -1
- package/dist/es/rendering/gantt-task-base.js +8 -4
- package/dist/es/rendering/gantt-task.component.js +1 -1
- package/dist/es/rendering/gantt-tasks-table-body.component.js +3 -3
- package/dist/es/selection/selectable.directive.js +141 -0
- package/dist/es/selection/selection-change-event.js +4 -0
- package/dist/es/timeline/gantt-timeline.component.js +5 -1
- package/dist/es/utils.js +5 -1
- package/dist/es2015/common/default-callbacks.d.ts +4 -0
- package/dist/es2015/common/default-callbacks.js +4 -0
- package/dist/es2015/gantt.component.d.ts +66 -18
- package/dist/es2015/gantt.component.js +191 -34
- package/dist/es2015/gantt.module.js +3 -1
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/main.d.ts +2 -0
- package/dist/es2015/main.js +1 -0
- package/dist/es2015/models/events/cell-click-event.interface.d.ts +31 -8
- package/dist/es2015/models/events/task-click-event.interface.d.ts +13 -5
- package/dist/es2015/models/models.d.ts +2 -0
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/rendering/gantt-milestone-task.component.js +1 -0
- package/dist/es2015/rendering/gantt-summary-task.component.js +1 -0
- package/dist/es2015/rendering/gantt-task-base.d.ts +2 -1
- package/dist/es2015/rendering/gantt-task-base.js +8 -4
- package/dist/es2015/rendering/gantt-task.component.js +1 -0
- package/dist/es2015/rendering/gantt-tasks-table-body.component.d.ts +1 -1
- package/dist/es2015/rendering/gantt-tasks-table-body.component.js +5 -2
- package/dist/es2015/selection/selectable.directive.d.ts +42 -0
- package/dist/es2015/selection/selectable.directive.js +122 -0
- package/dist/es2015/selection/selection-change-event.d.ts +25 -0
- package/dist/es2015/selection/selection-change-event.js +4 -0
- package/dist/es2015/timeline/gantt-timeline.component.d.ts +1 -0
- package/dist/es2015/timeline/gantt-timeline.component.js +5 -0
- package/dist/es2015/utils.d.ts +5 -0
- package/dist/es2015/utils.js +5 -1
- package/dist/fesm2015/index.js +334 -39
- package/dist/fesm5/index.js +347 -42
- package/dist/npm/common/default-callbacks.js +4 -0
- package/dist/npm/gantt.component.js +187 -32
- package/dist/npm/gantt.module.js +3 -1
- package/dist/npm/main.js +2 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/rendering/gantt-milestone-task.component.js +1 -1
- package/dist/npm/rendering/gantt-summary-task.component.js +1 -1
- package/dist/npm/rendering/gantt-task-base.js +8 -4
- package/dist/npm/rendering/gantt-task.component.js +1 -1
- package/dist/npm/rendering/gantt-tasks-table-body.component.js +3 -3
- package/dist/npm/selection/selectable.directive.js +143 -0
- package/dist/npm/selection/selection-change-event.js +6 -0
- package/dist/npm/timeline/gantt-timeline.component.js +5 -1
- package/dist/npm/utils.js +4 -0
- package/dist/systemjs/kendo-angular-gantt.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,141 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
+
import { Directive, Input, Output, EventEmitter } from '@angular/core';
|
|
7
|
+
import { getter } from '@progress/kendo-common';
|
|
8
|
+
import { GanttComponent } from '../gantt.component';
|
|
9
|
+
import { isPresent, isString } from '../utils';
|
|
10
|
+
/**
|
|
11
|
+
* A directive which handles the [`selectionChange`]({% slug api_gantt_ganttcomponent %}#toc-selectionchange) event of the Gantt
|
|
12
|
+
* ([see example]({% slug selection_gantt %}#toc-built-in-directive))
|
|
13
|
+
*/
|
|
14
|
+
var SelectableDirective = /** @class */ (function () {
|
|
15
|
+
function SelectableDirective(gantt) {
|
|
16
|
+
this.gantt = gantt;
|
|
17
|
+
/**
|
|
18
|
+
* Fires when the selected keys are changed.
|
|
19
|
+
*/
|
|
20
|
+
this.selectedKeysChange = new EventEmitter();
|
|
21
|
+
this.state = new Set();
|
|
22
|
+
this.isSelected = this.isSelected.bind(this);
|
|
23
|
+
this.selectionChange = this.selectionChange.bind(this);
|
|
24
|
+
this.selectable = true;
|
|
25
|
+
}
|
|
26
|
+
Object.defineProperty(SelectableDirective.prototype, "selectable", {
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
set: function (value) {
|
|
31
|
+
if (value) {
|
|
32
|
+
this.gantt.isSelected = this.isSelected;
|
|
33
|
+
this.subscribeSelection();
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
this.gantt.isSelected = function () { return false; };
|
|
37
|
+
this.unsubscribeSelection();
|
|
38
|
+
}
|
|
39
|
+
this.gantt.selectable = value;
|
|
40
|
+
this.gantt.updateView();
|
|
41
|
+
},
|
|
42
|
+
enumerable: true,
|
|
43
|
+
configurable: true
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(SelectableDirective.prototype, "selectedKeys", {
|
|
46
|
+
/**
|
|
47
|
+
* Sets the selected keys.
|
|
48
|
+
*/
|
|
49
|
+
set: function (value) {
|
|
50
|
+
if (isPresent(value) && value === this.lastChange) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
// prevent multiple items displayed as selected as multiple selection still not supported fully
|
|
54
|
+
var keys = (value || []).slice(0, 1);
|
|
55
|
+
this.state = new Set(keys);
|
|
56
|
+
this.gantt.updateView();
|
|
57
|
+
},
|
|
58
|
+
enumerable: true,
|
|
59
|
+
configurable: true
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(SelectableDirective.prototype, "itemKey", {
|
|
62
|
+
/**
|
|
63
|
+
* The field name or a function that specifies the data item unique key identifier.
|
|
64
|
+
* By default, the string field `id` is used.
|
|
65
|
+
*/
|
|
66
|
+
set: function (value) {
|
|
67
|
+
if (isString(value)) {
|
|
68
|
+
this._keyGetter = getter(value);
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
this._keyGetter = value;
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
enumerable: true,
|
|
75
|
+
configurable: true
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(SelectableDirective.prototype, "keyGetter", {
|
|
78
|
+
get: function () {
|
|
79
|
+
return this._keyGetter || this.gantt.idGetter;
|
|
80
|
+
},
|
|
81
|
+
enumerable: true,
|
|
82
|
+
configurable: true
|
|
83
|
+
});
|
|
84
|
+
SelectableDirective.prototype.ngOnDestroy = function () {
|
|
85
|
+
this.unsubscribeSelection();
|
|
86
|
+
};
|
|
87
|
+
SelectableDirective.prototype.isSelected = function (dataItem) {
|
|
88
|
+
return this.state.has(this.keyGetter(dataItem));
|
|
89
|
+
};
|
|
90
|
+
SelectableDirective.prototype.selectionChange = function (_a) {
|
|
91
|
+
var _this = this;
|
|
92
|
+
var action = _a.action, items = _a.items;
|
|
93
|
+
this.state.clear();
|
|
94
|
+
if (action === 'select') {
|
|
95
|
+
items.forEach(function (item) { return _this.state.add(_this.keyGetter(item)); });
|
|
96
|
+
}
|
|
97
|
+
this.emitSelectedItemsChange();
|
|
98
|
+
};
|
|
99
|
+
SelectableDirective.prototype.emitSelectedItemsChange = function () {
|
|
100
|
+
this.lastChange = Array.from(this.state);
|
|
101
|
+
this.selectedKeysChange.emit(this.lastChange);
|
|
102
|
+
};
|
|
103
|
+
SelectableDirective.prototype.subscribeSelection = function () {
|
|
104
|
+
this.unsubscribeSelection();
|
|
105
|
+
this.selectionSubscription = this.gantt.selectionChange.subscribe(this.selectionChange);
|
|
106
|
+
};
|
|
107
|
+
SelectableDirective.prototype.unsubscribeSelection = function () {
|
|
108
|
+
if (this.selectionSubscription) {
|
|
109
|
+
this.selectionSubscription.unsubscribe();
|
|
110
|
+
this.selectionSubscription = null;
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
tslib_1.__decorate([
|
|
114
|
+
Input(),
|
|
115
|
+
tslib_1.__metadata("design:type", Boolean),
|
|
116
|
+
tslib_1.__metadata("design:paramtypes", [Boolean])
|
|
117
|
+
], SelectableDirective.prototype, "selectable", null);
|
|
118
|
+
tslib_1.__decorate([
|
|
119
|
+
Input(),
|
|
120
|
+
tslib_1.__metadata("design:type", Array),
|
|
121
|
+
tslib_1.__metadata("design:paramtypes", [Array])
|
|
122
|
+
], SelectableDirective.prototype, "selectedKeys", null);
|
|
123
|
+
tslib_1.__decorate([
|
|
124
|
+
Output(),
|
|
125
|
+
tslib_1.__metadata("design:type", EventEmitter)
|
|
126
|
+
], SelectableDirective.prototype, "selectedKeysChange", void 0);
|
|
127
|
+
tslib_1.__decorate([
|
|
128
|
+
Input(),
|
|
129
|
+
tslib_1.__metadata("design:type", Object),
|
|
130
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
131
|
+
], SelectableDirective.prototype, "itemKey", null);
|
|
132
|
+
SelectableDirective = tslib_1.__decorate([
|
|
133
|
+
Directive({
|
|
134
|
+
exportAs: 'kendoGanttSelectable',
|
|
135
|
+
selector: '[kendoGanttSelectable]'
|
|
136
|
+
}),
|
|
137
|
+
tslib_1.__metadata("design:paramtypes", [GanttComponent])
|
|
138
|
+
], SelectableDirective);
|
|
139
|
+
return SelectableDirective;
|
|
140
|
+
}());
|
|
141
|
+
export { SelectableDirective };
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
+
*-------------------------------------------------------------------------------------------*/
|
|
@@ -103,6 +103,10 @@ var GanttTimelineComponent = /** @class */ (function () {
|
|
|
103
103
|
Input(),
|
|
104
104
|
tslib_1.__metadata("design:type", Function)
|
|
105
105
|
], GanttTimelineComponent.prototype, "taskClass", void 0);
|
|
106
|
+
tslib_1.__decorate([
|
|
107
|
+
Input(),
|
|
108
|
+
tslib_1.__metadata("design:type", Function)
|
|
109
|
+
], GanttTimelineComponent.prototype, "isTaskSelected", void 0);
|
|
106
110
|
tslib_1.__decorate([
|
|
107
111
|
Input(),
|
|
108
112
|
tslib_1.__metadata("design:type", Function)
|
|
@@ -114,7 +118,7 @@ var GanttTimelineComponent = /** @class */ (function () {
|
|
|
114
118
|
GanttTimelineComponent = tslib_1.__decorate([
|
|
115
119
|
Component({
|
|
116
120
|
selector: 'kendo-gantt-timeline',
|
|
117
|
-
template: "\n <div class=\"k-timeline k-grid k-widget\">\n <div class=\"k-grid-header\">\n <div #timelineHeaderWrap class=\"k-grid-header-wrap\">\n <table\n role=\"presentation\"\n [style.width.px]=\"tableWidth\"\n >\n <tbody\n kendoGanttHeaderTableBody\n [groupSlots]=\"groupSlots\"\n [slots]=\"slots\">\n </tbody>\n </table>\n </div>\n </div>\n <div #timelineContent class=\"k-grid-content\">\n <div class=\"k-gantt-tables\">\n <table\n class=\"k-gantt-rows\"\n [style.width.px]=\"tableWidth\"\n role=\"presentation\"\n >\n <tbody>\n <tr *ngFor=\"let item of rows; let i = index;\"\n [class.k-alt]=\"i % 2\"\n >\n <td></td>\n </tr>\n </tbody>\n </table>\n\n <table\n #timelineColumns\n class=\"k-gantt-columns\"\n role=\"presentation\"\n [style.width.px]=\"tableWidth\"\n >\n <colgroup>\n <col *ngFor=\"let item of slots\">\n </colgroup>\n\n <tbody>\n <tr>\n <td *ngFor=\"let item of slots\"\n [class.k-nonwork-hour]=\"isNonWorking(item)\"\n >\n </td>\n </tr>\n </tbody>\n </table>\n\n <table\n #tasksContainer\n class=\"k-gantt-tasks\"\n role=\"presentation\"\n style=\"border-collapse: collapse;\"\n [style.width.px]=\"tableWidth\"\n >\n <tbody\n kendoGanttTasksTableBody\n [rows]=\"rows\"\n [activeView]=\"activeView\"\n [taskContentTemplate]=\"taskContentTemplate\"\n [taskTemplate]=\"taskTemplate\"\n [summaryTaskTemplate]=\"summaryTaskTemplate\"\n [taskClass]=\"taskClass\"\n [hasChildren]=\"hasChildren\"\n >\n </tbody>\n </table>\n </div>\n <svg class=\"k-gantt-dependencies-svg\">\n <polyline\n *ngFor=\"let dependency of dependencies\"\n kendoGanttDependency\n [dependency]=\"dependency\"\n />\n </svg>\n </div>\n </div>\n "
|
|
121
|
+
template: "\n <div class=\"k-timeline k-grid k-widget\">\n <div class=\"k-grid-header\">\n <div #timelineHeaderWrap class=\"k-grid-header-wrap\">\n <table\n role=\"presentation\"\n [style.width.px]=\"tableWidth\"\n >\n <tbody\n kendoGanttHeaderTableBody\n [groupSlots]=\"groupSlots\"\n [slots]=\"slots\">\n </tbody>\n </table>\n </div>\n </div>\n <div #timelineContent class=\"k-grid-content\">\n <div class=\"k-gantt-tables\">\n <table\n class=\"k-gantt-rows\"\n [style.width.px]=\"tableWidth\"\n role=\"presentation\"\n >\n <tbody>\n <tr *ngFor=\"let item of rows; let i = index;\"\n [class.k-alt]=\"i % 2\"\n >\n <td></td>\n </tr>\n </tbody>\n </table>\n\n <table\n #timelineColumns\n class=\"k-gantt-columns\"\n role=\"presentation\"\n [style.width.px]=\"tableWidth\"\n >\n <colgroup>\n <col *ngFor=\"let item of slots\">\n </colgroup>\n\n <tbody>\n <tr>\n <td *ngFor=\"let item of slots\"\n [class.k-nonwork-hour]=\"isNonWorking(item)\"\n >\n </td>\n </tr>\n </tbody>\n </table>\n\n <table\n #tasksContainer\n class=\"k-gantt-tasks\"\n role=\"presentation\"\n style=\"border-collapse: collapse;\"\n [style.width.px]=\"tableWidth\"\n >\n <tbody\n kendoGanttTasksTableBody\n [rows]=\"rows\"\n [activeView]=\"activeView\"\n [taskContentTemplate]=\"taskContentTemplate\"\n [taskTemplate]=\"taskTemplate\"\n [summaryTaskTemplate]=\"summaryTaskTemplate\"\n [taskClass]=\"taskClass\"\n [hasChildren]=\"hasChildren\"\n [isTaskSelected]=\"isTaskSelected\"\n >\n </tbody>\n </table>\n </div>\n <svg class=\"k-gantt-dependencies-svg\">\n <polyline\n *ngFor=\"let dependency of dependencies\"\n kendoGanttDependency\n [dependency]=\"dependency\"\n />\n </svg>\n </div>\n </div>\n "
|
|
118
122
|
}),
|
|
119
123
|
tslib_1.__metadata("design:paramtypes", [ScrollSyncService,
|
|
120
124
|
DependencyDomService,
|
package/dist/es/utils.js
CHANGED
|
@@ -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 {
|
|
5
|
+
import { isDocumentAvailable, closestInScope, matchesClasses } from '@progress/kendo-angular-common';
|
|
6
6
|
import { addDays, addWeeks, cloneDate, firstDayInWeek } from '@progress/kendo-date-math';
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
@@ -106,6 +106,10 @@ export var isColumnGroup = function (column) { return column.isColumnGroup; };
|
|
|
106
106
|
* @hidden
|
|
107
107
|
*/
|
|
108
108
|
export var isNumber = function (contender) { return typeof contender === 'number' && !isNaN(contender); };
|
|
109
|
+
/**
|
|
110
|
+
* @hidden
|
|
111
|
+
*/
|
|
112
|
+
export var isString = function (contender) { return typeof contender === 'string'; };
|
|
109
113
|
/**
|
|
110
114
|
* @hidden
|
|
111
115
|
*
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { EventEmitter, OnChanges, QueryList, SimpleChanges, Renderer2, AfterContentInit, OnDestroy, ElementRef, NgZone } from '@angular/core';
|
|
6
|
-
import {
|
|
7
|
-
import { TreeListComponent } from '@progress/kendo-angular-treelist';
|
|
6
|
+
import { FormGroup } from '@angular/forms';
|
|
7
|
+
import { TreeListComponent, DataBoundTreeComponent, ExpandableTreeComponent, SelectionChangeEvent as TreeListSelectionChangeEvent, CellClickEvent as TreeListCellClickEvent } from '@progress/kendo-angular-treelist';
|
|
8
8
|
import { CompositeFilterDescriptor, SortDescriptor } from '@progress/kendo-data-query';
|
|
9
|
+
import { Day } from '@progress/kendo-date-math';
|
|
9
10
|
import { Observable } from 'rxjs';
|
|
10
11
|
import { GanttColumnBase } from './columns/columns';
|
|
11
|
-
import { DataStateChangeEvent, ColumnMenuSettings, RowClassFn, TaskClassFn, ColumnVisibilityChangeEvent, ColumnResizeEvent, ColumnLockedChangeEvent, ColumnReorderEvent, ColumnReorderConfig, GanttTaskModelFields, GanttDependencyModelFields, SortSettings } from './models/models';
|
|
12
|
+
import { DataStateChangeEvent, ColumnMenuSettings, RowClassFn, TaskClassFn, ColumnVisibilityChangeEvent, ColumnResizeEvent, ColumnLockedChangeEvent, ColumnReorderEvent, ColumnReorderConfig, GanttTaskModelFields, GanttDependencyModelFields, SortSettings, CellClickEvent, TaskClickEvent } from './models/models';
|
|
12
13
|
import { TimelineViewService } from './timeline/timeline-view.service';
|
|
13
14
|
import { TimelineViewType } from './models/timeline-view';
|
|
14
15
|
import { TimelineBaseViewService } from './timeline/timeline-base-view.service';
|
|
@@ -26,11 +27,8 @@ import { ToolbarTemplateDirective } from './toolbar/toolbar-template.directive';
|
|
|
26
27
|
import { ToolbarPosition } from './models/toolbar-position';
|
|
27
28
|
import { ExpandEvent } from './expanded-state/expand-event';
|
|
28
29
|
import { ViewBase } from './timeline/view-base';
|
|
29
|
-
import {
|
|
30
|
-
import { FormGroup } from '@angular/forms';
|
|
31
|
-
import { TaskClickEvent } from './models/events/task-click-event.interface';
|
|
30
|
+
import { SelectionChangeEvent } from './selection/selection-change-event';
|
|
32
31
|
import { TaskEditEvent } from './models/events/task-edit-event.interface';
|
|
33
|
-
import { CellClickEvent } from './models/events/cell-click-event.interface';
|
|
34
32
|
import { CellCloseEvent } from './models/events/cell-close-event.interface';
|
|
35
33
|
/**
|
|
36
34
|
* Represents the Kendo UI Gantt component for Angular.
|
|
@@ -163,6 +161,27 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
|
|
|
163
161
|
* > The task data items should either conform to the [`GanttTask`]({% slug api_gantt_gantttask %}) interface, or a [`taskModelFields`]({% slug api_gantt_ganttcomponent %}#toc-taskmodelfields) object has to be provided.
|
|
164
162
|
*/
|
|
165
163
|
data: any[];
|
|
164
|
+
/**
|
|
165
|
+
* Provides a callback that determines if the given task is selected ([see example]({% slug selection_gantt %}#toc-custom-selection))
|
|
166
|
+
*
|
|
167
|
+
* > The [`selectable`]({% slug gantt_api_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
|
|
168
|
+
*/
|
|
169
|
+
isSelected: (dataItem: object) => boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Fires when the Gantt selection is changed through user interaction.
|
|
172
|
+
*
|
|
173
|
+
* Holds data about the affected [`items`]({% slug api_gantt_selectionchangeevent %}#toc-items) and the attempted [`action`]({% slug api_gantt_selectionchangeevent %}#toc-action):
|
|
174
|
+
* - `select` - Triggered on `click` or `ctrl + click` on deselected items.
|
|
175
|
+
* - `remove` - Triggered on `ctrl + click` on selected items.
|
|
176
|
+
*/
|
|
177
|
+
selectionChange: EventEmitter<SelectionChangeEvent>;
|
|
178
|
+
/**
|
|
179
|
+
* Enables or disables the Gantt selection mechanism ([see example]({% slug selection_gantt %}#toc-custom-selection)).
|
|
180
|
+
*
|
|
181
|
+
* > When set to `true`, the [`isSelected`]({% slug gantt_api_ganttcomponent %}#toc-isselected) callback has to be provided.
|
|
182
|
+
* > When applied, the [`SelectableDirective`]({% slug api_gantt_selectabledirective %}) sets `selectable` to `true` internally.
|
|
183
|
+
*/
|
|
184
|
+
selectable: boolean;
|
|
166
185
|
/**
|
|
167
186
|
* The position of the toolbar.
|
|
168
187
|
*
|
|
@@ -364,6 +383,14 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
|
|
|
364
383
|
* Fires when the user changes the locked state of the columns from the column menu or by reordering the columns.
|
|
365
384
|
*/
|
|
366
385
|
columnLockedChange: EventEmitter<ColumnLockedChangeEvent>;
|
|
386
|
+
/**
|
|
387
|
+
* Fires when a cell is clicked.
|
|
388
|
+
*/
|
|
389
|
+
cellClick: EventEmitter<CellClickEvent>;
|
|
390
|
+
/**
|
|
391
|
+
* Fires when a task is clicked.
|
|
392
|
+
*/
|
|
393
|
+
taskClick: EventEmitter<TaskClickEvent>;
|
|
367
394
|
/**
|
|
368
395
|
* @hidden
|
|
369
396
|
*/
|
|
@@ -388,6 +415,13 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
|
|
|
388
415
|
* @hidden
|
|
389
416
|
*/
|
|
390
417
|
readonly viewService: TimelineBaseViewService;
|
|
418
|
+
/**
|
|
419
|
+
* @hidden
|
|
420
|
+
*
|
|
421
|
+
* Retrieves the `isSelected` callback if `selectable` is set to `true`
|
|
422
|
+
* Otherwise returns the default callback, which always returns `false`.
|
|
423
|
+
*/
|
|
424
|
+
readonly isTaskSelected: (dataItem: any) => boolean;
|
|
391
425
|
/**
|
|
392
426
|
* @hidden
|
|
393
427
|
*
|
|
@@ -426,14 +460,14 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
|
|
|
426
460
|
private _rowClass;
|
|
427
461
|
private _taskClass;
|
|
428
462
|
private _activeView;
|
|
429
|
-
private
|
|
463
|
+
private lastTreeListCellClick;
|
|
430
464
|
private direction;
|
|
431
465
|
private rtl;
|
|
432
466
|
private editItem;
|
|
433
467
|
private optionChangesSubscriptions;
|
|
434
468
|
private editServiceSubscription;
|
|
435
469
|
private localizationSubscription;
|
|
436
|
-
constructor(timelineViewService: TimelineViewService, scrollSyncService: ScrollSyncService, renderer: Renderer2, mapper: MappingService, optionChangesService: OptionChangesService, dependencyDomService: DependencyDomService, editService: EditService, localizationService: LocalizationService, hostElement: ElementRef
|
|
470
|
+
constructor(timelineViewService: TimelineViewService, scrollSyncService: ScrollSyncService, renderer: Renderer2, mapper: MappingService, optionChangesService: OptionChangesService, dependencyDomService: DependencyDomService, editService: EditService, localizationService: LocalizationService, hostElement: ElementRef<HTMLElement>, zone: NgZone);
|
|
437
471
|
ngOnChanges(changes: SimpleChanges): void;
|
|
438
472
|
ngAfterViewInit(): void;
|
|
439
473
|
ngAfterContentInit(): void;
|
|
@@ -468,6 +502,10 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
|
|
|
468
502
|
* @param {ColumnReorderConfig} options - Additional options.
|
|
469
503
|
*/
|
|
470
504
|
reorderColumn(source: GanttColumnBase, destIndex: number, options?: ColumnReorderConfig): void;
|
|
505
|
+
/**
|
|
506
|
+
* Updates the data of the Gantt and forces row-related callbacks to be called anew.
|
|
507
|
+
*/
|
|
508
|
+
updateView(): void;
|
|
471
509
|
/**
|
|
472
510
|
* Opens the task editing dialog.
|
|
473
511
|
*/
|
|
@@ -500,12 +538,6 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
|
|
|
500
538
|
* @hidden
|
|
501
539
|
*/
|
|
502
540
|
onTimelineCollapsedChange(collapsed: boolean): void;
|
|
503
|
-
/**
|
|
504
|
-
* @hidden
|
|
505
|
-
*
|
|
506
|
-
* Used by the GanttExpandableDirective.
|
|
507
|
-
*/
|
|
508
|
-
updateView(): void;
|
|
509
541
|
/**
|
|
510
542
|
* @hidden
|
|
511
543
|
*/
|
|
@@ -525,11 +557,23 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
|
|
|
525
557
|
/**
|
|
526
558
|
* @hidden
|
|
527
559
|
*/
|
|
528
|
-
|
|
560
|
+
handleTimelineRightClick(event: PointerEvent): void;
|
|
561
|
+
/**
|
|
562
|
+
* @hidden
|
|
563
|
+
*/
|
|
564
|
+
handleTimelineClick(event: PointerEvent): void;
|
|
565
|
+
/**
|
|
566
|
+
* @hidden
|
|
567
|
+
*/
|
|
568
|
+
handleTreeListDoubleClick(event: PointerEvent): void;
|
|
569
|
+
/**
|
|
570
|
+
* @hidden
|
|
571
|
+
*/
|
|
572
|
+
handleTreeListSelectionChange(event: TreeListSelectionChangeEvent): void;
|
|
529
573
|
/**
|
|
530
574
|
* @hidden
|
|
531
575
|
*/
|
|
532
|
-
|
|
576
|
+
handleTreeListCellClick(event: TreeListCellClickEvent): void;
|
|
533
577
|
/**
|
|
534
578
|
* @hidden
|
|
535
579
|
*/
|
|
@@ -541,15 +585,19 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
|
|
|
541
585
|
/**
|
|
542
586
|
* @hidden
|
|
543
587
|
*/
|
|
544
|
-
handleTimelineDblClick(event:
|
|
588
|
+
handleTimelineDblClick(event: PointerEvent): void;
|
|
545
589
|
/**
|
|
546
590
|
* @hidden
|
|
547
591
|
*/
|
|
548
592
|
getText(token: string): string;
|
|
593
|
+
private emitTaskClick;
|
|
594
|
+
private emitSelectionChange;
|
|
549
595
|
private updateTreeListGroupClass;
|
|
550
596
|
/**
|
|
551
597
|
* Used to hide the vertical scrollbar
|
|
552
598
|
*/
|
|
553
599
|
private updateTreeListMargin;
|
|
554
600
|
private getActiveViewOptions;
|
|
601
|
+
private isSameSelection;
|
|
602
|
+
private getSelectionAction;
|
|
555
603
|
}
|