@wizishop/img-manager 0.2.100 → 0.2.101
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.
- package/bundles/wizishop-img-manager.umd.js +22 -3
- package/bundles/wizishop-img-manager.umd.js.map +1 -1
- package/bundles/wizishop-img-manager.umd.min.js +1 -1
- package/bundles/wizishop-img-manager.umd.min.js.map +1 -1
- package/esm2015/lib/components/img-upload/img-upload.component.js +23 -4
- package/esm5/lib/components/img-upload/img-upload.component.js +23 -4
- package/fesm2015/wizishop-img-manager.js +22 -3
- package/fesm2015/wizishop-img-manager.js.map +1 -1
- package/fesm5/wizishop-img-manager.js +22 -3
- package/fesm5/wizishop-img-manager.js.map +1 -1
- package/lib/components/img-upload/img-upload.component.d.ts +3 -0
- package/package.json +1 -1
- package/wizishop-img-manager-0.2.101.tgz +0 -0
- package/wizishop-img-manager.metadata.json +1 -1
- package/wz-img-manager.scss +62 -62
- package/wizishop-img-manager-0.2.100.tgz +0 -0
|
@@ -17,6 +17,7 @@ export declare class ImgUploadComponent implements OnInit {
|
|
|
17
17
|
loadingText: string;
|
|
18
18
|
errorUploadingImg: string;
|
|
19
19
|
errorNotImg: string;
|
|
20
|
+
MAX_IMAGE_SIZE: number;
|
|
20
21
|
constructor(imgManager: ImgManagerService, alertService: AlertService, externalConfigService: ImgManagerConfigService);
|
|
21
22
|
ngOnInit(): void;
|
|
22
23
|
filesChangeByClick(event: any): void;
|
|
@@ -30,6 +31,8 @@ export declare class ImgUploadComponent implements OnInit {
|
|
|
30
31
|
*/
|
|
31
32
|
onImgUpload(img: ImgPictureDTO[]): void;
|
|
32
33
|
isFileImage(fileType: string): boolean;
|
|
34
|
+
isSizeValid(imageBytesSize: number): boolean;
|
|
35
|
+
getImageSizeInKo(size: number): number;
|
|
33
36
|
/**
|
|
34
37
|
* Remove the style of the drag and drop box
|
|
35
38
|
* After an img is droped, the box is still grey
|
package/package.json
CHANGED
|
Binary file
|