@worktile/gantt 19.0.8-next.3 → 20.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/table/gantt-table.scss +0 -2
- package/fesm2022/worktile-gantt.mjs +1405 -1483
- package/fesm2022/worktile-gantt.mjs.map +1 -1
- package/gantt.component.scss +0 -4
- package/index.d.ts +1405 -5
- package/package.json +4 -4
- package/class/baseline.d.ts +0 -26
- package/class/date-point.d.ts +0 -19
- package/class/event.d.ts +0 -64
- package/class/group.d.ts +0 -22
- package/class/index.d.ts +0 -8
- package/class/item.d.ts +0 -76
- package/class/link.d.ts +0 -54
- package/class/toolbar.d.ts +0 -4
- package/class/view-type.d.ts +0 -8
- package/components/bar/bar-drag.d.ts +0 -78
- package/components/bar/bar.component.d.ts +0 -26
- package/components/baseline/baseline.component.d.ts +0 -18
- package/components/calendar/grid/calendar-grid.component.d.ts +0 -21
- package/components/calendar/header/calendar-header.component.d.ts +0 -19
- package/components/drag-backdrop/drag-backdrop.component.d.ts +0 -8
- package/components/icon/icon.component.d.ts +0 -11
- package/components/icon/icons.d.ts +0 -11
- package/components/links/lines/curve.d.ts +0 -10
- package/components/links/lines/factory.d.ts +0 -5
- package/components/links/lines/line.d.ts +0 -8
- package/components/links/lines/straight.d.ts +0 -9
- package/components/links/links.component.d.ts +0 -37
- package/components/loader/loader.component.d.ts +0 -5
- package/components/main/gantt-main.component.d.ts +0 -32
- package/components/range/range.component.d.ts +0 -10
- package/components/scrollbar/scrollbar.component.d.ts +0 -13
- package/components/table/body/gantt-table-body.component.d.ts +0 -62
- package/components/table/header/gantt-table-header.component.d.ts +0 -35
- package/components/toolbar/toolbar.component.d.ts +0 -21
- package/directives/sync-scroll.directive.d.ts +0 -22
- package/gantt-abstract.d.ts +0 -14
- package/gantt-dom.service.d.ts +0 -48
- package/gantt-drag-container.d.ts +0 -36
- package/gantt-item-upper.d.ts +0 -22
- package/gantt-print.service.d.ts +0 -13
- package/gantt-sync-scroll.service.d.ts +0 -11
- package/gantt-upper.d.ts +0 -101
- package/gantt.component.d.ts +0 -66
- package/gantt.config.d.ts +0 -50
- package/gantt.module.d.ts +0 -29
- package/gantt.pipe.d.ts +0 -23
- package/gantt.styles.d.ts +0 -9
- package/i18n/i18n.d.ts +0 -23
- package/i18n/index.d.ts +0 -10
- package/i18n/locales/de-de.d.ts +0 -49
- package/i18n/locales/en-us.d.ts +0 -48
- package/i18n/locales/ja-jp.d.ts +0 -48
- package/i18n/locales/ru-ru.d.ts +0 -49
- package/i18n/locales/zh-hans.d.ts +0 -48
- package/i18n/locales/zh-hant.d.ts +0 -48
- package/public-api.d.ts +0 -26
- package/root.component.d.ts +0 -36
- package/table/gantt-column.component.d.ts +0 -17
- package/table/gantt-table.component.d.ts +0 -22
- package/utils/date.d.ts +0 -66
- package/utils/drag-scroll.d.ts +0 -27
- package/utils/helpers.d.ts +0 -15
- package/utils/passive-listeners.d.ts +0 -13
- package/utils/set-style-with-vendor-prefix.d.ts +0 -12
- package/views/day.d.ts +0 -15
- package/views/factory.d.ts +0 -10
- package/views/hour.d.ts +0 -19
- package/views/month.d.ts +0 -14
- package/views/quarter.d.ts +0 -14
- package/views/view.d.ts +0 -90
- package/views/week.d.ts +0 -14
- package/views/year.d.ts +0 -14
package/i18n/locales/de-de.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { GanttI18nLocale } from '../i18n';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
id: GanttI18nLocale;
|
|
4
|
-
dateLocale: import("date-fns/locale").Locale;
|
|
5
|
-
views: {
|
|
6
|
-
hour: {
|
|
7
|
-
label: string;
|
|
8
|
-
dateFormats: {
|
|
9
|
-
primary: string;
|
|
10
|
-
secondary: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
day: {
|
|
14
|
-
label: string;
|
|
15
|
-
dateFormats: {
|
|
16
|
-
primary: string;
|
|
17
|
-
secondary: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
week: {
|
|
21
|
-
label: string;
|
|
22
|
-
dateFormats: {
|
|
23
|
-
primary: string;
|
|
24
|
-
secondary: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
month: {
|
|
28
|
-
label: string;
|
|
29
|
-
dateFormats: {
|
|
30
|
-
primary: string;
|
|
31
|
-
secondary: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
quarter: {
|
|
35
|
-
label: string;
|
|
36
|
-
dateFormats: {
|
|
37
|
-
primary: string;
|
|
38
|
-
secondary: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
year: {
|
|
42
|
-
label: string;
|
|
43
|
-
dateFormats: {
|
|
44
|
-
secondary: string;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
export default _default;
|
package/i18n/locales/en-us.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { GanttI18nLocale } from '../i18n';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
id: GanttI18nLocale;
|
|
4
|
-
views: {
|
|
5
|
-
hour: {
|
|
6
|
-
label: string;
|
|
7
|
-
dateFormats: {
|
|
8
|
-
primary: string;
|
|
9
|
-
secondary: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
day: {
|
|
13
|
-
label: string;
|
|
14
|
-
dateFormats: {
|
|
15
|
-
primary: string;
|
|
16
|
-
secondary: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
week: {
|
|
20
|
-
label: string;
|
|
21
|
-
dateFormats: {
|
|
22
|
-
primary: string;
|
|
23
|
-
secondary: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
month: {
|
|
27
|
-
label: string;
|
|
28
|
-
dateFormats: {
|
|
29
|
-
primary: string;
|
|
30
|
-
secondary: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
quarter: {
|
|
34
|
-
label: string;
|
|
35
|
-
dateFormats: {
|
|
36
|
-
primary: string;
|
|
37
|
-
secondary: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
year: {
|
|
41
|
-
label: string;
|
|
42
|
-
dateFormats: {
|
|
43
|
-
secondary: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
export default _default;
|
package/i18n/locales/ja-jp.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { GanttI18nLocale } from '../i18n';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
id: GanttI18nLocale;
|
|
4
|
-
views: {
|
|
5
|
-
hour: {
|
|
6
|
-
label: string;
|
|
7
|
-
dateFormats: {
|
|
8
|
-
primary: string;
|
|
9
|
-
secondary: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
day: {
|
|
13
|
-
label: string;
|
|
14
|
-
dateFormats: {
|
|
15
|
-
primary: string;
|
|
16
|
-
secondary: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
week: {
|
|
20
|
-
label: string;
|
|
21
|
-
dateFormats: {
|
|
22
|
-
primary: string;
|
|
23
|
-
secondary: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
month: {
|
|
27
|
-
label: string;
|
|
28
|
-
dateFormats: {
|
|
29
|
-
primary: string;
|
|
30
|
-
secondary: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
quarter: {
|
|
34
|
-
label: string;
|
|
35
|
-
dateFormats: {
|
|
36
|
-
primary: string;
|
|
37
|
-
secondary: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
year: {
|
|
41
|
-
label: string;
|
|
42
|
-
dateFormats: {
|
|
43
|
-
secondary: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
export default _default;
|
package/i18n/locales/ru-ru.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { GanttI18nLocale } from '../i18n';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
id: GanttI18nLocale;
|
|
4
|
-
dateLocale: import("date-fns/locale").Locale;
|
|
5
|
-
views: {
|
|
6
|
-
hour: {
|
|
7
|
-
label: string;
|
|
8
|
-
dateFormats: {
|
|
9
|
-
primary: string;
|
|
10
|
-
secondary: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
day: {
|
|
14
|
-
label: string;
|
|
15
|
-
dateFormats: {
|
|
16
|
-
primary: string;
|
|
17
|
-
secondary: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
week: {
|
|
21
|
-
label: string;
|
|
22
|
-
dateFormats: {
|
|
23
|
-
primary: string;
|
|
24
|
-
secondary: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
month: {
|
|
28
|
-
label: string;
|
|
29
|
-
dateFormats: {
|
|
30
|
-
primary: string;
|
|
31
|
-
secondary: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
quarter: {
|
|
35
|
-
label: string;
|
|
36
|
-
dateFormats: {
|
|
37
|
-
primary: string;
|
|
38
|
-
secondary: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
year: {
|
|
42
|
-
label: string;
|
|
43
|
-
dateFormats: {
|
|
44
|
-
secondary: string;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
export default _default;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { GanttI18nLocale } from '../i18n';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
id: GanttI18nLocale;
|
|
4
|
-
views: {
|
|
5
|
-
hour: {
|
|
6
|
-
label: string;
|
|
7
|
-
dateFormats: {
|
|
8
|
-
primary: string;
|
|
9
|
-
secondary: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
day: {
|
|
13
|
-
label: string;
|
|
14
|
-
dateFormats: {
|
|
15
|
-
primary: string;
|
|
16
|
-
secondary: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
week: {
|
|
20
|
-
label: string;
|
|
21
|
-
dateFormats: {
|
|
22
|
-
primary: string;
|
|
23
|
-
secondary: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
month: {
|
|
27
|
-
label: string;
|
|
28
|
-
dateFormats: {
|
|
29
|
-
primary: string;
|
|
30
|
-
secondary: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
quarter: {
|
|
34
|
-
label: string;
|
|
35
|
-
dateFormats: {
|
|
36
|
-
primary: string;
|
|
37
|
-
secondary: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
year: {
|
|
41
|
-
label: string;
|
|
42
|
-
dateFormats: {
|
|
43
|
-
secondary: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
export default _default;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { GanttI18nLocale } from '../i18n';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
id: GanttI18nLocale;
|
|
4
|
-
views: {
|
|
5
|
-
hour: {
|
|
6
|
-
label: string;
|
|
7
|
-
dateFormats: {
|
|
8
|
-
primary: string;
|
|
9
|
-
secondary: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
day: {
|
|
13
|
-
label: string;
|
|
14
|
-
dateFormats: {
|
|
15
|
-
primary: string;
|
|
16
|
-
secondary: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
week: {
|
|
20
|
-
label: string;
|
|
21
|
-
dateFormats: {
|
|
22
|
-
primary: string;
|
|
23
|
-
secondary: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
month: {
|
|
27
|
-
label: string;
|
|
28
|
-
dateFormats: {
|
|
29
|
-
primary: string;
|
|
30
|
-
secondary: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
quarter: {
|
|
34
|
-
label: string;
|
|
35
|
-
dateFormats: {
|
|
36
|
-
primary: string;
|
|
37
|
-
secondary: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
year: {
|
|
41
|
-
label: string;
|
|
42
|
-
dateFormats: {
|
|
43
|
-
secondary: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
export default _default;
|
package/public-api.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export * from './class';
|
|
2
|
-
export * from './components/bar/bar.component';
|
|
3
|
-
export * from './components/baseline/baseline.component';
|
|
4
|
-
export * from './components/calendar/grid/calendar-grid.component';
|
|
5
|
-
export * from './components/calendar/header/calendar-header.component';
|
|
6
|
-
export * from './components/drag-backdrop/drag-backdrop.component';
|
|
7
|
-
export * from './components/loader/loader.component';
|
|
8
|
-
export * from './components/range/range.component';
|
|
9
|
-
export * from './components/scrollbar/scrollbar.component';
|
|
10
|
-
export * from './components/toolbar/toolbar.component';
|
|
11
|
-
export * from './directives/sync-scroll.directive';
|
|
12
|
-
export * from './gantt-item-upper';
|
|
13
|
-
export * from './gantt-print.service';
|
|
14
|
-
export * from './gantt-sync-scroll.service';
|
|
15
|
-
export * from './gantt-upper';
|
|
16
|
-
export * from './gantt.component';
|
|
17
|
-
export * from './gantt.config';
|
|
18
|
-
export * from './gantt.module';
|
|
19
|
-
export * from './gantt.pipe';
|
|
20
|
-
export { deDeLocale, enUsLocale, GANTT_I18N_LOCALE_TOKEN, GanttI18nLocale, GanttI18nLocaleConfig, jaJpLocale, ruRuLocale, zhHansLocale, zhHantLocale } from './i18n';
|
|
21
|
-
export * from './root.component';
|
|
22
|
-
export * from './table/gantt-column.component';
|
|
23
|
-
export * from './table/gantt-table.component';
|
|
24
|
-
export * from './utils/date';
|
|
25
|
-
export { registerView } from './views/factory';
|
|
26
|
-
export * from './views/view';
|
package/root.component.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { OnInit, NgZone, ElementRef, TemplateRef, OnDestroy } from '@angular/core';
|
|
2
|
-
import { GanttDomService } from './gantt-dom.service';
|
|
3
|
-
import { GanttDragContainer } from './gantt-drag-container';
|
|
4
|
-
import { GanttUpper } from './gantt-upper';
|
|
5
|
-
import { GanttPrintService } from './gantt-print.service';
|
|
6
|
-
import { GanttDate } from './utils/date';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class NgxGanttRootComponent implements OnInit, OnDestroy {
|
|
9
|
-
private elementRef;
|
|
10
|
-
private ngZone;
|
|
11
|
-
private dom;
|
|
12
|
-
dragContainer: GanttDragContainer;
|
|
13
|
-
ganttUpper: GanttUpper;
|
|
14
|
-
private printService;
|
|
15
|
-
sideWidth: number;
|
|
16
|
-
sideTemplate: TemplateRef<any>;
|
|
17
|
-
mainTemplate: TemplateRef<any>;
|
|
18
|
-
/** The native `<gantt-drag-backdrop></gantt-drag-backdrop>` element. */
|
|
19
|
-
backdrop: ElementRef<HTMLElement>;
|
|
20
|
-
verticalScrollbarWidth: number;
|
|
21
|
-
horizontalScrollbarHeight: number;
|
|
22
|
-
private unsubscribe$;
|
|
23
|
-
private get view();
|
|
24
|
-
onWindowResize(): void;
|
|
25
|
-
constructor(elementRef: ElementRef<HTMLElement>, ngZone: NgZone, dom: GanttDomService, dragContainer: GanttDragContainer, ganttUpper: GanttUpper, printService: GanttPrintService);
|
|
26
|
-
ngOnInit(): void;
|
|
27
|
-
computeScrollBarOffset(): void;
|
|
28
|
-
ngOnDestroy(): void;
|
|
29
|
-
private setupViewScroll;
|
|
30
|
-
private setupResize;
|
|
31
|
-
private setupScrollClass;
|
|
32
|
-
scrollToToday(): void;
|
|
33
|
-
scrollToDate(date: number | Date | GanttDate): void;
|
|
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"], ["*"], true, never>;
|
|
36
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { TemplateRef, ElementRef } from '@angular/core';
|
|
2
|
-
import { GanttUpper } from '../gantt-upper';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NgxGanttTableColumnComponent {
|
|
5
|
-
ganttUpper: GanttUpper;
|
|
6
|
-
private elementRef;
|
|
7
|
-
columnWidth: string;
|
|
8
|
-
set width(width: number | string);
|
|
9
|
-
name: string;
|
|
10
|
-
showExpandIcon: boolean;
|
|
11
|
-
templateRef: TemplateRef<any>;
|
|
12
|
-
headerTemplateRef: TemplateRef<any>;
|
|
13
|
-
constructor(ganttUpper: GanttUpper, elementRef: ElementRef);
|
|
14
|
-
get classList(): DOMTokenList;
|
|
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, true, never>;
|
|
17
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
-
import { GanttTableDragDroppedEvent, GanttTableDragEndedEvent, GanttTableDragEnterPredicateContext, GanttTableDragStartedEvent, GanttTableEvent, GanttTableItemClickEvent } from '../class';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NgxGanttTableComponent {
|
|
5
|
-
draggable: boolean;
|
|
6
|
-
maxWidth: number;
|
|
7
|
-
width: number;
|
|
8
|
-
dropEnterPredicate?: (context: GanttTableDragEnterPredicateContext) => boolean;
|
|
9
|
-
dragDropped: EventEmitter<GanttTableDragDroppedEvent<unknown>>;
|
|
10
|
-
dragStarted: EventEmitter<GanttTableDragStartedEvent<unknown>>;
|
|
11
|
-
dragEnded: EventEmitter<GanttTableDragEndedEvent<unknown>>;
|
|
12
|
-
columnChanges: EventEmitter<GanttTableEvent>;
|
|
13
|
-
resizeChange: EventEmitter<number>;
|
|
14
|
-
itemClick: EventEmitter<GanttTableItemClickEvent<unknown>>;
|
|
15
|
-
rowBeforeTemplate: TemplateRef<any>;
|
|
16
|
-
rowAfterTemplate: TemplateRef<any>;
|
|
17
|
-
tableEmptyTemplate: TemplateRef<any>;
|
|
18
|
-
tableFooterTemplate: TemplateRef<any>;
|
|
19
|
-
settingsSlot: TemplateRef<any>;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttTableComponent, 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>;
|
|
22
|
-
}
|
package/utils/date.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Locale, FirstWeekContainsDate } from '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';
|
|
3
|
-
export type GanttDateUtil = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
4
|
-
export declare function setDefaultTimeZone(zone: string): void;
|
|
5
|
-
export declare function getDefaultTimeZone(): string;
|
|
6
|
-
export declare class GanttDate {
|
|
7
|
-
value: Date;
|
|
8
|
-
constructor(date?: Date | string | number);
|
|
9
|
-
getYear(): number;
|
|
10
|
-
getMonth(): number;
|
|
11
|
-
getDay(): number;
|
|
12
|
-
getTime(): number;
|
|
13
|
-
getDate(): number;
|
|
14
|
-
getHours(): number;
|
|
15
|
-
getMinutes(): number;
|
|
16
|
-
getSeconds(): number;
|
|
17
|
-
getMilliseconds(): number;
|
|
18
|
-
getWeek(options?: {
|
|
19
|
-
locale?: Locale;
|
|
20
|
-
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
21
|
-
}): number;
|
|
22
|
-
getDaysInMonth(): number;
|
|
23
|
-
getDaysInQuarter(): number;
|
|
24
|
-
getDaysInYear(): number;
|
|
25
|
-
setDate(dayOfMonth: number): GanttDate;
|
|
26
|
-
clone(): GanttDate;
|
|
27
|
-
add(amount: number, unit?: GanttDateUtil): GanttDate;
|
|
28
|
-
addSeconds(amount: number): GanttDate;
|
|
29
|
-
addMinutes(amount: number): GanttDate;
|
|
30
|
-
addHours(amount: number): GanttDate;
|
|
31
|
-
addDays(amount: number): GanttDate;
|
|
32
|
-
addWeeks(amount: number): GanttDate;
|
|
33
|
-
addMonths(amount: number): GanttDate;
|
|
34
|
-
addQuarters(amount: number): GanttDate;
|
|
35
|
-
addYears(amount: number): GanttDate;
|
|
36
|
-
startOfMinute(): GanttDate;
|
|
37
|
-
startOfHour(): GanttDate;
|
|
38
|
-
startOfDay(): GanttDate;
|
|
39
|
-
startOfWeek(options?: {
|
|
40
|
-
locale?: Locale;
|
|
41
|
-
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
42
|
-
}): GanttDate;
|
|
43
|
-
startOfMonth(): GanttDate;
|
|
44
|
-
startOfQuarter(): GanttDate;
|
|
45
|
-
startOfYear(): GanttDate;
|
|
46
|
-
endOfMinute(): GanttDate;
|
|
47
|
-
endOfHour(): GanttDate;
|
|
48
|
-
endOfDay(): GanttDate;
|
|
49
|
-
endOfWeek(options?: {
|
|
50
|
-
locale?: Locale;
|
|
51
|
-
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
52
|
-
}): GanttDate;
|
|
53
|
-
endOfMonth(): GanttDate;
|
|
54
|
-
endOfQuarter(): GanttDate;
|
|
55
|
-
endOfYear(): GanttDate;
|
|
56
|
-
getUnixTime(): number;
|
|
57
|
-
format(mat: string, options?: {
|
|
58
|
-
locale?: Locale;
|
|
59
|
-
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
60
|
-
firstWeekContainsDate?: FirstWeekContainsDate;
|
|
61
|
-
useAdditionalWeekYearTokens?: boolean;
|
|
62
|
-
useAdditionalDayOfYearTokens?: boolean;
|
|
63
|
-
}): string;
|
|
64
|
-
isWeekend(): boolean;
|
|
65
|
-
isToday(): boolean;
|
|
66
|
-
}
|
package/utils/drag-scroll.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/** Horizontal direction in which we can auto-scroll. */
|
|
2
|
-
export declare const enum AutoScrollHorizontalDirection {
|
|
3
|
-
NONE = 0,
|
|
4
|
-
LEFT = 1,
|
|
5
|
-
RIGHT = 2
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Gets whether the horizontal auto-scroll direction of a node.
|
|
9
|
-
* @param clientRect Dimensions of the node.
|
|
10
|
-
* @param pointerX Position of the user's pointer along the x axis.
|
|
11
|
-
*/
|
|
12
|
-
export declare function getHorizontalScrollDirection(clientRect: DOMRect, pointerX: number): AutoScrollHorizontalDirection;
|
|
13
|
-
/**
|
|
14
|
-
* Checks whether the pointer coordinates are close to a ClientRect.
|
|
15
|
-
* @param rect ClientRect to check against.
|
|
16
|
-
* @param threshold Threshold around the ClientRect.
|
|
17
|
-
* @param pointerX Coordinates along the X axis.
|
|
18
|
-
* @param pointerY Coordinates along the Y axis.
|
|
19
|
-
*/
|
|
20
|
-
export declare function isPointerNearClientRect(rect: DOMRect, threshold: number, pointerX: number, pointerY: number): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Gets the speed rate of auto scrolling
|
|
23
|
-
* @param clientRect Dimensions of the node.
|
|
24
|
-
* @param pointerX Position of the user's pointer along the x axis.
|
|
25
|
-
* @param horizontalScrollDirection The direction in which the mouse is dragged horizontally
|
|
26
|
-
*/
|
|
27
|
-
export declare function getAutoScrollSpeedRates(clientRect: DOMRect, pointerX: number, horizontalScrollDirection: AutoScrollHorizontalDirection): number;
|
package/utils/helpers.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { GanttItem, GanttItemInternal } from '../class/item';
|
|
2
|
-
export interface Dictionary<T = unknown> {
|
|
3
|
-
[key: string]: T;
|
|
4
|
-
}
|
|
5
|
-
export declare function isNumber(value: any): value is number;
|
|
6
|
-
export declare function isString(value: any): value is string;
|
|
7
|
-
export declare function isUndefined(value: any): boolean;
|
|
8
|
-
export declare function hexToRgb(color: string, opacity?: number): string;
|
|
9
|
-
export declare function uniqBy<T = unknown>(array: T[], key: keyof T): any[];
|
|
10
|
-
export declare function flatten<T = unknown>(array: T[]): any;
|
|
11
|
-
export declare function recursiveItems(items: GanttItemInternal[]): any[];
|
|
12
|
-
export declare function getFlatItems(items: GanttItem[]): any[];
|
|
13
|
-
export declare function keyBy<T>(array: T[], key: T extends object ? keyof T : never): {
|
|
14
|
-
[key: string]: T;
|
|
15
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checks whether the user's browser supports passive event listeners.
|
|
3
|
-
* See: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md
|
|
4
|
-
*/
|
|
5
|
-
export declare function supportsPassiveEventListeners(): boolean;
|
|
6
|
-
/**
|
|
7
|
-
* Normalizes an `AddEventListener` object to something that can be passed
|
|
8
|
-
* to `addEventListener` on any browser, no matter whether it supports the
|
|
9
|
-
* `options` parameter.
|
|
10
|
-
*/
|
|
11
|
-
export declare function normalizePassiveListenerOptions(options: AddEventListenerOptions): AddEventListenerOptions | boolean;
|
|
12
|
-
/** Options used to bind passive event listeners. */
|
|
13
|
-
export declare const passiveListenerOptions: AddEventListenerOptions;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
interface SetStyleWithVendorPrefixOptions {
|
|
2
|
-
element: HTMLElement;
|
|
3
|
-
style: string;
|
|
4
|
-
value: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Note: we don't need to add vendor prefixes within `.scss` files since they're added automatically.
|
|
8
|
-
* This function is necessary when the `element.style` is updated directly through the JavaScript.
|
|
9
|
-
* This is not required to be used with CSS properties that don't require vendor prefixes (e.g. `opacity`).
|
|
10
|
-
*/
|
|
11
|
-
export declare function setStyleWithVendorPrefix({ element, style, value }: SetStyleWithVendorPrefixOptions): void;
|
|
12
|
-
export {};
|
package/views/day.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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 GanttViewDay extends GanttView {
|
|
6
|
-
showTimeline: boolean;
|
|
7
|
-
viewType: GanttViewType;
|
|
8
|
-
constructor(start: GanttViewDate, end: GanttViewDate, options?: GanttViewOptions);
|
|
9
|
-
viewStartOf(date: GanttDate): GanttDate;
|
|
10
|
-
viewEndOf(date: GanttDate): GanttDate;
|
|
11
|
-
getPrimaryWidth(): number;
|
|
12
|
-
getDayOccupancyWidth(date: GanttDate): number;
|
|
13
|
-
getPrimaryDatePoints(): GanttDatePoint[];
|
|
14
|
-
getSecondaryDatePoints(): GanttDatePoint[];
|
|
15
|
-
}
|
package/views/factory.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { GanttViewType } from '../class/view-type';
|
|
2
|
-
import { GanttViewDay } from './day';
|
|
3
|
-
import { GanttViewHour } from './hour';
|
|
4
|
-
import { GanttViewMonth } from './month';
|
|
5
|
-
import { GanttViewQuarter } from './quarter';
|
|
6
|
-
import { GanttView, GanttViewDate, GanttViewOptions } from './view';
|
|
7
|
-
import { GanttViewWeek } from './week';
|
|
8
|
-
import { GanttViewYear } from './year';
|
|
9
|
-
export declare function registerView<T extends typeof GanttView>(type: string, view: T): void;
|
|
10
|
-
export declare function createViewFactory(type: GanttViewType, start: GanttViewDate, end: GanttViewDate, options?: GanttViewOptions): GanttViewDay | GanttViewHour | GanttViewMonth | GanttViewQuarter | GanttViewWeek | GanttViewYear;
|
package/views/hour.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
showTimeline: boolean;
|
|
7
|
-
viewType: GanttViewType;
|
|
8
|
-
constructor(start: GanttViewDate, end: GanttViewDate, options?: GanttViewOptions);
|
|
9
|
-
viewStartOf(date: GanttDate): GanttDate;
|
|
10
|
-
viewEndOf(date: GanttDate): GanttDate;
|
|
11
|
-
getPrimaryWidth(): number;
|
|
12
|
-
getDayOccupancyWidth(): number;
|
|
13
|
-
private getHourOccupancyWidth;
|
|
14
|
-
getPrimaryDatePoints(): GanttDatePoint[];
|
|
15
|
-
getSecondaryDatePoints(): GanttDatePoint[];
|
|
16
|
-
getTodayXPoint(): number;
|
|
17
|
-
getDateIntervalWidth(start: GanttDate, end: GanttDate): number;
|
|
18
|
-
getDateByXPoint(x: number): GanttDate;
|
|
19
|
-
}
|
package/views/month.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { GanttView, GanttViewOptions, GanttViewDate } from './view';
|
|
2
|
-
import { GanttDate } from '../utils/date';
|
|
3
|
-
import { GanttDatePoint } from '../class/date-point';
|
|
4
|
-
import { GanttViewType } from '../class';
|
|
5
|
-
export declare class GanttViewMonth extends GanttView {
|
|
6
|
-
viewType: GanttViewType;
|
|
7
|
-
constructor(start: GanttViewDate, end: GanttViewDate, options?: GanttViewOptions);
|
|
8
|
-
viewStartOf(date: GanttDate): GanttDate;
|
|
9
|
-
viewEndOf(date: GanttDate): GanttDate;
|
|
10
|
-
getPrimaryWidth(): number;
|
|
11
|
-
getDayOccupancyWidth(date: GanttDate): number;
|
|
12
|
-
getPrimaryDatePoints(): GanttDatePoint[];
|
|
13
|
-
getSecondaryDatePoints(): GanttDatePoint[];
|
|
14
|
-
}
|
package/views/quarter.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { GanttView, GanttViewOptions, GanttViewDate } from './view';
|
|
2
|
-
import { GanttDate } from '../utils/date';
|
|
3
|
-
import { GanttDatePoint } from '../class/date-point';
|
|
4
|
-
import { GanttViewType } from '../class';
|
|
5
|
-
export declare class GanttViewQuarter extends GanttView {
|
|
6
|
-
viewType: GanttViewType;
|
|
7
|
-
constructor(start: GanttViewDate, end: GanttViewDate, options?: GanttViewOptions);
|
|
8
|
-
viewStartOf(date: GanttDate): GanttDate;
|
|
9
|
-
viewEndOf(date: GanttDate): GanttDate;
|
|
10
|
-
getPrimaryWidth(): number;
|
|
11
|
-
getDayOccupancyWidth(date: GanttDate): number;
|
|
12
|
-
getPrimaryDatePoints(): GanttDatePoint[];
|
|
13
|
-
getSecondaryDatePoints(): GanttDatePoint[];
|
|
14
|
-
}
|