@wizishop/img-manager 15.2.6 → 15.2.8
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/README.md +1 -0
- package/assets/i18n/en.json +1 -1
- package/assets/i18n/fr.json +1 -1
- package/esm2020/lib/components/images-view/images-view.component.mjs +11 -8
- package/esm2020/lib/components/img-selection/img-selection.component.mjs +9 -10
- package/esm2020/lib/services/api.service.mjs +1 -1
- package/esm2020/lib/services/img-manager.service.mjs +6 -9
- package/esm2020/lib/services/upload.service.mjs +5 -3
- package/esm2020/lib/wz-img-manager.component.mjs +14 -10
- package/fesm2015/wizishop-img-manager.mjs +37 -35
- package/fesm2015/wizishop-img-manager.mjs.map +1 -1
- package/fesm2020/wizishop-img-manager.mjs +35 -33
- package/fesm2020/wizishop-img-manager.mjs.map +1 -1
- package/lib/components/img-selection/img-selection.component.d.ts +7 -6
- package/lib/services/api.service.d.ts +4 -3
- package/lib/services/img-manager.service.d.ts +1 -1
- package/lib/services/upload.service.d.ts +5 -2
- package/lib/wz-img-manager.component.d.ts +5 -2
- package/package.json +1 -1
- package/wizishop-img-manager-15.2.8.tgz +0 -0
- package/wz-img-manager.scss +229 -229
- package/wizishop-img-manager-15.2.6.tgz +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, inject, EventEmitter, Directive, Input, Output, Pipe, Component, ViewEncapsulation, HostBinding, HostListener, ViewChild, Inject, NgModule } from '@angular/core';
|
|
3
|
-
import { BehaviorSubject, Subject, Observable, of, delay,
|
|
3
|
+
import { BehaviorSubject, Subject, tap, Observable, of, delay, forkJoin, combineLatest } from 'rxjs';
|
|
4
4
|
import * as i3 from '@ngx-translate/core';
|
|
5
5
|
import { TranslateModule } from '@ngx-translate/core';
|
|
6
6
|
import * as i1 from '@wizishop/ng-wizi-bulma';
|
|
@@ -213,13 +213,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
213
213
|
|
|
214
214
|
class UploadService {
|
|
215
215
|
constructor() {
|
|
216
|
+
this.imageUploaded$ = new Subject();
|
|
216
217
|
this.apiService = inject(ApiService);
|
|
217
218
|
}
|
|
218
219
|
uploadFile(formData) {
|
|
219
|
-
return this.apiService.uploadFile(formData);
|
|
220
|
+
return this.apiService.uploadFile(formData).pipe(tap((img) => this.imageUploaded$.next(img)));
|
|
220
221
|
}
|
|
221
222
|
uploadFileByUrl(url, fileName) {
|
|
222
|
-
return this.apiService.uploadFileByUrl(url, fileName);
|
|
223
|
+
return this.apiService.uploadFileByUrl(url, fileName).pipe(tap((img) => this.imageUploaded$.next(img)));
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
226
|
UploadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: UploadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -513,20 +514,16 @@ class ImgManagerService {
|
|
|
513
514
|
&& this.previousParams.search === params.search) {
|
|
514
515
|
return of(this.shopImgList).pipe(delay(0));
|
|
515
516
|
}
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
}
|
|
519
|
-
return this.apiService.getShopImgList(params).pipe(tap((shopImgList) => {
|
|
517
|
+
const httpParams = params ? this.resetParams(params) : undefined;
|
|
518
|
+
return this.apiService.getShopImgList(httpParams).pipe(tap((shopImgList) => {
|
|
520
519
|
this.shopImgList = shopImgList;
|
|
521
520
|
this.previousParams = params;
|
|
522
521
|
}));
|
|
523
522
|
;
|
|
524
523
|
}
|
|
525
524
|
getShopTotalImgList(params) {
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
}
|
|
529
|
-
return this.apiService.getShopTotalImgList(params);
|
|
525
|
+
const httpParams = params ? this.resetParams(params) : undefined;
|
|
526
|
+
return this.apiService.getShopTotalImgList(httpParams);
|
|
530
527
|
}
|
|
531
528
|
getShopImg(idFile) {
|
|
532
529
|
return this.apiService.getShopImg(idFile);
|
|
@@ -540,6 +537,7 @@ class ImgManagerService {
|
|
|
540
537
|
if (params.search) {
|
|
541
538
|
this.params = this.params.set('display_name:contains', params.search);
|
|
542
539
|
}
|
|
540
|
+
return this.params;
|
|
543
541
|
}
|
|
544
542
|
replaceImg(imageBase64, id_file) {
|
|
545
543
|
return this.apiService.replaceImg(imageBase64, id_file);
|
|
@@ -3249,14 +3247,17 @@ class ImagesViewComponent {
|
|
|
3249
3247
|
}
|
|
3250
3248
|
}
|
|
3251
3249
|
getImg(id_file) {
|
|
3252
|
-
this.imgManager.getShopImg(id_file).pipe(take(1)).subscribe(
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3250
|
+
this.imgManager.getShopImg(id_file).pipe(take(1)).subscribe({
|
|
3251
|
+
next: (picture) => {
|
|
3252
|
+
if (!this.imgAlreadyExist(picture.id_file)) {
|
|
3253
|
+
// check the img is not already present
|
|
3254
|
+
this.picturesList.unshift(picture);
|
|
3255
|
+
this.length += 1;
|
|
3256
|
+
}
|
|
3257
|
+
},
|
|
3258
|
+
error: () => {
|
|
3259
|
+
this.alertService.openAlert(this.errorGetImg);
|
|
3257
3260
|
}
|
|
3258
|
-
}, error => {
|
|
3259
|
-
this.alertService.openAlert(this.errorGetImg);
|
|
3260
3261
|
});
|
|
3261
3262
|
}
|
|
3262
3263
|
imgAlreadyExist(id_file) {
|
|
@@ -3661,26 +3662,24 @@ class ImgSelectionComponent {
|
|
|
3661
3662
|
constructor(imgSelectionService) {
|
|
3662
3663
|
this.imgSelectionService = imgSelectionService;
|
|
3663
3664
|
this.imgManagerClosed = new EventEmitter();
|
|
3664
|
-
this.imgSelectedList =
|
|
3665
|
+
this.imgSelectedList$ = this.imgSelectionService.imgSelection$;
|
|
3665
3666
|
this.removingAll = false;
|
|
3666
3667
|
this.cancellingAll = false;
|
|
3667
3668
|
this.importingAll = false;
|
|
3668
3669
|
this.dragStart = false;
|
|
3669
3670
|
this.isLoading$ = this.imgSelectionService.imgSelectedListLoading$;
|
|
3671
|
+
this.vm$ = combineLatest({
|
|
3672
|
+
tableList: this.imgSelectedList$,
|
|
3673
|
+
isLoading: this.isLoading$
|
|
3674
|
+
});
|
|
3670
3675
|
this.trashPositionIndex = 0;
|
|
3671
3676
|
this.trashPositionLeft = '-5px';
|
|
3672
3677
|
}
|
|
3673
|
-
ngOnInit() {
|
|
3674
|
-
this.getImgSelected();
|
|
3675
|
-
}
|
|
3676
3678
|
init() {
|
|
3677
3679
|
this.removingAll = false;
|
|
3678
3680
|
this.cancellingAll = false;
|
|
3679
3681
|
this.importingAll = false;
|
|
3680
3682
|
}
|
|
3681
|
-
getImgSelected() {
|
|
3682
|
-
this.imgSelectedList = this.imgSelectionService.getImgSelection();
|
|
3683
|
-
}
|
|
3684
3683
|
removeImg(index) {
|
|
3685
3684
|
this.imgSelectionService.removeImgSelectedByIndex(index);
|
|
3686
3685
|
}
|
|
@@ -3694,10 +3693,10 @@ class ImgSelectionComponent {
|
|
|
3694
3693
|
}
|
|
3695
3694
|
}
|
|
3696
3695
|
ImgSelectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ImgSelectionComponent, deps: [{ token: ImgSelectionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3697
|
-
ImgSelectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: ImgSelectionComponent, selector: "img-selection", inputs: { tabDisplayed: "tabDisplayed" }, outputs: { imgManagerClosed: "imgManagerClosed" }, ngImport: i0, template: "<div\n class=\"trash\"\n cdkDropList\n #unSelectList=\"cdkDropList\"\n (cdkDropListDropped)=\"removeImgFromSelection($event)\">\n <p>{{'ImgManager.ImgSelection.unselect' | translate}}</p>\n</div>\n\n<div\n class=\"img-selection\"\n [ngClass]=\"{'img-selection--visible' : imgSelectedList && imgSelectedList.length}\"\n
|
|
3696
|
+
ImgSelectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: ImgSelectionComponent, selector: "img-selection", inputs: { tabDisplayed: "tabDisplayed" }, outputs: { imgManagerClosed: "imgManagerClosed" }, ngImport: i0, template: "<div\n class=\"trash\"\n cdkDropList\n #unSelectList=\"cdkDropList\"\n (cdkDropListDropped)=\"removeImgFromSelection($event)\">\n <p>{{'ImgManager.ImgSelection.unselect' | translate}}</p>\n</div>\n\n<div\n class=\"img-selection\"\n *ngIf=\"(imgSelectedList$ | async) as imgSelectedList; else Loading\"\n [ngClass]=\"{'img-selection--visible' : imgSelectedList && imgSelectedList.length}\"\n\n >\n\n <div\n cdkDropList\n #selectionList=\"cdkDropList\"\n cdkDropListOrientation=\"horizontal\"\n class=\"list_img_selection\"\n (cdkDropListDropped)=\"drop($event)\"\n [cdkDropListConnectedTo]=\"[unSelectList]\"\n >\n\n <div\n class=\"img_box\"\n *ngFor=\"let picture of imgSelectedList; let index = index\"\n cdkDrag\n (cdkDragStarted)=\"dragStart = true;\"\n (cdkDragEnded)=\"dragStart = false;\"\n >\n\n <img\n *ngIf=\"index < 1\"\n class=\"drag__img\"\n [src]=\"picture.file_name | imgSrc : '400'\"\n [title]=\"picture.display_name\"\n />\n\n <img\n *ngIf=\"index > 0\"\n class=\"drag__img\"\n [src]=\"picture.file_name | imgSrc : '200'\"\n [title]=\"picture.display_name\"\n />\n\n <div class=\"delete-btn\" (click)=\"removeImg(index)\">{{'ImgManager.ImgSelection.deleteImg' | translate}}</div>\n\n <span class=\"drag__tooltips\">{{'ImgManager.ImgSelection.tooltips' | translate}}</span>\n\n </div>\n </div>\n</div>\n\n<!-- Loader -->\n<ng-template #Loading>\n <wz-loader></wz-loader>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$3.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i3$3.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: LoaderComponent, selector: "wz-loader", inputs: ["text", "small", "position"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "pipe", type: ImageSrcPipe, name: "imgSrc" }] });
|
|
3698
3697
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ImgSelectionComponent, decorators: [{
|
|
3699
3698
|
type: Component,
|
|
3700
|
-
args: [{ selector: 'img-selection', template: "<div\n class=\"trash\"\n cdkDropList\n #unSelectList=\"cdkDropList\"\n (cdkDropListDropped)=\"removeImgFromSelection($event)\">\n <p>{{'ImgManager.ImgSelection.unselect' | translate}}</p>\n</div>\n\n<div\n class=\"img-selection\"\n [ngClass]=\"{'img-selection--visible' : imgSelectedList && imgSelectedList.length}\"\n
|
|
3699
|
+
args: [{ selector: 'img-selection', template: "<div\n class=\"trash\"\n cdkDropList\n #unSelectList=\"cdkDropList\"\n (cdkDropListDropped)=\"removeImgFromSelection($event)\">\n <p>{{'ImgManager.ImgSelection.unselect' | translate}}</p>\n</div>\n\n<div\n class=\"img-selection\"\n *ngIf=\"(imgSelectedList$ | async) as imgSelectedList; else Loading\"\n [ngClass]=\"{'img-selection--visible' : imgSelectedList && imgSelectedList.length}\"\n\n >\n\n <div\n cdkDropList\n #selectionList=\"cdkDropList\"\n cdkDropListOrientation=\"horizontal\"\n class=\"list_img_selection\"\n (cdkDropListDropped)=\"drop($event)\"\n [cdkDropListConnectedTo]=\"[unSelectList]\"\n >\n\n <div\n class=\"img_box\"\n *ngFor=\"let picture of imgSelectedList; let index = index\"\n cdkDrag\n (cdkDragStarted)=\"dragStart = true;\"\n (cdkDragEnded)=\"dragStart = false;\"\n >\n\n <img\n *ngIf=\"index < 1\"\n class=\"drag__img\"\n [src]=\"picture.file_name | imgSrc : '400'\"\n [title]=\"picture.display_name\"\n />\n\n <img\n *ngIf=\"index > 0\"\n class=\"drag__img\"\n [src]=\"picture.file_name | imgSrc : '200'\"\n [title]=\"picture.display_name\"\n />\n\n <div class=\"delete-btn\" (click)=\"removeImg(index)\">{{'ImgManager.ImgSelection.deleteImg' | translate}}</div>\n\n <span class=\"drag__tooltips\">{{'ImgManager.ImgSelection.tooltips' | translate}}</span>\n\n </div>\n </div>\n</div>\n\n<!-- Loader -->\n<ng-template #Loading>\n <wz-loader></wz-loader>\n</ng-template>\n" }]
|
|
3701
3700
|
}], ctorParameters: function () { return [{ type: ImgSelectionService }]; }, propDecorators: { tabDisplayed: [{
|
|
3702
3701
|
type: Input
|
|
3703
3702
|
}], imgManagerClosed: [{
|
|
@@ -3705,21 +3704,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3705
3704
|
}] } });
|
|
3706
3705
|
|
|
3707
3706
|
class WzImgManagerComponent {
|
|
3708
|
-
constructor(imgSelectionService, userSettingsService, canvaService, imgEventService, domService) {
|
|
3707
|
+
constructor(imgSelectionService, userSettingsService, canvaService, imgEventService, domService, uploadService) {
|
|
3709
3708
|
this.imgSelectionService = imgSelectionService;
|
|
3710
3709
|
this.userSettingsService = userSettingsService;
|
|
3711
3710
|
this.canvaService = canvaService;
|
|
3712
3711
|
this.imgEventService = imgEventService;
|
|
3713
3712
|
this.domService = domService;
|
|
3713
|
+
this.uploadService = uploadService;
|
|
3714
3714
|
this.showSelection = false;
|
|
3715
3715
|
this.imgManagerClosed = new EventEmitter();
|
|
3716
3716
|
this._multipleImgMode = false;
|
|
3717
3717
|
this._showImgManagerModule = false;
|
|
3718
3718
|
this.imgSelectionChange = this.imgSelectionService.imgSelection$;
|
|
3719
|
+
this.imageUploaded = this.uploadService.imageUploaded$;
|
|
3719
3720
|
this.close = false;
|
|
3720
3721
|
this.listDisplayed = false;
|
|
3721
3722
|
this.hideTab = false;
|
|
3722
|
-
console.log('WzImgManagerComponent');
|
|
3723
3723
|
}
|
|
3724
3724
|
// If forceToOpenCanva is true : Canva will open with the canvaService.expectedImgSizesChange
|
|
3725
3725
|
// If forceToOpenCanva is a WiziBlockMediaDto, Canva open immediatly
|
|
@@ -3752,7 +3752,6 @@ class WzImgManagerComponent {
|
|
|
3752
3752
|
}
|
|
3753
3753
|
}
|
|
3754
3754
|
ngOnInit() {
|
|
3755
|
-
console.log('WzImgManagerComponent');
|
|
3756
3755
|
this.imgSelectionService.setMultipleImgMode(this._multipleImgMode);
|
|
3757
3756
|
this.imgSelectionService.initImgSelectedList(null);
|
|
3758
3757
|
this.selectImgEvent = this.imgSelectionService.imgSelection$.subscribe(imgSelection => {
|
|
@@ -3848,12 +3847,12 @@ class WzImgManagerComponent {
|
|
|
3848
3847
|
this.listDisplayedEvent.unsubscribe();
|
|
3849
3848
|
}
|
|
3850
3849
|
}
|
|
3851
|
-
WzImgManagerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WzImgManagerComponent, deps: [{ token: ImgSelectionService }, { token: UserSettingsService }, { token: CanvaService }, { token: ImgEventService }, { token: DomService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3852
|
-
WzImgManagerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: WzImgManagerComponent, selector: "wz-img-manager", inputs: { stateDisplayed: "stateDisplayed", showSelection: "showSelection", forceToOpenCanva: "forceToOpenCanva", multipleImgMode: "multipleImgMode", showImgManagerModule: "showImgManagerModule" }, outputs: { imgManagerClosed: "imgManagerClosed", imgSelectionChange: "imgSelectionChange" }, host: { listeners: { "document:keydown.escape": "onKeydownHandler($event)" } }, ngImport: i0, template: "<div class=\"wz-img-manager\">\n <!-- Img slection handler -->\n <div class=\"wz-img-manager__selectionHandler\" *ngIf=\"showSelection\">\n <img-selection></img-selection>\n </div>\n\n <!-- Img manager module -->\n <div\n *ngIf=\"_showImgManagerModule\"\n class=\"wz-img-manager__module\"\n [ngClass]=\"{\n 'wz-img-manager__module--small': stateDisplayed === 'small',\n 'wz-img-manager__module--full': stateDisplayed === 'full',\n 'wz-img-manager__module--window': stateDisplayed === 'window',\n 'wz-img-manager__module--edit': hideTab}\"\n >\n\n <div class=\"wz-img-manager__module__header\" *ngIf=\"stateDisplayed !== 'window'\">\n <button (click)=\"openSmall()\" *ngIf=\"stateDisplayed === 'full'\" type=\"button\"><span>Expand</span><i class=\"fal fa-compress-alt\"></i></button>\n <button (click)=\"openSmall()\" *ngIf=\"stateDisplayed === 'closed'\" type=\"button\"><span>Expand</span><i class=\"fal fa-expand-alt\"></i></button>\n <button (click)=\"openFull()\" *ngIf=\"stateDisplayed === 'small'\" type=\"button\"><span>Expand</span><i class=\"fal fa-expand-alt\"></i></button>\n <button (click)=\"onClose()\" *ngIf=\"stateDisplayed !== 'closed'\" type=\"button\"><span>Close</span><i class=\"fal fa-times\"></i></button>\n </div>\n\n <div\n class=\"wz-img-manager__module__content wz-block\"\n [ngClass]=\"{'wz-block--window': stateDisplayed === 'window'}\">\n <img-tabs\n [stateDisplayed]=\"stateDisplayed\"\n [multipleImgMode]=\"multipleImgMode\"\n [listDisplayed]=\"listDisplayed\"\n (imgManagerClosed)=\"onImgManagerClosed()\"\n (switchDisplayWindow)=\"changeDisplayTab()\"\n (currentTab)=\"setCurrentTab($event)\">\n </img-tabs>\n </div>\n </div>\n\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ImgTabsComponent, selector: "img-tabs", inputs: ["multipleImgMode", "stateDisplayed", "listDisplayed"], outputs: ["imgManagerClosed", "currentTab", "switchDisplayWindow"] }, { kind: "component", type: ImgSelectionComponent, selector: "img-selection", inputs: ["tabDisplayed"], outputs: ["imgManagerClosed"] }] });
|
|
3850
|
+
WzImgManagerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WzImgManagerComponent, deps: [{ token: ImgSelectionService }, { token: UserSettingsService }, { token: CanvaService }, { token: ImgEventService }, { token: DomService }, { token: UploadService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3851
|
+
WzImgManagerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: WzImgManagerComponent, selector: "wz-img-manager", inputs: { stateDisplayed: "stateDisplayed", showSelection: "showSelection", forceToOpenCanva: "forceToOpenCanva", multipleImgMode: "multipleImgMode", showImgManagerModule: "showImgManagerModule" }, outputs: { imgManagerClosed: "imgManagerClosed", imgSelectionChange: "imgSelectionChange", imageUploaded: "imageUploaded" }, host: { listeners: { "document:keydown.escape": "onKeydownHandler($event)" } }, ngImport: i0, template: "<div class=\"wz-img-manager\">\n <!-- Img slection handler -->\n <div class=\"wz-img-manager__selectionHandler\" *ngIf=\"showSelection\">\n <img-selection></img-selection>\n </div>\n\n <!-- Img manager module -->\n <div\n *ngIf=\"_showImgManagerModule\"\n class=\"wz-img-manager__module\"\n [ngClass]=\"{\n 'wz-img-manager__module--small': stateDisplayed === 'small',\n 'wz-img-manager__module--full': stateDisplayed === 'full',\n 'wz-img-manager__module--window': stateDisplayed === 'window',\n 'wz-img-manager__module--edit': hideTab}\"\n >\n\n <div class=\"wz-img-manager__module__header\" *ngIf=\"stateDisplayed !== 'window'\">\n <button (click)=\"openSmall()\" *ngIf=\"stateDisplayed === 'full'\" type=\"button\"><span>Expand</span><i class=\"fal fa-compress-alt\"></i></button>\n <button (click)=\"openSmall()\" *ngIf=\"stateDisplayed === 'closed'\" type=\"button\"><span>Expand</span><i class=\"fal fa-expand-alt\"></i></button>\n <button (click)=\"openFull()\" *ngIf=\"stateDisplayed === 'small'\" type=\"button\"><span>Expand</span><i class=\"fal fa-expand-alt\"></i></button>\n <button (click)=\"onClose()\" *ngIf=\"stateDisplayed !== 'closed'\" type=\"button\"><span>Close</span><i class=\"fal fa-times\"></i></button>\n </div>\n\n <div\n class=\"wz-img-manager__module__content wz-block\"\n [ngClass]=\"{'wz-block--window': stateDisplayed === 'window'}\">\n <img-tabs\n [stateDisplayed]=\"stateDisplayed\"\n [multipleImgMode]=\"multipleImgMode\"\n [listDisplayed]=\"listDisplayed\"\n (imgManagerClosed)=\"onImgManagerClosed()\"\n (switchDisplayWindow)=\"changeDisplayTab()\"\n (currentTab)=\"setCurrentTab($event)\">\n </img-tabs>\n </div>\n </div>\n\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ImgTabsComponent, selector: "img-tabs", inputs: ["multipleImgMode", "stateDisplayed", "listDisplayed"], outputs: ["imgManagerClosed", "currentTab", "switchDisplayWindow"] }, { kind: "component", type: ImgSelectionComponent, selector: "img-selection", inputs: ["tabDisplayed"], outputs: ["imgManagerClosed"] }] });
|
|
3853
3852
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WzImgManagerComponent, decorators: [{
|
|
3854
3853
|
type: Component,
|
|
3855
3854
|
args: [{ selector: 'wz-img-manager', template: "<div class=\"wz-img-manager\">\n <!-- Img slection handler -->\n <div class=\"wz-img-manager__selectionHandler\" *ngIf=\"showSelection\">\n <img-selection></img-selection>\n </div>\n\n <!-- Img manager module -->\n <div\n *ngIf=\"_showImgManagerModule\"\n class=\"wz-img-manager__module\"\n [ngClass]=\"{\n 'wz-img-manager__module--small': stateDisplayed === 'small',\n 'wz-img-manager__module--full': stateDisplayed === 'full',\n 'wz-img-manager__module--window': stateDisplayed === 'window',\n 'wz-img-manager__module--edit': hideTab}\"\n >\n\n <div class=\"wz-img-manager__module__header\" *ngIf=\"stateDisplayed !== 'window'\">\n <button (click)=\"openSmall()\" *ngIf=\"stateDisplayed === 'full'\" type=\"button\"><span>Expand</span><i class=\"fal fa-compress-alt\"></i></button>\n <button (click)=\"openSmall()\" *ngIf=\"stateDisplayed === 'closed'\" type=\"button\"><span>Expand</span><i class=\"fal fa-expand-alt\"></i></button>\n <button (click)=\"openFull()\" *ngIf=\"stateDisplayed === 'small'\" type=\"button\"><span>Expand</span><i class=\"fal fa-expand-alt\"></i></button>\n <button (click)=\"onClose()\" *ngIf=\"stateDisplayed !== 'closed'\" type=\"button\"><span>Close</span><i class=\"fal fa-times\"></i></button>\n </div>\n\n <div\n class=\"wz-img-manager__module__content wz-block\"\n [ngClass]=\"{'wz-block--window': stateDisplayed === 'window'}\">\n <img-tabs\n [stateDisplayed]=\"stateDisplayed\"\n [multipleImgMode]=\"multipleImgMode\"\n [listDisplayed]=\"listDisplayed\"\n (imgManagerClosed)=\"onImgManagerClosed()\"\n (switchDisplayWindow)=\"changeDisplayTab()\"\n (currentTab)=\"setCurrentTab($event)\">\n </img-tabs>\n </div>\n </div>\n\n</div>\n" }]
|
|
3856
|
-
}], ctorParameters: function () { return [{ type: ImgSelectionService }, { type: UserSettingsService }, { type: CanvaService }, { type: ImgEventService }, { type: DomService }]; }, propDecorators: { stateDisplayed: [{
|
|
3855
|
+
}], ctorParameters: function () { return [{ type: ImgSelectionService }, { type: UserSettingsService }, { type: CanvaService }, { type: ImgEventService }, { type: DomService }, { type: UploadService }]; }, propDecorators: { stateDisplayed: [{
|
|
3857
3856
|
type: Input
|
|
3858
3857
|
}], showSelection: [{
|
|
3859
3858
|
type: Input
|
|
@@ -3870,6 +3869,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3870
3869
|
args: ['document:keydown.escape', ['$event']]
|
|
3871
3870
|
}], imgSelectionChange: [{
|
|
3872
3871
|
type: Output
|
|
3872
|
+
}], imageUploaded: [{
|
|
3873
|
+
type: Output
|
|
3873
3874
|
}] } });
|
|
3874
3875
|
|
|
3875
3876
|
class SnackBarService {
|
|
@@ -4112,3 +4113,4 @@ class ImgManagerConfigDto {
|
|
|
4112
4113
|
|
|
4113
4114
|
export { ApiService, CanvaButtonApi, CanvaService, ImgApiDto, ImgManagerConfigDto, ImgManagerService, ImgSelectionService, RenamePictureService, WzImgManagerComponent, WzImgManagerModule };
|
|
4114
4115
|
//# sourceMappingURL=wizishop-img-manager.mjs.map
|
|
4116
|
+
//# sourceMappingURL=wizishop-img-manager.mjs.map
|