@wizishop/img-manager 18.2.3-beta → 19.0.0-beta.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.
Files changed (109) hide show
  1. package/README.md +393 -393
  2. package/assets/i18n/en.json +1 -1
  3. package/assets/i18n/es.json +1 -1
  4. package/assets/i18n/fr.json +1 -1
  5. package/assets/i18n/it.json +1 -1
  6. package/fesm2022/wizishop-img-manager.mjs +1150 -953
  7. package/fesm2022/wizishop-img-manager.mjs.map +1 -1
  8. package/lib/components/images-view/images-actions-handler.d.ts +3 -2
  9. package/lib/components/images-view/images-view.component.d.ts +11 -5
  10. package/lib/components/images-view/table-view/table-view.component.d.ts +1 -0
  11. package/lib/components/img-editor/img-editor.component.d.ts +8 -1
  12. package/lib/components/img-editor/info-video/info-video.component.d.ts +20 -0
  13. package/lib/components/img-editor/show-iframe/show-iframe.component.d.ts +16 -0
  14. package/lib/components/img-selection/img-selection.component.d.ts +4 -3
  15. package/lib/components/img-tabs/img-tabs.component.d.ts +1 -0
  16. package/lib/dto/img-manager.dto.d.ts +9 -0
  17. package/lib/services/api.service.d.ts +1 -0
  18. package/lib/services/img-event.service.d.ts +3 -0
  19. package/lib/services/img-manager.service.d.ts +11 -14
  20. package/lib/services/rename-picture.service.d.ts +1 -0
  21. package/lib/services/table/filters-table.service.d.ts +1 -0
  22. package/lib/services/video-info.service.d.ts +23 -0
  23. package/lib/wz-img-manager.component.d.ts +2 -2
  24. package/lib/wz-img-manager.module.d.ts +46 -44
  25. package/package.json +15 -24
  26. package/wizishop-img-manager-19.0.0-beta.2.tgz +0 -0
  27. package/wz-img-manager.scss +2422 -2112
  28. package/esm2022/lib/animations/easeInOut/ease-in-out.animation.mjs +0 -12
  29. package/esm2022/lib/animations/insertRemove/insert-remove.animation.mjs +0 -9
  30. package/esm2022/lib/animations/listAnnimation/list.animation.mjs +0 -16
  31. package/esm2022/lib/components/canva-btn/canva-btn.component.mjs +0 -73
  32. package/esm2022/lib/components/images-view/images-actions-handler.mjs +0 -168
  33. package/esm2022/lib/components/images-view/images-view.component.mjs +0 -391
  34. package/esm2022/lib/components/images-view/mosaic-view/img-card/img-card.component.mjs +0 -70
  35. package/esm2022/lib/components/images-view/mosaic-view/mosaic-view.component.mjs +0 -73
  36. package/esm2022/lib/components/images-view/table-view/table-view.component.mjs +0 -48
  37. package/esm2022/lib/components/img-editor/cropper/cropper.component.mjs +0 -313
  38. package/esm2022/lib/components/img-editor/img-editor.component.mjs +0 -129
  39. package/esm2022/lib/components/img-editor/info-section/info-section.component.mjs +0 -58
  40. package/esm2022/lib/components/img-selection/img-selection.component.mjs +0 -58
  41. package/esm2022/lib/components/img-tabs/img-tabs.component.mjs +0 -128
  42. package/esm2022/lib/components/img-upload/img-upload.component.mjs +0 -133
  43. package/esm2022/lib/components/loader/loader.component.mjs +0 -21
  44. package/esm2022/lib/components/pexels-lib/pexels-lib.component.mjs +0 -211
  45. package/esm2022/lib/components/shared/alert/alert.component.mjs +0 -26
  46. package/esm2022/lib/components/shared/checkbox/checkbox.component.mjs +0 -56
  47. package/esm2022/lib/components/shared/dropdown/dropdown.component.mjs +0 -21
  48. package/esm2022/lib/components/shared/input-search/input-search.component.mjs +0 -53
  49. package/esm2022/lib/components/shared/pagination/page-selector/page-selector.component.mjs +0 -50
  50. package/esm2022/lib/components/shared/pagination/pagination.component.mjs +0 -49
  51. package/esm2022/lib/components/shared/select/call-to-action.model.mjs +0 -2
  52. package/esm2022/lib/components/shared/select/select-items.dto.mjs +0 -2
  53. package/esm2022/lib/components/shared/select/select.component.mjs +0 -117
  54. package/esm2022/lib/components/shared/table/table.component.mjs +0 -124
  55. package/esm2022/lib/components/upload-list/upload-list.component.mjs +0 -85
  56. package/esm2022/lib/directives/abstract-debounce/abstract-debounce.directive.mjs +0 -41
  57. package/esm2022/lib/directives/abstract-debounce/debounce-keyup.directive.mjs +0 -24
  58. package/esm2022/lib/directives/auto-hide.directive.mjs +0 -51
  59. package/esm2022/lib/directives/copy-to-clipboard.directive.mjs +0 -36
  60. package/esm2022/lib/directives/drag-drop.directive.mjs +0 -55
  61. package/esm2022/lib/directives/loading.directive.mjs +0 -43
  62. package/esm2022/lib/directives/table/checkBoxRow.directive.mjs +0 -130
  63. package/esm2022/lib/directives/table/column.directive.mjs +0 -50
  64. package/esm2022/lib/directives/table/columnHeader.directive.mjs +0 -215
  65. package/esm2022/lib/directives/table/raw.directive.mjs +0 -34
  66. package/esm2022/lib/directives/zindex-toggle.directive.mjs +0 -45
  67. package/esm2022/lib/dto/ImgManagerDisplayConfig.dto.mjs +0 -2
  68. package/esm2022/lib/dto/canva-create-design.dto.mjs +0 -9
  69. package/esm2022/lib/dto/canva.dto.mjs +0 -6
  70. package/esm2022/lib/dto/config/apis/api.dto.mjs +0 -11
  71. package/esm2022/lib/dto/config/external/external-config.dto.mjs +0 -5
  72. package/esm2022/lib/dto/config/image-cdn/image-cdn-config.dto.mjs +0 -2
  73. package/esm2022/lib/dto/config/img-manager.mjs +0 -8
  74. package/esm2022/lib/dto/export-dtos.api.mjs +0 -11
  75. package/esm2022/lib/dto/img-editor-config.dto.mjs +0 -2
  76. package/esm2022/lib/dto/img-manager.dto.mjs +0 -2
  77. package/esm2022/lib/dto/pexels-img.dto.mjs +0 -2
  78. package/esm2022/lib/dto/picture-name-update.dto.mjs +0 -2
  79. package/esm2022/lib/dto/stateDisplayed.dto.mjs +0 -2
  80. package/esm2022/lib/dto/tabDisplayed.dto.mjs +0 -2
  81. package/esm2022/lib/dto/wizi-block-media.dto.mjs +0 -7
  82. package/esm2022/lib/pipes/images/img-src.pipe.mjs +0 -29
  83. package/esm2022/lib/pipes/number-to-array.pipe.mjs +0 -16
  84. package/esm2022/lib/pipes/pagination/array-total-pages/array-pages.pipe.mjs +0 -28
  85. package/esm2022/lib/pipes/pagination/large-number-of-page/large-number-of-page.pipe.mjs +0 -53
  86. package/esm2022/lib/pipes/pagination/text/custom-text.pipe.mjs +0 -36
  87. package/esm2022/lib/pipes/pagination/total-pages/is-last-page.pipe.mjs +0 -25
  88. package/esm2022/lib/pipes/select/select-filters.pipe.mjs +0 -19
  89. package/esm2022/lib/services/alert.service.mjs +0 -53
  90. package/esm2022/lib/services/api.service.mjs +0 -10
  91. package/esm2022/lib/services/canva.service.mjs +0 -165
  92. package/esm2022/lib/services/config/img-cdn.service.mjs +0 -21
  93. package/esm2022/lib/services/dom.service.mjs +0 -31
  94. package/esm2022/lib/services/icon.service.mjs +0 -18
  95. package/esm2022/lib/services/image-not-found.service.mjs +0 -13
  96. package/esm2022/lib/services/img-event.service.mjs +0 -33
  97. package/esm2022/lib/services/img-manager.service.mjs +0 -134
  98. package/esm2022/lib/services/img-selection.service.mjs +0 -75
  99. package/esm2022/lib/services/pexels.service.mjs +0 -66
  100. package/esm2022/lib/services/rename-picture.service.mjs +0 -66
  101. package/esm2022/lib/services/snackbar.service.mjs +0 -67
  102. package/esm2022/lib/services/table/filters-table.service.mjs +0 -61
  103. package/esm2022/lib/services/upload.service.mjs +0 -20
  104. package/esm2022/lib/services/user-settings.service.mjs +0 -23
  105. package/esm2022/lib/wz-img-manager.component.mjs +0 -209
  106. package/esm2022/lib/wz-img-manager.module.mjs +0 -225
  107. package/esm2022/public-api.mjs +0 -14
  108. package/esm2022/wizishop-img-manager.mjs +0 -5
  109. package/wizishop-img-manager-18.2.3-beta.tgz +0 -0
@@ -38,13 +38,14 @@ export declare abstract class ImagesActionHandler {
38
38
  private errorAlreadyUsedImg;
39
39
  private imageNotFoundService;
40
40
  constructor(imgManager: ImgManagerService, imgSelectionService: ImgSelectionService, http: HttpClient, imgCDNService: ImgCDNService, imgEventCardService: ImgEventService, alertService: AlertService, translateService: TranslateService, apiService: ApiService);
41
- ngOnInit(): void;
42
41
  /** Event emit when the header checkbox is checked */
43
42
  onToggleAllCheckBoxRow(event: any): void;
44
43
  onToggleDelSelection(index: number): void;
45
44
  /** Event emit each time filters change */
46
45
  onFiltersChange(): void;
47
46
  onEdit(picture: ImgPictureDTO): void;
47
+ redirectToVideo(picture: ImgPictureDTO): void;
48
+ copyLink(file_name: string): void;
48
49
  onToggleSelectImg(index: number): void;
49
50
  onRemoveImg(picture: ImgPictureDTO): void;
50
51
  onPictureNotLoading(event: any): void;
@@ -55,5 +56,5 @@ export declare abstract class ImagesActionHandler {
55
56
  private downloadUrl;
56
57
  ngDestroy(): void;
57
58
  static ɵfac: i0.ɵɵFactoryDeclaration<ImagesActionHandler, never>;
58
- static ɵdir: i0.ɵɵDirectiveDeclaration<ImagesActionHandler, never, never, { "picturesList": { "alias": "picturesList"; "required": false; }; "tableFilters": { "alias": "tableFilters"; "required": false; }; "displayPexelsResults": { "alias": "displayPexelsResults"; "required": false; }; "disable": { "alias": "disable"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "stateDisplayed": { "alias": "stateDisplayed"; "required": false; }; }, { "picturesListChange": "picturesListChange"; "disableChange": "disableChange"; "filtersChange": "filtersChange"; "pictureNameChange": "pictureNameChange"; }, never, never, false, never>;
59
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ImagesActionHandler, never, never, { "picturesList": { "alias": "picturesList"; "required": false; }; "tableFilters": { "alias": "tableFilters"; "required": false; }; "displayPexelsResults": { "alias": "displayPexelsResults"; "required": false; }; "disable": { "alias": "disable"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "stateDisplayed": { "alias": "stateDisplayed"; "required": false; }; }, { "picturesListChange": "picturesListChange"; "disableChange": "disableChange"; "filtersChange": "filtersChange"; "pictureNameChange": "pictureNameChange"; }, never, never, true, never>;
59
60
  }
@@ -1,7 +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 { Observable } from 'rxjs';
4
+ import { BehaviorSubject } from 'rxjs';
5
5
  import { ImgEventService } from '../../services/img-event.service';
6
6
  import { ImgSelectionService } from '../../services/img-selection.service';
7
7
  import { UserSettingsService } from '../../services/user-settings.service';
@@ -40,17 +40,22 @@ export declare class ImagesViewComponent implements AfterViewInit {
40
40
  initComponent: boolean;
41
41
  failLoaded: boolean;
42
42
  confirmImgSup: boolean;
43
- previousSearchValue: string;
44
- get searchImagesParameters$(): import("rxjs").BehaviorSubject<ParamsImgManagerDTO>;
43
+ get searchImagesParameters$(): BehaviorSubject<ParamsImgManagerDTO>;
45
44
  params: ParamsImgManagerDTO;
46
45
  private errorGetAllImg;
47
46
  private errorGetTotalImg;
48
47
  private errorGetImg;
49
48
  private errorRemoveImg;
50
49
  private destroy$;
51
- vm$: Observable<any>;
50
+ vm$: import("rxjs").Observable<{
51
+ isLoading: boolean;
52
+ displayPexelsResults: boolean;
53
+ picturesList: ImgPictureDTO[];
54
+ imageTotal: number;
55
+ tableFilters: TableFilters;
56
+ skipSetImagesToDisplay: boolean;
57
+ }>;
52
58
  constructor(imgManager: ImgManagerService, imgEventService: ImgEventService, imgSelectionService: ImgSelectionService, alertService: AlertService, userSettingsService: UserSettingsService, renamePictureService: RenamePictureService, changeDetectorRef: ChangeDetectorRef);
53
- ngOnInit(): void;
54
59
  private getTableFilters;
55
60
  ngAfterViewInit(): void;
56
61
  /**
@@ -83,6 +88,7 @@ export declare class ImagesViewComponent implements AfterViewInit {
83
88
  search: string;
84
89
  limit: string;
85
90
  page: string;
91
+ type: string;
86
92
  };
87
93
  private initVariables;
88
94
  private setSelectedProperty;
@@ -13,6 +13,7 @@ export declare class TableViewComponent extends ImagesActionHandler implements O
13
13
  dataTableName: string;
14
14
  constructor(imgManager: ImgManagerService, imgSelectionService: ImgSelectionService, http: HttpClient, imgCDNService: ImgCDNService, imgEventCardService: ImgEventService, alertService: AlertService, translateService: TranslateService, apiService: ApiService);
15
15
  ngOnInit(): void;
16
+ copyImageLink(file_name: string): Promise<void>;
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<TableViewComponent, never>;
17
18
  static ɵcmp: i0.ɵɵComponentDeclaration<TableViewComponent, "table-view", never, {}, {}, never, never, false, never>;
18
19
  }
@@ -8,12 +8,18 @@ export declare class ImgEditorComponent implements OnInit {
8
8
  private renamePictureService;
9
9
  stateDisplayed: any;
10
10
  imgToEdit: ImgPictureDTO;
11
+ set isVideoEdit(value: boolean);
12
+ get isVideoEdit(): boolean;
13
+ private _isVideoEdit;
11
14
  editClosed: EventEmitter<any>;
12
15
  isLoading: boolean;
13
16
  isImgModified: boolean;
14
17
  isNameModified: boolean;
15
18
  currentCroppedImage: string;
16
19
  private previousName;
20
+ isEditorLinkActive: boolean;
21
+ isVideoModified: boolean;
22
+ private previousVideoLink;
17
23
  msgFailSave: string;
18
24
  msgFailLoad: string;
19
25
  msgSuccessEdit: string;
@@ -24,7 +30,8 @@ export declare class ImgEditorComponent implements OnInit {
24
30
  onRestartEdit(): void;
25
31
  onCancel(): void;
26
32
  onImgCropped(imgBase64: string): void;
33
+ onDeleteVideo(): void;
27
34
  private renameAndReplaceImg;
28
35
  static ɵfac: i0.ɵɵFactoryDeclaration<ImgEditorComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<ImgEditorComponent, "img-editor", never, { "stateDisplayed": { "alias": "stateDisplayed"; "required": false; }; "imgToEdit": { "alias": "imgToEdit"; "required": false; }; }, { "editClosed": "editClosed"; }, never, never, false, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImgEditorComponent, "img-editor", never, { "stateDisplayed": { "alias": "stateDisplayed"; "required": false; }; "imgToEdit": { "alias": "imgToEdit"; "required": false; }; "isVideoEdit": { "alias": "isVideoEdit"; "required": false; }; }, { "editClosed": "editClosed"; }, never, never, false, never>;
30
37
  }
@@ -0,0 +1,20 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { VideoInfoService } from "../../../services/video-info.service";
3
+ import * as i0 from "@angular/core";
4
+ export declare class EditorInfoVideoComponent implements OnInit {
5
+ private videoInfoService;
6
+ videoLink: string;
7
+ videoLinkChange: EventEmitter<string>;
8
+ isVideoModified: boolean;
9
+ isVideoModifiedChange: EventEmitter<boolean>;
10
+ deleteVideo: EventEmitter<void>;
11
+ videoDuration: string;
12
+ videoPublishDate: string;
13
+ constructor(videoInfoService: VideoInfoService);
14
+ ngOnInit(): void;
15
+ onVideoLinkChange(value: string): void;
16
+ loadVideoInfos(): void;
17
+ onDelete(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<EditorInfoVideoComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<EditorInfoVideoComponent, "info-video", never, { "videoLink": { "alias": "videoLink"; "required": false; }; "isVideoModified": { "alias": "isVideoModified"; "required": false; }; }, { "videoLinkChange": "videoLinkChange"; "isVideoModifiedChange": "isVideoModifiedChange"; "deleteVideo": "deleteVideo"; }, never, never, false, never>;
20
+ }
@@ -0,0 +1,16 @@
1
+ import { OnChanges } from '@angular/core';
2
+ import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
3
+ import * as i0 from "@angular/core";
4
+ export declare class EditorShowIframeComponent implements OnChanges {
5
+ private sanitizer;
6
+ videoLink: string;
7
+ safeUrl: SafeResourceUrl | null;
8
+ constructor(sanitizer: DomSanitizer);
9
+ ngOnChanges(): void;
10
+ private buildSafeIframeUrl;
11
+ private isYouTubeUrl;
12
+ private extractYouTubeIds;
13
+ private extractVimeoId;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<EditorShowIframeComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<EditorShowIframeComponent, "show-iframe", never, { "videoLink": { "alias": "videoLink"; "required": false; }; }, {}, never, never, false, never>;
16
+ }
@@ -2,7 +2,6 @@ import { EventEmitter } from '@angular/core';
2
2
  import { ImgSelectionService } from '../../services/img-selection.service';
3
3
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
4
4
  import { tabDisplayed } from '../../dto/export-dtos.api';
5
- import { Observable } from 'rxjs';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class ImgSelectionComponent {
8
7
  private imgSelectionService;
@@ -12,11 +11,13 @@ export declare class ImgSelectionComponent {
12
11
  cancellingAll: boolean;
13
12
  importingAll: boolean;
14
13
  dragStart: boolean;
15
- vm$: Observable<any>;
14
+ vm$: import("rxjs").Observable<{
15
+ imgSelectedList: import("../../dto/img-manager.dto").ImgPictureDTO[];
16
+ isLoading: boolean;
17
+ }>;
16
18
  trashPositionIndex: number;
17
19
  trashPositionLeft: string;
18
20
  constructor(imgSelectionService: ImgSelectionService);
19
- ngOnInit(): void;
20
21
  init(): void;
21
22
  removeImg(index: number): void;
22
23
  drop(event: CdkDragDrop<string[]>): void;
@@ -23,6 +23,7 @@ export declare class ImgTabsComponent implements OnInit {
23
23
  editTab: boolean;
24
24
  imgToEdit: ImgPictureDTO;
25
25
  imgUpload: boolean;
26
+ isVideoEdit: boolean;
26
27
  imgUploadedComponent: UploadListComponent;
27
28
  snackBarNewVersionConfig: NwbSnackbarConfig;
28
29
  constructor(imgEventEditService: ImgEventService, alertService: AlertService, route: Router);
@@ -18,6 +18,7 @@ export interface ImgPictureDTO {
18
18
  delSelected?: boolean;
19
19
  deleted?: boolean;
20
20
  imgNotLoaded?: boolean;
21
+ video_link?: string;
21
22
  }
22
23
  export interface ImgPicturesDTO {
23
24
  data: ImgPictureDTO[];
@@ -30,4 +31,12 @@ export interface ParamsImgManagerDTO {
30
31
  limit: string;
31
32
  page: string;
32
33
  search?: string;
34
+ type?: string;
35
+ }
36
+ export interface ImageListData {
37
+ imageList: {
38
+ data: ImgPictureDTO[];
39
+ page: number;
40
+ };
41
+ imageTotal: number;
33
42
  }
@@ -21,6 +21,7 @@ export declare abstract class ApiService {
21
21
  abstract uploadFileByUrl(url: string, fileName?: string): Observable<ImgPictureDTO>;
22
22
  abstract replaceImg(imageBase64: string, id_file: string): Observable<ImgPictureDTO>;
23
23
  abstract changeImgName(fileName: string, id_file: string): Observable<ImgPictureDTO>;
24
+ abstract changeVideoLink(videoLink: string, id_file: string): Observable<ImgPictureDTO>;
24
25
  abstract removeImg(id_file: string): Observable<ImgPictureDTO>;
25
26
  abstract removeMultipleImg(id_array: string[]): Observable<ImgPictureDTO[]>;
26
27
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiService, never>;
@@ -4,10 +4,13 @@ import * as i0 from "@angular/core";
4
4
  export declare class ImgEventService {
5
5
  imgRemoved$: BehaviorSubject<string>;
6
6
  private imgToEditEvent;
7
+ private imgToVideoEvent;
7
8
  private imgAdded;
8
9
  private listDisplayedChange;
9
10
  emitImgToEdit(imgToEdit: ImgPictureDTO): void;
11
+ emitImgToVideo(imgToEdit: ImgPictureDTO): void;
10
12
  getImgToEditEventListener(): import("rxjs").Observable<ImgPictureDTO>;
13
+ getImgToVideoEventListener(): import("rxjs").Observable<ImgPictureDTO>;
11
14
  emitImgAdded(id_file: string): void;
12
15
  getImgAddedEventListner(): import("rxjs").Observable<string>;
13
16
  emitlistDisplayedChange(value: boolean): void;
@@ -1,11 +1,12 @@
1
1
  import { HttpParams } from '@angular/common/http';
2
- import { BehaviorSubject, Subject } from "rxjs";
3
- import { ImgPicturesDTO, ParamsImgManagerDTO } from '../dto/img-manager.dto';
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";
7
7
  export declare class ImgManagerService {
8
8
  private readonly uploadService;
9
+ private readonly ngZone;
9
10
  params: HttpParams;
10
11
  private pageFicheProductConfig;
11
12
  private angularFicheProductConfig;
@@ -18,24 +19,20 @@ export declare class ImgManagerService {
18
19
  private get DEFAULT_DATA_LIST();
19
20
  searchImagesParameters$: BehaviorSubject<ParamsImgManagerDTO>;
20
21
  refreshImageList$: Subject<void>;
21
- resetImageList$: import("rxjs").Observable<import("../dto/img-manager.dto").ImgPictureDTO>;
22
+ resetImageList$: Observable<import("../dto/img-manager.dto").ImgPictureDTO>;
22
23
  isLoading$: BehaviorSubject<boolean>;
23
24
  private fetchImagesList$;
24
- imageList$: import("rxjs").Observable<{
25
- imageList: ImgPicturesDTO;
26
- imageTotal: number;
27
- } | {
28
- imageList: ImgPicturesDTO;
29
- imageTotal: number;
30
- }>;
25
+ imageList$: Observable<ImageListData>;
31
26
  getHttpParameters(params?: ParamsImgManagerDTO): HttpParams;
32
- getShopImg(idFile: string): import("rxjs").Observable<import("../dto/img-manager.dto").ImgPictureDTO>;
33
- replaceImg(imageBase64: string, id_file: string): import("rxjs").Observable<import("../dto/img-manager.dto").ImgPictureDTO>;
34
- removeImg(id_file: string): import("rxjs").Observable<import("../dto/img-manager.dto").ImgPictureDTO>;
35
- removeMultipleImg(id_array: string[]): import("rxjs").Observable<import("../dto/img-manager.dto").ImgPictureDTO[]>;
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[]>;
36
31
  getImgManagerDisplayConfig(displayName: ImgManagerConfig): ImgManagerDisplayConfig;
37
32
  getAllImgManagerDisplayConfig(): ImgManagerDisplayConfig[];
38
33
  ngOnDestroy(): void;
34
+ copyToClipboard(url: string): Promise<boolean>;
35
+ private fallbackCopyToClipboard;
39
36
  static ɵfac: i0.ɵɵFactoryDeclaration<ImgManagerService, never>;
40
37
  static ɵprov: i0.ɵɵInjectableDeclaration<ImgManagerService>;
41
38
  }
@@ -14,6 +14,7 @@ export declare class RenamePictureService {
14
14
  private msgImgNameSaved;
15
15
  constructor(apiService: ApiService, alertService: AlertService, imgManagerService: ImgManagerService);
16
16
  setPicturesList(picturesList: ImgPictureDTO[]): void;
17
+ changeVideoLink(videoLink: string, idFile: string): import("rxjs").Observable<ImgPictureDTO>;
17
18
  renamePicture(pictureNameUpdate: PictureNameUpdate): void;
18
19
  changeImageName(name: string, idFile: string): import("rxjs").Observable<ImgPictureDTO>;
19
20
  private getPictureById;
@@ -4,6 +4,7 @@ import * as i0 from "@angular/core";
4
4
  export interface TableFilters extends PaginationFilters {
5
5
  sort: string;
6
6
  order: boolean;
7
+ type: string;
7
8
  searchValue: string;
8
9
  }
9
10
  export declare class FiltersTableService {
@@ -0,0 +1,23 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import * as i0 from "@angular/core";
3
+ export declare class VideoInfoService {
4
+ private http;
5
+ private YT_API_KEY;
6
+ private YT_API_URL;
7
+ constructor(http: HttpClient);
8
+ getVideoInfo(videoUrl: string): import("rxjs").Observable<{
9
+ duration: string;
10
+ publishDate: string;
11
+ }>;
12
+ private isYouTube;
13
+ private isVimeo;
14
+ private extractYoutubeId;
15
+ private extractVimeoId;
16
+ private getYouTubeInfo;
17
+ private formatYoutubeDuration;
18
+ private getVimeoInfo;
19
+ private formatVimeoDuration;
20
+ private formatDate;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<VideoInfoService, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<VideoInfoService>;
23
+ }
@@ -29,8 +29,8 @@ export declare class WzImgManagerComponent implements OnInit {
29
29
  set showImgManagerModule(activate: boolean);
30
30
  get showImgManagerModule(): boolean;
31
31
  onKeydownHandler(event: KeyboardEvent): void;
32
- imgSelectionChange: EventEmitter<any>;
33
- imageUploaded: EventEmitter<any>;
32
+ imgSelectionChange: import("rxjs").BehaviorSubject<import("@wizishop/img-manager").ImgPictureDTO[]>;
33
+ imageUploaded: import("rxjs").Subject<import("@wizishop/img-manager").ImgPictureDTO>;
34
34
  close: boolean;
35
35
  selectImgEvent: Subscription;
36
36
  listDisplayed: boolean;
@@ -8,52 +8,54 @@ import * as i5 from "./components/images-view/mosaic-view/img-card/img-card.comp
8
8
  import * as i6 from "./components/upload-list/upload-list.component";
9
9
  import * as i7 from "./components/img-editor/img-editor.component";
10
10
  import * as i8 from "./components/img-editor/info-section/info-section.component";
11
- import * as i9 from "./components/canva-btn/canva-btn.component";
12
- import * as i10 from "./components/img-selection/img-selection.component";
13
- import * as i11 from "./components/loader/loader.component";
14
- import * as i12 from "./components/shared/dropdown/dropdown.component";
15
- import * as i13 from "./components/img-editor/cropper/cropper.component";
16
- import * as i14 from "./components/images-view/images-view.component";
17
- import * as i15 from "./components/images-view/mosaic-view/mosaic-view.component";
18
- import * as i16 from "./components/images-view/table-view/table-view.component";
19
- import * as i17 from "./components/shared/table/table.component";
20
- import * as i18 from "./components/shared/input-search/input-search.component";
21
- import * as i19 from "./components/shared/pagination/pagination.component";
22
- import * as i20 from "./components/shared/checkbox/checkbox.component";
23
- import * as i21 from "./components/shared/alert/alert.component";
24
- import * as i22 from "./components/shared/pagination/page-selector/page-selector.component";
25
- import * as i23 from "./components/shared/select/select.component";
26
- import * as i24 from "./directives/drag-drop.directive";
27
- import * as i25 from "./directives/loading.directive";
28
- import * as i26 from "./directives/auto-hide.directive";
29
- import * as i27 from "./directives/copy-to-clipboard.directive";
30
- import * as i28 from "./directives/table/column.directive";
31
- import * as i29 from "./directives/table/checkBoxRow.directive";
32
- import * as i30 from "./directives/table/columnHeader.directive";
33
- import * as i31 from "./directives/table/raw.directive";
34
- import * as i32 from "./directives/abstract-debounce/abstract-debounce.directive";
35
- import * as i33 from "./directives/abstract-debounce/debounce-keyup.directive";
36
- import * as i34 from "./directives/zindex-toggle.directive";
37
- import * as i35 from "./pipes/pagination/array-total-pages/array-pages.pipe";
38
- import * as i36 from "./pipes/pagination/total-pages/is-last-page.pipe";
39
- import * as i37 from "./pipes/pagination/text/custom-text.pipe";
40
- import * as i38 from "./pipes/images/img-src.pipe";
41
- import * as i39 from "./pipes/number-to-array.pipe";
42
- import * as i40 from "./pipes/pagination/large-number-of-page/large-number-of-page.pipe";
43
- import * as i41 from "./pipes/select/select-filters.pipe";
44
- import * as i42 from "@angular/common";
45
- import * as i43 from "@angular/common/http";
46
- import * as i44 from "@angular/forms";
47
- import * as i45 from "ngx-scrollbar";
48
- import * as i46 from "ngx-scrollbar/reached-event";
49
- import * as i47 from "@wizishop/ng-wizi-bulma";
50
- import * as i48 from "ngx-image-cropper";
51
- import * as i49 from "@angular/cdk/table";
52
- import * as i50 from "@angular/cdk/drag-drop";
53
- import * as i51 from "@ngx-translate/core";
11
+ import * as i9 from "./components/img-editor/info-video/info-video.component";
12
+ import * as i10 from "./components/img-editor/show-iframe/show-iframe.component";
13
+ import * as i11 from "./components/canva-btn/canva-btn.component";
14
+ import * as i12 from "./components/img-selection/img-selection.component";
15
+ import * as i13 from "./components/loader/loader.component";
16
+ import * as i14 from "./components/shared/dropdown/dropdown.component";
17
+ import * as i15 from "./components/img-editor/cropper/cropper.component";
18
+ import * as i16 from "./components/images-view/images-view.component";
19
+ import * as i17 from "./components/images-view/mosaic-view/mosaic-view.component";
20
+ import * as i18 from "./components/images-view/table-view/table-view.component";
21
+ import * as i19 from "./components/shared/table/table.component";
22
+ import * as i20 from "./components/shared/input-search/input-search.component";
23
+ import * as i21 from "./components/shared/pagination/pagination.component";
24
+ import * as i22 from "./components/shared/checkbox/checkbox.component";
25
+ import * as i23 from "./components/shared/alert/alert.component";
26
+ import * as i24 from "./components/shared/pagination/page-selector/page-selector.component";
27
+ import * as i25 from "./components/shared/select/select.component";
28
+ import * as i26 from "./directives/drag-drop.directive";
29
+ import * as i27 from "./directives/loading.directive";
30
+ import * as i28 from "./directives/auto-hide.directive";
31
+ import * as i29 from "./directives/copy-to-clipboard.directive";
32
+ import * as i30 from "./directives/table/column.directive";
33
+ import * as i31 from "./directives/table/checkBoxRow.directive";
34
+ import * as i32 from "./directives/table/columnHeader.directive";
35
+ import * as i33 from "./directives/table/raw.directive";
36
+ import * as i34 from "./directives/abstract-debounce/abstract-debounce.directive";
37
+ import * as i35 from "./directives/abstract-debounce/debounce-keyup.directive";
38
+ import * as i36 from "./directives/zindex-toggle.directive";
39
+ import * as i37 from "./pipes/pagination/array-total-pages/array-pages.pipe";
40
+ import * as i38 from "./pipes/pagination/total-pages/is-last-page.pipe";
41
+ import * as i39 from "./pipes/pagination/text/custom-text.pipe";
42
+ import * as i40 from "./pipes/images/img-src.pipe";
43
+ import * as i41 from "./pipes/number-to-array.pipe";
44
+ import * as i42 from "./pipes/pagination/large-number-of-page/large-number-of-page.pipe";
45
+ import * as i43 from "./pipes/select/select-filters.pipe";
46
+ import * as i44 from "@angular/common";
47
+ import * as i45 from "@angular/common/http";
48
+ import * as i46 from "@angular/forms";
49
+ import * as i47 from "ngx-scrollbar";
50
+ import * as i48 from "ngx-scrollbar/reached-event";
51
+ import * as i49 from "@wizishop/ng-wizi-bulma";
52
+ import * as i50 from "ngx-image-cropper";
53
+ import * as i51 from "@angular/cdk/table";
54
+ import * as i52 from "@angular/cdk/drag-drop";
55
+ import * as i53 from "@ngx-translate/core";
54
56
  export declare class WzImgManagerModule {
55
57
  static withConfig(ApiService: Provider, ImageNotFoundProvider?: Provider): ModuleWithProviders<WzImgManagerModule>;
56
58
  static ɵfac: i0.ɵɵFactoryDeclaration<WzImgManagerModule, never>;
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]>;
59
+ 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.EditorInfoVideoComponent, typeof i10.EditorShowIframeComponent, typeof i11.CanvaBtnComponent, typeof i12.ImgSelectionComponent, typeof i13.LoaderComponent, typeof i14.DropdownComponent, typeof i15.CropperComponent, typeof i16.ImagesViewComponent, typeof i17.MosaicViewComponent, typeof i18.TableViewComponent, typeof i19.TableComponent, typeof i20.InputSearchComponent, typeof i21.PaginationComponent, typeof i22.CheckboxComponent, typeof i23.AlertComponent, typeof i24.PageSelectorComponent, typeof i25.SelectComponent, typeof i26.DragDropDirective, typeof i27.LoadingDirective, typeof i28.AutoHideDirective, typeof i29.CopyClipboardDirective, typeof i30.TableColumn, typeof i31.CheckBoxRow, typeof i32.TableColumnHeader, typeof i33.TableRow, typeof i34.AbstractDebounceDirective, typeof i35.DebounceKeyupDirective, typeof i36.ZindexToggleDirective, typeof i37.PagniationArrayTotalPages, typeof i38.PagniationIsLastPage, typeof i39.PagniationText, typeof i40.ImageSrcPipe, typeof i41.NumberToArray, typeof i42.LargeNumberOfPagePipe, typeof i43.SelectFiltersPipe], [typeof i44.CommonModule, typeof i45.HttpClientModule, typeof i46.FormsModule, typeof i47.NgScrollbarModule, typeof i48.NgScrollReached, typeof i49.NwbAllModule, typeof i50.ImageCropperComponent, typeof i51.CdkTableModule, typeof i52.DragDropModule, typeof i53.TranslateModule], [typeof i1.WzImgManagerComponent]>;
58
60
  static ɵinj: i0.ɵɵInjectorDeclaration<WzImgManagerModule>;
59
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/img-manager",
3
- "version": "18.2.3-beta",
3
+ "version": "19.0.0-beta.2",
4
4
  "description": "The best and the most beautiful image manager.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,33 +19,26 @@
19
19
  "tslib": "^2.4.1"
20
20
  },
21
21
  "peerDependencies": {
22
- "@angular/animations": "~18.2.3",
23
- "@angular/cdk": "^18.2.3",
24
- "@angular/common": "~18.2.3",
25
- "@angular/core": "~18.2.3",
26
- "@angular/forms": "~18.2.3",
27
- "@angular/platform-browser": "~18.2.3",
28
- "@angular/platform-browser-dynamic": "~18.2.3",
29
- "@angular/router": "~18.2.3",
30
- "@ngx-translate/core": "^14.0.0",
31
- "@ngx-translate/http-loader": "^7.0.0",
32
- "@wizishop/img-manager": "^18.2.2-beta",
33
- "@wizishop/ng-web-storages": "0.0.2",
34
- "@wizishop/ng-wizi-bulma": "^17.0.0",
35
- "bourbon": "^7.0.0",
22
+ "@angular/animations": ">=19.0.0",
23
+ "@angular/cdk": ">=19.0.0",
24
+ "@angular/common": ">=19.0.0",
25
+ "@angular/core": ">=19.0.0",
26
+ "@angular/forms": ">=19.0.0",
27
+ "@angular/platform-browser": ">=19.0.0",
28
+ "@angular/platform-browser-dynamic": ">=19.0.0",
29
+ "@angular/router": ">=19.0.0",
30
+ "@ngx-translate/core": "^16.0.0",
31
+ "@ngx-translate/http-loader": "^16.0.0",
32
+ "@wizishop/ng-wizi-bulma": ">=19.0.0-beta.1",
36
33
  "bulma": "^0.9.4",
37
34
  "bulma-checkradio": "^2.1.3",
38
35
  "bulma-extensions": "^6.2.7",
39
- "bundle-scss": "^1.5.4",
40
36
  "include-media": "^1.4.10",
41
- "ngx-image-cropper": "^6.3.2",
42
- "ngx-scrollbar": "^11.0.0",
43
- "node-sass": "^9.0.0",
44
- "nodemon": "^2.0.20",
37
+ "ngx-image-cropper": ">=9.0.0",
38
+ "ngx-scrollbar": ">=18.0.0",
45
39
  "rxjs": "^7.8.0",
46
- "sass": "^1.79.4",
47
40
  "sass-flex-mixin": "^1.0.3",
48
- "zone.js": "^0.14.10"
41
+ "zone.js": "^0.15.0"
49
42
  },
50
43
  "module": "fesm2022/wizishop-img-manager.mjs",
51
44
  "typings": "index.d.ts",
@@ -55,8 +48,6 @@
55
48
  },
56
49
  ".": {
57
50
  "types": "./index.d.ts",
58
- "esm2022": "./esm2022/wizishop-img-manager.mjs",
59
- "esm": "./esm2022/wizishop-img-manager.mjs",
60
51
  "default": "./fesm2022/wizishop-img-manager.mjs"
61
52
  }
62
53
  },