@skyux/forms 10.38.0 → 10.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,11 @@ export declare class SkyFileAttachmentComponent implements AfterViewInit, AfterC
21
21
  * @required
22
22
  */
23
23
  acceptedTypes: string | undefined;
24
+ /**
25
+ * A custom error message to display when a file doesn't match the accepted types.
26
+ * This replaces a default error message that lists all accepted types.
27
+ */
28
+ acceptedTypesErrorMessage: string | undefined;
24
29
  /**
25
30
  * 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
31
  * To set the disabled state on reactive forms, use the `FormControl` instead.
@@ -140,7 +145,7 @@ export declare class SkyFileAttachmentComponent implements AfterViewInit, AfterC
140
145
  setDisabledState(isDisabled: boolean): void;
141
146
  emitClick(): void;
142
147
  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>;
148
+ 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"], false, never>;
144
149
  static ngAcceptInputType_labelHidden: unknown;
145
150
  static ngAcceptInputType_stacked: unknown;
146
151
  }
@@ -70,6 +70,11 @@ export declare class SkyFileDropComponent implements OnInit, OnDestroy {
70
70
  * @required
71
71
  */
72
72
  acceptedTypes: string | undefined;
73
+ /**
74
+ * A custom error message to display when a file doesn't match the accepted types.
75
+ * This replaces a default error message that lists all accepted types.
76
+ */
77
+ acceptedTypesErrorMessage: string | undefined;
73
78
  /**
74
79
  * Whether to disable the option to browse for files to attach.
75
80
  */
@@ -140,7 +145,7 @@ export declare class SkyFileDropComponent implements OnInit, OnDestroy {
140
145
  addLink(event: Event): void;
141
146
  onLinkBlur(): void;
142
147
  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>;
148
+ 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, ["*"], false, never>;
144
149
  static ngAcceptInputType_labelHidden: unknown;
145
150
  static ngAcceptInputType_required: unknown;
146
151
  static ngAcceptInputType_stacked: unknown;
@@ -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;
@@ -81,6 +81,7 @@ export declare class SkyInputBoxComponent implements OnInit, AfterContentChecked
81
81
  protected hintTextScreenReaderOnly: boolean;
82
82
  protected hostHintText: string | undefined;
83
83
  readonly controlId: string;
84
+ readonly labelId: string;
84
85
  readonly errorId: string;
85
86
  readonly hintTextId: string;
86
87
  readonly ariaDescribedBy: ReplaySubject<string | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/forms",
3
- "version": "10.38.0",
3
+ "version": "10.40.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -41,16 +41,16 @@
41
41
  "@angular/core": "^17.3.4",
42
42
  "@angular/forms": "^17.3.4",
43
43
  "@angular/platform-browser": "^17.3.4",
44
- "@skyux-sdk/testing": "10.38.0",
45
- "@skyux/core": "10.38.0",
46
- "@skyux/help-inline": "10.38.0",
47
- "@skyux/i18n": "10.38.0",
48
- "@skyux/indicators": "10.38.0",
49
- "@skyux/popovers": "10.38.0",
50
- "@skyux/theme": "10.38.0"
44
+ "@skyux-sdk/testing": "10.40.0",
45
+ "@skyux/core": "10.40.0",
46
+ "@skyux/help-inline": "10.40.0",
47
+ "@skyux/i18n": "10.40.0",
48
+ "@skyux/indicators": "10.40.0",
49
+ "@skyux/popovers": "10.40.0",
50
+ "@skyux/theme": "10.40.0"
51
51
  },
52
52
  "dependencies": {
53
- "@skyux/icon": "10.38.0",
53
+ "@skyux/icon": "10.40.0",
54
54
  "tslib": "^2.6.2"
55
55
  },
56
56
  "module": "fesm2022/skyux-forms.mjs",