@taiga-ui/core
Version:
Core library for creating Angular components and applications using Taiga UI
31 lines (30 loc) • 1.77 kB
TypeScript
import { type AfterContentChecked, type AfterContentInit } from '@angular/core';
import { type TuiSizeL, type TuiSizeS } from '@taiga-ui/core/types';
import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
import { type TuiDataListAccessor } from './data-list.tokens';
import * as i0 from "@angular/core";
export declare function tuiInjectDataListSize(): TuiSizeL | TuiSizeS;
export declare class TuiDataListComponent<T> implements TuiDataListAccessor<T>, AfterContentChecked, AfterContentInit {
private readonly legacyOptionsQuery;
private readonly optionsQuery;
private origin?;
private readonly ngZone;
private readonly destroyRef;
private readonly el;
private readonly cdr;
private readonly contentReady$;
protected readonly fallback: import("@angular/core").Signal<string | undefined>;
protected readonly empty: import("@angular/core").WritableSignal<boolean>;
emptyContent: PolymorpheusContent;
size: "m" | "l" | "s";
readonly options: import("@angular/core").Signal<readonly T[]>;
onKeyDownArrow(current: HTMLElement, step: number): void;
handleFocusLossIfNecessary(element?: Element): void;
ngAfterContentInit(): void;
ngAfterContentChecked(): void;
getOptions(includeDisabled?: boolean): readonly T[];
protected onFocusIn(relatedTarget: HTMLElement, currentTarget: HTMLElement): void;
private get elements();
static ɵfac: i0.ɵɵFactoryDeclaration<TuiDataListComponent<any>, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TuiDataListComponent<any>, "tui-data-list", never, { "emptyContent": { "alias": "emptyContent"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, ["legacyOptionsQuery", "optionsQuery"], ["*"], true, never>;
}