@worktile/gantt 15.1.0-next.0 → 15.1.0-next.2
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/components/bar/bar-drag.d.ts +18 -4
- package/components/bar/bar.component.scss +0 -22
- package/components/drag-backdrop/drag-backdrop.component.scss +1 -0
- package/components/loader/loader.component.d.ts +5 -0
- package/components/loader/loader.component.scss +90 -0
- package/components/table/body/gantt-table-body.component.d.ts +1 -1
- package/esm2020/components/bar/bar-drag.mjs +106 -31
- package/esm2020/components/bar/bar.component.mjs +32 -27
- package/esm2020/components/loader/loader.component.mjs +29 -0
- package/esm2020/components/table/body/gantt-table-body.component.mjs +22 -9
- package/esm2020/components/table/header/gantt-table-header.component.mjs +2 -2
- package/esm2020/gantt-abstract.mjs +1 -1
- package/esm2020/gantt-item-upper.mjs +8 -5
- package/esm2020/gantt.component.mjs +40 -12
- package/esm2020/gantt.module.mjs +4 -1
- package/esm2020/public-api.mjs +2 -1
- package/esm2020/table/gantt-column.component.mjs +8 -4
- package/esm2020/utils/drag-scroll.mjs +35 -0
- package/fesm2015/worktile-gantt.mjs +270 -78
- package/fesm2015/worktile-gantt.mjs.map +1 -1
- package/fesm2020/worktile-gantt.mjs +267 -78
- package/fesm2020/worktile-gantt.mjs.map +1 -1
- package/gantt-abstract.d.ts +2 -1
- package/gantt-item-upper.d.ts +1 -0
- package/gantt.component.d.ts +6 -1
- package/gantt.component.scss +4 -0
- package/gantt.module.d.ts +13 -12
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/styles/index.scss +1 -0
- package/styles/variables.scss +3 -0
- package/table/gantt-column.component.d.ts +4 -2
- package/utils/drag-scroll.d.ts +20 -0
package/gantt-abstract.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
1
|
+
import { InjectionToken, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { GanttGroupInternal, GanttItemInternal } from './class';
|
|
3
3
|
import { GanttStyles } from './gantt.styles';
|
|
4
4
|
import { NgxGanttTableComponent } from './table/gantt-table.component';
|
|
@@ -6,6 +6,7 @@ export interface GanttAbstractComponent {
|
|
|
6
6
|
table: NgxGanttTableComponent;
|
|
7
7
|
styles: GanttStyles;
|
|
8
8
|
maxLevel: number;
|
|
9
|
+
cdr: ChangeDetectorRef;
|
|
9
10
|
expandGroup(group: GanttGroupInternal): void;
|
|
10
11
|
expandChildren(item: GanttItemInternal): void;
|
|
11
12
|
}
|
package/gantt-item-upper.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare abstract class GanttItemUpper implements OnChanges, OnInit, OnDes
|
|
|
10
10
|
item: GanttItemInternal;
|
|
11
11
|
firstChange: boolean;
|
|
12
12
|
unsubscribe$: Subject<void>;
|
|
13
|
+
refsUnsubscribe$: Subject<void>;
|
|
13
14
|
constructor(elementRef: ElementRef<HTMLElement>, ganttUpper: GanttUpper);
|
|
14
15
|
ngOnInit(): void;
|
|
15
16
|
ngOnChanges(changes: SimpleChanges): void;
|
package/gantt.component.d.ts
CHANGED
|
@@ -16,6 +16,9 @@ export declare class NgxGanttComponent extends GanttUpper implements OnInit, OnC
|
|
|
16
16
|
async: boolean;
|
|
17
17
|
childrenResolve: (GanttItem: any) => Observable<GanttItem[]>;
|
|
18
18
|
linkable: boolean;
|
|
19
|
+
set loading(loading: boolean);
|
|
20
|
+
get loading(): boolean;
|
|
21
|
+
loadingDelay: number;
|
|
19
22
|
linkDragStarted: EventEmitter<GanttLinkDragEvent<unknown>>;
|
|
20
23
|
linkDragEnded: EventEmitter<GanttLinkDragEvent<unknown>>;
|
|
21
24
|
lineClick: EventEmitter<GanttLineClickEvent<unknown>>;
|
|
@@ -27,6 +30,8 @@ export declare class NgxGanttComponent extends GanttUpper implements OnInit, OnC
|
|
|
27
30
|
virtualScroll: CdkVirtualScrollViewport;
|
|
28
31
|
flatData: (GanttGroupInternal | GanttItemInternal)[];
|
|
29
32
|
renderData: (GanttGroupInternal | GanttItemInternal)[];
|
|
33
|
+
private _loading;
|
|
34
|
+
private loadingTimer;
|
|
30
35
|
private rangeStart;
|
|
31
36
|
private rangeEnd;
|
|
32
37
|
private flatDataMap;
|
|
@@ -44,5 +49,5 @@ export declare class NgxGanttComponent extends GanttUpper implements OnInit, OnC
|
|
|
44
49
|
expandGroups(expanded: boolean): void;
|
|
45
50
|
expandGroup(group: GanttGroupInternal): void;
|
|
46
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttComponent, [null, null, null, { optional: true; }, null]>;
|
|
47
|
-
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, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttComponent, "ngx-gantt", never, { "maxLevel": "maxLevel"; "async": "async"; "childrenResolve": "childrenResolve"; "linkable": "linkable"; "loading": "loading"; "loadingDelay": "loadingDelay"; }, { "linkDragStarted": "linkDragStarted"; "linkDragEnded": "linkDragEnded"; "lineClick": "lineClick"; "selectedChange": "selectedChange"; }, ["table", "tableEmptyTemplate", "columns"], never, false, never>;
|
|
48
53
|
}
|
package/gantt.component.scss
CHANGED
package/gantt.module.d.ts
CHANGED
|
@@ -8,19 +8,20 @@ import * as i6 from "./components/main/gantt-main.component";
|
|
|
8
8
|
import * as i7 from "./components/calendar/header/calendar-header.component";
|
|
9
9
|
import * as i8 from "./components/calendar/grid/calendar-grid.component";
|
|
10
10
|
import * as i9 from "./components/links/links.component";
|
|
11
|
-
import * as i10 from "./components/
|
|
12
|
-
import * as i11 from "./components/
|
|
13
|
-
import * as i12 from "./components/
|
|
14
|
-
import * as i13 from "./components/
|
|
15
|
-
import * as i14 from "./
|
|
16
|
-
import * as i15 from "./
|
|
17
|
-
import * as i16 from "./components/
|
|
18
|
-
import * as i17 from "./
|
|
19
|
-
import * as i18 from "
|
|
20
|
-
import * as i19 from "@angular/
|
|
21
|
-
import * as i20 from "@angular/cdk/
|
|
11
|
+
import * as i10 from "./components/loader/loader.component";
|
|
12
|
+
import * as i11 from "./components/bar/bar.component";
|
|
13
|
+
import * as i12 from "./components/icon/icon.component";
|
|
14
|
+
import * as i13 from "./components/drag-backdrop/drag-backdrop.component";
|
|
15
|
+
import * as i14 from "./components/range/range.component";
|
|
16
|
+
import * as i15 from "./root.component";
|
|
17
|
+
import * as i16 from "./components/baseline/baseline.component";
|
|
18
|
+
import * as i17 from "./components/toolbar/toolbar.component";
|
|
19
|
+
import * as i18 from "./gantt.pipe";
|
|
20
|
+
import * as i19 from "@angular/common";
|
|
21
|
+
import * as i20 from "@angular/cdk/drag-drop";
|
|
22
|
+
import * as i21 from "@angular/cdk/scrolling";
|
|
22
23
|
export declare class NgxGanttModule {
|
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttModule, never>;
|
|
24
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxGanttModule, [typeof i1.NgxGanttComponent, typeof i2.NgxGanttTableComponent, typeof i3.NgxGanttTableColumnComponent, typeof i4.GanttTableHeaderComponent, typeof i5.GanttTableBodyComponent, typeof i6.GanttMainComponent, typeof i7.GanttCalendarHeaderComponent, typeof i8.GanttCalendarGridComponent, typeof i9.GanttLinksComponent, typeof i10.
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxGanttModule, [typeof i1.NgxGanttComponent, typeof i2.NgxGanttTableComponent, typeof i3.NgxGanttTableColumnComponent, typeof i4.GanttTableHeaderComponent, typeof i5.GanttTableBodyComponent, typeof i6.GanttMainComponent, typeof i7.GanttCalendarHeaderComponent, typeof i8.GanttCalendarGridComponent, typeof i9.GanttLinksComponent, typeof i10.GanttLoaderComponent, typeof i11.NgxGanttBarComponent, typeof i12.GanttIconComponent, typeof i13.GanttDragBackdropComponent, typeof i14.NgxGanttRangeComponent, typeof i15.NgxGanttRootComponent, typeof i16.NgxGanttBaselineComponent, typeof i17.NgxGanttToolbarComponent, typeof i18.IsGanttRangeItemPipe, typeof i18.IsGanttBarItemPipe, typeof i18.IsGanttCustomItemPipe], [typeof i19.CommonModule, typeof i20.DragDropModule, typeof i21.ScrollingModule], [typeof i1.NgxGanttComponent, typeof i2.NgxGanttTableComponent, typeof i3.NgxGanttTableColumnComponent, typeof i15.NgxGanttRootComponent, typeof i11.NgxGanttBarComponent, typeof i14.NgxGanttRangeComponent, typeof i16.NgxGanttBaselineComponent, typeof i17.NgxGanttToolbarComponent]>;
|
|
25
26
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxGanttModule>;
|
|
26
27
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './components/bar/bar.component';
|
|
|
8
8
|
export * from './components/range/range.component';
|
|
9
9
|
export * from './components/baseline/baseline.component';
|
|
10
10
|
export * from './components/toolbar/toolbar.component';
|
|
11
|
+
export * from './components/loader/loader.component';
|
|
11
12
|
export * from './utils/date';
|
|
12
13
|
export * from './class';
|
|
13
14
|
export * from './views/view';
|
package/styles/index.scss
CHANGED
package/styles/variables.scss
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
1
|
+
import { TemplateRef, ElementRef } from '@angular/core';
|
|
2
2
|
import { GanttUpper } from '../gantt-upper';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class NgxGanttTableColumnComponent {
|
|
5
5
|
ganttUpper: GanttUpper;
|
|
6
|
+
private elementRef;
|
|
6
7
|
columnWidth: string;
|
|
7
8
|
set width(width: number | string);
|
|
8
9
|
name: string;
|
|
9
10
|
showExpandIcon: boolean;
|
|
10
11
|
templateRef: TemplateRef<any>;
|
|
11
12
|
headerTemplateRef: TemplateRef<any>;
|
|
12
|
-
constructor(ganttUpper: GanttUpper);
|
|
13
|
+
constructor(ganttUpper: GanttUpper, elementRef: ElementRef);
|
|
14
|
+
get classList(): DOMTokenList;
|
|
13
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttTableColumnComponent, never>;
|
|
14
16
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttTableColumnComponent, "ngx-gantt-column", never, { "width": "width"; "name": "name"; "showExpandIcon": "showExpandIcon"; }, {}, ["templateRef", "headerTemplateRef"], never, false, never>;
|
|
15
17
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Horizontal direction in which we can auto-scroll. */
|
|
2
|
+
export declare const enum AutoScrollHorizontalDirection {
|
|
3
|
+
NONE = 0,
|
|
4
|
+
LEFT = 1,
|
|
5
|
+
RIGHT = 2
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Gets whether the horizontal auto-scroll direction of a node.
|
|
9
|
+
* @param clientRect Dimensions of the node.
|
|
10
|
+
* @param pointerX Position of the user's pointer along the x axis.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getHorizontalScrollDirection(clientRect: DOMRect, pointerX: number): AutoScrollHorizontalDirection;
|
|
13
|
+
/**
|
|
14
|
+
* Checks whether the pointer coordinates are close to a ClientRect.
|
|
15
|
+
* @param rect ClientRect to check against.
|
|
16
|
+
* @param threshold Threshold around the ClientRect.
|
|
17
|
+
* @param pointerX Coordinates along the X axis.
|
|
18
|
+
* @param pointerY Coordinates along the Y axis.
|
|
19
|
+
*/
|
|
20
|
+
export declare function isPointerNearClientRect(rect: DOMRect, threshold: number, pointerX: number, pointerY: number): boolean;
|