@dbg-riskit/angular-testing 9999.9999.9999-rc.63199 → 9999.9999.9999-rc.6693152

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 (64) hide show
  1. package/docs/README.md +5 -6
  2. package/{fesm2015 → fesm2022}/dbg-riskit-angular-testing.mjs +306 -444
  3. package/fesm2022/dbg-riskit-angular-testing.mjs.map +1 -0
  4. package/index.d.ts +469 -0
  5. package/package.json +20 -29
  6. package/dbg-riskit-angular-testing.d.ts +0 -5
  7. package/esm2020/dbg-riskit-angular-testing.mjs +0 -5
  8. package/esm2020/lib/by.util.mjs +0 -19
  9. package/esm2020/lib/definitions/data.table.definition.mjs +0 -556
  10. package/esm2020/lib/definitions/download.menu.page.mjs +0 -90
  11. package/esm2020/lib/definitions/highlighter.directive.page.mjs +0 -36
  12. package/esm2020/lib/definitions/layout.component.page.mjs +0 -93
  13. package/esm2020/lib/definitions/link.definition.mjs +0 -19
  14. package/esm2020/lib/definitions/link.only.page.mjs +0 -13
  15. package/esm2020/lib/definitions/login.menu.page.mjs +0 -25
  16. package/esm2020/lib/definitions/login.page.mjs +0 -51
  17. package/esm2020/lib/definitions/message.def.mjs +0 -15
  18. package/esm2020/lib/definitions/message.page.mjs +0 -68
  19. package/esm2020/lib/definitions/page.base.mjs +0 -64
  20. package/esm2020/lib/environment.mjs +0 -23
  21. package/esm2020/lib/events.mjs +0 -60
  22. package/esm2020/lib/stubs/auth/auth.routing.flow.service.stub.mjs +0 -37
  23. package/esm2020/lib/stubs/auth/auth.service.stub.mjs +0 -40
  24. package/esm2020/lib/stubs/auth/well.known.service.stub.mjs +0 -22
  25. package/esm2020/lib/stubs/http.service.stub.mjs +0 -54
  26. package/esm2020/lib/stubs/login.menu.stub.component.mjs +0 -19
  27. package/esm2020/lib/stubs/router/activated.route.stub.mjs +0 -29
  28. package/esm2020/lib/stubs/router/router.link.stub.mjs +0 -46
  29. package/esm2020/lib/stubs/router/router.module.stub.mjs +0 -45
  30. package/esm2020/lib/stubs/router/router.outlet.stub.component.mjs +0 -16
  31. package/esm2020/lib/stubs/router/router.stub.mjs +0 -79
  32. package/esm2020/lib/testing.module.mjs +0 -52
  33. package/esm2020/lib/utils.mjs +0 -48
  34. package/esm2020/public_api.mjs +0 -48
  35. package/fesm2015/dbg-riskit-angular-testing.mjs.map +0 -1
  36. package/fesm2020/dbg-riskit-angular-testing.mjs +0 -1546
  37. package/fesm2020/dbg-riskit-angular-testing.mjs.map +0 -1
  38. package/lib/by.util.d.ts +0 -6
  39. package/lib/definitions/data.table.definition.d.ts +0 -176
  40. package/lib/definitions/download.menu.page.d.ts +0 -38
  41. package/lib/definitions/highlighter.directive.page.d.ts +0 -22
  42. package/lib/definitions/layout.component.page.d.ts +0 -28
  43. package/lib/definitions/link.definition.d.ts +0 -11
  44. package/lib/definitions/link.only.page.d.ts +0 -7
  45. package/lib/definitions/login.menu.page.d.ts +0 -11
  46. package/lib/definitions/login.page.d.ts +0 -17
  47. package/lib/definitions/message.def.d.ts +0 -6
  48. package/lib/definitions/message.page.d.ts +0 -20
  49. package/lib/definitions/page.base.d.ts +0 -21
  50. package/lib/environment.d.ts +0 -4
  51. package/lib/events.d.ts +0 -22
  52. package/lib/stubs/auth/auth.routing.flow.service.stub.d.ts +0 -16
  53. package/lib/stubs/auth/auth.service.stub.d.ts +0 -16
  54. package/lib/stubs/auth/well.known.service.stub.d.ts +0 -9
  55. package/lib/stubs/http.service.stub.d.ts +0 -25
  56. package/lib/stubs/login.menu.stub.component.d.ts +0 -6
  57. package/lib/stubs/router/activated.route.stub.d.ts +0 -14
  58. package/lib/stubs/router/router.link.stub.d.ts +0 -15
  59. package/lib/stubs/router/router.module.stub.d.ts +0 -3
  60. package/lib/stubs/router/router.outlet.stub.component.d.ts +0 -5
  61. package/lib/stubs/router/router.stub.d.ts +0 -27
  62. package/lib/testing.module.d.ts +0 -17
  63. package/lib/utils.d.ts +0 -3
  64. package/public_api.d.ts +0 -27
@@ -1,21 +0,0 @@
1
- import { DebugElement } from '@angular/core';
2
- import { ComponentFixture } from '@angular/core/testing';
3
- import { MessageComponentDef } from './message.def';
4
- export declare class Page<T> {
5
- protected fixture: ComponentFixture<T>;
6
- debugElement: DebugElement;
7
- component: T;
8
- private _timeOffset;
9
- constructor(fixture: ComponentFixture<T>);
10
- detectChanges(millis?: number): void;
11
- advanceAndDetectChanges(millis?: number): void;
12
- advanceHTTP(): void;
13
- advanceAndDetectChangesUsingOffset(millis: number): void;
14
- resetTimeOffset(): void;
15
- destroy(): void;
16
- }
17
- export declare class PageWithLoading<T> extends Page<T> {
18
- constructor(fixture: ComponentFixture<T>);
19
- get initialLoadComponent(): MessageComponentDef | null;
20
- get noDataComponent(): MessageComponentDef | null;
21
- }
@@ -1,4 +0,0 @@
1
- import '@dbg-riskit/angular-polyfill';
2
- import 'zone.js/testing';
3
- export declare const COMPILE_TIMEOUT_INTERVAL: number;
4
- export declare function initTestEnvironment(): void;
package/lib/events.d.ts DELETED
@@ -1,22 +0,0 @@
1
- import { DebugElement } from '@angular/core';
2
- /** Button events to pass to `DebugElement.triggerEventHandler` for RouterLink event handler */
3
- export declare const BUTTON_CLICK_EVENTS: {
4
- left: {
5
- button: number;
6
- };
7
- right: {
8
- button: number;
9
- };
10
- };
11
- /** Simulate element click. Defaults to mouse left-button click event. */
12
- export declare function click(el: DebugElement | HTMLElement, eventObj?: any): void;
13
- export declare function setNgModelValue(element: DebugElement, value: string, realAsync?: boolean): void;
14
- export declare function setNgModelSelectValue(element: DebugElement, selectedIndex: number, realAsync?: boolean): void;
15
- export declare function dispatchEvent(element: DebugElement | HTMLElement | Window, eventName: string): void;
16
- /**
17
- * Create custom DOM event the old fashioned way
18
- *
19
- * https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent
20
- * Although officially deprecated, some browsers (phantom) don't accept the preferred "new Event(eventName)"
21
- */
22
- export declare function newEvent(eventName: string, bubbles?: boolean, cancelable?: boolean): CustomEvent;
@@ -1,16 +0,0 @@
1
- import { RouterStateSnapshot } from '@angular/router';
2
- import { AuthConfig, AuthRoutingFlowService, AuthService } from '@dbg-riskit/angular-auth';
3
- import { Observable } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare const storage: {
6
- authRequestedPath: string | null;
7
- };
8
- export declare class AuthRoutingFlowServiceStub extends AuthRoutingFlowService {
9
- private authServiceStub;
10
- constructor(authServiceStub: AuthService, authConfig: AuthConfig);
11
- logout(state?: RouterStateSnapshot): Observable<boolean>;
12
- login(username?: string, password?: string): Observable<boolean>;
13
- loginViaService(): Observable<boolean>;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthRoutingFlowServiceStub, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthRoutingFlowServiceStub>;
16
- }
@@ -1,16 +0,0 @@
1
- import { AuthService } from '@dbg-riskit/angular-auth';
2
- import { UserInfo } from '@dbg-riskit/common';
3
- import { Observable } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class AuthServiceStub extends AuthService {
6
- constructor();
7
- private user?;
8
- get loggedIn(): Observable<boolean>;
9
- get userProfile(): Observable<UserInfo>;
10
- loginViaAuthService(): Observable<boolean>;
11
- checkLocationForLoginData(): Observable<boolean>;
12
- directLogin(username: string, password: string): Observable<boolean>;
13
- logout(): Observable<never>;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthServiceStub, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthServiceStub>;
16
- }
@@ -1,9 +0,0 @@
1
- import { WellKnown } from '@dbg-riskit/angular-auth';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare const WELL_KNOWN: WellKnown;
5
- export declare class WellKnownServiceStub {
6
- get wellKnown(): Observable<WellKnown>;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<WellKnownServiceStub, never>;
8
- static ɵprov: i0.ɵɵInjectableDeclaration<WellKnownServiceStub>;
9
- }
@@ -1,25 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { Request, RequestWithData } from '@dbg-riskit/angular-common';
3
- import { ErrorMessage } from '@dbg-riskit/common';
4
- import { Observable } from 'rxjs';
5
- import * as i0 from "@angular/core";
6
- export declare const FAKE_HTTP_ASYNC_TIMEOUT = 1000;
7
- export declare class HttpServiceStub<T> {
8
- private value;
9
- private error;
10
- unauthorized: EventEmitter<ErrorMessage>;
11
- returnValue(value: T): void;
12
- popReturnValue(): T | undefined;
13
- shiftReturnValue(): T | undefined;
14
- throwError(value: ErrorMessage): void;
15
- get(request: Request<T>): Observable<T | undefined>;
16
- post(request: RequestWithData<T>): Observable<T | undefined>;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<HttpServiceStub<any>, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<HttpServiceStub<any>>;
19
- }
20
- export declare class HttpAsyncServiceStub<T> extends HttpServiceStub<T> {
21
- get(request: Request<T>, auth?: boolean): Observable<T | undefined>;
22
- post(request: RequestWithData<T>): Observable<T | undefined>;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<HttpAsyncServiceStub<any>, never>;
24
- static ɵprov: i0.ɵɵInjectableDeclaration<HttpAsyncServiceStub<any>>;
25
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class LoginMenuStubComponent {
3
- orientation: 'row' | 'column';
4
- static ɵfac: i0.ɵɵFactoryDeclaration<LoginMenuStubComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<LoginMenuStubComponent, "login-menu, risk-login-menu", never, { "orientation": "orientation"; }, {}, never, never>;
6
- }
@@ -1,14 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export declare class ActivatedRouteStub<T> {
4
- private _testParams;
5
- private subject;
6
- params: Observable<T>;
7
- get testParams(): T;
8
- set testParams(params: T);
9
- get snapshot(): {
10
- params: T;
11
- };
12
- static ɵfac: i0.ɵɵFactoryDeclaration<ActivatedRouteStub<any>, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<ActivatedRouteStub<any>>;
14
- }
@@ -1,15 +0,0 @@
1
- import { Injector, OnChanges } from '@angular/core';
2
- import { UrlTree } from '@angular/router';
3
- import * as i0 from "@angular/core";
4
- export declare class RouterLinkStubDirective implements OnChanges {
5
- linkParams: any;
6
- navigatedTo: any;
7
- private _urlTree;
8
- private routerStub;
9
- constructor(injector: Injector);
10
- ngOnChanges(): void;
11
- onClick(): void;
12
- get urlTree(): UrlTree | null;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<RouterLinkStubDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<RouterLinkStubDirective, "[routerLink]", never, { "linkParams": "routerLink"; }, {}, never>;
15
- }
@@ -1,3 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { MetadataOverride, TestBed } from '@angular/core/testing';
3
- export declare function stubRouter(customOverrides?: MetadataOverride<NgModule>): typeof TestBed;
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class RouterOutletStubComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<RouterOutletStubComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<RouterOutletStubComponent, "router-outlet", never, {}, {}, never, never>;
5
- }
@@ -1,27 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { NavigationEnd, NavigationExtras, UrlTree } from '@angular/router';
3
- import * as i0 from "@angular/core";
4
- export declare class Snapshot {
5
- private stub;
6
- constructor(stub: RouterStub);
7
- get url(): string;
8
- }
9
- export declare class RouterStub {
10
- private id;
11
- navigated: boolean;
12
- private currentUrlTree;
13
- routerState: {
14
- snapshot: Snapshot;
15
- };
16
- events: EventEmitter<NavigationEnd>;
17
- getURLTree(url: string | UrlTree | any[]): UrlTree;
18
- navigateByUrl(url: string | UrlTree): string | UrlTree;
19
- navigate(commands: any[], extras?: NavigationExtras): (any[] | NavigationExtras | undefined)[];
20
- private emitNavigate;
21
- isActive(url: UrlTree): boolean;
22
- getCurrentURL(): string;
23
- createUrlTree(commands: any[], extras?: NavigationExtras): UrlTree;
24
- static serializeUrl(url: UrlTree): string;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<RouterStub, never>;
26
- static ɵprov: i0.ɵɵInjectableDeclaration<RouterStub>;
27
- }
@@ -1,17 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./definitions/download.menu.page";
3
- import * as i2 from "./definitions/data.table.definition";
4
- import * as i3 from "./definitions/highlighter.directive.page";
5
- import * as i4 from "./definitions/layout.component.page";
6
- import * as i5 from "./stubs/router/router.link.stub";
7
- import * as i6 from "./definitions/message.page";
8
- import * as i7 from "./stubs/login.menu.stub.component";
9
- import * as i8 from "./stubs/router/router.outlet.stub.component";
10
- import * as i9 from "@dbg-riskit/angular-view";
11
- import * as i10 from "@dbg-riskit/angular-file";
12
- import * as i11 from "@dbg-riskit/angular-datatable";
13
- export declare class TestingModule {
14
- static ɵfac: i0.ɵɵFactoryDeclaration<TestingModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<TestingModule, [typeof i1.DownloadTestComponent, typeof i2.TestDataTableHostComponent, typeof i3.HighLighterDirectiveTestComponent, typeof i4.TestLayoutHostComponent, typeof i5.RouterLinkStubDirective, typeof i6.TestMessageHostComponent, typeof i7.LoginMenuStubComponent, typeof i8.RouterOutletStubComponent], [typeof i9.CommonViewModule, typeof i10.FileModule, typeof i11.DataTableModule], never>;
16
- static ɵinj: i0.ɵɵInjectorDeclaration<TestingModule>;
17
- }
package/lib/utils.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { Type } from '@angular/core';
2
- export declare function disableMaterialAnimations(ngModule: Type<any>): void;
3
- export declare function compileTestBed(compileFunction: () => Promise<any>, destroyFunction?: () => void, stubMatchMedia?: boolean): void;
package/public_api.d.ts DELETED
@@ -1,27 +0,0 @@
1
- export * from './lib/environment';
2
- export * from './lib/definitions/download.menu.page';
3
- export * from './lib/definitions/data.table.definition';
4
- export * from './lib/definitions/highlighter.directive.page';
5
- export * from './lib/definitions/layout.component.page';
6
- export * from './lib/definitions/link.definition';
7
- export * from './lib/definitions/link.only.page';
8
- export * from './lib/definitions/login.menu.page';
9
- export * from './lib/definitions/login.page';
10
- export * from './lib/definitions/message.def';
11
- export * from './lib/definitions/message.page';
12
- export * from './lib/definitions/page.base';
13
- export * from './lib/stubs/auth/auth.routing.flow.service.stub';
14
- export * from './lib/stubs/auth/auth.service.stub';
15
- export * from './lib/stubs/auth/well.known.service.stub';
16
- export * from './lib/stubs/http.service.stub';
17
- export * from './lib/stubs/login.menu.stub.component';
18
- export * from './lib/stubs/router/activated.route.stub';
19
- export * from './lib/stubs/router/router.link.stub';
20
- export * from './lib/stubs/router/router.outlet.stub.component';
21
- export * from './lib/stubs/router/router.stub';
22
- export * from './lib/stubs/router/router.module.stub';
23
- export * from './lib/by.util';
24
- export * from './lib/events';
25
- export * from './lib/utils';
26
- export * from './lib/testing.module';
27
- export { LayoutComponent, NoopAnimationsCommonViewModule, NoopAnimationMessageComponent } from '@dbg-riskit/angular-view';