@engie-group/fluid-design-system-angular
Version:
Fluid Design System Angular
108 lines (107 loc) • 3.31 kB
TypeScript
import { TemplateRef } from '@angular/core';
import { BadgeEmphasis, BadgeSize, BadgeVariant } from '../badge/badge.model';
import { TooltipOptions } from '../tooltip/tooltip.model';
import { AvatarSize } from './avatar.model';
import * as i0 from "@angular/core";
export declare class AvatarComponent {
private avatarClassName;
/**
* Link href, if set avatar is a link <a>
*/
href: string;
/**
* Initials of avatar, max 3 characters if a string with a bigger length than 3 characters only 3 first characters are taken
*/
initials: string;
/**
* Text alternative for the avatar
*/
label: string;
/**
* Avatar size
*/
size: AvatarSize;
/**
* Whether avatar has a picture or not
*/
hasPicture: boolean;
/**
* Whether avatar is clickable or not
*/
isClickable: boolean;
/**
* Notifications number or string
*/
notification: number | string;
/**
* Max notification number
*/
notificationCapedValue: number;
/**
* Notification emphasis
*/
notificationEmphasis: BadgeEmphasis;
/**
* Notification color
*/
notificationVariant: BadgeVariant;
/**
* Unit label for `nj-badge`
*/
notificationUnitLabel?: string;
/**
* Used for NJAvatarGroup as the last tile of the group
**/
isRemainingCount?: boolean;
/**
* Tooltip's options
**/
tooltipOptions?: TooltipOptions;
/**
* @ignore
*/
avatarTemplate: TemplateRef<any>;
constructor();
/**
* @ignore
*/
getFormattedInitials(): string;
/**
* @ignore
*/
getBadgeSize(): BadgeSize;
/**
* @ignore
*/
getAvatarSizeClass(): string;
/**
* @ignore
*/
getAvatarDefaultIconClass(): string;
/**
* @ignore
*/
getAvatarInitialsClass(): string;
/**
* @ignore
*/
getAvatarIsClickableClass(): string;
/**
* @ignore
*/
getHasPictureClass(): string;
/**
* @ignore
*/
getAvatarIsRemainingCountClass(): string;
/**
* @ignore
*/
hasInitials(): boolean;
/**
* @ignore
*/
getAvatarClasses(): string[];
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "nj-avatar", never, { "href": { "alias": "href"; "required": false; }; "initials": { "alias": "initials"; "required": false; }; "label": { "alias": "label"; "required": false; }; "size": { "alias": "size"; "required": false; }; "hasPicture": { "alias": "hasPicture"; "required": false; }; "isClickable": { "alias": "isClickable"; "required": false; }; "notification": { "alias": "notification"; "required": false; }; "notificationCapedValue": { "alias": "notificationCapedValue"; "required": false; }; "notificationEmphasis": { "alias": "notificationEmphasis"; "required": false; }; "notificationVariant": { "alias": "notificationVariant"; "required": false; }; "notificationUnitLabel": { "alias": "notificationUnitLabel"; "required": false; }; "isRemainingCount": { "alias": "isRemainingCount"; "required": false; }; "tooltipOptions": { "alias": "tooltipOptions"; "required": false; }; }, {}, never, ["*"], true, never>;
}