@skyux/forms 11.33.0 → 11.35.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.
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
6
6
  */
7
7
  export declare class SkyFileAttachmentService {
8
8
  #private;
9
- checkFiles(files: FileList, minFileSize: number, maxFileSize: number, acceptedTypes?: string, validateFn?: SkyFileValidateFn): SkyFileItem[];
9
+ checkFiles(files: SkyFileItem[], minFileSize: number, maxFileSize: number, acceptedTypes?: string, validateFn?: SkyFileValidateFn): SkyFileItem[];
10
10
  /**
11
11
  * Returns `true` if a directory is found in the provided `files` parameter.
12
12
  */
@@ -1,4 +1,5 @@
1
1
  import { ElementRef, EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
2
+ import { ControlValueAccessor, NgControl } from '@angular/forms';
2
3
  import { SkyFileItem } from '../shared/file-item';
3
4
  import { SkyFileValidateFn } from '../shared/file-validate-function';
4
5
  import { SkyFileDropChange } from './file-drop-change';
@@ -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 OnDestroy {
18
+ export declare class SkyFileDropComponent implements OnDestroy, ControlValueAccessor {
18
19
  #private;
19
20
  /**
20
21
  * Fires when users add or remove files.
@@ -135,8 +136,13 @@ export declare class SkyFileDropComponent implements OnDestroy {
135
136
  acceptedOver: boolean;
136
137
  linkUrl: string | undefined;
137
138
  protected errorId: string;
139
+ protected ngControl: NgControl | null;
138
140
  protected rejectedFiles: SkyFileItem[];
141
+ constructor();
139
142
  ngOnDestroy(): void;
143
+ writeValue(value: unknown): void;
144
+ registerOnChange(fn: any): void;
145
+ registerOnTouched(fn: () => void): void;
140
146
  dropClicked(): void;
141
147
  fileChangeEvent(fileChangeEvent: Event): void;
142
148
  fileDragEnter(dragEnterEvent: DragEvent): void;
@@ -145,7 +151,9 @@ export declare class SkyFileDropComponent implements OnDestroy {
145
151
  fileDragLeave(dragLeaveEvent: any): void;
146
152
  addLinkEnter(event: KeyboardEvent): void;
147
153
  addLink(event: Event): void;
154
+ protected uploadLink(file: SkyFileLink): void;
148
155
  onLinkBlur(): void;
156
+ protected get isRequired(): boolean;
149
157
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileDropComponent, never>;
150
158
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileDropComponent, "sky-file-drop", never, { "fileUploadAriaLabel": { "alias": "fileUploadAriaLabel"; "required": false; }; "linkUploadAriaLabel": { "alias": "linkUploadAriaLabel"; "required": false; }; "linkUploadHintText": { "alias": "linkUploadHintText"; "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, never>;
151
159
  static ngAcceptInputType_labelHidden: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/forms",
3
- "version": "11.33.0",
3
+ "version": "11.35.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -41,14 +41,14 @@
41
41
  "@angular/core": "^18.2.13",
42
42
  "@angular/forms": "^18.2.13",
43
43
  "@angular/platform-browser": "^18.2.13",
44
- "@skyux-sdk/testing": "11.33.0",
45
- "@skyux/core": "11.33.0",
46
- "@skyux/help-inline": "11.33.0",
47
- "@skyux/i18n": "11.33.0",
48
- "@skyux/icon": "11.33.0",
49
- "@skyux/indicators": "11.33.0",
50
- "@skyux/popovers": "11.33.0",
51
- "@skyux/theme": "11.33.0"
44
+ "@skyux-sdk/testing": "11.35.0",
45
+ "@skyux/core": "11.35.0",
46
+ "@skyux/help-inline": "11.35.0",
47
+ "@skyux/i18n": "11.35.0",
48
+ "@skyux/icon": "11.35.0",
49
+ "@skyux/indicators": "11.35.0",
50
+ "@skyux/popovers": "11.35.0",
51
+ "@skyux/theme": "11.35.0"
52
52
  },
53
53
  "dependencies": {
54
54
  "tslib": "^2.6.3"