@tft/crispr-forms 13.0.1 → 13.0.2

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.
@@ -60,4 +60,5 @@ export declare class ImageUploadFieldModule {
60
60
  static ɵinj: i0.ɵɵInjectorDeclaration<ImageUploadFieldModule>;
61
61
  }
62
62
  export declare function maxFileSizeValidator(maxFileSize: number): ValidatorFn;
63
+ export declare function allowedFileExtValidator(allowedFileExtensions: string[], onlyAllowFiles?: boolean): ValidatorFn;
63
64
  export {};
@@ -4,7 +4,7 @@ import type { ImageUploadFieldComponent } from '../material/image-upload-field';
4
4
  import { CrisprControlConfig, ControlType, ButtonType, MatFieldProperties } from '../models';
5
5
  export declare type FileUploadFieldConfig = CrisprControlConfig & MatFieldProperties & {
6
6
  controlType: ControlType.FILE_UPLOAD;
7
- label?: string;
7
+ label: string;
8
8
  filesChanged?: (parentGroup: FormGroup, files: FileList) => void;
9
9
  allowMultipleFiles?: boolean;
10
10
  showClearFilesButton?: boolean;
@@ -2,7 +2,7 @@ import { FormGroup } from '@angular/forms';
2
2
  import { CrisprControlConfig, ControlType, ButtonType, MatFieldProperties } from '../models';
3
3
  export declare type ImageUploadFieldConfig = CrisprControlConfig & MatFieldProperties & {
4
4
  controlType: ControlType.IMAGE_UPLOAD;
5
- label?: string;
5
+ label: string;
6
6
  filesChanged?: (parentGroup: FormGroup, file: File) => void;
7
7
  /**
8
8
  * The file types to accept. The onus is on the consuming developer to limit these to file types compatible with usage.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tft/crispr-forms",
3
- "version": "13.0.1",
3
+ "version": "13.0.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/forms": "^13.0.0",
Binary file
Binary file