@skyux/forms 15.0.0-alpha.0 → 15.0.0-alpha.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/forms",
3
- "version": "15.0.0-alpha.0",
3
+ "version": "15.0.0-alpha.10",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -16,28 +16,22 @@
16
16
  },
17
17
  "homepage": "https://github.com/blackbaud/skyux#readme",
18
18
  "peerDependencies": {
19
- "@angular/cdk": "^22.0.1",
20
- "@angular/common": "^22.0.1",
21
- "@angular/core": "^22.0.1",
22
- "@angular/forms": "^22.0.1",
23
- "@angular/platform-browser": "^22.0.1",
24
- "@skyux-sdk/testing": "15.0.0-alpha.0",
25
- "@skyux/core": "15.0.0-alpha.0",
26
- "@skyux/help-inline": "15.0.0-alpha.0",
27
- "@skyux/i18n": "15.0.0-alpha.0",
28
- "@skyux/icon": "15.0.0-alpha.0",
29
- "@skyux/indicators": "15.0.0-alpha.0",
30
- "@skyux/popovers": "15.0.0-alpha.0",
31
- "@skyux/theme": "15.0.0-alpha.0"
19
+ "@angular/cdk": "^22.1.2",
20
+ "@angular/common": "^22.1.2",
21
+ "@angular/core": "^22.1.2",
22
+ "@angular/forms": "^22.1.2",
23
+ "@angular/platform-browser": "^22.1.2",
24
+ "@skyux/core": "15.0.0-alpha.10",
25
+ "@skyux/help-inline": "15.0.0-alpha.10",
26
+ "@skyux/i18n": "15.0.0-alpha.10",
27
+ "@skyux/icon": "15.0.0-alpha.10",
28
+ "@skyux/indicators": "15.0.0-alpha.10",
29
+ "@skyux/popovers": "15.0.0-alpha.10",
30
+ "@skyux/theme": "15.0.0-alpha.10"
32
31
  },
33
32
  "dependencies": {
34
33
  "tslib": "^2.8.1"
35
34
  },
36
- "peerDependenciesMeta": {
37
- "@skyux-sdk/testing": {
38
- "optional": true
39
- }
40
- },
41
35
  "sideEffects": false,
42
36
  "module": "fesm2022/skyux-forms.mjs",
43
37
  "typings": "types/skyux-forms.d.ts",
@@ -9,12 +9,18 @@ import { SkyIconHarness } from '@skyux/icon/testing';
9
9
 
10
10
  /**
11
11
  * A set of criteria that can be used to filter a list of SkyCharacterCounterIndicatorHarness instances.
12
+ *
13
+ * @deprecated Use `SkyInputBoxHarnessFilters` with an input box that sets the
14
+ * `characterLimit` input instead.
12
15
  */
13
16
  interface SkyCharacterCounterIndicatorHarnessFilters extends SkyHarnessFilters {
14
17
  }
15
18
 
16
19
  /**
17
20
  * Harness for interacting with a character counter indicator component in tests.
21
+ *
22
+ * @deprecated Use `SkyInputBoxHarness` with an input box that sets the
23
+ * `characterLimit` input instead.
18
24
  */
19
25
  declare class SkyCharacterCounterIndicatorHarness extends SkyComponentHarness {
20
26
  #private;
@@ -100,8 +106,28 @@ declare class SkyInputBoxHarness extends SkyQueryableComponentHarness {
100
106
  /**
101
107
  * Gets the character counter indicator for the input box or throws an error if
102
108
  * a character limit is not specified.
109
+ *
110
+ * @deprecated Use `getCharacterCount()`, `getCharacterLimit()`, and
111
+ * `isOverCharacterLimit()` instead. Those methods require the `characterLimit`
112
+ * input, so an input box that projects a `sky-character-counter-indicator` component
113
+ * must migrate to that input first.
103
114
  */
104
115
  getCharacterCounter(): Promise<SkyCharacterCounterIndicatorHarness>;
116
+ /**
117
+ * Gets the current character count, or throws an error if the input box does
118
+ * not set the `characterLimit` input.
119
+ */
120
+ getCharacterCount(): Promise<number>;
121
+ /**
122
+ * Gets the character limit, or throws an error if the input box does not set
123
+ * the `characterLimit` input.
124
+ */
125
+ getCharacterLimit(): Promise<number>;
126
+ /**
127
+ * Whether the character count has exceeded the character limit. Throws an
128
+ * error if the input box does not set the `characterLimit` input.
129
+ */
130
+ isOverCharacterLimit(): Promise<boolean>;
105
131
  /**
106
132
  * Gets a list of status indicator harnesses for errors not automatically
107
133
  * handled by input box.
@@ -1,22 +1,22 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ChangeDetectorRef, PipeTransform, AfterViewInit, TemplateRef, EventEmitter, ElementRef, AfterContentInit, OnInit, OnDestroy, QueryList, DoCheck, KeyValueDiffers, AfterContentChecked, RendererFactory2, NgZone, InjectionToken } from '@angular/core';
2
+ import { PipeTransform, AfterViewInit, TemplateRef, EventEmitter, ElementRef, OnInit, OnDestroy, DoCheck, AfterContentChecked, AfterContentInit, QueryList, InjectionToken } from '@angular/core';
3
3
  import * as i4$1 from '@angular/forms';
4
4
  import { Validator, AbstractControl, ValidationErrors, ControlValueAccessor, FormGroup, NgControl, FormControlDirective, FormControlName, NgModel, AbstractControlDirective } from '@angular/forms';
5
5
  import * as i4 from '@angular/common';
6
6
  import * as i1 from '@skyux/i18n';
7
- import { SkyLibResourcesService } from '@skyux/i18n';
8
7
  import { Observable, ReplaySubject, Subject } from 'rxjs';
9
8
  import * as i1$1 from '@skyux/theme';
10
- import { SkyThemeService } from '@skyux/theme';
11
9
  import * as i10 from '@skyux/help-inline';
12
10
  import * as i11 from '@skyux/icon';
13
11
  import * as i12 from '@skyux/core';
14
- import { SkyCoreAdapterService, SkyMediaBreakpoints, SkyMutationObserverService, SkyIdService } from '@skyux/core';
15
12
  import { NumberInput, BooleanInput } from '@angular/cdk/coercion';
16
13
 
14
+ /**
15
+ * @deprecated Use [input box](https://developer.blackbaud.com/skyux/components/input-box)
16
+ * with its `characterLimit` input instead.
17
+ */
17
18
  declare class SkyCharacterCounterIndicatorComponent {
18
19
  #private;
19
- constructor(changeDetector: ChangeDetectorRef);
20
20
  get characterCount(): number;
21
21
  set characterCount(count: number);
22
22
  get characterCountLimit(): number;
@@ -30,6 +30,8 @@ declare class SkyCharacterCounterIndicatorComponent {
30
30
  * an `input` or `textarea` element. If users enter more characters than allowed, then the
31
31
  * input field is invalid and the component displays an error indicator.
32
32
  * @required
33
+ * @deprecated Use [input box](https://developer.blackbaud.com/skyux/components/input-box)
34
+ * with its `characterLimit` input instead.
33
35
  */
34
36
  declare class SkyCharacterCounterInputDirective implements Validator {
35
37
  #private;
@@ -52,6 +54,10 @@ declare class SkyCharacterCounterInputDirective implements Validator {
52
54
  static ɵdir: i0.ɵɵDirectiveDeclaration<SkyCharacterCounterInputDirective, "[skyCharacterCounter]", never, { "skyCharacterCounterIndicator": { "alias": "skyCharacterCounterIndicator"; "required": false; }; "skyCharacterCounterLimit": { "alias": "skyCharacterCounterLimit"; "required": false; }; }, {}, never, never, false, never>;
53
55
  }
54
56
 
57
+ /**
58
+ * @deprecated Use [input box](https://developer.blackbaud.com/skyux/components/input-box)
59
+ * with its `characterLimit` input instead.
60
+ */
55
61
  declare class SkyCharacterCounterScreenReaderPipe implements PipeTransform {
56
62
  #private;
57
63
  transform(characterCount: number | undefined, characterCountLimit: number | undefined): string;
@@ -68,6 +74,10 @@ declare class SkyFormsResourcesModule {
68
74
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyFormsResourcesModule>;
69
75
  }
70
76
 
77
+ /**
78
+ * @deprecated Use [input box](https://developer.blackbaud.com/skyux/components/input-box)
79
+ * with its `characterLimit` input instead.
80
+ */
71
81
  declare class SkyCharacterCounterModule {
72
82
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyCharacterCounterModule, never>;
73
83
  static ɵmod: i0.ɵɵNgModuleDeclaration<SkyCharacterCounterModule, [typeof SkyCharacterCounterInputDirective, typeof SkyCharacterCounterIndicatorComponent], [typeof i4.CommonModule, typeof i4$1.FormsModule, typeof i4$1.ReactiveFormsModule, typeof SkyCharacterCounterScreenReaderPipe, typeof SkyFormsResourcesModule], [typeof SkyCharacterCounterInputDirective, typeof SkyCharacterCounterIndicatorComponent]>;
@@ -547,59 +557,15 @@ interface SkyFileAttachmentClick {
547
557
  file: SkyFileItem;
548
558
  }
549
559
 
550
- /**
551
- * @internal
552
- */
553
- declare class SkyFileItemService {
554
- isFile(fileItem: SkyFileItem): boolean;
555
- isImage(fileItem: SkyFileItem): boolean;
556
- getFileExtensionUpper(fileItem: SkyFileItem): string;
557
- getFileTypeUpper(fileItem: SkyFileItem): string;
558
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileItemService, never>;
559
- static ɵprov: i0.ɵɵInjectableDeclaration<SkyFileItemService>;
560
- }
561
-
562
560
  /**
563
561
  * Custom validation run on each file uploaded. The string returned is used as the error message in multi-file attachment.
564
562
  */
565
563
  type SkyFileValidateFn = (file: SkyFileItem) => string | undefined;
566
564
 
567
- /**
568
- * Displays a label above the file attachment element. To display a help button
569
- * beside the label, include a help button element, such as `sky-help-inline`,
570
- * in the `sky-file-attachment-label` element and a `sky-control-help` CSS class
571
- * on that help button element.
572
- * @deprecated Use the `labelText` input on the single file attachment component
573
- * instead.
574
- */
575
- declare class SkyFileAttachmentLabelComponent {
576
- labelContentId: {
577
- id: string;
578
- } | undefined;
579
- constructor();
580
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileAttachmentLabelComponent, never>;
581
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileAttachmentLabelComponent, "sky-file-attachment-label", never, {}, {}, never, ["*", ".sky-control-help"], true, never>;
582
- }
583
-
584
- /**
585
- * @internal
586
- */
587
- declare class SkyFileAttachmentService {
588
- #private;
589
- checkFiles(files: SkyFileItem[], minFileSize: number, maxFileSize: number, acceptedTypes?: string, validateFn?: SkyFileValidateFn): SkyFileItem[];
590
- /**
591
- * Returns `true` if a directory is found in the provided `files` parameter.
592
- */
593
- hasDirectory(files: FileList): boolean;
594
- fileTypeRejected(fileType: string, acceptedTypes?: string): boolean;
595
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileAttachmentService, never>;
596
- static ɵprov: i0.ɵɵInjectableDeclaration<SkyFileAttachmentService>;
597
- }
598
-
599
565
  /**
600
566
  * Provides an element to attach a single local file.
601
567
  */
602
- declare class SkyFileAttachmentComponent implements AfterViewInit, AfterContentInit, ControlValueAccessor, OnInit, OnDestroy {
568
+ declare class SkyFileAttachmentComponent implements AfterViewInit, ControlValueAccessor, OnInit, OnDestroy {
603
569
  #private;
604
570
  /**
605
571
  * The comma-delimited string literal of MIME types that users can attach.
@@ -680,7 +646,6 @@ declare class SkyFileAttachmentComponent implements AfterViewInit, AfterContentI
680
646
  */
681
647
  fileClick: EventEmitter<SkyFileAttachmentClick>;
682
648
  acceptedOver: boolean;
683
- hasLabelComponent: boolean;
684
649
  rejectedOver: boolean;
685
650
  /**
686
651
  * Whether the input is required for form validation.
@@ -697,19 +662,17 @@ declare class SkyFileAttachmentComponent implements AfterViewInit, AfterContentI
697
662
  showFileAttachmentButton: boolean;
698
663
  truncatedFileName: string;
699
664
  inputEl: ElementRef | undefined;
700
- labelComponents: QueryList<SkyFileAttachmentLabelComponent> | undefined;
701
665
  isImage: boolean;
702
666
  protected get isRequired(): boolean;
703
- protected ngControl: NgControl | undefined;
667
+ protected readonly ngControl: NgControl | null;
704
668
  protected errorId: string;
705
669
  protected labelId: string;
706
670
  protected fileErrorName: SkyFileItemErrorType | undefined;
707
671
  protected fileErrorParam: string | undefined;
708
672
  protected fileErrorValidation: ValidationErrors | null | undefined;
709
- constructor(changeDetector: ChangeDetectorRef, fileAttachmentService: SkyFileAttachmentService, fileItemService: SkyFileItemService, ngControl?: NgControl, themeSvc?: SkyThemeService);
673
+ constructor();
710
674
  ngOnInit(): void;
711
675
  ngAfterViewInit(): void;
712
- ngAfterContentInit(): void;
713
676
  onButtonBlur(): void;
714
677
  onFileCancel(): void;
715
678
  onDropClicked(): void;
@@ -730,8 +693,8 @@ declare class SkyFileAttachmentComponent implements AfterViewInit, AfterContentI
730
693
  */
731
694
  setDisabledState(isDisabled: boolean): void;
732
695
  emitClick(): void;
733
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileAttachmentComponent, [null, null, null, { optional: true; self: true; }, { optional: true; }]>;
734
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileAttachmentComponent, "sky-file-attachment", never, { "acceptedTypes": { "alias": "acceptedTypes"; "required": false; }; "acceptedTypesErrorMessage": { "alias": "acceptedTypesErrorMessage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "helpKey": { "alias": "helpKey"; "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; }; "stacked": { "alias": "stacked"; "required": false; }; "validateFn": { "alias": "validateFn"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "fileChange": "fileChange"; "fileClick": "fileClick"; }, ["labelComponents"], ["sky-file-attachment-label", "sky-form-error"], true, [{ directive: typeof i1$1.SkyThemeComponentClassDirective; inputs: {}; outputs: {}; }]>;
696
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileAttachmentComponent, never>;
697
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileAttachmentComponent, "sky-file-attachment", never, { "acceptedTypes": { "alias": "acceptedTypes"; "required": false; }; "acceptedTypesErrorMessage": { "alias": "acceptedTypesErrorMessage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "helpKey": { "alias": "helpKey"; "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; }; "stacked": { "alias": "stacked"; "required": false; }; "validateFn": { "alias": "validateFn"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "fileChange": "fileChange"; "fileClick": "fileClick"; }, never, ["sky-form-error"], true, [{ directive: typeof i1$1.SkyThemeComponentClassDirective; inputs: {}; outputs: {}; }]>;
735
698
  static ngAcceptInputType_disabled: unknown;
736
699
  static ngAcceptInputType_labelHidden: unknown;
737
700
  static ngAcceptInputType_stacked: unknown;
@@ -740,7 +703,7 @@ declare class SkyFileAttachmentComponent implements AfterViewInit, AfterContentI
740
703
 
741
704
  declare class SkyFileAttachmentModule {
742
705
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileAttachmentModule, never>;
743
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyFileAttachmentModule, never, [typeof SkyFileAttachmentComponent, typeof SkyFileAttachmentLabelComponent], [typeof SkyFileAttachmentComponent, typeof SkyFileAttachmentLabelComponent, typeof SkyFormErrorModule]>;
706
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyFileAttachmentModule, never, [typeof SkyFileAttachmentComponent], [typeof SkyFileAttachmentComponent, typeof SkyFormErrorModule]>;
744
707
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyFileAttachmentModule>;
745
708
  }
746
709
 
@@ -940,7 +903,6 @@ declare class SkyFileItemComponent implements DoCheck {
940
903
  icon: string | undefined;
941
904
  isFile: boolean;
942
905
  isImage: boolean;
943
- constructor(differs: KeyValueDiffers, fileItemService: SkyFileItemService);
944
906
  ngDoCheck(): void;
945
907
  itemDelete(): void;
946
908
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileItemComponent, never>;
@@ -967,7 +929,6 @@ declare class SkyFileAttachmentsModule {
967
929
  */
968
930
  declare class SkyFileSizePipe implements PipeTransform {
969
931
  #private;
970
- constructor(resourcesService: SkyLibResourcesService);
971
932
  transform(input?: number | string | null): string;
972
933
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileSizePipe, never>;
973
934
  static ɵpipe: i0.ɵɵPipeDeclaration<SkyFileSizePipe, "skyFileSize", true>;
@@ -1014,13 +975,13 @@ declare class SkyInputBoxComponent implements OnInit, AfterContentChecked, OnDes
1014
975
  */
1015
976
  labelText: string | undefined;
1016
977
  /**
1017
- * The maximum number of characters to allow in the input box. This property places a
1018
- * [SKY UX character count](https://developer.blackbaud.com/skyux/components/character-count)
1019
- * on the input element with the appropriate validator, so don't use it with inputs where
1020
- * users are unlikely to exceed character limits. Instead, use
1021
- * [Angular's max length validator](https://angular.io/api/forms/MaxLengthValidator) and a
1022
- * `maxLength` attribute on the input element to handle maximum length validation.
1023
- *
978
+ * The character limit for the input box. If users exceed the limit, the input box's form control
979
+ * becomes invalid and the property adds [Validators.maxLength](https://angular.dev/api/forms/Validators).
980
+ * The validation error message and screen reader announcement use `labelText`. This property also
981
+ * displays a character count indicator in the top right with the number of characters that users enter,
982
+ * the character limit, and a danger icon if users exceed the limit. If users are unlikely to exceed a
983
+ * character limit, use `Validators.maxLength` directly instead with a `maxLength` attribute on the
984
+ * input element.
1024
985
  */
1025
986
  set characterLimit(value: NumberInput);
1026
987
  get characterLimit(): number | undefined;
@@ -1139,6 +1100,16 @@ declare class SkyInputBoxHostService implements OnDestroy {
1139
1100
  static ɵprov: i0.ɵɵInjectableDeclaration<SkyInputBoxHostService>;
1140
1101
  }
1141
1102
 
1103
+ declare class SkyInputBoxCharacterLimit {
1104
+ readonly characterCount: i0.InputSignal<number>;
1105
+ readonly characterLimit: i0.InputSignal<number>;
1106
+ protected readonly ratio: i0.Signal<string>;
1107
+ protected readonly limitReached: i0.Signal<boolean>;
1108
+ protected readonly announcedCount: i0.WritableSignal<number>;
1109
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyInputBoxCharacterLimit, never>;
1110
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyInputBoxCharacterLimit, "sky-input-box-character-limit", never, { "characterCount": { "alias": "characterCount"; "required": true; "isSignal": true; }; "characterLimit": { "alias": "characterLimit"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
1111
+ }
1112
+
1142
1113
  /**
1143
1114
  * @internal
1144
1115
  */
@@ -1161,7 +1132,7 @@ declare class SkyInputBoxHintTextPipe implements PipeTransform {
1161
1132
 
1162
1133
  declare class SkyInputBoxModule {
1163
1134
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyInputBoxModule, never>;
1164
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyInputBoxModule, [typeof SkyInputBoxComponent], [typeof i4.CommonModule, typeof SkyCharacterCounterModule, typeof SkyFormErrorsModule, typeof SkyFormErrorModule, typeof SkyFormsResourcesModule, typeof i10.SkyHelpInlineModule, typeof SkyInputBoxControlDirective, typeof SkyInputBoxHintTextPipe, typeof i1$1.SkyThemeModule], [typeof SkyInputBoxHintTextPipe, typeof SkyInputBoxComponent, typeof SkyInputBoxControlDirective, typeof SkyFormErrorModule]>;
1135
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyInputBoxModule, [typeof SkyInputBoxComponent], [typeof i4.CommonModule, typeof SkyCharacterCounterModule, typeof SkyFormErrorsModule, typeof SkyFormErrorModule, typeof SkyFormsResourcesModule, typeof i10.SkyHelpInlineModule, typeof SkyInputBoxCharacterLimit, typeof SkyInputBoxControlDirective, typeof SkyInputBoxHintTextPipe, typeof i1$1.SkyThemeModule], [typeof SkyInputBoxHintTextPipe, typeof SkyInputBoxComponent, typeof SkyInputBoxControlDirective, typeof SkyFormErrorModule]>;
1165
1136
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyInputBoxModule>;
1166
1137
  }
1167
1138
 
@@ -1336,29 +1307,6 @@ declare class SkyRadioComponent implements OnDestroy, ControlValueAccessor {
1336
1307
  static ngAcceptInputType_labelHidden: unknown;
1337
1308
  }
1338
1309
 
1339
- /**
1340
- * Tracks the element IDs for all radios within a radio group.
1341
- * @internal
1342
- */
1343
- declare class SkyRadioGroupIdService {
1344
- #private;
1345
- get radioIds(): Observable<string[]>;
1346
- constructor();
1347
- /**
1348
- * Associates a radio input's ID with its parent radio group.
1349
- * @param {string} id A unique ID for the radio component.
1350
- * @param {string} inputElementId The ID applied to the radio input element.
1351
- */
1352
- register(id: string, inputElementId: string): void;
1353
- /**
1354
- * Disassociates a radio input's ID with its parent radio group.
1355
- * @param {string} id The ID used to register the radio component.
1356
- */
1357
- unregister(id: string): void;
1358
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyRadioGroupIdService, never>;
1359
- static ɵprov: i0.ɵɵInjectableDeclaration<SkyRadioGroupIdService>;
1360
- }
1361
-
1362
1310
  type SkyRadioGroupHeadingLevel = 3 | 4 | 5;
1363
1311
 
1364
1312
  type SkyRadioGroupHeadingStyle = 3 | 4 | 5;
@@ -1490,8 +1438,8 @@ declare class SkyRadioGroupComponent implements AfterContentInit, OnDestroy {
1490
1438
  protected get isRequired(): boolean;
1491
1439
  protected headingClass: string;
1492
1440
  protected errorId: string;
1493
- protected ngControl: NgControl | undefined;
1494
- constructor(changeDetector: ChangeDetectorRef, radioGroupIdSvc: SkyRadioGroupIdService, ngControl: NgControl);
1441
+ protected ngControl: NgControl | null;
1442
+ constructor();
1495
1443
  ngAfterContentInit(): void;
1496
1444
  watchForSelections(): void;
1497
1445
  ngOnDestroy(): void;
@@ -1503,7 +1451,7 @@ declare class SkyRadioGroupComponent implements AfterContentInit, OnDestroy {
1503
1451
  setDisabledState(isDisabled: boolean): void;
1504
1452
  registerOnChange(fn: (value: any) => void): void;
1505
1453
  registerOnTouched(fn: any): void;
1506
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyRadioGroupComponent, [null, null, { optional: true; self: true; }]>;
1454
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyRadioGroupComponent, never>;
1507
1455
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyRadioGroupComponent, "sky-radio-group", never, { "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "headingLevel": { "alias": "headingLevel"; "required": false; }; "headingStyle": { "alias": "headingStyle"; "required": false; }; "name": { "alias": "name"; "required": false; }; "required": { "alias": "required"; "required": false; }; "stacked": { "alias": "stacked"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "headingText": { "alias": "headingText"; "required": false; }; "headingHidden": { "alias": "headingHidden"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "helpKey": { "alias": "helpKey"; "required": false; }; }, {}, ["radios"], ["*", "sky-form-error"], false, [{ directive: typeof i1$1.SkyThemeComponentClassDirective; inputs: {}; outputs: {}; }]>;
1508
1456
  static ngAcceptInputType_disabled: unknown;
1509
1457
  static ngAcceptInputType_headingLevel: unknown;
@@ -1549,50 +1497,6 @@ declare class SkyRequiredStateDirective {
1549
1497
  static ngAcceptInputType_required: unknown;
1550
1498
  }
1551
1499
 
1552
- /**
1553
- * @internal
1554
- */
1555
- declare class SkySelectionBoxAdapterService {
1556
- #private;
1557
- constructor(coreAdapterService: SkyCoreAdapterService, rendererFactory: RendererFactory2);
1558
- /**
1559
- * Sets focus on the specified element.
1560
- */
1561
- focus(el: ElementRef): void;
1562
- /**
1563
- * Returns a child element with the `.sky-switch` class.
1564
- * Useful for getting SKY UX-themed radio buttons or checkboxes.
1565
- */
1566
- getControl(el: ElementRef): HTMLElement;
1567
- /**
1568
- * Returns a breakpoint based on the width.
1569
- * @param width Width of the element in pixels.
1570
- */
1571
- getBreakpointForWidth(width: number | undefined): SkyMediaBreakpoints;
1572
- /**
1573
- * Returns the width of the `parentNode` of the provided `element`.
1574
- */
1575
- getParentWidth(element: ElementRef): number | undefined;
1576
- /**
1577
- * Returns `true` if the `childEl` is a descendant of the `parentEl`.
1578
- */
1579
- isDescendant(parentEl: ElementRef, childEl: HTMLElement): boolean;
1580
- /**
1581
- * Sets the `tabIndex` of all focusable children of the `element` to the provided `tabIndex`.
1582
- */
1583
- setChildrenTabIndex(element: ElementRef, tabIndex: number): void;
1584
- /**
1585
- * Adds a responsive CSS class on the provided element based on its current width.
1586
- */
1587
- setResponsiveClass(element: ElementRef, breakpoint: SkyMediaBreakpoints): void;
1588
- /**
1589
- * Sets the `tabIndex` of the `element` to the provided `tabIndex`.
1590
- */
1591
- setTabIndex(element: ElementRef, tabIndex: number): void;
1592
- static ɵfac: i0.ɵɵFactoryDeclaration<SkySelectionBoxAdapterService, never>;
1593
- static ɵprov: i0.ɵɵInjectableDeclaration<SkySelectionBoxAdapterService>;
1594
- }
1595
-
1596
1500
  /**
1597
1501
  * Creates a button to present users with a choice or question before proceeding with a one-time process.
1598
1502
  */
@@ -1611,7 +1515,6 @@ declare class SkySelectionBoxComponent implements OnDestroy {
1611
1515
  controlEl: ElementRef | undefined;
1612
1516
  set selectionBoxEl(value: ElementRef | undefined);
1613
1517
  get selectionBoxEl(): ElementRef | undefined;
1614
- constructor(changeDetector: ChangeDetectorRef, selectionBoxAdapterService: SkySelectionBoxAdapterService);
1615
1518
  ngOnDestroy(): void;
1616
1519
  onKeydown(event: KeyboardEvent): void;
1617
1520
  static ɵfac: i0.ɵɵFactoryDeclaration<SkySelectionBoxComponent, never>;
@@ -1638,11 +1541,10 @@ declare class SkySelectionBoxGridComponent implements OnDestroy, OnInit {
1638
1541
  selectionBoxes: QueryList<SkySelectionBoxComponent> | undefined;
1639
1542
  set containerElementRef(value: ElementRef | undefined);
1640
1543
  get containerElementRef(): ElementRef | undefined;
1641
- constructor(coreAdapterService: SkyCoreAdapterService, selectionBoxAdapter: SkySelectionBoxAdapterService, hostElRef: ElementRef, mutationObserverSvc: SkyMutationObserverService, ngZone: NgZone, themeSvc?: SkyThemeService);
1642
1544
  ngOnInit(): void;
1643
1545
  ngOnDestroy(): void;
1644
1546
  onWindowResize(): void;
1645
- static ɵfac: i0.ɵɵFactoryDeclaration<SkySelectionBoxGridComponent, [null, null, null, null, null, { optional: true; }]>;
1547
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkySelectionBoxGridComponent, never>;
1646
1548
  static ɵcmp: i0.ɵɵComponentDeclaration<SkySelectionBoxGridComponent, "sky-selection-box-grid", never, { "alignItems": { "alias": "alignItems"; "required": false; }; }, {}, ["selectionBoxes"], ["sky-selection-box"], false, never>;
1647
1549
  }
1648
1550
 
@@ -1683,18 +1585,6 @@ declare const enum SkySelectionBoxGridAlignItems {
1683
1585
  Left = "left"
1684
1586
  }
1685
1587
 
1686
- /**
1687
- * Specifies the label to display beside the toggle switch. To display a help button beside the label, include a help
1688
- * button element, such as `sky-help-inline`, in the `sky-toggle-switch` element and a `sky-control-help` CSS class on
1689
- * that help button element.
1690
- * @deprecated Use the `labelText` input on the toggle switch component instead.
1691
- */
1692
- declare class SkyToggleSwitchLabelComponent {
1693
- constructor();
1694
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyToggleSwitchLabelComponent, never>;
1695
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyToggleSwitchLabelComponent, "sky-toggle-switch-label", never, {}, {}, never, ["*"], false, never>;
1696
- }
1697
-
1698
1588
  /**
1699
1589
  * Indicates whether the toggle switch is selected.
1700
1590
  */
@@ -1702,13 +1592,13 @@ interface SkyToggleSwitchChange {
1702
1592
  checked: boolean;
1703
1593
  }
1704
1594
 
1705
- declare class SkyToggleSwitchComponent implements AfterContentInit, OnDestroy, ControlValueAccessor, Validator {
1595
+ declare class SkyToggleSwitchComponent implements AfterContentInit, ControlValueAccessor, Validator {
1706
1596
  #private;
1707
1597
  /**
1708
1598
  * The ARIA label for the toggle switch. This sets the `aria-label`
1709
1599
  * attribute to provide a text equivalent for screen readers [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
1710
1600
  * 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.
1711
- * When the `sky-toggle-switch-label` component displays a visible label, this property is only necessary if that label requires extra context.
1601
+ * This property only applies when `labelText` is not set, since `labelText` takes precedence when both inputs are provided.
1712
1602
  * For more information about the `aria-label` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-label).
1713
1603
  * @deprecated Use the `labelText` input instead.
1714
1604
  */
@@ -1759,13 +1649,10 @@ declare class SkyToggleSwitchComponent implements AfterContentInit, OnDestroy, C
1759
1649
  * Fires when the checked state of a toggle switch changes.
1760
1650
  */
1761
1651
  toggleChange: EventEmitter<SkyToggleSwitchChange>;
1762
- hasLabelComponent: boolean;
1763
1652
  labelId: string;
1764
1653
  enableIndicatorAnimation: boolean;
1765
- labelComponents: QueryList<SkyToggleSwitchLabelComponent> | undefined;
1766
- constructor(changeDetector: ChangeDetectorRef, idService: SkyIdService);
1654
+ constructor();
1767
1655
  ngAfterContentInit(): void;
1768
- ngOnDestroy(): void;
1769
1656
  writeValue(value: boolean): void;
1770
1657
  validate(control: AbstractControl): ValidationErrors | null;
1771
1658
  registerOnChange(fn: (value: any) => void): void;
@@ -1774,13 +1661,13 @@ declare class SkyToggleSwitchComponent implements AfterContentInit, OnDestroy, C
1774
1661
  onButtonClick(event: any): void;
1775
1662
  onButtonBlur(): void;
1776
1663
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyToggleSwitchComponent, never>;
1777
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyToggleSwitchComponent, "sky-toggle-switch", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; "helpKey": { "alias": "helpKey"; "required": false; }; }, { "toggleChange": "toggleChange"; }, ["labelComponents"], ["sky-toggle-switch-label", ".sky-control-help"], false, never>;
1664
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyToggleSwitchComponent, "sky-toggle-switch", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; "helpKey": { "alias": "helpKey"; "required": false; }; }, { "toggleChange": "toggleChange"; }, never, [".sky-control-help"], false, never>;
1778
1665
  static ngAcceptInputType_labelHidden: unknown;
1779
1666
  }
1780
1667
 
1781
1668
  declare class SkyToggleSwitchModule {
1782
1669
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyToggleSwitchModule, never>;
1783
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyToggleSwitchModule, [typeof SkyToggleSwitchLabelComponent, typeof SkyToggleSwitchComponent], [typeof i4.CommonModule, typeof i4$1.FormsModule, typeof i10.SkyHelpInlineModule, typeof i12.SkyIdModule, typeof i12.SkyTrimModule], [typeof SkyToggleSwitchLabelComponent, typeof SkyToggleSwitchComponent]>;
1670
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyToggleSwitchModule, [typeof SkyToggleSwitchComponent], [typeof i4.CommonModule, typeof i4$1.FormsModule, typeof i10.SkyHelpInlineModule, typeof i12.SkyIdModule, typeof i12.SkyTrimModule], [typeof SkyToggleSwitchComponent]>;
1784
1671
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyToggleSwitchModule>;
1785
1672
  }
1786
1673
 
@@ -1789,5 +1676,5 @@ declare class SkyToggleSwitchModule {
1789
1676
  */
1790
1677
  declare const SKY_FORM_ERRORS_ENABLED: InjectionToken<boolean>;
1791
1678
 
1792
- export { SKY_FORM_ERRORS_ENABLED, SkyCharacterCounterModule, SkyCheckboxModule, SkyFieldGroupModule, SkyFileAttachmentModule, SkyFileAttachmentsModule, SkyFileDropModule, SkyFileSizePipe, SkyFormErrorModule, SkyFormErrorsModule, SkyInputBoxHostService, SkyInputBoxModule, SkyRadioModule, SkyRequiredStateDirective, SkySelectionBoxGridAlignItems, SkySelectionBoxModule, SkyToggleSwitchModule, SkyCharacterCounterIndicatorComponent as λ1, SkyInputBoxComponent as λ10, SkyRadioGroupComponent as λ11, SkyRadioLabelComponent as λ12, SkyRadioComponent as λ13, SkySelectionBoxDescriptionComponent as λ14, SkySelectionBoxGridComponent as λ15, SkySelectionBoxHeaderComponent as λ16, SkySelectionBoxComponent as λ17, SkyToggleSwitchLabelComponent as λ18, SkyToggleSwitchComponent as λ19, SkyCharacterCounterInputDirective as λ2, SkyInputBoxControlDirective as λ20, SkyFormErrorsComponent as λ21, SkyFormErrorComponent as λ22, SkyCharacterCounterScreenReaderPipe as λ23, SkyCheckboxGroupComponent as λ24, SkyFieldGroupComponent as λ25, SkyInputBoxHintTextPipe as λ26, SkyCheckboxComponent as λ3, SkyCheckboxLabelComponent as λ4, SkyFileAttachmentLabelComponent as λ6, SkyFileAttachmentComponent as λ7, SkyFileDropComponent as λ8, SkyFileItemComponent as λ9 };
1679
+ export { SKY_FORM_ERRORS_ENABLED, SkyCharacterCounterModule, SkyCheckboxModule, SkyFieldGroupModule, SkyFileAttachmentModule, SkyFileAttachmentsModule, SkyFileDropModule, SkyFileSizePipe, SkyFormErrorModule, SkyFormErrorsModule, SkyInputBoxHostService, SkyInputBoxModule, SkyRadioModule, SkyRequiredStateDirective, SkySelectionBoxGridAlignItems, SkySelectionBoxModule, SkyToggleSwitchModule, SkyCharacterCounterIndicatorComponent as λ1, SkyInputBoxComponent as λ10, SkyRadioGroupComponent as λ11, SkyRadioLabelComponent as λ12, SkyRadioComponent as λ13, SkySelectionBoxDescriptionComponent as λ14, SkySelectionBoxGridComponent as λ15, SkySelectionBoxHeaderComponent as λ16, SkySelectionBoxComponent as λ17, SkyToggleSwitchComponent as λ19, SkyCharacterCounterInputDirective as λ2, SkyInputBoxControlDirective as λ20, SkyFormErrorsComponent as λ21, SkyFormErrorComponent as λ22, SkyCharacterCounterScreenReaderPipe as λ23, SkyCheckboxGroupComponent as λ24, SkyFieldGroupComponent as λ25, SkyInputBoxHintTextPipe as λ26, SkyCheckboxComponent as λ3, SkyCheckboxLabelComponent as λ4, SkyFileAttachmentComponent as λ7, SkyFileDropComponent as λ8, SkyFileItemComponent as λ9 };
1793
1680
  export type { SkyCheckboxChange, SkyCheckboxGroupHeadingLevel, SkyCheckboxGroupHeadingStyle, SkyFieldGroupHeadingLevel, SkyFieldGroupHeadingStyle, SkyFileAttachmentChange, SkyFileAttachmentClick, SkyFileDropChange, SkyFileItem, SkyFileItemErrorType, SkyFileLink, SkyFileValidateFn, SkyInputBoxPopulateArgs, SkyRadioChange, SkyRadioGroupHeadingLevel, SkyRadioGroupHeadingStyle, SkyRadioType, SkySelectionBoxGridAlignItemsType, SkyToggleSwitchChange };