@skyux/modals 10.3.0 → 10.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/modals",
3
- "version": "10.3.0",
3
+ "version": "10.5.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -40,10 +40,10 @@
40
40
  "@angular/common": "^17.3.1",
41
41
  "@angular/core": "^17.3.1",
42
42
  "@angular/router": "^17.3.1",
43
- "@skyux/core": "10.3.0",
44
- "@skyux/i18n": "10.3.0",
45
- "@skyux/indicators": "10.3.0",
46
- "@skyux/theme": "10.3.0"
43
+ "@skyux/core": "10.5.0",
44
+ "@skyux/i18n": "10.5.0",
45
+ "@skyux/indicators": "10.5.0",
46
+ "@skyux/theme": "10.5.0"
47
47
  },
48
48
  "dependencies": {
49
49
  "tslib": "^2.6.2"
@@ -0,0 +1,26 @@
1
+ import { Type } from '@angular/core';
2
+ import { SkyModalCloseArgs } from '@skyux/modals';
3
+ /**
4
+ * A controller to be injected into tests, which mocks the modal service
5
+ * and handles interactions with modal instances. For testing interactions
6
+ * with the modal component itself, use the `SkyModalHarness`.
7
+ */
8
+ export declare abstract class SkyModalTestingController {
9
+ /**
10
+ * Closes the topmost modal with the provided arguments.
11
+ * @param args Arguments to pass to the modal's close event.
12
+ */
13
+ abstract closeTopModal(args?: SkyModalCloseArgs): void;
14
+ /**
15
+ * Throws if the provided value does not match the number of open modals.
16
+ */
17
+ abstract expectCount(value: number): void;
18
+ /**
19
+ * Throws if modals are open.
20
+ */
21
+ abstract expectNone(): void;
22
+ /**
23
+ * Throws if the given criteria does not match the topmost open modal.
24
+ */
25
+ abstract expectOpen<TComponent>(component: Type<TComponent>): void;
26
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Configures the `SkyModalTestingController` as the implementation for the `SkyModalService`.
4
+ */
5
+ export declare class SkyModalTestingModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalTestingModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyModalTestingModule, never, never, never>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<SkyModalTestingModule>;
9
+ }
@@ -0,0 +1,18 @@
1
+ import { OnDestroy, StaticProvider, Type } from '@angular/core';
2
+ import { SkyModalCloseArgs, SkyModalConfigurationInterface, SkyModalInstance, SkyModalServiceInterface } from '@skyux/modals';
3
+ import { SkyModalTestingController } from './modal-testing.controller';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * @internal
7
+ */
8
+ export declare class SkyModalTestingService extends SkyModalTestingController implements OnDestroy, SkyModalServiceInterface {
9
+ #private;
10
+ ngOnDestroy(): void;
11
+ closeTopModal(args?: SkyModalCloseArgs): void;
12
+ expectCount(value: number): void;
13
+ expectNone(): void;
14
+ expectOpen<TComponent>(component: Type<TComponent>): void;
15
+ open<TComponent>(component: Type<TComponent>, config?: SkyModalConfigurationInterface | StaticProvider[]): SkyModalInstance;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalTestingService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<SkyModalTestingService>;
18
+ }
@@ -0,0 +1,5 @@
1
+ import { Provider } from '@angular/core';
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare function provideModalTesting(): Provider[];
@@ -4,5 +4,7 @@ export { SkyConfirmButtonHarnessFilters } from './confirm/confirm-button-harness
4
4
  export { SkyConfirmHarness } from './confirm/confirm-harness';
5
5
  export { SkyConfirmTestingController } from './confirm/confirm-testing.controller';
6
6
  export { SkyConfirmTestingModule } from './confirm/confirm-testing.module';
7
+ export { SkyModalTestingController } from './modal/controller/modal-testing.controller';
8
+ export { SkyModalTestingModule } from './modal/controller/modal-testing.module';
7
9
  export { SkyModalHarness } from './modal/modal-harness';
8
10
  export { SkyModalHarnessFilters } from './modal/modal-harness-filters';