ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
101 lines • 3.74 kB
TypeScript
import * as i0 from "@angular/core";
import { AfterContentInit, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from "@angular/core";
import { ReplaySubject } from "rxjs";
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
type NzTimelineMode = 'left' | 'alternate' | 'right' | 'custom';
type NzTimelinePosition = 'left' | 'right';
declare const TimelineTimeDefaultColors: readonly ["red", "blue", "green", "grey", "gray"];
type NzTimelineItemColor = (typeof TimelineTimeDefaultColors)[number] | string;
declare namespace timeline_item_component_d_exports {
export { NzTimelineItemComponent };
}
export declare class NzTimelineItemComponent implements OnChanges {
private cdr;
private timelineService;
template: TemplateRef<void>;
nzPosition?: NzTimelinePosition;
nzColor: NzTimelineItemColor;
nzDot?: string | TemplateRef<void>;
nzLabel?: string | TemplateRef<void>;
isLast: boolean;
borderColor: string | null;
position?: NzTimelinePosition;
ngOnChanges(changes: SimpleChanges): void;
detectChanges(): void;
private updateCustomColor;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTimelineItemComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTimelineItemComponent, "nz-timeline-item, [nz-timeline-item]", ["nzTimelineItem"], {
"nzPosition": {
"alias": "nzPosition";
"required": false;
};
"nzColor": {
"alias": "nzColor";
"required": false;
};
"nzDot": {
"alias": "nzDot";
"required": false;
};
"nzLabel": {
"alias": "nzLabel";
"required": false;
};
}, {}, never, ["*"], true, never>;
}
declare namespace timeline_component_d_exports {
export { NzTimelineComponent };
}
export declare class NzTimelineComponent implements AfterContentInit, OnChanges, OnInit {
private cdr;
private timelineService;
protected readonly dir: import("@angular/core").WritableSignal<import("@angular/cdk/bidi").Direction>;
private destroyRef;
listOfItems: QueryList<NzTimelineItemComponent>;
nzMode: NzTimelineMode;
nzPending?: string | boolean | TemplateRef<void>;
nzPendingDot?: string | TemplateRef<void>;
nzReverse: boolean;
isPendingBoolean: boolean;
timelineItems: NzTimelineItemComponent[];
hasLabelItem: boolean;
ngOnChanges(changes: SimpleChanges): void;
ngOnInit(): void;
ngAfterContentInit(): void;
private updateChildren;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTimelineComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTimelineComponent, "nz-timeline", ["nzTimeline"], {
"nzMode": {
"alias": "nzMode";
"required": false;
};
"nzPending": {
"alias": "nzPending";
"required": false;
};
"nzPendingDot": {
"alias": "nzPendingDot";
"required": false;
};
"nzReverse": {
"alias": "nzReverse";
"required": false;
};
}, {}, ["listOfItems"], ["*"], true, never>;
static ngAcceptInputType_nzReverse: unknown;
}
export declare class NzTimelineModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzTimelineModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzTimelineModule, never, [typeof NzTimelineItemComponent, typeof NzTimelineComponent], [typeof NzTimelineItemComponent, typeof NzTimelineComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzTimelineModule>;
}
export declare class TimelineService {
check$: ReplaySubject<void>;
markForCheck(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
}
export type { NzTimelineItemColor, NzTimelineMode, NzTimelinePosition };