@wizishop/img-manager 15.2.1 → 15.2.4
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/esm2020/lib/components/images-view/images-view.component.mjs +4 -4
- package/esm2020/lib/components/img-editor/img-editor.component.mjs +1 -1
- package/esm2020/lib/components/img-upload/img-upload.component.mjs +13 -10
- package/esm2020/lib/components/pexels-lib/pexels-lib.component.mjs +24 -23
- package/esm2020/lib/services/alert.service.mjs +3 -6
- package/esm2020/lib/services/api.service.mjs +1 -1
- package/esm2020/lib/services/canva.service.mjs +3 -6
- package/esm2020/lib/services/config/img-cdn.service.mjs +3 -6
- package/esm2020/lib/services/dom.service.mjs +3 -6
- package/esm2020/lib/services/img-event.service.mjs +4 -7
- package/esm2020/lib/services/img-manager.service.mjs +6 -22
- package/esm2020/lib/services/img-selection.service.mjs +2 -18
- package/esm2020/lib/services/pexels.service.mjs +4 -7
- package/esm2020/lib/services/rename-picture.service.mjs +3 -4
- package/esm2020/lib/services/snackbar.service.mjs +64 -0
- package/esm2020/lib/services/table/filters-table.service.mjs +3 -6
- package/esm2020/lib/services/upload.service.mjs +8 -10
- package/esm2020/lib/services/user-settings.service.mjs +4 -7
- package/esm2020/lib/wz-img-manager.component.mjs +6 -11
- package/esm2020/lib/wz-img-manager.module.mjs +28 -2
- package/fesm2015/wizishop-img-manager.mjs +272 -259
- package/fesm2015/wizishop-img-manager.mjs.map +1 -1
- package/fesm2020/wizishop-img-manager.mjs +206 -193
- package/fesm2020/wizishop-img-manager.mjs.map +1 -1
- package/lib/components/pexels-lib/pexels-lib.component.d.ts +3 -4
- package/lib/services/api.service.d.ts +8 -8
- package/lib/services/config/img-cdn.service.d.ts +1 -2
- package/lib/services/img-event.service.d.ts +0 -1
- package/lib/services/img-manager.service.d.ts +5 -12
- package/lib/services/img-selection.service.d.ts +0 -6
- package/lib/services/rename-picture.service.d.ts +1 -1
- package/lib/services/snackbar.service.d.ts +19 -0
- package/lib/services/upload.service.d.ts +3 -4
- package/lib/services/user-settings.service.d.ts +0 -1
- package/lib/wz-img-manager.component.d.ts +2 -2
- package/package.json +1 -1
- package/wizishop-img-manager-15.2.4.tgz +0 -0
- package/wz-img-manager.scss +58 -58
- package/wizishop-img-manager-15.2.1.tgz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef,
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { PexelsService } from '../../services/pexels.service';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { WzImgLibDto, PhotosColumns, WzImgLibPhotoDto } from '../../dto/pexels-img.dto';
|
|
@@ -7,7 +7,7 @@ import { stateDisplayed } from '../../dto/export-dtos.api';
|
|
|
7
7
|
import { AlertService } from '../../services/alert.service';
|
|
8
8
|
import { UploadService } from '../../services/upload.service';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class PexelLibComponent implements
|
|
10
|
+
export declare class PexelLibComponent implements AfterViewInit {
|
|
11
11
|
private wzImgLibService;
|
|
12
12
|
private alertService;
|
|
13
13
|
private translateService;
|
|
@@ -26,7 +26,7 @@ export declare class PexelLibComponent implements OnInit, AfterViewInit {
|
|
|
26
26
|
isLoading: boolean;
|
|
27
27
|
initComponent: boolean;
|
|
28
28
|
photosColumns: PhotosColumns[];
|
|
29
|
-
|
|
29
|
+
nbColumns: number;
|
|
30
30
|
responsiveColumns: number[];
|
|
31
31
|
outerElement: any;
|
|
32
32
|
uploadingImg: string;
|
|
@@ -37,7 +37,6 @@ export declare class PexelLibComponent implements OnInit, AfterViewInit {
|
|
|
37
37
|
private subs;
|
|
38
38
|
set content(control: ElementRef);
|
|
39
39
|
constructor(wzImgLibService: PexelsService, alertService: AlertService, translateService: TranslateService, uploadService: UploadService);
|
|
40
|
-
ngOnInit(): void;
|
|
41
40
|
ngAfterViewInit(): void;
|
|
42
41
|
setNbColumnsToDisplayPhoto(): void;
|
|
43
42
|
onSearchNameChanged(): void;
|
|
@@ -9,19 +9,19 @@ export declare abstract class ApiService {
|
|
|
9
9
|
canva_url: string;
|
|
10
10
|
pexels_token: string;
|
|
11
11
|
pexels_route: string;
|
|
12
|
-
shop_category: string;
|
|
13
12
|
assets_route: string;
|
|
14
13
|
};
|
|
15
14
|
abstract IMG_SIZE: ImgCDNConfigDTO;
|
|
15
|
+
abstract getShopCategory(): string;
|
|
16
16
|
abstract getShopImgList(params?: ParamsImgManagerDTO): Observable<ImgPicturesDTO>;
|
|
17
|
-
abstract getShopTotalImgList(params?: ParamsImgManagerDTO): Observable<
|
|
17
|
+
abstract getShopTotalImgList(params?: ParamsImgManagerDTO): Observable<number>;
|
|
18
18
|
abstract getShopImg(idFile: string): Observable<ImgPictureDTO>;
|
|
19
|
-
abstract uploadFile(formData: FormData):
|
|
20
|
-
abstract uploadFileByUrl(url: string, fileName?: string):
|
|
21
|
-
abstract replaceImg(imageBase64: string, id_file: string):
|
|
22
|
-
abstract changeImgName(fileName: string, id_file: string):
|
|
23
|
-
abstract removeImg(id_file: string):
|
|
24
|
-
abstract removeMultipleImg(id_array: string[]):
|
|
19
|
+
abstract uploadFile(formData: FormData): Observable<ImgPictureDTO>;
|
|
20
|
+
abstract uploadFileByUrl(url: string, fileName?: string): Observable<ImgPictureDTO>;
|
|
21
|
+
abstract replaceImg(imageBase64: string, id_file: string): Observable<ImgPictureDTO>;
|
|
22
|
+
abstract changeImgName(fileName: string, id_file: string): Observable<ImgPictureDTO>;
|
|
23
|
+
abstract removeImg(id_file: string): Observable<ImgPictureDTO>;
|
|
24
|
+
abstract removeMultipleImg(id_array: string[]): Observable<ImgPictureDTO[]>;
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiService, never>;
|
|
26
26
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiService>;
|
|
27
27
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ImgCDNConfigDTO } from '../../dto/config/image-cdn/image-cdn-config.dto';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class ImgCDNService {
|
|
4
|
-
imgCDNConfig: ImgCDNConfigDTO;
|
|
3
|
+
imgCDNConfig: import("@wizishop/img-manager").ImgCDNConfigDTO;
|
|
5
4
|
getUrlImg(size: '100' | '200' | '400' | '800' | 'raw' | string): any;
|
|
6
5
|
getAllSize(): string[];
|
|
7
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImgCDNService, never>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Optional } from '@angular/core';
|
|
2
1
|
import { HttpParams } from '@angular/common/http';
|
|
3
2
|
import { Observable } from "rxjs";
|
|
4
3
|
import { ImgPictureDTO, ImgPicturesDTO, ParamsImgManagerDTO } from '../dto/img-manager.dto';
|
|
@@ -7,30 +6,24 @@ import { ImgManagerConfig } from '../dto/config/img-manager';
|
|
|
7
6
|
import { ApiService } from './api.service';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
export declare class ImgManagerService {
|
|
10
|
-
private apiService;
|
|
11
9
|
params: HttpParams;
|
|
12
10
|
private pageFicheProductConfig;
|
|
13
11
|
private angularFicheProductConfig;
|
|
14
12
|
private wiziblockConfig;
|
|
15
13
|
private simpleWithButtonOpenerConfig;
|
|
16
14
|
private fullWindowConfig;
|
|
17
|
-
|
|
15
|
+
apiService: ApiService;
|
|
18
16
|
shopImgList: ImgPicturesDTO;
|
|
19
17
|
previousParams: ParamsImgManagerDTO;
|
|
20
18
|
getShopImgList(params?: ParamsImgManagerDTO): Observable<ImgPicturesDTO>;
|
|
21
|
-
getShopTotalImgList(params?: ParamsImgManagerDTO): Observable<
|
|
19
|
+
getShopTotalImgList(params?: ParamsImgManagerDTO): Observable<number>;
|
|
22
20
|
getShopImg(idFile: string): Observable<ImgPictureDTO>;
|
|
23
21
|
resetParams(params: ParamsImgManagerDTO): void;
|
|
24
|
-
replaceImg(imageBase64: string, id_file: string):
|
|
25
|
-
removeImg(id_file: string):
|
|
26
|
-
removeMultipleImg(id_array: string[]):
|
|
22
|
+
replaceImg(imageBase64: string, id_file: string): Observable<ImgPictureDTO>;
|
|
23
|
+
removeImg(id_file: string): Observable<ImgPictureDTO>;
|
|
24
|
+
removeMultipleImg(id_array: string[]): Observable<ImgPictureDTO[]>;
|
|
27
25
|
getImgManagerDisplayConfig(displayName: ImgManagerConfig): ImgManagerDisplayConfig;
|
|
28
26
|
getAllImgManagerDisplayConfig(): ImgManagerDisplayConfig[];
|
|
29
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImgManagerService, never>;
|
|
30
28
|
static ɵprov: i0.ɵɵInjectableDeclaration<ImgManagerService>;
|
|
31
29
|
}
|
|
32
|
-
export declare const ImgManagerServiceProvider: {
|
|
33
|
-
provide: typeof ImgManagerService;
|
|
34
|
-
useFactory: (parentService: ImgManagerService, apiService: ApiService) => ImgManagerService;
|
|
35
|
-
deps: (Optional[] | typeof ApiService)[];
|
|
36
|
-
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Optional } from '@angular/core';
|
|
2
1
|
import { ImgPictureDTO } from '../dto/img-manager.dto';
|
|
3
2
|
import { BehaviorSubject } from 'rxjs';
|
|
4
3
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
@@ -26,8 +25,3 @@ export declare class ImgSelectionService {
|
|
|
26
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImgSelectionService, never>;
|
|
27
26
|
static ɵprov: i0.ɵɵInjectableDeclaration<ImgSelectionService>;
|
|
28
27
|
}
|
|
29
|
-
export declare const ImgSelectionServiceProvider: {
|
|
30
|
-
provide: typeof ImgSelectionService;
|
|
31
|
-
useFactory: (parentService: ImgSelectionService) => ImgSelectionService;
|
|
32
|
-
deps: Optional[][];
|
|
33
|
-
};
|
|
@@ -13,7 +13,7 @@ export declare class RenamePictureService {
|
|
|
13
13
|
constructor(apiService: ApiService, alertService: AlertService);
|
|
14
14
|
setPicturesList(picturesList: ImgPictureDTO[]): void;
|
|
15
15
|
renamePicture(pictureNameUpdate: PictureNameUpdate): void;
|
|
16
|
-
changeImageName(name: string, idFile: string):
|
|
16
|
+
changeImageName(name: string, idFile: string): import("rxjs").Observable<ImgPictureDTO>;
|
|
17
17
|
private getPictureById;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<RenamePictureService, never>;
|
|
19
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<RenamePictureService>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NwbSnackbarService, NwbSnackbarConfig } from '@wizishop/ng-wizi-bulma';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SnackBarService {
|
|
6
|
+
private nwbSnackbar;
|
|
7
|
+
private translateService;
|
|
8
|
+
actionMsg: string;
|
|
9
|
+
snackBarConfigAction: NwbSnackbarConfig;
|
|
10
|
+
snackBarConfig: NwbSnackbarConfig;
|
|
11
|
+
private snackBarRefComponent;
|
|
12
|
+
constructor(nwbSnackbar: NwbSnackbarService, translateService: TranslateService);
|
|
13
|
+
openSnackBar(msgKey: string): void;
|
|
14
|
+
openSnackBarWithAction(msgKey: string): Observable<unknown>;
|
|
15
|
+
openSnackBarWithBackendRespons(msgKey: string, msgBackend: string): void;
|
|
16
|
+
private closePreviousSnackbar;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SnackBarService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SnackBarService>;
|
|
19
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ApiService } from './api.service';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class UploadService {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
uploadFileByUrl(url: string, fileName?: string): any;
|
|
4
|
+
apiService: ApiService;
|
|
5
|
+
uploadFile(formData: FormData): import("rxjs").Observable<import("@wizishop/img-manager").ImgPictureDTO>;
|
|
6
|
+
uploadFileByUrl(url: string, fileName?: string): import("rxjs").Observable<import("@wizishop/img-manager").ImgPictureDTO>;
|
|
8
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<UploadService, never>;
|
|
9
8
|
static ɵprov: i0.ɵɵInjectableDeclaration<UploadService>;
|
|
10
9
|
}
|
|
@@ -5,8 +5,8 @@ import { UserSettingsService } from './services/user-settings.service';
|
|
|
5
5
|
import { CanvaService } from './services/canva.service';
|
|
6
6
|
import { ImgEventService } from './services/img-event.service';
|
|
7
7
|
import { DomService } from './services/dom.service';
|
|
8
|
-
import { stateDisplayed } from '../public-api';
|
|
9
8
|
import { WiziBlockMediaDto } from './dto/wizi-block-media.dto';
|
|
9
|
+
import { stateDisplayed } from './dto/stateDisplayed.dto';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare class WzImgManagerComponent implements OnInit {
|
|
12
12
|
private imgSelectionService;
|
|
@@ -25,7 +25,7 @@ export declare class WzImgManagerComponent implements OnInit {
|
|
|
25
25
|
set showImgManagerModule(activate: boolean);
|
|
26
26
|
get showImgManagerModule(): boolean;
|
|
27
27
|
onKeydownHandler(event: KeyboardEvent): void;
|
|
28
|
-
imgSelectionChange: import("rxjs").BehaviorSubject<import("
|
|
28
|
+
imgSelectionChange: import("rxjs").BehaviorSubject<import("@wizishop/img-manager").ImgPictureDTO[]>;
|
|
29
29
|
close: boolean;
|
|
30
30
|
selectImgEvent: Subscription;
|
|
31
31
|
listDisplayed: boolean;
|
package/package.json
CHANGED
|
Binary file
|
package/wz-img-manager.scss
CHANGED
|
@@ -2941,7 +2941,64 @@ $green-color: #2ecc71;
|
|
|
2941
2941
|
|
|
2942
2942
|
.dropdownWizi:not(.is-hoverable) {
|
|
2943
2943
|
cursor: not-allowed;
|
|
2944
|
-
}.wz-img-manager .
|
|
2944
|
+
}.wz-img-manager .input-search.field {
|
|
2945
|
+
padding: 10px 20px;
|
|
2946
|
+
background-color: $gray-background;
|
|
2947
|
+
@include media('<tablet') {
|
|
2948
|
+
padding: 0!important;
|
|
2949
|
+
background-color: $white;
|
|
2950
|
+
}
|
|
2951
|
+
&.small-padding {
|
|
2952
|
+
padding: 10px 20px;
|
|
2953
|
+
}
|
|
2954
|
+
.input,
|
|
2955
|
+
.input:focus,
|
|
2956
|
+
.input.is-focused,
|
|
2957
|
+
.input:active,
|
|
2958
|
+
.input.is-active {
|
|
2959
|
+
font-size: rem(14);
|
|
2960
|
+
color: $main-text;
|
|
2961
|
+
border: rem(1) solid $input-border-search;
|
|
2962
|
+
box-shadow: none;
|
|
2963
|
+
padding: rem(13.5) rem(20) rem(13.5) rem(48);
|
|
2964
|
+
border-radius: rem(3);
|
|
2965
|
+
margin: 0;
|
|
2966
|
+
height: auto;
|
|
2967
|
+
min-height: unset;
|
|
2968
|
+
|
|
2969
|
+
&::placeholder {
|
|
2970
|
+
color: $placeholder-color;
|
|
2971
|
+
font-weight: normal;
|
|
2972
|
+
}
|
|
2973
|
+
}
|
|
2974
|
+
|
|
2975
|
+
.input:focus,
|
|
2976
|
+
.input.is-focused,
|
|
2977
|
+
.input:active,
|
|
2978
|
+
.input.is-active {
|
|
2979
|
+
border-color: $wizishop-blue;
|
|
2980
|
+
}
|
|
2981
|
+
|
|
2982
|
+
.icon {
|
|
2983
|
+
position: absolute;
|
|
2984
|
+
top: 50%;
|
|
2985
|
+
left: 20px;
|
|
2986
|
+
font-size: rem(18);
|
|
2987
|
+
transform: translateY(-50%);
|
|
2988
|
+
pointer-events: none;
|
|
2989
|
+
font-weight: 400;
|
|
2990
|
+
color: $placeholder-color;
|
|
2991
|
+
margin: 0;
|
|
2992
|
+
width: rem(18);
|
|
2993
|
+
height: rem(18);
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
.wz-img-manager .wz-img-manager__module:not(.wz-img-manager__module--window) .pexels-lib__search .input-search.field {
|
|
2998
|
+
padding: 0;
|
|
2999
|
+
background-color: transparent;
|
|
3000
|
+
}
|
|
3001
|
+
.wz-img-manager .wz-pagination {
|
|
2945
3002
|
width: 100%;
|
|
2946
3003
|
padding: 0;
|
|
2947
3004
|
|
|
@@ -3053,63 +3110,6 @@ $green-color: #2ecc71;
|
|
|
3053
3110
|
}
|
|
3054
3111
|
}
|
|
3055
3112
|
}
|
|
3056
|
-
.wz-img-manager .input-search.field {
|
|
3057
|
-
padding: 10px 20px;
|
|
3058
|
-
background-color: $gray-background;
|
|
3059
|
-
@include media('<tablet') {
|
|
3060
|
-
padding: 0!important;
|
|
3061
|
-
background-color: $white;
|
|
3062
|
-
}
|
|
3063
|
-
&.small-padding {
|
|
3064
|
-
padding: 10px 20px;
|
|
3065
|
-
}
|
|
3066
|
-
.input,
|
|
3067
|
-
.input:focus,
|
|
3068
|
-
.input.is-focused,
|
|
3069
|
-
.input:active,
|
|
3070
|
-
.input.is-active {
|
|
3071
|
-
font-size: rem(14);
|
|
3072
|
-
color: $main-text;
|
|
3073
|
-
border: rem(1) solid $input-border-search;
|
|
3074
|
-
box-shadow: none;
|
|
3075
|
-
padding: rem(13.5) rem(20) rem(13.5) rem(48);
|
|
3076
|
-
border-radius: rem(3);
|
|
3077
|
-
margin: 0;
|
|
3078
|
-
height: auto;
|
|
3079
|
-
min-height: unset;
|
|
3080
|
-
|
|
3081
|
-
&::placeholder {
|
|
3082
|
-
color: $placeholder-color;
|
|
3083
|
-
font-weight: normal;
|
|
3084
|
-
}
|
|
3085
|
-
}
|
|
3086
|
-
|
|
3087
|
-
.input:focus,
|
|
3088
|
-
.input.is-focused,
|
|
3089
|
-
.input:active,
|
|
3090
|
-
.input.is-active {
|
|
3091
|
-
border-color: $wizishop-blue;
|
|
3092
|
-
}
|
|
3093
|
-
|
|
3094
|
-
.icon {
|
|
3095
|
-
position: absolute;
|
|
3096
|
-
top: 50%;
|
|
3097
|
-
left: 20px;
|
|
3098
|
-
font-size: rem(18);
|
|
3099
|
-
transform: translateY(-50%);
|
|
3100
|
-
pointer-events: none;
|
|
3101
|
-
font-weight: 400;
|
|
3102
|
-
color: $placeholder-color;
|
|
3103
|
-
margin: 0;
|
|
3104
|
-
width: rem(18);
|
|
3105
|
-
height: rem(18);
|
|
3106
|
-
}
|
|
3107
|
-
}
|
|
3108
|
-
|
|
3109
|
-
.wz-img-manager .wz-img-manager__module:not(.wz-img-manager__module--window) .pexels-lib__search .input-search.field {
|
|
3110
|
-
padding: 0;
|
|
3111
|
-
background-color: transparent;
|
|
3112
|
-
}
|
|
3113
3113
|
|
|
3114
3114
|
|
|
3115
3115
|
.wac {
|
|
Binary file
|