@worktile/gantt 15.1.0 → 15.1.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.
@@ -18,6 +18,7 @@ export declare class GanttDomService implements OnDestroy {
18
18
  container: Element;
19
19
  sideContainer: Element;
20
20
  mainContainer: Element;
21
+ verticalScrollContainer: Element;
21
22
  calendarHeader: Element;
22
23
  mainItems: Element;
23
24
  calendarOverlay: Element;
@@ -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 printService;
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, printService: GanttPrintService, config: GanttGlobalConfig);
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, [null, null, null, { optional: true; }, null]>;
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
  }
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/gantt",
3
- "version": "15.1.0",
3
+ "version": "15.1.2",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "exports": {
6
6
  ".": {
@@ -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;