ng-ipa-library 6.2.30 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/ng-ipa-library.mjs +116 -244
- package/fesm2022/ng-ipa-library.mjs.map +1 -1
- package/index.d.ts +568 -5
- package/package.json +8 -13
- package/src/lib/assets/ngIPAStyle.scss +1 -52
- package/lib/core/components/loading/loading.component.d.ts +0 -13
- package/lib/core/interceptors/error.interceptor.d.ts +0 -12
- package/lib/core/interceptors/loading.interceptor.d.ts +0 -14
- package/lib/core/interceptors/myIPAToken.interceptor.d.ts +0 -14
- package/lib/core/interceptors/token.interceptor.d.ts +0 -19
- package/lib/core/services/auth.service.d.ts +0 -18
- package/lib/core/services/error.service.d.ts +0 -19
- package/lib/core/services/loader.service.d.ts +0 -12
- package/lib/core/services/token.service.d.ts +0 -10
- package/lib/generate-form/generate-form.component.d.ts +0 -35
- package/lib/ipa-form/datepicker/datepicker.component.d.ts +0 -46
- package/lib/ipa-form/datepicker/gregorian-datepicker/gregorian-datepicker.component.d.ts +0 -7
- package/lib/ipa-form/datepicker/gregorian-datepicker/gregorian18n.d.ts +0 -10
- package/lib/ipa-form/datepicker/hijri-datepicker/IslamicI18n.d.ts +0 -10
- package/lib/ipa-form/datepicker/hijri-datepicker/hijri-datepicker.component.d.ts +0 -7
- package/lib/ipa-form/dropdown-input/dropdown-input.component.d.ts +0 -42
- package/lib/ipa-form/file-upload/file-upload.component.d.ts +0 -48
- package/lib/ipa-form/file-upload/models/files.d.ts +0 -4
- package/lib/ipa-form/ipa-form.service.d.ts +0 -52
- package/lib/ipa-form/recaptcha/recaptcha.component.d.ts +0 -22
- package/lib/ipa-form/text-input/text-input.component.d.ts +0 -36
- package/lib/ipa-form/textarea-input/textarea-input.component.d.ts +0 -33
- package/lib/models/apiException.d.ts +0 -5
- package/lib/models/apiResponse.d.ts +0 -5
- package/lib/models/breadcrumbs.model.d.ts +0 -4
- package/lib/models/decodedToken.model.d.ts +0 -6
- package/lib/models/exceptionUrl.model.d.ts +0 -4
- package/lib/models/generateForm.model.d.ts +0 -31
- package/lib/models/pagedResult.d.ts +0 -4
- package/lib/models/user.model.d.ts +0 -7
- package/lib/ng-ipa-library.module.d.ts +0 -25
- package/lib/pipes/hijri-date.pipe.d.ts +0 -7
- package/lib/pipes/pipes.module.d.ts +0 -7
- package/lib/services/breadcrumbs.service.d.ts +0 -18
- package/lib/services/breadcrumbsV2.service.d.ts +0 -19
- package/lib/services/common.service.d.ts +0 -11
- package/lib/share-button/share-button.component.d.ts +0 -19
- package/lib/share-button/share-button.module.d.ts +0 -13
- package/public-api.d.ts +0 -33
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { LoaderService } from '../../services/loader.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class LoaderComponent implements AfterViewInit {
|
|
5
|
-
private loaderService;
|
|
6
|
-
private cdr;
|
|
7
|
-
loading: boolean;
|
|
8
|
-
isLocal: boolean;
|
|
9
|
-
constructor(loaderService: LoaderService, cdr: ChangeDetectorRef);
|
|
10
|
-
ngAfterViewInit(): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoaderComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LoaderComponent, "ipa-loader", never, { "isLocal": { "alias": "isLocal"; "required": false; }; }, {}, never, never, false, never>;
|
|
13
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ErrorService } from '../services/error.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ErrorInterceptor implements HttpInterceptor {
|
|
6
|
-
private errorService;
|
|
7
|
-
constructor(errorService: ErrorService);
|
|
8
|
-
intercept(req: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
9
|
-
private isException;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorInterceptor, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorInterceptor>;
|
|
12
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { LoaderService } from '../services/loader.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LoadingInterceptor implements HttpInterceptor {
|
|
6
|
-
private loaderService;
|
|
7
|
-
private requests;
|
|
8
|
-
constructor(loaderService: LoaderService);
|
|
9
|
-
removeRequest(req: HttpRequest<any>): void;
|
|
10
|
-
intercept(req: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
11
|
-
isException(req: HttpRequest<any>): boolean;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingInterceptor, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoadingInterceptor>;
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { AuthService } from '../services/auth.service';
|
|
4
|
-
import { TokenService } from '../services/token.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class myIPATokenInterceptor implements HttpInterceptor {
|
|
7
|
-
private authService;
|
|
8
|
-
private tokenService;
|
|
9
|
-
constructor(authService: AuthService, tokenService: TokenService);
|
|
10
|
-
intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
11
|
-
isException(req: HttpRequest<any>): boolean;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<myIPATokenInterceptor, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<myIPATokenInterceptor>;
|
|
14
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor, HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { AuthService } from '../services/auth.service';
|
|
4
|
-
import { LoaderService } from '../services/loader.service';
|
|
5
|
-
import { TokenService } from '../services/token.service';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class TokenInterceptor implements HttpInterceptor {
|
|
8
|
-
private authService;
|
|
9
|
-
private http;
|
|
10
|
-
private loaderService;
|
|
11
|
-
private tokenService;
|
|
12
|
-
refresh: boolean;
|
|
13
|
-
constructor(authService: AuthService, http: HttpClient, loaderService: LoaderService, tokenService: TokenService);
|
|
14
|
-
intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
15
|
-
private isTokenExpired;
|
|
16
|
-
isException(req: HttpRequest<any>): boolean;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TokenInterceptor, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TokenInterceptor>;
|
|
19
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
|
-
import { DecodedToken } from '../../models/decodedToken.model';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AuthService {
|
|
5
|
-
currentUser: BehaviorSubject<DecodedToken>;
|
|
6
|
-
currentUserUrl: string;
|
|
7
|
-
constructor();
|
|
8
|
-
getToken(): string;
|
|
9
|
-
getDecodedToken(): any;
|
|
10
|
-
setCurrentUser(): void;
|
|
11
|
-
getTokenFromHidden(): string;
|
|
12
|
-
getDecodedTokenFromHidden(): any;
|
|
13
|
-
setCurrentUserFromHidden(): void;
|
|
14
|
-
setCurrentUserUrl(url: string): void;
|
|
15
|
-
private decodeJwt;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
18
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { IndividualConfig, ToastrService } from 'ngx-toastr';
|
|
2
|
-
import { ApiException } from '../../models/apiException';
|
|
3
|
-
import { ApiResponse } from '../../models/apiResponse';
|
|
4
|
-
import { ExceptionUrl } from '../../models/exceptionUrl.model';
|
|
5
|
-
import { CommonService } from '../../services/common.service';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class ErrorService {
|
|
8
|
-
private toastrService;
|
|
9
|
-
private commonService;
|
|
10
|
-
urls: ExceptionUrl[];
|
|
11
|
-
constructor(toastrService: ToastrService, commonService: CommonService);
|
|
12
|
-
setExceptionUrls(urls: ExceptionUrl[]): void;
|
|
13
|
-
addExceptionUrl(url: ExceptionUrl): void;
|
|
14
|
-
showErrorMsg(response: ApiResponse, toastrConfig: Partial<IndividualConfig>): void;
|
|
15
|
-
show500ErrorMsg(response: ApiException, toastrConfig: Partial<IndividualConfig>): void;
|
|
16
|
-
private addCopyButton;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorService, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorService>;
|
|
19
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
|
-
import { ExceptionUrl } from '../../models/exceptionUrl.model';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class LoaderService {
|
|
5
|
-
isLoading: BehaviorSubject<boolean>;
|
|
6
|
-
urls: ExceptionUrl[];
|
|
7
|
-
constructor();
|
|
8
|
-
setExceptionUrls(urls: ExceptionUrl[]): void;
|
|
9
|
-
addExceptionUrl(url: ExceptionUrl): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoaderService, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoaderService>;
|
|
12
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ExceptionUrl } from '../../models/exceptionUrl.model';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TokenService {
|
|
4
|
-
urls: ExceptionUrl[];
|
|
5
|
-
constructor();
|
|
6
|
-
setExceptionUrls(urls: ExceptionUrl[]): void;
|
|
7
|
-
addExceptionUrl(url: ExceptionUrl): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TokenService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TokenService>;
|
|
10
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { UntypedFormArray, UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
import { IPAFormService } from '../ipa-form/ipa-form.service';
|
|
4
|
-
import { GenerateForm } from '../models/generateForm.model';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class GenerateFormComponent implements OnInit {
|
|
7
|
-
private validationService;
|
|
8
|
-
generateForm: UntypedFormGroup;
|
|
9
|
-
form: GenerateForm;
|
|
10
|
-
isArabicForm: boolean;
|
|
11
|
-
isPlatformCodeDesignSystem: boolean;
|
|
12
|
-
siteKey: string;
|
|
13
|
-
recaptchaSize: 'compact' | 'normal';
|
|
14
|
-
lang: 'ar' | 'en';
|
|
15
|
-
recaptchaType: 'image' | 'audio';
|
|
16
|
-
theme: 'light' | 'dark';
|
|
17
|
-
useGlobalDomain: boolean;
|
|
18
|
-
successUpload: EventEmitter<any>;
|
|
19
|
-
fileAdded: EventEmitter<any>;
|
|
20
|
-
fileDeleted: EventEmitter<any>;
|
|
21
|
-
errorMsg: string | null;
|
|
22
|
-
constructor(validationService: IPAFormService);
|
|
23
|
-
ngOnInit(): void;
|
|
24
|
-
getFormControls(formControlName: string): UntypedFormArray;
|
|
25
|
-
getErrorMessage(formControlName: string): string | null;
|
|
26
|
-
SuccessUpload(event: any): void;
|
|
27
|
-
FileAdded(file: any, formControlName: string): void;
|
|
28
|
-
FileDeleted(event: any, formControlName: string): void;
|
|
29
|
-
private changeDataValueForEngForm;
|
|
30
|
-
private createForm;
|
|
31
|
-
private addCheckboxControl;
|
|
32
|
-
private getCheckboxSelectedValues;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GenerateFormComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GenerateFormComponent, "ipa-generate-form", never, { "generateForm": { "alias": "generateForm"; "required": false; }; "form": { "alias": "form"; "required": false; }; "isArabicForm": { "alias": "isArabicForm"; "required": false; }; "isPlatformCodeDesignSystem": { "alias": "isPlatformCodeDesignSystem"; "required": false; }; "siteKey": { "alias": "siteKey"; "required": false; }; "recaptchaSize": { "alias": "recaptchaSize"; "required": false; }; "lang": { "alias": "lang"; "required": false; }; "recaptchaType": { "alias": "recaptchaType"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "useGlobalDomain": { "alias": "useGlobalDomain"; "required": false; }; }, { "successUpload": "successUpload"; "fileAdded": "fileAdded"; "fileDeleted": "fileDeleted"; }, never, never, false, never>;
|
|
35
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { AfterContentChecked, ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
-
import { UntypedFormControl, NgControl } from '@angular/forms';
|
|
3
|
-
import { NgbCalendar, NgbDatepicker, NgbDateStruct, NgbInputDatepicker, NgbInputDatepickerConfig } from '@ng-bootstrap/ng-bootstrap';
|
|
4
|
-
import { IPAFormService } from '../ipa-form.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class DatepickerComponent implements OnInit, AfterContentChecked {
|
|
7
|
-
private ipaFormService;
|
|
8
|
-
calendar: NgbCalendar;
|
|
9
|
-
controlDir: NgControl;
|
|
10
|
-
private cd;
|
|
11
|
-
datepicker: NgbInputDatepicker;
|
|
12
|
-
isPlatformCodeDesignSystem: boolean;
|
|
13
|
-
id: string;
|
|
14
|
-
label: string;
|
|
15
|
-
patternErrorMsg: string;
|
|
16
|
-
required: boolean;
|
|
17
|
-
maxDate: NgbDateStruct;
|
|
18
|
-
minDate: NgbDateStruct;
|
|
19
|
-
classes: string;
|
|
20
|
-
containerClasses: string;
|
|
21
|
-
isArabicForm: boolean;
|
|
22
|
-
isHijriDatepicker: boolean;
|
|
23
|
-
today: import("@ng-bootstrap/ng-bootstrap").NgbDate;
|
|
24
|
-
formControl: UntypedFormControl;
|
|
25
|
-
errorMsg: string | null;
|
|
26
|
-
years: number[];
|
|
27
|
-
minYear: number;
|
|
28
|
-
maxYear: number;
|
|
29
|
-
constructor(ipaFormService: IPAFormService, calendar: NgbCalendar, controlDir: NgControl, config: NgbInputDatepickerConfig, cd: ChangeDetectorRef);
|
|
30
|
-
ngAfterContentChecked(): void;
|
|
31
|
-
ngOnInit(): void;
|
|
32
|
-
onChange(event: any): void;
|
|
33
|
-
onTouched(): void;
|
|
34
|
-
writeValue(obj: any): void;
|
|
35
|
-
registerOnChange(fn: any): void;
|
|
36
|
-
registerOnTouched(fn: any): void;
|
|
37
|
-
openDatepicker(event: Event): void;
|
|
38
|
-
get errorMessage(): string | null;
|
|
39
|
-
navigate(datepicker: NgbDatepicker, number: number): void;
|
|
40
|
-
navigateYear(datepicker: NgbDatepicker, year: number): void;
|
|
41
|
-
private changeDatepickerTitles;
|
|
42
|
-
private generateYearsRange;
|
|
43
|
-
private initCustomDropdowns;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, [null, null, { self: true; }, null, null]>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "ipa-datepicker", never, { "isPlatformCodeDesignSystem": { "alias": "isPlatformCodeDesignSystem"; "required": false; }; "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; }; "patternErrorMsg": { "alias": "patternErrorMsg"; "required": false; }; "required": { "alias": "required"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "classes": { "alias": "classes"; "required": false; }; "containerClasses": { "alias": "containerClasses"; "required": false; }; "isArabicForm": { "alias": "isArabicForm"; "required": false; }; }, {}, never, never, false, never>;
|
|
46
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DatepickerComponent } from '../datepicker.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class GregorianDatepickerComponent extends DatepickerComponent {
|
|
4
|
-
isHijriDatepicker: boolean;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GregorianDatepickerComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GregorianDatepickerComponent, "ipa-gregorian-datepicker", never, {}, {}, never, never, false, never>;
|
|
7
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NgbDatepickerI18n, NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class Gregorian18n extends NgbDatepickerI18n {
|
|
4
|
-
getMonthShortName(month: number): string;
|
|
5
|
-
getMonthFullName(month: number): string;
|
|
6
|
-
getWeekdayLabel(weekday: number): string;
|
|
7
|
-
getDayAriaLabel(date: NgbDateStruct): string;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Gregorian18n, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<Gregorian18n>;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NgbDatepickerI18n, NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class IslamicI18n extends NgbDatepickerI18n {
|
|
4
|
-
getMonthShortName(month: number): string;
|
|
5
|
-
getMonthFullName(month: number): string;
|
|
6
|
-
getWeekdayLabel(weekday: number): string;
|
|
7
|
-
getDayAriaLabel(date: NgbDateStruct): string;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IslamicI18n, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IslamicI18n>;
|
|
10
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DatepickerComponent } from '../datepicker.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class HijriDatepickerComponent extends DatepickerComponent {
|
|
4
|
-
isHijriDatepicker: boolean;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HijriDatepickerComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HijriDatepickerComponent, "ipa-hijri-datepicker", never, {}, {}, never, never, false, never>;
|
|
7
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { AfterContentChecked, OnInit } from '@angular/core';
|
|
2
|
-
import { UntypedFormControl, NgControl } from '@angular/forms';
|
|
3
|
-
import { IPAFormService } from '../ipa-form.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class DropdownInputComponent implements OnInit, AfterContentChecked {
|
|
6
|
-
private validationService;
|
|
7
|
-
controlDir: NgControl;
|
|
8
|
-
input: HTMLSelectElement;
|
|
9
|
-
id: string;
|
|
10
|
-
isPlatformCodeDesignSystem: boolean;
|
|
11
|
-
label: string;
|
|
12
|
-
items: any[];
|
|
13
|
-
textField: string;
|
|
14
|
-
valueField: string;
|
|
15
|
-
required: boolean;
|
|
16
|
-
firstItemLabel: string;
|
|
17
|
-
searchable: boolean;
|
|
18
|
-
notFoundText: string;
|
|
19
|
-
classes: string;
|
|
20
|
-
containerClasses: string;
|
|
21
|
-
isArabicForm: boolean;
|
|
22
|
-
fromGenerateForm: boolean;
|
|
23
|
-
formControl: UntypedFormControl;
|
|
24
|
-
errorMsg: string | null;
|
|
25
|
-
dropdownButtonSpan: Element | null;
|
|
26
|
-
dropdownItems: NodeListOf<Element>;
|
|
27
|
-
hiddenSelect: HTMLSelectElement | null;
|
|
28
|
-
constructor(validationService: IPAFormService, controlDir: NgControl);
|
|
29
|
-
ngOnInit(): void;
|
|
30
|
-
ngAfterContentChecked(): void;
|
|
31
|
-
onChange(event: any): void;
|
|
32
|
-
onTouched(): void;
|
|
33
|
-
writeValue(obj: any): void;
|
|
34
|
-
registerOnChange(fn: any): void;
|
|
35
|
-
registerOnTouched(fn: any): void;
|
|
36
|
-
get errorMessage(): string | null;
|
|
37
|
-
dropdownItemClicked(index: number): void;
|
|
38
|
-
private updateValueAndTrigger;
|
|
39
|
-
private initCustomDropdowns;
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownInputComponent, [null, { self: true; }]>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownInputComponent, "ipa-dropdown-input", never, { "id": { "alias": "id"; "required": true; }; "isPlatformCodeDesignSystem": { "alias": "isPlatformCodeDesignSystem"; "required": false; }; "label": { "alias": "label"; "required": true; }; "items": { "alias": "items"; "required": true; }; "textField": { "alias": "textField"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "required": { "alias": "required"; "required": false; }; "firstItemLabel": { "alias": "firstItemLabel"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "notFoundText": { "alias": "notFoundText"; "required": false; }; "classes": { "alias": "classes"; "required": false; }; "containerClasses": { "alias": "containerClasses"; "required": false; }; "isArabicForm": { "alias": "isArabicForm"; "required": false; }; "fromGenerateForm": { "alias": "fromGenerateForm"; "required": false; }; }, {}, never, never, false, never>;
|
|
42
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { ToastrService } from 'ngx-toastr';
|
|
3
|
-
import { DropzoneConfigInterface, DropzoneDirective } from 'ngx-dropzone-wrapper';
|
|
4
|
-
import { UntypedFormControl } from '@angular/forms';
|
|
5
|
-
import { Files } from './models/files';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class FileUploadComponent implements OnInit {
|
|
8
|
-
private toastrService;
|
|
9
|
-
dropzoneDir: DropzoneDirective;
|
|
10
|
-
isArabicForm: boolean;
|
|
11
|
-
label: string;
|
|
12
|
-
required: boolean;
|
|
13
|
-
acceptedFiles: string;
|
|
14
|
-
multiple: number;
|
|
15
|
-
maxFileSize: number;
|
|
16
|
-
method: string;
|
|
17
|
-
autoUpload: boolean;
|
|
18
|
-
apiUrl: string;
|
|
19
|
-
authorization: string;
|
|
20
|
-
disabled: boolean;
|
|
21
|
-
successUpload: EventEmitter<any>;
|
|
22
|
-
fileAdded: EventEmitter<any>;
|
|
23
|
-
fileDeleted: EventEmitter<any>;
|
|
24
|
-
dragEnter: boolean;
|
|
25
|
-
config: DropzoneConfigInterface;
|
|
26
|
-
filesAdded: File[];
|
|
27
|
-
currentFiles: Files[];
|
|
28
|
-
hasMaxFileExceeded: boolean;
|
|
29
|
-
fileIconDone: string;
|
|
30
|
-
fileIconError: string;
|
|
31
|
-
fileMessage: string;
|
|
32
|
-
formControl: UntypedFormControl;
|
|
33
|
-
constructor(toastrService: ToastrService);
|
|
34
|
-
ngOnInit(): void;
|
|
35
|
-
operationCompleted(e: any): void;
|
|
36
|
-
onUploadSuccess(e: any): void;
|
|
37
|
-
onUploadError(args: any): void;
|
|
38
|
-
fileWasAdded(e: File): void;
|
|
39
|
-
onEnterKey(event: any): void;
|
|
40
|
-
sending(e: any): void;
|
|
41
|
-
reset(e: any): void;
|
|
42
|
-
deleteFile(file: File): void;
|
|
43
|
-
maxFilesExceeded(file: any): void;
|
|
44
|
-
private formatAcceptedFiles;
|
|
45
|
-
private setConfiguration;
|
|
46
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ipa-file-upload", never, { "isArabicForm": { "alias": "isArabicForm"; "required": false; }; "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "acceptedFiles": { "alias": "acceptedFiles"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "method": { "alias": "method"; "required": false; }; "autoUpload": { "alias": "autoUpload"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authorization": { "alias": "authorization"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "successUpload": "successUpload"; "fileAdded": "fileAdded"; "fileDeleted": "fileDeleted"; }, never, never, false, never>;
|
|
48
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, UntypedFormControl, ValidationErrors } from '@angular/forms';
|
|
2
|
-
import { Moment } from 'moment';
|
|
3
|
-
import { NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class IPAFormService {
|
|
6
|
-
private parserFormatter;
|
|
7
|
-
constructor(parserFormatter: NgbDateParserFormatter);
|
|
8
|
-
/**
|
|
9
|
-
* check link is valid.
|
|
10
|
-
*/
|
|
11
|
-
static linkValidation(control: AbstractControl): ValidationErrors | null;
|
|
12
|
-
/**
|
|
13
|
-
* check mp4 link is valid.
|
|
14
|
-
*/
|
|
15
|
-
static mp4LinkValidation(control: AbstractControl): ValidationErrors | null;
|
|
16
|
-
/**
|
|
17
|
-
* check mobile number is valid.
|
|
18
|
-
*/
|
|
19
|
-
static mobileNo(control: AbstractControl): ValidationErrors | null;
|
|
20
|
-
/**
|
|
21
|
-
* check email is valid.
|
|
22
|
-
*/
|
|
23
|
-
static email(control: AbstractControl): ValidationErrors | null;
|
|
24
|
-
/**
|
|
25
|
-
* check national ID or iqama ID is valid.
|
|
26
|
-
*/
|
|
27
|
-
static checkID(control: AbstractControl): ValidationErrors | null;
|
|
28
|
-
static validHijriDate(control: AbstractControl): ValidationErrors | null;
|
|
29
|
-
getErrorMessage(control: UntypedFormControl, patternErrorMsg: string | undefined, isArabic: boolean): string | null;
|
|
30
|
-
/**
|
|
31
|
-
* convert gregorian date to hijri date (Based on Umm al-Qura calculations).
|
|
32
|
-
* @param date: gregorian date
|
|
33
|
-
* @param format: iDD => day: ١٥, iMM => month: ٠٤, iMMM => month: ربيع ٢,
|
|
34
|
-
* iMMMM => ربيع الثاني, iYY => year: ٤٢, iYYYY => year: ١٤٤٢,
|
|
35
|
-
* dd => ن, ddd => إثنين, dddd => الإثنين
|
|
36
|
-
* @example 'iYYYY/iM/iDهـ الموافق YYYY/M/Dم'
|
|
37
|
-
* '١٤٤٢/٠٤/١٥هـ الموافق ٢٠٢٠/١١/٣٠'
|
|
38
|
-
*/
|
|
39
|
-
convertToHijriDate(date: string, format?: string, lang?: string): string;
|
|
40
|
-
convertToGregorianDate(date: Moment, format?: string, lang?: string): string;
|
|
41
|
-
getCurrentHijriDate(): string;
|
|
42
|
-
getCurrentHijriYear(): number;
|
|
43
|
-
private getValidatorErrorMessage;
|
|
44
|
-
private addPatternMsg;
|
|
45
|
-
private getNgbDatepickerErrorMsg;
|
|
46
|
-
private static checkHijriDateValid;
|
|
47
|
-
private static convertToEn;
|
|
48
|
-
private static nationalIdValidate;
|
|
49
|
-
private static iqamaIdValidate;
|
|
50
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IPAFormService, never>;
|
|
51
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IPAFormService>;
|
|
52
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { NgControl } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class RecaptchaComponent implements OnInit {
|
|
5
|
-
controlDir: NgControl;
|
|
6
|
-
recaptcha: any;
|
|
7
|
-
siteKey: string;
|
|
8
|
-
recaptchaSize: 'compact' | 'normal';
|
|
9
|
-
lang: 'ar' | 'en';
|
|
10
|
-
recaptchaType: 'image' | 'audio';
|
|
11
|
-
theme: 'light' | 'dark';
|
|
12
|
-
useGlobalDomain: boolean;
|
|
13
|
-
constructor(controlDir: NgControl);
|
|
14
|
-
ngOnInit(): void;
|
|
15
|
-
onChange(event: any): void;
|
|
16
|
-
onTouched(): void;
|
|
17
|
-
writeValue(obj: any): void;
|
|
18
|
-
registerOnChange(fn: any): void;
|
|
19
|
-
registerOnTouched(fn: any): void;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RecaptchaComponent, [{ self: true; }]>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RecaptchaComponent, "ipa-recaptcha", never, { "siteKey": { "alias": "siteKey"; "required": false; }; "recaptchaSize": { "alias": "recaptchaSize"; "required": false; }; "lang": { "alias": "lang"; "required": false; }; "recaptchaType": { "alias": "recaptchaType"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "useGlobalDomain": { "alias": "useGlobalDomain"; "required": false; }; }, {}, never, never, false, never>;
|
|
22
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { AfterContentChecked, ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
|
-
import { UntypedFormControl, NgControl } from '@angular/forms';
|
|
3
|
-
import { IPAFormService } from '../ipa-form.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TextInputComponent implements OnInit, AfterContentChecked {
|
|
6
|
-
private validationService;
|
|
7
|
-
controlDir: NgControl;
|
|
8
|
-
private cd;
|
|
9
|
-
input: ElementRef;
|
|
10
|
-
isPlatformCodeDesignSystem: boolean;
|
|
11
|
-
id: string;
|
|
12
|
-
type: string;
|
|
13
|
-
label: string;
|
|
14
|
-
placeholder: string;
|
|
15
|
-
required: boolean;
|
|
16
|
-
patternErrorMsg: string;
|
|
17
|
-
onlyNumber: boolean;
|
|
18
|
-
pattern: string;
|
|
19
|
-
classes: string;
|
|
20
|
-
containerClasses: string;
|
|
21
|
-
isArabicForm: boolean;
|
|
22
|
-
formControl: UntypedFormControl;
|
|
23
|
-
errorMsg: string | null;
|
|
24
|
-
constructor(validationService: IPAFormService, controlDir: NgControl, cd: ChangeDetectorRef);
|
|
25
|
-
ngAfterContentChecked(): void;
|
|
26
|
-
ngOnInit(): void;
|
|
27
|
-
onChange(event: any): void;
|
|
28
|
-
onTouched(): void;
|
|
29
|
-
writeValue(obj: any): void;
|
|
30
|
-
registerOnChange(fn: any): void;
|
|
31
|
-
registerOnTouched(fn: any): void;
|
|
32
|
-
checkIsNumber(event: Event): void;
|
|
33
|
-
get errorMessage(): string | null;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TextInputComponent, [null, { self: true; }, null]>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "ipa-text-input", never, { "isPlatformCodeDesignSystem": { "alias": "isPlatformCodeDesignSystem"; "required": false; }; "id": { "alias": "id"; "required": false; }; "type": { "alias": "type"; "required": false; }; "label": { "alias": "label"; "required": true; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "patternErrorMsg": { "alias": "patternErrorMsg"; "required": false; }; "onlyNumber": { "alias": "onlyNumber"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "classes": { "alias": "classes"; "required": false; }; "containerClasses": { "alias": "containerClasses"; "required": false; }; "isArabicForm": { "alias": "isArabicForm"; "required": false; }; }, {}, never, never, false, never>;
|
|
36
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { AfterContentChecked, ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
|
-
import { UntypedFormControl, NgControl } from '@angular/forms';
|
|
3
|
-
import { IPAFormService } from '../ipa-form.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TextareaInputComponent implements OnInit, AfterContentChecked {
|
|
6
|
-
private validationService;
|
|
7
|
-
controlDir: NgControl;
|
|
8
|
-
private cd;
|
|
9
|
-
input: ElementRef<any>;
|
|
10
|
-
isPlatformCodeDesignSystem: boolean;
|
|
11
|
-
id: string;
|
|
12
|
-
label: string;
|
|
13
|
-
placeholder: string;
|
|
14
|
-
required: boolean;
|
|
15
|
-
patternErrorMsg: string;
|
|
16
|
-
pattern: string;
|
|
17
|
-
classes: string;
|
|
18
|
-
containerClasses: string;
|
|
19
|
-
isArabicForm: boolean;
|
|
20
|
-
formControl: UntypedFormControl;
|
|
21
|
-
errorMsg: string | null;
|
|
22
|
-
constructor(validationService: IPAFormService, controlDir: NgControl, cd: ChangeDetectorRef);
|
|
23
|
-
ngAfterContentChecked(): void;
|
|
24
|
-
ngOnInit(): void;
|
|
25
|
-
onChange(event: any): void;
|
|
26
|
-
onTouched(): void;
|
|
27
|
-
writeValue(obj: any): void;
|
|
28
|
-
registerOnChange(fn: any): void;
|
|
29
|
-
registerOnTouched(fn: any): void;
|
|
30
|
-
get errorMessage(): string | null;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaInputComponent, [null, { self: true; }, null]>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaInputComponent, "ipa-textarea-input", never, { "isPlatformCodeDesignSystem": { "alias": "isPlatformCodeDesignSystem"; "required": false; }; "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "patternErrorMsg": { "alias": "patternErrorMsg"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "classes": { "alias": "classes"; "required": false; }; "containerClasses": { "alias": "containerClasses"; "required": false; }; "isArabicForm": { "alias": "isArabicForm"; "required": false; }; }, {}, never, never, false, never>;
|
|
33
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export interface GenerateForm {
|
|
2
|
-
columns: Column[];
|
|
3
|
-
}
|
|
4
|
-
export interface Column {
|
|
5
|
-
arabicLabel: string;
|
|
6
|
-
englishLabel: string;
|
|
7
|
-
formControlName: string;
|
|
8
|
-
validationPattern?: string;
|
|
9
|
-
inputClasses?: string;
|
|
10
|
-
containerClasses?: string;
|
|
11
|
-
valueField?: string;
|
|
12
|
-
textField?: string;
|
|
13
|
-
patternArErrorMsg?: string;
|
|
14
|
-
patternEnErrorMsg?: string;
|
|
15
|
-
type: string;
|
|
16
|
-
size?: number;
|
|
17
|
-
required: boolean;
|
|
18
|
-
data?: Data[] | any[];
|
|
19
|
-
searchable?: boolean;
|
|
20
|
-
notFoundText?: string;
|
|
21
|
-
acceptedFiles?: string;
|
|
22
|
-
multipleFile?: number;
|
|
23
|
-
apiUrl?: string;
|
|
24
|
-
autoUploadFile?: boolean;
|
|
25
|
-
apiURlMethod?: string;
|
|
26
|
-
authorization?: string;
|
|
27
|
-
}
|
|
28
|
-
export interface Data {
|
|
29
|
-
id: number;
|
|
30
|
-
description: string;
|
|
31
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./ipa-form/text-input/text-input.component";
|
|
3
|
-
import * as i2 from "./ipa-form/textarea-input/textarea-input.component";
|
|
4
|
-
import * as i3 from "./ipa-form/dropdown-input/dropdown-input.component";
|
|
5
|
-
import * as i4 from "./core/components/loading/loading.component";
|
|
6
|
-
import * as i5 from "./generate-form/generate-form.component";
|
|
7
|
-
import * as i6 from "./ipa-form/file-upload/file-upload.component";
|
|
8
|
-
import * as i7 from "./ipa-form/datepicker/datepicker.component";
|
|
9
|
-
import * as i8 from "./ipa-form/datepicker/hijri-datepicker/hijri-datepicker.component";
|
|
10
|
-
import * as i9 from "./ipa-form/datepicker/gregorian-datepicker/gregorian-datepicker.component";
|
|
11
|
-
import * as i10 from "./ipa-form/recaptcha/recaptcha.component";
|
|
12
|
-
import * as i11 from "@angular/common";
|
|
13
|
-
import * as i12 from "@angular/forms";
|
|
14
|
-
import * as i13 from "ngx-toastr";
|
|
15
|
-
import * as i14 from "ngx-dropzone-wrapper";
|
|
16
|
-
import * as i15 from "ngx-captcha";
|
|
17
|
-
import * as i16 from "./pipes/pipes.module";
|
|
18
|
-
import * as i17 from "@ng-bootstrap/ng-bootstrap";
|
|
19
|
-
import * as i18 from "./share-button/share-button.module";
|
|
20
|
-
import * as i19 from "@ng-select/ng-select";
|
|
21
|
-
export declare class NgIPALibraryModule {
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgIPALibraryModule, never>;
|
|
23
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgIPALibraryModule, [typeof i1.TextInputComponent, typeof i2.TextareaInputComponent, typeof i3.DropdownInputComponent, typeof i4.LoaderComponent, typeof i5.GenerateFormComponent, typeof i6.FileUploadComponent, typeof i7.DatepickerComponent, typeof i8.HijriDatepickerComponent, typeof i9.GregorianDatepickerComponent, typeof i10.RecaptchaComponent], [typeof i11.CommonModule, typeof i12.FormsModule, typeof i12.ReactiveFormsModule, typeof i13.ToastrModule, typeof i14.DropzoneModule, typeof i15.NgxCaptchaModule, typeof i16.PipesModule, typeof i17.NgbDatepickerModule, typeof i18.ShareButtonModule, typeof i19.NgSelectModule], [typeof i1.TextInputComponent, typeof i2.TextareaInputComponent, typeof i3.DropdownInputComponent, typeof i4.LoaderComponent, typeof i5.GenerateFormComponent, typeof i6.FileUploadComponent, typeof i16.PipesModule, typeof i8.HijriDatepickerComponent, typeof i9.GregorianDatepickerComponent, typeof i18.ShareButtonModule, typeof i10.RecaptchaComponent]>;
|
|
24
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<NgIPALibraryModule>;
|
|
25
|
-
}
|