@worktile/gantt 19.0.0 → 19.0.2
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/class/item.d.ts +2 -0
- package/components/table/body/gantt-table-body.component.d.ts +11 -5
- package/components/table/gantt-table.scss +21 -1
- package/components/table/header/gantt-table-header.component.d.ts +5 -3
- package/fesm2022/worktile-gantt.mjs +91 -49
- package/fesm2022/worktile-gantt.mjs.map +1 -1
- package/gantt-dom.service.d.ts +1 -1
- package/gantt.component.d.ts +2 -1
- package/gantt.component.scss +8 -0
- package/package.json +1 -1
- package/table/gantt-table.component.d.ts +6 -2
package/gantt-dom.service.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef,
|
|
1
|
+
import { ElementRef, NgZone, OnDestroy, WritableSignal } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare enum ScrollDirection {
|
package/gantt.component.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CdkVirtualScrollViewport, ViewportRuler } from '@angular/cdk/scrolling';
|
|
2
2
|
import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { GanttGroupInternal, GanttItem, GanttItemInternal, GanttLineClickEvent, GanttLinkDragEvent, GanttSelectedEvent, GanttTableDragEndedEvent, GanttTableDragStartedEvent, GanttVirtualScrolledIndexChangeEvent } from './class';
|
|
4
|
+
import { GanttGroupInternal, GanttItem, GanttItemInternal, GanttLineClickEvent, GanttLinkDragEvent, GanttSelectedEvent, GanttTableDragEndedEvent, GanttTableDragStartedEvent, GanttViewType, GanttVirtualScrolledIndexChangeEvent } from './class';
|
|
5
5
|
import { GanttUpper } from './gantt-upper';
|
|
6
6
|
import { GanttGlobalConfig } from './gantt.config';
|
|
7
7
|
import { NgxGanttRootComponent } from './root.component';
|
|
@@ -52,6 +52,7 @@ export declare class NgxGanttComponent extends GanttUpper implements OnInit, OnC
|
|
|
52
52
|
scrollToToday(): void;
|
|
53
53
|
scrollToDate(date: number | Date | GanttDate): void;
|
|
54
54
|
scrolledIndexChange(index: number): void;
|
|
55
|
+
changeView(type: GanttViewType): void;
|
|
55
56
|
expandGroups(expanded: boolean): void;
|
|
56
57
|
expandGroup(group: GanttGroupInternal): void;
|
|
57
58
|
itemDragStarted(event: GanttTableDragStartedEvent): void;
|
package/gantt.component.scss
CHANGED
|
@@ -28,9 +28,11 @@
|
|
|
28
28
|
height: 100%;
|
|
29
29
|
background-color: variables.$gantt-bg-color;
|
|
30
30
|
overflow-y: auto;
|
|
31
|
+
display: flex;
|
|
31
32
|
|
|
32
33
|
.gantt-table {
|
|
33
34
|
height: 100%;
|
|
35
|
+
flex: 1;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
&::-webkit-scrollbar {
|
|
@@ -247,11 +249,17 @@
|
|
|
247
249
|
background-color: white;
|
|
248
250
|
border-top: 1px solid variables.$gantt-border-color;
|
|
249
251
|
border-bottom: 1px solid variables.$gantt-border-color;
|
|
252
|
+
overflow: hidden;
|
|
250
253
|
|
|
251
254
|
.gantt-table-footer {
|
|
252
255
|
height: variables.$gantt-footer-height;
|
|
253
256
|
border-right: 1px solid variables.$gantt-border-color;
|
|
254
257
|
box-shadow: variables.$gantt-footer-shadow;
|
|
258
|
+
overflow-x: auto;
|
|
259
|
+
overflow-y: hidden;
|
|
260
|
+
&::-webkit-scrollbar {
|
|
261
|
+
display: none;
|
|
262
|
+
}
|
|
255
263
|
}
|
|
256
264
|
|
|
257
265
|
.gantt-container-footer {
|
package/package.json
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { GanttTableDragDroppedEvent, GanttTableDragEndedEvent, GanttTableDragEnterPredicateContext, GanttTableDragStartedEvent, GanttTableEvent, GanttTableItemClickEvent } from '../class';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class NgxGanttTableComponent {
|
|
5
5
|
draggable: boolean;
|
|
6
|
+
maxWidth: number;
|
|
7
|
+
width: number;
|
|
6
8
|
dropEnterPredicate?: (context: GanttTableDragEnterPredicateContext) => boolean;
|
|
7
9
|
dragDropped: EventEmitter<GanttTableDragDroppedEvent<unknown>>;
|
|
8
10
|
dragStarted: EventEmitter<GanttTableDragStartedEvent<unknown>>;
|
|
9
11
|
dragEnded: EventEmitter<GanttTableDragEndedEvent<unknown>>;
|
|
10
12
|
columnChanges: EventEmitter<GanttTableEvent>;
|
|
13
|
+
resizeChange: EventEmitter<number>;
|
|
11
14
|
itemClick: EventEmitter<GanttTableItemClickEvent<unknown>>;
|
|
12
15
|
rowBeforeTemplate: TemplateRef<any>;
|
|
13
16
|
rowAfterTemplate: TemplateRef<any>;
|
|
14
17
|
tableEmptyTemplate: TemplateRef<any>;
|
|
15
18
|
tableFooterTemplate: TemplateRef<any>;
|
|
19
|
+
settingsSlot: TemplateRef<any>;
|
|
16
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttTableComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttTableComponent, "ngx-gantt-table", never, { "draggable": { "alias": "draggable"; "required": false; }; "dropEnterPredicate": { "alias": "dropEnterPredicate"; "required": false; }; }, { "dragDropped": "dragDropped"; "dragStarted": "dragStarted"; "dragEnded": "dragEnded"; "columnChanges": "columnChanges"; "itemClick": "itemClick"; }, ["rowBeforeTemplate", "rowAfterTemplate", "tableEmptyTemplate", "tableFooterTemplate"], never, true, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttTableComponent, "ngx-gantt-table", never, { "draggable": { "alias": "draggable"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "width": { "alias": "width"; "required": false; }; "dropEnterPredicate": { "alias": "dropEnterPredicate"; "required": false; }; }, { "dragDropped": "dragDropped"; "dragStarted": "dragStarted"; "dragEnded": "dragEnded"; "columnChanges": "columnChanges"; "resizeChange": "resizeChange"; "itemClick": "itemClick"; }, ["rowBeforeTemplate", "rowAfterTemplate", "tableEmptyTemplate", "tableFooterTemplate", "settingsSlot"], never, true, never>;
|
|
18
22
|
}
|