import * as date_fns from 'date-fns'; import { Locale, FirstWeekContainsDate } from 'date-fns'; 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'; import * as _angular_core from '@angular/core'; import { EventEmitter, InjectionToken, TemplateRef, OnInit, OnDestroy, ElementRef, ChangeDetectorRef, NgZone, Signal, OutputEmitterRef, WritableSignal, AfterViewInit, QueryList, PipeTransform } from '@angular/core'; import { SelectionModel } from '@angular/cdk/collections'; import { BehaviorSubject, Subject, Observable } from 'rxjs'; import * as _worktile_gantt from '@worktile/gantt'; import * as i3 from '@angular/cdk/scrolling'; import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling'; import * as i1 from '@angular/common'; import * as i2 from '@angular/cdk/drag-drop'; import { CdkDragStart, CdkDragMove, CdkDragEnd, CdkDrag, CdkDragDrop } from '@angular/cdk/drag-drop'; type GanttDateUtil = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'; declare function setDefaultTimeZone(zone: string): void; declare function getDefaultTimeZone(): string; declare class GanttDate { value: Date; constructor(date?: Date | string | number); getYear(): number; getMonth(): number; getDay(): number; getTime(): number; getDate(): number; getHours(): number; getMinutes(): number; getSeconds(): number; getMilliseconds(): number; getWeek(options?: { locale?: Locale; weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6; }): number; getDaysInMonth(): number; getDaysInQuarter(): number; getDaysInYear(): number; setDate(dayOfMonth: number): GanttDate; clone(): GanttDate; add(amount: number, unit?: GanttDateUtil): GanttDate; addSeconds(amount: number): GanttDate; addMinutes(amount: number): GanttDate; addHours(amount: number): GanttDate; addDays(amount: number): GanttDate; addWeeks(amount: number): GanttDate; addMonths(amount: number): GanttDate; addQuarters(amount: number): GanttDate; addYears(amount: number): GanttDate; startOfMinute(): GanttDate; startOfHour(): GanttDate; startOfDay(): GanttDate; startOfWeek(options?: { locale?: Locale; weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6; }): GanttDate; startOfMonth(): GanttDate; startOfQuarter(): GanttDate; startOfYear(): GanttDate; endOfMinute(): GanttDate; endOfHour(): GanttDate; endOfDay(): GanttDate; endOfWeek(options?: { locale?: Locale; weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6; }): GanttDate; endOfMonth(): GanttDate; endOfQuarter(): GanttDate; endOfYear(): GanttDate; getUnixTime(): number; format(mat: string, options?: { locale?: Locale; weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6; firstWeekContainsDate?: FirstWeekContainsDate; useAdditionalWeekYearTokens?: boolean; useAdditionalDayOfYearTokens?: boolean; }): string; isWeekend(): boolean; isToday(): boolean; } interface GanttViewTickSchema { date: GanttDate; rect: { x: number; width: number; background?: string; }; label: { text: string; y: number | string; x?: number; style?: { color?: string; fontSize?: number | string; fontWeight?: string | number; }; }; metadata?: { isWeekend?: boolean; isToday?: boolean; [key: string]: any; }; } declare class GanttViewTick { private schema; constructor(schema: GanttViewTickSchema); get date(): GanttDate; get rect(): GanttViewTickSchema['rect']; get label(): GanttViewTickSchema['label']; get metadata(): GanttViewTickSchema['metadata']; } declare enum GanttLinkType { fs = 1, ff = 2, ss = 3, sf = 4 } declare enum GanttLinkLineType { curve = "curve", straight = "straight" } interface GanttLink { type: GanttLinkType; link: string; color?: { default: string; active?: string; } | string; } interface GanttLinkItem { id: string; before: { x: number; y: number; }; after: { x: number; y: number; }; start: GanttDate; end: GanttDate; origin: GanttItem; links: GanttLink[]; } interface LinkInternal { path: string; source: GanttItem; target: GanttItem; type: GanttLinkType; color: string; defaultColor?: string; activeColor?: string; } interface GanttLinkOptions { dependencyTypes?: GanttLinkType[]; showArrow?: boolean; lineType?: GanttLinkLineType; } declare enum GanttViewType { day = "day", quarter = "quarter", month = "month", year = "year", week = "week", hour = "hour" } declare const PERIOD_TICK_TOP = "40%"; declare const UNIT_TICK_TOP = "80%"; interface GanttViewDate { date: GanttDate; isCustom?: boolean; } interface GanttViewOptions { start?: GanttDate; end?: GanttDate; minBoundary?: GanttDate; maxBoundary?: GanttDate; unitWidth?: number; loadDuration?: { amount: number; unit: GanttDateUtil; }; tickFormats?: { period: string; unit: string; }; precisionUnit?: 'day' | 'hour' | 'minute'; dragTooltipFormat?: string; holiday?: { isHoliday: (GanttDate: any) => boolean; hideHoliday: boolean; }; [key: string]: any; } declare abstract class GanttView { viewType: GanttViewType | string; start$: BehaviorSubject; end$: BehaviorSubject; get start(): GanttDate; get end(): GanttDate; periodTicks: GanttViewTick[]; unitTicks: GanttViewTick[]; width: number; unitWidth: number; periodWidth: number; showNowIndicator: boolean; options: GanttViewOptions; constructor(start: GanttViewDate, end: GanttViewDate, options: GanttViewOptions); abstract rangeStartOf(date: GanttDate): GanttDate; abstract rangeEndOf(date: GanttDate): GanttDate; abstract getPeriodWidth(): number; abstract getDayWidth(date: GanttDate): number; abstract getPeriodTicks(): GanttViewTick[]; abstract getUnitTicks(): GanttViewTick[]; protected hideHoliday(date: GanttDate): boolean; protected recomputeLayout(): void; alignToPrecisionStart(date: GanttDate): GanttDate; alignToPrecisionEnd(date: GanttDate): GanttDate; calculateIntervalWidth(start: GanttDate, end: GanttDate): number; extendStart(): { start: GanttDate; end: GanttDate; } | null; extendEnd(): { start: GanttDate; end: GanttDate; } | null; /** * 获取横向滚动加载的时间跨度配置 */ private getLoadDuration; updateDate(start: GanttDate, end: GanttDate): void; getWidth(): number; getUnitWidth(): number; getNowX(): number; getXAtDate(date: GanttDate): number; getDateAtX(x: number): GanttDate; calculateRangeWidth(start: GanttDate, end: GanttDate): number; getPrecisionUnitWidth(date: GanttDate): number; getVisibleDateIndexOffset(start: GanttDate, end: GanttDate): number; getDateByIndexOffset(baseDate: GanttDate, indexOffset: number): GanttDate; } interface GanttItemRefs { width: number; x: number; y: number; } declare enum GanttItemType { bar = "bar", range = "range", custom = "custom" } interface GanttItem { id: string; title: string; start?: number | Date; end?: number | Date; group_id?: string; links?: (GanttLink | string)[]; draggable?: boolean; itemDraggable?: boolean; linkable?: boolean; expandable?: boolean; expanded?: boolean; children?: GanttItem[]; color?: string; barStyle?: Partial; laneStyle?: Partial; origin?: T; type?: GanttItemType; progress?: number; } declare class GanttItemInternal { private view?; id: string; title: string; start: GanttDate | null; end: GanttDate | null; links: GanttLink[]; color?: string; barStyle?: Partial; laneStyle?: Partial; draggable?: boolean; itemDraggable?: boolean; linkable?: boolean; origin: GanttItem; expandable?: boolean; expanded?: boolean; loading: boolean; children: GanttItemInternal[]; type?: GanttItemType; progress?: number; viewType?: GanttViewType; level: number; get refs(): { width: number; x: number; y: number; }; refs$: BehaviorSubject<{ width: number; x: number; y: number; }>; constructor(item: GanttItem, level: number, view?: GanttView); private fillDateWhenStartOrEndIsNil; updateRefs(refs: GanttItemRefs): void; updateDate(start: GanttDate, end: GanttDate): void; updateLevel(level: number): void; addChildren(items: GanttItem[]): void; setExpand(expanded: boolean): void; addLink(link: GanttLink): void; } interface GanttBaselineItem { id: string; start?: number; end?: number; } declare class GanttBaselineItemInternal { id: string; start: GanttDate; end: GanttDate; origin: GanttBaselineItem; get refs(): { width: number; x: number; y: number; }; refs$: BehaviorSubject<{ width: number; x: number; y: number; }>; constructor(item: GanttBaselineItem); updateRefs(refs: GanttItemRefs): void; } declare enum InBarPosition { start = "start", finish = "finish" } type LinkDragPosition = { element: HTMLElement; item: GanttItemInternal; pos?: InBarPosition; }; interface LinkDragPath { from?: LinkDragPosition; to?: LinkDragPosition; } declare class GanttDragContainer { ganttUpper: GanttUpper; dragStarted: EventEmitter>; dragMoved: EventEmitter>; dragEnded: EventEmitter>; linkDragStarted: EventEmitter>; linkDragEntered: EventEmitter>; linkDragEnded: EventEmitter>; linkDraggingId: string; linkDragPath: LinkDragPath; constructor(); emitLinkDragStarted(from: LinkDragPosition): void; emitLinkDragEntered(to: LinkDragPosition): void; emitLinkDragLeaved(): void; emitLinkDragEnded(to?: LinkDragPosition): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } declare enum GanttI18nLocale { zhHans = "zh-hans", zhHant = "zh-hant", enUs = "en-us", deDe = "de-de", jaJp = "ja-jp", ruRu = "ru-ru" } type GanttI18nLocaleConfig = { id: GanttI18nLocale | string; dateLocale?: Locale; views: Record; }; declare const GANTT_I18N_LOCALE_TOKEN: InjectionToken; interface GanttDateOptions { timeZone?: string; weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6; } interface GanttStyleOptions { primaryColor?: string; headerHeight?: number; /** @deprecated use rowHeight instead */ lineHeight?: number; rowHeight?: number; barHeight?: number; defaultTheme?: string; themes?: Record; } interface GanttGlobalConfig { locale?: GanttI18nLocale | string; dateOptions?: GanttDateOptions; linkOptions?: GanttLinkOptions; styleOptions?: GanttStyleOptions; } declare const defaultConfig: GanttGlobalConfig; declare const GANTT_GLOBAL_CONFIG: InjectionToken; declare class GanttConfigService { config: GanttGlobalConfig; private i18nLocales; constructor(); mergeStyleOptions(options: GanttStyleOptions): GanttStyleOptions; setLocale(locale: string): void; private getLocaleConfig; getViewsLocale(): GanttI18nLocaleConfig['views']; getDateLocale(): date_fns.Locale; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } declare class NgxGanttTableComponent { readonly draggable: _angular_core.InputSignal; readonly maxWidth: _angular_core.InputSignal; readonly width: _angular_core.InputSignal; readonly dropEnterPredicate: _angular_core.InputSignal<(context: GanttTableDragEnterPredicateContext) => boolean>; readonly dragDropped: _angular_core.OutputEmitterRef>; readonly dragStarted: _angular_core.OutputEmitterRef>; readonly dragEnded: _angular_core.OutputEmitterRef>; readonly columnChanges: _angular_core.OutputEmitterRef; readonly resizeChange: _angular_core.OutputEmitterRef; readonly itemClick: _angular_core.OutputEmitterRef>; readonly rowBeforeTemplate: _angular_core.Signal>; readonly rowAfterTemplate: _angular_core.Signal>; readonly tableEmptyTemplate: _angular_core.Signal>; readonly tableFooterTemplate: _angular_core.Signal>; readonly settingsSlot: _angular_core.Signal>; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } interface Dictionary { [key: string]: T; } declare abstract class GanttUpper implements OnInit, OnDestroy { protected elementRef: ElementRef; protected cdr: ChangeDetectorRef; protected ngZone: NgZone; protected config: GanttGlobalConfig; readonly originItems: _angular_core.InputSignal[]>; readonly originGroups: _angular_core.InputSignal[]>; readonly originBaselineItems: _angular_core.InputSignal; readonly viewType: _angular_core.ModelSignal; readonly start: _angular_core.InputSignal; readonly end: _angular_core.InputSignal; readonly showTodayLine: _angular_core.InputSignal; readonly draggable: _angular_core.InputSignal; readonly originStyles: _angular_core.InputSignal; readonly styles: Signal; readonly showToolbar: _angular_core.InputSignal; readonly toolbarOptions: _angular_core.InputSignal; readonly viewOptions: _angular_core.InputSignal; readonly inputLinkOptions: _angular_core.InputSignal; readonly linkOptions: Signal; readonly disabledLoadOnScroll: _angular_core.InputSignal; readonly selectable: _angular_core.InputSignalWithTransform; readonly multiple: _angular_core.InputSignalWithTransform; readonly quickTimeFocus: _angular_core.InputSignal; readonly loadOnScroll: OutputEmitterRef; readonly dragStarted: OutputEmitterRef>; readonly dragMoved: OutputEmitterRef>; readonly dragEnded: OutputEmitterRef>; readonly barClick: OutputEmitterRef>; readonly viewChange: OutputEmitterRef; readonly expandChange: OutputEmitterRef; readonly barTemplate: Signal>; readonly rangeTemplate: Signal>; readonly itemTemplate: Signal>; readonly baselineTemplate: Signal>; readonly groupTemplate: Signal>; readonly groupHeaderTemplate: Signal>; readonly toolbarTemplate: Signal>; readonly disableLoadOnScroll: _angular_core.WritableSignal; readonly previousViewType: _angular_core.WritableSignal; readonly previousViewOptions: _angular_core.WritableSignal; configService: GanttConfigService; linkable: Signal; linkDragEnded?: OutputEmitterRef; view: GanttView; items: GanttItemInternal[]; groups: GanttGroupInternal[]; baselineItems: GanttBaselineItemInternal[]; baselineItemsMap: Dictionary; get element(): HTMLElement; dragContainer: GanttDragContainer; unsubscribe$: Subject; selectionModel: SelectionModel; table?: Signal; private groupsMap; protected isEffectFinished: _angular_core.WritableSignal; colors: Signal<{ primary?: string; danger?: string; highlight?: string; background?: string; text?: { main?: string; muted?: string; light?: string; inverse?: string; }; gray?: { 100?: string; 200?: string; 300?: string; 400?: string; 500?: string; 600?: string; }; }>; ganttClass: boolean; constructor(); private createView; private setupGroups; protected setupItems(): void; private setupBaselineItems; private setupExpandedState; private getViewDate; computeRefs(): void; private initSelectionModel; expandGroups(expanded: boolean): void; ngOnInit(): void; ngOnDestroy(): void; computeItemsRefs(...items: GanttItemInternal[] | GanttBaselineItemInternal[]): void; trackBy(index: number, item: GanttGroupInternal | GanttItemInternal): string | number; detectChanges(): void; expandGroup(group: GanttGroupInternal): void; expandAll(): void; collapseAll(): void; getGanttItem(id: string): GanttItemInternal; getGanttItems(ids: string[]): GanttItemInternal[]; isSelected(id: string): boolean; changeView(): void; rerenderView(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } declare const GANTT_UPPER_TOKEN: InjectionToken; declare class NgxGanttTableColumnComponent { ganttUpper: GanttUpper; private elementRef; readonly width: _angular_core.InputSignal; readonly columnWidth: WritableSignal; readonly name: _angular_core.InputSignal; readonly showExpandIcon: _angular_core.InputSignal; readonly templateRef: Signal>; readonly headerTemplateRef: Signal>; constructor(); get classList(): DOMTokenList; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class GanttDragEvent { item: GanttItem; } declare class GanttTableEvent { columns: ReadonlyArray; } declare class GanttLinkDragEvent { source: GanttItem; target?: GanttItem; type?: GanttLinkType; } declare class GanttLoadOnScrollEvent { start: number; end: number; } declare class GanttLineClickEvent { event: MouseEvent; source: GanttItem; target: GanttItem; } declare class GanttBarClickEvent { event: Event; item: GanttItem; } declare class GanttTableItemClickEvent { event: Event; current?: GanttItem; } declare class GanttSelectedEvent extends GanttTableItemClickEvent { selectedValue: GanttItem | GanttItem[]; } declare class GanttTableDragDroppedEvent { source: GanttItem; sourceParent: GanttItem; target: GanttItem; targetParent: GanttItem; dropPosition: GanttTableDropPosition; } declare class GanttTableDragStartedEvent { source: GanttItem; sourceParent: GanttItem; } declare class GanttTableDragEndedEvent { source: GanttItem; sourceParent: GanttItem; } type GanttTableDropPosition = 'before' | 'inside' | 'after'; declare class GanttTableDragEnterPredicateContext { source: GanttItem; target: GanttItem; dropPosition: GanttTableDropPosition; } declare class GanttVirtualScrolledIndexChangeEvent { index: number; renderedRange: { start: number; end: number; }; count: number; } interface GanttGroup { id: string; title: string; expanded?: boolean; origin?: T; class?: string; } declare class GanttGroupInternal { id: string; title: string; origin: GanttGroup; items: GanttItemInternal[]; mergedItems: GanttItemInternal[][]; expanded?: boolean; refs?: { height?: number; }; class?: string; constructor(group: GanttGroup); setExpand(expanded: boolean): void; } interface GanttToolbarOptions { viewTypes?: GanttViewType[]; } declare abstract class GanttItemUpper implements OnDestroy { protected elementRef: ElementRef; protected ganttUpper: GanttUpper; readonly template: _angular_core.InputSignal>; readonly item: _angular_core.InputSignal; firstChange: boolean; unsubscribe$: Subject; refsUnsubscribe$: Subject; constructor(); private itemChange; private setPositions; ngOnDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } declare class NgxGanttBarComponent extends GanttItemUpper implements OnInit, AfterViewInit, OnDestroy { private dragContainer; private drag; private ngZone; ganttUpper: GanttUpper; readonly barClick: _angular_core.OutputEmitterRef>; readonly contentElementRef: Signal>; readonly previousItem: Signal; ganttItemClass: boolean; handles: QueryList>; constructor(); ngOnInit(): void; ngAfterViewInit(): void; onBarClick(event: Event): void; private setContentBackground; stopPropagation(event: Event): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class NgxGanttPlaceholderComponent extends GanttItemUpper { constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class NgxGanttBaselineComponent implements OnInit { private elementRef; ganttUpper: GanttUpper; readonly baselineItem: _angular_core.InputSignal; readonly template: _angular_core.InputSignal>; unsubscribe$: Subject; ganttBaselineClass: boolean; constructor(); ngOnInit(): void; private setPositions; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class GanttCalendarGridComponent implements OnDestroy { ganttUpper: GanttUpper; private elementRef; get view(): _worktile_gantt.GanttView; private unsubscribe$; mainHeight: number; todayBorderRadius: number; viewTypes: typeof GanttViewType; className: string; constructor(); setTodayPoint(): void; ngOnDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class GanttCalendarHeaderComponent implements OnInit { ganttUpper: GanttUpper; private elementRef; get view(): _worktile_gantt.GanttView; private unsubscribe$; viewTypes: typeof GanttViewType; className: string; constructor(); ngOnInit(): void; setTodayPoint(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class GanttDragBackdropComponent { ganttUpper: GanttUpper; constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class GanttLoaderComponent { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class NgxGanttRangeComponent extends GanttItemUpper { ganttRangeClass: boolean; constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class NgxGanttRootComponent implements OnDestroy { private elementRef; private ngZone; private dom; dragContainer: GanttDragContainer; ganttUpper: GanttUpper; private printService; private cdr; readonly sideWidth: _angular_core.InputSignal; readonly sideTemplate: _angular_core.Signal>; readonly mainTemplate: _angular_core.Signal>; /** The native `` element. */ readonly backdrop: _angular_core.Signal>; verticalScrollbarWidth: number; horizontalScrollbarHeight: number; private unsubscribe$; private get view(); onWindowResize(): void; constructor(); computeScrollBarOffset(): void; ngOnDestroy(): void; private setupViewScroll; private setupResize; private setupScrollClass; scrollToToday(): void; scrollToDate(date: number | Date | GanttDate): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class GanttScrollbarComponent { ganttUpper: GanttUpper; hasFooter: _angular_core.InputSignal; tableWidth: _angular_core.InputSignal; ganttRoot: _angular_core.InputSignal; tableScrollWidth: _angular_core.InputSignal; constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class NgxGanttToolbarComponent { protected ganttUpper: GanttUpper; readonly template: _angular_core.InputSignal>; ganttItemClass: boolean; views: Record; constructor(); selectView(view: GanttViewType): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class GanttSyncScrollXDirective implements OnInit, OnDestroy { readonly syncScrollX: _angular_core.InputSignal; private elementRef; private syncScrollService; constructor(); ngOnInit(): void; ngOnDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } declare class GanttSyncScrollYDirective implements OnInit, OnDestroy { readonly syncScrollY: _angular_core.InputSignal; private syncScrollService; private elementRef; constructor(); ngOnInit(): void; ngOnDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } declare class GanttPrintService { private root; private mainContainer; constructor(); private setInlineStyles; private recursElementChildren; register(root: ElementRef): void; html2canvas(ignoreElementClass?: string): Promise; print(name?: string, ignoreElementClass?: string): Promise; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } declare class GanttSyncScrollService { private ngZone; private scrollGroupsMap; constructor(); registerScrollEvent(groupName: string, element: HTMLElement, direction: 'x' | 'y'): void; unregisterScrollEvent(groupName: string, element: HTMLElement): void; private monitorScrollChange; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } declare class NgxGanttComponent extends GanttUpper implements OnInit, AfterViewInit { private viewportRuler; readonly maxLevel: _angular_core.InputSignal; readonly async: _angular_core.InputSignal; readonly childrenResolve: _angular_core.InputSignal<(GanttItem: any) => Observable>; readonly linkable: _angular_core.InputSignal; readonly loading: _angular_core.InputSignal; readonly virtualScrollEnabled: _angular_core.InputSignal; readonly loadingDelay: _angular_core.InputSignal; readonly linkDragStarted: _angular_core.OutputEmitterRef>; readonly linkDragEnded: _angular_core.OutputEmitterRef>; readonly lineClick: _angular_core.OutputEmitterRef>; readonly selectedChange: _angular_core.OutputEmitterRef>; readonly virtualScrolledIndexChange: _angular_core.OutputEmitterRef; readonly table: _angular_core.Signal; readonly columns: _angular_core.Signal; readonly ganttRoot: _angular_core.Signal; readonly footerTemplate: _angular_core.Signal>; readonly virtualScroll: _angular_core.Signal; readonly ganttTableBody: _angular_core.Signal>; realLoading: boolean; tableScrollWidth: _angular_core.WritableSignal; private resizeObserver; flatItems: (GanttGroupInternal | GanttItemInternal)[]; viewportItems: (GanttGroupInternal | GanttItemInternal)[]; private loadingTimer; private rangeStart; private rangeEnd; private flatItemsMap; private draggingItem; constructor(); ngOnInit(): void; computeRefs(): void; setupItems(): void; ngAfterViewInit(): void; private buildFlatItems; private afterExpand; private appendDraggingItemToViewportItems; expandChildren(item: GanttItemInternal): void; selectItem(selectEvent: GanttSelectedEvent): void; scrollToToday(): void; scrollToDate(date: number | Date | GanttDate): void; scrolledIndexChange(index: number): void; expandGroups(expanded: boolean): void; expandGroup(group: GanttGroupInternal): void; itemDragStarted(event: GanttTableDragStartedEvent): void; itemDragEnded(event: GanttTableDragEndedEvent): void; private initScrollContainerObserver; ngOnDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } interface GanttAbstractComponent { table: Signal; styles: Signal; maxLevel: Signal; async: Signal; cdr: ChangeDetectorRef; expandGroup(group: GanttGroupInternal): void; expandChildren(item: GanttItemInternal): void; } declare class GanttTableHeaderComponent { private elementRef; gantt: GanttAbstractComponent; dragStartLeft: number; tableWidth: number; customWidth: number; private columnsLayoutInitialized; readonly columns: _angular_core.InputSignal; readonly resizeLineElementRef: _angular_core.Signal>; className: string; constructor(); private columnsChange; private dragFixed; onResizeStarted(event: CdkDragStart): void; onResizeMoved(event: CdkDragMove, column?: NgxGanttTableColumnComponent): void; onResizeEnded(event: CdkDragEnd, column: NgxGanttTableColumnComponent): void; onOverallResizeEnded(event: CdkDragEnd): void; private showAuxiliaryLine; private hideAuxiliaryLine; private getCalcWidth; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class GanttTableBodyComponent implements OnDestroy, AfterViewInit { gantt: GanttAbstractComponent; ganttUpper: GanttUpper; private document; protected elementRef: ElementRef; readonly viewportItems: _angular_core.InputSignal<(GanttItemInternal | GanttGroupInternal)[]>; readonly hasGroup: _angular_core.Signal; readonly ganttTableEmptyClass: _angular_core.Signal; readonly flatItems: _angular_core.InputSignal<(GanttItemInternal | GanttGroupInternal)[]>; readonly columns: _angular_core.InputSignal; readonly groupTemplate: _angular_core.InputSignal>; readonly emptyTemplate: _angular_core.InputSignal>; readonly rowBeforeTemplate: _angular_core.InputSignal>; readonly rowAfterTemplate: _angular_core.InputSignal>; readonly draggable: _angular_core.InputSignal; readonly dropEnterPredicate: _angular_core.InputSignal<(context: GanttTableDragEnterPredicateContext) => boolean>; readonly dragDropped: _angular_core.OutputEmitterRef>; readonly dragStarted: _angular_core.OutputEmitterRef>; readonly dragEnded: _angular_core.OutputEmitterRef>; readonly itemClick: _angular_core.OutputEmitterRef>; cdkDrags: QueryList>; readonly hasExpandIcon: _angular_core.WritableSignal; private itemDragsMap; private itemDragMoved; private itemDropTarget; private destroy$; ganttTableDragging: boolean; constructor(); ngAfterViewInit(): void; expandGroup(group: GanttGroupInternal): void; expandChildren(event: MouseEvent, item: GanttItemInternal): void; onItemDragStarted(event: CdkDragStart): void; emitItemDragMoved(event: CdkDragMove): void; onItemDragMoved(event: CdkDragMove): void; onItemDragEnded(event: CdkDragEnd): void; onListDropped(event: CdkDragDrop): void; trackBy(index: number, item: GanttGroupInternal | GanttItemInternal): string | number; ngOnDestroy(): void; private removeItem; private insertItem; private insertChildrenItem; private getParentByItem; private getExpandChildrenByDrag; private getChildrenElementsByElement; private getTargetPosition; private showDropPositionPlaceholder; private cleanupDragArtifacts; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare enum ScrollDirection { NONE = 0, LEFT = 1, RIGHT = 2 } interface ScrollEvent { target: Element; direction: ScrollDirection; } declare class GanttDomService implements OnDestroy { private ngZone; private platformId; root: Element; side: Element; container: Element; sideContainer: Element; mainContainer: Element; verticalScrollContainer: Element; calendarHeader: Element; mainItems: Element; calendarOverlay: Element; linksOverlay: Element; visibleRangeX: WritableSignal<{ min: number; max: number; }>; private mainFooter; private mainScrollbar; private unsubscribe$; constructor(); private disableBrowserWheelEvent; initialize(root: ElementRef): void; /** * @returns An observable that will emit outside the Angular zone. Note, consumers should re-enter the Angular zone * to run the change detection if needed. */ getViewerScroll(options?: AddEventListenerOptions): Observable; getResize(): Observable; getResizeByElement(element: Element): Observable; scrollMainContainer(left: number): void; syncHorizontalScroll(left: number): void; setVisibleRangeX(): void; applyCssVariables(element: HTMLElement, options?: GanttStyleOptions): void; ngOnDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } declare class GanttMainComponent { ganttUpper: GanttUpper; dom: GanttDomService; protected ngZone: NgZone; readonly viewportItems: _angular_core.InputSignal<(GanttItemInternal | GanttGroupInternal)[]>; readonly flatItems: _angular_core.InputSignal<(GanttItemInternal | GanttGroupInternal)[]>; readonly groupHeaderTemplate: _angular_core.InputSignal>; readonly itemTemplate: _angular_core.InputSignal>; readonly barTemplate: _angular_core.InputSignal>; readonly rangeTemplate: _angular_core.InputSignal>; readonly baselineTemplate: _angular_core.InputSignal>; readonly ganttRoot: _angular_core.InputSignal; readonly quickTimeFocus: _angular_core.InputSignal; readonly barClick: _angular_core.OutputEmitterRef>; readonly lineClick: _angular_core.OutputEmitterRef>; ganttMainClass: boolean; private unsubscribe$; constructor(); toItemType(data: GanttItemInternal | GanttGroupInternal): GanttItemInternal; trackBy(index: number, item: GanttGroupInternal | GanttItemInternal): string | number; private setupResize; quickTime(item: GanttItem, type: 'left' | 'right'): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class GanttLinksComponent implements OnInit, OnDestroy { ganttUpper: GanttUpper; private cdr; private elementRef; private ganttDragContainer; readonly flatItems: _angular_core.InputSignal<(GanttItemInternal | GanttGroupInternal)[]>; readonly lineClick: _angular_core.OutputEmitterRef>; links: LinkInternal[]; ganttLinkTypes: typeof GanttLinkType; showArrow: boolean; private linkItems; private linkLine; private unsubscribe$; ganttLinksOverlay: boolean; constructor(); ngOnInit(): void; private computeItemPosition; buildLinks(): void; trackBy(index: number): number; onLineClick(event: MouseEvent, link: LinkInternal): void; mouseEnterPath(link: LinkInternal, index: number): void; mouseLeavePath(link: LinkInternal): void; ngOnDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class GanttIconComponent { private elementRef; isIcon: boolean; readonly iconName: _angular_core.InputSignal; constructor(); setSvg(name: string): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class IsGanttRangeItemPipe implements PipeTransform { transform(value: GanttItemType): value is GanttItemType.range; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵpipe: _angular_core.ɵɵPipeDeclaration; } declare class IsGanttBarItemPipe implements PipeTransform { transform(value: GanttItemType): value is GanttItemType.bar; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵpipe: _angular_core.ɵɵPipeDeclaration; } declare class IsGanttCustomItemPipe implements PipeTransform { transform(value: GanttItemType): value is GanttItemType.custom; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵpipe: _angular_core.ɵɵPipeDeclaration; } declare class IsGanttGroupPipe implements PipeTransform { transform(data: GanttItemInternal | GanttGroupInternal): data is GanttGroupInternal; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵpipe: _angular_core.ɵɵPipeDeclaration; } declare class NgxGanttModule { constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } declare const _default$5: { id: GanttI18nLocale; views: { hour: { label: string; tickFormats: { period: string; unit: string; }; }; day: { label: string; tickFormats: { period: string; unit: string; }; }; week: { label: string; tickFormats: { period: string; unit: string; }; }; month: { label: string; tickFormats: { period: string; unit: string; }; }; quarter: { label: string; tickFormats: { period: string; unit: string; }; }; year: { label: string; tickFormats: { unit: string; }; }; }; }; declare const _default$4: { id: GanttI18nLocale; views: { hour: { label: string; tickFormats: { period: string; unit: string; }; }; day: { label: string; tickFormats: { period: string; unit: string; }; }; week: { label: string; tickFormats: { period: string; unit: string; }; }; month: { label: string; tickFormats: { period: string; unit: string; }; }; quarter: { label: string; tickFormats: { period: string; unit: string; }; }; year: { label: string; tickFormats: { unit: string; }; }; }; }; declare const _default$3: { id: GanttI18nLocale; views: { hour: { label: string; tickFormats: { period: string; unit: string; }; }; day: { label: string; tickFormats: { period: string; unit: string; }; }; week: { label: string; tickFormats: { period: string; unit: string; }; }; month: { label: string; tickFormats: { period: string; unit: string; }; }; quarter: { label: string; tickFormats: { period: string; unit: string; }; }; year: { label: string; tickFormats: { unit: string; }; }; }; }; declare const _default$2: { id: GanttI18nLocale; views: { hour: { label: string; tickFormats: { period: string; unit: string; }; }; day: { label: string; tickFormats: { period: string; unit: string; }; }; week: { label: string; tickFormats: { period: string; unit: string; }; }; month: { label: string; tickFormats: { period: string; unit: string; }; }; quarter: { label: string; tickFormats: { period: string; unit: string; }; }; year: { label: string; tickFormats: { unit: string; }; }; }; }; declare const _default$1: { id: GanttI18nLocale; dateLocale: Locale; views: { hour: { label: string; tickFormats: { period: string; unit: string; }; }; day: { label: string; tickFormats: { period: string; unit: string; }; }; week: { label: string; tickFormats: { period: string; unit: string; }; }; month: { label: string; tickFormats: { period: string; unit: string; }; }; quarter: { label: string; tickFormats: { period: string; unit: string; }; }; year: { label: string; tickFormats: { unit: string; }; }; }; }; declare const _default: { id: GanttI18nLocale; dateLocale: Locale; views: { hour: { label: string; tickFormats: { period: string; unit: string; }; }; day: { label: string; tickFormats: { period: string; unit: string; }; }; week: { label: string; tickFormats: { period: string; unit: string; }; }; month: { label: string; tickFormats: { period: string; unit: string; }; }; quarter: { label: string; tickFormats: { period: string; unit: string; }; }; year: { label: string; tickFormats: { unit: string; }; }; }; }; declare function registerView(type: string, view: T): void; export { GANTT_GLOBAL_CONFIG, GANTT_I18N_LOCALE_TOKEN, GANTT_UPPER_TOKEN, GanttBarClickEvent, GanttBaselineItemInternal, GanttCalendarGridComponent, GanttCalendarHeaderComponent, GanttConfigService, GanttDate, GanttDragBackdropComponent, GanttDragEvent, GanttGroupInternal, GanttI18nLocale, GanttItemInternal, GanttItemType, GanttItemUpper, GanttLineClickEvent, GanttLinkDragEvent, GanttLinkLineType, GanttLinkType, GanttLoadOnScrollEvent, GanttLoaderComponent, GanttPrintService, GanttScrollbarComponent, GanttSelectedEvent, GanttSyncScrollService, GanttSyncScrollXDirective, GanttSyncScrollYDirective, GanttTableDragDroppedEvent, GanttTableDragEndedEvent, GanttTableDragEnterPredicateContext, GanttTableDragStartedEvent, GanttTableEvent, GanttTableItemClickEvent, GanttUpper, GanttView, GanttViewTick, GanttViewType, GanttVirtualScrolledIndexChangeEvent, IsGanttBarItemPipe, IsGanttCustomItemPipe, IsGanttGroupPipe, IsGanttRangeItemPipe, NgxGanttBarComponent, NgxGanttBaselineComponent, NgxGanttComponent, NgxGanttModule, NgxGanttPlaceholderComponent, NgxGanttRangeComponent, NgxGanttRootComponent, NgxGanttTableColumnComponent, NgxGanttTableComponent, NgxGanttToolbarComponent, PERIOD_TICK_TOP, PERIOD_TICK_TOP as PRIMARY_TICK_TOP, UNIT_TICK_TOP as SECONDARY_TICK_TOP, UNIT_TICK_TOP, _default$1 as deDeLocale, defaultConfig, _default$3 as enUsLocale, getDefaultTimeZone, _default$2 as jaJpLocale, registerView, _default as ruRuLocale, setDefaultTimeZone, _default$5 as zhHansLocale, _default$4 as zhHantLocale }; export type { GanttBaselineItem, GanttDateOptions, GanttDateUtil, GanttGlobalConfig, GanttGroup, GanttI18nLocaleConfig, GanttItem, GanttItemRefs, GanttLink, GanttLinkItem, GanttLinkOptions, GanttStyleOptions, GanttTableDropPosition, GanttToolbarOptions, GanttViewDate, GanttViewOptions, LinkInternal };