@wizishop/img-manager 15.2.11 → 15.2.13
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/README.md +40 -1
- package/esm2020/lib/components/images-view/images-actions-handler.mjs +5 -2
- package/esm2020/lib/services/api.service.mjs +1 -1
- package/esm2020/lib/services/image-not-found.service.mjs +13 -0
- package/esm2020/lib/services/img-event.service.mjs +1 -1
- package/esm2020/lib/wz-img-manager.module.mjs +5 -3
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/wizishop-img-manager.mjs +17 -3
- package/fesm2015/wizishop-img-manager.mjs.map +1 -1
- package/fesm2020/wizishop-img-manager.mjs +17 -3
- package/fesm2020/wizishop-img-manager.mjs.map +1 -1
- package/lib/components/images-view/images-actions-handler.d.ts +1 -0
- package/lib/services/image-not-found.service.d.ts +6 -0
- package/lib/wz-img-manager.module.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/wizishop-img-manager-15.2.13.tgz +0 -0
- package/wizishop-img-manager-15.2.11.tgz +0 -0
|
@@ -594,6 +594,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
594
594
|
type: Injectable
|
|
595
595
|
}] });
|
|
596
596
|
|
|
597
|
+
class ImageNotFoundService {
|
|
598
|
+
imageNotFound($url) {
|
|
599
|
+
console.log('Image not found: ', $url);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
ImageNotFoundService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ImageNotFoundService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
603
|
+
ImageNotFoundService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ImageNotFoundService });
|
|
604
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ImageNotFoundService, decorators: [{
|
|
605
|
+
type: Injectable
|
|
606
|
+
}] });
|
|
607
|
+
|
|
597
608
|
class ImagesActionHandler {
|
|
598
609
|
constructor(imgManager, imgSelectionService, http, imgCDNService, imgEventCardService, alertService, translateService, apiService) {
|
|
599
610
|
this.imgManager = imgManager;
|
|
@@ -623,6 +634,7 @@ class ImagesActionHandler {
|
|
|
623
634
|
this.fakeImgRoute = this.apiService.CONFIG.assets_route + 'img/fake.png';
|
|
624
635
|
this.errorRemoveImg = 'ImgManager.ImgList.errorRemoveImg';
|
|
625
636
|
this.errorAlreadyUsedImg = 'ImgManager.ImgList.errorAlreadyUsed';
|
|
637
|
+
this.imageNotFoundService = inject(ImageNotFoundService);
|
|
626
638
|
}
|
|
627
639
|
/** Event emit when the header checkbox is checked */
|
|
628
640
|
onToggleAllCheckBoxRow(event) {
|
|
@@ -670,6 +682,7 @@ class ImagesActionHandler {
|
|
|
670
682
|
});
|
|
671
683
|
}
|
|
672
684
|
onPictureNotLoading(event) {
|
|
685
|
+
this.imageNotFoundService.imageNotFound(event.target.src);
|
|
673
686
|
event.target.src = this.fakeImgRoute;
|
|
674
687
|
}
|
|
675
688
|
onDownloadImg(display_name, file_name) {
|
|
@@ -3981,7 +3994,7 @@ const pipes = [
|
|
|
3981
3994
|
SelectFiltersPipe
|
|
3982
3995
|
];
|
|
3983
3996
|
class WzImgManagerModule {
|
|
3984
|
-
static withConfig(ApiService) {
|
|
3997
|
+
static withConfig(ApiService, ImageNotFoundProvider) {
|
|
3985
3998
|
return {
|
|
3986
3999
|
ngModule: WzImgManagerModule,
|
|
3987
4000
|
providers: [
|
|
@@ -3998,7 +4011,8 @@ class WzImgManagerModule {
|
|
|
3998
4011
|
RenamePictureService,
|
|
3999
4012
|
SnackBarService,
|
|
4000
4013
|
UploadService,
|
|
4001
|
-
UserSettingsService
|
|
4014
|
+
UserSettingsService,
|
|
4015
|
+
ImageNotFoundProvider ? ImageNotFoundProvider : ImageNotFoundService
|
|
4002
4016
|
]
|
|
4003
4017
|
};
|
|
4004
4018
|
}
|
|
@@ -4113,5 +4127,5 @@ class ImgManagerConfigDto {
|
|
|
4113
4127
|
* Generated bundle index. Do not edit.
|
|
4114
4128
|
*/
|
|
4115
4129
|
|
|
4116
|
-
export { ApiService, CanvaButtonApi, CanvaService, ImgApiDto, ImgManagerConfigDto, ImgManagerService, ImgSelectionService, RenamePictureService, WzImgManagerComponent, WzImgManagerModule };
|
|
4130
|
+
export { ApiService, CanvaButtonApi, CanvaService, ImageNotFoundService, ImgApiDto, ImgManagerConfigDto, ImgManagerService, ImgSelectionService, RenamePictureService, WzImgManagerComponent, WzImgManagerModule };
|
|
4117
4131
|
//# sourceMappingURL=wizishop-img-manager.mjs.map
|