@skyux/modals 7.0.0-alpha.0 → 7.0.0-beta.1

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 (30) hide show
  1. package/documentation.json +867 -223
  2. package/esm2020/index.mjs +2 -1
  3. package/esm2020/lib/modules/confirm/confirm-button-config.mjs +1 -1
  4. package/esm2020/lib/modules/confirm/confirm-button-style-type.mjs +2 -0
  5. package/esm2020/lib/modules/confirm/confirm-button.mjs +1 -1
  6. package/esm2020/lib/modules/confirm/confirm.component.mjs +5 -3
  7. package/esm2020/lib/modules/modal/modal-host.component.mjs +3 -3
  8. package/esm2020/lib/modules/modal/modal.component.mjs +3 -3
  9. package/esm2020/testing/confirm/confirm-button-harness-filters.mjs +2 -0
  10. package/esm2020/testing/confirm/confirm-button-harness.mjs +46 -0
  11. package/esm2020/testing/confirm/confirm-harness.mjs +97 -0
  12. package/esm2020/testing/public-api.mjs +4 -1
  13. package/fesm2015/skyux-modals-testing.mjs +166 -2
  14. package/fesm2015/skyux-modals-testing.mjs.map +1 -1
  15. package/fesm2015/skyux-modals.mjs +8 -6
  16. package/fesm2015/skyux-modals.mjs.map +1 -1
  17. package/fesm2020/skyux-modals-testing.mjs +142 -1
  18. package/fesm2020/skyux-modals-testing.mjs.map +1 -1
  19. package/fesm2020/skyux-modals.mjs +8 -6
  20. package/fesm2020/skyux-modals.mjs.map +1 -1
  21. package/index.d.ts +1 -0
  22. package/lib/modules/confirm/confirm-button-config.d.ts +2 -0
  23. package/lib/modules/confirm/confirm-button-style-type.d.ts +1 -0
  24. package/lib/modules/confirm/confirm-button.d.ts +2 -1
  25. package/lib/modules/confirm/confirm.component.d.ts +1 -0
  26. package/package.json +6 -5
  27. package/testing/confirm/confirm-button-harness-filters.d.ts +14 -0
  28. package/testing/confirm/confirm-button-harness.d.ts +27 -0
  29. package/testing/confirm/confirm-harness.d.ts +39 -0
  30. package/testing/public-api.d.ts +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/modals",
3
- "version": "7.0.0-alpha.0",
3
+ "version": "7.0.0-beta.1",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -40,13 +40,14 @@
40
40
  }
41
41
  },
42
42
  "peerDependencies": {
43
+ "@angular/cdk": "^14.2.0",
43
44
  "@angular/common": "^14.2.0",
44
45
  "@angular/core": "^14.2.0",
45
46
  "@angular/router": "^14.2.0",
46
- "@skyux/core": "7.0.0-alpha.0",
47
- "@skyux/i18n": "7.0.0-alpha.0",
48
- "@skyux/indicators": "7.0.0-alpha.0",
49
- "@skyux/theme": "7.0.0-alpha.0"
47
+ "@skyux/core": "7.0.0-beta.1",
48
+ "@skyux/i18n": "7.0.0-beta.1",
49
+ "@skyux/indicators": "7.0.0-beta.1",
50
+ "@skyux/theme": "7.0.0-beta.1"
50
51
  },
51
52
  "dependencies": {
52
53
  "tslib": "^2.3.1"
@@ -0,0 +1,14 @@
1
+ import { BaseHarnessFilters } from '@angular/cdk/testing';
2
+ /**
3
+ * A set of criteria that can be used to filter a list of SkyConfirmButtonHarness instances.
4
+ */
5
+ export interface SkyConfirmButtonHarnessFilters extends Omit<BaseHarnessFilters, 'selector'> {
6
+ /**
7
+ * Only find instances whose content matches the given value.
8
+ */
9
+ text?: string | RegExp;
10
+ /**
11
+ * Only find instances whose style matches the given value.
12
+ */
13
+ styleType?: string;
14
+ }
@@ -0,0 +1,27 @@
1
+ import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
2
+ import { SkyConfirmButtonStyleType } from '@skyux/modals';
3
+ import { SkyConfirmButtonHarnessFilters } from './confirm-button-harness-filters';
4
+ /**
5
+ * Harness for interacting with a confirm component in tests.
6
+ * @internal
7
+ */
8
+ export declare class SkyConfirmButtonHarness extends ComponentHarness {
9
+ static hostSelector: string;
10
+ /**
11
+ * Gets a `HarnessPredicate` that can be used to search for a
12
+ * `SkyConfirmButtonHarness` that meets certain criteria.
13
+ */
14
+ static with(filters: SkyConfirmButtonHarnessFilters): HarnessPredicate<SkyConfirmButtonHarness>;
15
+ /**
16
+ * Clicks the confirm button.
17
+ */
18
+ click(): Promise<void>;
19
+ /**
20
+ * Gets the button style of the confirm button.
21
+ */
22
+ getStyleType(): Promise<SkyConfirmButtonStyleType>;
23
+ /**
24
+ * Gets the text content of the confirm button.
25
+ */
26
+ getText(): Promise<string>;
27
+ }
@@ -0,0 +1,39 @@
1
+ import { SkyComponentHarness } from '@skyux/core/testing';
2
+ import { SkyConfirmType } from '@skyux/modals';
3
+ import { SkyConfirmButtonHarness } from './confirm-button-harness';
4
+ import { SkyConfirmButtonHarnessFilters } from './confirm-button-harness-filters';
5
+ /**
6
+ * Harness for interacting with a confirm component in tests.
7
+ */
8
+ export declare class SkyConfirmHarness extends SkyComponentHarness {
9
+ #private;
10
+ static hostSelector: string;
11
+ /**
12
+ * Clicks a confirm button.
13
+ */
14
+ clickCustomButton(filters: SkyConfirmButtonHarnessFilters): Promise<void>;
15
+ /**
16
+ * Clicks a confirm button.
17
+ */
18
+ clickOkButton(): Promise<void>;
19
+ /**
20
+ * Gets the body of the confirm component.
21
+ */
22
+ getBodyText(): Promise<string | undefined>;
23
+ /**
24
+ * Gets the confirm component's custom buttons.
25
+ */
26
+ getCustomButtons(filters?: SkyConfirmButtonHarnessFilters): Promise<SkyConfirmButtonHarness[]>;
27
+ /**
28
+ * Gets the message of the confirm component.
29
+ */
30
+ getMessageText(): Promise<string>;
31
+ /**
32
+ * Gets the type of the confirm component.
33
+ */
34
+ getType(): Promise<SkyConfirmType>;
35
+ /**
36
+ * Indicates if the whitespace is preserved on the confirom component.
37
+ */
38
+ isWhiteSpacePreserved(): Promise<boolean>;
39
+ }
@@ -1 +1,4 @@
1
1
  export * from './modal-fixture';
2
+ export * from './confirm/confirm-harness';
3
+ export * from './confirm/confirm-button-harness';
4
+ export * from './confirm/confirm-button-harness-filters';