@dsivd/prestations-ng 16.0.0-beta7 → 16.0.0-beta9

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.
@@ -24,7 +24,6 @@ export declare abstract class AbstractFoehnUploaderComponent<T> extends FoehnInp
24
24
  dropZoneLabel: string;
25
25
  dropZoneLabelMultiple: string;
26
26
  overrideAcceptedExtensions: string;
27
- overrideMaxSizeInMo: number;
28
27
  overrideMaxFileNameLength: number;
29
28
  overrideIllegalCharacters: string;
30
29
  showDeleteConfirmationMessage: boolean;
@@ -55,5 +54,5 @@ export declare abstract class AbstractFoehnUploaderComponent<T> extends FoehnInp
55
54
  protected removeFileOnConfirmation(document: any): void;
56
55
  protected displayLocalErrors(files: File[]): FormError[];
57
56
  static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFoehnUploaderComponent<any>, never>;
58
- static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFoehnUploaderComponent<any>, never, never, { "required": "required"; "dragAndDrop": "dragAndDrop"; "showUploadButton": "showUploadButton"; "readonly": "readonly"; "hideGlobalInfos": "hideGlobalInfos"; "multiple": "multiple"; "key": "key"; "chooseButtonLabel": "chooseButtonLabel"; "chooseButtonLabelMultiple": "chooseButtonLabelMultiple"; "dropZoneLabel": "dropZoneLabel"; "dropZoneLabelMultiple": "dropZoneLabelMultiple"; "overrideAcceptedExtensions": "overrideAcceptedExtensions"; "overrideMaxSizeInMo": "overrideMaxSizeInMo"; "overrideMaxFileNameLength": "overrideMaxFileNameLength"; "overrideIllegalCharacters": "overrideIllegalCharacters"; "showDeleteConfirmationMessage": "showDeleteConfirmationMessage"; "deleteConfirmationMessage": "deleteConfirmationMessage"; }, {}, never, never, false, never>;
57
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFoehnUploaderComponent<any>, never, never, { "required": "required"; "dragAndDrop": "dragAndDrop"; "showUploadButton": "showUploadButton"; "readonly": "readonly"; "hideGlobalInfos": "hideGlobalInfos"; "multiple": "multiple"; "key": "key"; "chooseButtonLabel": "chooseButtonLabel"; "chooseButtonLabelMultiple": "chooseButtonLabelMultiple"; "dropZoneLabel": "dropZoneLabel"; "dropZoneLabelMultiple": "dropZoneLabelMultiple"; "overrideAcceptedExtensions": "overrideAcceptedExtensions"; "overrideMaxFileNameLength": "overrideMaxFileNameLength"; "overrideIllegalCharacters": "overrideIllegalCharacters"; "showDeleteConfirmationMessage": "showDeleteConfirmationMessage"; "deleteConfirmationMessage": "deleteConfirmationMessage"; }, {}, never, never, false, never>;
59
58
  }
@@ -6,7 +6,7 @@ export declare class UploaderHelper {
6
6
  private dictionaryService;
7
7
  private applicationInfoService;
8
8
  private _accept;
9
- private _maxSizeInMo;
9
+ private _fileMaxSizeInBytesByFormKey;
10
10
  private _maxFileNameLength;
11
11
  private _illegalCharacters;
12
12
  private _fileMinSizeInBytes;
@@ -18,11 +18,10 @@ export declare class UploaderHelper {
18
18
  set illegalCharacters(value: string);
19
19
  get maxFileNameLength(): number;
20
20
  set maxFileNameLength(value: number);
21
- get maxSizeInMo(): number;
22
- set maxSizeInMo(value: number);
23
21
  get accept(): string;
24
22
  set accept(value: string);
25
- isFileTooBig(fileSizeInBytes: number, overrideMaxSizeInMo: number): boolean;
23
+ getMaxFileSizeInBytesForFormKey(formKey: string): number;
24
+ isFileTooBig(formKey: string, fileSizeInBytes: number): boolean;
26
25
  isFileTooSmall(fileSizeInBytes: number): boolean;
27
26
  isFileNameLengthValid(filename: string, overrideMaxFileNameLength: number): boolean;
28
27
  isFileNameNameValid(filename: string, overrideIllegalCharacters: string): boolean;
@@ -30,16 +29,16 @@ export declare class UploaderHelper {
30
29
  isFileExtensionValid(fileExtension: string, overrideAcceptedExtensions: string): boolean;
31
30
  getUniqueErrorByCode(name: string, errorCode: string, fileName: string, customErrors: {
32
31
  [key: string]: string;
33
- }, overrideMaxSizeInMo: number, overrideAcceptedExtensions: string, overrideMaxFileNameLength: number, overrideIllegalCharacters: string): FormError;
32
+ }, overrideAcceptedExtensions: string, overrideMaxFileNameLength: number, overrideIllegalCharacters: string): FormError;
34
33
  addCustomErrorOrDefault(name: string, destinationErrors: FormError[], errorCode: string, fileName: string, customErrors: {
35
34
  [key: string]: string;
36
- }, overrideMaxSizeInMo: number, overrideAcceptedExtensions: string, overrideMaxFileNameLength: number, overrideIllegalCharacters: string): void;
35
+ }, overrideAcceptedExtensions: string, overrideMaxFileNameLength: number, overrideIllegalCharacters: string): void;
37
36
  createDefaultCustomErrors(customErrors: {
38
37
  [key: string]: string;
39
38
  }): void;
40
39
  getLocalErrors(name: string, files: File[], customErrors: {
41
40
  [key: string]: string;
42
- }, overrideMaxSizeInMo: number, overrideAcceptedExtensions: string, overrideMaxFileNameLength: number, overrideIllegalCharacters: string): FormError[];
41
+ }, overrideAcceptedExtensions: string, overrideMaxFileNameLength: number, overrideIllegalCharacters: string): FormError[];
43
42
  hasLiveUploadErrors(errors: FormError[]): boolean;
44
43
  preventAndStop(event: any): void;
45
44
  getAllFilesCount(data: any): string;
package/package.json CHANGED
@@ -40,7 +40,7 @@
40
40
  "ng-update": {
41
41
  "migrations": "./schematics/migration-collection.json"
42
42
  },
43
- "version": "16.0.0-beta7",
43
+ "version": "16.0.0-beta9",
44
44
  "module": "fesm2015/dsivd-prestations-ng.mjs",
45
45
  "es2020": "fesm2020/dsivd-prestations-ng.mjs",
46
46
  "esm2020": "esm2020/dsivd-prestations-ng.mjs",
@@ -29,7 +29,9 @@ export declare class Configuration {
29
29
  document?: Document;
30
30
  }
31
31
  export declare class Document {
32
- maxFileSizeInMo: string;
32
+ fileMaxSizeInBytesByFormKey: {
33
+ [key: string]: number;
34
+ };
33
35
  maxFileNameLength: string;
34
36
  fileExtensions: string;
35
37
  illegalCharacters: string;