UNPKG

@funidata/ngx-fudis

Version:

Funidata Design System.

64 lines (63 loc) 2.71 kB
import { ElementRef, OnChanges, OnDestroy } from '@angular/core'; import { FudisComponentChanges, FudisLanguageAbbr } from '../../../../types/miscellaneous'; import { DescriptionListItemComponent } from '../description-list-item.component'; import { DescriptionListComponent } from '../../description-list.component'; import { FudisIdService } from '../../../../services/id/id.service'; import { BehaviorSubject } from 'rxjs'; import * as i0 from "@angular/core"; export declare class DescriptionListItemDetailsComponent implements OnChanges, OnDestroy { private _elementRef; private _idService; protected _parentDlItem: DescriptionListItemComponent; protected _parentDl: DescriptionListComponent; constructor(_elementRef: ElementRef, _idService: FudisIdService, _parentDlItem: DescriptionListItemComponent, _parentDl: DescriptionListComponent); /** * Binding host CSS class to component wrapper */ private _hostClass; /** * Details element language, possible values 'fi', 'sv' and 'en'. */ lang: FudisLanguageAbbr; /** * Visible text content for Details */ contentText: string; /** * Sub heading in between Term and Details elements */ subHeading: string | undefined; /** * Aria-label for classified/hidden Details content */ ariaLabel: string | null | undefined; /** * Id generated with Id Service */ protected _id: string; /** * Selected language to show respective Details content */ protected _langSelected: BehaviorSubject<boolean>; /** * If current Detail element is a last child of it's parent */ protected _lastChild: BehaviorSubject<boolean>; /** * Main CSS class */ protected _mainCssClass: BehaviorSubject<string>; /** * If component has language and has sent info to parent */ private _detailsSent; /** * Parse Details text content and set parent Description List Item languages */ private _sendDetailsLanguageToParent; private _removeDetailsFromParent; ngOnChanges(changes: FudisComponentChanges<DescriptionListItemDetailsComponent>): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<DescriptionListItemDetailsComponent, [null, null, { host: true; }, { host: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration<DescriptionListItemDetailsComponent, "fudis-dd", never, { "lang": { "alias": "lang"; "required": false; }; "contentText": { "alias": "contentText"; "required": false; }; "subHeading": { "alias": "subHeading"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, {}, never, ["*"], false, never>; }