UNPKG

@progress/kendo-angular-gantt

Version:
46 lines (45 loc) 2.05 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 { TimelineBaseViewService } from './timeline-base-view.service'; import { MappingService } from '../common/mapping.service'; import { DateRange } from '../models/date-range.interface'; import { Slot } from '../models/slot.interface'; import * as i0 from "@angular/core"; /** * @hidden */ export declare class TimelineDayViewService extends TimelineBaseViewService { constructor(intlService: IntlService, mapper: MappingService); /** * Ensures a full day is visible when data is empty. */ protected getRange(tasks: any): DateRange; /** * Gets a date an hour before the first task start with minutes, seconds, milliseconds cleared. */ getStartOffset(rangeStart: Date): Date; /** * Gets a date an hour after the last task end with minutes, seconds, milliseconds cleared. * When the end falls in the last hour of the day (23:xx), caps at end of day * to prevent adding an empty next-day slot that causes header misalignment. */ 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 day and hours slots * Used to render the number of columns and the header */ getSlots(tasks: any[]): Array<Slot[]>; static ɵfac: i0.ɵɵFactoryDeclaration<TimelineDayViewService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<TimelineDayViewService>; }