UNPKG

@funidata/ngx-fudis

Version:

Funidata Design System.

69 lines (68 loc) 3.27 kB
import { OnChanges } from '@angular/core'; import { DropdownBaseDirective } from '../../../../../directives/form/dropdown-base/dropdown-base.directive'; import { BehaviorSubject } from 'rxjs'; import { FudisTranslationService } from '../../../../../services/translation/translation.service'; import { FudisInputSize, FudisSelectVariant } from '../../../../../types/forms'; import { FudisComponentChanges } from '../../../../../types/miscellaneous'; import * as i0 from "@angular/core"; export declare class SelectDropdownComponent extends DropdownBaseDirective implements OnChanges { private _translationService; constructor(_translationService: FudisTranslationService); /** * Variant of parent Select / Multiselect */ selectVariant: FudisSelectVariant; /** * Number of results */ results: number; /** * With Autocomplete variants optional helper text displayed as first item in Dropdown */ autocompleteHelpText: string | false; /** * By default, Autocomplete variant will display "No results found" text when there are 0 options * matching. When combined with 'autocompleteFilter' false, application can set their own * 'Fetching options...' etc. text while their own filtering is in progress. */ autocompleteNoResultsText: string | null; /** * Current filter text from Autocomplete parents */ filterText: string; /** * Assign Select dropdown to contain single-select or multiselect options (with checkboxes) */ multiselect: boolean; /** * Id of parent component */ parentId: string; /** * Set dropdown size */ size: FudisInputSize | 'xs'; /** * Set dropdown open status */ open: boolean | null; /** * Boolean which toggles status updates for screen readers about changed option results */ protected _displayStatus: BehaviorSubject<boolean>; /** * Internal translated label for situations where no results with current filters were found */ protected _translationNoResultsFound: BehaviorSubject<string>; /** * Internal translated label for number of visible results */ protected _translationResults: BehaviorSubject<string>; /** * Internal translated label for number of visible results */ protected _translationShowing: BehaviorSubject<string>; ngOnChanges(changes: FudisComponentChanges<SelectDropdownComponent>): void; static ɵfac: i0.ɵɵFactoryDeclaration<SelectDropdownComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SelectDropdownComponent, "fudis-select-dropdown", never, { "selectVariant": { "alias": "selectVariant"; "required": true; }; "results": { "alias": "results"; "required": false; }; "autocompleteHelpText": { "alias": "autocompleteHelpText"; "required": false; }; "autocompleteNoResultsText": { "alias": "autocompleteNoResultsText"; "required": false; }; "filterText": { "alias": "filterText"; "required": false; }; "multiselect": { "alias": "multiselect"; "required": false; }; "parentId": { "alias": "parentId"; "required": false; }; "size": { "alias": "size"; "required": false; }; "open": { "alias": "open"; "required": false; }; }, {}, never, ["*"], false, never>; }