@skyux/forms 11.3.0 → 11.4.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 +3362 -826
- package/esm2022/lib/modules/form-error/form-errors.component.mjs +3 -3
- package/esm2022/lib/modules/radio/radio-group.component.mjs +3 -3
- package/esm2022/lib/modules/radio/radio.component.mjs +3 -3
- package/esm2022/lib/modules/shared/sky-forms-resources.module.mjs +5 -5
- package/esm2022/testing/public-api.mjs +4 -1
- package/esm2022/testing/radio/radio-group-harness-filters.mjs +2 -0
- package/esm2022/testing/radio/radio-group-harness.mjs +152 -0
- package/esm2022/testing/radio/radio-harness-filters.mjs +2 -0
- package/esm2022/testing/radio/radio-harness.mjs +147 -0
- package/esm2022/testing/radio/radio-label-harness.mjs +19 -0
- package/fesm2022/skyux-forms-testing.mjs +311 -1
- package/fesm2022/skyux-forms-testing.mjs.map +1 -1
- package/fesm2022/skyux-forms.mjs +10 -10
- package/fesm2022/skyux-forms.mjs.map +1 -1
- package/package.json +9 -9
- package/testing/public-api.d.ts +5 -0
- package/testing/radio/radio-group-harness-filters.d.ts +7 -0
- package/testing/radio/radio-group-harness.d.ts +69 -0
- package/testing/radio/radio-harness-filters.d.ts +7 -0
- package/testing/radio/radio-harness.d.ts +79 -0
- package/testing/radio/radio-label-harness.d.ts +16 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/forms",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.4.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.4.0",
|
|
45
|
+
"@skyux/core": "11.4.0",
|
|
46
|
+
"@skyux/help-inline": "11.4.0",
|
|
47
|
+
"@skyux/i18n": "11.4.0",
|
|
48
|
+
"@skyux/icon": "11.4.0",
|
|
49
|
+
"@skyux/indicators": "11.4.0",
|
|
50
|
+
"@skyux/popovers": "11.4.0",
|
|
51
|
+
"@skyux/theme": "11.4.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"tslib": "^2.6.3"
|
package/testing/public-api.d.ts
CHANGED
|
@@ -11,3 +11,8 @@ export { SkyFormErrorsHarnessFilters } from './form-error/form-errors-harness.fi
|
|
|
11
11
|
export { SkyFormErrorHarness } from './form-error/form-error-harness';
|
|
12
12
|
export { SkyFormErrorHarnessFilters } from './form-error/form-error-harness.filters';
|
|
13
13
|
export { SkyRadioFixture } from './radio-fixture';
|
|
14
|
+
export { SkyRadioGroupHarness } from './radio/radio-group-harness';
|
|
15
|
+
export { SkyRadioGroupHarnessFilters } from './radio/radio-group-harness-filters';
|
|
16
|
+
export { SkyRadioHarness } from './radio/radio-harness';
|
|
17
|
+
export { SkyRadioHarnessFilters } from './radio/radio-harness-filters';
|
|
18
|
+
export { SkyRadioLabelHarness } from './radio/radio-label-harness';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
+
import { SkyRadioGroupHeadingLevel, SkyRadioGroupHeadingStyle } from '@skyux/forms';
|
|
4
|
+
import { SkyRadioGroupHarnessFilters } from './radio-group-harness-filters';
|
|
5
|
+
import { SkyRadioHarness } from './radio-harness';
|
|
6
|
+
/**
|
|
7
|
+
* Harness for interacting with a radio group component in tests.
|
|
8
|
+
*/
|
|
9
|
+
export declare class SkyRadioGroupHarness 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
|
+
* `SkyRadioGroupHarness` that meets certain criteria.
|
|
18
|
+
*/
|
|
19
|
+
static with(filters: SkyRadioGroupHarnessFilters): HarnessPredicate<SkyRadioGroupHarness>;
|
|
20
|
+
/**
|
|
21
|
+
* Clicks the help inline button.
|
|
22
|
+
*/
|
|
23
|
+
clickHelpInline(): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the heading is hidden.
|
|
26
|
+
*/
|
|
27
|
+
getHeadingHidden(): Promise<boolean>;
|
|
28
|
+
/**
|
|
29
|
+
* The semantic heading level used for the radio group. Returns undefined if heading level is not set.
|
|
30
|
+
*/
|
|
31
|
+
getHeadingLevel(): Promise<SkyRadioGroupHeadingLevel | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* The heading style used for the radio group.
|
|
34
|
+
*/
|
|
35
|
+
getHeadingStyle(): Promise<SkyRadioGroupHeadingStyle>;
|
|
36
|
+
/**
|
|
37
|
+
* Gets the radio 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 help popover content.
|
|
43
|
+
*/
|
|
44
|
+
getHelpPopoverContent(): Promise<string | undefined>;
|
|
45
|
+
/**
|
|
46
|
+
* Gets the help popover title.
|
|
47
|
+
*/
|
|
48
|
+
getHelpPopoverTitle(): Promise<string | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* Gets the radio group's hint text.
|
|
51
|
+
*/
|
|
52
|
+
getHintText(): Promise<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Gets an array of harnesses for the radio buttons in the radio group.
|
|
55
|
+
*/
|
|
56
|
+
getRadioButtons(): Promise<SkyRadioHarness[]>;
|
|
57
|
+
/**
|
|
58
|
+
* Whether the radio group is required.
|
|
59
|
+
*/
|
|
60
|
+
getRequired(): Promise<boolean>;
|
|
61
|
+
/**
|
|
62
|
+
* Whether the radio group is stacked.
|
|
63
|
+
*/
|
|
64
|
+
getStacked(): Promise<boolean>;
|
|
65
|
+
/**
|
|
66
|
+
* Whether the radio group has errors.
|
|
67
|
+
*/
|
|
68
|
+
hasError(errorName: string): Promise<boolean>;
|
|
69
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
+
import { SkyRadioHarnessFilters } from './radio-harness-filters';
|
|
4
|
+
/**
|
|
5
|
+
* Harness for interacting with a radio button component in tests.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SkyRadioHarness 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
|
+
* `SkyRadioHarness` that meets certain criteria.
|
|
16
|
+
*/
|
|
17
|
+
static with(filters: SkyRadioHarnessFilters): HarnessPredicate<SkyRadioHarness>;
|
|
18
|
+
/**
|
|
19
|
+
* Blurs the radio button.
|
|
20
|
+
*/
|
|
21
|
+
blur(): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Puts the radio button in a checked state if it is currently unchecked.
|
|
24
|
+
*/
|
|
25
|
+
check(): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Clicks the help inline button.
|
|
28
|
+
*/
|
|
29
|
+
clickHelpInline(): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Focuses the radio button.
|
|
32
|
+
*/
|
|
33
|
+
focus(): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Gets the radio button's aria-label.
|
|
36
|
+
*/
|
|
37
|
+
getAriaLabel(): Promise<string | null>;
|
|
38
|
+
/**
|
|
39
|
+
* Gets the radio button's aria-labelledby.
|
|
40
|
+
*/
|
|
41
|
+
getAriaLabelledby(): Promise<string | null>;
|
|
42
|
+
/**
|
|
43
|
+
* Gets the help popover content.
|
|
44
|
+
*/
|
|
45
|
+
getHelpPopoverContent(): Promise<string | undefined>;
|
|
46
|
+
/**
|
|
47
|
+
* Gets the help popover title.
|
|
48
|
+
*/
|
|
49
|
+
getHelpPopoverTitle(): Promise<string | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* Gets the radio button's hint text.
|
|
52
|
+
*/
|
|
53
|
+
getHintText(): Promise<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the label is hidden. Only supported when using the `labelText` input to set the label.
|
|
56
|
+
*/
|
|
57
|
+
getLabelHidden(): Promise<boolean>;
|
|
58
|
+
/**
|
|
59
|
+
* Gets the radio button's label text. If the label is set via `labelText` and `labelHidden` is true,
|
|
60
|
+
* the text will still be returned.
|
|
61
|
+
*/
|
|
62
|
+
getLabelText(): Promise<string | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* Gets the radio button's name.
|
|
65
|
+
*/
|
|
66
|
+
getName(): Promise<string | null>;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the radio button is checked.
|
|
69
|
+
*/
|
|
70
|
+
isChecked(): Promise<boolean>;
|
|
71
|
+
/**
|
|
72
|
+
* Whether the radio button is disabled.
|
|
73
|
+
*/
|
|
74
|
+
isDisabled(): Promise<boolean>;
|
|
75
|
+
/**
|
|
76
|
+
* Whether the radio button is focused.
|
|
77
|
+
*/
|
|
78
|
+
isFocused(): Promise<boolean>;
|
|
79
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentHarness } from '@angular/cdk/testing';
|
|
2
|
+
/**
|
|
3
|
+
* Harness for interacting with a radio label component in tests.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare class SkyRadioLabelHarness extends ComponentHarness {
|
|
7
|
+
#private;
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
static hostSelector: string;
|
|
12
|
+
/**
|
|
13
|
+
* Gets the text content of the radio label.
|
|
14
|
+
*/
|
|
15
|
+
getText(): Promise<string>;
|
|
16
|
+
}
|