vc-error-handlers 0.2.2 → 0.2.3
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/esm2022/lib/shared/components/component-level-server-error/component-level-server-error.component.mjs +16 -10
- package/esm2022/lib/shared/components/page-not-found/page-not-found.component.mjs +19 -10
- package/esm2022/lib/shared/components/server-error/server-error.component.mjs +19 -10
- package/esm2022/lib/shared/components/unauthorized/unauthorized.component.mjs +19 -10
- package/esm2022/lib/shared/constants/api-config.constants.mjs +4 -4
- package/esm2022/lib/shared/constants/assets.constants.mjs +4 -7
- package/esm2022/lib/shared/services/assets-url.service.mjs +23 -0
- package/fesm2022/vc-error-handlers.mjs +106 -59
- package/fesm2022/vc-error-handlers.mjs.map +1 -1
- package/lib/shared/components/component-level-server-error/component-level-server-error.component.d.ts +5 -1
- package/lib/shared/components/page-not-found/page-not-found.component.d.ts +6 -1
- package/lib/shared/components/server-error/server-error.component.d.ts +6 -0
- package/lib/shared/components/unauthorized/unauthorized.component.d.ts +6 -0
- package/lib/shared/services/assets-url.service.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ActivatedRoute } from '@angular/router';
|
|
2
|
+
import { AssetUrlService } from '../../services/assets-url.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class PageNotFoundComponent {
|
|
4
5
|
private route;
|
|
6
|
+
private assetUrlService;
|
|
5
7
|
errorConfig: {
|
|
6
8
|
imageUrl: string;
|
|
7
9
|
title: string;
|
|
@@ -21,7 +23,10 @@ export declare class PageNotFoundComponent {
|
|
|
21
23
|
POLICY_DASHBOARD: string;
|
|
22
24
|
};
|
|
23
25
|
organisationName: string;
|
|
24
|
-
|
|
26
|
+
fullVcomplyLogo: string;
|
|
27
|
+
fullErrorImageUrl: string;
|
|
28
|
+
constructor(route: ActivatedRoute, assetUrlService: AssetUrlService);
|
|
29
|
+
private getAssetUrl;
|
|
25
30
|
redirectToHome(): void;
|
|
26
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageNotFoundComponent, never>;
|
|
27
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<PageNotFoundComponent, "lib-vc-error-page-not-found", never, {}, {}, never, never, false, never>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { AssetUrlService } from '../../services/assets-url.service';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class ServerErrorComponent {
|
|
4
|
+
private assetUrlService;
|
|
3
5
|
errorConfig: {
|
|
4
6
|
imageUrl: string;
|
|
5
7
|
title: string;
|
|
@@ -13,6 +15,10 @@ export declare class ServerErrorComponent {
|
|
|
13
15
|
ERROR_IMAGE: string;
|
|
14
16
|
VCOMPLY_LOGO: string;
|
|
15
17
|
};
|
|
18
|
+
fullVcomplyLogo: string;
|
|
19
|
+
fullErrorImageUrl: string;
|
|
20
|
+
constructor(assetUrlService: AssetUrlService);
|
|
21
|
+
private getAssetsUrl;
|
|
16
22
|
refreshPage(): void;
|
|
17
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<ServerErrorComponent, never>;
|
|
18
24
|
static ɵcmp: i0.ɵɵComponentDeclaration<ServerErrorComponent, "lib-vc-error-server-error", never, {}, {}, never, never, false, never>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { AssetUrlService } from '../../services/assets-url.service';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class UnauthorizedComponent {
|
|
4
|
+
private assetUrlService;
|
|
3
5
|
currentYear: number;
|
|
4
6
|
errorConfig: {
|
|
5
7
|
imageUrl: string;
|
|
@@ -17,6 +19,10 @@ export declare class UnauthorizedComponent {
|
|
|
17
19
|
VCOMPLY_LOGO: string;
|
|
18
20
|
};
|
|
19
21
|
organisationName: string;
|
|
22
|
+
fullVcomplyLogo: string;
|
|
23
|
+
fullErrorImageUrl: string;
|
|
24
|
+
constructor(assetUrlService: AssetUrlService);
|
|
25
|
+
private getAssetsUrl;
|
|
20
26
|
redirectToSupport(): void;
|
|
21
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<UnauthorizedComponent, never>;
|
|
22
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<UnauthorizedComponent, "lib-vc-error-unauthorized", never, {}, {}, never, never, false, never>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Configurations } from '../../configuration';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AssetUrlService {
|
|
4
|
+
private BASE_URL;
|
|
5
|
+
constructor(config?: Configurations);
|
|
6
|
+
getFullUrl(relativePath: string): string;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AssetUrlService, [{ optional: true; }]>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AssetUrlService>;
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vc-error-handlers",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": " 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x || 20.x",
|
|
6
6
|
"@angular/core": "13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x || 20.x"
|