@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.
Files changed (73) hide show
  1. package/components/table/gantt-table.scss +0 -2
  2. package/fesm2022/worktile-gantt.mjs +1405 -1483
  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 -15
  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 -90
  72. package/views/week.d.ts +0 -14
  73. package/views/year.d.ts +0 -14
package/index.d.ts CHANGED
@@ -1,5 +1,1405 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@worktile/gantt" />
5
- export * from './public-api';
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, EventEmitter, TemplateRef, OnChanges, OnInit, OnDestroy, ElementRef, ChangeDetectorRef, NgZone, SimpleChanges, QueryList, AfterViewInit, AfterViewChecked, WritableSignal, PipeTransform } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import * as i2 from '@angular/cdk/drag-drop';
5
+ import { CdkDragStart, CdkDragMove, CdkDragEnd, CdkDrag, CdkDragDrop } from '@angular/cdk/drag-drop';
6
+ import * as i3 from '@angular/cdk/scrolling';
7
+ import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
8
+ import { BehaviorSubject, Subject, Observable } from 'rxjs';
9
+ import * as date_fns from 'date-fns';
10
+ import { Locale, FirstWeekContainsDate } from 'date-fns';
11
+ export { Locale, addDays, addHours, addMinutes, addMonths, addQuarters, addSeconds, addWeeks, addYears, differenceInCalendarDays, differenceInCalendarQuarters, differenceInDays, differenceInMinutes, eachDayOfInterval, eachHourOfInterval, eachMonthOfInterval, eachWeekOfInterval, endOfDay, endOfHour, endOfMinute, endOfMonth, endOfQuarter, endOfWeek, endOfYear, format, fromUnixTime, getDaysInMonth, getUnixTime, getWeek, isToday, isWeekend, setDate, startOfDay, startOfHour, startOfMinute, startOfMonth, startOfQuarter, startOfWeek, startOfYear } from 'date-fns';
12
+ import { SelectionModel } from '@angular/cdk/collections';
13
+ import { BooleanInput } from '@angular/cdk/coercion';
14
+ import * as _worktile_gantt from '@worktile/gantt';
15
+
16
+ type GanttDateUtil = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year';
17
+ declare function setDefaultTimeZone(zone: string): void;
18
+ declare function getDefaultTimeZone(): string;
19
+ declare class GanttDate {
20
+ value: Date;
21
+ constructor(date?: Date | string | number);
22
+ getYear(): number;
23
+ getMonth(): number;
24
+ getDay(): number;
25
+ getTime(): number;
26
+ getDate(): number;
27
+ getHours(): number;
28
+ getMinutes(): number;
29
+ getSeconds(): number;
30
+ getMilliseconds(): number;
31
+ getWeek(options?: {
32
+ locale?: Locale;
33
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
34
+ }): number;
35
+ getDaysInMonth(): number;
36
+ getDaysInQuarter(): number;
37
+ getDaysInYear(): number;
38
+ setDate(dayOfMonth: number): GanttDate;
39
+ clone(): GanttDate;
40
+ add(amount: number, unit?: GanttDateUtil): GanttDate;
41
+ addSeconds(amount: number): GanttDate;
42
+ addMinutes(amount: number): GanttDate;
43
+ addHours(amount: number): GanttDate;
44
+ addDays(amount: number): GanttDate;
45
+ addWeeks(amount: number): GanttDate;
46
+ addMonths(amount: number): GanttDate;
47
+ addQuarters(amount: number): GanttDate;
48
+ addYears(amount: number): GanttDate;
49
+ startOfMinute(): GanttDate;
50
+ startOfHour(): GanttDate;
51
+ startOfDay(): GanttDate;
52
+ startOfWeek(options?: {
53
+ locale?: Locale;
54
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
55
+ }): GanttDate;
56
+ startOfMonth(): GanttDate;
57
+ startOfQuarter(): GanttDate;
58
+ startOfYear(): GanttDate;
59
+ endOfMinute(): GanttDate;
60
+ endOfHour(): GanttDate;
61
+ endOfDay(): GanttDate;
62
+ endOfWeek(options?: {
63
+ locale?: Locale;
64
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
65
+ }): GanttDate;
66
+ endOfMonth(): GanttDate;
67
+ endOfQuarter(): GanttDate;
68
+ endOfYear(): GanttDate;
69
+ getUnixTime(): number;
70
+ format(mat: string, options?: {
71
+ locale?: Locale;
72
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
73
+ firstWeekContainsDate?: FirstWeekContainsDate;
74
+ useAdditionalWeekYearTokens?: boolean;
75
+ useAdditionalDayOfYearTokens?: boolean;
76
+ }): string;
77
+ isWeekend(): boolean;
78
+ isToday(): boolean;
79
+ }
80
+
81
+ declare class GanttDatePoint {
82
+ start: GanttDate;
83
+ text: string;
84
+ x: number;
85
+ y: number | string;
86
+ additions?: {
87
+ isWeekend: boolean;
88
+ isToday: boolean;
89
+ };
90
+ style?: Partial<CSSStyleDeclaration>;
91
+ fill?: string;
92
+ constructor(start: GanttDate, text: string, x: number, y: number | string, additions?: {
93
+ isWeekend: boolean;
94
+ isToday: boolean;
95
+ }, style?: Partial<CSSStyleDeclaration>, fill?: string);
96
+ }
97
+
98
+ declare enum GanttViewType {
99
+ day = "day",
100
+ quarter = "quarter",
101
+ month = "month",
102
+ year = "year",
103
+ week = "week",
104
+ hour = "hour"
105
+ }
106
+
107
+ interface GanttItemRefs {
108
+ width: number;
109
+ x: number;
110
+ y: number;
111
+ }
112
+ declare enum GanttItemType {
113
+ bar = "bar",
114
+ range = "range",
115
+ custom = "custom"
116
+ }
117
+ interface GanttItem<T = unknown> {
118
+ id: string;
119
+ title: string;
120
+ start?: number | Date;
121
+ end?: number | Date;
122
+ group_id?: string;
123
+ links?: (GanttLink | string)[];
124
+ draggable?: boolean;
125
+ itemDraggable?: boolean;
126
+ linkable?: boolean;
127
+ expandable?: boolean;
128
+ expanded?: boolean;
129
+ children?: GanttItem[];
130
+ color?: string;
131
+ barStyle?: Partial<CSSStyleDeclaration>;
132
+ laneStyle?: Partial<CSSStyleDeclaration>;
133
+ origin?: T;
134
+ type?: GanttItemType;
135
+ progress?: number;
136
+ }
137
+ declare class GanttItemInternal {
138
+ private view?;
139
+ id: string;
140
+ title: string;
141
+ start: GanttDate | null;
142
+ end: GanttDate | null;
143
+ links: GanttLink[];
144
+ color?: string;
145
+ barStyle?: Partial<CSSStyleDeclaration>;
146
+ laneStyle?: Partial<CSSStyleDeclaration>;
147
+ draggable?: boolean;
148
+ itemDraggable?: boolean;
149
+ linkable?: boolean;
150
+ origin: GanttItem;
151
+ expandable?: boolean;
152
+ expanded?: boolean;
153
+ loading: boolean;
154
+ children: GanttItemInternal[];
155
+ type?: GanttItemType;
156
+ progress?: number;
157
+ viewType?: GanttViewType;
158
+ level: number;
159
+ get refs(): {
160
+ width: number;
161
+ x: number;
162
+ y: number;
163
+ };
164
+ refs$: BehaviorSubject<{
165
+ width: number;
166
+ x: number;
167
+ y: number;
168
+ }>;
169
+ constructor(item: GanttItem, level: number, view?: GanttView);
170
+ private fillDateWhenStartOrEndIsNil;
171
+ updateRefs(refs: GanttItemRefs): void;
172
+ updateDate(start: GanttDate, end: GanttDate): void;
173
+ updateLevel(level: number): void;
174
+ addChildren(items: GanttItem[]): void;
175
+ setExpand(expanded: boolean): void;
176
+ addLink(link: GanttLink): void;
177
+ }
178
+
179
+ declare enum GanttLinkType {
180
+ fs = 1,
181
+ ff = 2,
182
+ ss = 3,
183
+ sf = 4
184
+ }
185
+ declare enum GanttLinkLineType {
186
+ curve = "curve",
187
+ straight = "straight"
188
+ }
189
+ declare enum LinkColors {
190
+ default = "#cacaca",
191
+ blocked = "#FF7575",
192
+ active = "#6698ff"
193
+ }
194
+ interface GanttLink {
195
+ type: GanttLinkType;
196
+ link: string;
197
+ color?: {
198
+ default: string;
199
+ active?: string;
200
+ } | string;
201
+ }
202
+ interface GanttLinkItem {
203
+ id: string;
204
+ before: {
205
+ x: number;
206
+ y: number;
207
+ };
208
+ after: {
209
+ x: number;
210
+ y: number;
211
+ };
212
+ start: GanttDate;
213
+ end: GanttDate;
214
+ origin: GanttItem;
215
+ links: GanttLink[];
216
+ }
217
+ interface LinkInternal {
218
+ path: string;
219
+ source: GanttItem;
220
+ target: GanttItem;
221
+ type: GanttLinkType;
222
+ color: string;
223
+ defaultColor?: string;
224
+ activeColor?: string;
225
+ }
226
+ interface GanttLinkOptions {
227
+ dependencyTypes?: GanttLinkType[];
228
+ showArrow?: boolean;
229
+ lineType?: GanttLinkLineType;
230
+ }
231
+
232
+ declare enum GanttI18nLocale {
233
+ zhHans = "zh-hans",
234
+ zhHant = "zh-hant",
235
+ enUs = "en-us",
236
+ deDe = "de-de",
237
+ jaJp = "ja-jp",
238
+ ruRu = "ru-ru"
239
+ }
240
+ type GanttI18nLocaleConfig = {
241
+ id: GanttI18nLocale | string;
242
+ dateLocale?: Locale;
243
+ views: Record<GanttViewType, {
244
+ label: string;
245
+ dateFormats: {
246
+ primary?: string;
247
+ secondary?: string;
248
+ };
249
+ }>;
250
+ };
251
+ declare const GANTT_I18N_LOCALE_TOKEN: InjectionToken<GanttI18nLocaleConfig[]>;
252
+
253
+ interface GanttDateFormat {
254
+ hour?: string;
255
+ day?: string;
256
+ week?: string;
257
+ month?: string;
258
+ quarter?: string;
259
+ year?: string;
260
+ yearMonth?: string;
261
+ yearQuarter?: string;
262
+ }
263
+ interface GanttDateOptions {
264
+ /**
265
+ * @deprecated dateOptions is deprecated, use i18n locale setting instead
266
+ * https://worktile.github.io/ngx-gantt/guides/configuration/i18n
267
+ */
268
+ locale?: Locale;
269
+ timeZone?: string;
270
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
271
+ }
272
+ interface GanttStyleOptions {
273
+ headerHeight?: number;
274
+ lineHeight?: number;
275
+ barHeight?: number;
276
+ }
277
+ interface GanttGlobalConfig {
278
+ locale?: GanttI18nLocale | string;
279
+ /** @deprecated dateFormat is deprecated, please configure through i18n. https://worktile.github.io/ngx-gantt/guides/configuration/i18n */
280
+ dateFormat?: GanttDateFormat;
281
+ dateOptions?: GanttDateOptions;
282
+ linkOptions?: GanttLinkOptions;
283
+ styleOptions?: GanttStyleOptions;
284
+ }
285
+ declare const defaultConfig: GanttGlobalConfig;
286
+ declare const GANTT_GLOBAL_CONFIG: InjectionToken<GanttGlobalConfig>;
287
+ declare class GanttConfigService {
288
+ config: GanttGlobalConfig;
289
+ private i18nLocales;
290
+ constructor();
291
+ setLocale(locale: string): void;
292
+ private getLocaleConfig;
293
+ getViewsLocale(): GanttI18nLocaleConfig['views'];
294
+ getDateLocale(): any;
295
+ static ɵfac: i0.ɵɵFactoryDeclaration<GanttConfigService, never>;
296
+ static ɵprov: i0.ɵɵInjectableDeclaration<GanttConfigService>;
297
+ }
298
+
299
+ declare const primaryDatePointTop = "40%";
300
+ declare const secondaryDatePointTop = "80%";
301
+ interface GanttViewDate {
302
+ date: GanttDate;
303
+ isCustom?: boolean;
304
+ }
305
+ interface GanttViewOptions {
306
+ start?: GanttDate;
307
+ end?: GanttDate;
308
+ min?: GanttDate;
309
+ max?: GanttDate;
310
+ cellWidth?: number;
311
+ addAmount?: number;
312
+ addUnit?: GanttDateUtil;
313
+ /** @deprecated dateFormat is deprecated, please use dateDisplayFormats or setting i18n locale */
314
+ dateFormat?: GanttDateFormat;
315
+ dateDisplayFormats?: {
316
+ primary?: string;
317
+ secondary?: string;
318
+ };
319
+ datePrecisionUnit?: 'day' | 'hour' | 'minute';
320
+ dragPreviewDateFormat?: string;
321
+ [key: string]: any;
322
+ }
323
+ declare abstract class GanttView {
324
+ viewType: GanttViewType;
325
+ start$: BehaviorSubject<GanttDate>;
326
+ end$: BehaviorSubject<GanttDate>;
327
+ get start(): GanttDate;
328
+ get end(): GanttDate;
329
+ primaryDatePoints: GanttDatePoint[];
330
+ secondaryDatePoints: GanttDatePoint[];
331
+ width: number;
332
+ cellWidth: number;
333
+ primaryWidth: number;
334
+ showTimeline: boolean;
335
+ options: GanttViewOptions;
336
+ dateFormats: {
337
+ primary?: string;
338
+ secondary?: string;
339
+ };
340
+ constructor(start: GanttViewDate, end: GanttViewDate, options: GanttViewOptions);
341
+ abstract viewStartOf(date: GanttDate): GanttDate;
342
+ abstract viewEndOf(date: GanttDate): GanttDate;
343
+ /**
344
+ * deprecated, please use viewStartOf()
345
+ * @deprecated
346
+ */
347
+ startOf(date: GanttDate): GanttDate;
348
+ /**
349
+ * deprecated, please use viewEndOf()
350
+ * @deprecated
351
+ */
352
+ endOf(date: GanttDate): GanttDate;
353
+ abstract getPrimaryWidth(): number;
354
+ abstract getDayOccupancyWidth(date: GanttDate): number;
355
+ abstract getPrimaryDatePoints(): GanttDatePoint[];
356
+ abstract getSecondaryDatePoints(): GanttDatePoint[];
357
+ startOfPrecision(date: GanttDate): GanttDate;
358
+ endOfPrecision(date: GanttDate): GanttDate;
359
+ differenceByPrecisionUnit(dateLeft: GanttDate, dateRight: GanttDate): number;
360
+ getDateIntervalWidth(start: GanttDate, end: GanttDate): number;
361
+ protected initialize(): void;
362
+ addStartDate(): {
363
+ start: GanttDate;
364
+ end: GanttDate;
365
+ };
366
+ addEndDate(): {
367
+ start: GanttDate;
368
+ end: GanttDate;
369
+ };
370
+ updateDate(start: GanttDate, end: GanttDate): void;
371
+ getWidth(): number;
372
+ getCellWidth(): number;
373
+ getTodayXPoint(): number;
374
+ getXPointByDate(date: GanttDate): number;
375
+ getDateByXPoint(x: number): GanttDate;
376
+ getDateRangeWidth(start: GanttDate, end: GanttDate): number;
377
+ getMinRangeWidthByPrecisionUnit(date: GanttDate): number;
378
+ }
379
+
380
+ interface Dictionary<T = unknown> {
381
+ [key: string]: T;
382
+ }
383
+
384
+ declare enum InBarPosition {
385
+ start = "start",
386
+ finish = "finish"
387
+ }
388
+ type LinkDragPosition = {
389
+ element: HTMLElement;
390
+ item: GanttItemInternal;
391
+ pos?: InBarPosition;
392
+ };
393
+ interface LinkDragPath {
394
+ from?: LinkDragPosition;
395
+ to?: LinkDragPosition;
396
+ }
397
+ declare class GanttDragContainer {
398
+ ganttUpper: GanttUpper;
399
+ dragStarted: EventEmitter<GanttDragEvent<unknown>>;
400
+ dragMoved: EventEmitter<GanttDragEvent<unknown>>;
401
+ dragEnded: EventEmitter<GanttDragEvent<unknown>>;
402
+ linkDragStarted: EventEmitter<GanttLinkDragEvent<unknown>>;
403
+ linkDragEntered: EventEmitter<GanttLinkDragEvent<unknown>>;
404
+ linkDragEnded: EventEmitter<GanttLinkDragEvent<unknown>>;
405
+ linkDraggingId: string;
406
+ linkDragPath: LinkDragPath;
407
+ constructor();
408
+ emitLinkDragStarted(from: LinkDragPosition): void;
409
+ emitLinkDragEntered(to: LinkDragPosition): void;
410
+ emitLinkDragLeaved(): void;
411
+ emitLinkDragEnded(to?: LinkDragPosition): void;
412
+ static ɵfac: i0.ɵɵFactoryDeclaration<GanttDragContainer, never>;
413
+ static ɵprov: i0.ɵɵInjectableDeclaration<GanttDragContainer>;
414
+ }
415
+
416
+ interface GanttBaselineItem {
417
+ id: string;
418
+ start?: number;
419
+ end?: number;
420
+ }
421
+ declare class GanttBaselineItemInternal {
422
+ id: string;
423
+ start: GanttDate;
424
+ end: GanttDate;
425
+ origin: GanttBaselineItem;
426
+ get refs(): {
427
+ width: number;
428
+ x: number;
429
+ y: number;
430
+ };
431
+ refs$: BehaviorSubject<{
432
+ width: number;
433
+ x: number;
434
+ y: number;
435
+ }>;
436
+ constructor(item: GanttBaselineItem);
437
+ updateRefs(refs: GanttItemRefs): void;
438
+ }
439
+
440
+ declare class NgxGanttTableComponent {
441
+ draggable: boolean;
442
+ maxWidth: number;
443
+ width: number;
444
+ dropEnterPredicate?: (context: GanttTableDragEnterPredicateContext) => boolean;
445
+ dragDropped: EventEmitter<GanttTableDragDroppedEvent<unknown>>;
446
+ dragStarted: EventEmitter<GanttTableDragStartedEvent<unknown>>;
447
+ dragEnded: EventEmitter<GanttTableDragEndedEvent<unknown>>;
448
+ columnChanges: EventEmitter<GanttTableEvent>;
449
+ resizeChange: EventEmitter<number>;
450
+ itemClick: EventEmitter<GanttTableItemClickEvent<unknown>>;
451
+ rowBeforeTemplate: TemplateRef<any>;
452
+ rowAfterTemplate: TemplateRef<any>;
453
+ tableEmptyTemplate: TemplateRef<any>;
454
+ tableFooterTemplate: TemplateRef<any>;
455
+ settingsSlot: TemplateRef<any>;
456
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttTableComponent, never>;
457
+ 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>;
458
+ }
459
+
460
+ declare abstract class GanttUpper implements OnChanges, OnInit, OnDestroy {
461
+ protected elementRef: ElementRef<HTMLElement>;
462
+ protected cdr: ChangeDetectorRef;
463
+ protected ngZone: NgZone;
464
+ protected config: GanttGlobalConfig;
465
+ originItems: GanttItem[];
466
+ originGroups: GanttGroup[];
467
+ originBaselineItems: GanttBaselineItem[];
468
+ viewType: GanttViewType;
469
+ start: number;
470
+ end: number;
471
+ showTodayLine: boolean;
472
+ draggable: boolean;
473
+ styles: GanttStyleOptions;
474
+ showToolbar: boolean;
475
+ toolbarOptions: GanttToolbarOptions;
476
+ viewOptions: GanttViewOptions;
477
+ set linkOptions(options: GanttLinkOptions);
478
+ get linkOptions(): GanttLinkOptions;
479
+ disabledLoadOnScroll: boolean;
480
+ set selectable(value: BooleanInput);
481
+ get selectable(): boolean;
482
+ set multiple(value: BooleanInput);
483
+ get multiple(): boolean;
484
+ quickTimeFocus: boolean;
485
+ loadOnScroll: EventEmitter<GanttLoadOnScrollEvent>;
486
+ dragStarted: EventEmitter<GanttDragEvent<unknown>>;
487
+ dragMoved: EventEmitter<GanttDragEvent<unknown>>;
488
+ dragEnded: EventEmitter<GanttDragEvent<unknown>>;
489
+ barClick: EventEmitter<GanttBarClickEvent<unknown>>;
490
+ viewChange: EventEmitter<GanttView>;
491
+ expandChange: EventEmitter<GanttItemInternal | GanttGroupInternal | (GanttItemInternal | GanttGroupInternal)[]>;
492
+ barTemplate: TemplateRef<any>;
493
+ rangeTemplate: TemplateRef<any>;
494
+ itemTemplate: TemplateRef<any>;
495
+ baselineTemplate: TemplateRef<any>;
496
+ groupTemplate: TemplateRef<any>;
497
+ groupHeaderTemplate: TemplateRef<any>;
498
+ toolbarTemplate: TemplateRef<any>;
499
+ configService: GanttConfigService;
500
+ linkable: boolean;
501
+ linkDragEnded: EventEmitter<GanttLinkDragEvent<unknown>>;
502
+ view: GanttView;
503
+ items: GanttItemInternal[];
504
+ groups: GanttGroupInternal[];
505
+ baselineItems: GanttBaselineItemInternal[];
506
+ baselineItemsMap: Dictionary<GanttBaselineItemInternal>;
507
+ get element(): HTMLElement;
508
+ firstChange: boolean;
509
+ dragContainer: GanttDragContainer;
510
+ unsubscribe$: Subject<void>;
511
+ selectionModel: SelectionModel<string>;
512
+ table?: NgxGanttTableComponent;
513
+ private groupsMap;
514
+ private _selectable;
515
+ private _multiple;
516
+ private _linkOptions;
517
+ ganttClass: boolean;
518
+ constructor();
519
+ private createView;
520
+ private setupGroups;
521
+ protected setupItems(): void;
522
+ private setupBaselineItems;
523
+ private setupExpandedState;
524
+ private getViewDate;
525
+ computeRefs(): void;
526
+ private initSelectionModel;
527
+ private initCssVariables;
528
+ expandGroups(expanded: boolean): void;
529
+ ngOnInit(): void;
530
+ ngOnChanges(changes: SimpleChanges): void;
531
+ ngOnDestroy(): void;
532
+ computeItemsRefs(...items: GanttItemInternal[] | GanttBaselineItemInternal[]): void;
533
+ trackBy(index: number, item: GanttGroupInternal | GanttItemInternal): string | number;
534
+ detectChanges(): void;
535
+ expandGroup(group: GanttGroupInternal): void;
536
+ expandAll(): void;
537
+ collapseAll(): void;
538
+ getGanttItem(id: string): GanttItemInternal;
539
+ getGanttItems(ids: string[]): GanttItemInternal[];
540
+ isSelected(id: string): boolean;
541
+ changeView(type: GanttViewType): void;
542
+ rerenderView(): void;
543
+ static ɵfac: i0.ɵɵFactoryDeclaration<GanttUpper, never>;
544
+ 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; }; "quickTimeFocus": { "alias": "quickTimeFocus"; "required": false; }; }, { "loadOnScroll": "loadOnScroll"; "dragStarted": "dragStarted"; "dragMoved": "dragMoved"; "dragEnded": "dragEnded"; "barClick": "barClick"; "viewChange": "viewChange"; "expandChange": "expandChange"; }, ["barTemplate", "rangeTemplate", "itemTemplate", "baselineTemplate", "groupTemplate", "groupHeaderTemplate", "toolbarTemplate"], never, true, never>;
545
+ }
546
+ declare const GANTT_UPPER_TOKEN: InjectionToken<GanttUpper>;
547
+
548
+ declare class NgxGanttTableColumnComponent {
549
+ ganttUpper: GanttUpper;
550
+ private elementRef;
551
+ columnWidth: string;
552
+ set width(width: number | string);
553
+ name: string;
554
+ showExpandIcon: boolean;
555
+ templateRef: TemplateRef<any>;
556
+ headerTemplateRef: TemplateRef<any>;
557
+ constructor();
558
+ get classList(): DOMTokenList;
559
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttTableColumnComponent, never>;
560
+ 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>;
561
+ }
562
+
563
+ declare class GanttDragEvent<T = unknown> {
564
+ item: GanttItem<T>;
565
+ }
566
+ declare class GanttTableEvent {
567
+ columns: QueryList<NgxGanttTableColumnComponent>;
568
+ }
569
+ declare class GanttLinkDragEvent<T = unknown> {
570
+ source: GanttItem<T>;
571
+ target?: GanttItem<T>;
572
+ type?: GanttLinkType;
573
+ }
574
+ declare class GanttLoadOnScrollEvent {
575
+ start: number;
576
+ end: number;
577
+ }
578
+ declare class GanttLineClickEvent<T = unknown> {
579
+ event: MouseEvent;
580
+ source: GanttItem<T>;
581
+ target: GanttItem<T>;
582
+ }
583
+ declare class GanttBarClickEvent<T = unknown> {
584
+ event: Event;
585
+ item: GanttItem<T>;
586
+ }
587
+ declare class GanttTableItemClickEvent<T = unknown> {
588
+ event: Event;
589
+ current?: GanttItem<T>;
590
+ }
591
+ declare class GanttSelectedEvent<T = unknown> extends GanttTableItemClickEvent<T> {
592
+ selectedValue: GanttItem<T> | GanttItem<T>[];
593
+ }
594
+ declare class GanttTableDragDroppedEvent<T = unknown> {
595
+ source: GanttItem<T>;
596
+ sourceParent: GanttItem<T>;
597
+ target: GanttItem<T>;
598
+ targetParent: GanttItem<T>;
599
+ dropPosition: GanttTableDropPosition;
600
+ }
601
+ declare class GanttTableDragStartedEvent<T = unknown> {
602
+ source: GanttItem<T>;
603
+ sourceParent: GanttItem<T>;
604
+ }
605
+ declare class GanttTableDragEndedEvent<T = unknown> {
606
+ source: GanttItem<T>;
607
+ sourceParent: GanttItem<T>;
608
+ }
609
+ type GanttTableDropPosition = 'before' | 'inside' | 'after';
610
+ declare class GanttTableDragEnterPredicateContext<T = unknown> {
611
+ source: GanttItem<T>;
612
+ target: GanttItem<T>;
613
+ dropPosition: GanttTableDropPosition;
614
+ }
615
+ declare class GanttVirtualScrolledIndexChangeEvent {
616
+ index: number;
617
+ renderedRange: {
618
+ start: number;
619
+ end: number;
620
+ };
621
+ count: number;
622
+ }
623
+
624
+ interface GanttGroup<T = unknown> {
625
+ id: string;
626
+ title: string;
627
+ expanded?: boolean;
628
+ origin?: T;
629
+ class?: string;
630
+ }
631
+ declare class GanttGroupInternal {
632
+ id: string;
633
+ title: string;
634
+ origin: GanttGroup;
635
+ items: GanttItemInternal[];
636
+ mergedItems: GanttItemInternal[][];
637
+ expanded?: boolean;
638
+ refs?: {
639
+ height?: number;
640
+ };
641
+ class?: string;
642
+ constructor(group: GanttGroup);
643
+ setExpand(expanded: boolean): void;
644
+ }
645
+
646
+ interface GanttToolbarOptions {
647
+ viewTypes?: GanttViewType[];
648
+ }
649
+
650
+ declare class NgxGanttRootComponent implements OnInit, OnDestroy {
651
+ private elementRef;
652
+ private ngZone;
653
+ private dom;
654
+ dragContainer: GanttDragContainer;
655
+ ganttUpper: GanttUpper;
656
+ private printService;
657
+ sideWidth: number;
658
+ sideTemplate: TemplateRef<any>;
659
+ mainTemplate: TemplateRef<any>;
660
+ /** The native `<gantt-drag-backdrop></gantt-drag-backdrop>` element. */
661
+ backdrop: ElementRef<HTMLElement>;
662
+ verticalScrollbarWidth: number;
663
+ horizontalScrollbarHeight: number;
664
+ private unsubscribe$;
665
+ private get view();
666
+ onWindowResize(): void;
667
+ constructor();
668
+ ngOnInit(): void;
669
+ computeScrollBarOffset(): void;
670
+ ngOnDestroy(): void;
671
+ private setupViewScroll;
672
+ private setupResize;
673
+ private setupScrollClass;
674
+ scrollToToday(): void;
675
+ scrollToDate(date: number | Date | GanttDate): void;
676
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttRootComponent, never>;
677
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttRootComponent, "ngx-gantt-root", never, { "sideWidth": { "alias": "sideWidth"; "required": false; }; }, {}, ["sideTemplate", "mainTemplate"], ["*"], true, never>;
678
+ }
679
+
680
+ declare class NgxGanttComponent extends GanttUpper implements OnInit, OnChanges, AfterViewInit, AfterViewChecked {
681
+ private viewportRuler;
682
+ maxLevel: number;
683
+ async: boolean;
684
+ childrenResolve: (GanttItem: any) => Observable<GanttItem[]>;
685
+ linkable: boolean;
686
+ set loading(loading: boolean);
687
+ virtualScrollEnabled: boolean;
688
+ loadingDelay: number;
689
+ linkDragStarted: EventEmitter<GanttLinkDragEvent<unknown>>;
690
+ linkDragEnded: EventEmitter<GanttLinkDragEvent<unknown>>;
691
+ lineClick: EventEmitter<GanttLineClickEvent<unknown>>;
692
+ selectedChange: EventEmitter<GanttSelectedEvent<unknown>>;
693
+ virtualScrolledIndexChange: EventEmitter<GanttVirtualScrolledIndexChangeEvent>;
694
+ table: NgxGanttTableComponent;
695
+ columns: QueryList<NgxGanttTableColumnComponent>;
696
+ tableEmptyTemplate: TemplateRef<any>;
697
+ ganttRoot: NgxGanttRootComponent;
698
+ footerTemplate: TemplateRef<any>;
699
+ virtualScroll: CdkVirtualScrollViewport;
700
+ ganttTableBody: ElementRef<HTMLDivElement>;
701
+ tableScrollWidth: i0.WritableSignal<number>;
702
+ private resizeObserver;
703
+ get loading(): boolean;
704
+ flatItems: (GanttGroupInternal | GanttItemInternal)[];
705
+ viewportItems: (GanttGroupInternal | GanttItemInternal)[];
706
+ private _loading;
707
+ private loadingTimer;
708
+ private rangeStart;
709
+ private rangeEnd;
710
+ private flatItemsMap;
711
+ private draggingItem;
712
+ constructor();
713
+ ngOnInit(): void;
714
+ computeRefs(): void;
715
+ setupItems(): void;
716
+ ngAfterViewInit(): void;
717
+ ngAfterViewChecked(): void;
718
+ private buildFlatItems;
719
+ private afterExpand;
720
+ private appendDraggingItemToViewportItems;
721
+ expandChildren(item: GanttItemInternal): void;
722
+ selectItem(selectEvent: GanttSelectedEvent): void;
723
+ scrollToToday(): void;
724
+ scrollToDate(date: number | Date | GanttDate): void;
725
+ scrolledIndexChange(index: number): void;
726
+ expandGroups(expanded: boolean): void;
727
+ expandGroup(group: GanttGroupInternal): void;
728
+ itemDragStarted(event: GanttTableDragStartedEvent): void;
729
+ itemDragEnded(event: GanttTableDragEndedEvent): void;
730
+ private initScrollContainerObserver;
731
+ ngOnDestroy(): void;
732
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttComponent, never>;
733
+ 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>;
734
+ }
735
+
736
+ interface GanttAbstractComponent {
737
+ table: NgxGanttTableComponent;
738
+ styles: GanttStyleOptions;
739
+ maxLevel: number;
740
+ async: boolean;
741
+ cdr: ChangeDetectorRef;
742
+ expandGroup(group: GanttGroupInternal): void;
743
+ expandChildren(item: GanttItemInternal): void;
744
+ }
745
+
746
+ declare class GanttTableHeaderComponent implements OnInit, OnDestroy {
747
+ private elementRef;
748
+ gantt: GanttAbstractComponent;
749
+ private cdr;
750
+ dragStartLeft: number;
751
+ tableWidth: number;
752
+ customWidth: number;
753
+ private unsubscribe$;
754
+ columns: QueryList<NgxGanttTableColumnComponent>;
755
+ resizeLineElementRef: ElementRef<HTMLElement>;
756
+ className: string;
757
+ get height(): string;
758
+ get lineHeight(): string;
759
+ constructor();
760
+ ngOnInit(): void;
761
+ private columnsChange;
762
+ private dragFixed;
763
+ onResizeStarted(event: CdkDragStart): void;
764
+ onResizeMoved(event: CdkDragMove, column?: NgxGanttTableColumnComponent): void;
765
+ onResizeEnded(event: CdkDragEnd, column: NgxGanttTableColumnComponent): void;
766
+ onOverallResizeEnded(event: CdkDragEnd): void;
767
+ private showAuxiliaryLine;
768
+ private hideAuxiliaryLine;
769
+ private getCalcWidth;
770
+ ngOnDestroy(): void;
771
+ static ɵfac: i0.ɵɵFactoryDeclaration<GanttTableHeaderComponent, never>;
772
+ static ɵcmp: i0.ɵɵComponentDeclaration<GanttTableHeaderComponent, "gantt-table-header", never, { "columns": { "alias": "columns"; "required": false; }; }, {}, never, never, true, never>;
773
+ }
774
+
775
+ declare class GanttTableBodyComponent implements OnInit, OnDestroy, AfterViewInit {
776
+ gantt: GanttAbstractComponent;
777
+ ganttUpper: GanttUpper;
778
+ private cdr;
779
+ private document;
780
+ protected elementRef: ElementRef<HTMLElement>;
781
+ private _viewportItems;
782
+ set viewportItems(data: (GanttGroupInternal | GanttItemInternal)[]);
783
+ get viewportItems(): (GanttGroupInternal | GanttItemInternal)[];
784
+ flatItems: (GanttGroupInternal | GanttItemInternal)[];
785
+ columns: QueryList<NgxGanttTableColumnComponent>;
786
+ groupTemplate: TemplateRef<any>;
787
+ emptyTemplate: TemplateRef<any>;
788
+ rowBeforeTemplate: TemplateRef<any>;
789
+ rowAfterTemplate: TemplateRef<any>;
790
+ draggable: boolean;
791
+ dropEnterPredicate?: (context: GanttTableDragEnterPredicateContext) => boolean;
792
+ dragDropped: EventEmitter<GanttTableDragDroppedEvent<unknown>>;
793
+ dragStarted: EventEmitter<GanttTableDragStartedEvent<unknown>>;
794
+ dragEnded: EventEmitter<GanttTableDragEndedEvent<unknown>>;
795
+ itemClick: EventEmitter<GanttSelectedEvent<unknown>>;
796
+ ganttTableClass: boolean;
797
+ ganttTableEmptyClass: boolean;
798
+ ganttTableDragging: boolean;
799
+ cdkDrags: QueryList<CdkDrag<GanttItemInternal>>;
800
+ hasGroup: boolean;
801
+ hasExpandIcon: boolean;
802
+ private itemDragsMap;
803
+ private itemDragMoved;
804
+ private itemDropTarget;
805
+ private destroy$;
806
+ constructor();
807
+ ngOnInit(): void;
808
+ ngAfterViewInit(): void;
809
+ expandGroup(group: GanttGroupInternal): void;
810
+ expandChildren(event: MouseEvent, item: GanttItemInternal): void;
811
+ onItemDragStarted(event: CdkDragStart<GanttItemInternal>): void;
812
+ emitItemDragMoved(event: CdkDragMove): void;
813
+ onItemDragMoved(event: CdkDragMove<GanttItemInternal>): void;
814
+ onItemDragEnded(event: CdkDragEnd<GanttItemInternal>): void;
815
+ onListDropped(event: CdkDragDrop<GanttItemInternal[], GanttItemInternal[], GanttItemInternal>): void;
816
+ trackBy(index: number, item: GanttGroupInternal | GanttItemInternal): string | number;
817
+ ngOnDestroy(): void;
818
+ private removeItem;
819
+ private insertItem;
820
+ private insertChildrenItem;
821
+ private getParentByItem;
822
+ private getExpandChildrenByDrag;
823
+ private getChildrenElementsByElement;
824
+ private getTargetPosition;
825
+ private showDropPositionPlaceholder;
826
+ private cleanupDragArtifacts;
827
+ static ɵfac: i0.ɵɵFactoryDeclaration<GanttTableBodyComponent, never>;
828
+ static ɵcmp: i0.ɵɵComponentDeclaration<GanttTableBodyComponent, "gantt-table-body", never, { "viewportItems": { "alias": "viewportItems"; "required": false; }; "flatItems": { "alias": "flatItems"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "groupTemplate": { "alias": "groupTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "rowBeforeTemplate": { "alias": "rowBeforeTemplate"; "required": false; }; "rowAfterTemplate": { "alias": "rowAfterTemplate"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "dropEnterPredicate": { "alias": "dropEnterPredicate"; "required": false; }; }, { "dragDropped": "dragDropped"; "dragStarted": "dragStarted"; "dragEnded": "dragEnded"; "itemClick": "itemClick"; }, never, never, true, never>;
829
+ }
830
+
831
+ declare enum ScrollDirection {
832
+ NONE = 0,
833
+ LEFT = 1,
834
+ RIGHT = 2
835
+ }
836
+ interface ScrollEvent {
837
+ target: Element;
838
+ direction: ScrollDirection;
839
+ }
840
+ declare class GanttDomService implements OnDestroy {
841
+ private ngZone;
842
+ private platformId;
843
+ root: Element;
844
+ side: Element;
845
+ container: Element;
846
+ sideContainer: Element;
847
+ mainContainer: Element;
848
+ verticalScrollContainer: Element;
849
+ calendarHeader: Element;
850
+ mainItems: Element;
851
+ calendarOverlay: Element;
852
+ linksOverlay: Element;
853
+ visibleRangeX: WritableSignal<{
854
+ min: number;
855
+ max: number;
856
+ }>;
857
+ private mainFooter;
858
+ private mainScrollbar;
859
+ private unsubscribe$;
860
+ constructor();
861
+ private disableBrowserWheelEvent;
862
+ initialize(root: ElementRef<HTMLElement>): void;
863
+ /**
864
+ * @returns An observable that will emit outside the Angular zone. Note, consumers should re-enter the Angular zone
865
+ * to run the change detection if needed.
866
+ */
867
+ getViewerScroll(options?: AddEventListenerOptions): Observable<ScrollEvent>;
868
+ getResize(): Observable<Event>;
869
+ getResizeByElement(element: Element): Observable<unknown>;
870
+ scrollMainContainer(left: number): void;
871
+ setVisibleRangeX(): void;
872
+ ngOnDestroy(): void;
873
+ static ɵfac: i0.ɵɵFactoryDeclaration<GanttDomService, never>;
874
+ static ɵprov: i0.ɵɵInjectableDeclaration<GanttDomService>;
875
+ }
876
+
877
+ declare class GanttMainComponent implements OnInit {
878
+ ganttUpper: GanttUpper;
879
+ dom: GanttDomService;
880
+ protected ngZone: NgZone;
881
+ viewportItems: (GanttGroupInternal | GanttItemInternal)[];
882
+ flatItems: (GanttGroupInternal | GanttItemInternal)[];
883
+ groupHeaderTemplate: TemplateRef<any>;
884
+ itemTemplate: TemplateRef<any>;
885
+ barTemplate: TemplateRef<any>;
886
+ rangeTemplate: TemplateRef<any>;
887
+ baselineTemplate: TemplateRef<any>;
888
+ ganttRoot: NgxGanttRootComponent;
889
+ quickTimeFocus: boolean;
890
+ barClick: EventEmitter<GanttBarClickEvent<unknown>>;
891
+ lineClick: EventEmitter<GanttLineClickEvent<unknown>>;
892
+ ganttMainClass: boolean;
893
+ private unsubscribe$;
894
+ constructor();
895
+ ngOnInit(): void;
896
+ toItemType(data: GanttItemInternal | GanttGroupInternal): GanttItemInternal;
897
+ trackBy(index: number, item: GanttGroupInternal | GanttItemInternal): string | number;
898
+ private setupResize;
899
+ quickTime(item: GanttItem, type: 'left' | 'right'): void;
900
+ static ɵfac: i0.ɵɵFactoryDeclaration<GanttMainComponent, never>;
901
+ static ɵcmp: i0.ɵɵComponentDeclaration<GanttMainComponent, "gantt-main", never, { "viewportItems": { "alias": "viewportItems"; "required": false; }; "flatItems": { "alias": "flatItems"; "required": false; }; "groupHeaderTemplate": { "alias": "groupHeaderTemplate"; "required": false; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; }; "barTemplate": { "alias": "barTemplate"; "required": false; }; "rangeTemplate": { "alias": "rangeTemplate"; "required": false; }; "baselineTemplate": { "alias": "baselineTemplate"; "required": false; }; "ganttRoot": { "alias": "ganttRoot"; "required": false; }; "quickTimeFocus": { "alias": "quickTimeFocus"; "required": false; }; }, { "barClick": "barClick"; "lineClick": "lineClick"; }, never, never, true, never>;
902
+ }
903
+
904
+ declare class GanttCalendarHeaderComponent implements OnInit {
905
+ ganttUpper: GanttUpper;
906
+ private ngZone;
907
+ private elementRef;
908
+ get view(): _worktile_gantt.GanttView;
909
+ private unsubscribe$;
910
+ viewTypes: typeof GanttViewType;
911
+ className: string;
912
+ get height(): string;
913
+ constructor();
914
+ ngOnInit(): void;
915
+ setTodayPoint(): void;
916
+ static ɵfac: i0.ɵɵFactoryDeclaration<GanttCalendarHeaderComponent, never>;
917
+ static ɵcmp: i0.ɵɵComponentDeclaration<GanttCalendarHeaderComponent, "gantt-calendar-header", never, {}, {}, never, never, true, never>;
918
+ }
919
+
920
+ declare class GanttCalendarGridComponent implements OnInit, OnDestroy {
921
+ ganttUpper: GanttUpper;
922
+ private ngZone;
923
+ private elementRef;
924
+ get view(): _worktile_gantt.GanttView;
925
+ private unsubscribe$;
926
+ mainHeight: number;
927
+ todayBorderRadius: number;
928
+ viewTypes: typeof GanttViewType;
929
+ className: string;
930
+ constructor();
931
+ setTodayPoint(): void;
932
+ ngOnInit(): void;
933
+ ngOnDestroy(): void;
934
+ static ɵfac: i0.ɵɵFactoryDeclaration<GanttCalendarGridComponent, never>;
935
+ static ɵcmp: i0.ɵɵComponentDeclaration<GanttCalendarGridComponent, "gantt-calendar-grid", never, {}, {}, never, never, true, never>;
936
+ }
937
+
938
+ declare class GanttLinksComponent implements OnInit, OnChanges, OnDestroy {
939
+ ganttUpper: GanttUpper;
940
+ private cdr;
941
+ private elementRef;
942
+ private ganttDragContainer;
943
+ private ngZone;
944
+ flatItems: (GanttGroupInternal | GanttItemInternal)[];
945
+ lineClick: EventEmitter<GanttLineClickEvent<unknown>>;
946
+ links: LinkInternal[];
947
+ ganttLinkTypes: typeof GanttLinkType;
948
+ showArrow: boolean;
949
+ private linkItems;
950
+ private firstChange;
951
+ private linkLine;
952
+ private unsubscribe$;
953
+ ganttLinksOverlay: boolean;
954
+ constructor();
955
+ ngOnInit(): void;
956
+ ngOnChanges(): void;
957
+ private computeItemPosition;
958
+ buildLinks(): void;
959
+ trackBy(index: number): number;
960
+ onLineClick(event: MouseEvent, link: LinkInternal): void;
961
+ mouseEnterPath(link: LinkInternal, index: number): void;
962
+ mouseLeavePath(link: LinkInternal): void;
963
+ ngOnDestroy(): void;
964
+ static ɵfac: i0.ɵɵFactoryDeclaration<GanttLinksComponent, never>;
965
+ static ɵcmp: i0.ɵɵComponentDeclaration<GanttLinksComponent, "gantt-links-overlay", never, { "flatItems": { "alias": "flatItems"; "required": false; }; }, { "lineClick": "lineClick"; }, never, never, true, never>;
966
+ }
967
+
968
+ declare class GanttLoaderComponent {
969
+ static ɵfac: i0.ɵɵFactoryDeclaration<GanttLoaderComponent, never>;
970
+ static ɵcmp: i0.ɵɵComponentDeclaration<GanttLoaderComponent, "gantt-loader", never, {}, {}, never, never, true, never>;
971
+ }
972
+
973
+ declare abstract class GanttItemUpper implements OnChanges, OnInit, OnDestroy {
974
+ protected elementRef: ElementRef<HTMLElement>;
975
+ protected ganttUpper: GanttUpper;
976
+ template: TemplateRef<any>;
977
+ item: GanttItemInternal;
978
+ firstChange: boolean;
979
+ unsubscribe$: Subject<void>;
980
+ refsUnsubscribe$: Subject<void>;
981
+ constructor();
982
+ ngOnInit(): void;
983
+ ngOnChanges(changes: SimpleChanges): void;
984
+ private itemChange;
985
+ private setPositions;
986
+ ngOnDestroy(): void;
987
+ static ɵfac: i0.ɵɵFactoryDeclaration<GanttItemUpper, never>;
988
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GanttItemUpper, never, never, { "template": { "alias": "template"; "required": false; }; "item": { "alias": "item"; "required": false; }; }, {}, never, never, true, never>;
989
+ }
990
+
991
+ declare class NgxGanttBarComponent extends GanttItemUpper implements OnInit, AfterViewInit, OnChanges, OnDestroy {
992
+ private dragContainer;
993
+ private drag;
994
+ ganttUpper: GanttUpper;
995
+ private ngZone;
996
+ barClick: EventEmitter<GanttBarClickEvent<unknown>>;
997
+ contentElementRef: ElementRef<HTMLDivElement>;
998
+ ganttItemClass: boolean;
999
+ handles: QueryList<ElementRef<HTMLElement>>;
1000
+ constructor();
1001
+ ngOnInit(): void;
1002
+ ngOnChanges(changes: SimpleChanges): void;
1003
+ ngAfterViewInit(): void;
1004
+ onBarClick(event: Event): void;
1005
+ private setContentBackground;
1006
+ stopPropagation(event: Event): void;
1007
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttBarComponent, never>;
1008
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttBarComponent, "ngx-gantt-bar,gantt-bar", never, {}, { "barClick": "barClick"; }, never, never, true, never>;
1009
+ }
1010
+
1011
+ declare class GanttIconComponent {
1012
+ private elementRef;
1013
+ isIcon: boolean;
1014
+ set iconName(name: string);
1015
+ constructor();
1016
+ setSvg(name: string): void;
1017
+ static ɵfac: i0.ɵɵFactoryDeclaration<GanttIconComponent, never>;
1018
+ static ɵcmp: i0.ɵɵComponentDeclaration<GanttIconComponent, "gantt-icon", never, { "iconName": { "alias": "iconName"; "required": false; }; }, {}, never, never, true, never>;
1019
+ }
1020
+
1021
+ declare class GanttDragBackdropComponent {
1022
+ ganttUpper: GanttUpper;
1023
+ constructor();
1024
+ static ɵfac: i0.ɵɵFactoryDeclaration<GanttDragBackdropComponent, never>;
1025
+ static ɵcmp: i0.ɵɵComponentDeclaration<GanttDragBackdropComponent, "gantt-drag-backdrop", never, {}, {}, never, never, true, never>;
1026
+ }
1027
+
1028
+ declare class NgxGanttRangeComponent extends GanttItemUpper {
1029
+ ganttRangeClass: boolean;
1030
+ constructor();
1031
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttRangeComponent, never>;
1032
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttRangeComponent, "ngx-gantt-range,gantt-range", never, {}, {}, never, never, true, never>;
1033
+ }
1034
+
1035
+ declare class NgxGanttBaselineComponent implements OnInit {
1036
+ private elementRef;
1037
+ ganttUpper: GanttUpper;
1038
+ baselineItem: GanttBaselineItemInternal;
1039
+ template: TemplateRef<any>;
1040
+ unsubscribe$: Subject<void>;
1041
+ ganttBaselineClass: boolean;
1042
+ constructor();
1043
+ ngOnInit(): void;
1044
+ private setPositions;
1045
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttBaselineComponent, never>;
1046
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttBaselineComponent, "ngx-gantt-baseline,gantt-baseline", never, { "baselineItem": { "alias": "baselineItem"; "required": false; }; "template": { "alias": "template"; "required": false; }; }, {}, never, never, true, never>;
1047
+ }
1048
+
1049
+ declare class NgxGanttToolbarComponent {
1050
+ protected ganttUpper: GanttUpper;
1051
+ template: TemplateRef<any>;
1052
+ ganttItemClass: boolean;
1053
+ get top(): string;
1054
+ views: Record<GanttViewType, {
1055
+ label: string;
1056
+ dateFormats: {
1057
+ primary?: string;
1058
+ secondary?: string;
1059
+ };
1060
+ }>;
1061
+ constructor();
1062
+ selectView(view: GanttViewType): void;
1063
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttToolbarComponent, never>;
1064
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttToolbarComponent, "ngx-gantt-toolbar,gantt-toolbar", never, { "template": { "alias": "template"; "required": false; }; }, {}, never, never, true, never>;
1065
+ }
1066
+
1067
+ declare class GanttScrollbarComponent {
1068
+ ganttUpper: GanttUpper;
1069
+ hasFooter: i0.InputSignal<boolean>;
1070
+ tableWidth: i0.InputSignal<number>;
1071
+ ganttRoot: i0.InputSignal<NgxGanttRootComponent>;
1072
+ tableScrollWidth: i0.InputSignal<number>;
1073
+ constructor();
1074
+ static ɵfac: i0.ɵɵFactoryDeclaration<GanttScrollbarComponent, never>;
1075
+ static ɵcmp: i0.ɵɵComponentDeclaration<GanttScrollbarComponent, "gantt-scrollbar", never, { "hasFooter": { "alias": "hasFooter"; "required": false; "isSignal": true; }; "tableWidth": { "alias": "tableWidth"; "required": false; "isSignal": true; }; "ganttRoot": { "alias": "ganttRoot"; "required": false; "isSignal": true; }; "tableScrollWidth": { "alias": "tableScrollWidth"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1076
+ }
1077
+
1078
+ declare class IsGanttRangeItemPipe implements PipeTransform {
1079
+ transform(value: GanttItemType): value is GanttItemType.range;
1080
+ static ɵfac: i0.ɵɵFactoryDeclaration<IsGanttRangeItemPipe, never>;
1081
+ static ɵpipe: i0.ɵɵPipeDeclaration<IsGanttRangeItemPipe, "isGanttRangeItem", true>;
1082
+ }
1083
+ declare class IsGanttBarItemPipe implements PipeTransform {
1084
+ transform(value: GanttItemType): value is GanttItemType.bar;
1085
+ static ɵfac: i0.ɵɵFactoryDeclaration<IsGanttBarItemPipe, never>;
1086
+ static ɵpipe: i0.ɵɵPipeDeclaration<IsGanttBarItemPipe, "isGanttBarItem", true>;
1087
+ }
1088
+ declare class IsGanttCustomItemPipe implements PipeTransform {
1089
+ transform(value: GanttItemType): value is GanttItemType.custom;
1090
+ static ɵfac: i0.ɵɵFactoryDeclaration<IsGanttCustomItemPipe, never>;
1091
+ static ɵpipe: i0.ɵɵPipeDeclaration<IsGanttCustomItemPipe, "isGanttCustomItem", true>;
1092
+ }
1093
+ declare class IsGanttGroupPipe implements PipeTransform {
1094
+ transform(data: GanttItemInternal | GanttGroupInternal): data is GanttGroupInternal;
1095
+ static ɵfac: i0.ɵɵFactoryDeclaration<IsGanttGroupPipe, never>;
1096
+ static ɵpipe: i0.ɵɵPipeDeclaration<IsGanttGroupPipe, "isGanttGroup", true>;
1097
+ }
1098
+
1099
+ declare class NgxGanttModule {
1100
+ constructor();
1101
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttModule, never>;
1102
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgxGanttModule, never, [typeof i1.CommonModule, typeof i2.DragDropModule, typeof i3.ScrollingModule, typeof NgxGanttComponent, typeof NgxGanttTableComponent, typeof NgxGanttTableColumnComponent, typeof GanttTableHeaderComponent, typeof GanttTableBodyComponent, typeof GanttMainComponent, typeof GanttCalendarHeaderComponent, typeof GanttCalendarGridComponent, typeof GanttLinksComponent, typeof GanttLoaderComponent, typeof NgxGanttBarComponent, typeof GanttIconComponent, typeof GanttDragBackdropComponent, typeof NgxGanttRangeComponent, typeof NgxGanttRootComponent, typeof NgxGanttBaselineComponent, typeof NgxGanttToolbarComponent, typeof GanttScrollbarComponent, typeof IsGanttRangeItemPipe, typeof IsGanttBarItemPipe, typeof IsGanttCustomItemPipe, typeof IsGanttGroupPipe], [typeof NgxGanttComponent, typeof NgxGanttTableComponent, typeof NgxGanttTableColumnComponent, typeof NgxGanttRootComponent, typeof NgxGanttBarComponent, typeof NgxGanttRangeComponent, typeof NgxGanttBaselineComponent, typeof NgxGanttToolbarComponent, typeof GanttCalendarHeaderComponent, typeof GanttCalendarGridComponent, typeof GanttDragBackdropComponent, typeof GanttScrollbarComponent]>;
1103
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgxGanttModule>;
1104
+ }
1105
+
1106
+ declare const _default$5: {
1107
+ id: GanttI18nLocale;
1108
+ views: {
1109
+ hour: {
1110
+ label: string;
1111
+ dateFormats: {
1112
+ primary: string;
1113
+ secondary: string;
1114
+ };
1115
+ };
1116
+ day: {
1117
+ label: string;
1118
+ dateFormats: {
1119
+ primary: string;
1120
+ secondary: string;
1121
+ };
1122
+ };
1123
+ week: {
1124
+ label: string;
1125
+ dateFormats: {
1126
+ primary: string;
1127
+ secondary: string;
1128
+ };
1129
+ };
1130
+ month: {
1131
+ label: string;
1132
+ dateFormats: {
1133
+ primary: string;
1134
+ secondary: string;
1135
+ };
1136
+ };
1137
+ quarter: {
1138
+ label: string;
1139
+ dateFormats: {
1140
+ primary: string;
1141
+ secondary: string;
1142
+ };
1143
+ };
1144
+ year: {
1145
+ label: string;
1146
+ dateFormats: {
1147
+ secondary: string;
1148
+ };
1149
+ };
1150
+ };
1151
+ };
1152
+
1153
+ declare const _default$4: {
1154
+ id: GanttI18nLocale;
1155
+ views: {
1156
+ hour: {
1157
+ label: string;
1158
+ dateFormats: {
1159
+ primary: string;
1160
+ secondary: string;
1161
+ };
1162
+ };
1163
+ day: {
1164
+ label: string;
1165
+ dateFormats: {
1166
+ primary: string;
1167
+ secondary: string;
1168
+ };
1169
+ };
1170
+ week: {
1171
+ label: string;
1172
+ dateFormats: {
1173
+ primary: string;
1174
+ secondary: string;
1175
+ };
1176
+ };
1177
+ month: {
1178
+ label: string;
1179
+ dateFormats: {
1180
+ primary: string;
1181
+ secondary: string;
1182
+ };
1183
+ };
1184
+ quarter: {
1185
+ label: string;
1186
+ dateFormats: {
1187
+ primary: string;
1188
+ secondary: string;
1189
+ };
1190
+ };
1191
+ year: {
1192
+ label: string;
1193
+ dateFormats: {
1194
+ secondary: string;
1195
+ };
1196
+ };
1197
+ };
1198
+ };
1199
+
1200
+ declare const _default$3: {
1201
+ id: GanttI18nLocale;
1202
+ views: {
1203
+ hour: {
1204
+ label: string;
1205
+ dateFormats: {
1206
+ primary: string;
1207
+ secondary: string;
1208
+ };
1209
+ };
1210
+ day: {
1211
+ label: string;
1212
+ dateFormats: {
1213
+ primary: string;
1214
+ secondary: string;
1215
+ };
1216
+ };
1217
+ week: {
1218
+ label: string;
1219
+ dateFormats: {
1220
+ primary: string;
1221
+ secondary: string;
1222
+ };
1223
+ };
1224
+ month: {
1225
+ label: string;
1226
+ dateFormats: {
1227
+ primary: string;
1228
+ secondary: string;
1229
+ };
1230
+ };
1231
+ quarter: {
1232
+ label: string;
1233
+ dateFormats: {
1234
+ primary: string;
1235
+ secondary: string;
1236
+ };
1237
+ };
1238
+ year: {
1239
+ label: string;
1240
+ dateFormats: {
1241
+ secondary: string;
1242
+ };
1243
+ };
1244
+ };
1245
+ };
1246
+
1247
+ declare const _default$2: {
1248
+ id: GanttI18nLocale;
1249
+ views: {
1250
+ hour: {
1251
+ label: string;
1252
+ dateFormats: {
1253
+ primary: string;
1254
+ secondary: string;
1255
+ };
1256
+ };
1257
+ day: {
1258
+ label: string;
1259
+ dateFormats: {
1260
+ primary: string;
1261
+ secondary: string;
1262
+ };
1263
+ };
1264
+ week: {
1265
+ label: string;
1266
+ dateFormats: {
1267
+ primary: string;
1268
+ secondary: string;
1269
+ };
1270
+ };
1271
+ month: {
1272
+ label: string;
1273
+ dateFormats: {
1274
+ primary: string;
1275
+ secondary: string;
1276
+ };
1277
+ };
1278
+ quarter: {
1279
+ label: string;
1280
+ dateFormats: {
1281
+ primary: string;
1282
+ secondary: string;
1283
+ };
1284
+ };
1285
+ year: {
1286
+ label: string;
1287
+ dateFormats: {
1288
+ secondary: string;
1289
+ };
1290
+ };
1291
+ };
1292
+ };
1293
+
1294
+ declare const _default$1: {
1295
+ id: GanttI18nLocale;
1296
+ dateLocale: date_fns.Locale;
1297
+ views: {
1298
+ hour: {
1299
+ label: string;
1300
+ dateFormats: {
1301
+ primary: string;
1302
+ secondary: string;
1303
+ };
1304
+ };
1305
+ day: {
1306
+ label: string;
1307
+ dateFormats: {
1308
+ primary: string;
1309
+ secondary: string;
1310
+ };
1311
+ };
1312
+ week: {
1313
+ label: string;
1314
+ dateFormats: {
1315
+ primary: string;
1316
+ secondary: string;
1317
+ };
1318
+ };
1319
+ month: {
1320
+ label: string;
1321
+ dateFormats: {
1322
+ primary: string;
1323
+ secondary: string;
1324
+ };
1325
+ };
1326
+ quarter: {
1327
+ label: string;
1328
+ dateFormats: {
1329
+ primary: string;
1330
+ secondary: string;
1331
+ };
1332
+ };
1333
+ year: {
1334
+ label: string;
1335
+ dateFormats: {
1336
+ secondary: string;
1337
+ };
1338
+ };
1339
+ };
1340
+ };
1341
+
1342
+ declare const _default: {
1343
+ id: GanttI18nLocale;
1344
+ dateLocale: date_fns.Locale;
1345
+ views: {
1346
+ hour: {
1347
+ label: string;
1348
+ dateFormats: {
1349
+ primary: string;
1350
+ secondary: string;
1351
+ };
1352
+ };
1353
+ day: {
1354
+ label: string;
1355
+ dateFormats: {
1356
+ primary: string;
1357
+ secondary: string;
1358
+ };
1359
+ };
1360
+ week: {
1361
+ label: string;
1362
+ dateFormats: {
1363
+ primary: string;
1364
+ secondary: string;
1365
+ };
1366
+ };
1367
+ month: {
1368
+ label: string;
1369
+ dateFormats: {
1370
+ primary: string;
1371
+ secondary: string;
1372
+ };
1373
+ };
1374
+ quarter: {
1375
+ label: string;
1376
+ dateFormats: {
1377
+ primary: string;
1378
+ secondary: string;
1379
+ };
1380
+ };
1381
+ year: {
1382
+ label: string;
1383
+ dateFormats: {
1384
+ secondary: string;
1385
+ };
1386
+ };
1387
+ };
1388
+ };
1389
+
1390
+ declare function registerView<T extends typeof GanttView>(type: string, view: T): void;
1391
+
1392
+ declare class GanttPrintService {
1393
+ private root;
1394
+ private mainContainer;
1395
+ constructor();
1396
+ private setInlineStyles;
1397
+ private recursElementChildren;
1398
+ register(root: ElementRef<HTMLElement>): void;
1399
+ print(name?: string, ignoreElementClass?: string): Promise<void>;
1400
+ static ɵfac: i0.ɵɵFactoryDeclaration<GanttPrintService, never>;
1401
+ static ɵprov: i0.ɵɵInjectableDeclaration<GanttPrintService>;
1402
+ }
1403
+
1404
+ export { GANTT_GLOBAL_CONFIG, GANTT_I18N_LOCALE_TOKEN, GANTT_UPPER_TOKEN, GanttBarClickEvent, GanttBaselineItemInternal, GanttCalendarGridComponent, GanttCalendarHeaderComponent, GanttConfigService, GanttDate, GanttDatePoint, GanttDragBackdropComponent, GanttDragEvent, GanttGroupInternal, GanttI18nLocale, GanttItemInternal, GanttItemType, GanttItemUpper, GanttLineClickEvent, GanttLinkDragEvent, GanttLinkLineType, GanttLinkType, GanttLoadOnScrollEvent, GanttLoaderComponent, GanttPrintService, GanttScrollbarComponent, GanttSelectedEvent, GanttTableDragDroppedEvent, GanttTableDragEndedEvent, GanttTableDragEnterPredicateContext, GanttTableDragStartedEvent, GanttTableEvent, GanttTableItemClickEvent, GanttUpper, GanttView, GanttViewType, GanttVirtualScrolledIndexChangeEvent, IsGanttBarItemPipe, IsGanttCustomItemPipe, IsGanttGroupPipe, IsGanttRangeItemPipe, LinkColors, NgxGanttBarComponent, NgxGanttBaselineComponent, NgxGanttComponent, NgxGanttModule, NgxGanttRangeComponent, NgxGanttRootComponent, NgxGanttTableColumnComponent, NgxGanttTableComponent, NgxGanttToolbarComponent, _default$1 as deDeLocale, defaultConfig, _default$3 as enUsLocale, getDefaultTimeZone, _default$2 as jaJpLocale, primaryDatePointTop, registerView, _default as ruRuLocale, secondaryDatePointTop, setDefaultTimeZone, _default$5 as zhHansLocale, _default$4 as zhHantLocale };
1405
+ export type { GanttBaselineItem, GanttDateFormat, GanttDateOptions, GanttDateUtil, GanttGlobalConfig, GanttGroup, GanttI18nLocaleConfig, GanttItem, GanttItemRefs, GanttLink, GanttLinkItem, GanttLinkOptions, GanttStyleOptions, GanttTableDropPosition, GanttToolbarOptions, GanttViewDate, GanttViewOptions, LinkInternal };