@worktile/gantt 13.1.0 → 14.0.0
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/class/baseline.d.ts +26 -0
- package/class/index.d.ts +1 -0
- package/class/item.d.ts +1 -2
- package/components/bar/bar.component.d.ts +1 -2
- package/components/baseline/baseline.component.d.ts +17 -0
- package/components/baseline/baseline.component.scss +11 -0
- package/components/calendar/calendar.component.d.ts +1 -1
- package/components/drag-backdrop/drag-backdrop.component.d.ts +1 -1
- package/components/icon/icon.component.d.ts +1 -1
- package/components/links/links.component.d.ts +1 -1
- package/components/main/gantt-main.component.d.ts +1 -1
- package/components/range/range.component.d.ts +1 -1
- package/components/table/gantt-table.component.d.ts +1 -1
- package/esm2020/class/baseline.mjs +18 -0
- package/esm2020/class/index.mjs +2 -1
- package/esm2020/class/item.mjs +1 -1
- package/esm2020/components/bar/bar-drag.mjs +3 -3
- package/esm2020/components/bar/bar.component.mjs +4 -5
- package/esm2020/components/baseline/baseline.component.mjs +40 -0
- package/esm2020/components/calendar/calendar.component.mjs +3 -3
- package/esm2020/components/drag-backdrop/drag-backdrop.component.mjs +3 -3
- package/esm2020/components/icon/icon.component.mjs +3 -3
- package/esm2020/components/links/links.component.mjs +3 -3
- package/esm2020/components/main/gantt-main.component.mjs +12 -11
- package/esm2020/components/range/range.component.mjs +3 -3
- package/esm2020/components/table/gantt-table.component.mjs +6 -6
- package/esm2020/gantt-dom.service.mjs +3 -3
- package/esm2020/gantt-drag-container.mjs +3 -3
- package/esm2020/gantt-item-upper.mjs +4 -6
- package/esm2020/gantt-print.service.mjs +3 -3
- package/esm2020/gantt-upper.mjs +30 -5
- package/esm2020/gantt.component.mjs +14 -8
- package/esm2020/gantt.module.mjs +13 -8
- package/esm2020/gantt.pipe.mjs +9 -9
- package/esm2020/gantt.styles.mjs +1 -1
- package/esm2020/public-api.mjs +2 -1
- package/esm2020/root.component.mjs +18 -7
- package/esm2020/table/gantt-column.component.mjs +3 -3
- package/esm2020/table/gantt-table.component.mjs +3 -3
- package/esm2020/utils/helpers.mjs +9 -1
- package/fesm2015/worktile-gantt.mjs +890 -789
- package/fesm2015/worktile-gantt.mjs.map +1 -1
- package/fesm2020/worktile-gantt.mjs +905 -806
- package/fesm2020/worktile-gantt.mjs.map +1 -1
- package/gantt-item-upper.d.ts +1 -1
- package/gantt-upper.d.ts +8 -2
- package/gantt.component.d.ts +4 -1
- package/gantt.module.d.ts +5 -4
- package/gantt.pipe.d.ts +3 -3
- package/{worktile-gantt.d.ts → index.d.ts} +0 -0
- package/package.json +6 -6
- package/public-api.d.ts +1 -0
- package/root.component.d.ts +3 -1
- package/styles/index.scss +1 -0
- package/styles/variables.scss +3 -0
- package/table/gantt-column.component.d.ts +1 -1
- package/table/gantt-table.component.d.ts +1 -1
- package/utils/helpers.d.ts +3 -0
package/gantt-item-upper.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export declare abstract class GanttItemUpper implements OnChanges, OnInit, OnDes
|
|
|
16
16
|
private setPositions;
|
|
17
17
|
ngOnDestroy(): void;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<GanttItemUpper, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<GanttItemUpper, never, never, { "template": "template"; "item": "item"; }, {}, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GanttItemUpper, never, never, { "template": "template"; "item": "item"; }, {}, never, never, false>;
|
|
20
20
|
}
|
package/gantt-upper.d.ts
CHANGED
|
@@ -3,11 +3,13 @@ import { Subject } from 'rxjs';
|
|
|
3
3
|
import { GanttItem, GanttGroup, GanttViewType, GanttLoadOnScrollEvent, GanttDragEvent, GanttGroupInternal, GanttItemInternal, GanttBarClickEvent, GanttLinkDragEvent } from './class';
|
|
4
4
|
import { GanttView, GanttViewOptions } from './views/view';
|
|
5
5
|
import { GanttStyles } from './gantt.styles';
|
|
6
|
+
import { Dictionary } from './utils/helpers';
|
|
6
7
|
import { GanttDragContainer } from './gantt-drag-container';
|
|
7
8
|
import { GanttGlobalConfig } from './gantt.config';
|
|
8
9
|
import { GanttLinkOptions } from './class/link';
|
|
9
10
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
10
11
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
12
|
+
import { GanttBaselineItem, GanttBaselineItemInternal } from './class/baseline';
|
|
11
13
|
import * as i0 from "@angular/core";
|
|
12
14
|
export declare abstract class GanttUpper implements OnChanges, OnInit, OnDestroy {
|
|
13
15
|
protected elementRef: ElementRef<HTMLElement>;
|
|
@@ -16,6 +18,7 @@ export declare abstract class GanttUpper implements OnChanges, OnInit, OnDestroy
|
|
|
16
18
|
config: GanttGlobalConfig;
|
|
17
19
|
originItems: GanttItem[];
|
|
18
20
|
originGroups: GanttGroup[];
|
|
21
|
+
originBaselineItems: GanttBaselineItem[];
|
|
19
22
|
viewType: GanttViewType;
|
|
20
23
|
start: number;
|
|
21
24
|
end: number;
|
|
@@ -45,6 +48,8 @@ export declare abstract class GanttUpper implements OnChanges, OnInit, OnDestroy
|
|
|
45
48
|
view: GanttView;
|
|
46
49
|
items: GanttItemInternal[];
|
|
47
50
|
groups: GanttGroupInternal[];
|
|
51
|
+
baselineItems: GanttBaselineItemInternal[];
|
|
52
|
+
baselineItemsMap: Dictionary<GanttBaselineItemInternal>;
|
|
48
53
|
viewChange: EventEmitter<GanttView>;
|
|
49
54
|
expandChange: EventEmitter<void>;
|
|
50
55
|
get element(): HTMLElement;
|
|
@@ -61,6 +66,7 @@ export declare abstract class GanttUpper implements OnChanges, OnInit, OnDestroy
|
|
|
61
66
|
private createView;
|
|
62
67
|
private setupGroups;
|
|
63
68
|
private setupItems;
|
|
69
|
+
private setupBaselineItems;
|
|
64
70
|
private setupExpandedState;
|
|
65
71
|
private getViewDate;
|
|
66
72
|
computeRefs(): void;
|
|
@@ -69,7 +75,7 @@ export declare abstract class GanttUpper implements OnChanges, OnInit, OnDestroy
|
|
|
69
75
|
ngOnInit(): void;
|
|
70
76
|
ngOnChanges(changes: SimpleChanges): void;
|
|
71
77
|
ngOnDestroy(): void;
|
|
72
|
-
computeItemsRefs(...items: GanttItemInternal[]): void;
|
|
78
|
+
computeItemsRefs(...items: GanttItemInternal[] | GanttBaselineItemInternal[]): void;
|
|
73
79
|
trackBy(index: number, item: GanttGroupInternal | GanttItemInternal): string | number;
|
|
74
80
|
detectChanges(): void;
|
|
75
81
|
expandGroup(group: GanttGroupInternal): void;
|
|
@@ -79,6 +85,6 @@ export declare abstract class GanttUpper implements OnChanges, OnInit, OnDestroy
|
|
|
79
85
|
getGanttItems(ids: string[]): GanttItemInternal[];
|
|
80
86
|
isSelected(id: string): boolean;
|
|
81
87
|
static ɵfac: i0.ɵɵFactoryDeclaration<GanttUpper, never>;
|
|
82
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<GanttUpper, never, never, { "originItems": "items"; "originGroups": "groups"; "viewType": "viewType"; "start": "start"; "end": "end"; "showTodayLine": "showTodayLine"; "draggable": "draggable"; "styles": "styles"; "viewOptions": "viewOptions"; "linkOptions": "linkOptions"; "disabledLoadOnScroll": "disabledLoadOnScroll"; "selectable": "selectable"; "multiple": "multiple"; }, { "loadOnScroll": "loadOnScroll"; "dragStarted": "dragStarted"; "dragMoved": "dragMoved"; "dragEnded": "dragEnded"; "barClick": "barClick"; }, ["barTemplate", "rangeTemplate", "itemTemplate", "groupTemplate", "groupHeaderTemplate"]>;
|
|
88
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GanttUpper, never, never, { "originItems": "items"; "originGroups": "groups"; "originBaselineItems": "baselineItems"; "viewType": "viewType"; "start": "start"; "end": "end"; "showTodayLine": "showTodayLine"; "draggable": "draggable"; "styles": "styles"; "viewOptions": "viewOptions"; "linkOptions": "linkOptions"; "disabledLoadOnScroll": "disabledLoadOnScroll"; "selectable": "selectable"; "multiple": "multiple"; }, { "loadOnScroll": "loadOnScroll"; "dragStarted": "dragStarted"; "dragMoved": "dragMoved"; "dragEnded": "dragEnded"; "barClick": "barClick"; }, ["barTemplate", "rangeTemplate", "itemTemplate", "groupTemplate", "groupHeaderTemplate"], never, false>;
|
|
83
89
|
}
|
|
84
90
|
export declare const GANTT_UPPER_TOKEN: InjectionToken<GanttUpper>;
|
package/gantt.component.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { NgxGanttTableColumnComponent } from './table/gantt-column.component';
|
|
|
6
6
|
import { NgxGanttTableComponent } from './table/gantt-table.component';
|
|
7
7
|
import { GanttGlobalConfig } from './gantt.config';
|
|
8
8
|
import { NgxGanttRootComponent } from './root.component';
|
|
9
|
+
import { GanttDate } from './utils/date';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class NgxGanttComponent extends GanttUpper implements OnInit, AfterViewInit {
|
|
11
12
|
maxLevel: number;
|
|
@@ -27,6 +28,8 @@ export declare class NgxGanttComponent extends GanttUpper implements OnInit, Aft
|
|
|
27
28
|
ngAfterViewInit(): void;
|
|
28
29
|
expandChildren(item: GanttItemInternal): void;
|
|
29
30
|
selectItem(selectEvent: GanttSelectedEvent): void;
|
|
31
|
+
scrollToToday(): void;
|
|
32
|
+
scrollToDate(date: number | GanttDate): void;
|
|
30
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttComponent, "ngx-gantt", never, { "maxLevel": "maxLevel"; "async": "async"; "childrenResolve": "childrenResolve"; "linkable": "linkable"; }, { "linkDragStarted": "linkDragStarted"; "linkDragEnded": "linkDragEnded"; "lineClick": "lineClick"; "selectedChange": "selectedChange"; }, ["table", "tableEmptyTemplate", "columns"], never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttComponent, "ngx-gantt", never, { "maxLevel": "maxLevel"; "async": "async"; "childrenResolve": "childrenResolve"; "linkable": "linkable"; }, { "linkDragStarted": "linkDragStarted"; "linkDragEnded": "linkDragEnded"; "lineClick": "lineClick"; "selectedChange": "selectedChange"; }, ["table", "tableEmptyTemplate", "columns"], never, false>;
|
|
32
35
|
}
|
package/gantt.module.d.ts
CHANGED
|
@@ -11,11 +11,12 @@ import * as i9 from "./components/icon/icon.component";
|
|
|
11
11
|
import * as i10 from "./components/drag-backdrop/drag-backdrop.component";
|
|
12
12
|
import * as i11 from "./components/range/range.component";
|
|
13
13
|
import * as i12 from "./root.component";
|
|
14
|
-
import * as i13 from "./
|
|
15
|
-
import * as i14 from "
|
|
16
|
-
import * as i15 from "@angular/
|
|
14
|
+
import * as i13 from "./components/baseline/baseline.component";
|
|
15
|
+
import * as i14 from "./gantt.pipe";
|
|
16
|
+
import * as i15 from "@angular/common";
|
|
17
|
+
import * as i16 from "@angular/cdk/drag-drop";
|
|
17
18
|
export declare class NgxGanttModule {
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxGanttModule, [typeof i1.NgxGanttComponent, typeof i2.NgxGanttTableComponent, typeof i3.NgxGanttTableColumnComponent, typeof i4.GanttTableComponent, typeof i5.GanttMainComponent, typeof i6.GanttCalendarComponent, typeof i7.GanttLinksComponent, typeof i8.NgxGanttBarComponent, typeof i9.GanttIconComponent, typeof i10.GanttDragBackdropComponent, typeof i11.NgxGanttRangeComponent, typeof i12.NgxGanttRootComponent, typeof i13.IsGanttRangeItemPipe, typeof
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxGanttModule, [typeof i1.NgxGanttComponent, typeof i2.NgxGanttTableComponent, typeof i3.NgxGanttTableColumnComponent, typeof i4.GanttTableComponent, typeof i5.GanttMainComponent, typeof i6.GanttCalendarComponent, typeof i7.GanttLinksComponent, typeof i8.NgxGanttBarComponent, typeof i9.GanttIconComponent, typeof i10.GanttDragBackdropComponent, typeof i11.NgxGanttRangeComponent, typeof i12.NgxGanttRootComponent, typeof i13.NgxGanttBaselineComponent, typeof i14.IsGanttRangeItemPipe, typeof i14.IsGanttBarItemPipe, typeof i14.IsGanttCustomItemPipe], [typeof i15.CommonModule, typeof i16.DragDropModule], [typeof i1.NgxGanttComponent, typeof i2.NgxGanttTableComponent, typeof i3.NgxGanttTableColumnComponent, typeof i12.NgxGanttRootComponent, typeof i8.NgxGanttBarComponent, typeof i11.NgxGanttRangeComponent, typeof i13.NgxGanttBaselineComponent]>;
|
|
20
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxGanttModule>;
|
|
21
22
|
}
|
package/gantt.pipe.d.ts
CHANGED
|
@@ -4,15 +4,15 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class IsGanttRangeItemPipe implements PipeTransform {
|
|
5
5
|
transform(value: GanttItemType): boolean;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<IsGanttRangeItemPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<IsGanttRangeItemPipe, "isGanttRangeItem">;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsGanttRangeItemPipe, "isGanttRangeItem", false>;
|
|
8
8
|
}
|
|
9
9
|
export declare class IsGanttBarItemPipe implements PipeTransform {
|
|
10
10
|
transform(value: GanttItemType): boolean;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<IsGanttBarItemPipe, never>;
|
|
12
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<IsGanttBarItemPipe, "isGanttBarItem">;
|
|
12
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsGanttBarItemPipe, "isGanttBarItem", false>;
|
|
13
13
|
}
|
|
14
14
|
export declare class IsGanttCustomItemPipe implements PipeTransform {
|
|
15
15
|
transform(value: GanttItemType): boolean;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<IsGanttCustomItemPipe, never>;
|
|
17
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<IsGanttCustomItemPipe, "isGanttCustomItem">;
|
|
17
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsGanttCustomItemPipe, "isGanttCustomItem", false>;
|
|
18
18
|
}
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worktile/gantt",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"sass": "./styles/index.scss",
|
|
8
|
-
"types": "./
|
|
8
|
+
"types": "./index.d.ts",
|
|
9
9
|
"esm2020": "./esm2020/worktile-gantt.mjs",
|
|
10
10
|
"es2020": "./fesm2020/worktile-gantt.mjs",
|
|
11
11
|
"es2015": "./fesm2015/worktile-gantt.mjs",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@angular/common": ">=
|
|
30
|
-
"@angular/core": ">=
|
|
31
|
-
"@angular/cdk": ">=
|
|
29
|
+
"@angular/common": ">=14.0.0",
|
|
30
|
+
"@angular/core": ">=14.0.0",
|
|
31
|
+
"@angular/cdk": ">=14.0.0",
|
|
32
32
|
"rxjs": "^6.5.0 || ^7.0.0",
|
|
33
33
|
"date-fns": ">=2.0.0"
|
|
34
34
|
},
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"esm2020": "esm2020/worktile-gantt.mjs",
|
|
38
38
|
"fesm2020": "fesm2020/worktile-gantt.mjs",
|
|
39
39
|
"fesm2015": "fesm2015/worktile-gantt.mjs",
|
|
40
|
-
"typings": "
|
|
40
|
+
"typings": "index.d.ts",
|
|
41
41
|
"sideEffects": false,
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"tslib": "^2.3.0"
|
package/public-api.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './table/gantt-table.component';
|
|
|
6
6
|
export * from './table/gantt-column.component';
|
|
7
7
|
export * from './components/bar/bar.component';
|
|
8
8
|
export * from './components/range/range.component';
|
|
9
|
+
export * from './components/baseline/baseline.component';
|
|
9
10
|
export * from './utils/date';
|
|
10
11
|
export * from './class';
|
|
11
12
|
export * from './views/view';
|
package/root.component.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { GanttDomService } from './gantt-dom.service';
|
|
|
3
3
|
import { GanttDragContainer } from './gantt-drag-container';
|
|
4
4
|
import { GanttUpper } from './gantt-upper';
|
|
5
5
|
import { GanttPrintService } from './gantt-print.service';
|
|
6
|
+
import { GanttDate } from './utils/date';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class NgxGanttRootComponent implements OnInit, OnDestroy {
|
|
8
9
|
private elementRef;
|
|
@@ -25,6 +26,7 @@ export declare class NgxGanttRootComponent implements OnInit, OnDestroy {
|
|
|
25
26
|
private setupResize;
|
|
26
27
|
private setupScrollClass;
|
|
27
28
|
scrollToToday(): void;
|
|
29
|
+
scrollToDate(date: number | GanttDate): void;
|
|
28
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttRootComponent, [null, null, null, null, null, { optional: true; }]>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttRootComponent, "ngx-gantt-root", never, { "sideWidth": "sideWidth"; }, {}, ["sideTemplate", "mainTemplate"], never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttRootComponent, "ngx-gantt-root", never, { "sideWidth": "sideWidth"; }, {}, ["sideTemplate", "mainTemplate"], never, false>;
|
|
30
32
|
}
|
package/styles/index.scss
CHANGED
package/styles/variables.scss
CHANGED
|
@@ -10,5 +10,5 @@ export declare class NgxGanttTableColumnComponent {
|
|
|
10
10
|
headerTemplateRef: TemplateRef<any>;
|
|
11
11
|
constructor(ganttUpper: GanttUpper);
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttTableColumnComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttTableColumnComponent, "ngx-gantt-column", never, { "width": "width"; "name": "name"; }, {}, ["templateRef", "headerTemplateRef"], never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttTableColumnComponent, "ngx-gantt-column", never, { "width": "width"; "name": "name"; }, {}, ["templateRef", "headerTemplateRef"], never, false>;
|
|
14
14
|
}
|
|
@@ -6,5 +6,5 @@ export declare class NgxGanttTableComponent {
|
|
|
6
6
|
rowBeforeTemplate: TemplateRef<any>;
|
|
7
7
|
rowAfterTemplate: TemplateRef<any>;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttTableComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttTableComponent, "ngx-gantt-table", never, {}, { "columnChanges": "columnChanges"; }, ["rowBeforeTemplate", "rowAfterTemplate"], never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttTableComponent, "ngx-gantt-table", never, {}, { "columnChanges": "columnChanges"; }, ["rowBeforeTemplate", "rowAfterTemplate"], never, false>;
|
|
10
10
|
}
|
package/utils/helpers.d.ts
CHANGED
|
@@ -10,3 +10,6 @@ export declare function uniqBy<T = unknown>(array: T[], key: keyof T): any[];
|
|
|
10
10
|
export declare function flatten<T = unknown>(array: T[]): any;
|
|
11
11
|
export declare function recursiveItems(items: GanttItemInternal[]): any[];
|
|
12
12
|
export declare function getFlatItems(items: GanttItem[]): any[];
|
|
13
|
+
export declare function keyBy<T>(array: T[], key: T extends object ? keyof T : never): {
|
|
14
|
+
[key: string]: T;
|
|
15
|
+
};
|