@progress/kendo-angular-gantt 0.2.0-dev.202111241002 → 0.2.1-dev.202112091019
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/package-metadata.js +1 -1
- package/dist/es/rendering/gantt-tasks-table-body.component.js +2 -2
- package/dist/es/toolbar/view-selector.component.js +1 -1
- package/dist/es2015/expanded-state/expandable.directive.d.ts +2 -1
- package/dist/es2015/expanded-state/expandable.directive.js +7 -2
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/rendering/gantt-tasks-table-body.component.js +2 -2
- package/dist/es2015/toolbar/view-selector.component.js +1 -0
- package/dist/fesm2015/index.js +10 -4
- package/dist/fesm5/index.js +9 -7
- package/dist/npm/expanded-state/expandable.directive.js +5 -3
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/rendering/gantt-tasks-table-body.component.js +1 -1
- package/dist/npm/toolbar/view-selector.component.js +1 -1
- package/dist/systemjs/kendo-angular-gantt.js +1 -1
- package/package.json +1 -1
|
@@ -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: 1639044748,
|
|
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';
|
|
@@ -24,7 +24,7 @@ let GanttTasksTableBodyComponent = class GanttTasksTableBodyComponent {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
isMileStone(task) {
|
|
27
|
-
return !this.hasChildren(task) &&
|
|
27
|
+
return !this.hasChildren(task) && isEqual(this.mapper.extractFromTask(task, 'start'), this.mapper.extractFromTask(task, 'end'));
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
tslib_1.__decorate([
|
|
@@ -65,6 +65,7 @@ ViewSelectorComponent = tslib_1.__decorate([
|
|
|
65
65
|
<kendo-buttongroup class="k-gantt-views" selection="single">
|
|
66
66
|
<button *ngFor="let view of views"
|
|
67
67
|
kendoButton
|
|
68
|
+
type="button"
|
|
68
69
|
[selected]="view === activeView"
|
|
69
70
|
(click)="onClick(view)">{{getViewTypeText(view)}}</button>
|
|
70
71
|
</kendo-buttongroup>
|
package/dist/fesm2015/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { __decorate, __metadata, __param } from 'tslib';
|
|
6
6
|
import { Input, EventEmitter, Injectable, Directive, Optional, TemplateRef, QueryList, ContentChildren, ContentChild, Component, forwardRef, SkipSelf, Host, Injector, NgZone, isDevMode, ViewChild, HostBinding, Output, Renderer2, ElementRef, ChangeDetectorRef, NgModule } from '@angular/core';
|
|
7
7
|
import { ColumnBase, ColumnComponent, ColumnGroupComponent, SpanColumnComponent, TreeListComponent, DataBoundTreeComponent, ExpandableTreeComponent, FlatBindingDirective, HierarchyBindingDirective, ExpandableDirective, TreeListModule } from '@progress/kendo-angular-treelist';
|
|
8
|
-
import { cloneDate, addWeeks, firstDayInWeek, addDays, getDate, lastDayOfMonth, firstDayOfMonth, addMonths,
|
|
8
|
+
import { cloneDate, addWeeks, firstDayInWeek, addDays, getDate, lastDayOfMonth, firstDayOfMonth, addMonths, isEqual, MS_PER_HOUR, MS_PER_DAY } from '@progress/kendo-date-math';
|
|
9
9
|
import { of, Subject, Subscription, fromEvent } from 'rxjs';
|
|
10
10
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
11
11
|
import { isDocumentAvailable, closestInScope, matchesClasses, anyChanged, hasObservers, EventsModule } from '@progress/kendo-angular-common';
|
|
@@ -30,7 +30,7 @@ const packageMetadata = {
|
|
|
30
30
|
name: '@progress/kendo-angular-gantt',
|
|
31
31
|
productName: 'Kendo UI for Angular',
|
|
32
32
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
33
|
-
publishDate:
|
|
33
|
+
publishDate: 1639044748,
|
|
34
34
|
version: '',
|
|
35
35
|
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'
|
|
36
36
|
};
|
|
@@ -3288,7 +3288,7 @@ let GanttTasksTableBodyComponent = class GanttTasksTableBodyComponent {
|
|
|
3288
3288
|
}
|
|
3289
3289
|
}
|
|
3290
3290
|
isMileStone(task) {
|
|
3291
|
-
return !this.hasChildren(task) &&
|
|
3291
|
+
return !this.hasChildren(task) && isEqual(this.mapper.extractFromTask(task, 'start'), this.mapper.extractFromTask(task, 'end'));
|
|
3292
3292
|
}
|
|
3293
3293
|
};
|
|
3294
3294
|
__decorate([
|
|
@@ -3759,6 +3759,10 @@ GanttHierarchyBindingDirective = __decorate([
|
|
|
3759
3759
|
* A directive which controls the expanded state of the items.
|
|
3760
3760
|
*/
|
|
3761
3761
|
let GanttExpandableDirective = class GanttExpandableDirective extends ExpandableDirective {
|
|
3762
|
+
// fixes an injection error in some builds/ng-versions (e.g. StackBlitz)
|
|
3763
|
+
constructor(gantt) {
|
|
3764
|
+
super(gantt);
|
|
3765
|
+
}
|
|
3762
3766
|
};
|
|
3763
3767
|
__decorate([
|
|
3764
3768
|
Input(),
|
|
@@ -3768,7 +3772,8 @@ GanttExpandableDirective = __decorate([
|
|
|
3768
3772
|
Directive({
|
|
3769
3773
|
exportAs: 'kendoGanttExpandable',
|
|
3770
3774
|
selector: '[kendoGanttExpandable]'
|
|
3771
|
-
})
|
|
3775
|
+
}),
|
|
3776
|
+
__metadata("design:paramtypes", [ExpandableTreeComponent])
|
|
3772
3777
|
], GanttExpandableDirective);
|
|
3773
3778
|
|
|
3774
3779
|
/**
|
|
@@ -4002,6 +4007,7 @@ ViewSelectorComponent = __decorate([
|
|
|
4002
4007
|
<kendo-buttongroup class="k-gantt-views" selection="single">
|
|
4003
4008
|
<button *ngFor="let view of views"
|
|
4004
4009
|
kendoButton
|
|
4010
|
+
type="button"
|
|
4005
4011
|
[selected]="view === activeView"
|
|
4006
4012
|
(click)="onClick(view)">{{getViewTypeText(view)}}</button>
|
|
4007
4013
|
</kendo-buttongroup>
|
package/dist/fesm5/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { __extends, __decorate, __metadata, __param, __assign } from 'tslib';
|
|
6
6
|
import { Input, Injectable, EventEmitter, Directive, Optional, TemplateRef, QueryList, ContentChildren, ContentChild, Component, forwardRef, SkipSelf, Host, Injector, NgZone, isDevMode, ViewChild, HostBinding, Output, Renderer2, ElementRef, ChangeDetectorRef, NgModule } from '@angular/core';
|
|
7
7
|
import { ColumnBase, ColumnComponent, ColumnGroupComponent, SpanColumnComponent, TreeListComponent, DataBoundTreeComponent, ExpandableTreeComponent, FlatBindingDirective, HierarchyBindingDirective, ExpandableDirective, TreeListModule } from '@progress/kendo-angular-treelist';
|
|
8
|
-
import { cloneDate, addWeeks, firstDayInWeek, addDays, getDate, lastDayOfMonth, firstDayOfMonth, addMonths,
|
|
8
|
+
import { cloneDate, addWeeks, firstDayInWeek, addDays, getDate, lastDayOfMonth, firstDayOfMonth, addMonths, isEqual, MS_PER_HOUR, MS_PER_DAY } from '@progress/kendo-date-math';
|
|
9
9
|
import { of, fromEvent, Subject, Subscription } from 'rxjs';
|
|
10
10
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
11
11
|
import { isDocumentAvailable, closestInScope, matchesClasses, anyChanged, hasObservers, EventsModule } from '@progress/kendo-angular-common';
|
|
@@ -30,7 +30,7 @@ var packageMetadata = {
|
|
|
30
30
|
name: '@progress/kendo-angular-gantt',
|
|
31
31
|
productName: 'Kendo UI for Angular',
|
|
32
32
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
33
|
-
publishDate:
|
|
33
|
+
publishDate: 1639044748,
|
|
34
34
|
version: '',
|
|
35
35
|
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'
|
|
36
36
|
};
|
|
@@ -3091,7 +3091,7 @@ var GanttTasksTableBodyComponent = /** @class */ (function () {
|
|
|
3091
3091
|
configurable: true
|
|
3092
3092
|
});
|
|
3093
3093
|
GanttTasksTableBodyComponent.prototype.isMileStone = function (task) {
|
|
3094
|
-
return !this.hasChildren(task) &&
|
|
3094
|
+
return !this.hasChildren(task) && isEqual(this.mapper.extractFromTask(task, 'start'), this.mapper.extractFromTask(task, 'end'));
|
|
3095
3095
|
};
|
|
3096
3096
|
__decorate([
|
|
3097
3097
|
ViewChild('timelineRow', { static: false }),
|
|
@@ -3467,8 +3467,9 @@ var GanttHierarchyBindingDirective = /** @class */ (function (_super) {
|
|
|
3467
3467
|
*/
|
|
3468
3468
|
var GanttExpandableDirective = /** @class */ (function (_super) {
|
|
3469
3469
|
__extends(GanttExpandableDirective, _super);
|
|
3470
|
-
|
|
3471
|
-
|
|
3470
|
+
// fixes an injection error in some builds/ng-versions (e.g. StackBlitz)
|
|
3471
|
+
function GanttExpandableDirective(gantt) {
|
|
3472
|
+
return _super.call(this, gantt) || this;
|
|
3472
3473
|
}
|
|
3473
3474
|
__decorate([
|
|
3474
3475
|
Input(),
|
|
@@ -3478,7 +3479,8 @@ var GanttExpandableDirective = /** @class */ (function (_super) {
|
|
|
3478
3479
|
Directive({
|
|
3479
3480
|
exportAs: 'kendoGanttExpandable',
|
|
3480
3481
|
selector: '[kendoGanttExpandable]'
|
|
3481
|
-
})
|
|
3482
|
+
}),
|
|
3483
|
+
__metadata("design:paramtypes", [ExpandableTreeComponent])
|
|
3482
3484
|
], GanttExpandableDirective);
|
|
3483
3485
|
return GanttExpandableDirective;
|
|
3484
3486
|
}(ExpandableDirective));
|
|
@@ -3722,7 +3724,7 @@ var ViewSelectorComponent = /** @class */ (function () {
|
|
|
3722
3724
|
ViewSelectorComponent = __decorate([
|
|
3723
3725
|
Component({
|
|
3724
3726
|
selector: 'kendo-gantt-view-selector',
|
|
3725
|
-
template: "\n <select class=\"k-dropdown k-views-dropdown\"\n [value]=\"activeView\"\n (change)=\"activeViewChange.emit($event.target.value)\">\n <option *ngFor=\"let view of views\" [value]=\"view\">{{getViewTypeText(view)}}</option>\n </select>\n <kendo-buttongroup class=\"k-gantt-views\" selection=\"single\">\n <button *ngFor=\"let view of views\"\n kendoButton\n [selected]=\"view === activeView\"\n (click)=\"onClick(view)\">{{getViewTypeText(view)}}</button>\n </kendo-buttongroup>\n "
|
|
3727
|
+
template: "\n <select class=\"k-dropdown k-views-dropdown\"\n [value]=\"activeView\"\n (change)=\"activeViewChange.emit($event.target.value)\">\n <option *ngFor=\"let view of views\" [value]=\"view\">{{getViewTypeText(view)}}</option>\n </select>\n <kendo-buttongroup class=\"k-gantt-views\" selection=\"single\">\n <button *ngFor=\"let view of views\"\n kendoButton\n type=\"button\"\n [selected]=\"view === activeView\"\n (click)=\"onClick(view)\">{{getViewTypeText(view)}}</button>\n </kendo-buttongroup>\n "
|
|
3726
3728
|
}),
|
|
3727
3729
|
__metadata("design:paramtypes", [LocalizationService])
|
|
3728
3730
|
], ViewSelectorComponent);
|
|
@@ -12,8 +12,9 @@ var kendo_angular_treelist_1 = require("@progress/kendo-angular-treelist");
|
|
|
12
12
|
*/
|
|
13
13
|
var GanttExpandableDirective = /** @class */ (function (_super) {
|
|
14
14
|
tslib_1.__extends(GanttExpandableDirective, _super);
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
// fixes an injection error in some builds/ng-versions (e.g. StackBlitz)
|
|
16
|
+
function GanttExpandableDirective(gantt) {
|
|
17
|
+
return _super.call(this, gantt) || this;
|
|
17
18
|
}
|
|
18
19
|
tslib_1.__decorate([
|
|
19
20
|
core_1.Input(),
|
|
@@ -23,7 +24,8 @@ var GanttExpandableDirective = /** @class */ (function (_super) {
|
|
|
23
24
|
core_1.Directive({
|
|
24
25
|
exportAs: 'kendoGanttExpandable',
|
|
25
26
|
selector: '[kendoGanttExpandable]'
|
|
26
|
-
})
|
|
27
|
+
}),
|
|
28
|
+
tslib_1.__metadata("design:paramtypes", [kendo_angular_treelist_1.ExpandableTreeComponent])
|
|
27
29
|
], GanttExpandableDirective);
|
|
28
30
|
return GanttExpandableDirective;
|
|
29
31
|
}(kendo_angular_treelist_1.ExpandableDirective));
|
|
@@ -11,7 +11,7 @@ exports.packageMetadata = {
|
|
|
11
11
|
name: '@progress/kendo-angular-gantt',
|
|
12
12
|
productName: 'Kendo UI for Angular',
|
|
13
13
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
14
|
-
publishDate:
|
|
14
|
+
publishDate: 1639044748,
|
|
15
15
|
version: '',
|
|
16
16
|
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'
|
|
17
17
|
};
|
|
@@ -30,7 +30,7 @@ var GanttTasksTableBodyComponent = /** @class */ (function () {
|
|
|
30
30
|
configurable: true
|
|
31
31
|
});
|
|
32
32
|
GanttTasksTableBodyComponent.prototype.isMileStone = function (task) {
|
|
33
|
-
return !this.hasChildren(task) && kendo_date_math_1.
|
|
33
|
+
return !this.hasChildren(task) && kendo_date_math_1.isEqual(this.mapper.extractFromTask(task, 'start'), this.mapper.extractFromTask(task, 'end'));
|
|
34
34
|
};
|
|
35
35
|
tslib_1.__decorate([
|
|
36
36
|
core_1.ViewChild('timelineRow', { static: false }),
|
|
@@ -57,7 +57,7 @@ var ViewSelectorComponent = /** @class */ (function () {
|
|
|
57
57
|
ViewSelectorComponent = tslib_1.__decorate([
|
|
58
58
|
core_1.Component({
|
|
59
59
|
selector: 'kendo-gantt-view-selector',
|
|
60
|
-
template: "\n <select class=\"k-dropdown k-views-dropdown\"\n [value]=\"activeView\"\n (change)=\"activeViewChange.emit($event.target.value)\">\n <option *ngFor=\"let view of views\" [value]=\"view\">{{getViewTypeText(view)}}</option>\n </select>\n <kendo-buttongroup class=\"k-gantt-views\" selection=\"single\">\n <button *ngFor=\"let view of views\"\n kendoButton\n [selected]=\"view === activeView\"\n (click)=\"onClick(view)\">{{getViewTypeText(view)}}</button>\n </kendo-buttongroup>\n "
|
|
60
|
+
template: "\n <select class=\"k-dropdown k-views-dropdown\"\n [value]=\"activeView\"\n (change)=\"activeViewChange.emit($event.target.value)\">\n <option *ngFor=\"let view of views\" [value]=\"view\">{{getViewTypeText(view)}}</option>\n </select>\n <kendo-buttongroup class=\"k-gantt-views\" selection=\"single\">\n <button *ngFor=\"let view of views\"\n kendoButton\n type=\"button\"\n [selected]=\"view === activeView\"\n (click)=\"onClick(view)\">{{getViewTypeText(view)}}</button>\n </kendo-buttongroup>\n "
|
|
61
61
|
}),
|
|
62
62
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_l10n_1.LocalizationService])
|
|
63
63
|
], ViewSelectorComponent);
|