@wizishop/img-manager 15.2.3 → 15.2.5

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.
Files changed (32) hide show
  1. package/esm2020/lib/components/pexels-lib/pexels-lib.component.mjs +24 -23
  2. package/esm2020/lib/services/alert.service.mjs +3 -6
  3. package/esm2020/lib/services/canva.service.mjs +3 -6
  4. package/esm2020/lib/services/config/img-cdn.service.mjs +3 -6
  5. package/esm2020/lib/services/dom.service.mjs +3 -6
  6. package/esm2020/lib/services/img-event.service.mjs +4 -7
  7. package/esm2020/lib/services/img-manager.service.mjs +6 -22
  8. package/esm2020/lib/services/img-selection.service.mjs +2 -18
  9. package/esm2020/lib/services/pexels.service.mjs +4 -7
  10. package/esm2020/lib/services/rename-picture.service.mjs +3 -4
  11. package/esm2020/lib/services/snackbar.service.mjs +64 -0
  12. package/esm2020/lib/services/table/filters-table.service.mjs +3 -6
  13. package/esm2020/lib/services/upload.service.mjs +8 -10
  14. package/esm2020/lib/services/user-settings.service.mjs +4 -7
  15. package/esm2020/lib/wz-img-manager.component.mjs +6 -11
  16. package/esm2020/lib/wz-img-manager.module.mjs +28 -2
  17. package/fesm2015/wizishop-img-manager.mjs +257 -246
  18. package/fesm2015/wizishop-img-manager.mjs.map +1 -1
  19. package/fesm2020/wizishop-img-manager.mjs +192 -181
  20. package/fesm2020/wizishop-img-manager.mjs.map +1 -1
  21. package/lib/components/pexels-lib/pexels-lib.component.d.ts +3 -4
  22. package/lib/services/config/img-cdn.service.d.ts +1 -2
  23. package/lib/services/img-event.service.d.ts +0 -1
  24. package/lib/services/img-manager.service.d.ts +1 -8
  25. package/lib/services/img-selection.service.d.ts +0 -6
  26. package/lib/services/snackbar.service.d.ts +19 -0
  27. package/lib/services/upload.service.d.ts +3 -5
  28. package/lib/services/user-settings.service.d.ts +0 -1
  29. package/lib/wz-img-manager.component.d.ts +2 -2
  30. package/package.json +1 -1
  31. package/wizishop-img-manager-15.2.5.tgz +0 -0
  32. package/wizishop-img-manager-15.2.3.tgz +0 -0
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ElementRef, OnInit, EventEmitter } from '@angular/core';
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 OnInit, AfterViewInit {
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
- nbColumuns: number;
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;
@@ -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,7 +1,6 @@
1
1
  import { ImgPictureDTO } from '../dto/img-manager.dto';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class ImgEventService {
4
- constructor();
5
4
  private imgToEditEvent;
6
5
  private imgRemoved;
7
6
  private imgAdded;
@@ -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,14 +6,13 @@ 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
- constructor(apiService: ApiService);
15
+ apiService: ApiService;
18
16
  shopImgList: ImgPicturesDTO;
19
17
  previousParams: ParamsImgManagerDTO;
20
18
  getShopImgList(params?: ParamsImgManagerDTO): Observable<ImgPicturesDTO>;
@@ -29,8 +27,3 @@ export declare class ImgManagerService {
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
- };
@@ -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,11 +1,9 @@
1
- import { ImgPictureDTO } from '../dto/img-manager.dto';
2
1
  import { ApiService } from './api.service';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class UploadService {
5
- private apiService;
6
- constructor(apiService: ApiService);
7
- uploadFile(formData: FormData): import("rxjs").Observable<ImgPictureDTO>;
8
- uploadFileByUrl(url: string, fileName?: string): import("rxjs").Observable<ImgPictureDTO>;
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>;
9
7
  static ɵfac: i0.ɵɵFactoryDeclaration<UploadService, never>;
10
8
  static ɵprov: i0.ɵɵInjectableDeclaration<UploadService>;
11
9
  }
@@ -1,7 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class UserSettingsService {
3
3
  private userdisplayPreference;
4
- constructor();
5
4
  /**
6
5
  * true : display list
7
6
  * false : display mosaic
@@ -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("./dto/img-manager.dto").ImgPictureDTO[]>;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/img-manager",
3
- "version": "15.2.3",
3
+ "version": "15.2.5",
4
4
  "description": "The best and the most beautiful image manager.",
5
5
  "repository": {
6
6
  "type": "git",
Binary file
Binary file