@wizishop/img-manager 15.2.63-beta → 15.2.63
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 +4 -3
- package/esm2020/lib/services/table/filters-table.service.mjs +2 -1
- package/fesm2015/wizishop-img-manager.mjs +78 -22
- package/fesm2015/wizishop-img-manager.mjs.map +1 -1
- package/fesm2020/wizishop-img-manager.mjs +77 -21
- 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.63.tgz +0 -0
- package/wz-img-manager.scss +124 -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
|
@@ -592,6 +592,22 @@ $base-font: 'Work Sans', helvetica !default;@mixin simple_transition($type: null
|
|
|
592
592
|
overflow: scroll;
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
+
|
|
596
|
+
.img-tabs {
|
|
597
|
+
&.small {
|
|
598
|
+
@include media('>=desktop') {
|
|
599
|
+
.img-tabs__tabsFirst__upload + .img-tabs__tabsFirst__list {
|
|
600
|
+
.img-card {
|
|
601
|
+
&:hover, &:focus {
|
|
602
|
+
.img-card__container__video {
|
|
603
|
+
display: none;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|
|
595
611
|
.wz-img-manager {
|
|
596
612
|
|
|
597
613
|
&__selectionHandler {
|
|
@@ -987,7 +1003,7 @@ $tag-radius: rem(20px)!default;
|
|
|
987
1003
|
&__container {
|
|
988
1004
|
display: flex;
|
|
989
1005
|
justify-content: space-between;
|
|
990
|
-
margin: 0 0
|
|
1006
|
+
margin: 0 0;
|
|
991
1007
|
|
|
992
1008
|
> div {
|
|
993
1009
|
display: flex;
|
|
@@ -998,7 +1014,7 @@ $tag-radius: rem(20px)!default;
|
|
|
998
1014
|
}
|
|
999
1015
|
|
|
1000
1016
|
&--window {
|
|
1001
|
-
margin: rem(30) 0
|
|
1017
|
+
margin: rem(30) 0 0;
|
|
1002
1018
|
}
|
|
1003
1019
|
|
|
1004
1020
|
&--uploadTab {
|
|
@@ -1150,6 +1166,32 @@ $tag-radius: rem(20px)!default;
|
|
|
1150
1166
|
}
|
|
1151
1167
|
}
|
|
1152
1168
|
}
|
|
1169
|
+
|
|
1170
|
+
.filter-video {
|
|
1171
|
+
width: 100%;
|
|
1172
|
+
margin: 0 0 20px;
|
|
1173
|
+
label {
|
|
1174
|
+
display: flex;
|
|
1175
|
+
gap: 10px;
|
|
1176
|
+
width: fit-content;
|
|
1177
|
+
align-items: center;
|
|
1178
|
+
}
|
|
1179
|
+
span {
|
|
1180
|
+
font-weight: 500;
|
|
1181
|
+
}
|
|
1182
|
+
select {
|
|
1183
|
+
padding: 0 10px;
|
|
1184
|
+
min-height: 25px;
|
|
1185
|
+
line-height: 25px;
|
|
1186
|
+
border: 1px solid $img-input-border;
|
|
1187
|
+
appearance: none;
|
|
1188
|
+
-webkit-appearance: none;
|
|
1189
|
+
-moz-appearance: none;
|
|
1190
|
+
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");
|
|
1191
|
+
background-repeat: no-repeat;
|
|
1192
|
+
background-position: right 10px center;
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1153
1195
|
.wz-img-manager .img-editor {
|
|
1154
1196
|
&__scroll {
|
|
1155
1197
|
position: relative;
|
|
@@ -1530,6 +1572,27 @@ $tag-radius: rem(20px)!default;
|
|
|
1530
1572
|
transition: opacity .3s ease .1s, transform .3s ease .1s, visibility 0s linear 0s;
|
|
1531
1573
|
}
|
|
1532
1574
|
}
|
|
1575
|
+
&__video {
|
|
1576
|
+
width: fit-content;
|
|
1577
|
+
height: 30px;
|
|
1578
|
+
display: flex;
|
|
1579
|
+
justify-content: center;
|
|
1580
|
+
align-items: center;
|
|
1581
|
+
position: absolute;
|
|
1582
|
+
top: 10px;
|
|
1583
|
+
left: 10px;
|
|
1584
|
+
background-color: rgba(29, 42, 59, 0.8);
|
|
1585
|
+
gap: 5px;
|
|
1586
|
+
border-radius: 3px;
|
|
1587
|
+
padding: 0 10px;
|
|
1588
|
+
color: white;
|
|
1589
|
+
font-size: rem(12);
|
|
1590
|
+
font-weight: 500;
|
|
1591
|
+
i {
|
|
1592
|
+
color: white;
|
|
1593
|
+
font-size: rem(14);
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1533
1596
|
.delete-btn {
|
|
1534
1597
|
position: absolute;
|
|
1535
1598
|
top: 100%;
|
|
@@ -2591,6 +2654,28 @@ $tag-radius: rem(20px)!default;
|
|
|
2591
2654
|
padding-top: 100%;
|
|
2592
2655
|
}
|
|
2593
2656
|
|
|
2657
|
+
&__container__video {
|
|
2658
|
+
height: 16px;
|
|
2659
|
+
width: 60px;
|
|
2660
|
+
display: flex;
|
|
2661
|
+
justify-content: center;
|
|
2662
|
+
align-items: center;
|
|
2663
|
+
position: absolute;
|
|
2664
|
+
bottom: 0;
|
|
2665
|
+
left: 0;
|
|
2666
|
+
background-color: rgba(29, 42, 59, 0.8);
|
|
2667
|
+
gap: 5px;
|
|
2668
|
+
border-radius: 3px;
|
|
2669
|
+
padding: 0;
|
|
2670
|
+
color: white;
|
|
2671
|
+
font-size: rem(10);
|
|
2672
|
+
font-weight: 500;
|
|
2673
|
+
i {
|
|
2674
|
+
color: white;
|
|
2675
|
+
font-size: rem(10);
|
|
2676
|
+
}
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2594
2679
|
&__img {
|
|
2595
2680
|
margin: 0!important;
|
|
2596
2681
|
position: absolute;
|
|
@@ -2691,35 +2776,51 @@ $tag-radius: rem(20px)!default;
|
|
|
2691
2776
|
|
|
2692
2777
|
.grey {
|
|
2693
2778
|
color: $img-grey-color;
|
|
2694
|
-
}
|
|
2779
|
+
}
|
|
2695
2780
|
|
|
2696
|
-
.buttonCopy {
|
|
2781
|
+
.buttonCopy {
|
|
2697
2782
|
background-color: $img-green-color; // Vert léger
|
|
2698
2783
|
border: 1px solid $img-green-color; // Bordure verte légère
|
|
2699
2784
|
border-radius: 4px;
|
|
2700
2785
|
padding: 8px 12px;
|
|
2701
2786
|
cursor: pointer;
|
|
2702
2787
|
transition: all 0.2s ease;
|
|
2703
|
-
|
|
2788
|
+
|
|
2704
2789
|
i {
|
|
2705
2790
|
color: $img-white; // Icône verte
|
|
2706
2791
|
transition: color 0.2s ease;
|
|
2707
2792
|
}
|
|
2708
|
-
|
|
2793
|
+
|
|
2709
2794
|
&:hover {
|
|
2710
2795
|
background-color: $img-green-color-secondary; // Vert plus foncé au survol
|
|
2711
2796
|
border-color: $img-green-color-secondary;
|
|
2712
|
-
|
|
2797
|
+
|
|
2713
2798
|
i {
|
|
2714
2799
|
color: $img-white; // Icône verte plus foncée au survol
|
|
2715
2800
|
}
|
|
2716
2801
|
}
|
|
2717
|
-
|
|
2802
|
+
|
|
2718
2803
|
&:active {
|
|
2719
2804
|
background-color: #b1dfbb;
|
|
2720
2805
|
transform: scale(0.98);
|
|
2721
2806
|
}
|
|
2722
|
-
}
|
|
2807
|
+
}
|
|
2808
|
+
|
|
2809
|
+
.wrap-name-info {
|
|
2810
|
+
width: 100%;
|
|
2811
|
+
> p {
|
|
2812
|
+
padding: 0 0 0 15px;
|
|
2813
|
+
display: flex;
|
|
2814
|
+
align-items: center;
|
|
2815
|
+
gap: 10px;
|
|
2816
|
+
color: $wizishop-blue;
|
|
2817
|
+
font-size: rem(14);
|
|
2818
|
+
i {
|
|
2819
|
+
color: $wizishop-blue;
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
image-cropper {
|
|
2723
2824
|
max-height: 60vh;
|
|
2724
2825
|
}.img-editor__infoSection__propertySEO__tooltips {
|
|
2725
2826
|
i {
|
|
@@ -2823,11 +2924,6 @@ $tag-radius: rem(20px)!default;
|
|
|
2823
2924
|
}
|
|
2824
2925
|
}
|
|
2825
2926
|
}
|
|
2826
|
-
iframe {
|
|
2827
|
-
width: 100%!important;
|
|
2828
|
-
height: 309px;
|
|
2829
|
-
}
|
|
2830
|
-
|
|
2831
2927
|
.show-iframe {
|
|
2832
2928
|
box-sizing: border-box;
|
|
2833
2929
|
padding: 20px;
|
|
@@ -2837,8 +2933,22 @@ iframe {
|
|
|
2837
2933
|
font-size: rem(16);
|
|
2838
2934
|
font-weight: 600;
|
|
2839
2935
|
color: $main-text;
|
|
2936
|
+
padding: 20px 0;
|
|
2937
|
+
}
|
|
2938
|
+
}
|
|
2939
|
+
|
|
2940
|
+
.video-container {
|
|
2941
|
+
width: 100%;
|
|
2942
|
+
max-width: 600px;
|
|
2943
|
+
aspect-ratio: 16 / 9;
|
|
2944
|
+
margin: 0 auto;
|
|
2945
|
+
iframe {
|
|
2946
|
+
width: 100%;
|
|
2947
|
+
height: 100%;
|
|
2948
|
+
border: 0;
|
|
2840
2949
|
}
|
|
2841
2950
|
}
|
|
2951
|
+
|
|
2842
2952
|
$default-color-p-alert: #1e5568;
|
|
2843
2953
|
$success-color-p-alert: #11552e;
|
|
2844
2954
|
$warning-color-p-alert: #3a0505;
|
|
Binary file
|