@dbg-riskit/angular-error 18.0.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.
@@ -1,16 +0,0 @@
1
- import { ErrorHandler } from '@angular/core';
2
- import { AuthProvider, ErrorMessage } from '@dbg-riskit/common';
3
- import { Observable } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export type ErrorTypes = ErrorMessage | Error | object | string;
6
- export declare function toErrorMessage(err: ErrorTypes): ErrorMessage;
7
- export declare class ErrorCollectorService extends ErrorHandler {
8
- private _errorObservable;
9
- constructor(authProvider: AuthProvider);
10
- error(err: ErrorMessage): void;
11
- get errorStream(): Observable<ErrorMessage>;
12
- handleError(err: ErrorTypes): void;
13
- handleStreamError<T>(err: ErrorTypes): Observable<T>;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<ErrorCollectorService, [{ optional: true; }]>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<ErrorCollectorService>;
16
- }
@@ -1,34 +0,0 @@
1
- import { AnimationAnimateMetadata, AnimationEvent } from '@angular/animations';
2
- import { ChangeDetectorRef, OnInit, QueryList } from '@angular/core';
3
- import { MatColorTheme } from '@dbg-riskit/angular-common';
4
- import { BaseComponent } from '@dbg-riskit/angular-view';
5
- import { AuthProvider } from '@dbg-riskit/common';
6
- import { ErrorCollectorService } from './error.collector';
7
- import { ErrorMessageComponent } from './error.message.component';
8
- import { ErrorMessageWrapper } from './error.message.wrapper';
9
- import * as i0 from "@angular/core";
10
- export declare const JIGGLE_ANIMATION: AnimationAnimateMetadata;
11
- export declare class ErrorComponent extends BaseComponent implements OnInit {
12
- private readonly errorCollector;
13
- private readonly authProvider;
14
- private readonly changeDetectorRef;
15
- state: 'active' | 'newError' | null;
16
- keepVisibleOnClick?: boolean;
17
- private readonly _errors;
18
- private readonly _menuState;
19
- errorMessages?: QueryList<ErrorMessageComponent>;
20
- constructor(errorCollector: ErrorCollectorService, authProvider: AuthProvider, changeDetectorRef: ChangeDetectorRef);
21
- ngOnInit(): void;
22
- private animateOnMenuOpened;
23
- private loggedInChanged;
24
- private subscribeToErrors;
25
- private errorReceived;
26
- get color(): MatColorTheme;
27
- menuOpened(): void;
28
- menuClosed(): void;
29
- get errors(): ErrorMessageWrapper[];
30
- animationDone(event: AnimationEvent): void;
31
- private initAnimation;
32
- static ɵfac: i0.ɵɵFactoryDeclaration<ErrorComponent, [null, { optional: true; }, null]>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<ErrorComponent, "risk-error-menu", never, { "keepVisibleOnClick": { "alias": "keepVisibleOnClick"; "required": false; }; }, {}, never, never, false, never>;
34
- }
@@ -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
- }
@@ -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
- }
@@ -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
@@ -1,4 +0,0 @@
1
- export * from './lib/error.collector';
2
- export * from './lib/error.menu.component';
3
- export * from './lib/error.module';
4
- export * from './lib/rxjs.utils';