@webilix/ngx-helper-m3
Version:
Helper library for Angular and Material 3
37 lines (36 loc) • 1.97 kB
TypeScript
import { ComponentType } from '@angular/cdk/portal';
import { MatBottomSheet, MatBottomSheetConfig } from '@angular/material/bottom-sheet';
import { MatDialog, MatDialogConfig } from '@angular/material/dialog';
import { INgxHelperContainerConfig } from './container.interface';
import * as i0 from "@angular/core";
interface IContainerData {
readonly component: ComponentType<any>;
readonly title: string;
readonly config: INgxHelperContainerConfig;
}
declare class NgxHelperContainerCalss {
private readonly matBottomSheet;
private readonly matDialog;
private readonly container;
constructor(matBottomSheet: MatBottomSheet, matDialog: MatDialog, container: IContainerData);
dialog<T>(): void;
dialog<T>(onResponse: (response: T) => void): void;
dialog<T>(onResponse: (response: T) => void, onDismiss: () => void): void;
dialog<T>(onResponse: (response: T) => void, config: MatDialogConfig): void;
dialog<T>(onResponse: (response: T) => void, onDismiss: () => void, config: MatDialogConfig): void;
bottomSheet<T>(): void;
bottomSheet<T>(onResponse: (result: T) => void): void;
bottomSheet<T>(onResponse: (result: T) => void, onDismiss: () => void): void;
bottomSheet<T>(onResponse: (result: T) => void, config: MatBottomSheetConfig): void;
bottomSheet<T>(onResponse: (result: T) => void, onDismiss: () => void, config: MatBottomSheetConfig): void;
}
export declare class NgxHelperContainerService {
private readonly matBottomSheet;
private readonly matDialog;
constructor(matBottomSheet: MatBottomSheet, matDialog: MatDialog);
init(component: ComponentType<any>, title: string): NgxHelperContainerCalss;
init(component: ComponentType<any>, title: string, config: INgxHelperContainerConfig): NgxHelperContainerCalss;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperContainerService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NgxHelperContainerService>;
}
export {};