UNPKG

primeng

Version:

PrimeNG is a premium UI library for Angular featuring a rich set of 90+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBlock,

128 lines (124 loc) 4.62 kB
import { TimelinePassThrough, TimelineAlign, TimelineLayout, TimelineItemTemplateContext } from 'primeng/types/timeline'; export * from 'primeng/types/timeline'; import * as _angular_core from '@angular/core'; import { TemplateRef } from '@angular/core'; import { BlockableUI } from 'primeng/api'; import { BaseComponent } from 'primeng/basecomponent'; import * as i1 from 'primeng/bind'; import { Bind } from 'primeng/bind'; import { BaseStyle } from 'primeng/base'; /** * * Timeline visualizes a series of chained events. * * [Live Demo](https://primeng.dev/timeline) * * @module timelinestyle * */ declare enum TimelineClasses { /** * Class name of the root element */ root = "p-timeline", /** * Class name of the event element */ event = "p-timeline-event", /** * Class name of the event opposite element */ eventOpposite = "p-timeline-event-opposite", /** * Class name of the event separator element */ eventSeparator = "p-timeline-event-separator", /** * Class name of the event marker element */ eventMarker = "p-timeline-event-marker", /** * Class name of the event connector element */ eventConnector = "p-timeline-event-connector", /** * Class name of the event content element */ eventContent = "p-timeline-event-content" } declare class TimelineStyle extends BaseStyle { name: string; style: string; classes: { root: ({ instance }: { instance: any; }) => string[]; event: string; eventOpposite: string; eventSeparator: string; eventMarker: string; eventConnector: string; eventContent: string; }; static ɵfac: _angular_core.ɵɵFactoryDeclaration<TimelineStyle, never>; static ɵprov: _angular_core.ɵɵInjectableDeclaration<TimelineStyle>; } interface TimelineStyle extends BaseStyle { } /** * Timeline visualizes a series of chained events. * @group Components */ declare class Timeline extends BaseComponent<TimelinePassThrough> implements BlockableUI { componentName: string; bindDirectiveInstance: Bind; $pcTimeline: Timeline | undefined; onAfterViewChecked(): void; /** * An array of events to display. * @group Props */ value: _angular_core.InputSignal<any[] | undefined>; /** * Position of the timeline bar relative to the content. Valid values are "left", "right" for vertical layout and "top", "bottom" for horizontal layout. * @group Props */ align: _angular_core.InputSignal<TimelineAlign>; /** * Orientation of the timeline. * @group Props */ layout: _angular_core.InputSignal<TimelineLayout>; /** * Custom content template. * @param {TimelineItemTemplateContext} context - item context. * @see {@link TimelineItemTemplateContext} * @group Templates */ contentTemplate: _angular_core.Signal<TemplateRef<TimelineItemTemplateContext<any>> | undefined>; /** * Custom opposite item template. * @param {TimelineItemTemplateContext} context - item context. * @see {@link TimelineItemTemplateContext} * @group Templates */ oppositeTemplate: _angular_core.Signal<TemplateRef<TimelineItemTemplateContext<any>> | undefined>; /** * Custom marker template. * @param {TimelineItemTemplateContext} context - item context. * @see {@link TimelineItemTemplateContext} * @group Templates */ markerTemplate: _angular_core.Signal<TemplateRef<TimelineItemTemplateContext<any>> | undefined>; _componentStyle: TimelineStyle; dataP: _angular_core.Signal<string>; getBlockableElement(): HTMLElement; static ɵfac: _angular_core.ɵɵFactoryDeclaration<Timeline, never>; static ɵcmp: _angular_core.ɵɵComponentDeclaration<Timeline, "p-timeline", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; }, {}, ["contentTemplate", "oppositeTemplate", "markerTemplate"], never, true, [{ directive: typeof i1.Bind; inputs: {}; outputs: {}; }]>; } declare class TimelineModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration<TimelineModule, never>; static ɵmod: _angular_core.ɵɵNgModuleDeclaration<TimelineModule, never, [typeof Timeline], [typeof Timeline]>; static ɵinj: _angular_core.ɵɵInjectorDeclaration<TimelineModule>; } export { Timeline, TimelineClasses, TimelineModule, TimelineStyle };