@skyux/modals 12.23.0 → 13.0.0-alpha.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.
Files changed (57) hide show
  1. package/fesm2022/skyux-modals-testing.mjs +11 -11
  2. package/fesm2022/skyux-modals-testing.mjs.map +1 -1
  3. package/fesm2022/skyux-modals.mjs +60 -60
  4. package/fesm2022/skyux-modals.mjs.map +1 -1
  5. package/index.d.ts +647 -27
  6. package/package.json +11 -11
  7. package/testing/index.d.ts +283 -3
  8. package/lib/modules/confirm/confirm-button-action.d.ts +0 -4
  9. package/lib/modules/confirm/confirm-button-config.d.ts +0 -24
  10. package/lib/modules/confirm/confirm-button-style-type.d.ts +0 -1
  11. package/lib/modules/confirm/confirm-button.d.ts +0 -12
  12. package/lib/modules/confirm/confirm-closed-event-args.d.ts +0 -6
  13. package/lib/modules/confirm/confirm-config-token.d.ts +0 -6
  14. package/lib/modules/confirm/confirm-config.d.ts +0 -26
  15. package/lib/modules/confirm/confirm-instance.d.ts +0 -17
  16. package/lib/modules/confirm/confirm-service-interface.d.ts +0 -8
  17. package/lib/modules/confirm/confirm-type.d.ts +0 -22
  18. package/lib/modules/confirm/confirm.component.d.ts +0 -20
  19. package/lib/modules/confirm/confirm.module.d.ts +0 -10
  20. package/lib/modules/confirm/confirm.service.d.ts +0 -19
  21. package/lib/modules/modal/modal-adapter.service.d.ts +0 -30
  22. package/lib/modules/modal/modal-before-close-handler.d.ts +0 -18
  23. package/lib/modules/modal/modal-close-args.d.ts +0 -15
  24. package/lib/modules/modal/modal-component-adapter.service.d.ts +0 -17
  25. package/lib/modules/modal/modal-configuration.d.ts +0 -29
  26. package/lib/modules/modal/modal-content.component.d.ts +0 -9
  27. package/lib/modules/modal/modal-error.d.ts +0 -9
  28. package/lib/modules/modal/modal-errors.service.d.ts +0 -14
  29. package/lib/modules/modal/modal-footer.component.d.ts +0 -11
  30. package/lib/modules/modal/modal-header.component.d.ts +0 -8
  31. package/lib/modules/modal/modal-host-context-args.d.ts +0 -7
  32. package/lib/modules/modal/modal-host-context.d.ts +0 -13
  33. package/lib/modules/modal/modal-host.component.d.ts +0 -17
  34. package/lib/modules/modal/modal-host.service.d.ts +0 -37
  35. package/lib/modules/modal/modal-instance.d.ts +0 -81
  36. package/lib/modules/modal/modal-is-dirty.directive.d.ts +0 -18
  37. package/lib/modules/modal/modal-service-interface.d.ts +0 -8
  38. package/lib/modules/modal/modal.component.d.ts +0 -90
  39. package/lib/modules/modal/modal.interface.d.ts +0 -75
  40. package/lib/modules/modal/modal.module.d.ts +0 -11
  41. package/lib/modules/modal/modal.service.d.ts +0 -36
  42. package/lib/modules/shared/sky-modals-resources.module.d.ts +0 -10
  43. package/testing/legacy/modal-fixture.d.ts +0 -57
  44. package/testing/modules/confirm/confirm-button-harness-filters.d.ts +0 -14
  45. package/testing/modules/confirm/confirm-button-harness.d.ts +0 -29
  46. package/testing/modules/confirm/confirm-harness.d.ts +0 -42
  47. package/testing/modules/confirm/confirm-testing.controller.d.ts +0 -28
  48. package/testing/modules/confirm/confirm-testing.module.d.ts +0 -9
  49. package/testing/modules/confirm/confirm-testing.service.d.ts +0 -14
  50. package/testing/modules/confirm/provide-confirm-testing.d.ts +0 -5
  51. package/testing/modules/modal/controller/modal-testing.controller.d.ts +0 -26
  52. package/testing/modules/modal/controller/modal-testing.module.d.ts +0 -9
  53. package/testing/modules/modal/controller/modal-testing.service.d.ts +0 -18
  54. package/testing/modules/modal/controller/provide-modal-testing.d.ts +0 -5
  55. package/testing/modules/modal/modal-harness-filters.d.ts +0 -6
  56. package/testing/modules/modal/modal-harness.d.ts +0 -64
  57. package/testing/public-api.d.ts +0 -10
@@ -1,26 +0,0 @@
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
- }
@@ -1,9 +0,0 @@
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
- }
@@ -1,18 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
1
- import { Provider } from '@angular/core';
2
- /**
3
- * @internal
4
- */
5
- export declare function provideModalTesting(): Provider[];
@@ -1,6 +0,0 @@
1
- import { SkyHarnessFilters } from '@skyux/core/testing';
2
- /**
3
- * A set of criteria that can be used to filter a list of SkyModalHarness instances.
4
- */
5
- export interface SkyModalHarnessFilters extends SkyHarnessFilters {
6
- }
@@ -1,64 +0,0 @@
1
- import { HarnessPredicate } from '@angular/cdk/testing';
2
- import { SkyComponentHarness } from '@skyux/core/testing';
3
- import { SkyModalHarnessFilters } from './modal-harness-filters';
4
- /**
5
- * Harness for interacting with a modal component in tests.
6
- */
7
- export declare class SkyModalHarness extends SkyComponentHarness {
8
- #private;
9
- /**
10
- * @internal
11
- */
12
- static hostSelector: string;
13
- /**
14
- * Gets a `HarnessPredicate` that can be used to search for a
15
- * `SkyModalHarness` that meets certain criteria
16
- */
17
- static with(filters: SkyModalHarnessFilters): HarnessPredicate<SkyModalHarness>;
18
- /**
19
- * Clicks the help inline button.
20
- */
21
- clickHelpInline(): Promise<void>;
22
- /**
23
- * Gets the aria-describedBy property of the modal.
24
- * @deprecated
25
- */
26
- getAriaDescribedBy(): Promise<string | null>;
27
- /**
28
- * Gets the aria-labelledBy property of the modal.
29
- * @deprecated
30
- */
31
- getAriaLabelledBy(): Promise<string | null>;
32
- /**
33
- * Gets the role of the modal.
34
- */
35
- getAriaRole(): Promise<string | null>;
36
- /**
37
- * Gets the modal's heading text.
38
- */
39
- getHeadingText(): Promise<string | undefined>;
40
- /**
41
- * Gets the help popover content.
42
- */
43
- getHelpPopoverContent(): Promise<string | undefined>;
44
- /**
45
- * Gets the help popover title.
46
- */
47
- getHelpPopoverTitle(): Promise<string | undefined>;
48
- /**
49
- * Gets the modal size.
50
- */
51
- getSize(): Promise<string>;
52
- /**
53
- * Gets the wrapper class of the modal.
54
- */
55
- getWrapperClass(): Promise<string | undefined>;
56
- /**
57
- * Whether the modal is full page.
58
- */
59
- isFullPage(): Promise<boolean>;
60
- /**
61
- * Whether the modal has {@link SkyModalIsDirtyDirective.isDirty} set to dirty.
62
- */
63
- isDirty(): Promise<boolean>;
64
- }
@@ -1,10 +0,0 @@
1
- export { SkyModalFixture } from './legacy/modal-fixture';
2
- export { SkyConfirmButtonHarness } from './modules/confirm/confirm-button-harness';
3
- export { SkyConfirmButtonHarnessFilters } from './modules/confirm/confirm-button-harness-filters';
4
- export { SkyConfirmHarness } from './modules/confirm/confirm-harness';
5
- export { SkyConfirmTestingController } from './modules/confirm/confirm-testing.controller';
6
- export { SkyConfirmTestingModule } from './modules/confirm/confirm-testing.module';
7
- export { SkyModalTestingController } from './modules/modal/controller/modal-testing.controller';
8
- export { SkyModalTestingModule } from './modules/modal/controller/modal-testing.module';
9
- export { SkyModalHarness } from './modules/modal/modal-harness';
10
- export { SkyModalHarnessFilters } from './modules/modal/modal-harness-filters';