@worktile/gantt 15.1.2 → 15.2.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/esm2020/components/table/body/gantt-table-body.component.mjs +1 -6
- package/esm2020/gantt-dom.service.mjs +32 -7
- package/esm2020/gantt.component.mjs +6 -3
- package/esm2020/table/gantt-table.component.mjs +8 -2
- package/fesm2015/worktile-gantt.mjs +43 -14
- package/fesm2015/worktile-gantt.mjs.map +1 -1
- package/fesm2020/worktile-gantt.mjs +43 -14
- package/fesm2020/worktile-gantt.mjs.map +1 -1
- package/gantt-dom.service.d.ts +2 -0
- package/gantt.component.d.ts +2 -1
- package/gantt.component.scss +55 -3
- package/package.json +1 -1
- package/styles/variables.scss +3 -0
- package/table/gantt-table.component.d.ts +3 -1
package/gantt-dom.service.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ export declare class GanttDomService implements OnDestroy {
|
|
|
23
23
|
mainItems: Element;
|
|
24
24
|
calendarOverlay: Element;
|
|
25
25
|
linksOverlay: Element;
|
|
26
|
+
private mainFooter;
|
|
27
|
+
private mainScrollbar;
|
|
26
28
|
private unsubscribe$;
|
|
27
29
|
constructor(ngZone: NgZone, platformId: string);
|
|
28
30
|
private monitorScrollChange;
|
package/gantt.component.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare class NgxGanttComponent extends GanttUpper implements OnInit, OnC
|
|
|
26
26
|
columns: QueryList<NgxGanttTableColumnComponent>;
|
|
27
27
|
tableEmptyTemplate: TemplateRef<any>;
|
|
28
28
|
ganttRoot: NgxGanttRootComponent;
|
|
29
|
+
footerTemplate: TemplateRef<any>;
|
|
29
30
|
virtualScroll: CdkVirtualScrollViewport;
|
|
30
31
|
get loading(): boolean;
|
|
31
32
|
flatItems: (GanttGroupInternal | GanttItemInternal)[];
|
|
@@ -50,5 +51,5 @@ export declare class NgxGanttComponent extends GanttUpper implements OnInit, OnC
|
|
|
50
51
|
expandGroups(expanded: boolean): void;
|
|
51
52
|
expandGroup(group: GanttGroupInternal): void;
|
|
52
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttComponent, never>;
|
|
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
|
+
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", "footerTemplate", "columns"], never, false, never>;
|
|
54
55
|
}
|
package/gantt.component.scss
CHANGED
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
border-right: 1px solid variables.$gantt-border-color;
|
|
19
19
|
position: relative;
|
|
20
20
|
z-index: 3;
|
|
21
|
-
// overflow-x: scroll;
|
|
22
21
|
box-shadow: variables.$gantt-side-shadow;
|
|
23
22
|
|
|
24
23
|
.gantt-side-header {
|
|
@@ -49,6 +48,25 @@
|
|
|
49
48
|
background-color: variables.$gantt-container-background-color;
|
|
50
49
|
}
|
|
51
50
|
|
|
51
|
+
.gantt-scrollbar {
|
|
52
|
+
position: absolute;
|
|
53
|
+
left: 0;
|
|
54
|
+
bottom: 0;
|
|
55
|
+
right: 0;
|
|
56
|
+
z-index: 3;
|
|
57
|
+
display: flex;
|
|
58
|
+
.gantt-table-scrollbar {
|
|
59
|
+
&.with-scrollbar {
|
|
60
|
+
overflow-x: scroll;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
.gantt-main-scrollbar {
|
|
64
|
+
flex: 1;
|
|
65
|
+
overflow-x: auto;
|
|
66
|
+
overflow-y: hidden;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
52
70
|
.gantt-main-container {
|
|
53
71
|
width: 100%;
|
|
54
72
|
height: calc(100% - #{variables.$gantt-header-height});
|
|
@@ -58,7 +76,6 @@
|
|
|
58
76
|
bottom: 0;
|
|
59
77
|
left: 0;
|
|
60
78
|
right: 0;
|
|
61
|
-
// 兼容火狐浏览器
|
|
62
79
|
overflow: auto;
|
|
63
80
|
background-color: variables.$gantt-container-background-color;
|
|
64
81
|
|
|
@@ -97,8 +114,17 @@
|
|
|
97
114
|
right: 0;
|
|
98
115
|
bottom: 0;
|
|
99
116
|
z-index: 2;
|
|
100
|
-
// 兼容火狐浏览器
|
|
101
117
|
overflow: auto;
|
|
118
|
+
|
|
119
|
+
&.with-footer {
|
|
120
|
+
.gantt-table-body {
|
|
121
|
+
padding-bottom: variables.$gantt-footer-height;
|
|
122
|
+
}
|
|
123
|
+
.gantt-main-groups,
|
|
124
|
+
.gantt-main-items {
|
|
125
|
+
padding-bottom: variables.$gantt-footer-height;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
102
128
|
.cdk-virtual-scroll-content-wrapper {
|
|
103
129
|
width: 100%;
|
|
104
130
|
min-width: unset;
|
|
@@ -139,3 +165,29 @@
|
|
|
139
165
|
background-color: #fafafa;
|
|
140
166
|
}
|
|
141
167
|
}
|
|
168
|
+
|
|
169
|
+
.gantt-footer {
|
|
170
|
+
display: flex;
|
|
171
|
+
position: absolute;
|
|
172
|
+
left: 0;
|
|
173
|
+
right: 0;
|
|
174
|
+
bottom: 0;
|
|
175
|
+
z-index: 2;
|
|
176
|
+
background-color: white;
|
|
177
|
+
border-top: 1px solid variables.$gantt-border-color;
|
|
178
|
+
|
|
179
|
+
.gantt-table-footer {
|
|
180
|
+
height: variables.$gantt-footer-height;
|
|
181
|
+
border-right: 1px solid variables.$gantt-border-color;
|
|
182
|
+
box-shadow: variables.$gantt-side-shadow;
|
|
183
|
+
}
|
|
184
|
+
.gantt-container-footer {
|
|
185
|
+
height: variables.$gantt-footer-height;
|
|
186
|
+
overflow-x: auto;
|
|
187
|
+
overflow-y: hidden;
|
|
188
|
+
flex: 1;
|
|
189
|
+
&::-webkit-scrollbar {
|
|
190
|
+
display: none;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
package/package.json
CHANGED
package/styles/variables.scss
CHANGED
|
@@ -10,6 +10,8 @@ export declare class NgxGanttTableComponent {
|
|
|
10
10
|
columnChanges: EventEmitter<GanttTableEvent>;
|
|
11
11
|
rowBeforeTemplate: TemplateRef<any>;
|
|
12
12
|
rowAfterTemplate: TemplateRef<any>;
|
|
13
|
+
tableEmptyTemplate: TemplateRef<any>;
|
|
14
|
+
tableFooterTemplate: TemplateRef<any>;
|
|
13
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttTableComponent, 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>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttTableComponent, "ngx-gantt-table", never, { "draggable": "draggable"; "dropEnterPredicate": "dropEnterPredicate"; }, { "dragDropped": "dragDropped"; "dragStarted": "dragStarted"; "dragEnded": "dragEnded"; "columnChanges": "columnChanges"; }, ["rowBeforeTemplate", "rowAfterTemplate", "tableEmptyTemplate", "tableFooterTemplate"], never, false, never>;
|
|
15
17
|
}
|