@worktile/gantt 19.0.8-next.4 → 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 +1404 -1506
- 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 -16
- 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 -97
- package/views/week.d.ts +0 -14
- package/views/year.d.ts +0 -14
package/views/view.d.ts
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
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
|
-
export declare const primaryDatePointTop = "40%";
|
|
7
|
-
export declare const secondaryDatePointTop = "80%";
|
|
8
|
-
export interface GanttViewDate {
|
|
9
|
-
date: GanttDate;
|
|
10
|
-
isCustom?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface GanttViewOptions {
|
|
13
|
-
start?: GanttDate;
|
|
14
|
-
end?: GanttDate;
|
|
15
|
-
min?: GanttDate;
|
|
16
|
-
max?: GanttDate;
|
|
17
|
-
cellWidth?: number;
|
|
18
|
-
addAmount?: number;
|
|
19
|
-
addUnit?: GanttDateUtil;
|
|
20
|
-
/** @deprecated dateFormat is deprecated, please use dateDisplayFormats or setting i18n locale */
|
|
21
|
-
dateFormat?: GanttDateFormat;
|
|
22
|
-
dateDisplayFormats?: {
|
|
23
|
-
primary?: string;
|
|
24
|
-
secondary?: string;
|
|
25
|
-
};
|
|
26
|
-
datePrecisionUnit?: 'day' | 'hour' | 'minute';
|
|
27
|
-
dragPreviewDateFormat?: string;
|
|
28
|
-
hoilday?: {
|
|
29
|
-
isHoliday: (GanttDate: any) => boolean;
|
|
30
|
-
hideHoliday: boolean;
|
|
31
|
-
};
|
|
32
|
-
[key: string]: any;
|
|
33
|
-
}
|
|
34
|
-
export declare abstract class GanttView {
|
|
35
|
-
viewType: GanttViewType;
|
|
36
|
-
start$: BehaviorSubject<GanttDate>;
|
|
37
|
-
end$: BehaviorSubject<GanttDate>;
|
|
38
|
-
get start(): GanttDate;
|
|
39
|
-
get end(): GanttDate;
|
|
40
|
-
primaryDatePoints: GanttDatePoint[];
|
|
41
|
-
secondaryDatePoints: GanttDatePoint[];
|
|
42
|
-
width: number;
|
|
43
|
-
cellWidth: number;
|
|
44
|
-
primaryWidth: number;
|
|
45
|
-
showTimeline: boolean;
|
|
46
|
-
options: GanttViewOptions;
|
|
47
|
-
dateFormats: {
|
|
48
|
-
primary?: string;
|
|
49
|
-
secondary?: string;
|
|
50
|
-
};
|
|
51
|
-
constructor(start: GanttViewDate, end: GanttViewDate, options: GanttViewOptions);
|
|
52
|
-
abstract viewStartOf(date: GanttDate): GanttDate;
|
|
53
|
-
abstract viewEndOf(date: GanttDate): GanttDate;
|
|
54
|
-
/**
|
|
55
|
-
* deprecated, please use viewStartOf()
|
|
56
|
-
* @deprecated
|
|
57
|
-
*/
|
|
58
|
-
startOf(date: GanttDate): GanttDate;
|
|
59
|
-
/**
|
|
60
|
-
* deprecated, please use viewEndOf()
|
|
61
|
-
* @deprecated
|
|
62
|
-
*/
|
|
63
|
-
endOf(date: GanttDate): GanttDate;
|
|
64
|
-
abstract getPrimaryWidth(): number;
|
|
65
|
-
abstract getDayOccupancyWidth(date: GanttDate): number;
|
|
66
|
-
abstract getPrimaryDatePoints(): GanttDatePoint[];
|
|
67
|
-
abstract getSecondaryDatePoints(): GanttDatePoint[];
|
|
68
|
-
protected hideHoliday(date: GanttDate): boolean;
|
|
69
|
-
startOfPrecision(date: GanttDate): GanttDate;
|
|
70
|
-
endOfPrecision(date: GanttDate): GanttDate;
|
|
71
|
-
differenceByPrecisionUnit(dateLeft: GanttDate, dateRight: GanttDate): number;
|
|
72
|
-
getDateIntervalWidth(start: GanttDate, end: GanttDate): number;
|
|
73
|
-
protected initialize(): void;
|
|
74
|
-
addStartDate(): {
|
|
75
|
-
start: GanttDate;
|
|
76
|
-
end: GanttDate;
|
|
77
|
-
};
|
|
78
|
-
addEndDate(): {
|
|
79
|
-
start: GanttDate;
|
|
80
|
-
end: GanttDate;
|
|
81
|
-
};
|
|
82
|
-
updateDate(start: GanttDate, end: GanttDate): void;
|
|
83
|
-
getWidth(): number;
|
|
84
|
-
getCellWidth(): number;
|
|
85
|
-
getTodayXPoint(): number;
|
|
86
|
-
getXPointByDate(date: GanttDate): number;
|
|
87
|
-
getDateByXPoint(x: number): GanttDate;
|
|
88
|
-
getDateRangeWidth(start: GanttDate, end: GanttDate): number;
|
|
89
|
-
getMinRangeWidthByPrecisionUnit(date: GanttDate): number;
|
|
90
|
-
/**
|
|
91
|
-
* 根据起始日期和宽度计算结束日期
|
|
92
|
-
* @param start 起始日期
|
|
93
|
-
* @param width 视觉宽度
|
|
94
|
-
* @returns 结束日期
|
|
95
|
-
*/
|
|
96
|
-
getEndDateByWidth(start: GanttDate, width: number): GanttDate;
|
|
97
|
-
}
|
package/views/week.d.ts
DELETED
|
@@ -1,14 +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 GanttViewWeek 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(): number;
|
|
12
|
-
getPrimaryDatePoints(): GanttDatePoint[];
|
|
13
|
-
getSecondaryDatePoints(): GanttDatePoint[];
|
|
14
|
-
}
|
package/views/year.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 GanttViewYear 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
|
-
}
|