@wizishop/img-manager 15.2.49 → 15.2.50
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/esm2020/lib/services/icon.service.mjs +18 -0
- package/esm2020/lib/wz-img-manager.component.mjs +12 -8
- package/fesm2015/wizishop-img-manager.mjs +21 -4
- package/fesm2015/wizishop-img-manager.mjs.map +1 -1
- package/fesm2020/wizishop-img-manager.mjs +21 -4
- package/fesm2020/wizishop-img-manager.mjs.map +1 -1
- package/lib/services/icon.service.d.ts +6 -0
- package/lib/wz-img-manager.component.d.ts +3 -1
- package/package.json +1 -1
- package/wizishop-img-manager-15.2.50.tgz +0 -0
- package/wizishop-img-manager-15.2.49.tgz +0 -0
|
@@ -398,6 +398,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
398
398
|
type: Injectable
|
|
399
399
|
}] });
|
|
400
400
|
|
|
401
|
+
class IconService {
|
|
402
|
+
loadIconLib() {
|
|
403
|
+
const link = document.createElement('link');
|
|
404
|
+
link.href = 'https://pro.fontawesome.com/releases/v5.12.1/css/all.css';
|
|
405
|
+
link.rel = 'stylesheet';
|
|
406
|
+
link.crossOrigin = "anonymous";
|
|
407
|
+
document.getElementsByTagName('head')[0].appendChild(link);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
IconService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: IconService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
411
|
+
IconService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: IconService, providedIn: 'root' });
|
|
412
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: IconService, decorators: [{
|
|
413
|
+
type: Injectable,
|
|
414
|
+
args: [{ providedIn: 'root' }]
|
|
415
|
+
}] });
|
|
416
|
+
|
|
401
417
|
const easeInOut = // the fade-in/fade-out animation.
|
|
402
418
|
trigger('easeInOut', [
|
|
403
419
|
// the "in" style determines the "resting" state of the element when it is visible.
|
|
@@ -3620,13 +3636,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3620
3636
|
}] } });
|
|
3621
3637
|
|
|
3622
3638
|
class WzImgManagerComponent {
|
|
3623
|
-
constructor(imgSelectionService, userSettingsService, canvaService, imgEventService, domService, uploadService) {
|
|
3639
|
+
constructor(imgSelectionService, userSettingsService, canvaService, imgEventService, domService, uploadService, iconService) {
|
|
3624
3640
|
this.imgSelectionService = imgSelectionService;
|
|
3625
3641
|
this.userSettingsService = userSettingsService;
|
|
3626
3642
|
this.canvaService = canvaService;
|
|
3627
3643
|
this.imgEventService = imgEventService;
|
|
3628
3644
|
this.domService = domService;
|
|
3629
3645
|
this.uploadService = uploadService;
|
|
3646
|
+
this.iconService = iconService;
|
|
3630
3647
|
this.showSelection = false;
|
|
3631
3648
|
this.imgManagerClosed = new EventEmitter();
|
|
3632
3649
|
this._multipleImgMode = false;
|
|
@@ -3636,6 +3653,7 @@ class WzImgManagerComponent {
|
|
|
3636
3653
|
this.close = false;
|
|
3637
3654
|
this.listDisplayed = false;
|
|
3638
3655
|
this.hideTab = false;
|
|
3656
|
+
this.iconService.loadIconLib();
|
|
3639
3657
|
}
|
|
3640
3658
|
// If forceToOpenCanva is true : Canva will open with the canvaService.expectedImgSizesChange
|
|
3641
3659
|
// If forceToOpenCanva is a WiziBlockMediaDto, Canva open immediatly
|
|
@@ -3763,12 +3781,12 @@ class WzImgManagerComponent {
|
|
|
3763
3781
|
this.listDisplayedEvent.unsubscribe();
|
|
3764
3782
|
}
|
|
3765
3783
|
}
|
|
3766
|
-
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 });
|
|
3784
|
+
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 }, { token: IconService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3767
3785
|
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 selection 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"] }] });
|
|
3768
3786
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WzImgManagerComponent, decorators: [{
|
|
3769
3787
|
type: Component,
|
|
3770
3788
|
args: [{ selector: 'wz-img-manager', template: "<div class=\"wz-img-manager\">\n <!-- Img selection 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" }]
|
|
3771
|
-
}], ctorParameters: function () { return [{ type: ImgSelectionService }, { type: UserSettingsService }, { type: CanvaService }, { type: ImgEventService }, { type: DomService }, { type: UploadService }]; }, propDecorators: { stateDisplayed: [{
|
|
3789
|
+
}], ctorParameters: function () { return [{ type: ImgSelectionService }, { type: UserSettingsService }, { type: CanvaService }, { type: ImgEventService }, { type: DomService }, { type: UploadService }, { type: IconService }]; }, propDecorators: { stateDisplayed: [{
|
|
3772
3790
|
type: Input
|
|
3773
3791
|
}], showSelection: [{
|
|
3774
3792
|
type: Input
|
|
@@ -4030,4 +4048,3 @@ class ImgManagerConfigDto {
|
|
|
4030
4048
|
|
|
4031
4049
|
export { ApiService, CanvaButtonApi, CanvaService, ImageNotFoundService, ImgApiDto, ImgManagerConfigDto, ImgManagerService, ImgSelectionService, RenamePictureService, WzImgManagerComponent, WzImgManagerModule };
|
|
4032
4050
|
//# sourceMappingURL=wizishop-img-manager.mjs.map
|
|
4033
|
-
//# sourceMappingURL=wizishop-img-manager.mjs.map
|