@worktile/gantt 15.1.0 → 15.1.1
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/esm2020/gantt-dom.service.mjs +2 -1
- package/esm2020/gantt.component.mjs +30 -25
- package/esm2020/root.component.mjs +27 -4
- package/fesm2015/worktile-gantt.mjs +142 -111
- package/fesm2015/worktile-gantt.mjs.map +1 -1
- package/fesm2020/worktile-gantt.mjs +140 -109
- package/fesm2020/worktile-gantt.mjs.map +1 -1
- package/gantt-dom.service.d.ts +1 -0
- package/gantt.component.d.ts +7 -7
- package/gantt.component.scss +6 -2
- package/package.json +1 -1
- package/root.component.d.ts +4 -0
package/gantt-dom.service.d.ts
CHANGED
package/gantt.component.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit, ElementRef, EventEmitter, ChangeDetectorRef, NgZone, QueryList, AfterViewInit, TemplateRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { OnInit, ElementRef, EventEmitter, ChangeDetectorRef, NgZone, QueryList, AfterViewInit, TemplateRef, OnChanges, SimpleChanges, AfterViewChecked } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { GanttUpper } from './gantt-upper';
|
|
4
4
|
import { GanttLinkDragEvent, GanttLineClickEvent, GanttItemInternal, GanttItem, GanttSelectedEvent, GanttGroupInternal } from './class';
|
|
@@ -7,11 +7,10 @@ import { NgxGanttTableComponent } from './table/gantt-table.component';
|
|
|
7
7
|
import { GanttGlobalConfig } from './gantt.config';
|
|
8
8
|
import { NgxGanttRootComponent } from './root.component';
|
|
9
9
|
import { GanttDate } from './utils/date';
|
|
10
|
-
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
11
|
-
import { GanttPrintService } from './gantt-print.service';
|
|
10
|
+
import { CdkVirtualScrollViewport, ViewportRuler } from '@angular/cdk/scrolling';
|
|
12
11
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class NgxGanttComponent extends GanttUpper implements OnInit, OnChanges, AfterViewInit {
|
|
14
|
-
private
|
|
12
|
+
export declare class NgxGanttComponent extends GanttUpper implements OnInit, OnChanges, AfterViewInit, AfterViewChecked {
|
|
13
|
+
private viewportRuler;
|
|
15
14
|
maxLevel: number;
|
|
16
15
|
async: boolean;
|
|
17
16
|
childrenResolve: (GanttItem: any) => Observable<GanttItem[]>;
|
|
@@ -36,10 +35,11 @@ export declare class NgxGanttComponent extends GanttUpper implements OnInit, OnC
|
|
|
36
35
|
private rangeStart;
|
|
37
36
|
private rangeEnd;
|
|
38
37
|
private flatItemsMap;
|
|
39
|
-
constructor(elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef, ngZone: NgZone,
|
|
38
|
+
constructor(elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef, ngZone: NgZone, viewportRuler: ViewportRuler, config: GanttGlobalConfig);
|
|
40
39
|
ngOnInit(): void;
|
|
41
40
|
ngOnChanges(changes: SimpleChanges): void;
|
|
42
41
|
ngAfterViewInit(): void;
|
|
42
|
+
ngAfterViewChecked(): void;
|
|
43
43
|
private buildFlatItems;
|
|
44
44
|
private afterExpand;
|
|
45
45
|
private computeTempDataRefs;
|
|
@@ -49,6 +49,6 @@ export declare class NgxGanttComponent extends GanttUpper implements OnInit, OnC
|
|
|
49
49
|
scrollToDate(date: number | GanttDate): void;
|
|
50
50
|
expandGroups(expanded: boolean): void;
|
|
51
51
|
expandGroup(group: GanttGroupInternal): void;
|
|
52
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttComponent,
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttComponent, never>;
|
|
53
53
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttComponent, "ngx-gantt", never, { "maxLevel": "maxLevel"; "async": "async"; "childrenResolve": "childrenResolve"; "linkable": "linkable"; "loading": "loading"; "virtualScrollEnabled": "virtualScrollEnabled"; "loadingDelay": "loadingDelay"; }, { "linkDragStarted": "linkDragStarted"; "linkDragEnded": "linkDragEnded"; "lineClick": "lineClick"; "selectedChange": "selectedChange"; }, ["table", "tableEmptyTemplate", "columns"], never, false, never>;
|
|
54
54
|
}
|
package/gantt.component.scss
CHANGED
|
@@ -60,7 +60,6 @@
|
|
|
60
60
|
right: 0;
|
|
61
61
|
// 兼容火狐浏览器
|
|
62
62
|
overflow: auto;
|
|
63
|
-
overflow: overlay;
|
|
64
63
|
background-color: variables.$gantt-container-background-color;
|
|
65
64
|
|
|
66
65
|
.gantt-main-groups,
|
|
@@ -100,7 +99,6 @@
|
|
|
100
99
|
z-index: 2;
|
|
101
100
|
// 兼容火狐浏览器
|
|
102
101
|
overflow: auto;
|
|
103
|
-
overflow: overlay;
|
|
104
102
|
.cdk-virtual-scroll-content-wrapper {
|
|
105
103
|
width: 100%;
|
|
106
104
|
min-width: unset;
|
|
@@ -110,6 +108,7 @@
|
|
|
110
108
|
.gantt-main-container {
|
|
111
109
|
height: 100%;
|
|
112
110
|
top: 0;
|
|
111
|
+
overflow-y: hidden;
|
|
113
112
|
}
|
|
114
113
|
}
|
|
115
114
|
}
|
|
@@ -121,6 +120,11 @@
|
|
|
121
120
|
.cdk-virtual-scroll-spacer {
|
|
122
121
|
display: none;
|
|
123
122
|
}
|
|
123
|
+
.gantt-container {
|
|
124
|
+
.gantt-main-container {
|
|
125
|
+
overflow-y: auto;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
124
128
|
}
|
|
125
129
|
}
|
|
126
130
|
}
|
package/package.json
CHANGED
package/root.component.d.ts
CHANGED
|
@@ -17,10 +17,14 @@ export declare class NgxGanttRootComponent implements OnInit, OnDestroy {
|
|
|
17
17
|
mainTemplate: TemplateRef<any>;
|
|
18
18
|
/** The native `<gantt-drag-backdrop></gantt-drag-backdrop>` element. */
|
|
19
19
|
backdrop: ElementRef<HTMLElement>;
|
|
20
|
+
verticalScrollbarWidth: number;
|
|
21
|
+
horizontalScrollbarHeight: number;
|
|
20
22
|
private unsubscribe$;
|
|
21
23
|
private get view();
|
|
24
|
+
onWindowResize(): void;
|
|
22
25
|
constructor(elementRef: ElementRef<HTMLElement>, ngZone: NgZone, dom: GanttDomService, dragContainer: GanttDragContainer, ganttUpper: GanttUpper, printService: GanttPrintService);
|
|
23
26
|
ngOnInit(): void;
|
|
27
|
+
computeScrollBarOffset(): void;
|
|
24
28
|
ngOnDestroy(): void;
|
|
25
29
|
private setupViewScroll;
|
|
26
30
|
private setupResize;
|