@worktile/gantt 19.0.0-next.0 → 19.0.1
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/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 +93 -70
- 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/gantt.module.d.ts +1 -1
- package/gantt.pipe.d.ts +0 -5
- package/package.json +4 -4
- 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/gantt.module.d.ts
CHANGED
|
@@ -24,6 +24,6 @@ import * as i22 from "./gantt.pipe";
|
|
|
24
24
|
export declare class NgxGanttModule {
|
|
25
25
|
constructor();
|
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttModule, never>;
|
|
27
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxGanttModule, never, [typeof i1.CommonModule, typeof i2.DragDropModule, typeof i3.ScrollingModule, typeof i4.NgxGanttComponent, typeof i5.NgxGanttTableComponent, typeof i6.NgxGanttTableColumnComponent, typeof i7.GanttTableHeaderComponent, typeof i8.GanttTableBodyComponent, typeof i9.GanttMainComponent, typeof i10.GanttCalendarHeaderComponent, typeof i11.GanttCalendarGridComponent, typeof i12.GanttLinksComponent, typeof i13.GanttLoaderComponent, typeof i14.NgxGanttBarComponent, typeof i15.GanttIconComponent, typeof i16.GanttDragBackdropComponent, typeof i17.NgxGanttRangeComponent, typeof i18.NgxGanttRootComponent, typeof i19.NgxGanttBaselineComponent, typeof i20.NgxGanttToolbarComponent, typeof i21.GanttScrollbarComponent, typeof i22.IsGanttRangeItemPipe, typeof i22.IsGanttBarItemPipe, typeof i22.IsGanttCustomItemPipe, typeof i22.IsGanttGroupPipe
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxGanttModule, never, [typeof i1.CommonModule, typeof i2.DragDropModule, typeof i3.ScrollingModule, typeof i4.NgxGanttComponent, typeof i5.NgxGanttTableComponent, typeof i6.NgxGanttTableColumnComponent, typeof i7.GanttTableHeaderComponent, typeof i8.GanttTableBodyComponent, typeof i9.GanttMainComponent, typeof i10.GanttCalendarHeaderComponent, typeof i11.GanttCalendarGridComponent, typeof i12.GanttLinksComponent, typeof i13.GanttLoaderComponent, typeof i14.NgxGanttBarComponent, typeof i15.GanttIconComponent, typeof i16.GanttDragBackdropComponent, typeof i17.NgxGanttRangeComponent, typeof i18.NgxGanttRootComponent, typeof i19.NgxGanttBaselineComponent, typeof i20.NgxGanttToolbarComponent, typeof i21.GanttScrollbarComponent, typeof i22.IsGanttRangeItemPipe, typeof i22.IsGanttBarItemPipe, typeof i22.IsGanttCustomItemPipe, typeof i22.IsGanttGroupPipe], [typeof i4.NgxGanttComponent, typeof i5.NgxGanttTableComponent, typeof i6.NgxGanttTableColumnComponent, typeof i18.NgxGanttRootComponent, typeof i14.NgxGanttBarComponent, typeof i17.NgxGanttRangeComponent, typeof i19.NgxGanttBaselineComponent, typeof i20.NgxGanttToolbarComponent, typeof i10.GanttCalendarHeaderComponent, typeof i11.GanttCalendarGridComponent, typeof i16.GanttDragBackdropComponent, typeof i21.GanttScrollbarComponent]>;
|
|
28
28
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxGanttModule>;
|
|
29
29
|
}
|
package/gantt.pipe.d.ts
CHANGED
|
@@ -21,8 +21,3 @@ export declare class IsGanttGroupPipe implements PipeTransform {
|
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<IsGanttGroupPipe, never>;
|
|
22
22
|
static ɵpipe: i0.ɵɵPipeDeclaration<IsGanttGroupPipe, "isGanttGroup", true>;
|
|
23
23
|
}
|
|
24
|
-
export declare class GanttDateFormatPipe implements PipeTransform {
|
|
25
|
-
transform(value: number | string, format: string): string;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GanttDateFormatPipe, never>;
|
|
27
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<GanttDateFormatPipe, "dateFormat", true>;
|
|
28
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worktile/gantt",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.1",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"author": "walkerkay001",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@angular/common": ">=
|
|
28
|
-
"@angular/core": ">=
|
|
29
|
-
"@angular/cdk": ">=
|
|
27
|
+
"@angular/common": ">=19.0.0",
|
|
28
|
+
"@angular/core": ">=19.0.0",
|
|
29
|
+
"@angular/cdk": ">=19.0.0",
|
|
30
30
|
"rxjs": "^6.5.0 || ^7.0.0",
|
|
31
31
|
"date-fns": ">=4.0.0",
|
|
32
32
|
"@date-fns/tz": ">=1.0.0"
|
|
@@ -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
|
}
|