@skyux/forms 10.1.0 → 10.2.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.
@@ -14,6 +14,6 @@ import * as i12 from "@skyux/core";
14
14
  import * as i13 from "@skyux/theme";
15
15
  export declare class SkyFileAttachmentsModule {
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileAttachmentsModule, never>;
17
- 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 i1.SkyFileAttachmentComponent, typeof i2.SkyFileAttachmentLabelComponent, typeof i3.SkyFileDropComponent, typeof i4.SkyFileItemComponent, typeof i5.SkyFileSizePipe]>;
17
+ 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 i1.SkyFileAttachmentComponent, typeof i2.SkyFileAttachmentLabelComponent, typeof i3.SkyFileDropComponent, typeof i4.SkyFileItemComponent, typeof i5.SkyFileSizePipe, typeof i9.SkyFormErrorModule]>;
18
18
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyFileAttachmentsModule>;
19
19
  }
@@ -1,4 +1,5 @@
1
1
  import { ElementRef, EventEmitter, OnDestroy } from '@angular/core';
2
+ import { SkyFileItem } from './file-item';
2
3
  import { SkyFileLink } from './file-link';
3
4
  import { SkyFileValidateFn } from './file-validate-function';
4
5
  import { SkyFileDropChange } from './types/file-drop-change';
@@ -60,6 +61,7 @@ export declare class SkyFileDropComponent implements OnDestroy {
60
61
  /**
61
62
  * The custom validation function. This validation runs alongside the internal
62
63
  * file validation. This function takes a `SkyFileItem` object as a parameter.
64
+ * The string returned is used as the error message in multi-file attachment.
63
65
  */
64
66
  validateFn: SkyFileValidateFn | undefined;
65
67
  /**
@@ -90,6 +92,8 @@ export declare class SkyFileDropComponent implements OnDestroy {
90
92
  rejectedOver: boolean;
91
93
  acceptedOver: boolean;
92
94
  linkUrl: string | undefined;
95
+ protected errorId: string;
96
+ protected rejectedFiles: SkyFileItem[];
93
97
  ngOnDestroy(): void;
94
98
  dropClicked(): void;
95
99
  fileChangeEvent(fileChangeEvent: Event): void;
@@ -1,2 +1,5 @@
1
1
  import { SkyFileItem } from './file-item';
2
+ /**
3
+ * Custom validation run on each file uploaded. The string returned is used as the error message in multi-file attachment.
4
+ */
2
5
  export type SkyFileValidateFn = (file: SkyFileItem) => string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/forms",
3
- "version": "10.1.0",
3
+ "version": "10.2.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -41,12 +41,12 @@
41
41
  "@angular/core": "^17.3.1",
42
42
  "@angular/forms": "^17.3.1",
43
43
  "@angular/platform-browser": "^17.3.1",
44
- "@skyux-sdk/testing": "10.1.0",
45
- "@skyux/core": "10.1.0",
46
- "@skyux/i18n": "10.1.0",
47
- "@skyux/indicators": "10.1.0",
48
- "@skyux/popovers": "10.1.0",
49
- "@skyux/theme": "10.1.0"
44
+ "@skyux-sdk/testing": "10.2.0",
45
+ "@skyux/core": "10.2.0",
46
+ "@skyux/i18n": "10.2.0",
47
+ "@skyux/indicators": "10.2.0",
48
+ "@skyux/popovers": "10.2.0",
49
+ "@skyux/theme": "10.2.0"
50
50
  },
51
51
  "dependencies": {
52
52
  "tslib": "^2.6.2"