vc-error-handlers 0.1.98 → 0.2.0

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.
Files changed (89) hide show
  1. package/esm2022/lib/configuration.mjs +7 -0
  2. package/{esm2020 → esm2022}/lib/featureFlag/feature-flag.directive.mjs +27 -27
  3. package/esm2022/lib/featureFlag/feature-flag.module.mjs +20 -0
  4. package/esm2022/lib/featureFlag/feature-flag.service.mjs +98 -0
  5. package/{esm2020 → esm2022}/lib/shared/components/chunk-unavailable/chunk-unavailable.component.mjs +35 -35
  6. package/esm2022/lib/shared/components/component-level-server-error/component-level-server-error.component.mjs +65 -0
  7. package/{esm2020 → esm2022}/lib/shared/components/error-modal/error-modal.component.mjs +45 -45
  8. package/esm2022/lib/shared/components/page-not-found/page-not-found.component.mjs +92 -0
  9. package/esm2022/lib/shared/components/server-error/server-error.component.mjs +83 -0
  10. package/{esm2020 → esm2022}/lib/shared/components/session-expired/session-expired.component.mjs +35 -35
  11. package/esm2022/lib/shared/components/unauthorized/unauthorized.component.mjs +103 -0
  12. package/{esm2020 → esm2022}/lib/shared/constants/api-config.constants.mjs +239 -239
  13. package/{esm2020 → esm2022}/lib/shared/constants/error-handling.constants.mjs +62 -62
  14. package/{esm2020 → esm2022}/lib/shared/errorhandler/chunk-error.handler.mjs +18 -18
  15. package/{esm2020 → esm2022}/lib/shared/errorhandler/sentry-error.handler.mjs +47 -47
  16. package/{esm2020 → esm2022}/lib/shared/interceptors/http.interceptor.mjs +35 -35
  17. package/{esm2020 → esm2022}/lib/shared/services/global-error.service.mjs +115 -115
  18. package/{esm2020 → esm2022}/lib/shared/services/router.service.mjs +19 -19
  19. package/{esm2020 → esm2022}/lib/shared/services/util.service.mjs +48 -48
  20. package/{esm2020 → esm2022}/lib/shared/types/global-error.types.mjs +15 -15
  21. package/{esm2020 → esm2022}/lib/ui-kit/dialog/dialog-config.mjs +2 -2
  22. package/esm2022/lib/ui-kit/dialog/dialog-injector.mjs +15 -0
  23. package/{esm2020 → esm2022}/lib/ui-kit/dialog/dialog-ref.mjs +12 -12
  24. package/{esm2020 → esm2022}/lib/ui-kit/dialog/dialog.component.mjs +85 -85
  25. package/esm2022/lib/ui-kit/dialog/dialog.module.mjs +21 -0
  26. package/{esm2020 → esm2022}/lib/ui-kit/dialog/dialog.service.mjs +52 -52
  27. package/{esm2020 → esm2022}/lib/ui-kit/dialog/insertion.directive.mjs +16 -16
  28. package/{esm2020 → esm2022}/lib/ui-kit/snack-bar/snack-bar/snack-bar.component.mjs +50 -50
  29. package/esm2022/lib/ui-kit/snack-bar/snack-bar.module.mjs +18 -0
  30. package/{esm2020 → esm2022}/lib/ui-kit/snack-bar/snack-bar.service.mjs +32 -32
  31. package/{esm2020 → esm2022}/lib/vc-error-handlers.component.mjs +85 -85
  32. package/esm2022/lib/vc-error-handlers.module.mjs +84 -0
  33. package/{esm2020 → esm2022}/lib/vc-error-handlers.service.mjs +14 -14
  34. package/{esm2020 → esm2022}/public-api.mjs +16 -16
  35. package/{esm2020 → esm2022}/vc-error-handlers.mjs +4 -4
  36. package/{fesm2020 → fesm2022}/vc-error-handlers.mjs +1286 -1359
  37. package/fesm2022/vc-error-handlers.mjs.map +1 -0
  38. package/{vc-error-handlers.d.ts → index.d.ts} +5 -5
  39. package/lib/configuration.d.ts +5 -4
  40. package/lib/featureFlag/feature-flag.directive.d.ts +13 -13
  41. package/lib/featureFlag/feature-flag.module.d.ts +8 -8
  42. package/lib/featureFlag/feature-flag.service.d.ts +21 -19
  43. package/lib/shared/components/chunk-unavailable/chunk-unavailable.component.d.ts +20 -20
  44. package/lib/shared/components/component-level-server-error/component-level-server-error.component.d.ts +19 -19
  45. package/lib/shared/components/error-modal/error-modal.component.d.ts +21 -21
  46. package/lib/shared/components/page-not-found/page-not-found.component.d.ts +23 -23
  47. package/lib/shared/components/server-error/server-error.component.d.ts +19 -19
  48. package/lib/shared/components/session-expired/session-expired.component.d.ts +20 -20
  49. package/lib/shared/components/unauthorized/unauthorized.component.d.ts +23 -23
  50. package/lib/shared/constants/api-config.constants.d.ts +20 -20
  51. package/lib/shared/constants/error-handling.constants.d.ts +62 -62
  52. package/lib/shared/errorhandler/chunk-error.handler.d.ts +7 -7
  53. package/lib/shared/errorhandler/sentry-error.handler.d.ts +14 -14
  54. package/lib/shared/interceptors/http.interceptor.d.ts +13 -13
  55. package/lib/shared/services/global-error.service.d.ts +31 -31
  56. package/lib/shared/services/router.service.d.ts +6 -6
  57. package/lib/shared/services/util.service.d.ts +15 -15
  58. package/lib/shared/types/global-error.types.d.ts +27 -27
  59. package/lib/ui-kit/dialog/dialog-config.d.ts +6 -6
  60. package/lib/ui-kit/dialog/dialog-injector.d.ts +7 -7
  61. package/lib/ui-kit/dialog/dialog-ref.d.ts +7 -7
  62. package/lib/ui-kit/dialog/dialog.component.d.ts +33 -33
  63. package/lib/ui-kit/dialog/dialog.module.d.ts +9 -9
  64. package/lib/ui-kit/dialog/dialog.service.d.ts +17 -17
  65. package/lib/ui-kit/dialog/insertion.directive.d.ts +8 -8
  66. package/lib/ui-kit/snack-bar/snack-bar/snack-bar.component.d.ts +20 -20
  67. package/lib/ui-kit/snack-bar/snack-bar.module.d.ts +8 -8
  68. package/lib/ui-kit/snack-bar/snack-bar.service.d.ts +11 -11
  69. package/lib/vc-error-handlers.component.d.ts +26 -26
  70. package/lib/vc-error-handlers.module.d.ts +26 -26
  71. package/lib/vc-error-handlers.service.d.ts +6 -6
  72. package/package.json +7 -13
  73. package/public-api.d.ts +13 -13
  74. package/environments/environment.d.ts +0 -39
  75. package/esm2020/environments/environment.mjs +0 -75
  76. package/esm2020/lib/configuration.mjs +0 -6
  77. package/esm2020/lib/featureFlag/feature-flag.module.mjs +0 -22
  78. package/esm2020/lib/featureFlag/feature-flag.service.mjs +0 -95
  79. package/esm2020/lib/shared/components/component-level-server-error/component-level-server-error.component.mjs +0 -64
  80. package/esm2020/lib/shared/components/page-not-found/page-not-found.component.mjs +0 -91
  81. package/esm2020/lib/shared/components/server-error/server-error.component.mjs +0 -82
  82. package/esm2020/lib/shared/components/unauthorized/unauthorized.component.mjs +0 -102
  83. package/esm2020/lib/ui-kit/dialog/dialog-injector.mjs +0 -15
  84. package/esm2020/lib/ui-kit/dialog/dialog.module.mjs +0 -21
  85. package/esm2020/lib/ui-kit/snack-bar/snack-bar.module.mjs +0 -18
  86. package/esm2020/lib/vc-error-handlers.module.mjs +0 -84
  87. package/fesm2015/vc-error-handlers.mjs +0 -1679
  88. package/fesm2015/vc-error-handlers.mjs.map +0 -1
  89. package/fesm2020/vc-error-handlers.mjs.map +0 -1
@@ -1,20 +1,20 @@
1
- import { OnInit } from '@angular/core';
2
- import { DialogService } from '../../../ui-kit/dialog/dialog.service';
3
- import * as i0 from "@angular/core";
4
- export declare class SessionExpiredComponent implements OnInit {
5
- private dialogService;
6
- errorConfig: {
7
- heading: string;
8
- description: string;
9
- buttonText: string;
10
- };
11
- errorTypes: {
12
- CHUNK_NOT_FOUND: string;
13
- SESSION_EXPIRED: string;
14
- };
15
- constructor(dialogService: DialogService);
16
- ngOnInit(): void;
17
- private openSessionExpiredModal;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<SessionExpiredComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<SessionExpiredComponent, "lib-vc-error-session-expired", never, {}, {}, never, never>;
20
- }
1
+ import { OnInit } from '@angular/core';
2
+ import { DialogService } from '../../../ui-kit/dialog/dialog.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SessionExpiredComponent implements OnInit {
5
+ private dialogService;
6
+ errorConfig: {
7
+ heading: string;
8
+ description: string;
9
+ buttonText: string;
10
+ };
11
+ errorTypes: {
12
+ CHUNK_NOT_FOUND: string;
13
+ SESSION_EXPIRED: string;
14
+ };
15
+ constructor(dialogService: DialogService);
16
+ ngOnInit(): void;
17
+ private openSessionExpiredModal;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<SessionExpiredComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<SessionExpiredComponent, "lib-vc-error-session-expired", never, {}, {}, never, never, false, never>;
20
+ }
@@ -1,23 +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
- 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>;
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
+ 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,20 +1,20 @@
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
+ 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,62 +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 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
+ 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
- handleChunkError(error: Error): void;
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 getPageCode;
28
- private isApiConfigMatching;
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,15 +1,15 @@
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
+ 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,27 +1,27 @@
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 declare type ModalErrorType = keyof typeof MODAL_ERROR_TYPES;
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, InjectFlags } 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, flags?: InjectFlags): 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
+ }