barsa-auth 2.3.21 → 2.3.24

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.
@@ -1,18 +0,0 @@
1
- import { WritableSignal, EventEmitter } from '@angular/core';
2
- import { LoginSettings, LoginState } from '../controllers';
3
- import { PortalService } from 'barsa-novin-ray-core';
4
- import * as i0 from "@angular/core";
5
- export declare class BarsaAuthComponent {
6
- verified: EventEmitter<any>;
7
- appSettings: import("@angular/core").InputSignal<LoginSettings | undefined>;
8
- state: WritableSignal<LoginState>;
9
- mobile: WritableSignal<string>;
10
- loading: WritableSignal<boolean>;
11
- _portalService: PortalService;
12
- onChangeState(state: LoginState): void;
13
- onChangeMobile(): void;
14
- onOtpSent(mobile: string): void;
15
- onLoggedIn(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<BarsaAuthComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<BarsaAuthComponent, "ba-auth", never, { "appSettings": { "alias": "appSettings"; "required": false; "isSignal": true; }; }, { "verified": "verified"; }, never, never, false, never>;
18
- }
@@ -1,22 +0,0 @@
1
- import { ComponentFactoryResolver } from '@angular/core';
2
- import { BaseModule, DynamicComponentService } from 'barsa-novin-ray-core';
3
- import { BarsaAuthComponent, EnterMobileComponent, LoginComponent, TimerCountDownComponent, UserPassComponent, VerificationComponent } from '../public-api';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "./barsa-auth/barsa-auth.component";
6
- import * as i2 from "./enter-mobile/enter-mobile.component";
7
- import * as i3 from "./verification/verification.component";
8
- import * as i4 from "./timer-countdown/timer-countdown.component";
9
- import * as i5 from "./user-pass/user-pass.component";
10
- import * as i6 from "./login/login.component";
11
- import * as i7 from "@angular/common";
12
- import * as i8 from "@angular/forms";
13
- import * as i9 from "barsa-novin-ray-core";
14
- export declare class BarsaAuthModule extends BaseModule {
15
- protected dcm: DynamicComponentService;
16
- protected componentFactoryResolver: ComponentFactoryResolver;
17
- protected dynamicComponents: (typeof BarsaAuthComponent | typeof EnterMobileComponent | typeof UserPassComponent | typeof TimerCountDownComponent | typeof VerificationComponent | typeof LoginComponent)[];
18
- constructor(dcm: DynamicComponentService, componentFactoryResolver: ComponentFactoryResolver);
19
- static ɵfac: i0.ɵɵFactoryDeclaration<BarsaAuthModule, never>;
20
- static ɵmod: i0.ɵɵNgModuleDeclaration<BarsaAuthModule, [typeof i1.BarsaAuthComponent, typeof i2.EnterMobileComponent, typeof i3.VerificationComponent, typeof i4.TimerCountDownComponent, typeof i5.UserPassComponent, typeof i6.LoginComponent], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i8.ReactiveFormsModule, typeof i9.BarsaNovinRayCoreModule], [typeof i1.BarsaAuthComponent, typeof i2.EnterMobileComponent, typeof i3.VerificationComponent, typeof i4.TimerCountDownComponent, typeof i5.UserPassComponent, typeof i6.LoginComponent]>;
21
- static ɵinj: i0.ɵɵInjectorDeclaration<BarsaAuthModule>;
22
- }
@@ -1,4 +0,0 @@
1
- export * from './login-mobile-controller';
2
- export * from './login-userpass-controller';
3
- export * from './login-verification-controller';
4
- export * from './models';
@@ -1,21 +0,0 @@
1
- import { FormGroup } from '@angular/forms';
2
- import { HttpClient } from '@angular/common/http';
3
- import { BaseController, IViewBase, PortalService } from 'barsa-novin-ray-core';
4
- import * as i0 from "@angular/core";
5
- export declare class LoginMobileController extends BaseController<ILoginMobileView> {
6
- _portalService: PortalService;
7
- _httpClient: HttpClient;
8
- constructor(view: ILoginMobileView);
9
- get form(): FormGroup;
10
- sendCode(otpProvider: string, e: any): void;
11
- init(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<LoginMobileController, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<LoginMobileController, never, never, {}, {}, never, never, false, never>;
14
- }
15
- export interface ILoginMobileView extends IViewBase {
16
- showError(message: any, code: any): void;
17
- form: FormGroup;
18
- codeSent: () => void;
19
- setLoading: (loading: boolean) => void;
20
- canSend: (loading: boolean) => void;
21
- }
@@ -1,22 +0,0 @@
1
- import { FormGroup } from '@angular/forms';
2
- import { HttpClient } from '@angular/common/http';
3
- import { BaseController, IViewBase, PortalService } from 'barsa-novin-ray-core';
4
- import * as i0 from "@angular/core";
5
- export declare class LoginUserPassController extends BaseController<ILoginUserPassView> {
6
- _portalService: PortalService;
7
- _httpClient: HttpClient;
8
- constructor(view: ILoginUserPassView);
9
- get form(): FormGroup;
10
- login(e: any): void;
11
- init(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<LoginUserPassController, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<LoginUserPassController, never, never, {}, {}, never, never, false, never>;
14
- }
15
- export interface ILoginUserPassView extends IViewBase {
16
- form: FormGroup;
17
- showError(message: any, code: any): void;
18
- visibleCaptcha: (visible: boolean) => void;
19
- setLoading: (loading: boolean) => void;
20
- setValid: (isValid: boolean) => void;
21
- userLoggedIn: () => void;
22
- }
@@ -1,22 +0,0 @@
1
- import { FormGroup } from '@angular/forms';
2
- import { HttpClient } from '@angular/common/http';
3
- import { BaseController, IViewBase } from 'barsa-novin-ray-core';
4
- import * as i0 from "@angular/core";
5
- export declare class LoginVerificationController extends BaseController<ILoginVerificationView> {
6
- canVerify: import("@angular/core").WritableSignal<boolean>;
7
- _httpClient: HttpClient;
8
- constructor(view: ILoginVerificationView);
9
- get form(): FormGroup;
10
- resendCode(otpProvider: string): void;
11
- verifyCode(otpProvider: string, e: any): void;
12
- init(): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<LoginVerificationController, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<LoginVerificationController, never, never, {}, {}, never, never, false, never>;
15
- }
16
- export interface ILoginVerificationView extends IViewBase {
17
- form: FormGroup;
18
- codeVerified: () => void;
19
- startCountDown: () => void;
20
- setResetLoading: (loading: boolean) => void;
21
- setLoading: (loading: boolean) => void;
22
- }
@@ -1,23 +0,0 @@
1
- import { FilePictureInfoModel } from 'barsa-novin-ray-core';
2
- export type LoginState = 'user-pass' | 'enter-mobile' | 'verification';
3
- export interface LoginSettings {
4
- Title: string;
5
- Subtitle: string;
6
- Section1Title: string;
7
- Section1Description: string;
8
- HideGovSso: boolean;
9
- LogoOnTop: boolean;
10
- UserPassEnable: boolean;
11
- GovSSOHref: string;
12
- DefaultState: string;
13
- OtpProvider: string;
14
- MobileDescription: string;
15
- LoginFooter: string;
16
- BackgroundPicture?: FilePictureInfoModel;
17
- HeightOfBackground?: number;
18
- HeightOfLogo?: number;
19
- LoginType: number;
20
- Logo: FilePictureInfoModel | null;
21
- WidthOfBackground?: number;
22
- WidthOfLogo?: number;
23
- }
@@ -1,25 +0,0 @@
1
- import { EventEmitter, TemplateRef } from '@angular/core';
2
- import { ILoginMobileView, LoginMobileController } from '../controllers';
3
- import { FormBuilder, FormGroup } from '@angular/forms';
4
- import { ViewBase } from 'barsa-novin-ray-core';
5
- import * as i0 from "@angular/core";
6
- export declare class EnterMobileComponent extends ViewBase<LoginMobileController> implements ILoginMobileView {
7
- private fb;
8
- otpSent: EventEmitter<string>;
9
- errorTemplate: TemplateRef<any>;
10
- otpProvider: string;
11
- description: string;
12
- controller: LoginMobileController;
13
- form: FormGroup;
14
- loading: import("@angular/core").WritableSignal<boolean>;
15
- isValid: import("@angular/core").WritableSignal<boolean>;
16
- constructor(fb: FormBuilder);
17
- get mobile(): any;
18
- codeSent(): void;
19
- ngOnInit(): void;
20
- setLoading(loading: boolean): void;
21
- canSend(isValid: boolean): void;
22
- onSendCode(): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<EnterMobileComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<EnterMobileComponent, "ba-enter-mobile", never, { "errorTemplate": { "alias": "errorTemplate"; "required": false; }; "otpProvider": { "alias": "otpProvider"; "required": false; }; "description": { "alias": "description"; "required": false; }; }, { "otpSent": "otpSent"; }, never, [".form-footer"], false, never>;
25
- }
@@ -1,23 +0,0 @@
1
- import { WritableSignal, OnInit, TemplateRef } from '@angular/core';
2
- import { LoginSettings } from '../controllers';
3
- import * as i0 from "@angular/core";
4
- export declare class LoginComponent implements OnInit {
5
- _errorTemplate: TemplateRef<any>;
6
- settings: Settings;
7
- appSettings: WritableSignal<LoginSettings>;
8
- logoUrl: string;
9
- backgroundUrl: string;
10
- title: string;
11
- hideGovSso: boolean;
12
- private _router;
13
- private _portalService;
14
- private _activatedRoute;
15
- ngOnInit(): void;
16
- onVerified(): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<LoginComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<LoginComponent, "ba-login", never, {}, {}, never, never, false, never>;
19
- }
20
- interface Settings {
21
- LoginSettingsValue: LoginSettings;
22
- }
23
- export {};
@@ -1,19 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { BaseComponent } from 'barsa-novin-ray-core';
3
- import * as i0 from "@angular/core";
4
- export declare class TimerCountDownComponent extends BaseComponent {
5
- resend: EventEmitter<any>;
6
- minutes: number;
7
- loading: boolean;
8
- showResend: import("@angular/core").WritableSignal<boolean>;
9
- minutesText: import("@angular/core").WritableSignal<string>;
10
- secondText: import("@angular/core").WritableSignal<string>;
11
- _interval: any;
12
- private _countDownDate;
13
- ngOnInit(): void;
14
- ngOnDestroy(): void;
15
- startCountDown(): void;
16
- _calc(): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<TimerCountDownComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<TimerCountDownComponent, "ba-timer-countdown", never, { "minutes": { "alias": "minutes"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "resend": "resend"; }, never, never, false, never>;
19
- }
@@ -1,31 +0,0 @@
1
- import { EventEmitter, TemplateRef } from '@angular/core';
2
- import { ILoginUserPassView, LoginUserPassController } from '../controllers';
3
- import { FormBuilder, FormGroup } from '@angular/forms';
4
- import { ViewBase } from 'barsa-novin-ray-core';
5
- import * as i0 from "@angular/core";
6
- export declare class UserPassComponent extends ViewBase<LoginUserPassController> implements ILoginUserPassView {
7
- private fb;
8
- loggedIn: EventEmitter<void>;
9
- errorTemplate: TemplateRef<any>;
10
- otpProvider: string;
11
- controller: LoginUserPassController;
12
- form: FormGroup;
13
- canLogin: import("@angular/core").WritableSignal<boolean>;
14
- loading: import("@angular/core").WritableSignal<boolean>;
15
- capId: import("@angular/core").WritableSignal<string>;
16
- now: import("@angular/core").WritableSignal<string>;
17
- showCaptcha: import("@angular/core").WritableSignal<boolean>;
18
- constructor(fb: FormBuilder);
19
- get username(): any;
20
- get password(): any;
21
- get cap(): any;
22
- userLoggedIn(): void;
23
- setLoading(loading: boolean): void;
24
- setValid(isValid: boolean): void;
25
- showError(message: string, code: number): void;
26
- visibleCaptcha(visible: boolean): void;
27
- onRefreshCaptcha(): void;
28
- onSendCode(): void;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<UserPassComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<UserPassComponent, "ba-user-pass", never, { "errorTemplate": { "alias": "errorTemplate"; "required": false; }; "otpProvider": { "alias": "otpProvider"; "required": false; }; }, { "loggedIn": "loggedIn"; }, never, [".form-footer"], false, never>;
31
- }
@@ -1,41 +0,0 @@
1
- import { ElementRef, EventEmitter, NgZone, QueryList, TemplateRef } from '@angular/core';
2
- import { FormBuilder, FormGroup } from '@angular/forms';
3
- import { ViewBase } from 'barsa-novin-ray-core';
4
- import { ILoginVerificationView, LoginVerificationController } from '../controllers';
5
- import { TimerCountDownComponent } from '../timer-countdown/timer-countdown.component';
6
- import * as i0 from "@angular/core";
7
- export declare class VerificationComponent extends ViewBase<LoginVerificationController> implements ILoginVerificationView {
8
- private fb;
9
- _timerCountDown: TimerCountDownComponent;
10
- _inputsEl: QueryList<ElementRef>;
11
- _loadingBtn: TemplateRef<any>;
12
- otpVerified: EventEmitter<any>;
13
- changeMobile: EventEmitter<any>;
14
- mobile: string;
15
- otpProvider: string;
16
- errorTemplate: TemplateRef<any>;
17
- controller: LoginVerificationController;
18
- form: FormGroup;
19
- capId: import("@angular/core").WritableSignal<string>;
20
- resendLoading: import("@angular/core").WritableSignal<boolean>;
21
- loading: import("@angular/core").WritableSignal<boolean>;
22
- showCaptcha: import("@angular/core").WritableSignal<boolean>;
23
- _ngZone: NgZone;
24
- now: import("@angular/core").WritableSignal<string>;
25
- constructor(fb: FormBuilder);
26
- get in1(): any;
27
- ngOnInit(): void;
28
- showError(message: string, code: number): void;
29
- codeVerified(): void;
30
- onRefreshCaptcha(): void;
31
- onVerifyCode(): void;
32
- onResendOtp(): void;
33
- _verifyCode(): void;
34
- setResetLoading(loading: boolean): void;
35
- setLoading(loading: boolean): void;
36
- startCountDown(): void;
37
- get invArr(): ElementRef[];
38
- get canVerify(): boolean;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<VerificationComponent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<VerificationComponent, "ba-verification", never, { "mobile": { "alias": "mobile"; "required": false; }; "otpProvider": { "alias": "otpProvider"; "required": false; }; "errorTemplate": { "alias": "errorTemplate"; "required": false; }; }, { "otpVerified": "otpVerified"; "changeMobile": "changeMobile"; }, never, never, false, never>;
41
- }
package/public-api.d.ts DELETED
@@ -1,8 +0,0 @@
1
- export * from './lib/barsa-auth/barsa-auth.component';
2
- export * from './lib/enter-mobile/enter-mobile.component';
3
- export * from './lib/user-pass/user-pass.component';
4
- export * from './lib/verification/verification.component';
5
- export * from './lib/timer-countdown/timer-countdown.component';
6
- export * from './lib/login/login.component';
7
- export * from './lib/controllers';
8
- export * from './lib/barsa-auth.module';