@worktile/gantt 16.1.0-next.1 → 17.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/class/event.d.ts +1 -0
- package/class/item.d.ts +7 -8
- package/class/view-type.d.ts +2 -1
- package/components/bar/bar-drag.d.ts +4 -3
- package/components/bar/bar.component.d.ts +1 -1
- package/components/baseline/baseline.component.d.ts +1 -1
- package/components/calendar/grid/calendar-grid.component.d.ts +1 -1
- package/components/calendar/header/calendar-header.component.d.ts +1 -1
- package/components/drag-backdrop/drag-backdrop.component.d.ts +1 -1
- package/components/icon/icon.component.d.ts +1 -1
- package/components/links/links.component.d.ts +1 -1
- package/components/loader/loader.component.d.ts +1 -1
- package/components/main/gantt-main.component.d.ts +1 -1
- package/components/range/range.component.d.ts +1 -1
- package/components/table/body/gantt-table-body.component.d.ts +1 -1
- package/components/table/gantt-table.scss +4 -0
- package/components/table/header/gantt-table-header.component.d.ts +1 -1
- package/components/toolbar/toolbar.component.d.ts +1 -1
- package/esm2022/class/event.mjs +1 -1
- package/esm2022/class/item.mjs +13 -15
- package/esm2022/class/view-type.mjs +2 -1
- package/esm2022/components/bar/bar-drag.mjs +49 -48
- package/esm2022/components/bar/bar.component.mjs +9 -9
- package/esm2022/components/baseline/baseline.component.mjs +9 -9
- package/esm2022/components/calendar/grid/calendar-grid.component.mjs +9 -9
- package/esm2022/components/calendar/header/calendar-header.component.mjs +9 -9
- package/esm2022/components/drag-backdrop/drag-backdrop.component.mjs +5 -5
- package/esm2022/components/icon/icon.component.mjs +7 -6
- package/esm2022/components/links/lines/curve.mjs +1 -1
- package/esm2022/components/links/lines/factory.mjs +1 -1
- package/esm2022/components/links/lines/line.mjs +1 -1
- package/esm2022/components/links/lines/straight.mjs +1 -1
- package/esm2022/components/links/links.component.mjs +9 -9
- package/esm2022/components/loader/loader.component.mjs +6 -5
- package/esm2022/components/main/gantt-main.component.mjs +26 -14
- package/esm2022/components/range/range.component.mjs +9 -9
- package/esm2022/components/table/body/gantt-table-body.component.mjs +13 -15
- package/esm2022/components/table/header/gantt-table-header.component.mjs +9 -9
- package/esm2022/components/toolbar/toolbar.component.mjs +9 -9
- package/esm2022/gantt-dom.service.mjs +6 -6
- package/esm2022/gantt-drag-container.mjs +6 -6
- package/esm2022/gantt-item-upper.mjs +6 -6
- package/esm2022/gantt-print.service.mjs +5 -5
- package/esm2022/gantt-upper.mjs +9 -12
- package/esm2022/gantt.component.mjs +39 -24
- package/esm2022/gantt.config.mjs +4 -2
- package/esm2022/gantt.module.mjs +60 -40
- package/esm2022/gantt.pipe.mjs +16 -13
- package/esm2022/root.component.mjs +21 -14
- package/esm2022/table/gantt-column.component.mjs +8 -7
- package/esm2022/table/gantt-table.component.mjs +6 -5
- package/esm2022/utils/date.mjs +16 -4
- package/esm2022/utils/drag-scroll.mjs +1 -1
- package/esm2022/utils/helpers.mjs +1 -1
- package/esm2022/utils/passive-listeners.mjs +1 -1
- package/esm2022/utils/set-style-with-vendor-prefix.mjs +1 -1
- package/esm2022/views/day.mjs +12 -13
- package/esm2022/views/factory.mjs +3 -1
- package/esm2022/views/hour.mjs +77 -0
- package/esm2022/views/month.mjs +4 -5
- package/esm2022/views/quarter.mjs +4 -5
- package/esm2022/views/view.mjs +75 -35
- package/esm2022/views/week.mjs +10 -11
- package/esm2022/views/year.mjs +4 -5
- package/fesm2022/worktile-gantt.mjs +2418 -2239
- package/fesm2022/worktile-gantt.mjs.map +1 -1
- package/gantt-upper.d.ts +1 -2
- package/gantt.component.d.ts +6 -6
- package/gantt.config.d.ts +10 -16
- package/gantt.module.d.ts +25 -23
- package/gantt.pipe.d.ts +3 -3
- package/package.json +6 -4
- package/root.component.d.ts +1 -1
- package/styles/index.scss +0 -2
- package/table/gantt-column.component.d.ts +1 -1
- package/table/gantt-table.component.d.ts +1 -1
- package/utils/date.d.ts +6 -1
- package/views/day.d.ts +5 -5
- package/views/factory.d.ts +2 -1
- package/views/hour.d.ts +19 -0
- package/views/month.d.ts +2 -2
- package/views/quarter.d.ts +2 -2
- package/views/view.d.ts +22 -7
- package/views/week.d.ts +2 -2
- package/views/year.d.ts +2 -2
package/gantt-upper.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ export declare abstract class GanttUpper implements OnChanges, OnInit, OnDestroy
|
|
|
27
27
|
draggable: boolean;
|
|
28
28
|
styles: GanttStyles;
|
|
29
29
|
showToolbar: boolean;
|
|
30
|
-
restrictToBounds: boolean;
|
|
31
30
|
toolbarOptions: GanttToolbarOptions;
|
|
32
31
|
viewOptions: GanttViewOptions;
|
|
33
32
|
set linkOptions(options: GanttLinkOptions);
|
|
@@ -95,6 +94,6 @@ export declare abstract class GanttUpper implements OnChanges, OnInit, OnDestroy
|
|
|
95
94
|
changeView(type: GanttViewType): void;
|
|
96
95
|
rerenderView(): void;
|
|
97
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<GanttUpper, never>;
|
|
98
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<GanttUpper, never, never, { "originItems": { "alias": "items"; "required": false; }; "originGroups": { "alias": "groups"; "required": false; }; "originBaselineItems": { "alias": "baselineItems"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "start": { "alias": "start"; "required": false; }; "end": { "alias": "end"; "required": false; }; "showTodayLine": { "alias": "showTodayLine"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "
|
|
97
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GanttUpper, never, never, { "originItems": { "alias": "items"; "required": false; }; "originGroups": { "alias": "groups"; "required": false; }; "originBaselineItems": { "alias": "baselineItems"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "start": { "alias": "start"; "required": false; }; "end": { "alias": "end"; "required": false; }; "showTodayLine": { "alias": "showTodayLine"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "toolbarOptions": { "alias": "toolbarOptions"; "required": false; }; "viewOptions": { "alias": "viewOptions"; "required": false; }; "linkOptions": { "alias": "linkOptions"; "required": false; }; "disabledLoadOnScroll": { "alias": "disabledLoadOnScroll"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; }, { "loadOnScroll": "loadOnScroll"; "dragStarted": "dragStarted"; "dragMoved": "dragMoved"; "dragEnded": "dragEnded"; "barClick": "barClick"; "viewChange": "viewChange"; "expandChange": "expandChange"; }, ["barTemplate", "rangeTemplate", "itemTemplate", "baselineTemplate", "groupTemplate", "groupHeaderTemplate", "toolbarTemplate"], never, false, never>;
|
|
99
98
|
}
|
|
100
99
|
export declare const GANTT_UPPER_TOKEN: InjectionToken<GanttUpper>;
|
package/gantt.component.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CdkVirtualScrollViewport, ViewportRuler } from '@angular/cdk/scrolling';
|
|
2
|
+
import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { GanttGroupInternal, GanttItem, GanttItemInternal, GanttLineClickEvent, GanttLinkDragEvent, GanttSelectedEvent, GanttTableDragEndedEvent, GanttTableDragStartedEvent, GanttVirtualScrolledIndexChangeEvent } from './class';
|
|
3
5
|
import { GanttUpper } from './gantt-upper';
|
|
4
|
-
import { GanttLinkDragEvent, GanttLineClickEvent, GanttItemInternal, GanttItem, GanttSelectedEvent, GanttGroupInternal, GanttVirtualScrolledIndexChangeEvent, GanttTableDragStartedEvent, GanttTableDragEndedEvent } from './class';
|
|
5
|
-
import { NgxGanttTableColumnComponent } from './table/gantt-column.component';
|
|
6
|
-
import { NgxGanttTableComponent } from './table/gantt-table.component';
|
|
7
6
|
import { GanttGlobalConfig } from './gantt.config';
|
|
8
7
|
import { NgxGanttRootComponent } from './root.component';
|
|
8
|
+
import { NgxGanttTableColumnComponent } from './table/gantt-column.component';
|
|
9
|
+
import { NgxGanttTableComponent } from './table/gantt-table.component';
|
|
9
10
|
import { GanttDate } from './utils/date';
|
|
10
|
-
import { CdkVirtualScrollViewport, ViewportRuler } from '@angular/cdk/scrolling';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class NgxGanttComponent extends GanttUpper implements OnInit, OnChanges, AfterViewInit, AfterViewChecked {
|
|
13
13
|
private viewportRuler;
|
|
@@ -57,5 +57,5 @@ export declare class NgxGanttComponent extends GanttUpper implements OnInit, OnC
|
|
|
57
57
|
itemDragStarted(event: GanttTableDragStartedEvent): void;
|
|
58
58
|
itemDragEnded(event: GanttTableDragEndedEvent): void;
|
|
59
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttComponent, never>;
|
|
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,
|
|
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, true, never>;
|
|
61
61
|
}
|
package/gantt.config.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { GanttLinkType, GanttLinkOptions, GanttLinkLineType } from './class/link';
|
|
2
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { Locale } from 'date-fns';
|
|
3
|
+
import { GanttLinkOptions } from './class/link';
|
|
3
4
|
export interface GanttDateFormat {
|
|
5
|
+
hour?: string;
|
|
6
|
+
day?: string;
|
|
4
7
|
week?: string;
|
|
5
8
|
month?: string;
|
|
6
9
|
quarter?: string;
|
|
@@ -8,23 +11,14 @@ export interface GanttDateFormat {
|
|
|
8
11
|
yearMonth?: string;
|
|
9
12
|
yearQuarter?: string;
|
|
10
13
|
}
|
|
14
|
+
export interface GanttDateOptions {
|
|
15
|
+
locale?: Locale;
|
|
16
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
17
|
+
}
|
|
11
18
|
export interface GanttGlobalConfig {
|
|
12
19
|
dateFormat?: GanttDateFormat;
|
|
20
|
+
dateOptions?: GanttDateOptions;
|
|
13
21
|
linkOptions?: GanttLinkOptions;
|
|
14
22
|
}
|
|
15
|
-
export declare const defaultConfig:
|
|
16
|
-
dateFormat: {
|
|
17
|
-
week: string;
|
|
18
|
-
month: string;
|
|
19
|
-
quarter: string;
|
|
20
|
-
year: string;
|
|
21
|
-
yearMonth: string;
|
|
22
|
-
yearQuarter: string;
|
|
23
|
-
};
|
|
24
|
-
linkOptions: {
|
|
25
|
-
dependencyTypes: GanttLinkType[];
|
|
26
|
-
showArrow: boolean;
|
|
27
|
-
lineType: GanttLinkLineType;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
23
|
+
export declare const defaultConfig: GanttGlobalConfig;
|
|
30
24
|
export declare const GANTT_GLOBAL_CONFIG: InjectionToken<GanttGlobalConfig>;
|
package/gantt.module.d.ts
CHANGED
|
@@ -1,27 +1,29 @@
|
|
|
1
|
+
import { GanttGlobalConfig } from './gantt.config';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "./
|
|
6
|
-
import * as i5 from "./
|
|
7
|
-
import * as i6 from "./
|
|
8
|
-
import * as i7 from "./components/
|
|
9
|
-
import * as i8 from "./components/
|
|
10
|
-
import * as i9 from "./components/
|
|
11
|
-
import * as i10 from "./components/
|
|
12
|
-
import * as i11 from "./components/
|
|
13
|
-
import * as i12 from "./components/
|
|
14
|
-
import * as i13 from "./components/
|
|
15
|
-
import * as i14 from "./components/
|
|
16
|
-
import * as i15 from "./
|
|
17
|
-
import * as i16 from "./components/
|
|
18
|
-
import * as i17 from "./components/
|
|
19
|
-
import * as i18 from "./
|
|
20
|
-
import * as i19 from "
|
|
21
|
-
import * as i20 from "
|
|
22
|
-
import * as i21 from "
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
import * as i2 from "@angular/cdk/drag-drop";
|
|
5
|
+
import * as i3 from "@angular/cdk/scrolling";
|
|
6
|
+
import * as i4 from "./gantt.component";
|
|
7
|
+
import * as i5 from "./table/gantt-table.component";
|
|
8
|
+
import * as i6 from "./table/gantt-column.component";
|
|
9
|
+
import * as i7 from "./components/table/header/gantt-table-header.component";
|
|
10
|
+
import * as i8 from "./components/table/body/gantt-table-body.component";
|
|
11
|
+
import * as i9 from "./components/main/gantt-main.component";
|
|
12
|
+
import * as i10 from "./components/calendar/header/calendar-header.component";
|
|
13
|
+
import * as i11 from "./components/calendar/grid/calendar-grid.component";
|
|
14
|
+
import * as i12 from "./components/links/links.component";
|
|
15
|
+
import * as i13 from "./components/loader/loader.component";
|
|
16
|
+
import * as i14 from "./components/bar/bar.component";
|
|
17
|
+
import * as i15 from "./components/icon/icon.component";
|
|
18
|
+
import * as i16 from "./components/drag-backdrop/drag-backdrop.component";
|
|
19
|
+
import * as i17 from "./components/range/range.component";
|
|
20
|
+
import * as i18 from "./root.component";
|
|
21
|
+
import * as i19 from "./components/baseline/baseline.component";
|
|
22
|
+
import * as i20 from "./components/toolbar/toolbar.component";
|
|
23
|
+
import * as i21 from "./gantt.pipe";
|
|
23
24
|
export declare class NgxGanttModule {
|
|
24
|
-
|
|
25
|
-
static
|
|
25
|
+
constructor(ganttGlobalConfig: GanttGlobalConfig);
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttModule, [{ optional: true; }]>;
|
|
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.IsGanttRangeItemPipe, typeof i21.IsGanttBarItemPipe, typeof i21.IsGanttCustomItemPipe], [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]>;
|
|
26
28
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxGanttModule>;
|
|
27
29
|
}
|
package/gantt.pipe.d.ts
CHANGED
|
@@ -4,15 +4,15 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class IsGanttRangeItemPipe implements PipeTransform {
|
|
5
5
|
transform(value: GanttItemType): boolean;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<IsGanttRangeItemPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<IsGanttRangeItemPipe, "isGanttRangeItem",
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsGanttRangeItemPipe, "isGanttRangeItem", true>;
|
|
8
8
|
}
|
|
9
9
|
export declare class IsGanttBarItemPipe implements PipeTransform {
|
|
10
10
|
transform(value: GanttItemType): boolean;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<IsGanttBarItemPipe, never>;
|
|
12
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<IsGanttBarItemPipe, "isGanttBarItem",
|
|
12
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsGanttBarItemPipe, "isGanttBarItem", true>;
|
|
13
13
|
}
|
|
14
14
|
export declare class IsGanttCustomItemPipe implements PipeTransform {
|
|
15
15
|
transform(value: GanttItemType): boolean;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<IsGanttCustomItemPipe, never>;
|
|
17
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<IsGanttCustomItemPipe, "isGanttCustomItem",
|
|
17
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsGanttCustomItemPipe, "isGanttCustomItem", true>;
|
|
18
18
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worktile/gantt",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0-next.0",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
|
+
"author": "walkerkay001",
|
|
6
|
+
"license": "MIT",
|
|
5
7
|
"exports": {
|
|
6
8
|
".": {
|
|
7
9
|
"sass": "./styles/index.scss",
|
|
@@ -24,9 +26,9 @@
|
|
|
24
26
|
}
|
|
25
27
|
},
|
|
26
28
|
"peerDependencies": {
|
|
27
|
-
"@angular/common": ">=
|
|
28
|
-
"@angular/core": ">=
|
|
29
|
-
"@angular/cdk": ">=
|
|
29
|
+
"@angular/common": ">=17.0.0",
|
|
30
|
+
"@angular/core": ">=17.0.0",
|
|
31
|
+
"@angular/cdk": ">=17.0.0",
|
|
30
32
|
"rxjs": "^6.5.0 || ^7.0.0",
|
|
31
33
|
"date-fns": ">=2.0.0"
|
|
32
34
|
},
|
package/root.component.d.ts
CHANGED
|
@@ -32,5 +32,5 @@ export declare class NgxGanttRootComponent implements OnInit, OnDestroy {
|
|
|
32
32
|
scrollToToday(): void;
|
|
33
33
|
scrollToDate(date: number | GanttDate): void;
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttRootComponent, [null, null, null, null, null, { optional: true; }]>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttRootComponent, "ngx-gantt-root", never, { "sideWidth": { "alias": "sideWidth"; "required": false; }; }, {}, ["sideTemplate", "mainTemplate"], ["*"],
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttRootComponent, "ngx-gantt-root", never, { "sideWidth": { "alias": "sideWidth"; "required": false; }; }, {}, ["sideTemplate", "mainTemplate"], ["*"], true, never>;
|
|
36
36
|
}
|
package/styles/index.scss
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
@use './variables.scss';
|
|
2
2
|
@use '../gantt.component.scss';
|
|
3
|
-
// @use '../components/table/gantt-table.component.scss';
|
|
4
|
-
// @use '../components/calendar/calendar.component.scss';
|
|
5
3
|
@use '../components/table/gantt-table.scss';
|
|
6
4
|
@use '../components/calendar/calendar.scss';
|
|
7
5
|
@use '../components/drag-backdrop/drag-backdrop.component.scss';
|
|
@@ -13,5 +13,5 @@ export declare class NgxGanttTableColumnComponent {
|
|
|
13
13
|
constructor(ganttUpper: GanttUpper, elementRef: ElementRef);
|
|
14
14
|
get classList(): DOMTokenList;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttTableColumnComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttTableColumnComponent, "ngx-gantt-column", never, { "width": { "alias": "width"; "required": false; }; "name": { "alias": "name"; "required": false; }; "showExpandIcon": { "alias": "showExpandIcon"; "required": false; }; }, {}, ["templateRef", "headerTemplateRef"], never,
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttTableColumnComponent, "ngx-gantt-column", never, { "width": { "alias": "width"; "required": false; }; "name": { "alias": "name"; "required": false; }; "showExpandIcon": { "alias": "showExpandIcon"; "required": false; }; }, {}, ["templateRef", "headerTemplateRef"], never, true, never>;
|
|
17
17
|
}
|
|
@@ -13,5 +13,5 @@ export declare class NgxGanttTableComponent {
|
|
|
13
13
|
tableEmptyTemplate: TemplateRef<any>;
|
|
14
14
|
tableFooterTemplate: TemplateRef<any>;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttTableComponent, never>;
|
|
16
|
-
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"; }, ["rowBeforeTemplate", "rowAfterTemplate", "tableEmptyTemplate", "tableFooterTemplate"], never,
|
|
16
|
+
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"; }, ["rowBeforeTemplate", "rowAfterTemplate", "tableEmptyTemplate", "tableFooterTemplate"], never, true, never>;
|
|
17
17
|
}
|
package/utils/date.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="date-fns" />
|
|
2
|
+
export { Locale, addDays, addHours, addMinutes, addMonths, addQuarters, addSeconds, addWeeks, addYears, differenceInCalendarDays, differenceInCalendarQuarters, differenceInDays, eachDayOfInterval, eachMonthOfInterval, eachWeekOfInterval, endOfDay, endOfMonth, endOfQuarter, endOfWeek, endOfYear, format, fromUnixTime, getDaysInMonth, getUnixTime, getWeek, isToday, isWeekend, setDate, startOfDay, startOfMonth, startOfQuarter, startOfWeek, startOfYear, startOfMinute, startOfHour, endOfMinute, endOfHour, differenceInMinutes, eachHourOfInterval } from 'date-fns';
|
|
2
3
|
export type GanttDateUtil = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
3
4
|
export declare class GanttDate {
|
|
4
5
|
value: Date;
|
|
@@ -30,6 +31,8 @@ export declare class GanttDate {
|
|
|
30
31
|
addMonths(amount: number): GanttDate;
|
|
31
32
|
addQuarters(amount: number): GanttDate;
|
|
32
33
|
addYears(amount: number): GanttDate;
|
|
34
|
+
startOfMinute(): GanttDate;
|
|
35
|
+
startOfHour(): GanttDate;
|
|
33
36
|
startOfDay(): GanttDate;
|
|
34
37
|
startOfWeek(options?: {
|
|
35
38
|
locale?: Locale;
|
|
@@ -38,6 +41,8 @@ export declare class GanttDate {
|
|
|
38
41
|
startOfMonth(): GanttDate;
|
|
39
42
|
startOfQuarter(): GanttDate;
|
|
40
43
|
startOfYear(): GanttDate;
|
|
44
|
+
endOfMinute(): GanttDate;
|
|
45
|
+
endOfHour(): GanttDate;
|
|
41
46
|
endOfDay(): GanttDate;
|
|
42
47
|
endOfWeek(options?: {
|
|
43
48
|
locale?: Locale;
|
package/views/day.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { GanttView, GanttViewOptions, GanttViewDate } from './view';
|
|
2
|
-
import { GanttDate } from '../utils/date';
|
|
3
|
-
import { GanttDatePoint } from '../class/date-point';
|
|
4
1
|
import { GanttViewType } from '../class';
|
|
2
|
+
import { GanttDatePoint } from '../class/date-point';
|
|
3
|
+
import { GanttDate } from '../utils/date';
|
|
4
|
+
import { GanttView, GanttViewDate, GanttViewOptions } from './view';
|
|
5
5
|
export declare class GanttViewDay extends GanttView {
|
|
6
6
|
showWeekBackdrop: boolean;
|
|
7
7
|
showTimeline: boolean;
|
|
8
8
|
viewType: GanttViewType;
|
|
9
9
|
constructor(start: GanttViewDate, end: GanttViewDate, options?: GanttViewOptions);
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
viewStartOf(date: GanttDate): GanttDate;
|
|
11
|
+
viewEndOf(date: GanttDate): GanttDate;
|
|
12
12
|
getPrimaryWidth(): number;
|
|
13
13
|
getDayOccupancyWidth(): number;
|
|
14
14
|
getPrimaryDatePoints(): GanttDatePoint[];
|
package/views/factory.d.ts
CHANGED
|
@@ -5,5 +5,6 @@ import { GanttViewQuarter } from './quarter';
|
|
|
5
5
|
import { GanttViewDay } from './day';
|
|
6
6
|
import { GanttViewWeek } from './week';
|
|
7
7
|
import { GanttViewYear } from './year';
|
|
8
|
+
import { GanttViewHour } from './hour';
|
|
8
9
|
export declare function registerView<T extends typeof GanttView>(type: string, view: T): void;
|
|
9
|
-
export declare function createViewFactory(type: GanttViewType, start: GanttViewDate, end: GanttViewDate, options?: GanttViewOptions): GanttViewMonth | GanttViewQuarter | GanttViewDay | GanttViewWeek | GanttViewYear;
|
|
10
|
+
export declare function createViewFactory(type: GanttViewType, start: GanttViewDate, end: GanttViewDate, options?: GanttViewOptions): GanttViewMonth | GanttViewQuarter | GanttViewDay | GanttViewWeek | GanttViewYear | GanttViewHour;
|
package/views/hour.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GanttViewType } from '../class';
|
|
2
|
+
import { GanttDatePoint } from '../class/date-point';
|
|
3
|
+
import { GanttDate } from '../utils/date';
|
|
4
|
+
import { GanttView, GanttViewDate, GanttViewOptions } from './view';
|
|
5
|
+
export declare class GanttViewHour extends GanttView {
|
|
6
|
+
showWeekBackdrop: boolean;
|
|
7
|
+
showTimeline: boolean;
|
|
8
|
+
viewType: GanttViewType;
|
|
9
|
+
constructor(start: GanttViewDate, end: GanttViewDate, options?: GanttViewOptions);
|
|
10
|
+
viewStartOf(date: GanttDate): GanttDate;
|
|
11
|
+
viewEndOf(date: GanttDate): GanttDate;
|
|
12
|
+
getPrimaryWidth(): number;
|
|
13
|
+
getDayOccupancyWidth(): number;
|
|
14
|
+
private getHourOccupancyWidth;
|
|
15
|
+
getPrimaryDatePoints(): GanttDatePoint[];
|
|
16
|
+
getSecondaryDatePoints(): GanttDatePoint[];
|
|
17
|
+
getDateIntervalWidth(start: GanttDate, end: GanttDate): number;
|
|
18
|
+
getDateByXPoint(x: number): GanttDate;
|
|
19
|
+
}
|
package/views/month.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { GanttViewType } from '../class';
|
|
|
5
5
|
export declare class GanttViewMonth extends GanttView {
|
|
6
6
|
viewType: GanttViewType;
|
|
7
7
|
constructor(start: GanttViewDate, end: GanttViewDate, options?: GanttViewOptions);
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
viewStartOf(date: GanttDate): GanttDate;
|
|
9
|
+
viewEndOf(date: GanttDate): GanttDate;
|
|
10
10
|
getPrimaryWidth(): number;
|
|
11
11
|
getDayOccupancyWidth(date: GanttDate): number;
|
|
12
12
|
getPrimaryDatePoints(): GanttDatePoint[];
|
package/views/quarter.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { GanttViewType } from '../class';
|
|
|
5
5
|
export declare class GanttViewQuarter extends GanttView {
|
|
6
6
|
viewType: GanttViewType;
|
|
7
7
|
constructor(start: GanttViewDate, end: GanttViewDate, options?: GanttViewOptions);
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
viewStartOf(date: GanttDate): GanttDate;
|
|
9
|
+
viewEndOf(date: GanttDate): GanttDate;
|
|
10
10
|
getPrimaryWidth(): number;
|
|
11
11
|
getDayOccupancyWidth(date: GanttDate): number;
|
|
12
12
|
getPrimaryDatePoints(): GanttDatePoint[];
|
package/views/view.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { GanttDate, GanttDateUtil } from '../utils/date';
|
|
2
|
-
import { GanttDatePoint } from '../class/date-point';
|
|
3
1
|
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { GanttDateFormat } from '../gantt.config';
|
|
5
2
|
import { GanttViewType } from '../class';
|
|
3
|
+
import { GanttDatePoint } from '../class/date-point';
|
|
4
|
+
import { GanttDateFormat } from '../gantt.config';
|
|
5
|
+
import { GanttDate, GanttDateUtil } from '../utils/date';
|
|
6
6
|
export declare const primaryDatePointTop = 18;
|
|
7
7
|
export declare const secondaryDatePointTop = 36;
|
|
8
8
|
export interface GanttViewDate {
|
|
@@ -18,7 +18,8 @@ export interface GanttViewOptions {
|
|
|
18
18
|
addAmount?: number;
|
|
19
19
|
addUnit?: GanttDateUtil;
|
|
20
20
|
dateFormat?: GanttDateFormat;
|
|
21
|
-
|
|
21
|
+
datePrecisionUnit?: 'day' | 'hour' | 'minute';
|
|
22
|
+
dragPreviewDateFormat?: string;
|
|
22
23
|
[key: string]: any;
|
|
23
24
|
}
|
|
24
25
|
export declare abstract class GanttView {
|
|
@@ -36,13 +37,26 @@ export declare abstract class GanttView {
|
|
|
36
37
|
showWeekBackdrop: boolean;
|
|
37
38
|
options: GanttViewOptions;
|
|
38
39
|
constructor(start: GanttViewDate, end: GanttViewDate, options: GanttViewOptions);
|
|
39
|
-
abstract
|
|
40
|
-
abstract
|
|
40
|
+
abstract viewStartOf(date: GanttDate): GanttDate;
|
|
41
|
+
abstract viewEndOf(date: GanttDate): GanttDate;
|
|
42
|
+
/**
|
|
43
|
+
* deprecated, please use viewStartOf()
|
|
44
|
+
* @deprecated
|
|
45
|
+
*/
|
|
46
|
+
startOf(date: GanttDate): GanttDate;
|
|
47
|
+
/**
|
|
48
|
+
* deprecated, please use viewEndOf()
|
|
49
|
+
* @deprecated
|
|
50
|
+
*/
|
|
51
|
+
endOf(date: GanttDate): GanttDate;
|
|
41
52
|
abstract getPrimaryWidth(): number;
|
|
42
53
|
abstract getDayOccupancyWidth(date: GanttDate): number;
|
|
43
54
|
abstract getPrimaryDatePoints(): GanttDatePoint[];
|
|
44
55
|
abstract getSecondaryDatePoints(): GanttDatePoint[];
|
|
45
|
-
|
|
56
|
+
startOfPrecision(date: GanttDate): GanttDate;
|
|
57
|
+
endOfPrecision(date: GanttDate): GanttDate;
|
|
58
|
+
differenceByPrecisionUnit(dateLeft: GanttDate, dateRight: GanttDate): number;
|
|
59
|
+
getDateIntervalWidth(start: GanttDate, end: GanttDate): number;
|
|
46
60
|
protected initialize(): void;
|
|
47
61
|
addStartDate(): {
|
|
48
62
|
start: GanttDate;
|
|
@@ -59,4 +73,5 @@ export declare abstract class GanttView {
|
|
|
59
73
|
getXPointByDate(date: GanttDate): number;
|
|
60
74
|
getDateByXPoint(x: number): GanttDate;
|
|
61
75
|
getDateRangeWidth(start: GanttDate, end: GanttDate): number;
|
|
76
|
+
getMinRangeWidthByPrecisionUnit(date: GanttDate): number;
|
|
62
77
|
}
|
package/views/week.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { GanttView, GanttViewDate, GanttViewOptions } from './view';
|
|
|
5
5
|
export declare class GanttViewWeek extends GanttView {
|
|
6
6
|
viewType: GanttViewType;
|
|
7
7
|
constructor(start: GanttViewDate, end: GanttViewDate, options?: GanttViewOptions);
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
viewStartOf(date: GanttDate): GanttDate;
|
|
9
|
+
viewEndOf(date: GanttDate): GanttDate;
|
|
10
10
|
getPrimaryWidth(): number;
|
|
11
11
|
getDayOccupancyWidth(): number;
|
|
12
12
|
getPrimaryDatePoints(): GanttDatePoint[];
|
package/views/year.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { GanttViewType } from '../class';
|
|
|
5
5
|
export declare class GanttViewYear extends GanttView {
|
|
6
6
|
viewType: GanttViewType;
|
|
7
7
|
constructor(start: GanttViewDate, end: GanttViewDate, options?: GanttViewOptions);
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
viewStartOf(date: GanttDate): GanttDate;
|
|
9
|
+
viewEndOf(date: GanttDate): GanttDate;
|
|
10
10
|
getPrimaryWidth(): number;
|
|
11
11
|
getDayOccupancyWidth(date: GanttDate): number;
|
|
12
12
|
getPrimaryDatePoints(): GanttDatePoint[];
|