UNPKG

@edugouvfr/ngx-dsfr

Version:

NgxDsfr est un portage Angular des éléments d'interface du Système de Design de l'État Français (DSFR).

40 lines (39 loc) 2.05 kB
import { EventEmitter } from '@angular/core'; import { DsfrFormEmailComponent } from '../../forms'; import { DsfrHeadingLevel, I18nService } from '../../shared'; import { DsfrFollowType, DsfrFollowTypeConst } from './follow.model'; import * as i0 from "@angular/core"; export declare class DsfrFollowComponent { i18n: I18nService; /** @internal */ emailComponent: DsfrFormEmailComponent; /** * Niveau du titre, h2 par défaut */ headingLevel: DsfrHeadingLevel; /** Description (pour certains types seulement) optionnelle. */ description: string; /** Email par défaut. */ email: string; /** Message d'erreur concernant l'email. */ emailError: string; /** Indique que l'inscription a bien été prise en compte. */ registered: boolean; /** Type du composant, réseaux sociaux seuls par défaut */ type: DsfrFollowType; /** Abonnement si l'adresse est valide. */ subscribe: EventEmitter<string>; /** @internal */ followType: typeof DsfrFollowTypeConst; /** @internal */ readonly headingNetworks: string; /** @internal */ readonly headingNewsletter: string; /** @internal*/ readonly inputPlaceholder: string; /** @internal*/ readonly inputHint: string; /** @internal */ readonly buttonLabel: string; /** @internal */ readonly buttonTitle: string; /** @internal */ constructor(i18n: I18nService); /** @internal */ onSubscribe(email: string): void; static ɵfac: i0.ɵɵFactoryDeclaration<DsfrFollowComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<DsfrFollowComponent, "dsfr-follow", never, { "headingLevel": { "alias": "headingLevel"; "required": false; }; "description": { "alias": "description"; "required": false; }; "email": { "alias": "email"; "required": false; }; "emailError": { "alias": "emailError"; "required": false; }; "registered": { "alias": "registered"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "subscribe": "subscribe"; }, never, ["*"], false, never>; }