@skyux/modals 8.0.0-alpha.8 → 8.0.0-beta.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/documentation.json +1162 -388
- package/esm2020/lib/modules/confirm/confirm.component.mjs +3 -3
- package/esm2020/lib/modules/modal/modal-before-close-handler.mjs +3 -3
- package/esm2020/lib/modules/modal/modal-footer.component.mjs +4 -4
- package/esm2020/lib/modules/modal/modal-header.component.mjs +3 -3
- package/esm2020/lib/modules/modal/modal.component.mjs +25 -7
- package/esm2020/testing/modal/modal-harness-filters.mjs +2 -0
- package/esm2020/testing/modal/modal-harness.mjs +73 -0
- package/esm2020/testing/public-api.mjs +3 -1
- package/fesm2015/skyux-modals-testing.mjs +84 -1
- package/fesm2015/skyux-modals-testing.mjs.map +1 -1
- package/fesm2015/skyux-modals.mjs +30 -14
- package/fesm2015/skyux-modals.mjs.map +1 -1
- package/fesm2020/skyux-modals-testing.mjs +72 -1
- package/fesm2020/skyux-modals-testing.mjs.map +1 -1
- package/fesm2020/skyux-modals.mjs +30 -14
- package/fesm2020/skyux-modals.mjs.map +1 -1
- package/lib/modules/modal/modal-before-close-handler.d.ts +11 -2
- package/lib/modules/modal/modal.component.d.ts +4 -2
- package/package.json +5 -5
- package/testing/modal/modal-harness-filters.d.ts +6 -0
- package/testing/modal/modal-harness.d.ts +42 -0
- package/testing/public-api.d.ts +2 -0
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
* Gets the aria-describedBy property of the modal
|
|
20
|
+
*/
|
|
21
|
+
getAriaDescribedBy(): Promise<string | null>;
|
|
22
|
+
/**
|
|
23
|
+
* Gets the aria-labelledBy property of the modal
|
|
24
|
+
*/
|
|
25
|
+
getAriaLabelledBy(): Promise<string | null>;
|
|
26
|
+
/**
|
|
27
|
+
* Gets the role of the modal.
|
|
28
|
+
*/
|
|
29
|
+
getAriaRole(): Promise<string | null>;
|
|
30
|
+
/**
|
|
31
|
+
* Gets the modal size.
|
|
32
|
+
*/
|
|
33
|
+
getSize(): Promise<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Gets the wrapper class of the modal.
|
|
36
|
+
*/
|
|
37
|
+
getWrapperClass(): Promise<string | undefined>;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the modal is full page.
|
|
40
|
+
*/
|
|
41
|
+
isFullPage(): Promise<boolean>;
|
|
42
|
+
}
|
package/testing/public-api.d.ts
CHANGED
|
@@ -2,3 +2,5 @@ export * from './modal-fixture';
|
|
|
2
2
|
export * from './confirm/confirm-harness';
|
|
3
3
|
export * from './confirm/confirm-button-harness';
|
|
4
4
|
export * from './confirm/confirm-button-harness-filters';
|
|
5
|
+
export * from './modal/modal-harness';
|
|
6
|
+
export * from './modal/modal-harness-filters';
|