mmhglobal-dynamicform 2.26.0 → 2.27.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.
@@ -4,7 +4,7 @@ import { FileInfo, SuccessEvent, RemoveEvent, UploadEvent, FileRestrictions, Chu
4
4
  /********** Component & Service **********/
5
5
  import { InputFieldBase } from "../components/inputfieldbase.component";
6
6
  import { ZComponentService } from "../services/zcomponent.service";
7
- import { AuthService, ZCoreService, CompressImageService, ZComponent, SharePointService } from "mmhglobal-zcore";
7
+ import { AuthService, ZCoreService, CompressImageService, AlertService, ZComponent, SharePointService } from "mmhglobal-zcore";
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class MyFileInfo implements FileInfo {
10
10
  name: string;
@@ -18,6 +18,7 @@ export declare class ZuploadComponent extends InputFieldBase implements ZCompone
18
18
  private zcoreService;
19
19
  private ngZone;
20
20
  private sharePointService;
21
+ private alertService;
21
22
  uploadComponent: UploadComponent;
22
23
  uploadAttachmentUrl: string;
23
24
  uploadSaveUrl: string;
@@ -32,7 +33,7 @@ export declare class ZuploadComponent extends InputFieldBase implements ZCompone
32
33
  fileList: any[];
33
34
  restrictions: FileRestrictions;
34
35
  chunkSettings: ChunkSettings;
35
- constructor(componentService: ZComponentService, authService: AuthService, compressImage: CompressImageService, zcoreService: ZCoreService, ngZone: NgZone, sharePointService: SharePointService);
36
+ constructor(componentService: ZComponentService, authService: AuthService, compressImage: CompressImageService, zcoreService: ZCoreService, ngZone: NgZone, sharePointService: SharePointService, alertService: AlertService);
36
37
  ngOnInit(): void;
37
38
  onSuccess(e: SuccessEvent): void;
38
39
  private compressionConfigHandler;
@@ -40,8 +41,10 @@ export declare class ZuploadComponent extends InputFieldBase implements ZCompone
40
41
  uploadEventHandler(e: UploadEvent): void;
41
42
  onRemove(e: RemoveEvent): void;
42
43
  onChange(file: FileInfo[]): void;
44
+ private isValidUploadedFile;
43
45
  selectEventHandler(e: SelectEvent): void;
44
46
  clearFiles(): void;
47
+ private formatFileSize;
45
48
  static ɵfac: i0.ɵɵFactoryDeclaration<ZuploadComponent, never>;
46
49
  static ɵcmp: i0.ɵɵComponentDeclaration<ZuploadComponent, "app-zupload", never, {}, {}, never, never>;
47
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mmhglobal-dynamicform",
3
- "version": "2.26.0",
3
+ "version": "2.27.0",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.1"