vc-error-handlers 0.1.97 → 0.1.99
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/environments/environment.d.ts +39 -39
- package/{esm2020 → esm2022}/environments/environment.mjs +74 -74
- package/{esm2020 → esm2022}/lib/configuration.mjs +5 -5
- package/{esm2020 → esm2022}/lib/featureFlag/feature-flag.directive.mjs +27 -27
- package/esm2022/lib/featureFlag/feature-flag.module.mjs +20 -0
- package/{esm2020 → esm2022}/lib/featureFlag/feature-flag.service.mjs +95 -95
- package/esm2022/lib/shared/components/chunk-unavailable/chunk-unavailable.component.mjs +35 -0
- package/esm2022/lib/shared/components/component-level-server-error/component-level-server-error.component.mjs +65 -0
- package/esm2022/lib/shared/components/error-modal/error-modal.component.mjs +64 -0
- package/esm2022/lib/shared/components/page-not-found/page-not-found.component.mjs +92 -0
- package/esm2022/lib/shared/components/server-error/server-error.component.mjs +83 -0
- package/esm2022/lib/shared/components/session-expired/session-expired.component.mjs +35 -0
- package/esm2022/lib/shared/components/unauthorized/unauthorized.component.mjs +103 -0
- package/esm2022/lib/shared/constants/api-config.constants.mjs +240 -0
- package/esm2022/lib/shared/constants/error-handling.constants.mjs +63 -0
- package/{esm2020 → esm2022}/lib/shared/errorhandler/chunk-error.handler.mjs +18 -18
- package/esm2022/lib/shared/errorhandler/sentry-error.handler.mjs +47 -0
- package/esm2022/lib/shared/interceptors/http.interceptor.mjs +35 -0
- package/esm2022/lib/shared/services/global-error.service.mjs +115 -0
- package/{esm2020 → esm2022}/lib/shared/services/router.service.mjs +19 -19
- package/esm2022/lib/shared/services/util.service.mjs +48 -0
- package/esm2022/lib/shared/types/global-error.types.mjs +16 -0
- package/{esm2020 → esm2022}/lib/ui-kit/dialog/dialog-config.mjs +2 -2
- package/esm2022/lib/ui-kit/dialog/dialog-injector.mjs +15 -0
- package/{esm2020 → esm2022}/lib/ui-kit/dialog/dialog-ref.mjs +12 -12
- package/{esm2020 → esm2022}/lib/ui-kit/dialog/dialog.component.mjs +85 -85
- package/esm2022/lib/ui-kit/dialog/dialog.module.mjs +21 -0
- package/{esm2020 → esm2022}/lib/ui-kit/dialog/dialog.service.mjs +52 -52
- package/{esm2020 → esm2022}/lib/ui-kit/dialog/insertion.directive.mjs +16 -16
- package/{esm2020 → esm2022}/lib/ui-kit/snack-bar/snack-bar/snack-bar.component.mjs +50 -50
- package/esm2022/lib/ui-kit/snack-bar/snack-bar.module.mjs +18 -0
- package/{esm2020 → esm2022}/lib/ui-kit/snack-bar/snack-bar.service.mjs +32 -32
- package/esm2022/lib/vc-error-handlers.component.mjs +104 -0
- package/esm2022/lib/vc-error-handlers.module.mjs +84 -0
- package/{esm2020 → esm2022}/lib/vc-error-handlers.service.mjs +14 -14
- package/esm2022/public-api.mjs +17 -0
- package/{esm2020 → esm2022}/vc-error-handlers.mjs +4 -4
- package/{fesm2020 → fesm2022}/vc-error-handlers.mjs +1405 -1378
- package/fesm2022/vc-error-handlers.mjs.map +1 -0
- package/{vc-error-handlers.d.ts → index.d.ts} +5 -5
- package/lib/configuration.d.ts +4 -4
- package/lib/featureFlag/feature-flag.directive.d.ts +13 -13
- package/lib/featureFlag/feature-flag.module.d.ts +8 -8
- package/lib/featureFlag/feature-flag.service.d.ts +19 -19
- package/lib/shared/components/chunk-unavailable/chunk-unavailable.component.d.ts +20 -16
- package/lib/shared/components/component-level-server-error/component-level-server-error.component.d.ts +19 -15
- package/lib/shared/components/error-modal/error-modal.component.d.ts +21 -17
- package/lib/shared/components/page-not-found/page-not-found.component.d.ts +23 -18
- package/lib/shared/components/server-error/server-error.component.d.ts +19 -15
- package/lib/shared/components/session-expired/session-expired.component.d.ts +20 -16
- package/lib/shared/components/unauthorized/unauthorized.component.d.ts +23 -18
- package/lib/shared/constants/api-config.constants.d.ts +20 -24
- package/lib/shared/constants/error-handling.constants.d.ts +62 -49
- package/lib/shared/errorhandler/chunk-error.handler.d.ts +7 -7
- package/lib/shared/errorhandler/sentry-error.handler.d.ts +14 -14
- package/lib/shared/interceptors/http.interceptor.d.ts +13 -13
- package/lib/shared/services/global-error.service.d.ts +31 -31
- package/lib/shared/services/router.service.d.ts +6 -6
- package/lib/shared/services/util.service.d.ts +15 -6
- package/lib/shared/types/global-error.types.d.ts +27 -16
- package/lib/ui-kit/dialog/dialog-config.d.ts +6 -6
- package/lib/ui-kit/dialog/dialog-injector.d.ts +7 -7
- package/lib/ui-kit/dialog/dialog-ref.d.ts +7 -7
- package/lib/ui-kit/dialog/dialog.component.d.ts +33 -33
- package/lib/ui-kit/dialog/dialog.module.d.ts +9 -9
- package/lib/ui-kit/dialog/dialog.service.d.ts +17 -17
- package/lib/ui-kit/dialog/insertion.directive.d.ts +8 -8
- package/lib/ui-kit/snack-bar/snack-bar/snack-bar.component.d.ts +20 -20
- package/lib/ui-kit/snack-bar/snack-bar.module.d.ts +8 -8
- package/lib/ui-kit/snack-bar/snack-bar.service.d.ts +11 -11
- package/lib/vc-error-handlers.component.d.ts +26 -26
- package/lib/vc-error-handlers.module.d.ts +26 -26
- package/lib/vc-error-handlers.service.d.ts +6 -6
- package/package.json +7 -13
- package/public-api.d.ts +13 -14
- package/esm2020/lib/featureFlag/feature-flag.module.mjs +0 -22
- package/esm2020/lib/shared/components/chunk-unavailable/chunk-unavailable.component.mjs +0 -34
- package/esm2020/lib/shared/components/component-level-server-error/component-level-server-error.component.mjs +0 -63
- package/esm2020/lib/shared/components/error-modal/error-modal.component.mjs +0 -61
- package/esm2020/lib/shared/components/page-not-found/page-not-found.component.mjs +0 -80
- package/esm2020/lib/shared/components/server-error/server-error.component.mjs +0 -71
- package/esm2020/lib/shared/components/session-expired/session-expired.component.mjs +0 -34
- package/esm2020/lib/shared/components/unauthorized/unauthorized.component.mjs +0 -86
- package/esm2020/lib/shared/constants/api-config.constants.mjs +0 -247
- package/esm2020/lib/shared/constants/error-handling.constants.mjs +0 -50
- package/esm2020/lib/shared/errorhandler/sentry-error.handler.mjs +0 -50
- package/esm2020/lib/shared/interceptors/http.interceptor.mjs +0 -35
- package/esm2020/lib/shared/services/auth.service.mjs +0 -20
- package/esm2020/lib/shared/services/global-error.service.mjs +0 -141
- package/esm2020/lib/shared/services/util.service.mjs +0 -21
- package/esm2020/lib/shared/types/global-error.types.mjs +0 -16
- package/esm2020/lib/ui-kit/dialog/dialog-injector.mjs +0 -15
- package/esm2020/lib/ui-kit/dialog/dialog.module.mjs +0 -21
- package/esm2020/lib/ui-kit/snack-bar/snack-bar.module.mjs +0 -18
- package/esm2020/lib/vc-error-handlers.component.mjs +0 -107
- package/esm2020/lib/vc-error-handlers.module.mjs +0 -84
- package/esm2020/public-api.mjs +0 -18
- package/fesm2015/vc-error-handlers.mjs +0 -1650
- package/fesm2015/vc-error-handlers.mjs.map +0 -1
- package/fesm2020/vc-error-handlers.mjs.map +0 -1
- package/lib/shared/services/auth.service.d.ts +0 -9
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class UnauthorizedComponent {
|
|
3
|
-
currentYear: number;
|
|
4
|
-
errorConfig: {
|
|
5
|
-
imageUrl: string;
|
|
6
|
-
title: string;
|
|
7
|
-
description: string;
|
|
8
|
-
details: string;
|
|
9
|
-
email: string;
|
|
10
|
-
support: string;
|
|
11
|
-
buttonText: string;
|
|
12
|
-
mail: string;
|
|
13
|
-
};
|
|
14
|
-
VcomplyLogo: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class UnauthorizedComponent {
|
|
3
|
+
currentYear: number;
|
|
4
|
+
errorConfig: {
|
|
5
|
+
imageUrl: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
details: string;
|
|
9
|
+
email: string;
|
|
10
|
+
support: string;
|
|
11
|
+
buttonText: string;
|
|
12
|
+
mail: string;
|
|
13
|
+
};
|
|
14
|
+
VcomplyLogo: string;
|
|
15
|
+
altImageText: {
|
|
16
|
+
ERROR_IMAGE: string;
|
|
17
|
+
VCOMPLY_LOGO: string;
|
|
18
|
+
};
|
|
19
|
+
organisationName: string;
|
|
20
|
+
redirectToSupport(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UnauthorizedComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UnauthorizedComponent, "lib-vc-error-unauthorized", never, {}, {}, never, never, false, never>;
|
|
23
|
+
}
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
export declare const PAGE_LEVEL_API_CONFIG: {
|
|
2
|
-
method: string;
|
|
3
|
-
path: string;
|
|
4
|
-
query:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
path: string;
|
|
22
|
-
query: null;
|
|
23
|
-
body: null;
|
|
24
|
-
})[];
|
|
1
|
+
export declare const PAGE_LEVEL_API_CONFIG: {
|
|
2
|
+
method: string;
|
|
3
|
+
path: string;
|
|
4
|
+
query: null;
|
|
5
|
+
body: null;
|
|
6
|
+
pageCodes: string[];
|
|
7
|
+
}[];
|
|
8
|
+
export declare const COMPONENT_LEVEL_API_CONFIG: ({
|
|
9
|
+
method: string;
|
|
10
|
+
path: string;
|
|
11
|
+
query: {
|
|
12
|
+
type: string;
|
|
13
|
+
};
|
|
14
|
+
body: null;
|
|
15
|
+
} | {
|
|
16
|
+
method: string;
|
|
17
|
+
path: string;
|
|
18
|
+
query: null;
|
|
19
|
+
body: null;
|
|
20
|
+
})[];
|
|
@@ -1,49 +1,62 @@
|
|
|
1
|
-
export declare const VCOMPLY_LOGO_URL = "https://cdn.v-comply.com/logo/prod/v-logo.svg";
|
|
2
|
-
export declare const API_TIMEOUT_TIME: number;
|
|
3
|
-
export declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
1
|
+
export declare const VCOMPLY_LOGO_URL = "https://cdn.v-comply.com/logo/prod/v-logo.svg";
|
|
2
|
+
export declare const API_TIMEOUT_TIME: number;
|
|
3
|
+
export declare const ORGANISATION_NAME = "VCOMPLY TECHNOLOGIES, INC.";
|
|
4
|
+
export declare const ERROR_FEATURE_FLAG = "ff_error_handling";
|
|
5
|
+
export declare const ERROR_CONFIG: {
|
|
6
|
+
PAGE_NOT_FOUND: {
|
|
7
|
+
imageUrl: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
details: string;
|
|
11
|
+
buttonText: string;
|
|
12
|
+
};
|
|
13
|
+
UNAUTHORIZED: {
|
|
14
|
+
imageUrl: string;
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
details: string;
|
|
18
|
+
email: string;
|
|
19
|
+
support: string;
|
|
20
|
+
buttonText: string;
|
|
21
|
+
mail: string;
|
|
22
|
+
};
|
|
23
|
+
SESSION_EXPIRED: {
|
|
24
|
+
heading: string;
|
|
25
|
+
description: string;
|
|
26
|
+
buttonText: string;
|
|
27
|
+
};
|
|
28
|
+
CHUNK_UNAVAILABLE: {
|
|
29
|
+
heading: string;
|
|
30
|
+
description: string;
|
|
31
|
+
buttonText: string;
|
|
32
|
+
};
|
|
33
|
+
SERVER_ERROR: {
|
|
34
|
+
imageUrl: string;
|
|
35
|
+
title: string;
|
|
36
|
+
description: string;
|
|
37
|
+
details: string;
|
|
38
|
+
buttonText: string;
|
|
39
|
+
snackBarMessage: string;
|
|
40
|
+
};
|
|
41
|
+
COMPONENT_LEVEL_SERVER_ERROR: {
|
|
42
|
+
imageUrl: string;
|
|
43
|
+
title: string;
|
|
44
|
+
description: string;
|
|
45
|
+
details: string;
|
|
46
|
+
buttonText: string;
|
|
47
|
+
};
|
|
48
|
+
NETWORK_UNAVAILABLE: {
|
|
49
|
+
offlineMessage: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare const REDIRECTION_URL: {
|
|
53
|
+
compliance_dashboard: string;
|
|
54
|
+
};
|
|
55
|
+
export declare const MODAL_ERROR_TYPES: {
|
|
56
|
+
CHUNK_NOT_FOUND: string;
|
|
57
|
+
SESSION_EXPIRED: string;
|
|
58
|
+
};
|
|
59
|
+
export declare const ALT_IMAGE_TEXT: {
|
|
60
|
+
ERROR_IMAGE: string;
|
|
61
|
+
VCOMPLY_LOGO: string;
|
|
62
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ErrorHandler } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class GlobalErrorHandler implements ErrorHandler {
|
|
4
|
-
handleError(error: any): void;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalErrorHandler, never>;
|
|
6
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalErrorHandler>;
|
|
7
|
-
}
|
|
1
|
+
import { ErrorHandler } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class GlobalErrorHandler implements ErrorHandler {
|
|
4
|
+
handleError(error: any): void;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalErrorHandler, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalErrorHandler>;
|
|
7
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ErrorHandler } from '@angular/core';
|
|
2
|
-
import { Configurations } from '../../configuration';
|
|
3
|
-
import { AuthorizerService } from '@vcomply/authorizer';
|
|
4
|
-
import { GlobalErrorService } from '../services/global-error.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class SentryErrorHandler implements ErrorHandler {
|
|
7
|
-
private authorizerService;
|
|
8
|
-
private errorService;
|
|
9
|
-
constructor(authorizerService: AuthorizerService, errorService: GlobalErrorService, config?: Configurations);
|
|
10
|
-
handleError(error: any): void;
|
|
11
|
-
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SentryErrorHandler, [null, null, { optional: true; }]>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SentryErrorHandler>;
|
|
14
|
-
}
|
|
1
|
+
import { ErrorHandler } from '@angular/core';
|
|
2
|
+
import { Configurations } from '../../configuration';
|
|
3
|
+
import { AuthorizerService } from '@vcomply/authorizer';
|
|
4
|
+
import { GlobalErrorService } from '../services/global-error.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SentryErrorHandler implements ErrorHandler {
|
|
7
|
+
private authorizerService;
|
|
8
|
+
private errorService;
|
|
9
|
+
constructor(authorizerService: AuthorizerService, errorService: GlobalErrorService, config?: Configurations);
|
|
10
|
+
handleError(error: any): void;
|
|
11
|
+
handleChunkError(error: Error): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SentryErrorHandler, [null, null, { optional: true; }]>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SentryErrorHandler>;
|
|
14
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { GlobalErrorService } from '../services/global-error.service';
|
|
4
|
-
import { FeatureFlagService } from '../../featureFlag/feature-flag.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class HttpReqInterceptor implements HttpInterceptor {
|
|
7
|
-
private errorService;
|
|
8
|
-
private featureFlagService;
|
|
9
|
-
constructor(errorService: GlobalErrorService, featureFlagService: FeatureFlagService);
|
|
10
|
-
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HttpReqInterceptor, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HttpReqInterceptor>;
|
|
13
|
-
}
|
|
1
|
+
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { GlobalErrorService } from '../services/global-error.service';
|
|
4
|
+
import { FeatureFlagService } from '../../featureFlag/feature-flag.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class HttpReqInterceptor implements HttpInterceptor {
|
|
7
|
+
private errorService;
|
|
8
|
+
private featureFlagService;
|
|
9
|
+
constructor(errorService: GlobalErrorService, featureFlagService: FeatureFlagService);
|
|
10
|
+
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpReqInterceptor, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HttpReqInterceptor>;
|
|
13
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { HttpErrorResponse, HttpRequest, HttpResponse } from '@angular/common/http';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { Subject } from 'rxjs';
|
|
4
|
-
import { SnackBarService } from '../../ui-kit/snack-bar/snack-bar.service';
|
|
5
|
-
import { UtilsService } from './util.service';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class GlobalErrorService {
|
|
8
|
-
private snackBarService;
|
|
9
|
-
private utilService;
|
|
10
|
-
private router;
|
|
11
|
-
globalError$: Subject<any>;
|
|
12
|
-
localError$: Subject<any>;
|
|
13
|
-
private pageLevelApiConfig;
|
|
14
|
-
private componentLevelApiConfig;
|
|
15
|
-
constructor(snackBarService: SnackBarService, utilService: UtilsService, router: Router);
|
|
16
|
-
handleSoftErrors(event: HttpResponse<any> | HttpErrorResponse): void;
|
|
17
|
-
handleError(error: HttpErrorResponse, request: HttpRequest<any>): void;
|
|
18
|
-
isServerError(error: HttpErrorResponse): boolean;
|
|
19
|
-
private isUnauthenticated;
|
|
20
|
-
private isUnauthorizedAccess;
|
|
21
|
-
private isNetworkUnavailable;
|
|
22
|
-
private handleServerError;
|
|
23
|
-
private publishGlobalError;
|
|
24
|
-
private publishLocalError;
|
|
25
|
-
private isPageLevelError;
|
|
26
|
-
private isComponentLevelError;
|
|
27
|
-
private
|
|
28
|
-
private
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalErrorService, never>;
|
|
30
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalErrorService>;
|
|
31
|
-
}
|
|
1
|
+
import { HttpErrorResponse, HttpRequest, HttpResponse } from '@angular/common/http';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { SnackBarService } from '../../ui-kit/snack-bar/snack-bar.service';
|
|
5
|
+
import { UtilsService } from './util.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class GlobalErrorService {
|
|
8
|
+
private snackBarService;
|
|
9
|
+
private utilService;
|
|
10
|
+
private router;
|
|
11
|
+
globalError$: Subject<any>;
|
|
12
|
+
localError$: Subject<any>;
|
|
13
|
+
private pageLevelApiConfig;
|
|
14
|
+
private componentLevelApiConfig;
|
|
15
|
+
constructor(snackBarService: SnackBarService, utilService: UtilsService, router: Router);
|
|
16
|
+
handleSoftErrors(event: HttpResponse<any> | HttpErrorResponse): void;
|
|
17
|
+
handleError(error: HttpErrorResponse, request: HttpRequest<any>): void;
|
|
18
|
+
isServerError(error: HttpErrorResponse): boolean;
|
|
19
|
+
private isUnauthenticated;
|
|
20
|
+
private isUnauthorizedAccess;
|
|
21
|
+
private isNetworkUnavailable;
|
|
22
|
+
private handleServerError;
|
|
23
|
+
private publishGlobalError;
|
|
24
|
+
private publishLocalError;
|
|
25
|
+
private isPageLevelError;
|
|
26
|
+
private isComponentLevelError;
|
|
27
|
+
private getPageCode;
|
|
28
|
+
private isApiConfigMatching;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalErrorService, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalErrorService>;
|
|
31
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class RouterService {
|
|
3
|
-
redirectToLogin(): void;
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RouterService, never>;
|
|
5
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RouterService>;
|
|
6
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class RouterService {
|
|
3
|
+
redirectToLogin(): void;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouterService, never>;
|
|
5
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RouterService>;
|
|
6
|
+
}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { HttpParams } from '@angular/common/http';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UtilsService {
|
|
4
|
+
private isJsonSubset;
|
|
5
|
+
extractQueryParams(params: HttpParams): {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
isStringEqual(apiMethod: string, requestMethod: string): boolean;
|
|
9
|
+
isSubstringInString(apiPath: string, requestPath: string): boolean;
|
|
10
|
+
isSubsetOfObject(apiQuery: any, requestQuery: any): boolean;
|
|
11
|
+
isSubsetOfArray(apiBody: any, requestBody: any): boolean;
|
|
12
|
+
isValueInArray(apiPageCodes: string[], pageCode: string): boolean;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
|
|
15
|
+
}
|
|
@@ -1,16 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { MODAL_ERROR_TYPES } from '../constants/error-handling.constants';
|
|
2
|
+
export interface DialogData {
|
|
3
|
+
heading: string;
|
|
4
|
+
description: string;
|
|
5
|
+
buttonText: string;
|
|
6
|
+
}
|
|
7
|
+
export interface RequestDetails {
|
|
8
|
+
method: string;
|
|
9
|
+
path: string;
|
|
10
|
+
query: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
body: any;
|
|
14
|
+
pageCode?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare enum ErrorStatusCode {
|
|
17
|
+
URLNotFound = 404,
|
|
18
|
+
UnauthorizedAccess = 403,
|
|
19
|
+
Unauthenticated = 401,
|
|
20
|
+
InternalServerError = 500,
|
|
21
|
+
ServiceUnavailable = 503,
|
|
22
|
+
BadGateway = 502,
|
|
23
|
+
RequestTimeout = 504,
|
|
24
|
+
NetworkUnavailable = 0,
|
|
25
|
+
JSChunkUnavailable = 600
|
|
26
|
+
}
|
|
27
|
+
export type ModalErrorType = keyof typeof MODAL_ERROR_TYPES;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare class DialogConfig<D = any> {
|
|
2
|
-
data?: D;
|
|
3
|
-
position?: any;
|
|
4
|
-
background?: any;
|
|
5
|
-
pointer?: any;
|
|
6
|
-
}
|
|
1
|
+
export declare class DialogConfig<D = any> {
|
|
2
|
+
data?: D;
|
|
3
|
+
position?: any;
|
|
4
|
+
background?: any;
|
|
5
|
+
pointer?: any;
|
|
6
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Injector, Type, InjectionToken
|
|
2
|
-
export declare class DialogInjector implements Injector {
|
|
3
|
-
private parentDialogInjector;
|
|
4
|
-
private dialogAdditionalTokens;
|
|
5
|
-
constructor(parentDialogInjector: Injector, dialogAdditionalTokens: WeakMap<any, any>);
|
|
6
|
-
get<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T
|
|
7
|
-
}
|
|
1
|
+
import { Injector, Type, InjectionToken } from '@angular/core';
|
|
2
|
+
export declare class DialogInjector implements Injector {
|
|
3
|
+
private parentDialogInjector;
|
|
4
|
+
private dialogAdditionalTokens;
|
|
5
|
+
constructor(parentDialogInjector: Injector, dialogAdditionalTokens: WeakMap<any, any>);
|
|
6
|
+
get<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T): T;
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
export declare class DialogRef {
|
|
3
|
-
private readonly afterDialogClosed;
|
|
4
|
-
afterClosed: Observable<any>;
|
|
5
|
-
constructor();
|
|
6
|
-
close(result?: any): void;
|
|
7
|
-
}
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare class DialogRef {
|
|
3
|
+
private readonly afterDialogClosed;
|
|
4
|
+
afterClosed: Observable<any>;
|
|
5
|
+
constructor();
|
|
6
|
+
close(result?: any): void;
|
|
7
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { Type, ComponentFactoryResolver, OnDestroy, ComponentRef, AfterViewInit, ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
-
import { InsertionDirective } from './insertion.directive';
|
|
3
|
-
import { DialogRef } from './dialog-ref';
|
|
4
|
-
import { DialogConfig } from './dialog-config';
|
|
5
|
-
import { Router } from '@angular/router';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DialogComponent implements AfterViewInit, OnDestroy, OnInit {
|
|
8
|
-
private componentFactoryResolver;
|
|
9
|
-
private cd;
|
|
10
|
-
private dialogRef;
|
|
11
|
-
config: DialogConfig;
|
|
12
|
-
private router;
|
|
13
|
-
componentRef: ComponentRef<any>;
|
|
14
|
-
position: any;
|
|
15
|
-
background: any;
|
|
16
|
-
pointer: any;
|
|
17
|
-
insertionPoint: InsertionDirective;
|
|
18
|
-
animation: boolean;
|
|
19
|
-
private readonly onDialogClose;
|
|
20
|
-
onClose: import("rxjs").Observable<any>;
|
|
21
|
-
childComponentType: Type<any>;
|
|
22
|
-
constructor(componentFactoryResolver: ComponentFactoryResolver, cd: ChangeDetectorRef, dialogRef: DialogRef, config: DialogConfig, router: Router);
|
|
23
|
-
ngOnInit(): void;
|
|
24
|
-
routeAction(): void;
|
|
25
|
-
ngAfterViewInit(): void;
|
|
26
|
-
onOverlayClicked(evt: MouseEvent): void;
|
|
27
|
-
onDialogClicked(evt: MouseEvent): void;
|
|
28
|
-
loadChildComponent(componentType: Type<any>): void;
|
|
29
|
-
ngOnDestroy(): void;
|
|
30
|
-
close(data?: any): void;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "app-dialog", never, {}, {}, never, never>;
|
|
33
|
-
}
|
|
1
|
+
import { Type, ComponentFactoryResolver, OnDestroy, ComponentRef, AfterViewInit, ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { InsertionDirective } from './insertion.directive';
|
|
3
|
+
import { DialogRef } from './dialog-ref';
|
|
4
|
+
import { DialogConfig } from './dialog-config';
|
|
5
|
+
import { Router } from '@angular/router';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class DialogComponent implements AfterViewInit, OnDestroy, OnInit {
|
|
8
|
+
private componentFactoryResolver;
|
|
9
|
+
private cd;
|
|
10
|
+
private dialogRef;
|
|
11
|
+
config: DialogConfig;
|
|
12
|
+
private router;
|
|
13
|
+
componentRef: ComponentRef<any>;
|
|
14
|
+
position: any;
|
|
15
|
+
background: any;
|
|
16
|
+
pointer: any;
|
|
17
|
+
insertionPoint: InsertionDirective;
|
|
18
|
+
animation: boolean;
|
|
19
|
+
private readonly onDialogClose;
|
|
20
|
+
onClose: import("rxjs").Observable<any>;
|
|
21
|
+
childComponentType: Type<any>;
|
|
22
|
+
constructor(componentFactoryResolver: ComponentFactoryResolver, cd: ChangeDetectorRef, dialogRef: DialogRef, config: DialogConfig, router: Router);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
routeAction(): void;
|
|
25
|
+
ngAfterViewInit(): void;
|
|
26
|
+
onOverlayClicked(evt: MouseEvent): void;
|
|
27
|
+
onDialogClicked(evt: MouseEvent): void;
|
|
28
|
+
loadChildComponent(componentType: Type<any>): void;
|
|
29
|
+
ngOnDestroy(): void;
|
|
30
|
+
close(data?: any): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "app-dialog", never, {}, {}, never, never, false, never>;
|
|
33
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./dialog.component";
|
|
3
|
-
import * as i2 from "./insertion.directive";
|
|
4
|
-
import * as i3 from "@angular/common";
|
|
5
|
-
export declare class DialogModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DialogModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DialogModule, [typeof i1.DialogComponent, typeof i2.InsertionDirective], [typeof i3.CommonModule], [typeof i1.DialogComponent]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DialogModule>;
|
|
9
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./dialog.component";
|
|
3
|
+
import * as i2 from "./insertion.directive";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
export declare class DialogModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DialogModule, [typeof i1.DialogComponent, typeof i2.InsertionDirective], [typeof i3.CommonModule], [typeof i1.DialogComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DialogModule>;
|
|
9
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ComponentFactoryResolver, ApplicationRef, Injector, Type, ComponentRef } from '@angular/core';
|
|
2
|
-
import { DialogComponent } from './dialog.component';
|
|
3
|
-
import { DialogConfig } from './dialog-config';
|
|
4
|
-
import { DialogRef } from './dialog-ref';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class DialogService {
|
|
7
|
-
private componentFactoryResolver;
|
|
8
|
-
private appRef;
|
|
9
|
-
private injector;
|
|
10
|
-
dialogComponentRef: ComponentRef<DialogComponent>;
|
|
11
|
-
constructor(componentFactoryResolver: ComponentFactoryResolver, appRef: ApplicationRef, injector: Injector);
|
|
12
|
-
open(componentType: Type<any>, config: DialogConfig): DialogRef;
|
|
13
|
-
private appendDialogComponentToBody;
|
|
14
|
-
private removeDialogComponentFromBody;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
17
|
-
}
|
|
1
|
+
import { ComponentFactoryResolver, ApplicationRef, Injector, Type, ComponentRef } from '@angular/core';
|
|
2
|
+
import { DialogComponent } from './dialog.component';
|
|
3
|
+
import { DialogConfig } from './dialog-config';
|
|
4
|
+
import { DialogRef } from './dialog-ref';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DialogService {
|
|
7
|
+
private componentFactoryResolver;
|
|
8
|
+
private appRef;
|
|
9
|
+
private injector;
|
|
10
|
+
dialogComponentRef: ComponentRef<DialogComponent>;
|
|
11
|
+
constructor(componentFactoryResolver: ComponentFactoryResolver, appRef: ApplicationRef, injector: Injector);
|
|
12
|
+
open(componentType: Type<any>, config: DialogConfig): DialogRef;
|
|
13
|
+
private appendDialogComponentToBody;
|
|
14
|
+
private removeDialogComponentFromBody;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
17
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ViewContainerRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class InsertionDirective {
|
|
4
|
-
viewContainerRef: ViewContainerRef;
|
|
5
|
-
constructor(viewContainerRef: ViewContainerRef);
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InsertionDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<InsertionDirective, "[appInsertion]", never, {}, {}, never>;
|
|
8
|
-
}
|
|
1
|
+
import { ViewContainerRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class InsertionDirective {
|
|
4
|
+
viewContainerRef: ViewContainerRef;
|
|
5
|
+
constructor(viewContainerRef: ViewContainerRef);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InsertionDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InsertionDirective, "[appInsertion]", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|