import * as i0 from '@angular/core'; import { OnInit, AfterContentChecked, ElementRef, ChangeDetectorRef, AfterViewInit, EventEmitter, OnChanges, PipeTransform } from '@angular/core'; import * as i13 from '@angular/forms'; import { AbstractControl, ValidationErrors, UntypedFormControl, NgControl, UntypedFormGroup, UntypedFormArray } from '@angular/forms'; import { Moment } from 'moment'; import * as i18 from '@ng-bootstrap/ng-bootstrap'; import { NgbDateParserFormatter, NgbCalendar, NgbInputDatepicker, NgbDateStruct, NgbInputDatepickerConfig, NgbDatepicker } from '@ng-bootstrap/ng-bootstrap'; export * from '@ng-bootstrap/ng-bootstrap'; import { BehaviorSubject } from 'rxjs'; import * as i14 from 'ngx-toastr'; import { ToastrService, IndividualConfig } from 'ngx-toastr'; export * from 'ngx-toastr'; import * as i15 from 'ngx-dropzone-wrapper'; import { DropzoneDirective, DropzoneConfigInterface } from 'ngx-dropzone-wrapper'; import * as ng_ipa_library from 'ng-ipa-library'; import * as i12 from '@angular/common'; import * as i16 from 'ngx-captcha'; import { HttpInterceptor, HttpRequest, HttpHandler, HttpClient } from '@angular/common/http'; declare class IPAFormService { private parserFormatter; constructor(parserFormatter: NgbDateParserFormatter); /** * check link is valid. */ static linkValidation(control: AbstractControl): ValidationErrors | null; /** * check mp4 link is valid. */ static mp4LinkValidation(control: AbstractControl): ValidationErrors | null; /** * check mobile number is valid. */ static mobileNo(control: AbstractControl): ValidationErrors | null; /** * check email is valid. */ static email(control: AbstractControl): ValidationErrors | null; /** * check national ID or iqama ID is valid. */ static checkID(control: AbstractControl): ValidationErrors | null; static validHijriDate(control: AbstractControl): ValidationErrors | null; getErrorMessage(control: UntypedFormControl, patternErrorMsg: string | undefined, isArabic: boolean): string | null; /** * convert gregorian date to hijri date (Based on Umm al-Qura calculations). * @param date: gregorian date * @param format: iDD => day: ١٥, iMM => month: ٠٤, iMMM => month: ربيع ٢, * iMMMM => ربيع الثاني, iYY => year: ٤٢, iYYYY => year: ١٤٤٢, * dd => ن, ddd => إثنين, dddd => الإثنين * @example 'iYYYY/iM/iDهـ الموافق YYYY/M/Dم' * '١٤٤٢/٠٤/١٥هـ الموافق ٢٠٢٠/١١/٣٠' */ convertToHijriDate(date: string, format?: string, lang?: string): string; convertToGregorianDate(date: Moment, format?: string, lang?: string): string; getCurrentHijriDate(): string; getCurrentHijriYear(): number; private getValidatorErrorMessage; private addPatternMsg; private getNgbDatepickerErrorMsg; private static checkHijriDateValid; private static convertToEn; private static nationalIdValidate; private static iqamaIdValidate; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class TextInputComponent implements OnInit, AfterContentChecked { private validationService; controlDir: NgControl; private cd; input: ElementRef; id: string; type: string; label: string; placeholder: string; required: boolean; patternErrorMsg: string; onlyNumber: boolean; pattern: string; classes: string; containerClasses: string; isArabicForm: boolean; formControl: UntypedFormControl; errorMsg: string | null; constructor(validationService: IPAFormService, controlDir: NgControl, cd: ChangeDetectorRef); ngAfterContentChecked(): void; ngOnInit(): void; onChange(event: any): void; onTouched(): void; writeValue(obj: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; checkIsNumber(event: Event): void; get errorMessage(): string | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class TextareaInputComponent implements OnInit, AfterContentChecked { private validationService; controlDir: NgControl; private cd; input: ElementRef; id: string; label: string; placeholder: string; required: boolean; patternErrorMsg: string; pattern: string; classes: string; containerClasses: string; isArabicForm: boolean; formControl: UntypedFormControl; errorMsg: string | null; constructor(validationService: IPAFormService, controlDir: NgControl, cd: ChangeDetectorRef); ngAfterContentChecked(): void; ngOnInit(): void; onChange(event: any): void; onTouched(): void; writeValue(obj: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; get errorMessage(): string | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DropdownInputComponent implements OnInit, AfterContentChecked { private validationService; controlDir: NgControl; private cd; input: HTMLSelectElement; id: string; label: string; items: any[]; textField: string; valueField: string; required: boolean; firstItemLabel: string; searchable: boolean; notFoundText: string; classes: string; containerClasses: string; isArabicForm: boolean; fromGenerateForm: boolean; formControl: UntypedFormControl; errorMsg: string | null; tempItems: any[]; dropdownButtonSpan: Element | null; dropdownItems: NodeListOf; hiddenSelect: HTMLSelectElement | null; keyword: string; constructor(validationService: IPAFormService, controlDir: NgControl, cd: ChangeDetectorRef); ngOnInit(): void; ngAfterContentChecked(): void; onChange(event: any): void; onTouched(): void; writeValue(obj: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; get errorMessage(): string | null; searchFilter(): void; onDropdownOpen(): void; onDropdownKeydown(event: KeyboardEvent): void; dropdownItemClicked(index: number): void; private updateValueAndTrigger; private initCustomDropdowns; private normalizeArabic; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface ExceptionUrl { path: string; method: string; } declare class LoaderService { isLoading: BehaviorSubject; urls: ExceptionUrl[]; constructor(); setExceptionUrls(urls: ExceptionUrl[]): void; addExceptionUrl(url: ExceptionUrl): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class LoaderComponent implements AfterViewInit { private loaderService; private cdr; loading: boolean; isLocal: boolean; constructor(loaderService: LoaderService, cdr: ChangeDetectorRef); ngAfterViewInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface GenerateForm { columns: Column[]; } interface Column { arabicLabel: string; englishLabel: string; formControlName: string; validationPattern?: string; inputClasses?: string; containerClasses?: string; valueField?: string; textField?: string; patternArErrorMsg?: string; patternEnErrorMsg?: string; type: string; size?: number; required: boolean; data?: Data[] | any[]; searchable?: boolean; notFoundText?: string; acceptedFiles?: string; multipleFile?: number; apiUrl?: string; autoUploadFile?: boolean; apiURlMethod?: string; authorization?: string; } interface Data { id: number; description: string; } declare class GenerateFormComponent implements OnInit { private validationService; generateForm: UntypedFormGroup; form: GenerateForm; isArabicForm: boolean; siteKey: string; recaptchaSize: 'compact' | 'normal'; lang: 'ar' | 'en'; recaptchaType: 'image' | 'audio'; theme: 'light' | 'dark'; useGlobalDomain: boolean; successUpload: EventEmitter; fileAdded: EventEmitter; fileDeleted: EventEmitter; errorMsg: string | null; constructor(validationService: IPAFormService); ngOnInit(): void; getFormControls(formControlName: string): UntypedFormArray; getErrorMessage(formControlName: string): string | null; SuccessUpload(event: any): void; FileAdded(file: any, formControlName: string): void; FileDeleted(event: any, formControlName: string): void; private changeDataValueForEngForm; private createForm; private addCheckboxControl; private getCheckboxSelectedValues; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface Files { file: File; error: string; } declare class FileUploadComponent implements OnInit { private toastrService; dropzoneDir: DropzoneDirective; isArabicForm: boolean; label: string; required: boolean; acceptedFiles: string; multiple: number; maxFileSize: number; method: string; autoUpload: boolean; apiUrl: string; authorization: string; disabled: boolean; successUpload: EventEmitter; fileAdded: EventEmitter; fileDeleted: EventEmitter; dragEnter: boolean; config: DropzoneConfigInterface; filesAdded: File[]; currentFiles: Files[]; hasMaxFileExceeded: boolean; fileIconDone: string; fileIconError: string; fileMessage: string; formControl: UntypedFormControl; constructor(toastrService: ToastrService); ngOnInit(): void; operationCompleted(e: any): void; onUploadSuccess(e: any): void; onUploadError(args: any): void; fileWasAdded(e: File): void; onEnterKey(event: any): void; sending(e: any): void; reset(e: any): void; deleteFile(file: File): void; maxFilesExceeded(file: any): void; private formatAcceptedFiles; private setConfiguration; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DatepickerComponent implements OnInit, AfterContentChecked { private ipaFormService; calendar: NgbCalendar; controlDir: NgControl; private cd; datepicker: NgbInputDatepicker; id: string; label: string; patternErrorMsg: string; required: boolean; maxDate: NgbDateStruct; minDate: NgbDateStruct; classes: string; containerClasses: string; isArabicForm: boolean; isHijriDatepicker: boolean; today: ng_ipa_library.NgbDate; formControl: UntypedFormControl; errorMsg: string | null; years: number[]; minYear: number; maxYear: number; constructor(ipaFormService: IPAFormService, calendar: NgbCalendar, controlDir: NgControl, config: NgbInputDatepickerConfig, cd: ChangeDetectorRef); ngAfterContentChecked(): void; ngOnInit(): void; onChange(event: any): void; onTouched(): void; writeValue(obj: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; openDatepicker(event: Event): void; get errorMessage(): string | null; navigate(datepicker: NgbDatepicker, number: number): void; navigateYear(datepicker: NgbDatepicker, year: number): void; private generateYearsRange; private initCustomDropdowns; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HijriDatepickerComponent extends DatepickerComponent { isHijriDatepicker: boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class GregorianDatepickerComponent extends DatepickerComponent { isHijriDatepicker: boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class RecaptchaComponent implements OnInit { controlDir: NgControl; recaptcha: any; siteKey: string; recaptchaSize: 'compact' | 'normal'; lang: 'ar' | 'en'; recaptchaType: 'image' | 'audio'; theme: 'light' | 'dark'; useGlobalDomain: boolean; constructor(controlDir: NgControl); ngOnInit(): void; onChange(event: any): void; onTouched(): void; writeValue(obj: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ShareButtonComponent implements OnChanges { private toastrService; title: string; tooltip: string; containerClasses: string; description: string; btnLabel: string; constructor(toastrService: ToastrService); ngOnChanges(): void; alertSuccessCopy(): void; private addShareStyleAndScript; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HijriDatePipe implements PipeTransform { transform(date: string, format?: string, lang?: 'ar' | 'en'): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class PipesModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class NgIPALibraryModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class LoadingInterceptor implements HttpInterceptor { private loaderService; private requests; constructor(loaderService: LoaderService); removeRequest(req: HttpRequest): void; intercept(req: HttpRequest, next: HttpHandler): any; isException(req: HttpRequest): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface ApiResponse { statusCode: number; message: string; errors?: string[]; } interface ApiException extends ApiResponse { innerException: string; stackTrace: string; } declare class CommonService { private toastrService; constructor(toastrService: ToastrService); copyToClipboard(copyText: any, message: string): void; print(element: string, title: string, classes?: string): void; private getElementTag; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class ErrorService { private toastrService; private commonService; urls: ExceptionUrl[]; constructor(toastrService: ToastrService, commonService: CommonService); setExceptionUrls(urls: ExceptionUrl[]): void; addExceptionUrl(url: ExceptionUrl): void; showErrorMsg(response: ApiResponse, toastrConfig: Partial): void; show500ErrorMsg(response: ApiException, toastrConfig: Partial): void; private addCopyButton; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class ErrorInterceptor implements HttpInterceptor { private errorService; constructor(errorService: ErrorService); intercept(req: HttpRequest, next: HttpHandler): any; private isException; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface DecodedToken { nameid?: string; given_name?: string; email?: string; exp?: number; } declare class AuthService { currentUser: BehaviorSubject; currentUserUrl: string; constructor(); getToken(): string; getDecodedToken(): any; setCurrentUser(): void; getTokenFromHidden(): string; getDecodedTokenFromHidden(): any; setCurrentUserFromHidden(): void; setCurrentUserUrl(url: string): void; private decodeJwt; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class TokenService { urls: ExceptionUrl[]; constructor(); setExceptionUrls(urls: ExceptionUrl[]): void; addExceptionUrl(url: ExceptionUrl): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class TokenInterceptor implements HttpInterceptor { private authService; private http; private loaderService; private tokenService; refresh: boolean; constructor(authService: AuthService, http: HttpClient, loaderService: LoaderService, tokenService: TokenService); intercept(request: HttpRequest, next: HttpHandler): any; private isTokenExpired; isException(req: HttpRequest): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class myIPATokenInterceptor implements HttpInterceptor { private authService; private tokenService; constructor(authService: AuthService, tokenService: TokenService); intercept(request: HttpRequest, next: HttpHandler): any; isException(req: HttpRequest): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface Breadcrumbs { nodeName: string; nodeUrl: string | null; } declare class BreadcrumbsService { constructor(); setPageTitle(text: string): void; setMainPageTitle(text: string, url: string): void; addBreadcrumb(nodeName: string, spanClasses?: string, linkClasses?: string): void; addBreadcrumbList(nodeList: Breadcrumbs[], spanClasses?: string, linkClasses?: string): void; createBreadcrumbs(nodeList: Breadcrumbs[], spanClasses?: string, linkClasses?: string): void; removeLastBreadcrumb(): void; removeBreadcrumbByNodeName(nodeName: string): void; removeLastBreadcrumbsByLength(length: number): void; private createLink; private createSpan; private setCurrentNode; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class BreadcrumbsV2Service { constructor(); setPageTitle(text: string): void; setPageTitleHTML(text: string): void; addBreadcrumb(nodeName: string, arrowImgSrc?: string, imgClasses?: string, linkClasses?: string): void; addBreadcrumbList(nodeList: Breadcrumbs[], arrowImgSrc?: string, imgClasses?: string, linkClasses?: string): void; createBreadcrumbs(nodeList: Breadcrumbs[], arrowImgSrc?: string, imgClasses?: string, linkClasses?: string): void; removeLastBreadcrumb(): void; removeBreadcrumbByNodeName(nodeName: string): void; removeLastBreadcrumbsByLength(length: number): void; private createLink; private createSpan; private createImg; private setCurrentNode; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class AnalyticsService { addPageViewEvent(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface PagedResult { data: T[]; count: number; } interface User { id: string; email: string; displayName: string; token: string; imageUrl: string; } export { AnalyticsService, AuthService, BreadcrumbsService, BreadcrumbsV2Service, CommonService, DropdownInputComponent, ErrorInterceptor, ErrorService, FileUploadComponent, GenerateFormComponent, GregorianDatepickerComponent, HijriDatePipe, HijriDatepickerComponent, IPAFormService, LoaderComponent, LoaderService, LoadingInterceptor, NgIPALibraryModule, PipesModule, RecaptchaComponent, ShareButtonComponent, TextInputComponent, TextareaInputComponent, TokenInterceptor, TokenService, myIPATokenInterceptor }; export type { ApiException, ApiResponse, Breadcrumbs, Column, Data, DecodedToken, ExceptionUrl, GenerateForm, PagedResult, User };