@wizishop/img-manager 14.0.13 → 15.0.2

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.
@@ -0,0 +1,2 @@
1
+ export declare const ImgManagerAllConfig: readonly ["window", "wizi-block", "fiche-product", "simple-with-button", "angular-fiche-product"];
2
+ export declare type ImgManagerConfig = typeof ImgManagerAllConfig[number];
@@ -2,6 +2,7 @@ import { HttpClient, HttpParams } from '@angular/common/http';
2
2
  import { Observable } from "rxjs";
3
3
  import { ImgPictureDTO, ParamsImgManagerDTO } from '../dto/img-manager.dto';
4
4
  import { ImgManagerDisplayConfig } from '../dto/export-dtos.api';
5
+ import { ImgManagerConfig } from '../dto/config/img-manager';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class ImgManagerService {
7
8
  private http;
@@ -26,7 +27,7 @@ export declare class ImgManagerService {
26
27
  changeImgName(fileName: string, id_file: string): Observable<Object>;
27
28
  removeImg(id_file: string): Observable<Object>;
28
29
  removeMultipleImg(id_array: string[]): Observable<Object>;
29
- getImgManagerDisplayConfig(displayName: "window" | "wizi-block" | "fiche-product" | "simple-with-button" | 'angular-fiche-product'): ImgManagerDisplayConfig;
30
+ getImgManagerDisplayConfig(displayName: ImgManagerConfig): ImgManagerDisplayConfig;
30
31
  getAllImgManagerDisplayConfig(): ImgManagerDisplayConfig[];
31
32
  static ɵfac: i0.ɵɵFactoryDeclaration<ImgManagerService, never>;
32
33
  static ɵprov: i0.ɵɵInjectableDeclaration<ImgManagerService>;
@@ -50,9 +50,8 @@ import * as i48 from "ngx-image-cropper";
50
50
  import * as i49 from "@angular/cdk/table";
51
51
  import * as i50 from "@angular/cdk/drag-drop";
52
52
  import * as i51 from "@ngx-translate/core";
53
- import * as i52 from "ngx-perfect-scrollbar";
54
53
  export declare class WzImgManagerModule {
55
54
  static ɵfac: i0.ɵɵFactoryDeclaration<WzImgManagerModule, never>;
56
- static ɵmod: i0.ɵɵNgModuleDeclaration<WzImgManagerModule, [typeof i1.WzImgManagerComponent, typeof i2.ImgTabsComponent, typeof i3.ImgUploadComponent, typeof i4.PexelLibComponent, typeof i5.ImgCardComponent, typeof i6.UploadListComponent, typeof i7.ImgEditorComponent, typeof i8.EditorInfoSectionComponent, typeof i9.CanvaBtnComponent, typeof i10.ImgSelectionComponent, typeof i11.LoaderComponent, typeof i12.DropdownComponent, typeof i13.CropperComponent, typeof i14.ImagesViewComponent, typeof i15.MosaicViewComponent, typeof i16.TableViewComponent, typeof i17.TableComponent, typeof i18.InputSearchComponent, typeof i19.PaginationComponent, typeof i20.CheckboxComponent, typeof i21.AlertComponent, typeof i22.PageSelectorComponent, typeof i23.SelectComponent, typeof i24.DragDropDirective, typeof i25.LoadingDirective, typeof i26.AutoHideDirective, typeof i27.CopyClipboardDirective, typeof i28.TableColumn, typeof i29.CheckBoxRow, typeof i30.TableColumnHeader, typeof i31.TableRow, typeof i32.AbstractDebounceDirective, typeof i33.DebounceKeyupDirective, typeof i34.ZindexToggleDirective, typeof i35.PagniationArrayTotalPages, typeof i36.PagniationIsLastPage, typeof i37.PagniationText, typeof i38.ImageSrcPipe, typeof i39.NumberToArray, typeof i40.LargeNumberOfPagePipe, typeof i41.SelectFiltersPipe], [typeof i42.CommonModule, typeof i43.HttpClientModule, typeof i44.FormsModule, typeof i45.NgScrollbarModule, typeof i46.NgScrollbarReachedModule, typeof i47.NwbAllModule, typeof i48.ImageCropperModule, typeof i49.CdkTableModule, typeof i50.DragDropModule, typeof i51.TranslateModule, typeof i52.PerfectScrollbarModule], [typeof i1.WzImgManagerComponent]>;
55
+ static ɵmod: i0.ɵɵNgModuleDeclaration<WzImgManagerModule, [typeof i1.WzImgManagerComponent, typeof i2.ImgTabsComponent, typeof i3.ImgUploadComponent, typeof i4.PexelLibComponent, typeof i5.ImgCardComponent, typeof i6.UploadListComponent, typeof i7.ImgEditorComponent, typeof i8.EditorInfoSectionComponent, typeof i9.CanvaBtnComponent, typeof i10.ImgSelectionComponent, typeof i11.LoaderComponent, typeof i12.DropdownComponent, typeof i13.CropperComponent, typeof i14.ImagesViewComponent, typeof i15.MosaicViewComponent, typeof i16.TableViewComponent, typeof i17.TableComponent, typeof i18.InputSearchComponent, typeof i19.PaginationComponent, typeof i20.CheckboxComponent, typeof i21.AlertComponent, typeof i22.PageSelectorComponent, typeof i23.SelectComponent, typeof i24.DragDropDirective, typeof i25.LoadingDirective, typeof i26.AutoHideDirective, typeof i27.CopyClipboardDirective, typeof i28.TableColumn, typeof i29.CheckBoxRow, typeof i30.TableColumnHeader, typeof i31.TableRow, typeof i32.AbstractDebounceDirective, typeof i33.DebounceKeyupDirective, typeof i34.ZindexToggleDirective, typeof i35.PagniationArrayTotalPages, typeof i36.PagniationIsLastPage, typeof i37.PagniationText, typeof i38.ImageSrcPipe, typeof i39.NumberToArray, typeof i40.LargeNumberOfPagePipe, typeof i41.SelectFiltersPipe], [typeof i42.CommonModule, typeof i43.HttpClientModule, typeof i44.FormsModule, typeof i45.NgScrollbarModule, typeof i46.NgScrollbarReachedModule, typeof i47.NwbAllModule, typeof i48.ImageCropperModule, typeof i49.CdkTableModule, typeof i50.DragDropModule, typeof i51.TranslateModule], [typeof i1.WzImgManagerComponent]>;
57
56
  static ɵinj: i0.ɵɵInjectorDeclaration<WzImgManagerModule>;
58
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/img-manager",
3
- "version": "14.0.13",
3
+ "version": "15.0.2",
4
4
  "description": "The best and the most beautiful image manager.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,35 +16,34 @@
16
16
  "author": "Geffrault Romain",
17
17
  "license": "UNLICENSED",
18
18
  "dependencies": {
19
- "tslib": "^2.0.0"
19
+ "tslib": "^2.4.1"
20
20
  },
21
21
  "peerDependencies": {
22
- "@angular/animations": "~14.0.5",
23
- "@angular/cdk": "^14.0.4",
24
- "@angular/common": "~14.0.5",
25
- "@angular/core": "~14.0.5",
26
- "@angular/forms": "~14.0.5",
27
- "@angular/platform-browser": "~14.0.5",
28
- "@angular/platform-browser-dynamic": "~14.0.5",
29
- "@angular/router": "~14.0.5",
22
+ "@angular/animations": "~15.0.4",
23
+ "@angular/cdk": "^15.0.3",
24
+ "@angular/common": "~15.0.4",
25
+ "@angular/core": "~15.0.4",
26
+ "@angular/forms": "~15.0.4",
27
+ "@angular/platform-browser": "~15.0.4",
28
+ "@angular/platform-browser-dynamic": "~15.0.4",
29
+ "@angular/router": "~15.0.4",
30
30
  "@ngx-translate/core": "^14.0.0",
31
31
  "@ngx-translate/http-loader": "^7.0.0",
32
- "@wizishop/img-manager": "^0.2.101",
33
- "@wizishop/ng-wizi-bulma": "^14.0.0",
32
+ "@wizishop/img-manager": "^15.0.1",
33
+ "@wizishop/ng-wizi-bulma": "^15.0.3",
34
34
  "bourbon": "^7.0.0",
35
35
  "bulma": "^0.9.4",
36
36
  "bulma-checkradio": "^2.1.3",
37
37
  "bulma-extensions": "^6.2.7",
38
38
  "bundle-scss": "^1.4.17",
39
39
  "include-media": "^1.4.10",
40
- "ngx-image-cropper": "^6.2.1",
41
- "ngx-perfect-scrollbar": "^10.1.1",
40
+ "ngx-image-cropper": "^6.3.2",
42
41
  "ngx-scrollbar": "^10.0.0",
43
- "nodemon": "^2.0.4",
44
- "rxjs": "^7.5.5",
45
- "sass": "^1.54.4",
42
+ "nodemon": "^2.0.20",
43
+ "rxjs": "^7.8.0",
44
+ "sass": "^1.57.1",
46
45
  "sass-flex-mixin": "^1.0.3",
47
- "zone.js": "~0.11.4"
46
+ "zone.js": "^0.12.0"
48
47
  },
49
48
  "module": "fesm2015/wizishop-img-manager.mjs",
50
49
  "es2020": "fesm2020/wizishop-img-manager.mjs",
package/public-api.d.ts CHANGED
@@ -4,4 +4,5 @@ export { ImgSelectionService } from './lib/services/img-selection.service';
4
4
  export { ImgManagerService } from './lib/services/img-manager.service';
5
5
  export { RenamePictureService } from './lib/services/rename-picture.service';
6
6
  export { CanvaService } from './lib/services/canva.service';
7
+ export * from './lib/dto/ImgManagerDisplayConfig.dto';
7
8
  export * from './lib/dto/export-dtos.api';
Binary file
@@ -787,145 +787,6 @@ $button-focus-border-color: $primary-button-hover !default;
787
787
  $button-disabled-border-color: $primary-button-hover !default;
788
788
 
789
789
  $tag-radius: rem(20px)!default;
790
- //.wz-img-manager useful to keep the css priority
791
- .wz-img-manager .canva-btn {
792
- background-color: $img-main-color;
793
- border: 2px solid $img-main-color;
794
- padding: 0;
795
- height: fit-content;
796
- color: white;
797
- padding-left: rem(9);
798
- transition: .3s ease;
799
- margin: 0!important;
800
- &:hover, &:focus {
801
- border-color: darken($img-main-color, 15%);
802
- }
803
- > span {
804
- &:first-child {
805
- z-index: 2;
806
- position: relative;
807
- transform: translateX(7px);
808
- }
809
- }
810
- &__logo {
811
- z-index: 1;
812
- }
813
- }
814
-
815
- .wz-img-manager .canva-btn .btnLoadingAnnimation {
816
- background-color: $img-main-color;
817
- cursor: not-allowed;
818
- }
819
-
820
- .wz-img-manager .canva.dropdown {
821
- z-index: 9999;
822
- .dropdown-menu {
823
- display: none!important;
824
- margin-top: 10px!important;
825
- &:before {
826
- content: '';
827
- display: block;
828
- position: absolute;
829
- bottom: 100%;
830
- left: 0;
831
- width: 100%;
832
- height: 10px;
833
- }
834
- }
835
-
836
- .displayDropDownMenu {
837
- display: block!important;
838
- }
839
-
840
- .dropdown-menu.dropDownShadow {
841
- padding-bottom: 0;
842
- padding-top: 0;
843
- margin-top: 1px;
844
- }
845
-
846
- .dropdown-menu {
847
- min-width: 300px;
848
- width: 300px;
849
-
850
- .dropdown-content {
851
- padding-top: 0px;
852
- }
853
-
854
- .dropdown-item {
855
- color: $img-grey-color;
856
- display: flex;
857
- justify-content: space-between;
858
- align-items: center;
859
- padding: 12px 20px;
860
- margin: 0 0 5px;
861
- &:last-child {
862
- margin: 0;
863
- }
864
-
865
- p {
866
- margin: 0;
867
- line-height: rem(16);
868
- }
869
-
870
- p:first-child {
871
- color: #1D2A3B;
872
- font-size: rem(14);
873
- }
874
-
875
- p:last-child {
876
- color: #526384;
877
- font-size: rem(14);
878
- }
879
- }
880
-
881
- .dropdown-item:hover {
882
- background-color: whitesmoke;
883
- cursor: pointer;
884
- color: black;
885
- }
886
-
887
- .dropdown-item.expectedSizes {
888
- font-weight: 500;
889
- }
890
-
891
- .dropdownTitle {
892
- font-size: 14px;
893
- background-color: $img-main-color;
894
- padding: rem(9.5) 0;
895
- text-align: center;
896
-
897
- p {
898
- font-size: 14px;
899
- color: white;
900
- margin: 0;
901
- font-weight: 500;
902
- }
903
- }
904
-
905
- .infoItem {
906
- padding: 18px 20px 11px 20px;
907
- line-height: 1.5;
908
- font-weight: 500;
909
-
910
- p {
911
- margin: 0;
912
- font-size: rem(16);
913
- line-height: rem(19);
914
- font-weight: 500;
915
- }
916
- }
917
-
918
- .dropdown-item-wrapper {
919
- border: 1px solid #DEE2ED;
920
- border-radius: 3px;
921
- margin: 0 20px 5px 20px;
922
- }
923
- }
924
- }
925
-
926
- .noTooltip .tooltip.is-tooltip-left:hover::before, .noTooltip .tooltip.is-tooltip-left:hover:not(.is-loading)::after {
927
- display: none;
928
- }
929
790
  .wz-img-manager .images-view {
930
791
  text-align: left;
931
792
 
@@ -1142,6 +1003,145 @@ $tag-radius: rem(20px)!default;
1142
1003
  }
1143
1004
  }
1144
1005
  }
1006
+ //.wz-img-manager useful to keep the css priority
1007
+ .wz-img-manager .canva-btn {
1008
+ background-color: $img-main-color;
1009
+ border: 2px solid $img-main-color;
1010
+ padding: 0;
1011
+ height: fit-content;
1012
+ color: white;
1013
+ padding-left: rem(9);
1014
+ transition: .3s ease;
1015
+ margin: 0!important;
1016
+ &:hover, &:focus {
1017
+ border-color: darken($img-main-color, 15%);
1018
+ }
1019
+ > span {
1020
+ &:first-child {
1021
+ z-index: 2;
1022
+ position: relative;
1023
+ transform: translateX(7px);
1024
+ }
1025
+ }
1026
+ &__logo {
1027
+ z-index: 1;
1028
+ }
1029
+ }
1030
+
1031
+ .wz-img-manager .canva-btn .btnLoadingAnnimation {
1032
+ background-color: $img-main-color;
1033
+ cursor: not-allowed;
1034
+ }
1035
+
1036
+ .wz-img-manager .canva.dropdown {
1037
+ z-index: 9999;
1038
+ .dropdown-menu {
1039
+ display: none!important;
1040
+ margin-top: 10px!important;
1041
+ &:before {
1042
+ content: '';
1043
+ display: block;
1044
+ position: absolute;
1045
+ bottom: 100%;
1046
+ left: 0;
1047
+ width: 100%;
1048
+ height: 10px;
1049
+ }
1050
+ }
1051
+
1052
+ .displayDropDownMenu {
1053
+ display: block!important;
1054
+ }
1055
+
1056
+ .dropdown-menu.dropDownShadow {
1057
+ padding-bottom: 0;
1058
+ padding-top: 0;
1059
+ margin-top: 1px;
1060
+ }
1061
+
1062
+ .dropdown-menu {
1063
+ min-width: 300px;
1064
+ width: 300px;
1065
+
1066
+ .dropdown-content {
1067
+ padding-top: 0px;
1068
+ }
1069
+
1070
+ .dropdown-item {
1071
+ color: $img-grey-color;
1072
+ display: flex;
1073
+ justify-content: space-between;
1074
+ align-items: center;
1075
+ padding: 12px 20px;
1076
+ margin: 0 0 5px;
1077
+ &:last-child {
1078
+ margin: 0;
1079
+ }
1080
+
1081
+ p {
1082
+ margin: 0;
1083
+ line-height: rem(16);
1084
+ }
1085
+
1086
+ p:first-child {
1087
+ color: #1D2A3B;
1088
+ font-size: rem(14);
1089
+ }
1090
+
1091
+ p:last-child {
1092
+ color: #526384;
1093
+ font-size: rem(14);
1094
+ }
1095
+ }
1096
+
1097
+ .dropdown-item:hover {
1098
+ background-color: whitesmoke;
1099
+ cursor: pointer;
1100
+ color: black;
1101
+ }
1102
+
1103
+ .dropdown-item.expectedSizes {
1104
+ font-weight: 500;
1105
+ }
1106
+
1107
+ .dropdownTitle {
1108
+ font-size: 14px;
1109
+ background-color: $img-main-color;
1110
+ padding: rem(9.5) 0;
1111
+ text-align: center;
1112
+
1113
+ p {
1114
+ font-size: 14px;
1115
+ color: white;
1116
+ margin: 0;
1117
+ font-weight: 500;
1118
+ }
1119
+ }
1120
+
1121
+ .infoItem {
1122
+ padding: 18px 20px 11px 20px;
1123
+ line-height: 1.5;
1124
+ font-weight: 500;
1125
+
1126
+ p {
1127
+ margin: 0;
1128
+ font-size: rem(16);
1129
+ line-height: rem(19);
1130
+ font-weight: 500;
1131
+ }
1132
+ }
1133
+
1134
+ .dropdown-item-wrapper {
1135
+ border: 1px solid #DEE2ED;
1136
+ border-radius: 3px;
1137
+ margin: 0 20px 5px 20px;
1138
+ }
1139
+ }
1140
+ }
1141
+
1142
+ .noTooltip .tooltip.is-tooltip-left:hover::before, .noTooltip .tooltip.is-tooltip-left:hover:not(.is-loading)::after {
1143
+ display: none;
1144
+ }
1145
1145
  .wz-img-manager .img-editor {
1146
1146
  &__scroll {
1147
1147
  position: relative;
@@ -2187,7 +2187,7 @@ $tag-radius: rem(20px)!default;
2187
2187
  }
2188
2188
  }
2189
2189
 
2190
- &__scroll {
2190
+ /* &__scroll {
2191
2191
  position: relative;
2192
2192
  height: 100%;
2193
2193
 
@@ -2209,7 +2209,7 @@ $tag-radius: rem(20px)!default;
2209
2209
  min-width: calc(100% - 1rem) !important;
2210
2210
  width: calc(100% - 1rem) !important;
2211
2211
  }
2212
- }
2212
+ } */
2213
2213
 
2214
2214
  &__box {
2215
2215
  margin: 0 0.8rem 30px 0.3rem;
@@ -2312,7 +2312,7 @@ $tag-radius: rem(20px)!default;
2312
2312
  }
2313
2313
 
2314
2314
  @media screen and (max-width: 768px) {
2315
- .wz-img-manager .img-tabs__tabsFirst .img-tabs__tabsFirst__list .upload-list__scroll {
2315
+ /* .wz-img-manager .img-tabs__tabsFirst .img-tabs__tabsFirst__list .upload-list__scroll {
2316
2316
  max-height: none!important;
2317
2317
 
2318
2318
  .ng-scroll-content {
@@ -2320,7 +2320,7 @@ $tag-radius: rem(20px)!default;
2320
2320
  min-width: 100%!important;
2321
2321
  width: 100%!important;
2322
2322
  }
2323
- }
2323
+ } */
2324
2324
  }
2325
2325
  .mosaic {
2326
2326
  width: 100%;
@@ -3879,6 +3879,7 @@ $card-img-size-small: 140px;
3879
3879
  font-size: rem(12);
3880
3880
  line-height: rem(14);
3881
3881
  color: $img-grey-color;
3882
+ width: auto;
3882
3883
  white-space: nowrap;
3883
3884
  overflow: hidden;
3884
3885
  text-overflow: ellipsis;
Binary file