@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.
Files changed (73) hide show
  1. package/components/table/gantt-table.scss +0 -2
  2. package/fesm2022/worktile-gantt.mjs +1404 -1506
  3. package/fesm2022/worktile-gantt.mjs.map +1 -1
  4. package/gantt.component.scss +0 -4
  5. package/index.d.ts +1405 -5
  6. package/package.json +4 -4
  7. package/class/baseline.d.ts +0 -26
  8. package/class/date-point.d.ts +0 -19
  9. package/class/event.d.ts +0 -64
  10. package/class/group.d.ts +0 -22
  11. package/class/index.d.ts +0 -8
  12. package/class/item.d.ts +0 -76
  13. package/class/link.d.ts +0 -54
  14. package/class/toolbar.d.ts +0 -4
  15. package/class/view-type.d.ts +0 -8
  16. package/components/bar/bar-drag.d.ts +0 -78
  17. package/components/bar/bar.component.d.ts +0 -26
  18. package/components/baseline/baseline.component.d.ts +0 -18
  19. package/components/calendar/grid/calendar-grid.component.d.ts +0 -21
  20. package/components/calendar/header/calendar-header.component.d.ts +0 -19
  21. package/components/drag-backdrop/drag-backdrop.component.d.ts +0 -8
  22. package/components/icon/icon.component.d.ts +0 -11
  23. package/components/icon/icons.d.ts +0 -11
  24. package/components/links/lines/curve.d.ts +0 -10
  25. package/components/links/lines/factory.d.ts +0 -5
  26. package/components/links/lines/line.d.ts +0 -8
  27. package/components/links/lines/straight.d.ts +0 -9
  28. package/components/links/links.component.d.ts +0 -37
  29. package/components/loader/loader.component.d.ts +0 -5
  30. package/components/main/gantt-main.component.d.ts +0 -32
  31. package/components/range/range.component.d.ts +0 -10
  32. package/components/scrollbar/scrollbar.component.d.ts +0 -13
  33. package/components/table/body/gantt-table-body.component.d.ts +0 -62
  34. package/components/table/header/gantt-table-header.component.d.ts +0 -35
  35. package/components/toolbar/toolbar.component.d.ts +0 -21
  36. package/directives/sync-scroll.directive.d.ts +0 -22
  37. package/gantt-abstract.d.ts +0 -14
  38. package/gantt-dom.service.d.ts +0 -48
  39. package/gantt-drag-container.d.ts +0 -36
  40. package/gantt-item-upper.d.ts +0 -22
  41. package/gantt-print.service.d.ts +0 -13
  42. package/gantt-sync-scroll.service.d.ts +0 -11
  43. package/gantt-upper.d.ts +0 -101
  44. package/gantt.component.d.ts +0 -66
  45. package/gantt.config.d.ts +0 -50
  46. package/gantt.module.d.ts +0 -29
  47. package/gantt.pipe.d.ts +0 -23
  48. package/gantt.styles.d.ts +0 -9
  49. package/i18n/i18n.d.ts +0 -23
  50. package/i18n/index.d.ts +0 -10
  51. package/i18n/locales/de-de.d.ts +0 -49
  52. package/i18n/locales/en-us.d.ts +0 -48
  53. package/i18n/locales/ja-jp.d.ts +0 -48
  54. package/i18n/locales/ru-ru.d.ts +0 -49
  55. package/i18n/locales/zh-hans.d.ts +0 -48
  56. package/i18n/locales/zh-hant.d.ts +0 -48
  57. package/public-api.d.ts +0 -26
  58. package/root.component.d.ts +0 -36
  59. package/table/gantt-column.component.d.ts +0 -17
  60. package/table/gantt-table.component.d.ts +0 -22
  61. package/utils/date.d.ts +0 -66
  62. package/utils/drag-scroll.d.ts +0 -27
  63. package/utils/helpers.d.ts +0 -15
  64. package/utils/passive-listeners.d.ts +0 -13
  65. package/utils/set-style-with-vendor-prefix.d.ts +0 -12
  66. package/views/day.d.ts +0 -16
  67. package/views/factory.d.ts +0 -10
  68. package/views/hour.d.ts +0 -19
  69. package/views/month.d.ts +0 -14
  70. package/views/quarter.d.ts +0 -14
  71. package/views/view.d.ts +0 -97
  72. package/views/week.d.ts +0 -14
  73. 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
- }