@skyux/forms 11.2.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 +3801 -1025
- package/esm2022/lib/modules/character-counter/character-counter-indicator.component.mjs +3 -3
- package/esm2022/lib/modules/character-counter/character-counter-screen-reader.pipe.mjs +3 -3
- package/esm2022/lib/modules/character-counter/character-counter.directive.mjs +3 -3
- package/esm2022/lib/modules/character-counter/character-counter.module.mjs +4 -4
- package/esm2022/lib/modules/checkbox/checkbox-group.component.mjs +4 -4
- package/esm2022/lib/modules/checkbox/checkbox-label-text-label.component.mjs +3 -3
- package/esm2022/lib/modules/checkbox/checkbox-label.component.mjs +3 -3
- package/esm2022/lib/modules/checkbox/checkbox.component.mjs +4 -4
- package/esm2022/lib/modules/checkbox/checkbox.module.mjs +4 -4
- package/esm2022/lib/modules/field-group/field-group.component.mjs +4 -4
- package/esm2022/lib/modules/field-group/field-group.module.mjs +4 -4
- package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment-join-ids.pipe.mjs +3 -3
- package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment-label.component.mjs +3 -3
- package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment.component.mjs +4 -4
- package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment.module.mjs +4 -4
- package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment.service.mjs +3 -3
- package/esm2022/lib/modules/file-attachment/file-attachments.module.mjs +4 -4
- package/esm2022/lib/modules/file-attachment/file-drop/file-drop.component.mjs +4 -4
- package/esm2022/lib/modules/file-attachment/file-drop/file-drop.module.mjs +4 -4
- package/esm2022/lib/modules/file-attachment/file-drop/file-item.component.mjs +3 -3
- package/esm2022/lib/modules/file-attachment/shared/file-item.service.mjs +3 -3
- package/esm2022/lib/modules/file-attachment/shared/file-size.pipe.mjs +3 -3
- package/esm2022/lib/modules/form-error/form-error.component.mjs +3 -3
- package/esm2022/lib/modules/form-error/form-error.module.mjs +4 -4
- package/esm2022/lib/modules/form-error/form-errors.component.mjs +5 -5
- package/esm2022/lib/modules/form-error/form-errors.module.mjs +4 -4
- package/esm2022/lib/modules/input-box/input-box-adapter.service.mjs +3 -3
- package/esm2022/lib/modules/input-box/input-box-control.directive.mjs +3 -3
- package/esm2022/lib/modules/input-box/input-box-hint-text.pipe.mjs +3 -3
- package/esm2022/lib/modules/input-box/input-box-host.service.mjs +3 -3
- package/esm2022/lib/modules/input-box/input-box.component.mjs +6 -6
- package/esm2022/lib/modules/input-box/input-box.module.mjs +4 -4
- package/esm2022/lib/modules/radio/radio-group-id.service.mjs +3 -3
- package/esm2022/lib/modules/radio/radio-group.component.mjs +6 -6
- package/esm2022/lib/modules/radio/radio-label.component.mjs +3 -3
- package/esm2022/lib/modules/radio/radio.component.mjs +5 -5
- package/esm2022/lib/modules/radio/radio.module.mjs +4 -4
- package/esm2022/lib/modules/required-state/required-state.directive.mjs +3 -3
- package/esm2022/lib/modules/selection-box/selection-box-adapter.service.mjs +3 -3
- package/esm2022/lib/modules/selection-box/selection-box-description.component.mjs +3 -3
- package/esm2022/lib/modules/selection-box/selection-box-grid.component.mjs +3 -3
- package/esm2022/lib/modules/selection-box/selection-box-header.component.mjs +3 -3
- package/esm2022/lib/modules/selection-box/selection-box.component.mjs +3 -3
- package/esm2022/lib/modules/selection-box/selection-box.module.mjs +4 -4
- package/esm2022/lib/modules/shared/sky-forms-resources.module.mjs +9 -9
- package/esm2022/lib/modules/toggle-switch/toggle-switch-label.component.mjs +3 -3
- package/esm2022/lib/modules/toggle-switch/toggle-switch.component.mjs +4 -4
- package/esm2022/lib/modules/toggle-switch/toggle-switch.module.mjs +4 -4
- 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 +167 -167
- package/fesm2022/skyux-forms.mjs.map +1 -1
- package/lib/modules/checkbox/checkbox-group.component.d.ts +4 -4
- package/lib/modules/checkbox/checkbox.component.d.ts +3 -3
- package/lib/modules/field-group/field-group.component.d.ts +4 -4
- package/lib/modules/file-attachment/file-attachment/file-attachment.component.d.ts +3 -3
- package/lib/modules/file-attachment/file-drop/file-drop.component.d.ts +3 -3
- package/lib/modules/input-box/input-box.component.d.ts +4 -4
- package/lib/modules/radio/radio-group.component.d.ts +3 -3
- package/lib/modules/radio/radio.component.d.ts +3 -3
- package/lib/modules/toggle-switch/toggle-switch.component.d.ts +3 -3
- package/package.json +14 -14
- 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
|
@@ -9,9 +9,9 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
export declare class SkyCheckboxGroupComponent implements Validator {
|
|
10
10
|
#private;
|
|
11
11
|
/**
|
|
12
|
-
* The content of the help popover. When specified
|
|
12
|
+
* The content of the help popover. When specified along with `headingText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
13
13
|
* button is added to the checkbox group fieldset legend. The help inline button displays a [popover](https://developer.blackbaud.com/skyux/components/popover)
|
|
14
|
-
* when clicked using the specified content and optional title.
|
|
14
|
+
* when clicked using the specified content and optional title. This property only applies when `headingText` is also specified.
|
|
15
15
|
*/
|
|
16
16
|
helpPopoverContent: string | TemplateRef<unknown> | undefined;
|
|
17
17
|
/**
|
|
@@ -53,9 +53,9 @@ export declare class SkyCheckboxGroupComponent implements Validator {
|
|
|
53
53
|
set stacked(value: boolean);
|
|
54
54
|
get stacked(): boolean;
|
|
55
55
|
/**
|
|
56
|
-
* A help key that identifies the global help content to display. When specified
|
|
56
|
+
* A help key that identifies the global help content to display. When specified along with `headingText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
57
57
|
* button is placed beside the checkbox group heading. Clicking the button invokes [global help](https://developer.blackbaud.com/skyux/learn/develop/global-help)
|
|
58
|
-
* as configured by the application.
|
|
58
|
+
* as configured by the application. This property only applies when `headingText` is also specified.
|
|
59
59
|
*/
|
|
60
60
|
helpKey: string | undefined;
|
|
61
61
|
stackedLg: boolean;
|
|
@@ -57,7 +57,7 @@ export declare class SkyCheckboxComponent implements ControlValueAccessor, Valid
|
|
|
57
57
|
/**
|
|
58
58
|
* The content of the help popover. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
59
59
|
* button is added to the checkbox label. The help inline button displays a [popover](https://developer.blackbaud.com/skyux/components/popover)
|
|
60
|
-
* when clicked using the specified content and optional title.
|
|
60
|
+
* when clicked using the specified content and optional title. This property only applies when `labelText` is also specified.
|
|
61
61
|
*/
|
|
62
62
|
helpPopoverContent: string | TemplateRef<unknown> | undefined;
|
|
63
63
|
/**
|
|
@@ -129,9 +129,9 @@ export declare class SkyCheckboxComponent implements ControlValueAccessor, Valid
|
|
|
129
129
|
*/
|
|
130
130
|
stacked: boolean;
|
|
131
131
|
/**
|
|
132
|
-
* A help key that identifies the global help content to display. When specified
|
|
132
|
+
* A help key that identifies the global help content to display. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
133
133
|
* button is placed beside the checkbox label. Clicking the button invokes [global help](https://developer.blackbaud.com/skyux/learn/develop/global-help)
|
|
134
|
-
* as configured by the application.
|
|
134
|
+
* as configured by the application. This property only applies when `labelText` is also specified.
|
|
135
135
|
*/
|
|
136
136
|
helpKey: string | undefined;
|
|
137
137
|
/**
|
|
@@ -35,9 +35,9 @@ export declare class SkyFieldGroupComponent {
|
|
|
35
35
|
*/
|
|
36
36
|
set headingStyle(value: SkyFieldGroupHeadingStyle);
|
|
37
37
|
/**
|
|
38
|
-
* The content of the help popover. When specified
|
|
38
|
+
* The content of the help popover. When specified along with `headingText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
39
39
|
* button is added to the field group heading. The help inline button displays a [popover](https://developer.blackbaud.com/skyux/components/popover)
|
|
40
|
-
* when clicked using the specified content and optional title.
|
|
40
|
+
* when clicked using the specified content and optional title. This property only applies when `headingText` is also specified.
|
|
41
41
|
*/
|
|
42
42
|
helpPopoverContent: string | TemplateRef<unknown> | undefined;
|
|
43
43
|
/**
|
|
@@ -46,9 +46,9 @@ export declare class SkyFieldGroupComponent {
|
|
|
46
46
|
*/
|
|
47
47
|
helpPopoverTitle: string | undefined;
|
|
48
48
|
/**
|
|
49
|
-
* A help key that identifies the global help content to display. When specified
|
|
49
|
+
* A help key that identifies the global help content to display. When specified along with `headingText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
50
50
|
* button is placed beside the field group heading. Clicking the button invokes [global help](https://developer.blackbaud.com/skyux/learn/develop/global-help)
|
|
51
|
-
* as configured by the application.
|
|
51
|
+
* as configured by the application. This property only applies when `headingText` is also specified.
|
|
52
52
|
*/
|
|
53
53
|
helpKey: string | undefined;
|
|
54
54
|
protected headingClass: string;
|
|
@@ -34,7 +34,7 @@ export declare class SkyFileAttachmentComponent implements AfterViewInit, AfterC
|
|
|
34
34
|
/**
|
|
35
35
|
* The content of the help popover. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
36
36
|
* button is added to the single file attachment label. The help inline button displays a [popover](https://developer.blackbaud.com/skyux/components/popover)
|
|
37
|
-
* when clicked using the specified content and optional title.
|
|
37
|
+
* when clicked using the specified content and optional title. This property only applies when `labelText` is also specified.
|
|
38
38
|
*/
|
|
39
39
|
helpPopoverContent: string | TemplateRef<unknown> | undefined;
|
|
40
40
|
/**
|
|
@@ -43,9 +43,9 @@ export declare class SkyFileAttachmentComponent implements AfterViewInit, AfterC
|
|
|
43
43
|
*/
|
|
44
44
|
helpPopoverTitle: string | undefined;
|
|
45
45
|
/**
|
|
46
|
-
* A help key that identifies the global help content to display. When specified
|
|
46
|
+
* A help key that identifies the global help content to display. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
47
47
|
* button is placed beside the single file attachment label. Clicking the button invokes [global help](https://developer.blackbaud.com/skyux/learn/develop/global-help)
|
|
48
|
-
* as configured by the application.
|
|
48
|
+
* as configured by the application. This property only applies when `labelText` is also specified.
|
|
49
49
|
*/
|
|
50
50
|
helpKey: string | undefined;
|
|
51
51
|
/**
|
|
@@ -107,7 +107,7 @@ export declare class SkyFileDropComponent implements OnDestroy {
|
|
|
107
107
|
/**
|
|
108
108
|
* The content of the help popover. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
109
109
|
* button is added to the file attachment label. The help inline button displays a [popover](https://developer.blackbaud.com/skyux/components/popover)
|
|
110
|
-
* when clicked using the specified content and optional title.
|
|
110
|
+
* when clicked using the specified content and optional title. This property only applies when `labelText` is also specified.
|
|
111
111
|
*/
|
|
112
112
|
helpPopoverContent: string | TemplateRef<unknown> | undefined;
|
|
113
113
|
/**
|
|
@@ -121,9 +121,9 @@ export declare class SkyFileDropComponent implements OnDestroy {
|
|
|
121
121
|
*/
|
|
122
122
|
stacked: boolean;
|
|
123
123
|
/**
|
|
124
|
-
* A help key that identifies the global help content to display. When specified
|
|
124
|
+
* A help key that identifies the global help content to display. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
125
125
|
* button is placed beside the file attachment label. Clicking the button invokes [global help](https://developer.blackbaud.com/skyux/learn/develop/global-help)
|
|
126
|
-
* as configured by the application.
|
|
126
|
+
* as configured by the application. This property only applies when `labelText` is also specified.
|
|
127
127
|
*/
|
|
128
128
|
helpKey: string | undefined;
|
|
129
129
|
inputEl: ElementRef | undefined;
|
|
@@ -49,15 +49,15 @@ export declare class SkyInputBoxComponent implements OnInit, AfterContentChecked
|
|
|
49
49
|
*/
|
|
50
50
|
helpPopoverTitle: string | undefined;
|
|
51
51
|
/**
|
|
52
|
-
* The content of the help popover. When specified
|
|
52
|
+
* The content of the help popover. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
53
53
|
* button is added to the input box label. The help inline button displays a [popover](https://developer.blackbaud.com/skyux/components/popover)
|
|
54
|
-
* when clicked using the specified content and optional title.
|
|
54
|
+
* when clicked using the specified content and optional title. This property only applies when `labelText` is also specified.
|
|
55
55
|
*/
|
|
56
56
|
helpPopoverContent: string | TemplateRef<unknown> | undefined;
|
|
57
57
|
/**
|
|
58
|
-
* A help key that identifies the global help content to display. When specified
|
|
58
|
+
* A help key that identifies the global help content to display. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
59
59
|
* button is placed beside the input box label. Clicking the button invokes [global help](https://developer.blackbaud.com/skyux/learn/develop/global-help)
|
|
60
|
-
* as configured by the application.
|
|
60
|
+
* as configured by the application. This property only applies when `labelText` is also specified.
|
|
61
61
|
*/
|
|
62
62
|
helpKey: string | undefined;
|
|
63
63
|
/**
|
|
@@ -104,7 +104,7 @@ export declare class SkyRadioGroupComponent implements AfterContentInit, OnDestr
|
|
|
104
104
|
/**
|
|
105
105
|
* The content of the help popover. When specified along with `headingText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
106
106
|
* button is added to radio group. The help inline button displays a [popover](https://developer.blackbaud.com/skyux/components/popover)
|
|
107
|
-
* when clicked using the specified content and optional title.
|
|
107
|
+
* when clicked using the specified content and optional title. This property only applies when `headingText` is also specified.
|
|
108
108
|
*/
|
|
109
109
|
helpPopoverContent: string | TemplateRef<unknown> | undefined;
|
|
110
110
|
/**
|
|
@@ -113,9 +113,9 @@ export declare class SkyRadioGroupComponent implements AfterContentInit, OnDestr
|
|
|
113
113
|
*/
|
|
114
114
|
helpPopoverTitle: string | undefined;
|
|
115
115
|
/**
|
|
116
|
-
* A help key that identifies the global help content to display. When specified
|
|
116
|
+
* A help key that identifies the global help content to display. When specified along with `headingText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
117
117
|
* button is placed beside the radio group heading. Clicking the button invokes [global help](https://developer.blackbaud.com/skyux/learn/develop/global-help)
|
|
118
|
-
* as configured by the application.
|
|
118
|
+
* as configured by the application. This property only applies when `headingText` is also specified.
|
|
119
119
|
*/
|
|
120
120
|
helpKey: string | undefined;
|
|
121
121
|
/**
|
|
@@ -81,7 +81,7 @@ export declare class SkyRadioComponent implements OnDestroy, ControlValueAccesso
|
|
|
81
81
|
/**
|
|
82
82
|
* The content of the help popover. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
83
83
|
* button is added to radio button. The help inline button displays a [popover](https://developer.blackbaud.com/skyux/components/popover)
|
|
84
|
-
* when clicked using the specified content and optional title.
|
|
84
|
+
* when clicked using the specified content and optional title. This property only applies when `labelText` is also specified.
|
|
85
85
|
*/
|
|
86
86
|
helpPopoverContent: string | TemplateRef<unknown> | undefined;
|
|
87
87
|
/**
|
|
@@ -120,9 +120,9 @@ export declare class SkyRadioComponent implements OnDestroy, ControlValueAccesso
|
|
|
120
120
|
*/
|
|
121
121
|
hintText: string | undefined;
|
|
122
122
|
/**
|
|
123
|
-
* A help key that identifies the global help content to display. When specified
|
|
123
|
+
* A help key that identifies the global help content to display. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
124
124
|
* button is placed beside the radio button label. Clicking the button invokes [global help](https://developer.blackbaud.com/skyux/learn/develop/global-help)
|
|
125
|
-
* as configured by the application.
|
|
125
|
+
* as configured by the application. This property only applies when `labelText` is also specified.
|
|
126
126
|
*/
|
|
127
127
|
helpKey: string | undefined;
|
|
128
128
|
/**
|
|
@@ -30,7 +30,7 @@ export declare class SkyToggleSwitchComponent implements AfterContentInit, OnDes
|
|
|
30
30
|
/**
|
|
31
31
|
* The content of the help popover. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
32
32
|
* button is added to the toggle switch. The help inline button displays a [popover](https://developer.blackbaud.com/skyux/components/popover)
|
|
33
|
-
* when clicked using the specified content and optional title.
|
|
33
|
+
* when clicked using the specified content and optional title. This property only applies when `labelText` is also specified.
|
|
34
34
|
*/
|
|
35
35
|
helpPopoverContent: string | TemplateRef<unknown> | undefined;
|
|
36
36
|
/**
|
|
@@ -52,9 +52,9 @@ export declare class SkyToggleSwitchComponent implements AfterContentInit, OnDes
|
|
|
52
52
|
*/
|
|
53
53
|
labelHidden: boolean;
|
|
54
54
|
/**
|
|
55
|
-
* A help key that identifies the global help content to display. When specified
|
|
55
|
+
* A help key that identifies the global help content to display. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
56
56
|
* button is placed beside the toggle switch label. Clicking the button invokes [global help](https://developer.blackbaud.com/skyux/learn/develop/global-help)
|
|
57
|
-
* as configured by the application.
|
|
57
|
+
* as configured by the application. This property only applies when `labelText` is also specified.
|
|
58
58
|
*/
|
|
59
59
|
helpKey: string | undefined;
|
|
60
60
|
/**
|
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",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@angular/cdk": "^18.2.
|
|
40
|
-
"@angular/common": "^18.2.
|
|
41
|
-
"@angular/core": "^18.2.
|
|
42
|
-
"@angular/forms": "^18.2.
|
|
43
|
-
"@angular/platform-browser": "^18.2.
|
|
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.
|
|
39
|
+
"@angular/cdk": "^18.2.4",
|
|
40
|
+
"@angular/common": "^18.2.5",
|
|
41
|
+
"@angular/core": "^18.2.5",
|
|
42
|
+
"@angular/forms": "^18.2.5",
|
|
43
|
+
"@angular/platform-browser": "^18.2.5",
|
|
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
|
+
}
|