UNPKG

@progress/kendo-angular-gantt

Version:
44 lines (43 loc) 1.83 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { IntlService } from '@progress/kendo-angular-intl'; import { MappingService } from '../common/mapping.service'; import { TimelineBaseViewService } from './timeline-base-view.service'; import { DateRange } from '../models/date-range.interface'; import { Slot } from '../models/slot.interface'; import * as i0 from "@angular/core"; /** * @hidden */ export declare class TimelineMonthViewService extends TimelineBaseViewService { constructor(intlService: IntlService, mapper: MappingService); /** * Ensures a full month is visible when data is empty. */ protected getRange(tasks: any): DateRange; /** * Gets a week before the first week in which a task starts. */ getStartOffset(rangeStart: Date): Date; /** * Gets a week after the last week in which a task ends. */ getEndOffset(rangeEnd: Date): Date; /** * * @param tasks - The tasks which are going to be rendered in the table * @returns {number} */ getTableWidth(tasks: any[]): number; /** * * @param tasks - The tasks which are going to be rendered in the table * @returns {Array<Object>} - A collection containing the months and weeks slots * Used to render the number of columns and the header */ getSlots(tasks: any[]): Array<Slot[]>; static ɵfac: i0.ɵɵFactoryDeclaration<TimelineMonthViewService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<TimelineMonthViewService>; }