@worktile/gantt 15.1.0-next.1 → 15.1.0-next.10

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.
@@ -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,8 @@ export interface GanttAbstractComponent {
6
6
  table: NgxGanttTableComponent;
7
7
  styles: GanttStyles;
8
8
  maxLevel: number;
9
+ async: boolean;
10
+ cdr: ChangeDetectorRef;
9
11
  expandGroup(group: GanttGroupInternal): void;
10
12
  expandChildren(item: GanttItemInternal): void;
11
13
  }
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/gantt",
3
- "version": "15.1.0-next.1",
3
+ "version": "15.1.0-next.10",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "exports": {
6
6
  ".": {
@@ -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
  }
@@ -1,13 +1,15 @@
1
1
  import { EventEmitter, TemplateRef } from '@angular/core';
2
- import { GanttTableDragEnterPredicateContext, GanttTableDragDroppedEvent, GanttTableEvent } from '../class';
2
+ import { GanttTableDragEnterPredicateContext, GanttTableDragDroppedEvent, GanttTableEvent, GanttTableDragStartedEvent, GanttTableDragEndedEvent } from '../class';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class NgxGanttTableComponent {
5
5
  draggable: boolean;
6
6
  dropEnterPredicate?: (context: GanttTableDragEnterPredicateContext) => boolean;
7
7
  dragDropped: EventEmitter<GanttTableDragDroppedEvent<unknown>>;
8
+ dragStarted: EventEmitter<GanttTableDragStartedEvent<unknown>>;
9
+ dragEnded: EventEmitter<GanttTableDragEndedEvent<unknown>>;
8
10
  columnChanges: EventEmitter<GanttTableEvent>;
9
11
  rowBeforeTemplate: TemplateRef<any>;
10
12
  rowAfterTemplate: TemplateRef<any>;
11
13
  static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttTableComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttTableComponent, "ngx-gantt-table", never, { "draggable": "draggable"; "dropEnterPredicate": "dropEnterPredicate"; }, { "dragDropped": "dragDropped"; "columnChanges": "columnChanges"; }, ["rowBeforeTemplate", "rowAfterTemplate"], never, false, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttTableComponent, "ngx-gantt-table", never, { "draggable": "draggable"; "dropEnterPredicate": "dropEnterPredicate"; }, { "dragDropped": "dragDropped"; "dragStarted": "dragStarted"; "dragEnded": "dragEnded"; "columnChanges": "columnChanges"; }, ["rowBeforeTemplate", "rowAfterTemplate"], never, false, never>;
13
15
  }
@@ -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;