UNPKG

@engie-group/fluid-design-system-angular

Version:

Fluid Design System Angular

70 lines (69 loc) 2.21 kB
import { AfterContentInit, EventEmitter, QueryList } from '@angular/core'; import { AvatarComponent } from '../avatar/avatar.component'; import { AvatarSize } from '../avatar/avatar.model'; import { TooltipOptions } from '../tooltip/tooltip.model'; import * as i0 from "@angular/core"; export declare class AvatarListComponent implements AfterContentInit { /** * @ignore */ private readonly avatarListClassName; /** * @ignore */ remainingCount: number; /** * @ignore */ avatarsToDisplay: AvatarComponent[]; /** * Max number of avatar displayed **/ max?: number; /** * Density of the avatar list **/ density?: 'default' | 'compact'; /** * Avatars size **/ size?: AvatarSize; /** * Remaining avatar Tooltip's options **/ remainingTooltipOptions?: TooltipOptions; /** * Emits event on remaining count avatar mouse click */ remainingClick: EventEmitter<MouseEvent>; /** * Label of the "show more" button. * * A function can be used to provide a dynamic label based on the number of remaining avatars in the list. */ showMoreLabel: string | ((elementCount: number) => string); /** * @ignore */ avatars: QueryList<AvatarComponent>; constructor(); ngAfterContentInit(): void; /** * @ignore */ getAvatarsToDisplay(): AvatarComponent[]; /** * @ignore */ getAvatarListDensityClass(): string; /** * @ignore */ getRemainingCountInitials(): string; /** * @ignore */ getRemainingCountLabel(): string; static ɵfac: i0.ɵɵFactoryDeclaration<AvatarListComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<AvatarListComponent, "nj-avatar-list", never, { "max": { "alias": "max"; "required": false; }; "density": { "alias": "density"; "required": false; }; "size": { "alias": "size"; "required": false; }; "remainingTooltipOptions": { "alias": "remainingTooltipOptions"; "required": false; }; "showMoreLabel": { "alias": "showMoreLabel"; "required": false; }; }, { "remainingClick": "remainingClick"; }, ["avatars"], never, true, never>; }