kwikui
Version:
KwikID's UI Component Library in Angular
61 lines (60 loc) • 1.57 kB
TypeScript
import { BehaviorSubject, Observable } from "rxjs";
import * as i0 from "@angular/core";
export declare class KwikUIToasterService {
showToasterSubject: BehaviorSubject<boolean>;
showToaster: Observable<any>;
duration: number;
message: string;
position: string;
customPositionStyles: {
[key: string]: string;
};
offset: {
x: number;
y: number;
};
shape: string;
size: string;
type: string;
id: string;
customIcons: {
info?: string;
success?: string;
warning?: string;
error?: string;
};
isShowToaster: boolean;
private autoDismissTimer;
constructor();
private validateInputProperty;
show(options?: {
message?: string;
type?: string;
position?: string;
duration?: number;
shape?: string;
size?: string;
offset?: {
x: number;
y: number;
};
customIcons?: {
info?: string;
success?: string;
warning?: string;
error?: string;
};
}): boolean;
hide(): boolean;
/**
* Starts auto-dismiss timer based on duration
*/
private startAutoDismissTimer;
private clearAutoDismissTimer;
/**
* Calculates position with x and y offsets relative to standard position
*/
private calculatePositionWithOffset;
static ɵfac: i0.ɵɵFactoryDeclaration<KwikUIToasterService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<KwikUIToasterService>;
}