@dbg-riskit/angular-error 18.1.0 → 20.0.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.
- package/fesm2022/dbg-riskit-angular-error.mjs +75 -107
- package/fesm2022/dbg-riskit-angular-error.mjs.map +1 -1
- package/index.d.ts +81 -3
- package/package.json +9 -12
- package/esm2022/dbg-riskit-angular-error.mjs +0 -5
- package/esm2022/lib/error.collector.mjs +0 -65
- package/esm2022/lib/error.menu.component.mjs +0 -205
- package/esm2022/lib/error.message.component.mjs +0 -119
- package/esm2022/lib/error.message.wrapper.mjs +0 -32
- package/esm2022/lib/error.module.mjs +0 -45
- package/esm2022/lib/rxjs.utils.mjs +0 -10
- package/esm2022/public_api.mjs +0 -5
- package/lib/error.collector.d.ts +0 -16
- package/lib/error.menu.component.d.ts +0 -34
- package/lib/error.message.component.d.ts +0 -16
- package/lib/error.message.wrapper.d.ts +0 -15
- package/lib/error.module.d.ts +0 -10
- package/lib/rxjs.utils.d.ts +0 -8
- package/public_api.d.ts +0 -4
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AnimationEvent } from '@angular/animations';
|
|
2
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
3
|
-
import { ErrorMessageWrapper } from './error.message.wrapper';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ErrorMessageComponent {
|
|
6
|
-
readonly dateFormat: string;
|
|
7
|
-
private readonly changeDetectorRef;
|
|
8
|
-
readState: 'read' | null;
|
|
9
|
-
error?: ErrorMessageWrapper;
|
|
10
|
-
isLast: boolean;
|
|
11
|
-
constructor(dateFormat: string, changeDetectorRef: ChangeDetectorRef);
|
|
12
|
-
animate(): void;
|
|
13
|
-
markRead(event: AnimationEvent): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorMessageComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorMessageComponent, "risk-error-message", never, { "error": { "alias": "error"; "required": false; }; "isLast": { "alias": "isLast"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { ErrorMessage, ErrorType } from '@dbg-riskit/common';
|
|
3
|
-
export declare class ErrorMessageWrapper {
|
|
4
|
-
private readonly _error;
|
|
5
|
-
private readonly _date;
|
|
6
|
-
private _read;
|
|
7
|
-
readonly readStateChanged: EventEmitter<boolean>;
|
|
8
|
-
constructor(error: ErrorMessage);
|
|
9
|
-
get message(): string;
|
|
10
|
-
get type(): ErrorType;
|
|
11
|
-
get statusCode(): number;
|
|
12
|
-
get date(): Date;
|
|
13
|
-
get read(): boolean;
|
|
14
|
-
markRead(): void;
|
|
15
|
-
}
|
package/lib/error.module.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./error.menu.component";
|
|
3
|
-
import * as i2 from "./error.message.component";
|
|
4
|
-
import * as i3 from "@angular/common";
|
|
5
|
-
import * as i4 from "@dbg-riskit/angular-view";
|
|
6
|
-
export declare class ErrorModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ErrorModule, [typeof i1.ErrorComponent, typeof i2.ErrorMessageComponent], [typeof i3.CommonModule, typeof i4.CommonViewModule], [typeof i1.ErrorComponent]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ErrorModule>;
|
|
10
|
-
}
|
package/lib/rxjs.utils.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MonoTypeOperatorFunction } from 'rxjs';
|
|
2
|
-
import { ErrorCollectorService } from './error.collector';
|
|
3
|
-
/**
|
|
4
|
-
* Collects all error using error collector and returns the "otherwise" error instead.
|
|
5
|
-
* @param errorCollector Error collector service.
|
|
6
|
-
* @param otherwise Value to be returned in case of error.
|
|
7
|
-
*/
|
|
8
|
-
export declare function collectErrors<T>(errorCollector: ErrorCollectorService, otherwise: T): MonoTypeOperatorFunction<T>;
|
package/public_api.d.ts
DELETED