@worktile/gantt 12.1.2 → 12.1.3
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/bundles/worktile-gantt.umd.js +95 -12
- package/bundles/worktile-gantt.umd.js.map +1 -1
- package/class/event.d.ts +4 -0
- package/components/table/gantt-table.component.d.ts +8 -5
- package/esm2015/class/event.js +3 -1
- package/esm2015/components/main/gantt-main.component.js +2 -2
- package/esm2015/components/table/gantt-table.component.js +16 -6
- package/esm2015/gantt-upper.js +45 -2
- package/esm2015/gantt.component.js +23 -3
- package/fesm2015/worktile-gantt.js +82 -10
- package/fesm2015/worktile-gantt.js.map +1 -1
- package/gantt-upper.d.ts +12 -1
- package/gantt.component.d.ts +4 -2
- package/main.bundle.scss +12 -0
- package/package.json +1 -1
package/gantt-upper.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ import { GanttView, GanttViewOptions } from './views/view';
|
|
|
5
5
|
import { GanttStyles } from './gantt.styles';
|
|
6
6
|
import { GanttDragContainer } from './gantt-drag-container';
|
|
7
7
|
import { GanttGlobalConfig } from './gantt.config';
|
|
8
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
9
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
export declare abstract class GanttUpper {
|
|
10
12
|
protected elementRef: ElementRef<HTMLElement>;
|
|
@@ -21,6 +23,10 @@ export declare abstract class GanttUpper {
|
|
|
21
23
|
styles: GanttStyles;
|
|
22
24
|
viewOptions: GanttViewOptions;
|
|
23
25
|
disabledLoadOnScroll: boolean;
|
|
26
|
+
set selectable(value: BooleanInput);
|
|
27
|
+
get selectable(): boolean;
|
|
28
|
+
set multiple(value: BooleanInput);
|
|
29
|
+
get multiple(): boolean;
|
|
24
30
|
loadOnScroll: EventEmitter<GanttLoadOnScrollEvent>;
|
|
25
31
|
dragStarted: EventEmitter<GanttDragEvent<unknown>>;
|
|
26
32
|
dragMoved: EventEmitter<GanttDragEvent<unknown>>;
|
|
@@ -42,7 +48,10 @@ export declare abstract class GanttUpper {
|
|
|
42
48
|
firstChange: boolean;
|
|
43
49
|
dragContainer: GanttDragContainer;
|
|
44
50
|
unsubscribe$: Subject<unknown>;
|
|
51
|
+
selectionModel: SelectionModel<string>;
|
|
45
52
|
private groupsMap;
|
|
53
|
+
private _selectable;
|
|
54
|
+
private _multiple;
|
|
46
55
|
ganttClass: boolean;
|
|
47
56
|
constructor(elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef, ngZone: NgZone, config: GanttGlobalConfig);
|
|
48
57
|
private createView;
|
|
@@ -52,6 +61,7 @@ export declare abstract class GanttUpper {
|
|
|
52
61
|
private getViewDate;
|
|
53
62
|
computeRefs(): void;
|
|
54
63
|
private expandGroups;
|
|
64
|
+
private initSelectionModel;
|
|
55
65
|
onInit(): void;
|
|
56
66
|
onChanges(changes: SimpleChanges): void;
|
|
57
67
|
onDestroy(): void;
|
|
@@ -63,7 +73,8 @@ export declare abstract class GanttUpper {
|
|
|
63
73
|
collapseAll(): void;
|
|
64
74
|
getGanttItem(id: string): GanttItemInternal;
|
|
65
75
|
getGanttItems(ids: string[]): GanttItemInternal[];
|
|
76
|
+
isSelected(id: string): boolean;
|
|
66
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<GanttUpper, never>;
|
|
67
|
-
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"; "disabledLoadOnScroll": "disabledLoadOnScroll"; }, { "loadOnScroll": "loadOnScroll"; "dragStarted": "dragStarted"; "dragMoved": "dragMoved"; "dragEnded": "dragEnded"; "barClick": "barClick"; }, ["barTemplate", "rangeTemplate", "itemTemplate", "groupTemplate", "groupHeaderTemplate"]>;
|
|
78
|
+
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"; "disabledLoadOnScroll": "disabledLoadOnScroll"; "selectable": "selectable"; "multiple": "multiple"; }, { "loadOnScroll": "loadOnScroll"; "dragStarted": "dragStarted"; "dragMoved": "dragMoved"; "dragEnded": "dragEnded"; "barClick": "barClick"; }, ["barTemplate", "rangeTemplate", "itemTemplate", "groupTemplate", "groupHeaderTemplate"]>;
|
|
68
79
|
}
|
|
69
80
|
export declare const GANTT_UPPER_TOKEN: InjectionToken<GanttUpper>;
|
package/gantt.component.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnInit, ElementRef, EventEmitter, ChangeDetectorRef, NgZone, OnChanges, OnDestroy, SimpleChanges, QueryList, AfterViewInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { GanttUpper } from './gantt-upper';
|
|
4
|
-
import { GanttLinkDragEvent, GanttLineClickEvent, GanttItemInternal, GanttItem } from './class';
|
|
4
|
+
import { GanttLinkDragEvent, GanttLineClickEvent, GanttItemInternal, GanttItem, GanttSelectedEvent } from './class';
|
|
5
5
|
import { NgxGanttTableColumnComponent } from './table/gantt-column.component';
|
|
6
6
|
import { NgxGanttTableComponent } from './table/gantt-table.component';
|
|
7
7
|
import { GanttGlobalConfig } from './gantt.config';
|
|
@@ -14,6 +14,7 @@ export declare class NgxGanttComponent extends GanttUpper implements OnInit, Aft
|
|
|
14
14
|
linkDragStarted: EventEmitter<GanttLinkDragEvent<unknown>>;
|
|
15
15
|
linkDragEnded: EventEmitter<GanttLinkDragEvent<unknown>>;
|
|
16
16
|
lineClick: EventEmitter<GanttLineClickEvent<unknown>>;
|
|
17
|
+
selectedChange: EventEmitter<GanttSelectedEvent<unknown>>;
|
|
17
18
|
table: NgxGanttTableComponent;
|
|
18
19
|
columns: QueryList<NgxGanttTableColumnComponent>;
|
|
19
20
|
tableEmptyTemplate: TemplateRef<any>;
|
|
@@ -24,7 +25,8 @@ export declare class NgxGanttComponent extends GanttUpper implements OnInit, Aft
|
|
|
24
25
|
ngAfterViewInit(): void;
|
|
25
26
|
ngOnChanges(changes: SimpleChanges): void;
|
|
26
27
|
expandChildren(item: GanttItemInternal): void;
|
|
28
|
+
selectItem(selectEvent: GanttSelectedEvent): void;
|
|
27
29
|
ngOnDestroy(): void;
|
|
28
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttComponent, "ngx-gantt", never, { "maxLevel": "maxLevel"; "async": "async"; "childrenResolve": "childrenResolve"; "linkable": "linkable"; }, { "linkDragStarted": "linkDragStarted"; "linkDragEnded": "linkDragEnded"; "lineClick": "lineClick"; }, ["table", "tableEmptyTemplate", "columns"], 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>;
|
|
30
32
|
}
|
package/main.bundle.scss
CHANGED
|
@@ -119,7 +119,12 @@ $gantt-table-header-drag-line-color: #348fe4 !default;
|
|
|
119
119
|
border-bottom: 1px solid $gantt-border-color;
|
|
120
120
|
box-sizing: border-box;
|
|
121
121
|
position: relative;
|
|
122
|
+
|
|
123
|
+
&.gantt-main-item-active {
|
|
124
|
+
background-color: rgba($color: $gantt-table-header-drag-line-color, $alpha: 0.1);
|
|
125
|
+
}
|
|
122
126
|
}
|
|
127
|
+
|
|
123
128
|
}
|
|
124
129
|
}
|
|
125
130
|
|
|
@@ -258,6 +263,13 @@ $gantt-table-header-drag-line-color: #348fe4 !default;
|
|
|
258
263
|
&:hover {
|
|
259
264
|
background-color: $gantt-container-background-color;
|
|
260
265
|
}
|
|
266
|
+
|
|
267
|
+
&-active {
|
|
268
|
+
background-color: rgba($color: $gantt-table-header-drag-line-color, $alpha: 0.1);
|
|
269
|
+
&:hover {
|
|
270
|
+
background-color: rgba($color: $gantt-table-header-drag-line-color, $alpha: 0.1);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
261
273
|
}
|
|
262
274
|
|
|
263
275
|
.gantt-expand-icon {
|