@skyux/forms 10.7.0 → 10.8.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 +3046 -2614
- package/esm2022/lib/modules/checkbox/checkbox-group.component.mjs +15 -4
- package/esm2022/lib/modules/checkbox/checkbox-label-text-label.component.mjs +3 -3
- package/esm2022/lib/modules/checkbox/checkbox.component.mjs +14 -6
- package/esm2022/lib/modules/checkbox/checkbox.module.mjs +9 -2
- package/esm2022/lib/modules/field-group/field-group.component.mjs +7 -3
- package/esm2022/lib/modules/file-attachment/file-attachment.component.mjs +6 -4
- package/esm2022/lib/modules/file-attachment/file-drop.component.mjs +2 -2
- package/esm2022/lib/modules/radio/radio.component.mjs +6 -3
- package/esm2022/testing/checkbox/checkbox-harness.mjs +52 -12
- package/fesm2022/skyux-forms-testing.mjs +51 -11
- package/fesm2022/skyux-forms-testing.mjs.map +1 -1
- package/fesm2022/skyux-forms.mjs +60 -33
- package/fesm2022/skyux-forms.mjs.map +1 -1
- package/lib/modules/checkbox/checkbox-group.component.d.ts +15 -1
- package/lib/modules/checkbox/checkbox.component.d.ts +21 -2
- package/lib/modules/checkbox/checkbox.module.d.ts +4 -3
- package/lib/modules/field-group/field-group.component.d.ts +7 -1
- package/lib/modules/file-attachment/file-attachment.component.d.ts +8 -2
- package/lib/modules/radio/radio.component.d.ts +7 -1
- package/package.json +8 -8
- package/testing/checkbox/checkbox-harness.d.ts +25 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
1
2
|
import { FormGroup } from '@angular/forms';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
/**
|
|
@@ -5,6 +6,19 @@ import * as i0 from "@angular/core";
|
|
|
5
6
|
*/
|
|
6
7
|
export declare class SkyCheckboxGroupComponent {
|
|
7
8
|
#private;
|
|
9
|
+
/**
|
|
10
|
+
* The content of the help popover. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
11
|
+
* button is added to the checkbox group fieldset legend. The help inline button displays a [popover](https://developer.blackbaud.com/skyux/components/popover)
|
|
12
|
+
* when clicked using the specified content and optional title.
|
|
13
|
+
* @preview
|
|
14
|
+
*/
|
|
15
|
+
helpPopoverContent: string | TemplateRef<unknown> | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The title of the help popover. This property only applies when `helpPopoverContent` is
|
|
18
|
+
* also specified.
|
|
19
|
+
* @preview
|
|
20
|
+
*/
|
|
21
|
+
helpPopoverTitle: string | undefined;
|
|
8
22
|
/**
|
|
9
23
|
* The text to display as the checkbox group's label.
|
|
10
24
|
* @preview
|
|
@@ -35,7 +49,7 @@ export declare class SkyCheckboxGroupComponent {
|
|
|
35
49
|
protected errorId: string;
|
|
36
50
|
protected formErrorsDataId: string;
|
|
37
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyCheckboxGroupComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyCheckboxGroupComponent, "sky-checkbox-group", never, { "labelText": { "alias": "labelText"; "required": true; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; "required": { "alias": "required"; "required": false; }; "stacked": { "alias": "stacked"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": true; }; }, {}, never, ["sky-checkbox[icon]", "sky-checkbox", "sky-form-error"], true, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyCheckboxGroupComponent, "sky-checkbox-group", never, { "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "labelText": { "alias": "labelText"; "required": true; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; "required": { "alias": "required"; "required": false; }; "stacked": { "alias": "stacked"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": true; }; }, {}, never, ["sky-checkbox[icon]", "sky-checkbox", "sky-form-error"], true, never>;
|
|
39
53
|
static ngAcceptInputType_labelHidden: unknown;
|
|
40
54
|
static ngAcceptInputType_required: unknown;
|
|
41
55
|
static ngAcceptInputType_stacked: unknown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { SkyCheckboxChange } from './checkbox-change';
|
|
@@ -53,6 +53,19 @@ export declare class SkyCheckboxComponent implements ControlValueAccessor, OnIni
|
|
|
53
53
|
*/
|
|
54
54
|
set name(value: string | undefined);
|
|
55
55
|
get name(): string;
|
|
56
|
+
/**
|
|
57
|
+
* The content of the help popover. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
58
|
+
* button is added to the checkbox label. The help inline button displays a [popover](https://developer.blackbaud.com/skyux/components/popover)
|
|
59
|
+
* when clicked using the specified content and optional title.
|
|
60
|
+
* @preview
|
|
61
|
+
*/
|
|
62
|
+
helpPopoverContent: string | TemplateRef<unknown> | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* The title of the help popover. This property only applies when `helpPopoverContent` is
|
|
65
|
+
* also specified.
|
|
66
|
+
* @preview
|
|
67
|
+
*/
|
|
68
|
+
helpPopoverTitle: string | undefined;
|
|
56
69
|
/**
|
|
57
70
|
* Fires when the selected value changes.
|
|
58
71
|
*/
|
|
@@ -108,6 +121,12 @@ export declare class SkyCheckboxComponent implements ControlValueAccessor, OnIni
|
|
|
108
121
|
* @preview
|
|
109
122
|
*/
|
|
110
123
|
labelHidden: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* [Persistent inline help text](https://developer.blackbaud.com/skyux/design/guidelines/user-assistance#inline-help) that provides
|
|
126
|
+
* additional context to the user.
|
|
127
|
+
* @preview
|
|
128
|
+
*/
|
|
129
|
+
hintText: string | undefined;
|
|
111
130
|
/**
|
|
112
131
|
* Fires when users select or deselect the checkbox.
|
|
113
132
|
*/
|
|
@@ -153,6 +172,6 @@ export declare class SkyCheckboxComponent implements ControlValueAccessor, OnIni
|
|
|
153
172
|
/** Called when the checkbox is blurred. Needed to properly implement ControlValueAccessor. */
|
|
154
173
|
onTouched: () => any;
|
|
155
174
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyCheckboxComponent, never>;
|
|
156
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyCheckboxComponent, "sky-checkbox", never, { "label": { "alias": "label"; "required": false; }; "labelledBy": { "alias": "labelledBy"; "required": false; }; "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "name": { "alias": "name"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "checkboxType": { "alias": "checkboxType"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "required": { "alias": "required"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; }, { "change": "change"; "checkedChange": "checkedChange"; "disabledChange": "disabledChange"; "indeterminateChange": "indeterminateChange"; }, never, ["sky-checkbox-label", "sky-form-error"], false, never>;
|
|
175
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyCheckboxComponent, "sky-checkbox", never, { "label": { "alias": "label"; "required": false; }; "labelledBy": { "alias": "labelledBy"; "required": false; }; "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "name": { "alias": "name"; "required": false; }; "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "checkboxType": { "alias": "checkboxType"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "required": { "alias": "required"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; }, { "change": "change"; "checkedChange": "checkedChange"; "disabledChange": "disabledChange"; "indeterminateChange": "indeterminateChange"; }, never, ["sky-checkbox-label", "sky-form-error"], false, never>;
|
|
157
176
|
static ngAcceptInputType_labelHidden: unknown;
|
|
158
177
|
}
|
|
@@ -8,10 +8,11 @@ import * as i6 from "./checkbox-group.component";
|
|
|
8
8
|
import * as i7 from "../form-error/form-error.module";
|
|
9
9
|
import * as i8 from "../form-error/form-errors.module";
|
|
10
10
|
import * as i9 from "../shared/sky-forms-resources.module";
|
|
11
|
-
import * as i10 from "@skyux/
|
|
12
|
-
import * as i11 from "@skyux/
|
|
11
|
+
import * as i10 from "@skyux/help-inline";
|
|
12
|
+
import * as i11 from "@skyux/indicators";
|
|
13
|
+
import * as i12 from "@skyux/core";
|
|
13
14
|
export declare class SkyCheckboxModule {
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyCheckboxModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyCheckboxModule, [typeof i1.SkyCheckboxComponent, typeof i2.SkyCheckboxLabelComponent, typeof i3.SkyCheckboxLabelTextLabelComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.SkyCheckboxGroupComponent, typeof i7.SkyFormErrorModule, typeof i8.SkyFormErrorsModule, typeof i9.SkyFormsResourcesModule, typeof i10.
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyCheckboxModule, [typeof i1.SkyCheckboxComponent, typeof i2.SkyCheckboxLabelComponent, typeof i3.SkyCheckboxLabelTextLabelComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.SkyCheckboxGroupComponent, typeof i7.SkyFormErrorModule, typeof i8.SkyFormErrorsModule, typeof i9.SkyFormsResourcesModule, typeof i10.SkyHelpInlineModule, typeof i11.SkyIconModule, typeof i12.SkyIdModule, typeof i12.SkyTrimModule], [typeof i1.SkyCheckboxComponent, typeof i2.SkyCheckboxLabelComponent, typeof i6.SkyCheckboxGroupComponent, typeof i7.SkyFormErrorModule]>;
|
|
16
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkyCheckboxModule>;
|
|
17
18
|
}
|
|
@@ -10,6 +10,12 @@ export declare class SkyFieldGroupComponent {
|
|
|
10
10
|
* @preview
|
|
11
11
|
*/
|
|
12
12
|
labelText: string;
|
|
13
|
+
/**
|
|
14
|
+
* [Persistent inline help text](https://developer.blackbaud.com/skyux/design/guidelines/user-assistance#inline-help) that provides
|
|
15
|
+
* additional context to the user.
|
|
16
|
+
* @preview
|
|
17
|
+
*/
|
|
18
|
+
hintText: string | undefined;
|
|
13
19
|
/**
|
|
14
20
|
* Indicates whether to hide the `labelText`.
|
|
15
21
|
* @preview
|
|
@@ -33,7 +39,7 @@ export declare class SkyFieldGroupComponent {
|
|
|
33
39
|
set headingStyle(value: SkyFieldGroupHeadingStyle);
|
|
34
40
|
protected headingClass: string;
|
|
35
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyFieldGroupComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyFieldGroupComponent, "sky-field-group", never, { "labelText": { "alias": "labelText"; "required": true; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; "stacked": { "alias": "stacked"; "required": false; }; "headingLevel": { "alias": "headingLevel"; "required": false; }; "headingStyle": { "alias": "headingStyle"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyFieldGroupComponent, "sky-field-group", never, { "labelText": { "alias": "labelText"; "required": true; }; "hintText": { "alias": "hintText"; "required": false; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; "stacked": { "alias": "stacked"; "required": false; }; "headingLevel": { "alias": "headingLevel"; "required": false; }; "headingStyle": { "alias": "headingStyle"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
37
43
|
static ngAcceptInputType_labelHidden: unknown;
|
|
38
44
|
static ngAcceptInputType_stacked: unknown;
|
|
39
45
|
static ngAcceptInputType_headingLevel: unknown;
|
|
@@ -30,7 +30,7 @@ export declare class SkyFileAttachmentComponent implements AfterViewInit, AfterC
|
|
|
30
30
|
get disabled(): boolean;
|
|
31
31
|
/**
|
|
32
32
|
* The content of the help popover. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
33
|
-
* button is added to the
|
|
33
|
+
* button is added to the single file attachment label. The help inline button displays a [popover](https://developer.blackbaud.com/skyux/components/popover)
|
|
34
34
|
* when clicked using the specified content and optional title.
|
|
35
35
|
* @preview
|
|
36
36
|
*/
|
|
@@ -51,6 +51,12 @@ export declare class SkyFileAttachmentComponent implements AfterViewInit, AfterC
|
|
|
51
51
|
* @preview
|
|
52
52
|
*/
|
|
53
53
|
labelHidden: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* [Persistent inline help text](https://developer.blackbaud.com/skyux/design/guidelines/user-assistance#inline-help) that provides
|
|
56
|
+
* additional context to the user.
|
|
57
|
+
* @preview
|
|
58
|
+
*/
|
|
59
|
+
hintText: string | undefined;
|
|
54
60
|
/**
|
|
55
61
|
* The maximum size in bytes for valid files.
|
|
56
62
|
* @default 500000
|
|
@@ -127,6 +133,6 @@ export declare class SkyFileAttachmentComponent implements AfterViewInit, AfterC
|
|
|
127
133
|
setDisabledState(isDisabled: boolean): void;
|
|
128
134
|
emitClick(): void;
|
|
129
135
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileAttachmentComponent, [null, null, null, { optional: true; self: true; }, { optional: true; }]>;
|
|
130
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileAttachmentComponent, "sky-file-attachment", never, { "acceptedTypes": { "alias": "acceptedTypes"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "minFileSize": { "alias": "minFileSize"; "required": false; }; "validateFn": { "alias": "validateFn"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "fileChange": "fileChange"; "fileClick": "fileClick"; }, ["labelComponents"], ["sky-form-error", "sky-file-attachment-label"], false, never>;
|
|
136
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileAttachmentComponent, "sky-file-attachment", never, { "acceptedTypes": { "alias": "acceptedTypes"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "minFileSize": { "alias": "minFileSize"; "required": false; }; "validateFn": { "alias": "validateFn"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "fileChange": "fileChange"; "fileClick": "fileClick"; }, ["labelComponents"], ["sky-form-error", "sky-file-attachment-label"], false, never>;
|
|
131
137
|
static ngAcceptInputType_labelHidden: unknown;
|
|
132
138
|
}
|
|
@@ -105,6 +105,12 @@ export declare class SkyRadioComponent implements OnDestroy, ControlValueAccesso
|
|
|
105
105
|
* @preview
|
|
106
106
|
*/
|
|
107
107
|
labelHidden: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* [Persistent inline help text](https://developer.blackbaud.com/skyux/design/guidelines/user-assistance#inline-help) that provides
|
|
110
|
+
* additional context to the user.
|
|
111
|
+
* @preview
|
|
112
|
+
*/
|
|
113
|
+
hintText: string | undefined;
|
|
108
114
|
/**
|
|
109
115
|
* Fires when users select a radio button.
|
|
110
116
|
*/
|
|
@@ -135,6 +141,6 @@ export declare class SkyRadioComponent implements OnDestroy, ControlValueAccesso
|
|
|
135
141
|
onInputChange(event: Event): void;
|
|
136
142
|
onInputFocusChange(): void;
|
|
137
143
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyRadioComponent, never>;
|
|
138
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyRadioComponent, "sky-radio", never, { "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelledBy": { "alias": "labelledBy"; "required": false; }; "name": { "alias": "name"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "value": { "alias": "value"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "radioType": { "alias": "radioType"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; }, { "change": "change"; "checkedChange": "checkedChange"; "disabledChange": "disabledChange"; }, never, ["sky-radio-label"], false, never>;
|
|
144
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyRadioComponent, "sky-radio", never, { "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelledBy": { "alias": "labelledBy"; "required": false; }; "name": { "alias": "name"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "value": { "alias": "value"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "radioType": { "alias": "radioType"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; }, { "change": "change"; "checkedChange": "checkedChange"; "disabledChange": "disabledChange"; }, never, ["sky-radio-label"], false, never>;
|
|
139
145
|
static ngAcceptInputType_labelHidden: unknown;
|
|
140
146
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/forms",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.8.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"@angular/core": "^17.3.4",
|
|
42
42
|
"@angular/forms": "^17.3.4",
|
|
43
43
|
"@angular/platform-browser": "^17.3.4",
|
|
44
|
-
"@skyux-sdk/testing": "10.
|
|
45
|
-
"@skyux/core": "10.
|
|
46
|
-
"@skyux/help-inline": "10.
|
|
47
|
-
"@skyux/i18n": "10.
|
|
48
|
-
"@skyux/indicators": "10.
|
|
49
|
-
"@skyux/popovers": "10.
|
|
50
|
-
"@skyux/theme": "10.
|
|
44
|
+
"@skyux-sdk/testing": "10.8.0",
|
|
45
|
+
"@skyux/core": "10.8.0",
|
|
46
|
+
"@skyux/help-inline": "10.8.0",
|
|
47
|
+
"@skyux/i18n": "10.8.0",
|
|
48
|
+
"@skyux/indicators": "10.8.0",
|
|
49
|
+
"@skyux/popovers": "10.8.0",
|
|
50
|
+
"@skyux/theme": "10.8.0"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"tslib": "^2.6.2"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
2
3
|
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
4
|
import { SkyCheckboxHarnessFilters } from './checkbox-harness-filters';
|
|
4
5
|
/**
|
|
@@ -20,6 +21,10 @@ export declare class SkyCheckboxHarness extends SkyComponentHarness {
|
|
|
20
21
|
* Blurs the checkbox.
|
|
21
22
|
*/
|
|
22
23
|
blur(): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Clicks the help inline button.
|
|
26
|
+
*/
|
|
27
|
+
clickHelpInline(): Promise<void>;
|
|
23
28
|
/**
|
|
24
29
|
* Puts the checkbox in a checked state by toggling it if it is currently unchecked, or doing nothing if it is already checked.
|
|
25
30
|
*/
|
|
@@ -36,6 +41,14 @@ export declare class SkyCheckboxHarness extends SkyComponentHarness {
|
|
|
36
41
|
* Gets the checkbox's aria-labelledby.
|
|
37
42
|
*/
|
|
38
43
|
getAriaLabelledby(): Promise<string | null>;
|
|
44
|
+
/**
|
|
45
|
+
* Gets the help popover content.
|
|
46
|
+
*/
|
|
47
|
+
getHelpPopoverContent(): Promise<TemplateRef<unknown> | string | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* Gets the help popover title.
|
|
50
|
+
*/
|
|
51
|
+
getHelpPopoverTitle(): Promise<string | undefined>;
|
|
39
52
|
/**
|
|
40
53
|
* Gets the checkbox's label text. If the label is set via `labelText` and `labelHidden` is true,
|
|
41
54
|
* the text will still be returned.
|
|
@@ -45,6 +58,10 @@ export declare class SkyCheckboxHarness extends SkyComponentHarness {
|
|
|
45
58
|
* Whether the label is hidden. Only supported when using the `labelText` input to set the label.
|
|
46
59
|
*/
|
|
47
60
|
getLabelHidden(): Promise<boolean>;
|
|
61
|
+
/**
|
|
62
|
+
* Gets the checkbox's hint text.
|
|
63
|
+
*/
|
|
64
|
+
getHintText(): Promise<string>;
|
|
48
65
|
/**
|
|
49
66
|
* Gets the checkbox's name.
|
|
50
67
|
*/
|
|
@@ -53,6 +70,14 @@ export declare class SkyCheckboxHarness extends SkyComponentHarness {
|
|
|
53
70
|
* Gets the checkbox's value.
|
|
54
71
|
*/
|
|
55
72
|
getValue(): Promise<string | null>;
|
|
73
|
+
/**
|
|
74
|
+
* Whether the checkbox displays custom error.
|
|
75
|
+
*/
|
|
76
|
+
hasCustomError(errorName: string): Promise<boolean>;
|
|
77
|
+
/**
|
|
78
|
+
* Whether the checkbox displays an error that it is required.
|
|
79
|
+
*/
|
|
80
|
+
hasRequiredError(): Promise<boolean>;
|
|
56
81
|
/**
|
|
57
82
|
* Whether the checkbox is checked.
|
|
58
83
|
*/
|
|
@@ -73,6 +98,4 @@ export declare class SkyCheckboxHarness extends SkyComponentHarness {
|
|
|
73
98
|
* Puts the checkbox in an unchecked state by toggling it if it is currently checked, or doing nothing if it is already unchecked.
|
|
74
99
|
*/
|
|
75
100
|
uncheck(): Promise<void>;
|
|
76
|
-
hasRequiredError(): Promise<boolean>;
|
|
77
|
-
hasCustomError(errorName: string): Promise<boolean>;
|
|
78
101
|
}
|