UNPKG

@crediblefinance/credible-ui

Version:

Credible's standard UI library

38 lines (37 loc) 2.23 kB
import { OnInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core'; import { FormControl, FormGroup } from '@angular/forms'; import { MatSelectChange } from '@angular/material/select'; import IDropdown from '../interfaces/IDropdown'; import * as i0 from "@angular/core"; export declare class CfDropdownComponent implements OnInit, OnChanges { options: Array<IDropdown>; change: EventEmitter<any>; label: string; name?: string; showLogo: boolean; showLabel: boolean; selected: string | string[]; disabled: boolean; multiple: boolean; showDescription: boolean; currentSelected: IDropdown; currentMultiSelected: Array<IDropdown>; multiSelectText: string; formGroup: FormGroup; control: FormControl; theme: string; objectFn: ObjectConstructor; constructor(); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; setDefaultSingleSelection(): void; setDefaultMultipleSelection(): void; validOption(value: string): number; changeDropdown(matSelectChange: MatSelectChange): void; getCurrentSelectedOption(value: string): IDropdown | undefined; getCurrentMultiSelectedOption(optionsArray: Array<string>): IDropdown[]; changeMultiDropdown(matSelectChange: MatSelectChange): void; get classes(): string[]; static ɵfac: i0.ɵɵFactoryDeclaration<CfDropdownComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<CfDropdownComponent, "cf-dropdown", never, { "options": { "alias": "options"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "showLogo": { "alias": "showLogo"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "showDescription": { "alias": "showDescription"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "control": { "alias": "control"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, { "change": "change"; }, never, never, false, never>; }