@worktile/gantt 12.2.1 → 13.0.0-next.0
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/bar/bar-drag.d.ts +4 -2
- package/components/bar/bar.component.d.ts +4 -4
- package/components/bar/bar.component.scss +201 -0
- package/components/calendar/calendar.component.d.ts +3 -5
- package/components/calendar/calendar.component.scss +79 -0
- package/components/drag-backdrop/drag-backdrop.component.d.ts +1 -5
- package/components/drag-backdrop/drag-backdrop.component.scss +50 -0
- package/components/icon/icon.component.d.ts +2 -4
- package/components/icon/icon.component.scss +13 -0
- package/components/links/links.component.scss +29 -0
- package/components/main/gantt-main.component.d.ts +2 -3
- package/components/range/range.component.d.ts +2 -5
- package/components/range/range.component.scss +35 -0
- package/components/table/gantt-table.component.d.ts +2 -3
- package/components/table/gantt-table.component.scss +153 -0
- package/{esm2015/class/date-point.js → esm2020/class/date-point.mjs} +0 -0
- package/{esm2015/class/event.js → esm2020/class/event.mjs} +0 -0
- package/{esm2015/class/group.js → esm2020/class/group.mjs} +0 -0
- package/{esm2015/class/index.js → esm2020/class/index.mjs} +0 -0
- package/{esm2015/class/item.js → esm2020/class/item.mjs} +0 -0
- package/{esm2015/class/link.js → esm2020/class/link.mjs} +0 -0
- package/{esm2015/class/view-type.js → esm2020/class/view-type.mjs} +0 -0
- package/esm2020/components/bar/bar-drag.mjs +308 -0
- package/esm2020/components/bar/bar.component.mjs +101 -0
- package/esm2020/components/calendar/calendar.component.mjs +88 -0
- package/esm2020/components/drag-backdrop/drag-backdrop.component.mjs +13 -0
- package/esm2020/components/icon/icon.component.mjs +36 -0
- package/{esm2015/components/icon/icons.js → esm2020/components/icon/icons.mjs} +0 -0
- package/esm2020/components/links/lines/curve.mjs +95 -0
- package/{esm2015/components/links/lines/factory.js → esm2020/components/links/lines/factory.mjs} +0 -0
- package/{esm2015/components/links/lines/line.js → esm2020/components/links/lines/line.mjs} +0 -0
- package/{esm2015/components/links/lines/straight.js → esm2020/components/links/lines/straight.mjs} +0 -0
- package/esm2020/components/links/links.component.mjs +178 -0
- package/esm2020/components/main/gantt-main.component.mjs +49 -0
- package/esm2020/components/range/range.component.mjs +25 -0
- package/esm2020/components/table/gantt-table.component.mjs +163 -0
- package/{esm2015/gantt-abstract.js → esm2020/gantt-abstract.mjs} +0 -0
- package/esm2020/gantt-dom.service.mjs +117 -0
- package/esm2020/gantt-drag-container.mjs +78 -0
- package/esm2020/gantt-item-upper.mjs +58 -0
- package/esm2020/gantt-print.service.mjs +94 -0
- package/esm2020/gantt-upper.mjs +339 -0
- package/esm2020/gantt.component.mjs +150 -0
- package/{esm2015/gantt.config.js → esm2020/gantt.config.mjs} +0 -0
- package/{esm2015/gantt.module.js → esm2020/gantt.module.mjs} +4 -4
- package/{esm2015/gantt.pipe.js → esm2020/gantt.pipe.mjs} +9 -9
- package/{esm2015/gantt.styles.js → esm2020/gantt.styles.mjs} +0 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/esm2020/root.component.mjs +130 -0
- package/esm2020/table/gantt-column.component.mjs +36 -0
- package/esm2020/table/gantt-table.component.mjs +25 -0
- package/{esm2015/utils/date.js → esm2020/utils/date.mjs} +0 -0
- package/{esm2015/utils/helpers.js → esm2020/utils/helpers.mjs} +0 -0
- package/esm2020/utils/passive-listeners.mjs +30 -0
- package/esm2020/utils/set-style-with-vendor-prefix.mjs +15 -0
- package/{esm2015/views/day.js → esm2020/views/day.mjs} +1 -1
- package/{esm2015/views/factory.js → esm2020/views/factory.mjs} +0 -0
- package/{esm2015/views/month.js → esm2020/views/month.mjs} +0 -0
- package/{esm2015/views/quarter.js → esm2020/views/quarter.mjs} +0 -0
- package/{esm2015/views/view.js → esm2020/views/view.mjs} +5 -5
- package/{esm2015/views/week.js → esm2020/views/week.mjs} +0 -0
- package/{esm2015/views/year.js → esm2020/views/year.mjs} +0 -0
- package/{esm2015/worktile-gantt.js → esm2020/worktile-gantt.mjs} +0 -0
- package/fesm2015/worktile-gantt.mjs +3080 -0
- package/fesm2015/worktile-gantt.mjs.map +1 -0
- package/{fesm2015/worktile-gantt.js → fesm2020/worktile-gantt.mjs} +344 -288
- package/fesm2020/worktile-gantt.mjs.map +1 -0
- package/gantt-dom.service.d.ts +11 -4
- package/gantt-drag-container.d.ts +1 -1
- package/gantt-item-upper.d.ts +6 -6
- package/gantt-print.service.d.ts +1 -1
- package/gantt-upper.d.ts +6 -6
- package/gantt.component.d.ts +2 -4
- package/gantt.component.scss +83 -0
- package/package.json +23 -9
- package/root.component.d.ts +5 -3
- package/styles/index.scss +10 -0
- package/styles/variables.scss +46 -0
- package/table/gantt-column.component.d.ts +2 -3
- package/table/gantt-table.component.d.ts +2 -4
- package/utils/passive-listeners.d.ts +13 -0
- package/utils/set-style-with-vendor-prefix.d.ts +12 -0
- package/README.md +0 -24
- package/bundles/worktile-gantt.umd.js +0 -3622
- package/bundles/worktile-gantt.umd.js.map +0 -1
- package/esm2015/components/bar/bar-drag.js +0 -295
- package/esm2015/components/bar/bar.component.js +0 -98
- package/esm2015/components/calendar/calendar.component.js +0 -86
- package/esm2015/components/drag-backdrop/drag-backdrop.component.js +0 -21
- package/esm2015/components/icon/icon.component.js +0 -38
- package/esm2015/components/links/lines/curve.js +0 -96
- package/esm2015/components/links/links.component.js +0 -173
- package/esm2015/components/main/gantt-main.component.js +0 -53
- package/esm2015/components/range/range.component.js +0 -37
- package/esm2015/components/table/gantt-table.component.js +0 -163
- package/esm2015/gantt-dom.service.js +0 -103
- package/esm2015/gantt-drag-container.js +0 -77
- package/esm2015/gantt-item-upper.js +0 -58
- package/esm2015/gantt-print.service.js +0 -94
- package/esm2015/gantt-upper.js +0 -331
- package/esm2015/gantt.component.js +0 -155
- package/esm2015/root.component.js +0 -123
- package/esm2015/table/gantt-column.component.js +0 -37
- package/esm2015/table/gantt-table.component.js +0 -26
- package/fesm2015/worktile-gantt.js.map +0 -1
- package/main.bundle.scss +0 -687
|
@@ -4,11 +4,13 @@ import { GanttDomService } from '../../gantt-dom.service';
|
|
|
4
4
|
import { GanttDragContainer } from '../../gantt-drag-container';
|
|
5
5
|
import { GanttItemInternal } from '../../class/item';
|
|
6
6
|
import { GanttUpper } from '../../gantt-upper';
|
|
7
|
+
import { NgxGanttRootComponent } from '../../root.component';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class GanttBarDrag implements OnDestroy {
|
|
9
10
|
private dragDrop;
|
|
10
11
|
private dom;
|
|
11
12
|
private dragContainer;
|
|
13
|
+
private root;
|
|
12
14
|
private ganttUpper;
|
|
13
15
|
private barElement;
|
|
14
16
|
private item;
|
|
@@ -18,7 +20,7 @@ export declare class GanttBarDrag implements OnDestroy {
|
|
|
18
20
|
private barDragRef;
|
|
19
21
|
private dragRefs;
|
|
20
22
|
private destroy$;
|
|
21
|
-
constructor(dragDrop: DragDrop, dom: GanttDomService, dragContainer: GanttDragContainer);
|
|
23
|
+
constructor(dragDrop: DragDrop, dom: GanttDomService, dragContainer: GanttDragContainer, root: NgxGanttRootComponent);
|
|
22
24
|
private createMouseEvents;
|
|
23
25
|
private createBarDrag;
|
|
24
26
|
private createBarHandleDrags;
|
|
@@ -32,6 +34,6 @@ export declare class GanttBarDrag implements OnDestroy {
|
|
|
32
34
|
private destroyLinkDraggingLine;
|
|
33
35
|
createDrags(elementRef: ElementRef, item: GanttItemInternal, ganttUpper: GanttUpper): void;
|
|
34
36
|
ngOnDestroy(): void;
|
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GanttBarDrag,
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GanttBarDrag, [null, null, null, { skipSelf: true; }]>;
|
|
36
38
|
static ɵprov: i0.ɵɵInjectableDeclaration<GanttBarDrag>;
|
|
37
39
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit, ElementRef, OnChanges, OnDestroy, EventEmitter, AfterViewInit } from '@angular/core';
|
|
1
|
+
import { OnInit, ElementRef, OnChanges, OnDestroy, EventEmitter, AfterViewInit, QueryList, NgZone } from '@angular/core';
|
|
2
2
|
import { GanttBarDrag } from './bar-drag';
|
|
3
3
|
import { GanttDragContainer } from '../../gantt-drag-container';
|
|
4
4
|
import { GanttBarClickEvent } from '../../class';
|
|
@@ -9,18 +9,18 @@ export declare class NgxGanttBarComponent extends GanttItemUpper implements OnIn
|
|
|
9
9
|
private dragContainer;
|
|
10
10
|
private drag;
|
|
11
11
|
ganttUpper: GanttUpper;
|
|
12
|
+
private ngZone;
|
|
12
13
|
barClick: EventEmitter<GanttBarClickEvent<unknown>>;
|
|
13
14
|
contentElementRef: ElementRef<HTMLDivElement>;
|
|
14
15
|
ganttItemClass: boolean;
|
|
16
|
+
handles: QueryList<ElementRef<HTMLElement>>;
|
|
15
17
|
color: string;
|
|
16
|
-
constructor(dragContainer: GanttDragContainer, drag: GanttBarDrag, elementRef: ElementRef<HTMLDivElement>, ganttUpper: GanttUpper);
|
|
18
|
+
constructor(dragContainer: GanttDragContainer, drag: GanttBarDrag, elementRef: ElementRef<HTMLDivElement>, ganttUpper: GanttUpper, ngZone: NgZone);
|
|
17
19
|
ngOnInit(): void;
|
|
18
20
|
ngAfterViewInit(): void;
|
|
19
|
-
ngOnChanges(): void;
|
|
20
21
|
onBarClick(event: Event): void;
|
|
21
22
|
private setContentBackground;
|
|
22
23
|
stopPropagation(event: Event): void;
|
|
23
|
-
ngOnDestroy(): void;
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttBarComponent, never>;
|
|
25
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttBarComponent, "ngx-gantt-bar,gantt-bar", never, {}, { "barClick": "barClick"; }, never, never>;
|
|
26
26
|
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../../styles/variables';
|
|
3
|
+
|
|
4
|
+
$gantt-bar-layer-append-width: 32px;
|
|
5
|
+
$gantt-bar-layer-append-height: 42px;
|
|
6
|
+
$gantt-bar-link-height: 16px;
|
|
7
|
+
$gantt-bar-link-handle-size: 16px;
|
|
8
|
+
$gantt-bar-link-drop-border: 5px;
|
|
9
|
+
|
|
10
|
+
@mixin link-handles {
|
|
11
|
+
.link-handles {
|
|
12
|
+
.handle {
|
|
13
|
+
position: absolute;
|
|
14
|
+
display: inline-block;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
width: $gantt-bar-link-height;
|
|
17
|
+
height: $gantt-bar-link-height;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
z-index: 1001;
|
|
22
|
+
|
|
23
|
+
&:first-child {
|
|
24
|
+
left: 0;
|
|
25
|
+
top: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:last-child {
|
|
29
|
+
right: 0;
|
|
30
|
+
bottom: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.point {
|
|
34
|
+
color: #348fe4;
|
|
35
|
+
width: 10px;
|
|
36
|
+
height: 10px;
|
|
37
|
+
border-radius: 50%;
|
|
38
|
+
background: #348fe4;
|
|
39
|
+
transition: 0.3 ease;
|
|
40
|
+
|
|
41
|
+
&:hover {
|
|
42
|
+
width: 12px;
|
|
43
|
+
height: 12px;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@mixin drag-handles {
|
|
51
|
+
.drag-handles {
|
|
52
|
+
background: variables.$gantt-bar-layer-bg;
|
|
53
|
+
width: 100%;
|
|
54
|
+
height: calc(100% - #{$gantt-bar-link-height} * 2);
|
|
55
|
+
position: absolute;
|
|
56
|
+
border-radius: 4px;
|
|
57
|
+
top: $gantt-bar-link-height;
|
|
58
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.15);
|
|
59
|
+
|
|
60
|
+
.handle {
|
|
61
|
+
width: 15px;
|
|
62
|
+
height: 100%;
|
|
63
|
+
position: absolute;
|
|
64
|
+
cursor: col-resize;
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
|
|
69
|
+
&:before,
|
|
70
|
+
&:after {
|
|
71
|
+
content: '';
|
|
72
|
+
display: inline-block;
|
|
73
|
+
width: 1px;
|
|
74
|
+
height: variables.$gantt-bar-handle-height;
|
|
75
|
+
background: variables.$gantt-bar-handle-color;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&::before {
|
|
79
|
+
margin-right: 2px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&:first-child {
|
|
83
|
+
left: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:last-child {
|
|
87
|
+
right: 0;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@mixin active-bar {
|
|
94
|
+
z-index: 1000;
|
|
95
|
+
|
|
96
|
+
.gantt-bar-layer {
|
|
97
|
+
display: block;
|
|
98
|
+
z-index: 1;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.gantt-bar-content {
|
|
102
|
+
z-index: 1;
|
|
103
|
+
box-shadow: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.cdk-drag {
|
|
107
|
+
transition: none;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.gantt-bar {
|
|
112
|
+
position: absolute;
|
|
113
|
+
border-radius: 4px;
|
|
114
|
+
z-index: 2;
|
|
115
|
+
background: variables.$gantt-bar-bg;
|
|
116
|
+
|
|
117
|
+
.gantt-bar-layer {
|
|
118
|
+
width: calc(100% + #{$gantt-bar-layer-append-width});
|
|
119
|
+
height: calc(100% + #{$gantt-bar-layer-append-height});
|
|
120
|
+
position: absolute;
|
|
121
|
+
border-radius: 4px;
|
|
122
|
+
left: math.div($gantt-bar-layer-append-width, 2) * -1;
|
|
123
|
+
top: math.div($gantt-bar-layer-append-height, 2) * -1;
|
|
124
|
+
display: none;
|
|
125
|
+
@include drag-handles();
|
|
126
|
+
@include link-handles();
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.gantt-bar-border {
|
|
130
|
+
width: calc(100% + #{$gantt-bar-link-drop-border} * 2);
|
|
131
|
+
height: calc(100% + #{$gantt-bar-link-drop-border} * 2);
|
|
132
|
+
position: absolute;
|
|
133
|
+
border-radius: 4px;
|
|
134
|
+
left: $gantt-bar-link-drop-border * -1;
|
|
135
|
+
top: $gantt-bar-link-drop-border * -1;
|
|
136
|
+
display: none;
|
|
137
|
+
background: #fff;
|
|
138
|
+
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.gantt-bar-content {
|
|
142
|
+
width: 100%;
|
|
143
|
+
height: 100%;
|
|
144
|
+
position: absolute;
|
|
145
|
+
cursor: pointer;
|
|
146
|
+
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
|
|
147
|
+
border-radius: 4px;
|
|
148
|
+
background: variables.$gantt-bar-background-color;
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
box-sizing: border-box;
|
|
151
|
+
|
|
152
|
+
.gantt-bar-content-progress {
|
|
153
|
+
position: absolute;
|
|
154
|
+
left: 0;
|
|
155
|
+
top: 0;
|
|
156
|
+
height: 100%;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&-active {
|
|
161
|
+
@include active-bar();
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&-single-drop-active {
|
|
165
|
+
.gantt-bar-border {
|
|
166
|
+
display: block;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.gantt-bar-content {
|
|
170
|
+
box-shadow: none;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&-drop-active {
|
|
175
|
+
@include active-bar();
|
|
176
|
+
|
|
177
|
+
.gantt-bar-layer {
|
|
178
|
+
.link-handles {
|
|
179
|
+
.handle {
|
|
180
|
+
width: $gantt-bar-link-handle-size + 10px;
|
|
181
|
+
height: 100%;
|
|
182
|
+
|
|
183
|
+
&:first-child {
|
|
184
|
+
left: -$gantt-bar-link-handle-size - 5px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&:last-child {
|
|
188
|
+
right: -$gantt-bar-link-handle-size - 5px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&:hover {
|
|
192
|
+
.point {
|
|
193
|
+
width: 12px;
|
|
194
|
+
height: 12px;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { OnInit,
|
|
1
|
+
import { OnInit, OnDestroy, NgZone, ElementRef } from '@angular/core';
|
|
2
2
|
import { GanttDatePoint } from '../../class/date-point';
|
|
3
3
|
import { GanttUpper } from '../../gantt-upper';
|
|
4
4
|
import { GanttViewType } from './../../class/view-type';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class GanttCalendarComponent implements OnInit,
|
|
6
|
+
export declare class GanttCalendarComponent implements OnInit, OnDestroy {
|
|
7
7
|
ganttUpper: GanttUpper;
|
|
8
8
|
private ngZone;
|
|
9
9
|
private elementRef;
|
|
10
10
|
get view(): import("@worktile/gantt").GanttView;
|
|
11
|
-
private unsubscribe$;
|
|
12
11
|
headerHeight: number;
|
|
13
12
|
mainHeight: number;
|
|
14
13
|
todayHeight: number;
|
|
@@ -16,11 +15,10 @@ export declare class GanttCalendarComponent implements OnInit, AfterViewInit, On
|
|
|
16
15
|
todayBorderRadius: number;
|
|
17
16
|
viewTypes: typeof GanttViewType;
|
|
18
17
|
className: boolean;
|
|
18
|
+
private unsubscribe$;
|
|
19
19
|
constructor(ganttUpper: GanttUpper, ngZone: NgZone, elementRef: ElementRef<HTMLElement>);
|
|
20
20
|
setTodayPoint(): void;
|
|
21
21
|
ngOnInit(): void;
|
|
22
|
-
ngAfterViewInit(): void;
|
|
23
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
24
22
|
trackBy(index: number, point: GanttDatePoint): string | number;
|
|
25
23
|
ngOnDestroy(): void;
|
|
26
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<GanttCalendarComponent, never>;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@use '../../styles/variables';
|
|
2
|
+
|
|
3
|
+
.gantt-calendar-overlay {
|
|
4
|
+
display: block;
|
|
5
|
+
height: 100%;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
|
|
8
|
+
.gantt-calendar-today-overlay {
|
|
9
|
+
position: relative;
|
|
10
|
+
z-index: 2;
|
|
11
|
+
.today-rect {
|
|
12
|
+
width: 35px;
|
|
13
|
+
height: 24px;
|
|
14
|
+
position: absolute;
|
|
15
|
+
background: variables.$gantt-date-today-color;
|
|
16
|
+
color: variables.$gantt-date-today-text-color;
|
|
17
|
+
text-align: center;
|
|
18
|
+
border-radius: 4px;
|
|
19
|
+
}
|
|
20
|
+
.today-line {
|
|
21
|
+
position: absolute;
|
|
22
|
+
width: 3px;
|
|
23
|
+
background: variables.$gantt-date-today-color;
|
|
24
|
+
transform: scaleX(0.5);
|
|
25
|
+
transform-origin: 100% 0;
|
|
26
|
+
margin-left: -2px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.gantt-calendar-overlay-main {
|
|
31
|
+
position: relative;
|
|
32
|
+
z-index: 1;
|
|
33
|
+
background-color: variables.$gantt-bg-color;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
svg {
|
|
37
|
+
overflow: visible;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
line {
|
|
41
|
+
shape-rendering: crispEdges;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.primary-text {
|
|
45
|
+
fill: variables.$gantt-date-primary-color;
|
|
46
|
+
font-size: variables.$gantt-date-primary-font-size;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.secondary-text {
|
|
50
|
+
fill: variables.$gantt-date-secondary-color;
|
|
51
|
+
font-size: variables.$gantt-date-secondary-font-size;
|
|
52
|
+
|
|
53
|
+
&-weekend {
|
|
54
|
+
fill: variables.$gantt-date-secondary-weekend-color;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.primary-text,
|
|
59
|
+
.secondary-text {
|
|
60
|
+
text-anchor: middle;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.primary-line {
|
|
64
|
+
stroke: variables.$gantt-date-primary-border;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.secondary-line {
|
|
68
|
+
stroke-dasharray: 2px 5px;
|
|
69
|
+
stroke: #cacaca;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.header-line {
|
|
73
|
+
stroke: variables.$gantt-border-color;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.secondary-backdrop {
|
|
77
|
+
fill: variables.$gantt-date-week-backdrop-bg;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class GanttDragBackdropComponent
|
|
4
|
-
backdropClass: boolean;
|
|
5
|
-
constructor();
|
|
6
|
-
ngOnInit(): void;
|
|
2
|
+
export declare class GanttDragBackdropComponent {
|
|
7
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<GanttDragBackdropComponent, never>;
|
|
8
4
|
static ɵcmp: i0.ɵɵComponentDeclaration<GanttDragBackdropComponent, "gantt-drag-backdrop", never, {}, {}, never, never>;
|
|
9
5
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@use '../../styles/variables';
|
|
2
|
+
|
|
3
|
+
.gantt-drag-backdrop {
|
|
4
|
+
position: absolute;
|
|
5
|
+
top: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
bottom: 0;
|
|
8
|
+
left: 0;
|
|
9
|
+
z-index: 2;
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.gantt-drag-mask {
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: variables.$gantt-header-height;
|
|
16
|
+
z-index: 1;
|
|
17
|
+
height: 100%;
|
|
18
|
+
display: none;
|
|
19
|
+
background: rgba($color: variables.$gantt-item-drag-mask-color, $alpha: 0.05);
|
|
20
|
+
|
|
21
|
+
.date-range {
|
|
22
|
+
width: 100%;
|
|
23
|
+
min-width: 120px;
|
|
24
|
+
top: -23px;
|
|
25
|
+
background: variables.$gantt-item-drag-mask-color;
|
|
26
|
+
line-height: 23px;
|
|
27
|
+
border-radius: 4px;
|
|
28
|
+
color: #fff;
|
|
29
|
+
position: absolute;
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
padding: 0 10px;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.gantt-link-drag-container {
|
|
38
|
+
width: 100%;
|
|
39
|
+
height: 1px;
|
|
40
|
+
overflow: visible !important;
|
|
41
|
+
position: absolute;
|
|
42
|
+
top: 0;
|
|
43
|
+
left: 0;
|
|
44
|
+
z-index: 2000;
|
|
45
|
+
|
|
46
|
+
.link-dragging-line {
|
|
47
|
+
stroke: variables.$gantt-link-dragging-line-color;
|
|
48
|
+
stroke-width: 2px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class GanttIconComponent
|
|
3
|
+
export declare class GanttIconComponent {
|
|
4
4
|
private elementRef;
|
|
5
5
|
isIcon: boolean;
|
|
6
6
|
set iconName(name: string);
|
|
7
7
|
constructor(elementRef: ElementRef<HTMLElement>);
|
|
8
|
-
ngOnInit(): void;
|
|
9
|
-
ngAfterViewInit(): void;
|
|
10
8
|
setSvg(name: string): void;
|
|
11
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<GanttIconComponent, never>;
|
|
12
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<GanttIconComponent, "gantt-icon", never, { "iconName": "iconName"; }, {}, never, never>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@use '../../styles/variables';
|
|
2
|
+
|
|
3
|
+
.gantt-links-overlay {
|
|
4
|
+
position: absolute;
|
|
5
|
+
top: 0px;
|
|
6
|
+
left: 0px;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
svg {
|
|
10
|
+
overflow: visible;
|
|
11
|
+
z-index: 2;
|
|
12
|
+
position: absolute;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.link-dragging-container {
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 1px;
|
|
19
|
+
overflow: visible !important;
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: variables.$gantt-header-height;
|
|
22
|
+
left: 0;
|
|
23
|
+
z-index: 2000;
|
|
24
|
+
|
|
25
|
+
.link-dragging-line {
|
|
26
|
+
stroke: variables.$gantt-link-line-color;
|
|
27
|
+
stroke-width: 2px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TemplateRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { GanttGroupInternal, GanttItemInternal, GanttBarClickEvent, GanttLineClickEvent } from '../../class';
|
|
3
3
|
import { GanttUpper } from '../../gantt-upper';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class GanttMainComponent
|
|
5
|
+
export declare class GanttMainComponent {
|
|
6
6
|
ganttUpper: GanttUpper;
|
|
7
7
|
groups: GanttGroupInternal[];
|
|
8
8
|
items: GanttItemInternal[];
|
|
@@ -14,7 +14,6 @@ export declare class GanttMainComponent implements OnInit {
|
|
|
14
14
|
lineClick: EventEmitter<GanttLineClickEvent<unknown>>;
|
|
15
15
|
ganttMainClass: boolean;
|
|
16
16
|
constructor(ganttUpper: GanttUpper);
|
|
17
|
-
ngOnInit(): void;
|
|
18
17
|
trackBy(index: number, item: GanttGroupInternal | GanttItemInternal): string | number;
|
|
19
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<GanttMainComponent, never>;
|
|
20
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<GanttMainComponent, "gantt-main", never, { "groups": "groups"; "items": "items"; "groupHeaderTemplate": "groupHeaderTemplate"; "itemTemplate": "itemTemplate"; "barTemplate": "barTemplate"; "rangeTemplate": "rangeTemplate"; }, { "barClick": "barClick"; "lineClick": "lineClick"; }, never, never>;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
2
|
import { GanttUpper } from '../../gantt-upper';
|
|
3
3
|
import { GanttItemUpper } from '../../gantt-item-upper';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class NgxGanttRangeComponent extends GanttItemUpper
|
|
5
|
+
export declare class NgxGanttRangeComponent extends GanttItemUpper {
|
|
6
6
|
ganttRangeClass: boolean;
|
|
7
7
|
constructor(elementRef: ElementRef<HTMLDivElement>, ganttUpper: GanttUpper);
|
|
8
|
-
ngOnInit(): void;
|
|
9
|
-
ngOnChanges(): void;
|
|
10
|
-
ngOnDestroy(): void;
|
|
11
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttRangeComponent, never>;
|
|
12
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttRangeComponent, "ngx-gantt-range,gantt-range", never, {}, {}, never, never>;
|
|
13
10
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.gantt-range {
|
|
2
|
+
position: absolute;
|
|
3
|
+
z-index: 2;
|
|
4
|
+
.gantt-range-main {
|
|
5
|
+
height: 10px;
|
|
6
|
+
background: #dfdfdf;
|
|
7
|
+
border: 1px solid #888;
|
|
8
|
+
border-radius: 4px 4px 0 0;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
position: relative;
|
|
11
|
+
.gantt-range-main-progress {
|
|
12
|
+
position: absolute;
|
|
13
|
+
left: 0;
|
|
14
|
+
top: 0;
|
|
15
|
+
height: 100%;
|
|
16
|
+
background: #888;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.gantt-range-triangle {
|
|
20
|
+
width: 0;
|
|
21
|
+
height: 0;
|
|
22
|
+
border-top: 7px solid #888;
|
|
23
|
+
position: absolute;
|
|
24
|
+
top: 10px;
|
|
25
|
+
|
|
26
|
+
&.left {
|
|
27
|
+
border-right: 6px solid transparent;
|
|
28
|
+
left: 0;
|
|
29
|
+
}
|
|
30
|
+
&.right {
|
|
31
|
+
border-left: 6px solid transparent;
|
|
32
|
+
right: 0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TemplateRef, QueryList,
|
|
1
|
+
import { TemplateRef, QueryList, ElementRef, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
|
|
2
2
|
import { GanttItemInternal, GanttGroupInternal, GanttSelectedEvent } from '../../class';
|
|
3
3
|
import { NgxGanttTableColumnComponent } from '../../table/gantt-column.component';
|
|
4
4
|
import { CdkDragEnd, CdkDragMove, CdkDragStart } from '@angular/cdk/drag-drop';
|
|
@@ -7,7 +7,7 @@ import { GanttUpper } from '../../gantt-upper';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare const defaultColumnWidth = 100;
|
|
9
9
|
export declare const minColumnWidth = 80;
|
|
10
|
-
export declare class GanttTableComponent implements
|
|
10
|
+
export declare class GanttTableComponent implements OnChanges {
|
|
11
11
|
gantt: GanttAbstractComponent;
|
|
12
12
|
ganttUpper: GanttUpper;
|
|
13
13
|
private elementRef;
|
|
@@ -25,7 +25,6 @@ export declare class GanttTableComponent implements OnInit, OnChanges {
|
|
|
25
25
|
ganttTableClass: boolean;
|
|
26
26
|
ganttTableEmptyClass: boolean;
|
|
27
27
|
constructor(gantt: GanttAbstractComponent, ganttUpper: GanttUpper, elementRef: ElementRef);
|
|
28
|
-
ngOnInit(): void;
|
|
29
28
|
ngOnChanges(changes: SimpleChanges): void;
|
|
30
29
|
private dragFixed;
|
|
31
30
|
expandGroup(group: GanttGroupInternal): void;
|