UNPKG

@taiga-ui/addon-mobile

Version:

Extension package for Taiga UI that adds support for mobile specific behaviors such as custom data pickers, dropdowns, etc.

23 lines (22 loc) 1.17 kB
import { type TuiSheetDialogOptions } from '@taiga-ui/addon-mobile/components/sheet-dialog'; import { type TuiDialogContext, type TuiDialogOptions } from '@taiga-ui/core/components/dialog'; import { type PolymorpheusContent } from '@taiga-ui/polymorpheus'; import { type Observable } from 'rxjs'; import * as i0 from "@angular/core"; export interface TuiResponsiveDialogOptions<I = undefined> extends Omit<TuiDialogOptions<I>, 'label'>, TuiSheetDialogOptions<unknown> { readonly data: I extends void ? undefined : I & { button?: string; }; readonly label: PolymorpheusContent; } /** * Same as `TuiDialogService` but automatically switches to `TuiSheetDialogService` on mobile */ export declare class TuiResponsiveDialogService { private readonly isMobile; private readonly dialogs; private readonly sheets; open<G = void>(content: PolymorpheusContent<TuiDialogContext<G> & TuiResponsiveDialogOptions<any>>, options?: Partial<TuiResponsiveDialogOptions<any>>): Observable<G>; static ɵfac: i0.ɵɵFactoryDeclaration<TuiResponsiveDialogService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<TuiResponsiveDialogService>; }