UNPKG

catng

Version:

Angular Dynamic Form Input Component

57 lines (56 loc) 2.56 kB
import { NavigationExtras, Router } from '@angular/router'; import { ConfirmationService, MessageService } from 'primeng/api'; import { JwtHelperService } from './jwthelper.service'; import { Observable } from 'rxjs'; import { HttpClient, HttpErrorResponse, HttpResponse } from '@angular/common/http'; import { ValidationErrors } from '@angular/forms'; import { AppConfig, User } from '../models'; import { BaseComponent } from '../components'; import * as i0 from "@angular/core"; export declare class GlobalService { private router; private confirmationService; private messageService; private jwtHelper; appConfig: AppConfig; http: HttpClient; constructor(router: Router, confirmationService: ConfirmationService, messageService: MessageService, jwtHelper: JwtHelperService); getUserLocal(): User | any; isAuthenticated(): boolean; getApiName(): string; navigate(commands: any[], extras?: NavigationExtras): void; onError(error: HttpErrorResponse | any, cmp?: BaseComponent): Observable<never>; onSuccess(cmp?: BaseComponent): void; showMessage(status: any, mesaj?: string, konu?: string): void; onErrorMessage(event: any, mesaj?: string, konu?: string): void; showMessageData(data: any): void; confirm(header: string, message: string, callback: { (): void; }, icon?: string, acceptLabel?: string, rejectLabel?: string): void; getIpClient(): Observable<any>; convertToDate(tarih: any): Date | null; convertToTime(saatInput: string): Date; convertToStringTime(tarih: any): string; convertToDatetoString(tarih: any): string | null; convertToLocalDate(responseDate: any): any; getCookieValue(cookieName: string): string; getTokenLocal(): string | any; setTokenLocal(token: string): void; setRefreshTokenLocal(token: string): void; removeToken(): void; setLocalStorage(key: string, value: string): void; removeLocalStorage(key: string): void; getLocalStorage(key: string): string | any; removeMenuList(): void; isEmpty(deger: any, bosGecilebilir?: boolean): boolean; isNumber(deger: any): boolean; isDate(data: any): boolean; isTckn(tckn: number): boolean; isIban(deger: string): boolean; iban(control: any): ValidationErrors | null; tckn(control: any): ValidationErrors | null; handleBlobResponse(event: HttpResponse<any>): void; getBodyHeight(): number; static ɵfac: i0.ɵɵFactoryDeclaration<GlobalService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<GlobalService>; }