import * as i0 from '@angular/core'; import { OnInit, ElementRef, TemplateRef } from '@angular/core'; declare const IgxAvatarSize: { readonly SMALL: "small"; readonly MEDIUM: "medium"; readonly LARGE: "large"; }; type IgxAvatarSize = (typeof IgxAvatarSize)[keyof typeof IgxAvatarSize]; declare const IgxAvatarType: { readonly INITIALS: "initials"; readonly IMAGE: "image"; readonly ICON: "icon"; readonly CUSTOM: "custom"; }; type IgxAvatarType = (typeof IgxAvatarType)[keyof typeof IgxAvatarType]; /** * Avatar provides a way to display an image, icon or initials to the user. * * @igxModule IgxAvatarModule * * @igxTheme igx-avatar-theme, igx-icon-theme * * @igxKeywords avatar, profile, picture, initials * * @igxGroup Layouts * * @remarks * * The Ignite UI Avatar provides an easy way to add an avatar icon to your application. This icon can be an * image, someone's initials or a material icon from the Google Material icon set. * * @example * ```html * * * ``` */ declare class IgxAvatarComponent implements OnInit { elementRef: ElementRef; /** * Returns the `aria-label` attribute of the avatar. * * @example * ```typescript * let ariaLabel = this.avatar.ariaLabel; * ``` * */ ariaLabel: string; /** * Returns the `role` attribute of the avatar. * * @example * ```typescript * let avatarRole = this.avatar.role; * ``` */ role: string; /** * Host `class.igx-avatar` binding. * * @hidden * @internal */ cssClass: string; /** * Returns the type of the avatar. * The avatar can be: * - `"initials type avatar"` * - `"icon type avatar"` * - `"image type avatar"`. * - `"custom type avatar"`. * * @example * ```typescript * let avatarDescription = this.avatar.roleDescription; * ``` */ roleDescription: string; /** * Sets the `id` of the avatar. If not set, the first avatar component will have `id` = `"igx-avatar-0"`. * * @example * ```html * * ``` */ id: string; /** * Sets square, rounded or circular shape to the avatar. * By default the shape of the avatar is square. * * @example * ```html * * ``` */ shape: 'square' | 'rounded' | 'circle'; /** @hidden @internal */ get isRounded(): boolean; /** @hidden @internal */ get isCircle(): boolean; /** * Sets the color of the avatar's initials or icon. * * @example * ```html * * ``` * @deprecated in version 17.2.0. */ color: string; /** * Sets the background color of the avatar. * * @example * ```html * * ``` * @igxFriendlyName Background color * @deprecated in version 17.2.0. */ bgColor: string; /** * Sets initials to the avatar. * * @example * ```html * * ``` */ initials: string; /** * Sets an icon to the avatar. All icons from the material icon set are supported. * * @example * ```html * * ``` */ icon: string; /** * Sets the image source of the avatar. * * @example * ```html * * ``` * @igxFriendlyName Image URL */ set src(value: string); get src(): string; /** @hidden @internal */ protected defaultTemplate: TemplateRef; /** @hidden @internal */ protected imageTemplate: TemplateRef; /** @hidden @internal */ protected initialsTemplate: TemplateRef; /** @hidden @internal */ protected iconTemplate: TemplateRef; /** * @hidden * @internal */ private _size; private _src; /** * Returns the size of the avatar. * * @example * ```typescript * let avatarSize = this.avatar.size; * ``` */ get size(): string | IgxAvatarSize; /** * Sets the size of the avatar. * By default, the size is `"small"`. It can be set to `"medium"` or `"large"`. * * @example * ```html * * ``` */ set size(value: string | IgxAvatarSize); /** * Returns the type of the avatar. * * @example * ```typescript * let avatarType = this.avatar.type; * ``` */ get type(): IgxAvatarType; /** @hidden @internal */ get _isImageType(): boolean; /** @hidden @internal */ get _isIconType(): boolean; /** @hidden @internal */ get _isInitialsType(): boolean; protected get componentSize(): string; /** * Returns the template of the avatar. * * @hidden * @internal */ get template(): TemplateRef; /** * Returns the css url of the image. * * @hidden * @internal */ getSrcUrl(): string; /** @hidden @internal */ ngOnInit(): void; /** @hidden @internal */ private getRole; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @hidden * IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components */ declare class IgxAvatarModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { IgxAvatarComponent, IgxAvatarModule, IgxAvatarSize, IgxAvatarType };