@skyux/forms 11.4.0 → 11.6.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 +4196 -1174
- package/esm2022/lib/modules/checkbox/checkbox-group.component.mjs +3 -3
- package/esm2022/lib/modules/shared/sky-forms-resources.module.mjs +2 -2
- package/esm2022/testing/checkbox/checkbox-group-harness-filters.mjs +2 -0
- package/esm2022/testing/checkbox/checkbox-group-harness.mjs +158 -0
- package/esm2022/testing/checkbox/checkbox-harness.mjs +9 -3
- package/esm2022/testing/public-api.mjs +2 -1
- package/fesm2022/skyux-forms-testing.mjs +163 -3
- package/fesm2022/skyux-forms-testing.mjs.map +1 -1
- package/fesm2022/skyux-forms.mjs +3 -3
- package/fesm2022/skyux-forms.mjs.map +1 -1
- package/package.json +9 -9
- package/testing/checkbox/checkbox-group-harness-filters.d.ts +7 -0
- package/testing/checkbox/checkbox-group-harness.d.ts +73 -0
- package/testing/checkbox/checkbox-harness.d.ts +5 -3
- package/testing/public-api.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/forms",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.6.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"@angular/core": "^18.2.5",
|
|
42
42
|
"@angular/forms": "^18.2.5",
|
|
43
43
|
"@angular/platform-browser": "^18.2.5",
|
|
44
|
-
"@skyux-sdk/testing": "11.
|
|
45
|
-
"@skyux/core": "11.
|
|
46
|
-
"@skyux/help-inline": "11.
|
|
47
|
-
"@skyux/i18n": "11.
|
|
48
|
-
"@skyux/icon": "11.
|
|
49
|
-
"@skyux/indicators": "11.
|
|
50
|
-
"@skyux/popovers": "11.
|
|
51
|
-
"@skyux/theme": "11.
|
|
44
|
+
"@skyux-sdk/testing": "11.6.0",
|
|
45
|
+
"@skyux/core": "11.6.0",
|
|
46
|
+
"@skyux/help-inline": "11.6.0",
|
|
47
|
+
"@skyux/i18n": "11.6.0",
|
|
48
|
+
"@skyux/icon": "11.6.0",
|
|
49
|
+
"@skyux/indicators": "11.6.0",
|
|
50
|
+
"@skyux/popovers": "11.6.0",
|
|
51
|
+
"@skyux/theme": "11.6.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"tslib": "^2.6.3"
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
+
import { SkyCheckboxGroupHeadingLevel, SkyCheckboxGroupHeadingStyle } from '@skyux/forms';
|
|
4
|
+
import { SkyCheckboxGroupHarnessFilters } from './checkbox-group-harness-filters';
|
|
5
|
+
import { SkyCheckboxHarness } from './checkbox-harness';
|
|
6
|
+
/**
|
|
7
|
+
* Harness for interacting with a checkbox group component in tests.
|
|
8
|
+
*/
|
|
9
|
+
export declare class SkyCheckboxGroupHarness extends SkyComponentHarness {
|
|
10
|
+
#private;
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
static hostSelector: string;
|
|
15
|
+
/**
|
|
16
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
17
|
+
* `SkyCheckboxGroupHarness` that meets certain criteria.
|
|
18
|
+
*/
|
|
19
|
+
static with(filters: SkyCheckboxGroupHarnessFilters): HarnessPredicate<SkyCheckboxGroupHarness>;
|
|
20
|
+
/**
|
|
21
|
+
* Clicks the help inline button.
|
|
22
|
+
*/
|
|
23
|
+
clickHelpInline(): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Gets an array of harnesses for the checkboxes in the checkbox group.
|
|
26
|
+
*/
|
|
27
|
+
getCheckboxes(): Promise<SkyCheckboxHarness[]>;
|
|
28
|
+
/**
|
|
29
|
+
* Gets the help popover content.
|
|
30
|
+
*/
|
|
31
|
+
getHelpPopoverContent(): Promise<string | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* Gets the help popover title.
|
|
34
|
+
*/
|
|
35
|
+
getHelpPopoverTitle(): Promise<string | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* Gets the checkbox group's heading text. If `headingHidden` is true,
|
|
38
|
+
* the text will still be returned.
|
|
39
|
+
*/
|
|
40
|
+
getHeadingText(): Promise<string | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* Gets the checkbox group's hint text.
|
|
43
|
+
*/
|
|
44
|
+
getHintText(): Promise<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the heading is hidden.
|
|
47
|
+
*/
|
|
48
|
+
getHeadingHidden(): Promise<boolean>;
|
|
49
|
+
/**
|
|
50
|
+
* The semantic heading level used for the checkbox group. Returns undefined if heading level is not set.
|
|
51
|
+
*/
|
|
52
|
+
getHeadingLevel(): Promise<SkyCheckboxGroupHeadingLevel | undefined>;
|
|
53
|
+
/**
|
|
54
|
+
* The heading style used for the checkbox group.
|
|
55
|
+
*/
|
|
56
|
+
getHeadingStyle(): Promise<SkyCheckboxGroupHeadingStyle>;
|
|
57
|
+
/**
|
|
58
|
+
* Whether the checkbox group is required.
|
|
59
|
+
*/
|
|
60
|
+
getRequired(): Promise<boolean>;
|
|
61
|
+
/**
|
|
62
|
+
* Whether the checkbox group is stacked.
|
|
63
|
+
*/
|
|
64
|
+
getStacked(): Promise<boolean>;
|
|
65
|
+
/**
|
|
66
|
+
* Whether all the checkboxes in a required group are unchecked.
|
|
67
|
+
*/
|
|
68
|
+
hasRequiredError(): Promise<boolean>;
|
|
69
|
+
/**
|
|
70
|
+
* Whether the checkbox group has errors.
|
|
71
|
+
*/
|
|
72
|
+
hasError(errorName: string): Promise<boolean>;
|
|
73
|
+
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { TemplateRef } from '@angular/core';
|
|
3
2
|
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
4
3
|
import { SkyCheckboxHarnessFilters } from './checkbox-harness-filters';
|
|
5
4
|
/**
|
|
6
5
|
* Harness for interacting with a checkbox component in tests.
|
|
7
|
-
* @internal
|
|
8
6
|
*/
|
|
9
7
|
export declare class SkyCheckboxHarness extends SkyComponentHarness {
|
|
10
8
|
#private;
|
|
@@ -44,7 +42,7 @@ export declare class SkyCheckboxHarness extends SkyComponentHarness {
|
|
|
44
42
|
/**
|
|
45
43
|
* Gets the help popover content.
|
|
46
44
|
*/
|
|
47
|
-
getHelpPopoverContent(): Promise<
|
|
45
|
+
getHelpPopoverContent(): Promise<string | undefined>;
|
|
48
46
|
/**
|
|
49
47
|
* Gets the help popover title.
|
|
50
48
|
*/
|
|
@@ -94,6 +92,10 @@ export declare class SkyCheckboxHarness extends SkyComponentHarness {
|
|
|
94
92
|
* Whether the checkbox is required.
|
|
95
93
|
*/
|
|
96
94
|
isRequired(): Promise<boolean>;
|
|
95
|
+
/**
|
|
96
|
+
* Whether the checkbox is stacked.
|
|
97
|
+
*/
|
|
98
|
+
isStacked(): Promise<boolean>;
|
|
97
99
|
/**
|
|
98
100
|
* Puts the checkbox in an unchecked state by toggling it if it is currently checked, or doing nothing if it is already unchecked.
|
|
99
101
|
*/
|
package/testing/public-api.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export { SkyInputBoxHarnessFilters } from './input-box/input-box-harness-filters
|
|
|
3
3
|
export { SkyCharacterCounterIndicatorHarness } from './character-counter/character-counter-indicator-harness';
|
|
4
4
|
export { SkyCharacterCounterIndicatorHarnessFilters } from './character-counter/character-counter-indicator-harness-filters';
|
|
5
5
|
export { SkyCheckboxFixture } from './checkbox-fixture';
|
|
6
|
+
export { SkyCheckboxGroupHarness } from './checkbox/checkbox-group-harness';
|
|
7
|
+
export { SkyCheckboxGroupHarnessFilters } from './checkbox/checkbox-group-harness-filters';
|
|
6
8
|
export { SkyCheckboxHarness } from './checkbox/checkbox-harness';
|
|
7
9
|
export { SkyCheckboxHarnessFilters } from './checkbox/checkbox-harness-filters';
|
|
8
10
|
export { SkyCheckboxLabelHarness } from './checkbox/checkbox-label-harness';
|