@progress/kendo-angular-gantt 0.2.0-dev.202111251410 → 0.2.1-dev.202112091741
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 +1 -1
- package/dist/es/expanded-state/expandable.directive.js +6 -4
- package/dist/es/gantt.component.js +9 -5
- package/dist/es/index.js +1 -0
- package/dist/es/models/models.js +1 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/rendering/gantt-tasks-table-body.component.js +2 -2
- package/dist/es/timeline/timeline-base-view.service.js +12 -3
- package/dist/es2015/expanded-state/expandable.directive.d.ts +2 -1
- package/dist/es2015/expanded-state/expandable.directive.js +7 -2
- package/dist/es2015/gantt.component.d.ts +6 -3
- package/dist/es2015/gantt.component.js +9 -5
- 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/models/events/cell-close-event.interface.d.ts +1 -1
- package/dist/es2015/models/events/task-edit-event.interface.d.ts +2 -2
- package/dist/es2015/models/models.d.ts +3 -0
- package/dist/es2015/models/models.js +1 -0
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/rendering/gantt-tasks-table-body.component.js +2 -2
- package/dist/es2015/timeline/timeline-base-view.service.d.ts +12 -0
- package/dist/es2015/timeline/timeline-base-view.service.js +12 -3
- package/dist/fesm2015/index.js +65 -10
- package/dist/fesm5/index.js +68 -12
- package/dist/npm/expanded-state/expandable.directive.js +5 -3
- package/dist/npm/gantt.component.js +9 -5
- package/dist/npm/index.js +2 -0
- package/dist/npm/models/models.js +2 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/rendering/gantt-tasks-table-body.component.js +1 -1
- package/dist/npm/timeline/timeline-base-view.service.js +17 -8
- package/dist/systemjs/kendo-angular-gantt.js +1 -1
- package/package.json +1 -1
|
@@ -4,14 +4,15 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as tslib_1 from "tslib";
|
|
6
6
|
import { Directive, Input } from '@angular/core';
|
|
7
|
-
import { ExpandableDirective } from '@progress/kendo-angular-treelist';
|
|
7
|
+
import { ExpandableDirective, ExpandableTreeComponent } from '@progress/kendo-angular-treelist';
|
|
8
8
|
/**
|
|
9
9
|
* A directive which controls the expanded state of the items.
|
|
10
10
|
*/
|
|
11
11
|
var GanttExpandableDirective = /** @class */ (function (_super) {
|
|
12
12
|
tslib_1.__extends(GanttExpandableDirective, _super);
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
// fixes an injection error in some builds/ng-versions (e.g. StackBlitz)
|
|
14
|
+
function GanttExpandableDirective(gantt) {
|
|
15
|
+
return _super.call(this, gantt) || this;
|
|
15
16
|
}
|
|
16
17
|
tslib_1.__decorate([
|
|
17
18
|
Input(),
|
|
@@ -21,7 +22,8 @@ var GanttExpandableDirective = /** @class */ (function (_super) {
|
|
|
21
22
|
Directive({
|
|
22
23
|
exportAs: 'kendoGanttExpandable',
|
|
23
24
|
selector: '[kendoGanttExpandable]'
|
|
24
|
-
})
|
|
25
|
+
}),
|
|
26
|
+
tslib_1.__metadata("design:paramtypes", [ExpandableTreeComponent])
|
|
25
27
|
], GanttExpandableDirective);
|
|
26
28
|
return GanttExpandableDirective;
|
|
27
29
|
}(ExpandableDirective));
|
|
@@ -120,7 +120,7 @@ var GanttComponent = /** @class */ (function () {
|
|
|
120
120
|
/**
|
|
121
121
|
* Provides a callback that determines if the given task is selected ([see example]({% slug selection_gantt %}#toc-custom-selection))
|
|
122
122
|
*
|
|
123
|
-
* > The [`selectable`]({% slug
|
|
123
|
+
* > The [`selectable`]({% slug api_gantt_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
|
|
124
124
|
*/
|
|
125
125
|
this.isSelected = isSelected;
|
|
126
126
|
/**
|
|
@@ -134,7 +134,7 @@ var GanttComponent = /** @class */ (function () {
|
|
|
134
134
|
/**
|
|
135
135
|
* Enables or disables the Gantt selection mechanism ([see example]({% slug selection_gantt %}#toc-custom-selection)).
|
|
136
136
|
*
|
|
137
|
-
* > When set to `true`, the [`isSelected`]({% slug
|
|
137
|
+
* > When set to `true`, the [`isSelected`]({% slug api_gantt_ganttcomponent %}#toc-isselected) callback has to be provided.
|
|
138
138
|
* > When applied, the [`SelectableDirective`]({% slug api_gantt_selectabledirective %}) sets `selectable` to `true` internally.
|
|
139
139
|
*/
|
|
140
140
|
this.selectable = false;
|
|
@@ -356,7 +356,6 @@ var GanttComponent = /** @class */ (function () {
|
|
|
356
356
|
_this.showConfirmationDialog = _this.showEditingDialog = false;
|
|
357
357
|
_this.editService.dataItem = _this.editService.formGroup = null;
|
|
358
358
|
_this.updateView();
|
|
359
|
-
_this.dependencyDomService.notifyChanges();
|
|
360
359
|
}));
|
|
361
360
|
this.localizationSubscription = this.localizationService.changes.subscribe(function (_a) {
|
|
362
361
|
var rtl = _a.rtl;
|
|
@@ -696,12 +695,17 @@ var GanttComponent = /** @class */ (function () {
|
|
|
696
695
|
}
|
|
697
696
|
};
|
|
698
697
|
/**
|
|
699
|
-
*
|
|
698
|
+
* Forces the TreeList to evaluate if some data items have changed and re-renders the rows information, if needed.
|
|
699
|
+
* Recalculates and re-renders the Timeline period, if needed.
|
|
700
|
+
* Redraws changed dependencies, if needed.
|
|
701
|
+
* Executes all row-related callbacks anew.
|
|
700
702
|
*/
|
|
701
703
|
GanttComponent.prototype.updateView = function () {
|
|
702
704
|
if (isPresent(this.treeList)) {
|
|
703
705
|
this.treeList.updateView();
|
|
704
706
|
}
|
|
707
|
+
this.loadTimelineData();
|
|
708
|
+
this.dependencyDomService.notifyChanges();
|
|
705
709
|
};
|
|
706
710
|
/**
|
|
707
711
|
* Opens the task editing dialog.
|
|
@@ -949,7 +953,7 @@ var GanttComponent = /** @class */ (function () {
|
|
|
949
953
|
items: [dataItem],
|
|
950
954
|
sender: this
|
|
951
955
|
});
|
|
952
|
-
this.updateView();
|
|
956
|
+
this.treeList.updateView();
|
|
953
957
|
};
|
|
954
958
|
GanttComponent.prototype.updateTreeListGroupClass = function (columns) {
|
|
955
959
|
if (columns === void 0) { columns = this.columns; }
|
package/dist/es/index.js
CHANGED
|
@@ -16,6 +16,7 @@ export { CustomMessagesComponent } from './localization/custom-messages.componen
|
|
|
16
16
|
export { LocalizedMessagesDirective } from './localization/localized-messages.directive';
|
|
17
17
|
export { Messages } from './localization/messages';
|
|
18
18
|
export { GanttTreeListMessagesDirective } from './localization/treelist-messages.directive';
|
|
19
|
+
export { PreventableEvent } from './models/events/preventable-event';
|
|
19
20
|
export { GanttHeaderTableBodyComponent } from './rendering/gantt-header-table-body.component';
|
|
20
21
|
export { GanttMilestoneTaskComponent } from './rendering/gantt-milestone-task.component';
|
|
21
22
|
export { GanttSummaryTaskComponent } from './rendering/gantt-summary-task.component';
|
package/dist/es/models/models.js
CHANGED
|
@@ -2,3 +2,4 @@
|
|
|
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
|
+
export { CellCloseEvent } from './events/cell-close-event.interface';
|
|
@@ -9,7 +9,7 @@ export var packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-gantt',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1639071314,
|
|
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
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as tslib_1 from "tslib";
|
|
6
6
|
import { Component, Input, TemplateRef, ViewChild, ElementRef } from '@angular/core';
|
|
7
|
-
import {
|
|
7
|
+
import { isEqual } from '@progress/kendo-date-math';
|
|
8
8
|
import { DependencyDomService } from '../dependencies/dependency-dom.service';
|
|
9
9
|
import { isPresent } from '../utils';
|
|
10
10
|
import { MappingService } from '../common/mapping.service';
|
|
@@ -28,7 +28,7 @@ var GanttTasksTableBodyComponent = /** @class */ (function () {
|
|
|
28
28
|
configurable: true
|
|
29
29
|
});
|
|
30
30
|
GanttTasksTableBodyComponent.prototype.isMileStone = function (task) {
|
|
31
|
-
return !this.hasChildren(task) &&
|
|
31
|
+
return !this.hasChildren(task) && isEqual(this.mapper.extractFromTask(task, 'start'), this.mapper.extractFromTask(task, 'end'));
|
|
32
32
|
};
|
|
33
33
|
tslib_1.__decorate([
|
|
34
34
|
ViewChild('timelineRow', { static: false }),
|
|
@@ -5,9 +5,18 @@
|
|
|
5
5
|
import { orderBy } from '@progress/kendo-data-query';
|
|
6
6
|
import { isWorkDay, isWorkHour, lastDayOfWeek } from '../utils';
|
|
7
7
|
import { addDays, firstDayInWeek, getDate, firstDayOfMonth, lastDayOfMonth, addMonths, addWeeks } from '@progress/kendo-date-math';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export var DAY_FORMAT = 'E d/MM';
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export var HOUR_FORMAT = 'HH:mm aa';
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
export var MONTH_FORMAT = 'MMM';
|
|
11
20
|
/**
|
|
12
21
|
* @hidden
|
|
13
22
|
*/
|
|
@@ -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 { ExpandableDirective } from '@progress/kendo-angular-treelist';
|
|
5
|
+
import { ExpandableDirective, ExpandableTreeComponent } from '@progress/kendo-angular-treelist';
|
|
6
6
|
/**
|
|
7
7
|
* A directive which controls the expanded state of the items.
|
|
8
8
|
*/
|
|
@@ -14,4 +14,5 @@ export declare class GanttExpandableDirective extends ExpandableDirective {
|
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
16
|
expandBy: string | ((dataItem: any) => any);
|
|
17
|
+
constructor(gantt: ExpandableTreeComponent);
|
|
17
18
|
}
|
|
@@ -4,11 +4,15 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as tslib_1 from "tslib";
|
|
6
6
|
import { Directive, Input } from '@angular/core';
|
|
7
|
-
import { ExpandableDirective } from '@progress/kendo-angular-treelist';
|
|
7
|
+
import { ExpandableDirective, ExpandableTreeComponent } from '@progress/kendo-angular-treelist';
|
|
8
8
|
/**
|
|
9
9
|
* A directive which controls the expanded state of the items.
|
|
10
10
|
*/
|
|
11
11
|
let GanttExpandableDirective = class GanttExpandableDirective extends ExpandableDirective {
|
|
12
|
+
// fixes an injection error in some builds/ng-versions (e.g. StackBlitz)
|
|
13
|
+
constructor(gantt) {
|
|
14
|
+
super(gantt);
|
|
15
|
+
}
|
|
12
16
|
};
|
|
13
17
|
tslib_1.__decorate([
|
|
14
18
|
Input(),
|
|
@@ -18,6 +22,7 @@ GanttExpandableDirective = tslib_1.__decorate([
|
|
|
18
22
|
Directive({
|
|
19
23
|
exportAs: 'kendoGanttExpandable',
|
|
20
24
|
selector: '[kendoGanttExpandable]'
|
|
21
|
-
})
|
|
25
|
+
}),
|
|
26
|
+
tslib_1.__metadata("design:paramtypes", [ExpandableTreeComponent])
|
|
22
27
|
], GanttExpandableDirective);
|
|
23
28
|
export { GanttExpandableDirective };
|
|
@@ -164,7 +164,7 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
|
|
|
164
164
|
/**
|
|
165
165
|
* Provides a callback that determines if the given task is selected ([see example]({% slug selection_gantt %}#toc-custom-selection))
|
|
166
166
|
*
|
|
167
|
-
* > The [`selectable`]({% slug
|
|
167
|
+
* > The [`selectable`]({% slug api_gantt_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
|
|
168
168
|
*/
|
|
169
169
|
isSelected: (dataItem: object) => boolean;
|
|
170
170
|
/**
|
|
@@ -178,7 +178,7 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
|
|
|
178
178
|
/**
|
|
179
179
|
* Enables or disables the Gantt selection mechanism ([see example]({% slug selection_gantt %}#toc-custom-selection)).
|
|
180
180
|
*
|
|
181
|
-
* > When set to `true`, the [`isSelected`]({% slug
|
|
181
|
+
* > When set to `true`, the [`isSelected`]({% slug api_gantt_ganttcomponent %}#toc-isselected) callback has to be provided.
|
|
182
182
|
* > When applied, the [`SelectableDirective`]({% slug api_gantt_selectabledirective %}) sets `selectable` to `true` internally.
|
|
183
183
|
*/
|
|
184
184
|
selectable: boolean;
|
|
@@ -503,7 +503,10 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
|
|
|
503
503
|
*/
|
|
504
504
|
reorderColumn(source: GanttColumnBase, destIndex: number, options?: ColumnReorderConfig): void;
|
|
505
505
|
/**
|
|
506
|
-
*
|
|
506
|
+
* Forces the TreeList to evaluate if some data items have changed and re-renders the rows information, if needed.
|
|
507
|
+
* Recalculates and re-renders the Timeline period, if needed.
|
|
508
|
+
* Redraws changed dependencies, if needed.
|
|
509
|
+
* Executes all row-related callbacks anew.
|
|
507
510
|
*/
|
|
508
511
|
updateView(): void;
|
|
509
512
|
/**
|
|
@@ -120,7 +120,7 @@ let GanttComponent = GanttComponent_1 = class GanttComponent {
|
|
|
120
120
|
/**
|
|
121
121
|
* Provides a callback that determines if the given task is selected ([see example]({% slug selection_gantt %}#toc-custom-selection))
|
|
122
122
|
*
|
|
123
|
-
* > The [`selectable`]({% slug
|
|
123
|
+
* > The [`selectable`]({% slug api_gantt_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
|
|
124
124
|
*/
|
|
125
125
|
this.isSelected = isSelected;
|
|
126
126
|
/**
|
|
@@ -134,7 +134,7 @@ let GanttComponent = GanttComponent_1 = class GanttComponent {
|
|
|
134
134
|
/**
|
|
135
135
|
* Enables or disables the Gantt selection mechanism ([see example]({% slug selection_gantt %}#toc-custom-selection)).
|
|
136
136
|
*
|
|
137
|
-
* > When set to `true`, the [`isSelected`]({% slug
|
|
137
|
+
* > When set to `true`, the [`isSelected`]({% slug api_gantt_ganttcomponent %}#toc-isselected) callback has to be provided.
|
|
138
138
|
* > When applied, the [`SelectableDirective`]({% slug api_gantt_selectabledirective %}) sets `selectable` to `true` internally.
|
|
139
139
|
*/
|
|
140
140
|
this.selectable = false;
|
|
@@ -356,7 +356,6 @@ let GanttComponent = GanttComponent_1 = class GanttComponent {
|
|
|
356
356
|
this.showConfirmationDialog = this.showEditingDialog = false;
|
|
357
357
|
this.editService.dataItem = this.editService.formGroup = null;
|
|
358
358
|
this.updateView();
|
|
359
|
-
this.dependencyDomService.notifyChanges();
|
|
360
359
|
}));
|
|
361
360
|
this.localizationSubscription = this.localizationService.changes.subscribe(({ rtl }) => {
|
|
362
361
|
this.rtl = rtl;
|
|
@@ -615,12 +614,17 @@ let GanttComponent = GanttComponent_1 = class GanttComponent {
|
|
|
615
614
|
}
|
|
616
615
|
}
|
|
617
616
|
/**
|
|
618
|
-
*
|
|
617
|
+
* Forces the TreeList to evaluate if some data items have changed and re-renders the rows information, if needed.
|
|
618
|
+
* Recalculates and re-renders the Timeline period, if needed.
|
|
619
|
+
* Redraws changed dependencies, if needed.
|
|
620
|
+
* Executes all row-related callbacks anew.
|
|
619
621
|
*/
|
|
620
622
|
updateView() {
|
|
621
623
|
if (isPresent(this.treeList)) {
|
|
622
624
|
this.treeList.updateView();
|
|
623
625
|
}
|
|
626
|
+
this.loadTimelineData();
|
|
627
|
+
this.dependencyDomService.notifyChanges();
|
|
624
628
|
}
|
|
625
629
|
/**
|
|
626
630
|
* Opens the task editing dialog.
|
|
@@ -864,7 +868,7 @@ let GanttComponent = GanttComponent_1 = class GanttComponent {
|
|
|
864
868
|
items: [dataItem],
|
|
865
869
|
sender: this
|
|
866
870
|
});
|
|
867
|
-
this.updateView();
|
|
871
|
+
this.treeList.updateView();
|
|
868
872
|
}
|
|
869
873
|
updateTreeListGroupClass(columns = this.columns) {
|
|
870
874
|
if (!isPresent(this.treeList)) {
|
package/dist/es2015/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { CustomMessagesComponent } from './localization/custom-messages.componen
|
|
|
16
16
|
export { LocalizedMessagesDirective } from './localization/localized-messages.directive';
|
|
17
17
|
export { Messages } from './localization/messages';
|
|
18
18
|
export { GanttTreeListMessagesDirective } from './localization/treelist-messages.directive';
|
|
19
|
+
export { PreventableEvent } from './models/events/preventable-event';
|
|
19
20
|
export { GanttHeaderTableBodyComponent } from './rendering/gantt-header-table-body.component';
|
|
20
21
|
export { GanttMilestoneTaskComponent } from './rendering/gantt-milestone-task.component';
|
|
21
22
|
export { GanttSummaryTaskComponent } from './rendering/gantt-summary-task.component';
|
package/dist/es2015/index.js
CHANGED
|
@@ -16,6 +16,7 @@ export { CustomMessagesComponent } from './localization/custom-messages.componen
|
|
|
16
16
|
export { LocalizedMessagesDirective } from './localization/localized-messages.directive';
|
|
17
17
|
export { Messages } from './localization/messages';
|
|
18
18
|
export { GanttTreeListMessagesDirective } from './localization/treelist-messages.directive';
|
|
19
|
+
export { PreventableEvent } from './models/events/preventable-event';
|
|
19
20
|
export { GanttHeaderTableBodyComponent } from './rendering/gantt-header-table-body.component';
|
|
20
21
|
export { GanttMilestoneTaskComponent } from './rendering/gantt-milestone-task.component';
|
|
21
22
|
export { GanttSummaryTaskComponent } from './rendering/gantt-summary-task.component';
|