@softheon/armature 19.16.0 → 19.17.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.
@@ -1,14 +1,63 @@
1
- import { OnInit } from '@angular/core';
2
- import { ErrorCommonConfig } from '../../models/error-common-config';
1
+ import { EventEmitter, OnInit } from '@angular/core';
3
2
  import * as i0 from "@angular/core";
4
3
  /** The Common Error component */
5
- export declare class ErrorCommonComponent implements OnInit {
6
- /** The config input */
7
- config: ErrorCommonConfig;
8
- /** Constructs the component */
9
- constructor();
10
- /** Life cycle hook for component initialization */
4
+ export declare class SofErrorCommonComponent implements OnInit {
5
+ /**
6
+ * Error image url
7
+ * @note if no image shows default svg
8
+ */
9
+ imageUrl?: string;
10
+ /**
11
+ * Return to url
12
+ * @note if no url, navigates to base url ['/']
13
+ */
14
+ returnUrl?: string;
15
+ /**
16
+ * Contact support email, phone
17
+ * @note if none, will hide the contact section
18
+ */
19
+ contactInfo?: ContactInfo;
20
+ /** Error reference */
21
+ errorReference?: ErrorReference;
22
+ /** Show logout */
23
+ showLogout?: boolean;
24
+ /** Logout event, the application consuming this component is responsible for the actual logout */
25
+ logoutEvent: EventEmitter<void>;
26
+ /** Inject angular's document reference */
27
+ private _document;
28
+ /** Translate service */
29
+ private _translate;
30
+ /** Copy npn button data */
31
+ copyErrorReferenceDataButton: CopyButton;
32
+ /** Error reference data to copy to clipboard */
33
+ copyErrorReferenceData: string;
34
+ /** Disable the copy button */
35
+ disableCopy: boolean;
36
+ /** Component init */
11
37
  ngOnInit(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<ErrorCommonComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<ErrorCommonComponent, "sof-ar-error-common", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, false, never>;
38
+ /** Emits the logout event */
39
+ logout(): void;
40
+ /** Copies error reference data to clipboard */
41
+ copyErrorReferenceDataEvent(): void;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<SofErrorCommonComponent, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<SofErrorCommonComponent, "sof-error-common", never, { "imageUrl": { "alias": "imageUrl"; "required": false; }; "returnUrl": { "alias": "returnUrl"; "required": false; }; "contactInfo": { "alias": "contactInfo"; "required": false; }; "errorReference": { "alias": "errorReference"; "required": false; }; "showLogout": { "alias": "showLogout"; "required": false; }; }, { "logoutEvent": "logoutEvent"; }, never, never, true, never>;
14
44
  }
45
+ /** Error reference */
46
+ export interface ErrorReference {
47
+ timestamp?: string;
48
+ pageTitle?: string;
49
+ sessionId?: string;
50
+ errorId?: string;
51
+ }
52
+ /** Contact info (email, phone) */
53
+ export interface ContactInfo {
54
+ email?: string;
55
+ phone?: string;
56
+ }
57
+ /** Copy button data */
58
+ interface CopyButton {
59
+ text: string;
60
+ icon: string;
61
+ class: string;
62
+ }
63
+ export {};
@@ -1,4 +1 @@
1
- /** Public surface api for the error module */
2
- export * from './error.module';
3
1
  export * from './components/error-common/error-common.component';
4
- export * from './models/error-common-config';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softheon/armature",
3
- "version": "19.16.0",
3
+ "version": "19.17.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.5.0"
6
6
  },
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./components/error-common/error-common.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@ngbracket/ngx-layout";
5
- import * as i4 from "@ngx-translate/core";
6
- /** The error module */
7
- export declare class ErrorModule {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<ErrorModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<ErrorModule, [typeof i1.ErrorCommonComponent], [typeof i2.CommonModule, typeof i3.FlexLayoutModule, typeof i4.TranslateModule], [typeof i1.ErrorCommonComponent]>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<ErrorModule>;
11
- }
@@ -1,21 +0,0 @@
1
- /** The Error Common Configurations */
2
- export declare class ErrorCommonConfig {
3
- /** True if error image should be displayed */
4
- showErrorImage: boolean;
5
- /** The image url */
6
- errorImageUrl: string;
7
- /** The header one text */
8
- headerOneText: string;
9
- /** The header one classes */
10
- headerOneClass: string;
11
- /** The header two text */
12
- headerTwoText: string;
13
- /** The header two classes */
14
- headerTwoClass: string;
15
- /** The info text */
16
- infoText: string;
17
- /** The info text classes */
18
- infoTextClass: string;
19
- /** constructs the class */
20
- constructor();
21
- }