@wizishop/img-manager 15.2.63-beta → 15.2.64-beta
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/assets/i18n/en.json +1 -1
- package/assets/i18n/es.json +1 -1
- package/assets/i18n/fr.json +1 -1
- package/assets/i18n/it.json +1 -1
- package/esm2020/lib/components/images-view/images-actions-handler.mjs +2 -1
- package/esm2020/lib/components/images-view/images-view.component.mjs +12 -9
- package/esm2020/lib/components/images-view/table-view/table-view.component.mjs +3 -3
- package/esm2020/lib/components/img-editor/img-editor.component.mjs +3 -3
- package/esm2020/lib/components/img-editor/show-iframe/show-iframe.component.mjs +62 -11
- package/esm2020/lib/components/img-selection/img-selection.component.mjs +3 -3
- package/esm2020/lib/components/shared/table/table.component.mjs +2 -1
- package/esm2020/lib/dto/img-manager.dto.mjs +1 -1
- package/esm2020/lib/services/img-manager.service.mjs +3 -2
- package/esm2020/lib/services/table/filters-table.service.mjs +2 -1
- package/fesm2015/wizishop-img-manager.mjs +77 -20
- package/fesm2015/wizishop-img-manager.mjs.map +1 -1
- package/fesm2020/wizishop-img-manager.mjs +76 -19
- package/fesm2020/wizishop-img-manager.mjs.map +1 -1
- package/lib/components/images-view/images-view.component.d.ts +3 -2
- package/lib/components/img-editor/show-iframe/show-iframe.component.d.ts +2 -1
- package/lib/dto/img-manager.dto.d.ts +8 -0
- package/lib/services/img-manager.service.d.ts +8 -14
- package/lib/services/table/filters-table.service.d.ts +1 -0
- package/package.json +1 -1
- package/wizishop-img-manager-15.2.64-beta.tgz +0 -0
- package/wz-img-manager.scss +108 -14
- package/wizishop-img-manager-15.2.63-beta.tgz +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ElementRef, AfterViewInit, EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { ImgPictureDTO, ParamsImgManagerDTO } from '../../dto/img-manager.dto';
|
|
3
3
|
import { ImgManagerService } from '../../services/img-manager.service';
|
|
4
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
5
|
import { ImgEventService } from '../../services/img-event.service';
|
|
5
6
|
import { ImgSelectionService } from '../../services/img-selection.service';
|
|
6
7
|
import { UserSettingsService } from '../../services/user-settings.service';
|
|
@@ -39,8 +40,7 @@ export declare class ImagesViewComponent implements AfterViewInit {
|
|
|
39
40
|
initComponent: boolean;
|
|
40
41
|
failLoaded: boolean;
|
|
41
42
|
confirmImgSup: boolean;
|
|
42
|
-
|
|
43
|
-
get searchImagesParameters$(): import("rxjs").BehaviorSubject<ParamsImgManagerDTO>;
|
|
43
|
+
get searchImagesParameters$(): BehaviorSubject<ParamsImgManagerDTO>;
|
|
44
44
|
params: ParamsImgManagerDTO;
|
|
45
45
|
private errorGetAllImg;
|
|
46
46
|
private errorGetTotalImg;
|
|
@@ -88,6 +88,7 @@ export declare class ImagesViewComponent implements AfterViewInit {
|
|
|
88
88
|
search: string;
|
|
89
89
|
limit: string;
|
|
90
90
|
page: string;
|
|
91
|
+
type: string;
|
|
91
92
|
};
|
|
92
93
|
private initVariables;
|
|
93
94
|
private setSelectedProperty;
|
|
@@ -8,7 +8,8 @@ export declare class EditorShowIframeComponent implements OnChanges {
|
|
|
8
8
|
constructor(sanitizer: DomSanitizer);
|
|
9
9
|
ngOnChanges(): void;
|
|
10
10
|
private buildSafeIframeUrl;
|
|
11
|
-
private
|
|
11
|
+
private isYouTubeUrl;
|
|
12
|
+
private extractYouTubeIds;
|
|
12
13
|
private extractVimeoId;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditorShowIframeComponent, never>;
|
|
14
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<EditorShowIframeComponent, "show-iframe", never, { "videoLink": "videoLink"; }, {}, never, never, false, never>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpParams } from '@angular/common/http';
|
|
2
|
-
import { BehaviorSubject, Subject } from "rxjs";
|
|
3
|
-
import {
|
|
2
|
+
import { BehaviorSubject, Observable, Subject } from "rxjs";
|
|
3
|
+
import { ImageListData, ParamsImgManagerDTO } from '../dto/img-manager.dto';
|
|
4
4
|
import { ImgManagerDisplayConfig } from '../dto/export-dtos.api';
|
|
5
5
|
import { ImgManagerConfig } from '../dto/config/img-manager';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -19,21 +19,15 @@ export declare class ImgManagerService {
|
|
|
19
19
|
private get DEFAULT_DATA_LIST();
|
|
20
20
|
searchImagesParameters$: BehaviorSubject<ParamsImgManagerDTO>;
|
|
21
21
|
refreshImageList$: Subject<void>;
|
|
22
|
-
resetImageList$:
|
|
22
|
+
resetImageList$: Observable<import("../dto/img-manager.dto").ImgPictureDTO>;
|
|
23
23
|
isLoading$: BehaviorSubject<boolean>;
|
|
24
24
|
private fetchImagesList$;
|
|
25
|
-
imageList$:
|
|
26
|
-
imageList: ImgPicturesDTO;
|
|
27
|
-
imageTotal: number;
|
|
28
|
-
} | {
|
|
29
|
-
imageList: ImgPicturesDTO;
|
|
30
|
-
imageTotal: number;
|
|
31
|
-
}>;
|
|
25
|
+
imageList$: Observable<ImageListData>;
|
|
32
26
|
getHttpParameters(params?: ParamsImgManagerDTO): HttpParams;
|
|
33
|
-
getShopImg(idFile: string):
|
|
34
|
-
replaceImg(imageBase64: string, id_file: string):
|
|
35
|
-
removeImg(id_file: string):
|
|
36
|
-
removeMultipleImg(id_array: string[]):
|
|
27
|
+
getShopImg(idFile: string): Observable<import("../dto/img-manager.dto").ImgPictureDTO>;
|
|
28
|
+
replaceImg(imageBase64: string, id_file: string): Observable<import("../dto/img-manager.dto").ImgPictureDTO>;
|
|
29
|
+
removeImg(id_file: string): Observable<import("../dto/img-manager.dto").ImgPictureDTO>;
|
|
30
|
+
removeMultipleImg(id_array: string[]): Observable<import("../dto/img-manager.dto").ImgPictureDTO[]>;
|
|
37
31
|
getImgManagerDisplayConfig(displayName: ImgManagerConfig): ImgManagerDisplayConfig;
|
|
38
32
|
getAllImgManagerDisplayConfig(): ImgManagerDisplayConfig[];
|
|
39
33
|
ngOnDestroy(): void;
|
package/package.json
CHANGED
|
Binary file
|
package/wz-img-manager.scss
CHANGED
|
@@ -987,7 +987,7 @@ $tag-radius: rem(20px)!default;
|
|
|
987
987
|
&__container {
|
|
988
988
|
display: flex;
|
|
989
989
|
justify-content: space-between;
|
|
990
|
-
margin: 0 0
|
|
990
|
+
margin: 0 0;
|
|
991
991
|
|
|
992
992
|
> div {
|
|
993
993
|
display: flex;
|
|
@@ -998,7 +998,7 @@ $tag-radius: rem(20px)!default;
|
|
|
998
998
|
}
|
|
999
999
|
|
|
1000
1000
|
&--window {
|
|
1001
|
-
margin: rem(30) 0
|
|
1001
|
+
margin: rem(30) 0 0;
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
1004
1004
|
&--uploadTab {
|
|
@@ -1150,6 +1150,32 @@ $tag-radius: rem(20px)!default;
|
|
|
1150
1150
|
}
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
|
+
|
|
1154
|
+
.filter-video {
|
|
1155
|
+
width: 100%;
|
|
1156
|
+
margin: 0 0 20px;
|
|
1157
|
+
label {
|
|
1158
|
+
display: flex;
|
|
1159
|
+
gap: 10px;
|
|
1160
|
+
width: fit-content;
|
|
1161
|
+
align-items: center;
|
|
1162
|
+
}
|
|
1163
|
+
span {
|
|
1164
|
+
font-weight: 500;
|
|
1165
|
+
}
|
|
1166
|
+
select {
|
|
1167
|
+
padding: 0 10px;
|
|
1168
|
+
min-height: 25px;
|
|
1169
|
+
line-height: 25px;
|
|
1170
|
+
border: 1px solid $img-input-border;
|
|
1171
|
+
appearance: none;
|
|
1172
|
+
-webkit-appearance: none;
|
|
1173
|
+
-moz-appearance: none;
|
|
1174
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='black' fill='none'/%3E%3C/svg%3E");
|
|
1175
|
+
background-repeat: no-repeat;
|
|
1176
|
+
background-position: right 10px center;
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1153
1179
|
.wz-img-manager .img-editor {
|
|
1154
1180
|
&__scroll {
|
|
1155
1181
|
position: relative;
|
|
@@ -1530,6 +1556,27 @@ $tag-radius: rem(20px)!default;
|
|
|
1530
1556
|
transition: opacity .3s ease .1s, transform .3s ease .1s, visibility 0s linear 0s;
|
|
1531
1557
|
}
|
|
1532
1558
|
}
|
|
1559
|
+
&__video {
|
|
1560
|
+
width: fit-content;
|
|
1561
|
+
height: 30px;
|
|
1562
|
+
display: flex;
|
|
1563
|
+
justify-content: center;
|
|
1564
|
+
align-items: center;
|
|
1565
|
+
position: absolute;
|
|
1566
|
+
top: 10px;
|
|
1567
|
+
left: 10px;
|
|
1568
|
+
background-color: rgba(29, 42, 59, 0.8);
|
|
1569
|
+
gap: 5px;
|
|
1570
|
+
border-radius: 3px;
|
|
1571
|
+
padding: 0 10px;
|
|
1572
|
+
color: white;
|
|
1573
|
+
font-size: rem(12);
|
|
1574
|
+
font-weight: 500;
|
|
1575
|
+
i {
|
|
1576
|
+
color: white;
|
|
1577
|
+
font-size: rem(14);
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1533
1580
|
.delete-btn {
|
|
1534
1581
|
position: absolute;
|
|
1535
1582
|
top: 100%;
|
|
@@ -2591,6 +2638,28 @@ $tag-radius: rem(20px)!default;
|
|
|
2591
2638
|
padding-top: 100%;
|
|
2592
2639
|
}
|
|
2593
2640
|
|
|
2641
|
+
&__container__video {
|
|
2642
|
+
height: 16px;
|
|
2643
|
+
width: 60px;
|
|
2644
|
+
display: flex;
|
|
2645
|
+
justify-content: center;
|
|
2646
|
+
align-items: center;
|
|
2647
|
+
position: absolute;
|
|
2648
|
+
bottom: 0;
|
|
2649
|
+
left: 0;
|
|
2650
|
+
background-color: rgba(29, 42, 59, 0.8);
|
|
2651
|
+
gap: 5px;
|
|
2652
|
+
border-radius: 3px;
|
|
2653
|
+
padding: 0;
|
|
2654
|
+
color: white;
|
|
2655
|
+
font-size: rem(10);
|
|
2656
|
+
font-weight: 500;
|
|
2657
|
+
i {
|
|
2658
|
+
color: white;
|
|
2659
|
+
font-size: rem(10);
|
|
2660
|
+
}
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2594
2663
|
&__img {
|
|
2595
2664
|
margin: 0!important;
|
|
2596
2665
|
position: absolute;
|
|
@@ -2691,35 +2760,51 @@ $tag-radius: rem(20px)!default;
|
|
|
2691
2760
|
|
|
2692
2761
|
.grey {
|
|
2693
2762
|
color: $img-grey-color;
|
|
2694
|
-
}
|
|
2763
|
+
}
|
|
2695
2764
|
|
|
2696
|
-
.buttonCopy {
|
|
2765
|
+
.buttonCopy {
|
|
2697
2766
|
background-color: $img-green-color; // Vert léger
|
|
2698
2767
|
border: 1px solid $img-green-color; // Bordure verte légère
|
|
2699
2768
|
border-radius: 4px;
|
|
2700
2769
|
padding: 8px 12px;
|
|
2701
2770
|
cursor: pointer;
|
|
2702
2771
|
transition: all 0.2s ease;
|
|
2703
|
-
|
|
2772
|
+
|
|
2704
2773
|
i {
|
|
2705
2774
|
color: $img-white; // Icône verte
|
|
2706
2775
|
transition: color 0.2s ease;
|
|
2707
2776
|
}
|
|
2708
|
-
|
|
2777
|
+
|
|
2709
2778
|
&:hover {
|
|
2710
2779
|
background-color: $img-green-color-secondary; // Vert plus foncé au survol
|
|
2711
2780
|
border-color: $img-green-color-secondary;
|
|
2712
|
-
|
|
2781
|
+
|
|
2713
2782
|
i {
|
|
2714
2783
|
color: $img-white; // Icône verte plus foncée au survol
|
|
2715
2784
|
}
|
|
2716
2785
|
}
|
|
2717
|
-
|
|
2786
|
+
|
|
2718
2787
|
&:active {
|
|
2719
2788
|
background-color: #b1dfbb;
|
|
2720
2789
|
transform: scale(0.98);
|
|
2721
2790
|
}
|
|
2722
|
-
}
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2793
|
+
.wrap-name-info {
|
|
2794
|
+
width: 100%;
|
|
2795
|
+
> p {
|
|
2796
|
+
padding: 0 0 0 15px;
|
|
2797
|
+
display: flex;
|
|
2798
|
+
align-items: center;
|
|
2799
|
+
gap: 10px;
|
|
2800
|
+
color: $wizishop-blue;
|
|
2801
|
+
font-size: rem(14);
|
|
2802
|
+
i {
|
|
2803
|
+
color: $wizishop-blue;
|
|
2804
|
+
}
|
|
2805
|
+
}
|
|
2806
|
+
}
|
|
2807
|
+
image-cropper {
|
|
2723
2808
|
max-height: 60vh;
|
|
2724
2809
|
}.img-editor__infoSection__propertySEO__tooltips {
|
|
2725
2810
|
i {
|
|
@@ -2823,11 +2908,6 @@ $tag-radius: rem(20px)!default;
|
|
|
2823
2908
|
}
|
|
2824
2909
|
}
|
|
2825
2910
|
}
|
|
2826
|
-
iframe {
|
|
2827
|
-
width: 100%!important;
|
|
2828
|
-
height: 309px;
|
|
2829
|
-
}
|
|
2830
|
-
|
|
2831
2911
|
.show-iframe {
|
|
2832
2912
|
box-sizing: border-box;
|
|
2833
2913
|
padding: 20px;
|
|
@@ -2837,8 +2917,22 @@ iframe {
|
|
|
2837
2917
|
font-size: rem(16);
|
|
2838
2918
|
font-weight: 600;
|
|
2839
2919
|
color: $main-text;
|
|
2920
|
+
padding: 20px 0;
|
|
2840
2921
|
}
|
|
2841
2922
|
}
|
|
2923
|
+
|
|
2924
|
+
.video-container {
|
|
2925
|
+
width: 100%;
|
|
2926
|
+
max-width: 600px;
|
|
2927
|
+
aspect-ratio: 16 / 9;
|
|
2928
|
+
margin: 0 auto;
|
|
2929
|
+
iframe {
|
|
2930
|
+
width: 100%;
|
|
2931
|
+
height: 100%;
|
|
2932
|
+
border: 0;
|
|
2933
|
+
}
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2842
2936
|
$default-color-p-alert: #1e5568;
|
|
2843
2937
|
$success-color-p-alert: #11552e;
|
|
2844
2938
|
$warning-color-p-alert: #3a0505;
|
|
Binary file
|