@skyux/forms 11.0.0-alpha.0 → 11.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.
Files changed (107) hide show
  1. package/documentation.json +4498 -4939
  2. package/esm2022/index.mjs +14 -11
  3. package/esm2022/lib/modules/character-counter/character-counter-indicator.component.mjs +3 -3
  4. package/esm2022/lib/modules/character-counter/character-counter-screen-reader.pipe.mjs +3 -3
  5. package/esm2022/lib/modules/character-counter/character-counter.directive.mjs +3 -3
  6. package/esm2022/lib/modules/character-counter/character-counter.module.mjs +4 -4
  7. package/esm2022/lib/modules/checkbox/checkbox-group.component.mjs +18 -15
  8. package/esm2022/lib/modules/checkbox/checkbox-label-text-label.component.mjs +4 -4
  9. package/esm2022/lib/modules/checkbox/checkbox-label.component.mjs +3 -3
  10. package/esm2022/lib/modules/checkbox/checkbox.component.mjs +27 -34
  11. package/esm2022/lib/modules/checkbox/checkbox.module.mjs +4 -4
  12. package/esm2022/lib/modules/field-group/field-group.component.mjs +9 -6
  13. package/esm2022/lib/modules/field-group/field-group.module.mjs +4 -4
  14. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment-change.mjs +2 -0
  15. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment-click.mjs +2 -0
  16. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment-join-ids.pipe.mjs +22 -0
  17. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment-label.component.mjs +32 -0
  18. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment.component.mjs +485 -0
  19. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment.module.mjs +24 -0
  20. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment.service.mjs +103 -0
  21. package/esm2022/lib/modules/file-attachment/file-attachments.module.mjs +12 -75
  22. package/esm2022/lib/modules/file-attachment/file-drop/file-drop-change.mjs +2 -0
  23. package/esm2022/lib/modules/file-attachment/file-drop/file-drop.component.mjs +336 -0
  24. package/esm2022/lib/modules/file-attachment/file-drop/file-drop.module.mjs +18 -0
  25. package/esm2022/lib/modules/file-attachment/file-drop/file-item.component.mjs +163 -0
  26. package/esm2022/lib/modules/file-attachment/file-drop/file-link.mjs +2 -0
  27. package/esm2022/lib/modules/file-attachment/shared/file-item-error-type.mjs +2 -0
  28. package/esm2022/lib/modules/file-attachment/shared/file-item.mjs +2 -0
  29. package/esm2022/lib/modules/file-attachment/shared/file-item.service.mjs +71 -0
  30. package/esm2022/lib/modules/file-attachment/shared/file-size.pipe.mjs +61 -0
  31. package/esm2022/lib/modules/file-attachment/shared/file-validate-function.mjs +2 -0
  32. package/esm2022/lib/modules/form-error/form-error.component.mjs +3 -3
  33. package/esm2022/lib/modules/form-error/form-error.module.mjs +4 -4
  34. package/esm2022/lib/modules/form-error/form-errors.component.mjs +5 -5
  35. package/esm2022/lib/modules/form-error/form-errors.module.mjs +4 -4
  36. package/esm2022/lib/modules/input-box/input-box-adapter.service.mjs +3 -3
  37. package/esm2022/lib/modules/input-box/input-box-control.directive.mjs +3 -3
  38. package/esm2022/lib/modules/input-box/input-box-hint-text.pipe.mjs +3 -3
  39. package/esm2022/lib/modules/input-box/input-box-host.service.mjs +7 -4
  40. package/esm2022/lib/modules/input-box/input-box.component.mjs +22 -26
  41. package/esm2022/lib/modules/input-box/input-box.module.mjs +4 -4
  42. package/esm2022/lib/modules/radio/radio-group-id.service.mjs +3 -3
  43. package/esm2022/lib/modules/radio/radio-group.component.mjs +41 -48
  44. package/esm2022/lib/modules/radio/radio-label.component.mjs +3 -3
  45. package/esm2022/lib/modules/radio/radio.component.mjs +23 -30
  46. package/esm2022/lib/modules/radio/radio.module.mjs +4 -4
  47. package/esm2022/lib/modules/required-state/required-state.directive.mjs +3 -3
  48. package/esm2022/lib/modules/selection-box/selection-box-adapter.service.mjs +3 -3
  49. package/esm2022/lib/modules/selection-box/selection-box-description.component.mjs +3 -3
  50. package/esm2022/lib/modules/selection-box/selection-box-grid.component.mjs +4 -4
  51. package/esm2022/lib/modules/selection-box/selection-box-header.component.mjs +3 -3
  52. package/esm2022/lib/modules/selection-box/selection-box.component.mjs +3 -3
  53. package/esm2022/lib/modules/selection-box/selection-box.module.mjs +4 -4
  54. package/esm2022/lib/modules/shared/form-field-label-text-required.directive.mjs +37 -0
  55. package/esm2022/lib/modules/shared/form-field-label-text-required.service.mjs +9 -7
  56. package/esm2022/lib/modules/shared/sky-forms-resources.module.mjs +11 -13
  57. package/esm2022/lib/modules/toggle-switch/toggle-switch-label.component.mjs +3 -3
  58. package/esm2022/lib/modules/toggle-switch/toggle-switch.component.mjs +16 -23
  59. package/esm2022/lib/modules/toggle-switch/toggle-switch.module.mjs +4 -4
  60. package/esm2022/testing/checkbox/checkbox-harness.mjs +5 -4
  61. package/fesm2022/skyux-forms-testing.mjs +4 -3
  62. package/fesm2022/skyux-forms-testing.mjs.map +1 -1
  63. package/fesm2022/skyux-forms.mjs +506 -474
  64. package/fesm2022/skyux-forms.mjs.map +1 -1
  65. package/index.d.ts +21 -18
  66. package/lib/modules/checkbox/checkbox-group.component.d.ts +2 -2
  67. package/lib/modules/checkbox/checkbox.component.d.ts +6 -6
  68. package/lib/modules/file-attachment/{types → file-attachment}/file-attachment-change.d.ts +1 -1
  69. package/lib/modules/file-attachment/{types → file-attachment}/file-attachment-click.d.ts +1 -1
  70. package/lib/modules/file-attachment/file-attachment/file-attachment-join-ids.pipe.d.ts +11 -0
  71. package/lib/modules/file-attachment/{file-attachment-label.component.d.ts → file-attachment/file-attachment-label.component.d.ts} +7 -5
  72. package/lib/modules/file-attachment/{file-attachment.component.d.ts → file-attachment/file-attachment.component.d.ts} +24 -18
  73. package/lib/modules/file-attachment/file-attachment/file-attachment.module.d.ts +9 -0
  74. package/lib/modules/file-attachment/{file-attachment.service.d.ts → file-attachment/file-attachment.service.d.ts} +2 -2
  75. package/lib/modules/file-attachment/file-attachments.module.d.ts +6 -15
  76. package/lib/modules/file-attachment/{types → file-drop}/file-drop-change.d.ts +1 -1
  77. package/lib/modules/file-attachment/{file-drop.component.d.ts → file-drop/file-drop.component.d.ts} +12 -8
  78. package/lib/modules/file-attachment/file-drop/file-drop.module.d.ts +9 -0
  79. package/lib/modules/file-attachment/{file-item.component.d.ts → file-drop/file-item.component.d.ts} +3 -3
  80. package/lib/modules/file-attachment/{file-size.pipe.d.ts → shared/file-size.pipe.d.ts} +3 -4
  81. package/lib/modules/input-box/input-box-host.service.d.ts +1 -0
  82. package/lib/modules/input-box/input-box.component.d.ts +3 -3
  83. package/lib/modules/radio/radio-group.component.d.ts +11 -10
  84. package/lib/modules/radio/radio.component.d.ts +6 -6
  85. package/lib/modules/shared/form-field-label-text-required.directive.d.ts +14 -0
  86. package/lib/modules/shared/form-field-label-text-required.service.d.ts +2 -1
  87. package/lib/modules/toggle-switch/toggle-switch.component.d.ts +4 -5
  88. package/package.json +14 -14
  89. package/esm2022/lib/modules/file-attachment/file-attachment-label.component.mjs +0 -28
  90. package/esm2022/lib/modules/file-attachment/file-attachment.component.mjs +0 -478
  91. package/esm2022/lib/modules/file-attachment/file-attachment.service.mjs +0 -93
  92. package/esm2022/lib/modules/file-attachment/file-drop.component.mjs +0 -325
  93. package/esm2022/lib/modules/file-attachment/file-item-error-type.mjs +0 -2
  94. package/esm2022/lib/modules/file-attachment/file-item.component.mjs +0 -155
  95. package/esm2022/lib/modules/file-attachment/file-item.mjs +0 -2
  96. package/esm2022/lib/modules/file-attachment/file-item.service.mjs +0 -70
  97. package/esm2022/lib/modules/file-attachment/file-link.mjs +0 -2
  98. package/esm2022/lib/modules/file-attachment/file-size.pipe.mjs +0 -58
  99. package/esm2022/lib/modules/file-attachment/file-validate-function.mjs +0 -2
  100. package/esm2022/lib/modules/file-attachment/types/file-attachment-change.mjs +0 -2
  101. package/esm2022/lib/modules/file-attachment/types/file-attachment-click.mjs +0 -2
  102. package/esm2022/lib/modules/file-attachment/types/file-drop-change.mjs +0 -2
  103. /package/lib/modules/file-attachment/{file-link.d.ts → file-drop/file-link.d.ts} +0 -0
  104. /package/lib/modules/file-attachment/{file-item-error-type.d.ts → shared/file-item-error-type.d.ts} +0 -0
  105. /package/lib/modules/file-attachment/{file-item.d.ts → shared/file-item.d.ts} +0 -0
  106. /package/lib/modules/file-attachment/{file-item.service.d.ts → shared/file-item.service.d.ts} +0 -0
  107. /package/lib/modules/file-attachment/{file-validate-function.d.ts → shared/file-validate-function.d.ts} +0 -0
package/index.d.ts CHANGED
@@ -3,26 +3,28 @@ export { SkyCheckboxChange } from './lib/modules/checkbox/checkbox-change';
3
3
  export { SkyCheckboxGroupHeadingLevel } from './lib/modules/checkbox/checkbox-group-heading-level';
4
4
  export { SkyCheckboxGroupHeadingStyle } from './lib/modules/checkbox/checkbox-group-heading-style';
5
5
  export { SkyCheckboxModule } from './lib/modules/checkbox/checkbox.module';
6
- export { SkyFieldGroupModule } from './lib/modules/field-group/field-group.module';
7
6
  export { SkyFieldGroupHeadingLevel } from './lib/modules/field-group/field-group-heading-level';
8
7
  export { SkyFieldGroupHeadingStyle } from './lib/modules/field-group/field-group-heading-style';
8
+ export { SkyFieldGroupModule } from './lib/modules/field-group/field-group.module';
9
+ export { SkyFileAttachmentChange } from './lib/modules/file-attachment/file-attachment/file-attachment-change';
10
+ export { SkyFileAttachmentClick } from './lib/modules/file-attachment/file-attachment/file-attachment-click';
11
+ export { SkyFileAttachmentModule } from './lib/modules/file-attachment/file-attachment/file-attachment.module';
9
12
  export { SkyFileAttachmentsModule } from './lib/modules/file-attachment/file-attachments.module';
10
- export { SkyFileItem } from './lib/modules/file-attachment/file-item';
11
- export { SkyFileItemErrorType } from './lib/modules/file-attachment/file-item-error-type';
12
- export { SkyFileLink } from './lib/modules/file-attachment/file-link';
13
- export { SkyFileSizePipe } from './lib/modules/file-attachment/file-size.pipe';
14
- export { SkyFileAttachmentChange } from './lib/modules/file-attachment/types/file-attachment-change';
15
- export { SkyFileAttachmentClick } from './lib/modules/file-attachment/types/file-attachment-click';
16
- export { SkyFileDropChange } from './lib/modules/file-attachment/types/file-drop-change';
17
- export { SkyFormErrorsModule } from './lib/modules/form-error/form-errors.module';
13
+ export { SkyFileDropChange } from './lib/modules/file-attachment/file-drop/file-drop-change';
14
+ export { SkyFileDropModule } from './lib/modules/file-attachment/file-drop/file-drop.module';
15
+ export { SkyFileLink } from './lib/modules/file-attachment/file-drop/file-link';
16
+ export { SkyFileItem } from './lib/modules/file-attachment/shared/file-item';
17
+ export { SkyFileItemErrorType } from './lib/modules/file-attachment/shared/file-item-error-type';
18
+ export { SkyFileSizePipe } from './lib/modules/file-attachment/shared/file-size.pipe';
18
19
  export { SkyFormErrorModule } from './lib/modules/form-error/form-error.module';
20
+ export { SkyFormErrorsModule } from './lib/modules/form-error/form-errors.module';
19
21
  export { SkyInputBoxHostService } from './lib/modules/input-box/input-box-host.service';
20
22
  export { SkyInputBoxPopulateArgs } from './lib/modules/input-box/input-box-populate-args';
21
23
  export { SkyInputBoxModule } from './lib/modules/input-box/input-box.module';
24
+ export { SkyRadioModule } from './lib/modules/radio/radio.module';
22
25
  export { SkyRadioChange } from './lib/modules/radio/types/radio-change';
23
26
  export { SkyRadioGroupHeadingLevel } from './lib/modules/radio/types/radio-group-heading-level';
24
27
  export { SkyRadioGroupHeadingStyle } from './lib/modules/radio/types/radio-group-heading-style';
25
- export { SkyRadioModule } from './lib/modules/radio/radio.module';
26
28
  export { SkyRadioType } from './lib/modules/radio/types/radio-type';
27
29
  export { SkyRequiredStateDirective } from './lib/modules/required-state/required-state.directive';
28
30
  export { SkySelectionBoxModule } from './lib/modules/selection-box/selection-box.module';
@@ -31,23 +33,24 @@ export { SkySelectionBoxGridAlignItemsType } from './lib/modules/selection-box/t
31
33
  export { SkyToggleSwitchModule } from './lib/modules/toggle-switch/toggle-switch.module';
32
34
  export { SkyToggleSwitchChange } from './lib/modules/toggle-switch/types/toggle-switch-change';
33
35
  export { SKY_FORM_ERRORS_ENABLED } from './lib/modules/form-error/form-errors-enabled-token';
36
+ export { SkyFormFieldLabelTextRequiredDirective } from './lib/modules/shared/form-field-label-text-required.directive';
34
37
  export { SkyFormFieldLabelTextRequiredService } from './lib/modules/shared/form-field-label-text-required.service';
35
38
  export { SkyCharacterCounterIndicatorComponent as λ1 } from './lib/modules/character-counter/character-counter-indicator.component';
36
- export { SkyCharacterCounterInputDirective as λ2 } from './lib/modules/character-counter/character-counter.directive';
37
39
  export { SkyCharacterCounterScreenReaderPipe as λ23 } from './lib/modules/character-counter/character-counter-screen-reader.pipe';
40
+ export { SkyCharacterCounterInputDirective as λ2 } from './lib/modules/character-counter/character-counter.directive';
41
+ export { SkyCheckboxGroupComponent as λ24 } from './lib/modules/checkbox/checkbox-group.component';
38
42
  export { SkyCheckboxLabelComponent as λ4 } from './lib/modules/checkbox/checkbox-label.component';
39
43
  export { SkyCheckboxComponent as λ3 } from './lib/modules/checkbox/checkbox.component';
40
- export { SkyCheckboxGroupComponent as λ24 } from './lib/modules/checkbox/checkbox-group.component';
41
44
  export { SkyFieldGroupComponent as λ25 } from './lib/modules/field-group/field-group.component';
42
- export { SkyFileAttachmentLabelComponent as λ6 } from './lib/modules/file-attachment/file-attachment-label.component';
43
- export { SkyFileAttachmentComponent as λ7 } from './lib/modules/file-attachment/file-attachment.component';
44
- export { SkyFileDropComponent as λ8 } from './lib/modules/file-attachment/file-drop.component';
45
- export { SkyFileItemComponent as λ9 } from './lib/modules/file-attachment/file-item.component';
46
- export { SkyFormErrorsComponent as λ21 } from './lib/modules/form-error/form-errors.component';
45
+ export { SkyFileAttachmentLabelComponent as λ6 } from './lib/modules/file-attachment/file-attachment/file-attachment-label.component';
46
+ export { SkyFileAttachmentComponent as λ7 } from './lib/modules/file-attachment/file-attachment/file-attachment.component';
47
+ export { SkyFileDropComponent as λ8 } from './lib/modules/file-attachment/file-drop/file-drop.component';
48
+ export { SkyFileItemComponent as λ9 } from './lib/modules/file-attachment/file-drop/file-item.component';
47
49
  export { SkyFormErrorComponent as λ22 } from './lib/modules/form-error/form-error.component';
50
+ export { SkyFormErrorsComponent as λ21 } from './lib/modules/form-error/form-errors.component';
48
51
  export { SkyInputBoxControlDirective as λ20 } from './lib/modules/input-box/input-box-control.directive';
49
- export { SkyInputBoxComponent as λ10 } from './lib/modules/input-box/input-box.component';
50
52
  export { SkyInputBoxHintTextPipe as λ26 } from './lib/modules/input-box/input-box-hint-text.pipe';
53
+ export { SkyInputBoxComponent as λ10 } from './lib/modules/input-box/input-box.component';
51
54
  export { SkyRadioGroupComponent as λ11 } from './lib/modules/radio/radio-group.component';
52
55
  export { SkyRadioLabelComponent as λ12 } from './lib/modules/radio/radio-label.component';
53
56
  export { SkyRadioComponent as λ13 } from './lib/modules/radio/radio.component';
@@ -36,7 +36,7 @@ export declare class SkyCheckboxGroupComponent implements Validator {
36
36
  * The heading [font style](https://developer.blackbaud.com/skyux/design/styles/typography#headings).
37
37
  * @default 4
38
38
  */
39
- headingStyle: SkyCheckboxGroupHeadingStyle;
39
+ set headingStyle(value: SkyCheckboxGroupHeadingStyle);
40
40
  /**
41
41
  * [Persistent inline help text](https://developer.blackbaud.com/skyux/design/guidelines/user-assistance#inline-help) that provides
42
42
  * additional context to the user.
@@ -60,8 +60,8 @@ export declare class SkyCheckboxGroupComponent implements Validator {
60
60
  helpKey: string | undefined;
61
61
  stackedLg: boolean;
62
62
  stackedXL: boolean;
63
- get headingClass(): string;
64
63
  protected errorId: string;
64
+ protected headingClass: string;
65
65
  protected formErrorsDataId: string;
66
66
  protected formGroup: FormGroup | null | undefined;
67
67
  validate(formGroup: FormGroup): ValidationErrors | null;
@@ -1,14 +1,15 @@
1
- import { ElementRef, EventEmitter, OnInit, TemplateRef } from '@angular/core';
1
+ import { ElementRef, EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
3
3
  import { Observable } from 'rxjs';
4
4
  import { SkyCheckboxChange } from './checkbox-change';
5
5
  import * as i0 from "@angular/core";
6
6
  import * as i1 from "@skyux/theme";
7
+ import * as i2 from "../shared/form-field-label-text-required.directive";
7
8
  /**
8
9
  * Replaces the HTML input element with `type="checkbox"`. When users select a checkbox, its value
9
10
  * is driven through an `ngModel` attribute that you specify on the `sky-checkbox` element.
10
11
  */
11
- export declare class SkyCheckboxComponent implements ControlValueAccessor, OnInit, Validator {
12
+ export declare class SkyCheckboxComponent implements ControlValueAccessor, Validator {
12
13
  #private;
13
14
  /**
14
15
  * The ARIA label for the checkbox. This sets the checkbox's `aria-label` attribute
@@ -38,7 +39,7 @@ export declare class SkyCheckboxComponent implements ControlValueAccessor, OnIni
38
39
  * To set the disabled state on reactive forms, use the `FormControl` instead.
39
40
  * @default false
40
41
  */
41
- set disabled(value: boolean | undefined);
42
+ set disabled(value: boolean);
42
43
  /**
43
44
  * Whether the checkbox is disabled.
44
45
  */
@@ -149,13 +150,11 @@ export declare class SkyCheckboxComponent implements ControlValueAccessor, OnIni
149
150
  get indeterminateChange(): Observable<boolean>;
150
151
  set inputEl(el: ElementRef | undefined);
151
152
  get inputEl(): ElementRef | undefined;
152
- display: string | undefined;
153
153
  protected get isCheckboxRequired(): boolean;
154
154
  protected control: AbstractControl | undefined;
155
155
  protected inputId: string;
156
156
  protected readonly errorId: string;
157
157
  constructor();
158
- ngOnInit(): void;
159
158
  validate(control: AbstractControl<boolean>): ValidationErrors | null;
160
159
  /**
161
160
  * Implemented as part of ControlValueAccessor.
@@ -182,7 +181,8 @@ export declare class SkyCheckboxComponent implements ControlValueAccessor, OnIni
182
181
  /** Called when the checkbox is blurred. Needed to properly implement ControlValueAccessor. */
183
182
  onTouched: () => any;
184
183
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyCheckboxComponent, never>;
185
- 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; }; "stacked": { "alias": "stacked"; "required": false; }; "helpKey": { "alias": "helpKey"; "required": false; }; }, { "change": "change"; "checkedChange": "checkedChange"; "disabledChange": "disabledChange"; "indeterminateChange": "indeterminateChange"; }, never, ["sky-checkbox-label", "sky-form-error"], false, [{ directive: typeof i1.SkyThemeComponentClassDirective; inputs: {}; outputs: {}; }]>;
184
+ 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; }; "stacked": { "alias": "stacked"; "required": false; }; "helpKey": { "alias": "helpKey"; "required": false; }; }, { "change": "change"; "checkedChange": "checkedChange"; "disabledChange": "disabledChange"; "indeterminateChange": "indeterminateChange"; }, never, ["sky-checkbox-label", "sky-form-error"], false, [{ directive: typeof i1.SkyThemeComponentClassDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.SkyFormFieldLabelTextRequiredDirective; inputs: { "labelText": "labelText"; }; outputs: {}; }]>;
185
+ static ngAcceptInputType_disabled: unknown;
186
186
  static ngAcceptInputType_required: unknown;
187
187
  static ngAcceptInputType_labelHidden: unknown;
188
188
  static ngAcceptInputType_stacked: unknown;
@@ -1,4 +1,4 @@
1
- import { SkyFileItem } from '../file-item';
1
+ import { SkyFileItem } from '../shared/file-item';
2
2
  export interface SkyFileAttachmentChange {
3
3
  /**
4
4
  * The file that was added, or undefined if the file was removed.
@@ -1,4 +1,4 @@
1
- import { SkyFileItem } from '../file-item';
1
+ import { SkyFileItem } from '../shared/file-item';
2
2
  export interface SkyFileAttachmentClick {
3
3
  /**
4
4
  * The file that was clicked.
@@ -0,0 +1,11 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Joins an array of IDs with a single space.
5
+ * @internal
6
+ */
7
+ export declare class SkyFileAttachmentJoinIdsPipe implements PipeTransform {
8
+ transform(...ids: (string | null | undefined)[]): string | null;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileAttachmentJoinIdsPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<SkyFileAttachmentJoinIdsPipe, "skyFileAttachmentJoinIds", true>;
11
+ }
@@ -1,9 +1,11 @@
1
1
  import * as i0 from "@angular/core";
2
2
  /**
3
- * Displays a label above the file attachment element. To display a help button beside the label, include a help button
4
- * element, such as `sky-help-inline`, in the `sky-file-attachment-label` element and a `sky-control-help` CSS class on
5
- * that help button element.
6
- * @deprecated use the `labelText` input on the single file attachment component instead.
3
+ * Displays a label above the file attachment element. To display a help button
4
+ * beside the label, include a help button element, such as `sky-help-inline`,
5
+ * in the `sky-file-attachment-label` element and a `sky-control-help` CSS class
6
+ * on that help button element.
7
+ * @deprecated Use the `labelText` input on the single file attachment component
8
+ * instead.
7
9
  */
8
10
  export declare class SkyFileAttachmentLabelComponent {
9
11
  labelContentId: {
@@ -11,5 +13,5 @@ export declare class SkyFileAttachmentLabelComponent {
11
13
  } | undefined;
12
14
  constructor();
13
15
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileAttachmentLabelComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileAttachmentLabelComponent, "sky-file-attachment-label", never, {}, {}, never, ["*", ".sky-control-help"], false, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileAttachmentLabelComponent, "sky-file-attachment-label", never, {}, {}, never, ["*", ".sky-control-help"], true, never>;
15
17
  }
@@ -1,19 +1,20 @@
1
1
  import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
2
- import { NgControl, ValidationErrors } from '@angular/forms';
2
+ import { ControlValueAccessor, NgControl, ValidationErrors } from '@angular/forms';
3
3
  import { SkyThemeService } from '@skyux/theme';
4
+ import { SkyFileItem } from '../shared/file-item';
5
+ import { SkyFileItemErrorType } from '../shared/file-item-error-type';
6
+ import { SkyFileItemService } from '../shared/file-item.service';
7
+ import { SkyFileValidateFn } from '../shared/file-validate-function';
8
+ import { SkyFileAttachmentChange } from './file-attachment-change';
9
+ import { SkyFileAttachmentClick } from './file-attachment-click';
4
10
  import { SkyFileAttachmentLabelComponent } from './file-attachment-label.component';
5
11
  import { SkyFileAttachmentService } from './file-attachment.service';
6
- import { SkyFileItem } from './file-item';
7
- import { SkyFileItemErrorType } from './file-item-error-type';
8
- import { SkyFileItemService } from './file-item.service';
9
- import { SkyFileValidateFn } from './file-validate-function';
10
- import { SkyFileAttachmentChange } from './types/file-attachment-change';
11
- import { SkyFileAttachmentClick } from './types/file-attachment-click';
12
12
  import * as i0 from "@angular/core";
13
+ import * as i1 from "../../shared/form-field-label-text-required.directive";
13
14
  /**
14
15
  * Provides an element to attach a single local file.
15
16
  */
16
- export declare class SkyFileAttachmentComponent implements AfterViewInit, AfterContentInit, OnInit, OnDestroy {
17
+ export declare class SkyFileAttachmentComponent implements AfterViewInit, AfterContentInit, ControlValueAccessor, OnInit, OnDestroy {
17
18
  #private;
18
19
  /**
19
20
  * The comma-delimited string literal of MIME types that users can attach.
@@ -21,13 +22,16 @@ export declare class SkyFileAttachmentComponent implements AfterViewInit, AfterC
21
22
  * @required
22
23
  */
23
24
  acceptedTypes: string | undefined;
25
+ /**
26
+ * A custom error message to display when a file doesn't match the accepted types.
27
+ * This replaces a default error message that lists all accepted types.
28
+ */
29
+ acceptedTypesErrorMessage: string | undefined;
24
30
  /**
25
31
  * 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.
26
32
  * To set the disabled state on reactive forms, use the `FormControl` instead.
27
- * @default false
28
33
  */
29
- set disabled(value: boolean | undefined);
30
- get disabled(): boolean;
34
+ disabled: boolean;
31
35
  /**
32
36
  * The content of the help popover. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
33
37
  * button is added to the single file attachment label. The help inline button displays a [popover](https://developer.blackbaud.com/skyux/components/popover)
@@ -78,21 +82,20 @@ export declare class SkyFileAttachmentComponent implements AfterViewInit, AfterC
78
82
  /**
79
83
  * The custom validation function. This validation runs alongside the internal
80
84
  * file validation. This function takes a `SkyFileItem` object as a parameter.
85
+ * @deprecated Add a custom Angular `Validator` function to the `FormControl` instead.
81
86
  */
82
87
  validateFn: SkyFileValidateFn | undefined;
83
88
  /**
84
89
  * Fires when users add or remove files.
90
+ * @deprecated Subscribe to the form control's `valueChanges` event instead.
85
91
  */
86
92
  fileChange: EventEmitter<SkyFileAttachmentChange>;
87
93
  /**
88
- * Fires when users select the file name link. Make sure to bind the event.
89
- * If you do not, the file name link will be a dead link.
94
+ * Fires when users select the file name link.
90
95
  */
91
96
  fileClick: EventEmitter<SkyFileAttachmentClick>;
92
97
  acceptedOver: boolean;
93
98
  hasLabelComponent: boolean;
94
- fileDropDescriptionElementId: string;
95
- labelElementId: string;
96
99
  rejectedOver: boolean;
97
100
  /**
98
101
  * Whether the input is required for form validation.
@@ -101,8 +104,7 @@ export declare class SkyFileAttachmentComponent implements AfterViewInit, AfterC
101
104
  * is complete.
102
105
  * For more information about the `aria-required` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-required).
103
106
  */
104
- required: boolean | undefined;
105
- display: string | undefined;
107
+ required: boolean;
106
108
  set value(value: SkyFileItem | undefined | null);
107
109
  get value(): SkyFileItem | undefined;
108
110
  currentThemeName: string | undefined;
@@ -112,6 +114,8 @@ export declare class SkyFileAttachmentComponent implements AfterViewInit, AfterC
112
114
  inputEl: ElementRef | undefined;
113
115
  labelComponents: QueryList<SkyFileAttachmentLabelComponent> | undefined;
114
116
  isImage: boolean;
117
+ protected isData: boolean;
118
+ protected get isRequired(): boolean;
115
119
  protected ngControl: NgControl | undefined;
116
120
  protected errorId: string;
117
121
  protected fileErrorName: SkyFileItemErrorType | undefined;
@@ -140,7 +144,9 @@ export declare class SkyFileAttachmentComponent implements AfterViewInit, AfterC
140
144
  setDisabledState(isDisabled: boolean): void;
141
145
  emitClick(): void;
142
146
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileAttachmentComponent, [null, null, null, { optional: true; self: true; }, { optional: true; }]>;
143
- 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; }; "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-form-error", "sky-file-attachment-label"], false, never>;
147
+ 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-form-error", "sky-file-attachment-label"], true, [{ directive: typeof i1.SkyFormFieldLabelTextRequiredDirective; inputs: { "labelText": "labelText"; }; outputs: {}; }]>;
148
+ static ngAcceptInputType_disabled: unknown;
144
149
  static ngAcceptInputType_labelHidden: unknown;
145
150
  static ngAcceptInputType_stacked: unknown;
151
+ static ngAcceptInputType_required: unknown;
146
152
  }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./file-attachment.component";
3
+ import * as i2 from "./file-attachment-label.component";
4
+ import * as i3 from "../../form-error/form-error.module";
5
+ export declare class SkyFileAttachmentModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileAttachmentModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyFileAttachmentModule, never, [typeof i1.SkyFileAttachmentComponent, typeof i2.SkyFileAttachmentLabelComponent], [typeof i1.SkyFileAttachmentComponent, typeof i2.SkyFileAttachmentLabelComponent, typeof i3.SkyFormErrorModule]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<SkyFileAttachmentModule>;
9
+ }
@@ -1,5 +1,5 @@
1
- import { SkyFileItem } from './file-item';
2
- import { SkyFileValidateFn } from './file-validate-function';
1
+ import { SkyFileItem } from '../shared/file-item';
2
+ import { SkyFileValidateFn } from '../shared/file-validate-function';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * @internal
@@ -1,20 +1,11 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./file-attachment.component";
3
- import * as i2 from "./file-attachment-label.component";
4
- import * as i3 from "./file-drop.component";
5
- import * as i4 from "./file-item.component";
6
- import * as i5 from "./file-size.pipe";
7
- import * as i6 from "@angular/common";
8
- import * as i7 from "@angular/forms";
9
- import * as i8 from "../shared/sky-forms-resources.module";
10
- import * as i9 from "../form-error/form-error.module";
11
- import * as i10 from "../form-error/form-errors.module";
12
- import * as i11 from "@skyux/icon";
13
- import * as i12 from "@skyux/core";
14
- import * as i13 from "@skyux/theme";
15
- import * as i14 from "@skyux/help-inline";
2
+ import * as i1 from "./file-attachment/file-attachment.module";
3
+ import * as i2 from "./file-drop/file-drop.module";
4
+ /**
5
+ * @deprecated Import either `SkyFileAttachmentModule` or `SkyFileDropModule`.
6
+ */
16
7
  export declare class SkyFileAttachmentsModule {
17
8
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileAttachmentsModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyFileAttachmentsModule, [typeof i1.SkyFileAttachmentComponent, typeof i2.SkyFileAttachmentLabelComponent, typeof i3.SkyFileDropComponent, typeof i4.SkyFileItemComponent, typeof i5.SkyFileSizePipe], [typeof i6.CommonModule, typeof i7.FormsModule, typeof i8.SkyFormsResourcesModule, typeof i9.SkyFormErrorModule, typeof i10.SkyFormErrorsModule, typeof i11.SkyIconModule, typeof i12.SkyIdModule, typeof i13.SkyThemeModule, typeof i12.SkyTrimModule, typeof i14.SkyHelpInlineModule], [typeof i1.SkyFileAttachmentComponent, typeof i2.SkyFileAttachmentLabelComponent, typeof i3.SkyFileDropComponent, typeof i4.SkyFileItemComponent, typeof i5.SkyFileSizePipe, typeof i9.SkyFormErrorModule]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyFileAttachmentsModule, never, [typeof i1.SkyFileAttachmentModule, typeof i2.SkyFileDropModule], [typeof i1.SkyFileAttachmentModule, typeof i2.SkyFileDropModule]>;
19
10
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyFileAttachmentsModule>;
20
11
  }
@@ -1,4 +1,4 @@
1
- import { SkyFileItem } from '../file-item';
1
+ import { SkyFileItem } from '../shared/file-item';
2
2
  export interface SkyFileDropChange {
3
3
  /**
4
4
  * The array of files that were added or removed.
@@ -1,9 +1,10 @@
1
- import { ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
- import { SkyFileItem } from './file-item';
1
+ import { ElementRef, EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
2
+ import { SkyFileItem } from '../shared/file-item';
3
+ import { SkyFileValidateFn } from '../shared/file-validate-function';
4
+ import { SkyFileDropChange } from './file-drop-change';
3
5
  import { SkyFileLink } from './file-link';
4
- import { SkyFileValidateFn } from './file-validate-function';
5
- import { SkyFileDropChange } from './types/file-drop-change';
6
6
  import * as i0 from "@angular/core";
7
+ import * as i1 from "../../shared/form-field-label-text-required.directive";
7
8
  /**
8
9
  * Provides an element to attach multiple files where users can browse or drag and drop local files
9
10
  * or provide hyperlinks to external files. You can leave the contents of the component
@@ -14,7 +15,7 @@ import * as i0 from "@angular/core";
14
15
  * outside of the file drop component, you can place the `sky-file-drop-target` CSS class
15
16
  * on the element that receives drop events to exempt it from the drop exclusion rule.
16
17
  */
17
- export declare class SkyFileDropComponent implements OnInit, OnDestroy {
18
+ export declare class SkyFileDropComponent implements OnDestroy {
18
19
  #private;
19
20
  /**
20
21
  * Fires when users add or remove files.
@@ -70,6 +71,11 @@ export declare class SkyFileDropComponent implements OnInit, OnDestroy {
70
71
  * @required
71
72
  */
72
73
  acceptedTypes: string | undefined;
74
+ /**
75
+ * A custom error message to display when a file doesn't match the accepted types.
76
+ * This replaces a default error message that lists all accepted types.
77
+ */
78
+ acceptedTypesErrorMessage: string | undefined;
73
79
  /**
74
80
  * Whether to disable the option to browse for files to attach.
75
81
  */
@@ -122,13 +128,11 @@ export declare class SkyFileDropComponent implements OnInit, OnDestroy {
122
128
  */
123
129
  helpKey: string | undefined;
124
130
  inputEl: ElementRef | undefined;
125
- display: string | undefined;
126
131
  rejectedOver: boolean;
127
132
  acceptedOver: boolean;
128
133
  linkUrl: string | undefined;
129
134
  protected errorId: string;
130
135
  protected rejectedFiles: SkyFileItem[];
131
- ngOnInit(): void;
132
136
  ngOnDestroy(): void;
133
137
  dropClicked(): void;
134
138
  fileChangeEvent(fileChangeEvent: Event): void;
@@ -140,7 +144,7 @@ export declare class SkyFileDropComponent implements OnInit, OnDestroy {
140
144
  addLink(event: Event): void;
141
145
  onLinkBlur(): void;
142
146
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileDropComponent, never>;
143
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileDropComponent, "sky-file-drop", never, { "fileUploadAriaLabel": { "alias": "fileUploadAriaLabel"; "required": false; }; "linkUploadAriaLabel": { "alias": "linkUploadAriaLabel"; "required": false; }; "minFileSize": { "alias": "minFileSize"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "validateFn": { "alias": "validateFn"; "required": false; }; "acceptedTypes": { "alias": "acceptedTypes"; "required": false; }; "noClick": { "alias": "noClick"; "required": false; }; "allowLinks": { "alias": "allowLinks"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; "required": { "alias": "required"; "required": false; }; "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "stacked": { "alias": "stacked"; "required": false; }; "helpKey": { "alias": "helpKey"; "required": false; }; }, { "filesChanged": "filesChanged"; "linkInputBlur": "linkInputBlur"; "linkChanged": "linkChanged"; }, never, ["*"], false, never>;
147
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileDropComponent, "sky-file-drop", never, { "fileUploadAriaLabel": { "alias": "fileUploadAriaLabel"; "required": false; }; "linkUploadAriaLabel": { "alias": "linkUploadAriaLabel"; "required": false; }; "minFileSize": { "alias": "minFileSize"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "validateFn": { "alias": "validateFn"; "required": false; }; "acceptedTypes": { "alias": "acceptedTypes"; "required": false; }; "acceptedTypesErrorMessage": { "alias": "acceptedTypesErrorMessage"; "required": false; }; "noClick": { "alias": "noClick"; "required": false; }; "allowLinks": { "alias": "allowLinks"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; "required": { "alias": "required"; "required": false; }; "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "stacked": { "alias": "stacked"; "required": false; }; "helpKey": { "alias": "helpKey"; "required": false; }; }, { "filesChanged": "filesChanged"; "linkInputBlur": "linkInputBlur"; "linkChanged": "linkChanged"; }, never, ["*"], true, [{ directive: typeof i1.SkyFormFieldLabelTextRequiredDirective; inputs: { "labelText": "labelText"; }; outputs: {}; }]>;
144
148
  static ngAcceptInputType_labelHidden: unknown;
145
149
  static ngAcceptInputType_required: unknown;
146
150
  static ngAcceptInputType_stacked: unknown;
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./file-drop.component";
3
+ import * as i2 from "./file-item.component";
4
+ import * as i3 from "../../form-error/form-error.module";
5
+ export declare class SkyFileDropModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileDropModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyFileDropModule, never, [typeof i1.SkyFileDropComponent, typeof i2.SkyFileItemComponent], [typeof i1.SkyFileDropComponent, typeof i2.SkyFileItemComponent, typeof i3.SkyFormErrorModule]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<SkyFileDropModule>;
9
+ }
@@ -1,6 +1,6 @@
1
1
  import { DoCheck, EventEmitter, KeyValueDiffers } from '@angular/core';
2
- import { SkyFileItem } from './file-item';
3
- import { SkyFileItemService } from './file-item.service';
2
+ import { SkyFileItem } from '../shared/file-item';
3
+ import { SkyFileItemService } from '../shared/file-item.service';
4
4
  import { SkyFileLink } from './file-link';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class SkyFileItemComponent implements DoCheck {
@@ -29,5 +29,5 @@ export declare class SkyFileItemComponent implements DoCheck {
29
29
  ngDoCheck(): void;
30
30
  itemDelete(): void;
31
31
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileItemComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileItemComponent, "sky-file-item", never, { "fileItem": { "alias": "fileItem"; "required": false; }; }, { "deleteFile": "deleteFile"; }, never, ["*"], false, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileItemComponent, "sky-file-item", never, { "fileItem": { "alias": "fileItem"; "required": false; }; }, { "deleteFile": "deleteFile"; }, never, ["*"], true, never>;
33
33
  }
@@ -1,4 +1,3 @@
1
- import { DecimalPipe } from '@angular/common';
2
1
  import { PipeTransform } from '@angular/core';
3
2
  import { SkyLibResourcesService } from '@skyux/i18n';
4
3
  import * as i0 from "@angular/core";
@@ -7,8 +6,8 @@ import * as i0 from "@angular/core";
7
6
  */
8
7
  export declare class SkyFileSizePipe implements PipeTransform {
9
8
  #private;
10
- constructor(decimalPipe: DecimalPipe, resourcesService: SkyLibResourcesService);
11
- transform(input?: number | null): string;
9
+ constructor(resourcesService: SkyLibResourcesService);
10
+ transform(input?: number | string | null): string;
12
11
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileSizePipe, never>;
13
- static ɵpipe: i0.ɵɵPipeDeclaration<SkyFileSizePipe, "skyFileSize", false>;
12
+ static ɵpipe: i0.ɵɵPipeDeclaration<SkyFileSizePipe, "skyFileSize", true>;
14
13
  }
@@ -8,6 +8,7 @@ import * as i0 from "@angular/core";
8
8
  export declare class SkyInputBoxHostService {
9
9
  #private;
10
10
  get controlId(): string;
11
+ get labelId(): string;
11
12
  get labelText(): string;
12
13
  get ariaDescribedBy(): Observable<string | undefined> | undefined;
13
14
  init(host: SkyInputBoxComponent): void;
@@ -4,6 +4,7 @@ import { AbstractControlDirective, FormControlDirective, FormControlName, NgMode
4
4
  import { ReplaySubject } from 'rxjs';
5
5
  import { SkyInputBoxPopulateArgs } from './input-box-populate-args';
6
6
  import * as i0 from "@angular/core";
7
+ import * as i1 from "../shared/form-field-label-text-required.directive";
7
8
  /**
8
9
  * A wrapper component that provides styling and accessibility to form elements.
9
10
  */
@@ -81,17 +82,16 @@ export declare class SkyInputBoxComponent implements OnInit, AfterContentChecked
81
82
  protected hintTextScreenReaderOnly: boolean;
82
83
  protected hostHintText: string | undefined;
83
84
  readonly controlId: string;
85
+ readonly labelId: string;
84
86
  readonly errorId: string;
85
87
  readonly hintTextId: string;
86
88
  readonly ariaDescribedBy: ReplaySubject<string | undefined>;
87
89
  cssClass: string;
88
- display: string | undefined;
89
90
  formControl: FormControlDirective | undefined;
90
91
  formControlByName: FormControlName | undefined;
91
92
  ngModel: NgModel | undefined;
92
93
  inputRef: ElementRef | undefined;
93
94
  protected controlDir: AbstractControlDirective | undefined;
94
- protected helpPopoverOpen: boolean | undefined;
95
95
  protected get isDisabled(): boolean;
96
96
  protected get hasErrorsComputed(): boolean;
97
97
  protected get required(): boolean;
@@ -107,5 +107,5 @@ export declare class SkyInputBoxComponent implements OnInit, AfterContentChecked
107
107
  setHostHintText(value: string | undefined): void;
108
108
  setHintTextScreenReaderOnly(hide: boolean): void;
109
109
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyInputBoxComponent, never>;
110
- 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; }; "helpKey": { "alias": "helpKey"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; "errorsScreenReaderOnly": { "alias": "errorsScreenReaderOnly"; "required": false; "isSignal": true; }; }, {}, ["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>;
110
+ 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; }; "helpKey": { "alias": "helpKey"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; "errorsScreenReaderOnly": { "alias": "errorsScreenReaderOnly"; "required": false; "isSignal": true; }; }, {}, ["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, [{ directive: typeof i1.SkyFormFieldLabelTextRequiredDirective; inputs: { "labelText": "labelText"; }; outputs: {}; }]>;
111
111
  }