UNPKG

@progress/kendo-angular-gantt

Version:
54 lines (53 loc) 2.5 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { OnChanges, SimpleChanges } from '@angular/core'; import { DependencyDomService } from '../dependencies/dependency-dom.service'; import { TimelineViewType } from '../models/timeline-view'; import { OptionChangesService } from '../common/option-changes.service'; import { TimelineHeaderDateFormat } from '../models/timeline-header-date-format'; import { CurrentTimeSettings } from '../models/current-time-settings.interface'; import * as i0 from "@angular/core"; /** * Serves as the base class for the timeline view components of the Gantt. * * @example * ```typescript * export class CustomTimelineViewComponent extends ViewBase { * public readonly type: TimelineViewType = 'custom'; * } * ``` */ export declare abstract class ViewBase implements OnChanges { private optionChangesService; private dependencyDomService; /** * Sets the width of the time slot headers in pixels. * * @default 100 */ slotWidth: number; /** * Sets the date format for the Grouped and Column headers. */ timelineHeadersDateFormat: TimelineHeaderDateFormat; /** * Specifies the current time marker settings. * If you do not set a value, the component uses the value from the Gantt component * [`currentTimeMarker`]({% slug api_gantt_ganttcomponent %}#toc-currentTimeMarker) property. */ currentTimeMarker: boolean | CurrentTimeSettings; /** * Specifies the type for the view (`day`, `week`, `month`, or `year`). */ abstract type: TimelineViewType; /** * * @hidden */ constructor(optionChangesService: OptionChangesService, dependencyDomService: DependencyDomService); ngOnChanges(changes: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration<ViewBase, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<ViewBase, "kendo-gantt-view-base", never, { "slotWidth": { "alias": "slotWidth"; "required": false; }; "timelineHeadersDateFormat": { "alias": "timelineHeadersDateFormat"; "required": false; }; "currentTimeMarker": { "alias": "currentTimeMarker"; "required": false; }; }, {}, never, never, false, never>; }