@taiga-ui/kit
Version:
Taiga UI Angular main components kit
28 lines (27 loc) • 1.2 kB
TypeScript
import type { Provider } from '@angular/core';
import { InjectionToken } from '@angular/core';
import type { TuiBooleanHandler, TuiIdentityMatcher, TuiStringHandler } from '@taiga-ui/cdk/types';
/**
* @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/core`.
* TODO(v5): delete
*/
export interface TuiItemsHandlers<T> {
readonly disabledItemHandler: TuiBooleanHandler<T>;
readonly identityMatcher: TuiIdentityMatcher<T>;
readonly stringify: TuiStringHandler<T>;
}
/**
* @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/core`.
* TODO(v5): delete
*/
export declare const TUI_DEFAULT_ITEMS_HANDLERS: TuiItemsHandlers<unknown>;
/**
* @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/core`.
* TODO(v5): delete
*/
export declare const TUI_ITEMS_HANDLERS: InjectionToken<TuiItemsHandlers<unknown>>;
/**
* @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/core`.
* TODO(v5): delete
*/
export declare function tuiItemsHandlersProvider<T>(options: Partial<TuiItemsHandlers<T>>): Provider;