@skyux/forms 10.0.0-alpha.1 → 10.0.0-alpha.3
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 +5202 -3518
- package/esm2022/index.mjs +5 -1
- package/esm2022/lib/modules/character-counter/character-counter-indicator.component.mjs +7 -6
- package/esm2022/lib/modules/character-counter/character-counter-screen-reader.pipe.mjs +46 -0
- package/esm2022/lib/modules/character-counter/character-counter.directive.mjs +3 -3
- package/esm2022/lib/modules/character-counter/character-counter.module.mjs +8 -5
- package/esm2022/lib/modules/checkbox/checkbox-label-text-label.component.mjs +30 -0
- package/esm2022/lib/modules/checkbox/checkbox-label.component.mjs +5 -4
- package/esm2022/lib/modules/checkbox/checkbox.component.mjs +73 -20
- package/esm2022/lib/modules/checkbox/checkbox.module.mjs +44 -8
- package/esm2022/lib/modules/file-attachment/file-attachment-label.component.mjs +14 -6
- package/esm2022/lib/modules/file-attachment/file-attachment.component.mjs +16 -8
- package/esm2022/lib/modules/file-attachment/file-attachment.service.mjs +5 -6
- package/esm2022/lib/modules/file-attachment/file-attachments.module.mjs +4 -4
- package/esm2022/lib/modules/file-attachment/file-drop.component.mjs +6 -7
- package/esm2022/lib/modules/file-attachment/file-item.component.mjs +4 -4
- package/esm2022/lib/modules/file-attachment/file-item.service.mjs +3 -3
- package/esm2022/lib/modules/file-attachment/file-size.pipe.mjs +3 -3
- package/esm2022/lib/modules/file-attachment/types/file-drop-change.mjs +1 -1
- package/esm2022/lib/modules/form-error/form-error.component.mjs +30 -14
- package/esm2022/lib/modules/form-error/form-error.module.mjs +16 -0
- package/esm2022/lib/modules/form-error/form-errors-enabled-token.mjs +6 -0
- package/esm2022/lib/modules/form-error/form-errors.component.mjs +5 -5
- package/esm2022/lib/modules/form-error/form-errors.module.mjs +7 -6
- 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-help-inline.component.mjs +5 -5
- package/esm2022/lib/modules/input-box/input-box-hint-text.pipe.mjs +23 -0
- package/esm2022/lib/modules/input-box/input-box-host.service.mjs +16 -4
- package/esm2022/lib/modules/input-box/input-box.component.mjs +32 -6
- package/esm2022/lib/modules/input-box/input-box.module.mjs +29 -12
- package/esm2022/lib/modules/radio/radio-group-id.service.mjs +3 -3
- package/esm2022/lib/modules/radio/radio-group.component.mjs +74 -10
- package/esm2022/lib/modules/radio/radio-label.component.mjs +3 -3
- package/esm2022/lib/modules/radio/radio.component.mjs +4 -4
- package/esm2022/lib/modules/radio/radio.module.mjs +43 -9
- 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 +8 -6
- package/esm2022/lib/modules/toggle-switch/toggle-switch-label.component.mjs +14 -6
- package/esm2022/lib/modules/toggle-switch/toggle-switch.component.mjs +40 -7
- package/esm2022/lib/modules/toggle-switch/toggle-switch.module.mjs +4 -4
- package/esm2022/testing/checkbox/checkbox-harness.mjs +40 -4
- package/esm2022/testing/checkbox/checkbox-label-text-label.harness.mjs +19 -0
- package/esm2022/testing/form-error/form-error-harness.mjs +5 -9
- package/esm2022/testing/form-error/form-errors-harness.mjs +15 -64
- package/esm2022/testing/input-box/input-box-harness.mjs +59 -2
- package/fesm2022/skyux-forms-testing.mjs +164 -109
- package/fesm2022/skyux-forms-testing.mjs.map +1 -1
- package/fesm2022/skyux-forms.mjs +665 -264
- package/fesm2022/skyux-forms.mjs.map +1 -1
- package/index.d.ts +4 -0
- package/lib/modules/character-counter/character-counter-screen-reader.pipe.d.ts +8 -0
- package/lib/modules/character-counter/character-counter.module.d.ts +3 -2
- package/lib/modules/checkbox/checkbox-label-text-label.component.d.ts +12 -0
- package/lib/modules/checkbox/checkbox-label.component.d.ts +1 -0
- package/lib/modules/checkbox/checkbox.component.d.ts +16 -4
- package/lib/modules/checkbox/checkbox.module.d.ts +9 -5
- package/lib/modules/file-attachment/file-attachment-label.component.d.ts +2 -0
- package/lib/modules/file-attachment/file-attachment.component.d.ts +11 -1
- package/lib/modules/file-attachment/types/file-drop-change.d.ts +2 -2
- package/lib/modules/form-error/form-error.component.d.ts +17 -3
- package/lib/modules/form-error/form-error.module.d.ts +7 -0
- package/lib/modules/form-error/form-errors-enabled-token.d.ts +5 -0
- package/lib/modules/form-error/form-errors.module.d.ts +2 -1
- package/lib/modules/input-box/input-box-hint-text.pipe.d.ts +10 -0
- package/lib/modules/input-box/input-box-host.service.d.ts +2 -0
- package/lib/modules/input-box/input-box.component.d.ts +6 -1
- package/lib/modules/input-box/input-box.module.d.ts +8 -5
- package/lib/modules/radio/radio-group.component.d.ts +19 -3
- package/lib/modules/radio/radio.module.d.ts +6 -3
- package/lib/modules/toggle-switch/toggle-switch-label.component.d.ts +2 -0
- package/lib/modules/toggle-switch/toggle-switch.component.d.ts +14 -2
- package/package.json +12 -12
- package/testing/checkbox/checkbox-harness.d.ts +8 -1
- package/testing/checkbox/checkbox-label-text-label.harness.d.ts +16 -0
- package/testing/form-error/form-error-harness.d.ts +4 -2
- package/testing/form-error/form-errors-harness.d.ts +10 -11
- package/testing/input-box/input-box-harness.d.ts +36 -1
package/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { SkyCharacterCounterModule } from './lib/modules/character-counter/chara
|
|
|
2
2
|
export { SkyCheckboxChange } from './lib/modules/checkbox/checkbox-change';
|
|
3
3
|
export { SkyCheckboxModule } from './lib/modules/checkbox/checkbox.module';
|
|
4
4
|
export { SkyFormErrorsModule } from './lib/modules/form-error/form-errors.module';
|
|
5
|
+
export { SkyFormErrorModule } from './lib/modules/form-error/form-error.module';
|
|
5
6
|
export { SkyFileAttachmentsModule } from './lib/modules/file-attachment/file-attachments.module';
|
|
6
7
|
export { SkyFileItem } from './lib/modules/file-attachment/file-item';
|
|
7
8
|
export { SkyFileItemErrorType } from './lib/modules/file-attachment/file-item-error-type';
|
|
@@ -21,8 +22,10 @@ export { SkySelectionBoxGridAlignItems } from './lib/modules/selection-box/types
|
|
|
21
22
|
export { SkySelectionBoxGridAlignItemsType } from './lib/modules/selection-box/types/selection-box-grid-align-items-type';
|
|
22
23
|
export { SkyToggleSwitchModule } from './lib/modules/toggle-switch/toggle-switch.module';
|
|
23
24
|
export { SkyToggleSwitchChange } from './lib/modules/toggle-switch/types/toggle-switch-change';
|
|
25
|
+
export { SKY_FORM_ERRORS_ENABLED } from './lib/modules/form-error/form-errors-enabled-token';
|
|
24
26
|
export { SkyCharacterCounterIndicatorComponent as λ1 } from './lib/modules/character-counter/character-counter-indicator.component';
|
|
25
27
|
export { SkyCharacterCounterInputDirective as λ2 } from './lib/modules/character-counter/character-counter.directive';
|
|
28
|
+
export { SkyCharacterCounterScreenReaderPipe as λ23 } from './lib/modules/character-counter/character-counter-screen-reader.pipe';
|
|
26
29
|
export { SkyCheckboxLabelComponent as λ4 } from './lib/modules/checkbox/checkbox-label.component';
|
|
27
30
|
export { SkyCheckboxComponent as λ3 } from './lib/modules/checkbox/checkbox.component';
|
|
28
31
|
export { SkyFileAttachmentLabelComponent as λ6 } from './lib/modules/file-attachment/file-attachment-label.component';
|
|
@@ -30,6 +33,7 @@ export { SkyFileAttachmentComponent as λ7 } from './lib/modules/file-attachment
|
|
|
30
33
|
export { SkyFileDropComponent as λ8 } from './lib/modules/file-attachment/file-drop.component';
|
|
31
34
|
export { SkyFileItemComponent as λ9 } from './lib/modules/file-attachment/file-item.component';
|
|
32
35
|
export { SkyFormErrorsComponent as λ21 } from './lib/modules/form-error/form-errors.component';
|
|
36
|
+
export { SkyFormErrorComponent as λ22 } from './lib/modules/form-error/form-error.component';
|
|
33
37
|
export { SkyInputBoxControlDirective as λ20 } from './lib/modules/input-box/input-box-control.directive';
|
|
34
38
|
export { SkyInputBoxComponent as λ10 } from './lib/modules/input-box/input-box.component';
|
|
35
39
|
export { SkyRadioGroupComponent as λ11 } from './lib/modules/radio/radio-group.component';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SkyCharacterCounterScreenReaderPipe implements PipeTransform {
|
|
4
|
+
#private;
|
|
5
|
+
transform(characterCount: number | undefined, characterCountLimit: number | undefined): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyCharacterCounterScreenReaderPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SkyCharacterCounterScreenReaderPipe, "skyCharacterCounterScreenReader", true>;
|
|
8
|
+
}
|
|
@@ -3,9 +3,10 @@ import * as i1 from "./character-counter.directive";
|
|
|
3
3
|
import * as i2 from "./character-counter-indicator.component";
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
5
|
import * as i4 from "@angular/forms";
|
|
6
|
-
import * as i5 from "
|
|
6
|
+
import * as i5 from "./character-counter-screen-reader.pipe";
|
|
7
|
+
import * as i6 from "../shared/sky-forms-resources.module";
|
|
7
8
|
export declare class SkyCharacterCounterModule {
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyCharacterCounterModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyCharacterCounterModule, [typeof i1.SkyCharacterCounterInputDirective, typeof i2.SkyCharacterCounterIndicatorComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.SkyFormsResourcesModule], [typeof i1.SkyCharacterCounterInputDirective, typeof i2.SkyCharacterCounterIndicatorComponent]>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyCharacterCounterModule, [typeof i1.SkyCharacterCounterInputDirective, typeof i2.SkyCharacterCounterIndicatorComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.SkyCharacterCounterScreenReaderPipe, typeof i6.SkyFormsResourcesModule], [typeof i1.SkyCharacterCounterInputDirective, typeof i2.SkyCharacterCounterIndicatorComponent]>;
|
|
10
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkyCharacterCounterModule>;
|
|
11
12
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
@internal
|
|
4
|
+
*/
|
|
5
|
+
export declare class SkyCheckboxLabelTextLabelComponent {
|
|
6
|
+
#private;
|
|
7
|
+
labelHidden: boolean;
|
|
8
|
+
set labelText(value: string);
|
|
9
|
+
get labelText(): string;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyCheckboxLabelTextLabelComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyCheckboxLabelTextLabelComponent, "sky-checkbox-label-text-label", never, { "labelHidden": { "alias": "labelHidden"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; }, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -3,6 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
* Specifies a label for the checkbox. To display a help button beside the label, include a help button element, such as
|
|
4
4
|
* `sky-help-inline`, in the `sky-checkbox-label` element and a `sky-control-help` CSS class on that help button
|
|
5
5
|
* element.
|
|
6
|
+
* @deprecated Use `labelText` input on `sky-checkbox-component` instead.
|
|
6
7
|
*/
|
|
7
8
|
export declare class SkyCheckboxLabelComponent {
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyCheckboxLabelComponent, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { SkyCheckboxChange } from './checkbox-change';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -14,15 +14,19 @@ export declare class SkyCheckboxComponent implements ControlValueAccessor, OnIni
|
|
|
14
14
|
* [to support accessibility](https://developer.blackbaud.com/skyux/components/checkbox#accessibility)
|
|
15
15
|
* when the checkbox does not include a visible label. You must set this property for icon
|
|
16
16
|
* checkboxes. If the checkbox includes a visible label, use `labelledBy` instead.
|
|
17
|
+
* @deprecated Use `labelText` instead.
|
|
17
18
|
*/
|
|
18
|
-
label: string | undefined;
|
|
19
|
+
set label(value: string | undefined);
|
|
20
|
+
get label(): string | undefined;
|
|
19
21
|
/**
|
|
20
22
|
* The HTML element ID of the element that labels the
|
|
21
23
|
* checkbox. This sets the checkbox's `aria-labelledby` attribute
|
|
22
24
|
* [to support accessibility](https://developer.blackbaud.com/skyux/components/checkbox#accessibility).
|
|
23
25
|
* If the checkbox does not include a visible label, use `label` instead.
|
|
26
|
+
* @deprecated Use `labelText` instead.
|
|
24
27
|
*/
|
|
25
|
-
labelledBy: string | undefined;
|
|
28
|
+
set labelledBy(value: string | undefined);
|
|
29
|
+
get labelledBy(): string | undefined;
|
|
26
30
|
/**
|
|
27
31
|
* The ID for the checkbox.
|
|
28
32
|
* If a value is not provided, an autogenerated ID is used.
|
|
@@ -97,8 +101,14 @@ export declare class SkyCheckboxComponent implements ControlValueAccessor, OnIni
|
|
|
97
101
|
/**
|
|
98
102
|
* The text to display as the checkbox's label. Use this instead of the `sky-checkbox-label` when the label is text-only.
|
|
99
103
|
* Specifying `labelText` also enables automatic error message handling for checkbox.
|
|
104
|
+
* @preview
|
|
100
105
|
*/
|
|
101
106
|
labelText: string | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Indicates whether to hide the `labelText`.
|
|
109
|
+
* @preview
|
|
110
|
+
*/
|
|
111
|
+
labelHidden: boolean;
|
|
102
112
|
/**
|
|
103
113
|
* Fires when users select or deselect the checkbox.
|
|
104
114
|
*/
|
|
@@ -115,6 +125,8 @@ export declare class SkyCheckboxComponent implements ControlValueAccessor, OnIni
|
|
|
115
125
|
set inputEl(el: ElementRef | undefined);
|
|
116
126
|
get inputEl(): ElementRef | undefined;
|
|
117
127
|
protected inputId: string;
|
|
128
|
+
protected readonly ngControl: NgControl | null;
|
|
129
|
+
protected readonly errorId: string;
|
|
118
130
|
constructor();
|
|
119
131
|
ngOnInit(): void;
|
|
120
132
|
/**
|
|
@@ -142,5 +154,5 @@ export declare class SkyCheckboxComponent implements ControlValueAccessor, OnIni
|
|
|
142
154
|
/** Called when the checkbox is blurred. Needed to properly implement ControlValueAccessor. */
|
|
143
155
|
onTouched: () => any;
|
|
144
156
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyCheckboxComponent, never>;
|
|
145
|
-
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; }; }, { "change": "change"; "checkedChange": "checkedChange"; "disabledChange": "disabledChange"; "indeterminateChange": "indeterminateChange"; }, never, ["sky-checkbox-label"], false, never>;
|
|
157
|
+
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>;
|
|
146
158
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./checkbox.component";
|
|
3
3
|
import * as i2 from "./checkbox-label.component";
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "@angular/
|
|
6
|
-
import * as i5 from "@
|
|
7
|
-
import * as i6 from "
|
|
4
|
+
import * as i3 from "./checkbox-label-text-label.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "../form-error/form-error.module";
|
|
8
|
+
import * as i7 from "../form-error/form-errors.module";
|
|
9
|
+
import * as i8 from "../shared/sky-forms-resources.module";
|
|
10
|
+
import * as i9 from "@skyux/indicators";
|
|
11
|
+
import * as i10 from "@skyux/core";
|
|
8
12
|
export declare class SkyCheckboxModule {
|
|
9
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyCheckboxModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyCheckboxModule, [typeof i1.SkyCheckboxComponent, typeof i2.SkyCheckboxLabelComponent], [typeof
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyCheckboxModule, [typeof i1.SkyCheckboxComponent, typeof i2.SkyCheckboxLabelComponent, typeof i3.SkyCheckboxLabelTextLabelComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.SkyFormErrorModule, typeof i7.SkyFormErrorsModule, typeof i8.SkyFormsResourcesModule, typeof i9.SkyIconModule, typeof i10.SkyTrimModule], [typeof i1.SkyCheckboxComponent, typeof i2.SkyCheckboxLabelComponent, typeof i6.SkyFormErrorModule]>;
|
|
11
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkyCheckboxModule>;
|
|
12
16
|
}
|
|
@@ -3,11 +3,13 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
* Displays a label above the file attachment element. To display a help button beside the label, include a help button
|
|
4
4
|
* element, such as `sky-help-inline`, in the `sky-file-attachment-label` element and a `sky-control-help` CSS class on
|
|
5
5
|
* that help button element.
|
|
6
|
+
* @deprecated use the `labelText` input on the single file attachment component instead.
|
|
6
7
|
*/
|
|
7
8
|
export declare class SkyFileAttachmentLabelComponent {
|
|
8
9
|
labelContentId: {
|
|
9
10
|
id: string;
|
|
10
11
|
} | undefined;
|
|
12
|
+
constructor();
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileAttachmentLabelComponent, never>;
|
|
12
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileAttachmentLabelComponent, "sky-file-attachment-label", never, {}, {}, never, ["*", ".sky-control-help"], false, never>;
|
|
13
15
|
}
|
|
@@ -27,6 +27,16 @@ export declare class SkyFileAttachmentComponent implements AfterViewInit, AfterC
|
|
|
27
27
|
*/
|
|
28
28
|
set disabled(value: boolean | undefined);
|
|
29
29
|
get disabled(): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The text to display as the file attachment's label.
|
|
32
|
+
* @preview
|
|
33
|
+
*/
|
|
34
|
+
labelText: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Whether to hide `labelText` from view.
|
|
37
|
+
* @preview
|
|
38
|
+
*/
|
|
39
|
+
labelHidden: boolean;
|
|
30
40
|
/**
|
|
31
41
|
* The maximum size in bytes for valid files.
|
|
32
42
|
* @default 500000
|
|
@@ -98,5 +108,5 @@ export declare class SkyFileAttachmentComponent implements AfterViewInit, AfterC
|
|
|
98
108
|
setDisabledState(isDisabled: boolean): void;
|
|
99
109
|
emitClick(): void;
|
|
100
110
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileAttachmentComponent, [null, null, null, { optional: true; self: true; }, { optional: true; }]>;
|
|
101
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileAttachmentComponent, "sky-file-attachment", never, { "acceptedTypes": { "alias": "acceptedTypes"; "required": false; }; "disabled": { "alias": "disabled"; "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-file-attachment-label"], false, never>;
|
|
111
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileAttachmentComponent, "sky-file-attachment", never, { "acceptedTypes": { "alias": "acceptedTypes"; "required": false; }; "disabled": { "alias": "disabled"; "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-file-attachment-label"], false, never>;
|
|
102
112
|
}
|
|
@@ -3,9 +3,9 @@ export interface SkyFileDropChange {
|
|
|
3
3
|
/**
|
|
4
4
|
* The array of files that were added or removed.
|
|
5
5
|
*/
|
|
6
|
-
files:
|
|
6
|
+
files: SkyFileItem[];
|
|
7
7
|
/**
|
|
8
8
|
* The array of files that were rejected.
|
|
9
9
|
*/
|
|
10
|
-
rejectedFiles:
|
|
10
|
+
rejectedFiles: SkyFileItem[];
|
|
11
11
|
}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Displays default and custom form field error messages for form field components.
|
|
4
|
+
* Set `labelText` on the form field component to automatically display required,
|
|
5
|
+
* maximum length, minimum length, date, email, phone number, time, and URL errors.
|
|
6
|
+
* To display custom errors, include sky-form-error elements in the form field component.
|
|
4
7
|
*/
|
|
5
8
|
export declare class SkyFormErrorComponent {
|
|
6
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The name of the error.
|
|
11
|
+
* @required
|
|
12
|
+
*/
|
|
13
|
+
errorName: string;
|
|
14
|
+
/**
|
|
15
|
+
* The error message to display.
|
|
16
|
+
* @required
|
|
17
|
+
*/
|
|
18
|
+
errorText: string;
|
|
19
|
+
protected readonly formErrors: boolean | null;
|
|
20
|
+
constructor();
|
|
7
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyFormErrorComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyFormErrorComponent, "sky-form-error", never, {}, {}, never,
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyFormErrorComponent, "sky-form-error", never, { "errorName": { "alias": "errorName"; "required": true; }; "errorText": { "alias": "errorText"; "required": true; }; }, {}, never, never, true, never>;
|
|
9
23
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./form-error.component";
|
|
3
|
+
export declare class SkyFormErrorModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyFormErrorModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyFormErrorModule, never, [typeof i1.SkyFormErrorComponent], [typeof i1.SkyFormErrorComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SkyFormErrorModule>;
|
|
7
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./form-errors.component";
|
|
3
|
+
import * as i2 from "./form-error.component";
|
|
3
4
|
/**
|
|
4
5
|
* @internal
|
|
5
6
|
*/
|
|
6
7
|
export declare class SkyFormErrorsModule {
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyFormErrorsModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyFormErrorsModule, never, [typeof i1.SkyFormErrorsComponent], [typeof i1.SkyFormErrorsComponent]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyFormErrorsModule, never, [typeof i1.SkyFormErrorsComponent, typeof i2.SkyFormErrorComponent], [typeof i1.SkyFormErrorsComponent]>;
|
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkyFormErrorsModule>;
|
|
10
11
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare class SkyInputBoxHintTextPipe implements PipeTransform {
|
|
7
|
+
transform(hintText?: string, hostHintText?: string): string | undefined;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyInputBoxHintTextPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SkyInputBoxHintTextPipe, "skyInputBoxHintText", true>;
|
|
10
|
+
}
|
|
@@ -12,6 +12,8 @@ export declare class SkyInputBoxHostService {
|
|
|
12
12
|
get ariaDescribedBy(): Observable<string | undefined> | undefined;
|
|
13
13
|
init(host: SkyInputBoxComponent): void;
|
|
14
14
|
populate(args: SkyInputBoxPopulateArgs): void;
|
|
15
|
+
setHintText(hintText: string | undefined): void;
|
|
16
|
+
setHintTextHidden(hide: boolean): void;
|
|
15
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyInputBoxHostService, never>;
|
|
16
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<SkyInputBoxHostService>;
|
|
17
19
|
}
|
|
@@ -64,6 +64,8 @@ export declare class SkyInputBoxComponent implements OnInit, AfterContentChecked
|
|
|
64
64
|
formControlHasFocus: boolean;
|
|
65
65
|
hostIconsInsetTemplate: TemplateRef<unknown> | undefined;
|
|
66
66
|
hostIconsInsetLeftTemplate: TemplateRef<unknown> | undefined;
|
|
67
|
+
protected hintTextHidden: boolean;
|
|
68
|
+
protected hostHintText: string | undefined;
|
|
67
69
|
readonly controlId: string;
|
|
68
70
|
readonly errorId: string;
|
|
69
71
|
readonly hintTextId: string;
|
|
@@ -77,6 +79,7 @@ export declare class SkyInputBoxComponent implements OnInit, AfterContentChecked
|
|
|
77
79
|
protected helpPopoverOpen: boolean | undefined;
|
|
78
80
|
protected get hasErrorsComputed(): boolean;
|
|
79
81
|
protected get required(): boolean;
|
|
82
|
+
protected characterCountScreenReader: number;
|
|
80
83
|
ngOnInit(): void;
|
|
81
84
|
ngAfterContentChecked(): void;
|
|
82
85
|
ngOnDestroy(): void;
|
|
@@ -84,6 +87,8 @@ export declare class SkyInputBoxComponent implements OnInit, AfterContentChecked
|
|
|
84
87
|
formControlFocusOut(): void;
|
|
85
88
|
onInsetIconClick(): void;
|
|
86
89
|
populate(args: SkyInputBoxPopulateArgs): void;
|
|
90
|
+
setHintTextHidden(hide: boolean): void;
|
|
91
|
+
setHostHintText(value: string | undefined): void;
|
|
87
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyInputBoxComponent, never>;
|
|
88
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyInputBoxComponent, "sky-input-box", never, { "hasErrors": { "alias": "hasErrors"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "characterLimit": { "alias": "characterLimit"; "required": false; }; "stacked": { "alias": "stacked"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; }, {}, ["formControl", "formControlByName", "ngModel", "inputRef"], [".sky-control-label", ".sky-control-help", "sky-character-counter-indicator", "input,select,.sky-form-control:not(textarea),sky-text-editor", "textarea", ".sky-input-group-btn.sky-input-box-btn-left", ".sky-input-group-btn:not(.sky-input-box-btn-left):not(.sky-input-box-btn-inset)", ".sky-input-group-btn.sky-input-box-btn-inset", ".sky-input-group-icon.sky-input-box-icon-inset", ".sky-input-group-icon.sky-input-box-icon-inset-left", ".sky-error-label,.sky-error-indicator"], false, never>;
|
|
93
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyInputBoxComponent, "sky-input-box", never, { "hasErrors": { "alias": "hasErrors"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "characterLimit": { "alias": "characterLimit"; "required": false; }; "stacked": { "alias": "stacked"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; }, {}, ["formControl", "formControlByName", "ngModel", "inputRef"], [".sky-control-label", ".sky-control-help", "sky-character-counter-indicator", "input,select,.sky-form-control:not(textarea),sky-text-editor", "textarea", ".sky-input-group-btn.sky-input-box-btn-left", ".sky-input-group-btn:not(.sky-input-box-btn-left):not(.sky-input-box-btn-inset)", ".sky-input-group-btn.sky-input-box-btn-inset", ".sky-input-group-icon.sky-input-box-icon-inset", ".sky-input-group-icon.sky-input-box-icon-inset-left", "sky-form-error", ".sky-error-label,.sky-error-indicator"], false, never>;
|
|
89
94
|
}
|
|
@@ -2,12 +2,15 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./input-box.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "../character-counter/character-counter.module";
|
|
5
|
-
import * as i4 from "../form-error/form-errors.
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "
|
|
5
|
+
import * as i4 from "../form-error/form-errors.module";
|
|
6
|
+
import * as i5 from "../form-error/form-error.module";
|
|
7
|
+
import * as i6 from "../shared/sky-forms-resources.module";
|
|
8
|
+
import * as i7 from "./input-box-control.directive";
|
|
9
|
+
import * as i8 from "./input-box-help-inline.component";
|
|
10
|
+
import * as i9 from "./input-box-hint-text.pipe";
|
|
11
|
+
import * as i10 from "@skyux/theme";
|
|
9
12
|
export declare class SkyInputBoxModule {
|
|
10
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyInputBoxModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyInputBoxModule, [typeof i1.SkyInputBoxComponent], [typeof i2.CommonModule, typeof i3.SkyCharacterCounterModule, typeof i4.
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyInputBoxModule, [typeof i1.SkyInputBoxComponent], [typeof i2.CommonModule, typeof i3.SkyCharacterCounterModule, typeof i4.SkyFormErrorsModule, typeof i5.SkyFormErrorModule, typeof i6.SkyFormsResourcesModule, typeof i7.SkyInputBoxControlDirective, typeof i8.SkyInputBoxHelpInlineComponent, typeof i9.SkyInputBoxHintTextPipe, typeof i10.SkyThemeModule], [typeof i1.SkyInputBoxComponent, typeof i7.SkyInputBoxControlDirective, typeof i5.SkyFormErrorModule]>;
|
|
12
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkyInputBoxModule>;
|
|
13
16
|
}
|
|
@@ -17,16 +17,20 @@ export declare class SkyRadioGroupComponent implements AfterContentInit, AfterVi
|
|
|
17
17
|
* [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
|
|
18
18
|
* If the radio button group does not include a visible label, use `ariaLabel` instead.
|
|
19
19
|
* For more information about the `aria-labelledby` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-labelledby).
|
|
20
|
+
* @deprecated Use `labelText` instead.
|
|
20
21
|
*/
|
|
21
|
-
ariaLabelledBy: string | undefined;
|
|
22
|
+
set ariaLabelledBy(value: string | undefined);
|
|
23
|
+
get ariaLabelledBy(): string | undefined;
|
|
22
24
|
/**
|
|
23
25
|
* The ARIA label for the radio button group. This sets the
|
|
24
26
|
* radio button group's `aria-label` attribute to provide a text equivalent for screen readers
|
|
25
27
|
* [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
|
|
26
28
|
* If the radio button group includes a visible label, use `ariaLabelledBy` instead.
|
|
27
29
|
* For more information about the `aria-label` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-label).
|
|
30
|
+
* @deprecated Use `labelText` instead.
|
|
28
31
|
*/
|
|
29
|
-
ariaLabel: string | undefined;
|
|
32
|
+
set ariaLabel(value: string | undefined);
|
|
33
|
+
get ariaLabel(): string | undefined;
|
|
30
34
|
/**
|
|
31
35
|
* Whether to disable the input on template-driven forms. Don't use this input on reactive forms because they may overwrite the input or leave the control out of sync.
|
|
32
36
|
* To set the disabled state on reactive forms, use the `FormControl` instead.
|
|
@@ -66,6 +70,16 @@ export declare class SkyRadioGroupComponent implements AfterContentInit, AfterVi
|
|
|
66
70
|
*/
|
|
67
71
|
set tabIndex(value: number | undefined);
|
|
68
72
|
get tabIndex(): number | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* The text to display as the radio group's label.
|
|
75
|
+
* @preview
|
|
76
|
+
*/
|
|
77
|
+
labelText: string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Indicates whether to hide the `labelText`.
|
|
80
|
+
* @preview
|
|
81
|
+
*/
|
|
82
|
+
labelHidden: boolean;
|
|
69
83
|
/**
|
|
70
84
|
* Our radio components are usually implemented using an unordered list. This is an
|
|
71
85
|
* accessibility violation because the unordered list has an implicit role which
|
|
@@ -75,6 +89,8 @@ export declare class SkyRadioGroupComponent implements AfterContentInit, AfterVi
|
|
|
75
89
|
*/
|
|
76
90
|
ariaOwns: string | undefined;
|
|
77
91
|
radios: QueryList<SkyRadioComponent> | undefined;
|
|
92
|
+
protected errorId: string;
|
|
93
|
+
protected ngControl: NgControl | undefined;
|
|
78
94
|
constructor(changeDetector: ChangeDetectorRef, radioGroupIdSvc: SkyRadioGroupIdService, ngControl: NgControl);
|
|
79
95
|
ngAfterContentInit(): void;
|
|
80
96
|
ngAfterViewInit(): void;
|
|
@@ -89,5 +105,5 @@ export declare class SkyRadioGroupComponent implements AfterContentInit, AfterVi
|
|
|
89
105
|
registerOnChange(fn: (value: any) => void): void;
|
|
90
106
|
registerOnTouched(fn: any): void;
|
|
91
107
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyRadioGroupComponent, [null, null, { optional: true; self: true; }]>;
|
|
92
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyRadioGroupComponent, "sky-radio-group", never, { "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "name": { "alias": "name"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, ["radios"], ["*"], false, never>;
|
|
108
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyRadioGroupComponent, "sky-radio-group", never, { "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "name": { "alias": "name"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; }, {}, ["radios"], ["*", "sky-form-error"], false, never>;
|
|
93
109
|
}
|
|
@@ -4,10 +4,13 @@ import * as i2 from "./radio-group.component";
|
|
|
4
4
|
import * as i3 from "./radio-label.component";
|
|
5
5
|
import * as i4 from "@angular/common";
|
|
6
6
|
import * as i5 from "@angular/forms";
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "
|
|
7
|
+
import * as i6 from "../form-error/form-error.module";
|
|
8
|
+
import * as i7 from "../form-error/form-errors.module";
|
|
9
|
+
import * as i8 from "@skyux/indicators";
|
|
10
|
+
import * as i9 from "@skyux/core";
|
|
11
|
+
import * as i10 from "../shared/sky-forms-resources.module";
|
|
9
12
|
export declare class SkyRadioModule {
|
|
10
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyRadioModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyRadioModule, [typeof i1.SkyRadioComponent, typeof i2.SkyRadioGroupComponent, typeof i3.SkyRadioLabelComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyRadioModule, [typeof i1.SkyRadioComponent, typeof i2.SkyRadioGroupComponent, typeof i3.SkyRadioLabelComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.SkyFormErrorModule, typeof i7.SkyFormErrorsModule, typeof i8.SkyIconModule, typeof i9.SkyIdModule, typeof i10.SkyFormsResourcesModule, typeof i9.SkyTrimModule], [typeof i6.SkyFormErrorModule, typeof i1.SkyRadioComponent, typeof i2.SkyRadioGroupComponent, typeof i3.SkyRadioLabelComponent]>;
|
|
12
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkyRadioModule>;
|
|
13
16
|
}
|
|
@@ -3,8 +3,10 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
* Specifies the label to display beside the toggle switch. To display a help button beside the label, include a help
|
|
4
4
|
* button element, such as `sky-help-inline`, in the `sky-toggle-switch` element and a `sky-control-help` CSS class on
|
|
5
5
|
* that help button element.
|
|
6
|
+
* @deprecated Use the `labelText` input on the toggle switch component instead.
|
|
6
7
|
*/
|
|
7
8
|
export declare class SkyToggleSwitchLabelComponent {
|
|
9
|
+
constructor();
|
|
8
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyToggleSwitchLabelComponent, never>;
|
|
9
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyToggleSwitchLabelComponent, "sky-toggle-switch-label", never, {}, {}, never, ["*"], false, never>;
|
|
10
12
|
}
|
|
@@ -12,8 +12,10 @@ export declare class SkyToggleSwitchComponent implements AfterContentInit, OnDes
|
|
|
12
12
|
* Use a context-sensitive label, such as "Activate annual fundraiser" for a toggle switch that activates and deactivates an annual fundraiser. Context is especially important if multiple toggle switches are in close proximity.
|
|
13
13
|
* When the `sky-toggle-switch-label` component displays a visible label, this property is only necessary if that label requires extra context.
|
|
14
14
|
* For more information about the `aria-label` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-label).
|
|
15
|
+
* @deprecated Use the `labelText` input instead.
|
|
15
16
|
*/
|
|
16
|
-
ariaLabel: string | undefined;
|
|
17
|
+
set ariaLabel(value: string | undefined);
|
|
18
|
+
get ariaLabel(): string | undefined;
|
|
17
19
|
/**
|
|
18
20
|
* Whether the toggle switch is selected.
|
|
19
21
|
* @default false
|
|
@@ -30,6 +32,16 @@ export declare class SkyToggleSwitchComponent implements AfterContentInit, OnDes
|
|
|
30
32
|
* of the toggle switch on load.
|
|
31
33
|
*/
|
|
32
34
|
tabIndex: number | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The text to display as the toggle switch's label.
|
|
37
|
+
* @preview
|
|
38
|
+
*/
|
|
39
|
+
labelText: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Whether to hide `labelText` from view.
|
|
42
|
+
* @preview
|
|
43
|
+
*/
|
|
44
|
+
labelHidden: boolean;
|
|
33
45
|
/**
|
|
34
46
|
* Fires when the checked state of a toggle switch changes.
|
|
35
47
|
*/
|
|
@@ -49,5 +61,5 @@ export declare class SkyToggleSwitchComponent implements AfterContentInit, OnDes
|
|
|
49
61
|
onButtonClick(event: any): void;
|
|
50
62
|
onButtonBlur(): void;
|
|
51
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyToggleSwitchComponent, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyToggleSwitchComponent, "sky-toggle-switch", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "toggleChange": "toggleChange"; }, ["labelComponents"], [".sky-control-help", "sky-toggle-switch-label"], false, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyToggleSwitchComponent, "sky-toggle-switch", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; }, { "toggleChange": "toggleChange"; }, ["labelComponents"], [".sky-control-help", "sky-toggle-switch-label"], false, never>;
|
|
53
65
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/forms",
|
|
3
|
-
"version": "10.0.0-alpha.
|
|
3
|
+
"version": "10.0.0-alpha.3",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@angular/cdk": "^17.1.
|
|
40
|
-
"@angular/common": "^17.1.
|
|
41
|
-
"@angular/core": "^17.1.
|
|
42
|
-
"@angular/forms": "^17.1.
|
|
43
|
-
"@angular/platform-browser": "^17.1.
|
|
44
|
-
"@skyux-sdk/testing": "10.0.0-alpha.
|
|
45
|
-
"@skyux/core": "10.0.0-alpha.
|
|
46
|
-
"@skyux/i18n": "10.0.0-alpha.
|
|
47
|
-
"@skyux/indicators": "10.0.0-alpha.
|
|
48
|
-
"@skyux/popovers": "10.0.0-alpha.
|
|
49
|
-
"@skyux/theme": "10.0.0-alpha.
|
|
39
|
+
"@angular/cdk": "^17.1.1",
|
|
40
|
+
"@angular/common": "^17.1.1",
|
|
41
|
+
"@angular/core": "^17.1.1",
|
|
42
|
+
"@angular/forms": "^17.1.1",
|
|
43
|
+
"@angular/platform-browser": "^17.1.1",
|
|
44
|
+
"@skyux-sdk/testing": "10.0.0-alpha.3",
|
|
45
|
+
"@skyux/core": "10.0.0-alpha.3",
|
|
46
|
+
"@skyux/i18n": "10.0.0-alpha.3",
|
|
47
|
+
"@skyux/indicators": "10.0.0-alpha.3",
|
|
48
|
+
"@skyux/popovers": "10.0.0-alpha.3",
|
|
49
|
+
"@skyux/theme": "10.0.0-alpha.3"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"tslib": "^2.6.2"
|
|
@@ -37,9 +37,14 @@ export declare class SkyCheckboxHarness extends SkyComponentHarness {
|
|
|
37
37
|
*/
|
|
38
38
|
getAriaLabelledby(): Promise<string | null>;
|
|
39
39
|
/**
|
|
40
|
-
* Gets the checkbox's label text.
|
|
40
|
+
* Gets the checkbox's label text. If the label is set via `labelText` and `labelHidden` is true,
|
|
41
|
+
* the text will still be returned.
|
|
41
42
|
*/
|
|
42
43
|
getLabelText(): Promise<string | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the label is hidden. Only supported when using the `labelText` input to set the label.
|
|
46
|
+
*/
|
|
47
|
+
getLabelHidden(): Promise<boolean>;
|
|
43
48
|
/**
|
|
44
49
|
* Gets the checkbox's name.
|
|
45
50
|
*/
|
|
@@ -68,4 +73,6 @@ export declare class SkyCheckboxHarness extends SkyComponentHarness {
|
|
|
68
73
|
* Puts the checkbox in an unchecked state by toggling it if it is currently checked, or doing nothing if it is already unchecked.
|
|
69
74
|
*/
|
|
70
75
|
uncheck(): Promise<void>;
|
|
76
|
+
hasRequiredError(): Promise<boolean>;
|
|
77
|
+
hasCustomError(errorName: string): Promise<boolean>;
|
|
71
78
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentHarness } from '@angular/cdk/testing';
|
|
2
|
+
/**
|
|
3
|
+
* Harness for interacting with a `labelText` checkbox label component in tests.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare class SkyCheckboxLabelTextLabelHarness extends ComponentHarness {
|
|
7
|
+
#private;
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
static hostSelector: string;
|
|
12
|
+
/**
|
|
13
|
+
* Gets the text content of the `labelText` checkbox label.
|
|
14
|
+
*/
|
|
15
|
+
getText(): Promise<string | undefined>;
|
|
16
|
+
}
|
|
@@ -2,7 +2,6 @@ import { HarnessPredicate } from '@angular/cdk/testing';
|
|
|
2
2
|
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
3
|
import { SkyFormErrorHarnessFilters } from './form-error-harness.filters';
|
|
4
4
|
export declare class SkyFormErrorHarness extends SkyComponentHarness {
|
|
5
|
-
#private;
|
|
6
5
|
/**
|
|
7
6
|
* @internal
|
|
8
7
|
*/
|
|
@@ -12,5 +11,8 @@ export declare class SkyFormErrorHarness extends SkyComponentHarness {
|
|
|
12
11
|
* `SkyFormErrorHarness` that meets certain criteria
|
|
13
12
|
*/
|
|
14
13
|
static with(filters: SkyFormErrorHarnessFilters): HarnessPredicate<SkyFormErrorHarness>;
|
|
15
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Gets the error name.
|
|
16
|
+
*/
|
|
17
|
+
getErrorName(): Promise<string | null>;
|
|
16
18
|
}
|
|
@@ -2,7 +2,6 @@ import { HarnessPredicate } from '@angular/cdk/testing';
|
|
|
2
2
|
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
3
|
import { SkyFormErrorsHarnessFilters } from './form-errors-harness.filters';
|
|
4
4
|
export declare class SkyFormErrorsHarness extends SkyComponentHarness {
|
|
5
|
-
#private;
|
|
6
5
|
/**
|
|
7
6
|
* @internal
|
|
8
7
|
*/
|
|
@@ -12,14 +11,14 @@ export declare class SkyFormErrorsHarness extends SkyComponentHarness {
|
|
|
12
11
|
* `SkyFormErrorsHarness` that meets certain criteria
|
|
13
12
|
*/
|
|
14
13
|
static with(filters: SkyFormErrorsHarnessFilters): HarnessPredicate<SkyFormErrorsHarness>;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Gets a list of all errors fired.
|
|
16
|
+
*/
|
|
17
|
+
getFormErrors(): Promise<{
|
|
18
|
+
errorName: string | null;
|
|
19
|
+
}[]>;
|
|
20
|
+
/**
|
|
21
|
+
* Whether an error with the given name has fired.
|
|
22
|
+
*/
|
|
23
|
+
hasError(errorName: string): Promise<boolean>;
|
|
25
24
|
}
|