UNPKG

ngx-sp-infra

Version:
42 lines (41 loc) 2.17 kB
import { TemplateRef } from '@angular/core'; import { Observable } from 'rxjs'; import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal'; import * as i0 from "@angular/core"; export declare class MessageService { private bsModalService; constructor(bsModalService: BsModalService); private showAlert; /** Exibe uma mensagem do tipo danger */ showAlertDanger(message: string): void; /** Exibe uma mesagem do tipo success */ showAlertSuccess(message: string): void; /** Exibe uma mesagem do tipo info */ showAlertInfo(message: string): void; /** Exibe uma mesagem do tipo primary */ showAlertPrimary(message: string): void; /** Exibe uma mesagem do tipo secondary */ showAlertSecondary(message: string): void; /** Exibe uma mesagem do tipo warning */ showAlertWarning(message: string): void; /** Exibe uma mesagem do tipo light */ showAlertLight(message: string): void; /** Exibe uma mesagem do tipo dark */ showAlertDark(message: string): void; /** Exibe um modal de inserção no banco */ showCreate(title: string, message: string, okText: string, cancelText: string, okButton: Function, fields: string[]): Observable<boolean> | undefined; /** Exibe uma mesagem do tipo confirmação */ showConfirm(title: string, message: string, okText?: string, cancelText?: string, okButton?: Function, paramatroOkButton?: boolean): Observable<'confirmado' | 'cancelado'>; /** * Utilize este método para mostrar na tela um modal que não tem fundo branco, bordas e * backdrop (no quesito sair do modal) * * O modal também vai estar centralizado no meio da tela (verticalmente e horizontalmente). * @param elemento Elemento a ser mostrado na tela. * @param id Id especifico a este modal. Opcional. * @returns Referencia ao modal mostrado na tela. */ showModalLoading(elemento: TemplateRef<any> | (new (...args: any[]) => unknown), elemID?: string | number, initialState?: Partial<unknown>): BsModalRef; static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<MessageService>; }