@worktile/gantt 16.0.1 → 16.0.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/components/table/gantt-table.scss +4 -0
- package/esm2022/components/table/header/gantt-table-header.component.mjs +3 -3
- package/esm2022/gantt.component.mjs +27 -3
- package/fesm2022/worktile-gantt.mjs +28 -4
- package/fesm2022/worktile-gantt.mjs.map +1 -1
- package/gantt.component.d.ts +5 -1
- package/package.json +1 -1
- package/styles/cdk/drag-drop.scss +47 -0
- package/styles/index.scss +1 -2
package/gantt.component.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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
|
-
import { GanttLinkDragEvent, GanttLineClickEvent, GanttItemInternal, GanttItem, GanttSelectedEvent, GanttGroupInternal, GanttVirtualScrolledIndexChangeEvent } from './class';
|
|
4
|
+
import { GanttLinkDragEvent, GanttLineClickEvent, GanttItemInternal, GanttItem, GanttSelectedEvent, GanttGroupInternal, GanttVirtualScrolledIndexChangeEvent, GanttTableDragStartedEvent, GanttTableDragEndedEvent } 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';
|
|
@@ -37,6 +37,7 @@ export declare class NgxGanttComponent extends GanttUpper implements OnInit, OnC
|
|
|
37
37
|
private rangeStart;
|
|
38
38
|
private rangeEnd;
|
|
39
39
|
private flatItemsMap;
|
|
40
|
+
private draggingItem;
|
|
40
41
|
constructor(elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef, ngZone: NgZone, viewportRuler: ViewportRuler, config: GanttGlobalConfig);
|
|
41
42
|
ngOnInit(): void;
|
|
42
43
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -45,6 +46,7 @@ export declare class NgxGanttComponent extends GanttUpper implements OnInit, OnC
|
|
|
45
46
|
private buildFlatItems;
|
|
46
47
|
private afterExpand;
|
|
47
48
|
private computeTempDataRefs;
|
|
49
|
+
private appendDraggingItemToViewportItems;
|
|
48
50
|
expandChildren(item: GanttItemInternal): void;
|
|
49
51
|
selectItem(selectEvent: GanttSelectedEvent): void;
|
|
50
52
|
scrollToToday(): void;
|
|
@@ -52,6 +54,8 @@ export declare class NgxGanttComponent extends GanttUpper implements OnInit, OnC
|
|
|
52
54
|
scrolledIndexChange(index: number): void;
|
|
53
55
|
expandGroups(expanded: boolean): void;
|
|
54
56
|
expandGroup(group: GanttGroupInternal): void;
|
|
57
|
+
itemDragStarted(event: GanttTableDragStartedEvent): void;
|
|
58
|
+
itemDragEnded(event: GanttTableDragEndedEvent): void;
|
|
55
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttComponent, never>;
|
|
56
60
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttComponent, "ngx-gantt", never, { "maxLevel": { "alias": "maxLevel"; "required": false; }; "async": { "alias": "async"; "required": false; }; "childrenResolve": { "alias": "childrenResolve"; "required": false; }; "linkable": { "alias": "linkable"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "virtualScrollEnabled": { "alias": "virtualScrollEnabled"; "required": false; }; "loadingDelay": { "alias": "loadingDelay"; "required": false; }; }, { "linkDragStarted": "linkDragStarted"; "linkDragEnded": "linkDragEnded"; "lineClick": "lineClick"; "selectedChange": "selectedChange"; "virtualScrolledIndexChange": "virtualScrolledIndexChange"; }, ["table", "tableEmptyTemplate", "footerTemplate", "columns"], never, false, never>;
|
|
57
61
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.cdk-drag {
|
|
2
|
+
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
3
|
+
.cdk-drag-handle {
|
|
4
|
+
visibility: hidden;
|
|
5
|
+
padding: 0 15px 0 3px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:hover {
|
|
9
|
+
.cdk-drag-handle {
|
|
10
|
+
visibility: visible;
|
|
11
|
+
color: #999;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.cdk-drag-disabled {
|
|
16
|
+
&:hover {
|
|
17
|
+
.cdk-drag-handle {
|
|
18
|
+
visibility: hidden;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.cdk-drag-placeholder {
|
|
25
|
+
color: transparent !important;
|
|
26
|
+
background: #eee !important;
|
|
27
|
+
|
|
28
|
+
&:hover {
|
|
29
|
+
box-shadow: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
* {
|
|
33
|
+
color: transparent !important;
|
|
34
|
+
visibility: hidden;
|
|
35
|
+
box-shadow: none;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.cdk-drag-preview {
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.08);
|
|
42
|
+
background: white !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.cdk-drag-animating {
|
|
46
|
+
transition: none; // transform 250ms cubic-bezier(0, 0, 1, 1);
|
|
47
|
+
}
|
package/styles/index.scss
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@use './variables.scss';
|
|
2
|
+
@use './cdk/drag-drop.scss';
|
|
2
3
|
@use '../gantt.component.scss';
|
|
3
|
-
// @use '../components/table/gantt-table.component.scss';
|
|
4
|
-
// @use '../components/calendar/calendar.component.scss';
|
|
5
4
|
@use '../components/table/gantt-table.scss';
|
|
6
5
|
@use '../components/calendar/calendar.scss';
|
|
7
6
|
@use '../components/drag-backdrop/drag-backdrop.component.scss';
|