@wizishop/img-manager 15.2.10 → 15.2.12

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.
@@ -36,6 +36,7 @@ export declare abstract class ImagesActionHandler {
36
36
  private getDataAPISub;
37
37
  private errorRemoveImg;
38
38
  private errorAlreadyUsedImg;
39
+ private imageNotFoundService;
39
40
  constructor(imgManager: ImgManagerService, imgSelectionService: ImgSelectionService, http: HttpClient, imgCDNService: ImgCDNService, imgEventCardService: ImgEventService, alertService: AlertService, translateService: TranslateService, apiService: ApiService);
40
41
  /** Event emit when the header checkbox is checked */
41
42
  onToggleAllCheckBoxRow(event: any): void;
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ImageNotFoundService {
3
+ imageNotFound($url: string): void;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImageNotFoundService, never>;
5
+ static ɵprov: i0.ɵɵInjectableDeclaration<ImageNotFoundService>;
6
+ }
@@ -52,7 +52,7 @@ import * as i49 from "@angular/cdk/table";
52
52
  import * as i50 from "@angular/cdk/drag-drop";
53
53
  import * as i51 from "@ngx-translate/core";
54
54
  export declare class WzImgManagerModule {
55
- static withConfig(ApiService: Provider): ModuleWithProviders<WzImgManagerModule>;
55
+ static withConfig(ApiService: Provider, ImageNotFoundProvider?: Provider): ModuleWithProviders<WzImgManagerModule>;
56
56
  static ɵfac: i0.ɵɵFactoryDeclaration<WzImgManagerModule, never>;
57
57
  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]>;
58
58
  static ɵinj: i0.ɵɵInjectorDeclaration<WzImgManagerModule>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/img-manager",
3
- "version": "15.2.10",
3
+ "version": "15.2.12",
4
4
  "description": "The best and the most beautiful image manager.",
5
5
  "repository": {
6
6
  "type": "git",
Binary file
@@ -940,9 +940,9 @@ $tag-radius: rem(20px)!default;
940
940
  z-index: 1;
941
941
 
942
942
  &--full {
943
- max-height: calc(100vh - 160px)!important;
944
- height: calc(100vh - 160px)!important;
945
- min-height: calc(100vh - 160px) !important;
943
+ max-height: calc(100vh - 160px);
944
+ height: calc(100vh - 160px);
945
+ min-height: calc(100vh - 160px) ;
946
946
  }
947
947
 
948
948
  &--smallDisplay {
@@ -966,12 +966,15 @@ $tag-radius: rem(20px)!default;
966
966
  &--hide {
967
967
  &--mosaic {
968
968
  min-height: 100px !important;
969
+ height: auto;
969
970
  &--small {
970
971
  min-height: unset !important;
972
+ height: auto;
971
973
  }
972
974
  }
973
975
  &--table {
974
976
  min-height: 170px !important;
977
+ height: auto;
975
978
  }
976
979
 
977
980
  }
@@ -1979,8 +1982,8 @@ $tag-radius: rem(20px)!default;
1979
1982
 
1980
1983
  &__scroll {
1981
1984
  position: relative;
1982
- max-height: calc(100vh - 50px)!important;
1983
- height: 100%;
1985
+ max-height: calc(100vh - 50px);
1986
+ height: calc(100vh - 160px);
1984
1987
 
1985
1988
  &--smallDisplay {
1986
1989
  max-height: 275px!important;
@@ -1989,6 +1992,14 @@ $tag-radius: rem(20px)!default;
1989
1992
  min-height: calc(100vh - 90px) !important;
1990
1993
  }
1991
1994
  }
1995
+
1996
+ &--noResult {
1997
+ max-height: 100px!important;
1998
+ }
1999
+
2000
+ &--hide {
2001
+ display: none;
2002
+ }
1992
2003
  }
1993
2004
 
1994
2005
  &__search {
@@ -2718,115 +2729,6 @@ $green-color: #2ecc71;
2718
2729
  line-height: rem(25);
2719
2730
  }
2720
2731
  }
2721
- .wz-img-manager .is-checkradio[type='checkbox'] {
2722
- outline: 0 !important;
2723
- & + label {
2724
- font-size: rem(14);
2725
- line-height: rem(24);
2726
- color: $input-radio-color-label;
2727
- padding-left: 26px;
2728
- outline: 0 !important;
2729
- &:before {
2730
- width: 16px;
2731
- height: 16px;
2732
- border: 1px solid $border-color;
2733
- top: 4px;
2734
- transition: all 0.3s ease-in-out;
2735
- }
2736
- &:after {
2737
- top: 6.3px !important;
2738
- left: 3px !important;
2739
- width: 10px;
2740
- height: 12px;
2741
- border: none !important;
2742
- background: transparent
2743
- url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' data-prefix='fas' data-icon='check' viewBox='0 0 512 512' class='svg-inline--fa fa-check fa-w-16 fa-5x'%3E%3Cpath fill='%23ffffff' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E")
2744
- center center / 8px 8px no-repeat;
2745
- transform: scale(1) translateY(0px) translateX(0px) rotate(0deg) !important;
2746
- transition: all 0.3s ease-in-out;
2747
- }
2748
- &:hover,
2749
- &:focus {
2750
- &:before {
2751
- border-color: $input-active-color !important;
2752
- }
2753
- }
2754
- &:before,
2755
- &:after {
2756
- outline: 0 !important;
2757
- }
2758
- }
2759
- &:hover {
2760
- & + label {
2761
- color: $input-radio-color-active-label;
2762
- &:before {
2763
- border-color: $input-active-color !important;
2764
- }
2765
- &:after {
2766
- border-color: $white !important;
2767
- }
2768
- }
2769
- &:not([disabled]) {
2770
- & + label {
2771
- &:before {
2772
- border-color: $input-active-color !important;
2773
- }
2774
- }
2775
- }
2776
- }
2777
- &:checked + label {
2778
- color: $input-radio-color-active-label;
2779
- &:before {
2780
- border: 1px solid $input-active-color;
2781
- background-color: $input-active-color;
2782
- transition: all 0.3s ease-in-out;
2783
- }
2784
- &:after {
2785
- left: 7px;
2786
- top: 8px;
2787
- transition: all 0.3s ease-in-out;
2788
- }
2789
- }
2790
- }
2791
-
2792
- .wz-img-manager .field {
2793
- &__row {
2794
- min-width: 100%;
2795
- margin: 0 0 10px;
2796
- }
2797
- &--nowrap {
2798
- display: inline-block;
2799
- width: auto;
2800
- min-width: 0;
2801
- margin: 0 10px 10px 0;
2802
- .field {
2803
- &__row {
2804
- width: auto;
2805
- display: inline-block;
2806
- margin: 0;
2807
- }
2808
- }
2809
- }
2810
- &.alone {
2811
- .is-checkradio[type='checkbox'] {
2812
- & + label {
2813
- padding: 0;
2814
- &:before {
2815
- border-width: 1px;
2816
- width: 16px;
2817
- height: 16px;
2818
- border-radius: 2px;
2819
- }
2820
- }
2821
- &:checked + label {
2822
- &:after {
2823
- top: 7px;
2824
- transform: scale(1.1) translateY(1px) translateX(6px) rotate(45deg);
2825
- }
2826
- }
2827
- }
2828
- }
2829
- }
2830
2732
  .wz-img-manager .dropdownWizi {
2831
2733
  padding: 10px;
2832
2734
 
@@ -2941,7 +2843,116 @@ $green-color: #2ecc71;
2941
2843
 
2942
2844
  .dropdownWizi:not(.is-hoverable) {
2943
2845
  cursor: not-allowed;
2944
- }.wz-img-manager .input-search.field {
2846
+ }.wz-img-manager .is-checkradio[type='checkbox'] {
2847
+ outline: 0 !important;
2848
+ & + label {
2849
+ font-size: rem(14);
2850
+ line-height: rem(24);
2851
+ color: $input-radio-color-label;
2852
+ padding-left: 26px;
2853
+ outline: 0 !important;
2854
+ &:before {
2855
+ width: 16px;
2856
+ height: 16px;
2857
+ border: 1px solid $border-color;
2858
+ top: 4px;
2859
+ transition: all 0.3s ease-in-out;
2860
+ }
2861
+ &:after {
2862
+ top: 6.3px !important;
2863
+ left: 3px !important;
2864
+ width: 10px;
2865
+ height: 12px;
2866
+ border: none !important;
2867
+ background: transparent
2868
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' data-prefix='fas' data-icon='check' viewBox='0 0 512 512' class='svg-inline--fa fa-check fa-w-16 fa-5x'%3E%3Cpath fill='%23ffffff' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E")
2869
+ center center / 8px 8px no-repeat;
2870
+ transform: scale(1) translateY(0px) translateX(0px) rotate(0deg) !important;
2871
+ transition: all 0.3s ease-in-out;
2872
+ }
2873
+ &:hover,
2874
+ &:focus {
2875
+ &:before {
2876
+ border-color: $input-active-color !important;
2877
+ }
2878
+ }
2879
+ &:before,
2880
+ &:after {
2881
+ outline: 0 !important;
2882
+ }
2883
+ }
2884
+ &:hover {
2885
+ & + label {
2886
+ color: $input-radio-color-active-label;
2887
+ &:before {
2888
+ border-color: $input-active-color !important;
2889
+ }
2890
+ &:after {
2891
+ border-color: $white !important;
2892
+ }
2893
+ }
2894
+ &:not([disabled]) {
2895
+ & + label {
2896
+ &:before {
2897
+ border-color: $input-active-color !important;
2898
+ }
2899
+ }
2900
+ }
2901
+ }
2902
+ &:checked + label {
2903
+ color: $input-radio-color-active-label;
2904
+ &:before {
2905
+ border: 1px solid $input-active-color;
2906
+ background-color: $input-active-color;
2907
+ transition: all 0.3s ease-in-out;
2908
+ }
2909
+ &:after {
2910
+ left: 7px;
2911
+ top: 8px;
2912
+ transition: all 0.3s ease-in-out;
2913
+ }
2914
+ }
2915
+ }
2916
+
2917
+ .wz-img-manager .field {
2918
+ &__row {
2919
+ min-width: 100%;
2920
+ margin: 0 0 10px;
2921
+ }
2922
+ &--nowrap {
2923
+ display: inline-block;
2924
+ width: auto;
2925
+ min-width: 0;
2926
+ margin: 0 10px 10px 0;
2927
+ .field {
2928
+ &__row {
2929
+ width: auto;
2930
+ display: inline-block;
2931
+ margin: 0;
2932
+ }
2933
+ }
2934
+ }
2935
+ &.alone {
2936
+ .is-checkradio[type='checkbox'] {
2937
+ & + label {
2938
+ padding: 0;
2939
+ &:before {
2940
+ border-width: 1px;
2941
+ width: 16px;
2942
+ height: 16px;
2943
+ border-radius: 2px;
2944
+ }
2945
+ }
2946
+ &:checked + label {
2947
+ &:after {
2948
+ top: 7px;
2949
+ transform: scale(1.1) translateY(1px) translateX(6px) rotate(45deg);
2950
+ }
2951
+ }
2952
+ }
2953
+ }
2954
+ }
2955
+ .wz-img-manager .input-search.field {
2945
2956
  padding: 10px 20px;
2946
2957
  background-color: $gray-background;
2947
2958
  @include media('<tablet') {
Binary file