@wizishop/img-manager 0.2.38 → 0.2.42

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 (37) hide show
  1. package/assets/i18n/fr.json +1 -1
  2. package/bundles/wizishop-img-manager.umd.js +55 -46
  3. package/bundles/wizishop-img-manager.umd.js.map +1 -1
  4. package/bundles/wizishop-img-manager.umd.min.js +1 -1
  5. package/bundles/wizishop-img-manager.umd.min.js.map +1 -1
  6. package/esm2015/lib/components/canva-btn/canva-btn.component.js +2 -2
  7. package/esm2015/lib/components/images-view/images-actions-handler.js +28 -12
  8. package/esm2015/lib/components/images-view/mosaic-view/img-card/img-card.component.js +9 -6
  9. package/esm2015/lib/components/images-view/mosaic-view/mosaic-view.component.js +9 -6
  10. package/esm2015/lib/components/images-view/table-view/table-view.component.js +9 -6
  11. package/esm2015/lib/components/img-tabs/img-tabs.component.js +2 -17
  12. package/esm2015/lib/components/pexels-lib/pexels-lib.component.js +4 -1
  13. package/esm2015/lib/components/shared/pagination/pagination.component.js +2 -2
  14. package/esm2015/lib/wz-img-manager.component.js +3 -3
  15. package/esm5/lib/components/canva-btn/canva-btn.component.js +2 -2
  16. package/esm5/lib/components/images-view/images-actions-handler.js +28 -12
  17. package/esm5/lib/components/images-view/mosaic-view/img-card/img-card.component.js +9 -6
  18. package/esm5/lib/components/images-view/mosaic-view/mosaic-view.component.js +9 -6
  19. package/esm5/lib/components/images-view/table-view/table-view.component.js +9 -6
  20. package/esm5/lib/components/img-tabs/img-tabs.component.js +2 -17
  21. package/esm5/lib/components/pexels-lib/pexels-lib.component.js +4 -1
  22. package/esm5/lib/components/shared/pagination/pagination.component.js +2 -2
  23. package/esm5/lib/wz-img-manager.component.js +3 -3
  24. package/fesm2015/wizishop-img-manager.js +56 -47
  25. package/fesm2015/wizishop-img-manager.js.map +1 -1
  26. package/fesm5/wizishop-img-manager.js +56 -47
  27. package/fesm5/wizishop-img-manager.js.map +1 -1
  28. package/lib/components/images-view/images-actions-handler.d.ts +4 -1
  29. package/lib/components/images-view/mosaic-view/img-card/img-card.component.d.ts +2 -1
  30. package/lib/components/images-view/mosaic-view/mosaic-view.component.d.ts +2 -1
  31. package/lib/components/images-view/table-view/table-view.component.d.ts +2 -1
  32. package/lib/components/img-tabs/img-tabs.component.d.ts +0 -16
  33. package/package.json +1 -1
  34. package/wizishop-img-manager-0.2.42.tgz +0 -0
  35. package/wizishop-img-manager.metadata.json +1 -1
  36. package/wz-img-manager.scss +297 -211
  37. package/wizishop-img-manager-0.2.38.tgz +0 -0
@@ -4,7 +4,7 @@ import { ReplaySubject, Observable, BehaviorSubject, Subject, forkJoin } from 'r
4
4
  import { HttpParams, HttpHeaders, HttpClient, HttpClientModule } from '@angular/common/http';
5
5
  import { trigger, state, style, transition, animate, query, stagger } from '@angular/animations';
6
6
  import { TranslateService, TranslateModule } from '@ngx-translate/core';
7
- import { NwbAlertService, NwbFilterRoutingBuilder, NwbAllModule } from '@wizishop/ng-wizi-bulma';
7
+ import { NwbAlertService, NwbDialogService, NwbFilterRoutingBuilder, NwbAllModule } from '@wizishop/ng-wizi-bulma';
8
8
  import { debounceTime, map, takeUntil, distinctUntilChanged, tap } from 'rxjs/operators';
9
9
  import { DOCUMENT, CommonModule } from '@angular/common';
10
10
  import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
@@ -615,6 +615,7 @@ var WzImgManagerComponent = /** @class */ (function () {
615
615
  }
616
616
  };
617
617
  WzImgManagerComponent.prototype.setCurrentTab = function (event) {
618
+ console.log(event);
618
619
  if (event === 'img-edition') {
619
620
  this.hideTab = true;
620
621
  return;
@@ -623,7 +624,6 @@ var WzImgManagerComponent = /** @class */ (function () {
623
624
  };
624
625
  WzImgManagerComponent.prototype.displaySmall = function () {
625
626
  var _this = this;
626
- //Use for open annimation display
627
627
  if (this.stateDisplayed !== 'window') {
628
628
  setTimeout(function () {
629
629
  _this.stateDisplayed = 'small';
@@ -731,7 +731,7 @@ var WzImgManagerComponent = /** @class */ (function () {
731
731
  WzImgManagerComponent = __decorate([
732
732
  Component({
733
733
  selector: 'wz-img-manager',
734
- 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' || stateDisplayed === 'closed'\"><span>Expand</span><i class=\"fal fa-expand-alt\"></i></button>\n <button (click)=\"openFull()\" *ngIf=\"stateDisplayed === 'small'\"><span>Expand</span><i class=\"fal fa-expand-alt\"></i></button>\n <button (click)=\"onClose()\" *ngIf=\"stateDisplayed !== 'closed'\"><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 (currentTab)=\"setCurrentTab($event)\">\n </img-tabs>\n </div>\n </div>\n\n</div>\n"
734
+ 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'\"><span>Expand</span><i class=\"fal fa-compress-alt\"></i></button>\n <button (click)=\"openSmall()\" *ngIf=\"stateDisplayed === 'closed'\"><span>Expand</span><i class=\"fal fa-expand-alt\"></i></button>\n <button (click)=\"openFull()\" *ngIf=\"stateDisplayed === 'small'\"><span>Expand</span><i class=\"fal fa-expand-alt\"></i></button>\n <button (click)=\"onClose()\" *ngIf=\"stateDisplayed !== 'closed'\"><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 (currentTab)=\"setCurrentTab($event)\">\n </img-tabs>\n </div>\n </div>\n\n</div>\n"
735
735
  }),
736
736
  __metadata("design:paramtypes", [ImgSelectionService,
737
737
  ImgManagerConfigService,
@@ -1102,22 +1102,6 @@ var ImgTabsComponent = /** @class */ (function () {
1102
1102
  message: '',
1103
1103
  duration: 3000
1104
1104
  };
1105
- this.fakeEditImg = {
1106
- big_miniature: "501",
1107
- category: "produits",
1108
- cropped: "0",
1109
- date: "2020-12-03",
1110
- display_name: "Nordique-maison-d-coration-accessoires-fleur-vase-d-coration-maison-Terrarium-verre-Vases-tubes-essai-pour",
1111
- file_name: "5942/3261/46/nordique-maison-d-coration-accessoires-fleur-vase-d-coration-maison-terrarium-verre-vases-tubes-essai-pour.jpeg",
1112
- g_id: "10",
1113
- id_file: "5942",
1114
- id_shop: "131",
1115
- nb_used: "1",
1116
- old_file_name: "",
1117
- raw_height: "800",
1118
- raw_width: "800",
1119
- size: "64062",
1120
- };
1121
1105
  }
1122
1106
  ImgTabsComponent.prototype.ngOnInit = function () {
1123
1107
  var _this = this;
@@ -1143,6 +1127,7 @@ var ImgTabsComponent = /** @class */ (function () {
1143
1127
  if (msgKey) {
1144
1128
  this.alertService.openAlert(msgKey);
1145
1129
  }
1130
+ this.currentTab.emit('close');
1146
1131
  };
1147
1132
  ImgTabsComponent.prototype.onShowImgUploaded = function () {
1148
1133
  this.tabActive = this.tabs[1];
@@ -1375,6 +1360,9 @@ var PexelLibComponent = /** @class */ (function () {
1375
1360
  PexelLibComponent.prototype.setNbColumnsToDisplayPhoto = function () {
1376
1361
  var _this = this;
1377
1362
  var width = this.outerElement.nativeElement.offsetWidth;
1363
+ if (this.stateDisplayed !== 'window') {
1364
+ this.nbColumuns = 8;
1365
+ }
1378
1366
  this.responsiveColumns.forEach(function (value) {
1379
1367
  if (width < value) {
1380
1368
  _this.nbColumuns--;
@@ -1533,7 +1521,7 @@ var PexelLibComponent = /** @class */ (function () {
1533
1521
  }());
1534
1522
 
1535
1523
  var ImagesActionHandler = /** @class */ (function () {
1536
- function ImagesActionHandler(imgManager, imgSelectionService, http, imgCDNService, imgEventCardService, alertService, translateService, externalService) {
1524
+ function ImagesActionHandler(imgManager, imgSelectionService, http, imgCDNService, imgEventCardService, alertService, translateService, externalService, nwbDialog) {
1537
1525
  this.imgManager = imgManager;
1538
1526
  this.imgSelectionService = imgSelectionService;
1539
1527
  this.http = http;
@@ -1542,6 +1530,7 @@ var ImagesActionHandler = /** @class */ (function () {
1542
1530
  this.alertService = alertService;
1543
1531
  this.translateService = translateService;
1544
1532
  this.externalService = externalService;
1533
+ this.nwbDialog = nwbDialog;
1545
1534
  this.picturesList = [];
1546
1535
  this.picturesListChange = new EventEmitter();
1547
1536
  this.tableFilters = {
@@ -1560,6 +1549,13 @@ var ImagesActionHandler = /** @class */ (function () {
1560
1549
  this.isLoading = false;
1561
1550
  this.errorRemoveImg = 'ImgManager.ImgList.errorRemoveImg';
1562
1551
  this.errorAlreadyUsedImg = 'ImgManager.ImgList.errorAlreadyUsed';
1552
+ this.dialogConfig = {
1553
+ title: 'ImgManager.ImgList.deleteImg',
1554
+ message: 'ImgManager.ImgList.areYouSureDeleteImg',
1555
+ okButtonText: 'ImgManager.ImgList.confirmDelete',
1556
+ cancelButtonText: 'ImgManager.ImgList.cancelDelete',
1557
+ loading: false
1558
+ };
1563
1559
  this.fakeImgRoute = this.externalService.getRouteAssets() + 'img/fake.png';
1564
1560
  }
1565
1561
  /** Event emit when the header checkbox is checked */
@@ -1598,14 +1594,19 @@ var ImagesActionHandler = /** @class */ (function () {
1598
1594
  };
1599
1595
  ImagesActionHandler.prototype.onRemoveImg = function (picture) {
1600
1596
  var _this = this;
1601
- picture.deleted = true;
1602
- this.imgManager.removeImg(picture.id_file).subscribe(function (data) {
1603
- _this.imgEventCardService.emitImgRemoved(picture.id_file);
1604
- _this.imgSelectionService.removeImgSelectedById(picture.id_file);
1605
- }, function (error) {
1606
- var msg = error.status === 409 ? _this.errorAlreadyUsedImg : _this.errorRemoveImg;
1607
- picture.deleted = false;
1608
- _this.alertService.openAlert(msg);
1597
+ var dialog = this.nwbDialog.open(this.dialogConfig);
1598
+ dialog.afterClosed().subscribe(function (ok) {
1599
+ if (ok) {
1600
+ picture.deleted = true;
1601
+ _this.imgManager.removeImg(picture.id_file).subscribe(function (data) {
1602
+ _this.imgEventCardService.emitImgRemoved(picture.id_file);
1603
+ _this.imgSelectionService.removeImgSelectedById(picture.id_file);
1604
+ }, function (error) {
1605
+ var msg = error.status === 409 ? _this.errorAlreadyUsedImg : _this.errorRemoveImg;
1606
+ picture.deleted = false;
1607
+ _this.alertService.openAlert(msg);
1608
+ });
1609
+ }
1609
1610
  });
1610
1611
  };
1611
1612
  ImagesActionHandler.prototype.onPictureNotLoading = function (event) {
@@ -1647,7 +1648,8 @@ var ImagesActionHandler = /** @class */ (function () {
1647
1648
  { type: ImgEventService },
1648
1649
  { type: AlertService },
1649
1650
  { type: TranslateService },
1650
- { type: ImgManagerConfigService }
1651
+ { type: ImgManagerConfigService },
1652
+ { type: NwbDialogService }
1651
1653
  ]; };
1652
1654
  __decorate([
1653
1655
  Input(),
@@ -1698,15 +1700,16 @@ var ImagesActionHandler = /** @class */ (function () {
1698
1700
  ImgEventService,
1699
1701
  AlertService,
1700
1702
  TranslateService,
1701
- ImgManagerConfigService])
1703
+ ImgManagerConfigService,
1704
+ NwbDialogService])
1702
1705
  ], ImagesActionHandler);
1703
1706
  return ImagesActionHandler;
1704
1707
  }());
1705
1708
 
1706
1709
  var ImgCardComponent = /** @class */ (function (_super) {
1707
1710
  __extends(ImgCardComponent, _super);
1708
- function ImgCardComponent(imgManager, imgSelectionService, http, imgCDNService, imgEventCardService, alertService, translateService, externalService) {
1709
- var _this = _super.call(this, imgManager, imgSelectionService, http, imgCDNService, imgEventCardService, alertService, translateService, externalService) || this;
1711
+ function ImgCardComponent(imgManager, imgSelectionService, http, imgCDNService, imgEventCardService, alertService, translateService, externalService, nwbDialogService) {
1712
+ var _this = _super.call(this, imgManager, imgSelectionService, http, imgCDNService, imgEventCardService, alertService, translateService, externalService, nwbDialogService) || this;
1710
1713
  _this.focusInput = false;
1711
1714
  _this.toggleImgSelected = new EventEmitter();
1712
1715
  _this.isUploadSection = false;
@@ -1726,7 +1729,8 @@ var ImgCardComponent = /** @class */ (function (_super) {
1726
1729
  { type: ImgEventService },
1727
1730
  { type: AlertService },
1728
1731
  { type: TranslateService },
1729
- { type: ImgManagerConfigService }
1732
+ { type: ImgManagerConfigService },
1733
+ { type: NwbDialogService }
1730
1734
  ]; };
1731
1735
  __decorate([
1732
1736
  Input(),
@@ -1751,7 +1755,7 @@ var ImgCardComponent = /** @class */ (function (_super) {
1751
1755
  ImgCardComponent = __decorate([
1752
1756
  Component({
1753
1757
  selector: 'img-card',
1754
- template: "<div class=\"addCssPriority\" [@easeInOut]=\"'in'\" [ngClass]=\"{ 'fullSize': fullSize }\">\n <div class=\"img-card\">\n <div class=\"img-card__container\"\n [ngClass]=\"{\n 'smallDisplay': stateDisplayed === 'small' || isUploadSection,\n 'imgSelected': picture.selected,\n 'deletion': picture.deleted}\">\n <img\n class=\"img-card__container__img\"\n [src]=\"picture.file_name | imgSrc : '400'\"\n [alt]=\"picture.display_name\"\n (click)=\"onToggleImgSelected()\"\n (error)=\"picture.imgNotLoaded=true;onPictureNotLoading($event);\"\n />\n <div\n class=\"img-card__container__config\"\n *ngIf=\"!picture.deleted && stateDisplayed !== 'small'\"\n >\n <button class=\"size\"><i class=\"fal fa-image-polaroid\"></i><span>{{picture.raw_height}}x{{picture.raw_width}}</span></button>\n <button class=\"dl\" (click)=\"onDownloadImg(picture.display_name, picture.file_name)\"><i class=\"fal fa-download\"></i><span>{{ 'ImgManager.ImgCard.download' | translate }}</span></button>\n <button class=\"edit\" (click)=\"onEdit(picture)\"><i class=\"far fa-crop-alt\"></i><span>{{ 'ImgManager.ImgCard.edit' | translate }}</span></button>\n <button class=\"deleted\" (click)=\"onRemoveImg(picture)\"><i class=\"fal fa-times\"></i><span>{{ 'ImgManager.ImgCard.del' | translate }}</span></button>\n <button class=\"selected\" (click)=\"onToggleImgSelected()\" *ngIf=\"stateDisplayed !== 'window'\">\n <i *ngIf=\"!picture.selected\" class=\"fal fa-square\"></i>\n <i *ngIf=\"picture.selected\" class=\"fas fa-check-square checked\"></i>\n <span>{{ 'ImgManager.ImgCard.select' | translate }}</span>\n </button>\n </div>\n <div\n *ngIf=\"picture.imgNotLoaded\"\n class=\"img-card__container__overlay\"\n [ngClass]=\"{'img-card__container__overlay--smallDisplay': stateDisplayed === 'small' || isUploadSection}\">\n <i (click)=\"onToggleImgSelected()\" class=\"fad fa-folder-times\"></i>\n </div>\n <span btnLoadingAnim class=\"btnLoadingAnnimation\" *ngIf=\"picture.deleted\"></span>\n\n </div>\n <div\n class=\"img-card__nameContainer\"\n [ngClass]=\"{'smallNameDisplay': stateDisplayed === 'small' || isUploadSection, 'focus': focusInput}\">\n <input\n type=\"text\"\n class=\"wzImgMngInput img-card__nameContainer__name\"\n [(ngModel)]=\"picture.display_name\"\n (ngModelChange)=\"onNameChange(picture.id_file)\"\n (focus)=\"previousName=picture.display_name;focusInput = true;\"\n (blur)=\"focusInput = false;\"\n >\n <span>{{picture.display_name}}</span>\n </div>\n\n </div>\n</div>\n",
1758
+ template: "<div class=\"addCssPriority\" [@easeInOut]=\"'in'\" [ngClass]=\"{ 'fullSize': fullSize }\">\n <div class=\"img-card\">\n <div class=\"img-card__container\"\n [ngClass]=\"{\n 'smallDisplay': stateDisplayed === 'small' || isUploadSection,\n 'imgSelected': picture.selected,\n 'deletion': picture.deleted}\">\n <img\n class=\"img-card__container__img\"\n [src]=\"picture.file_name | imgSrc : '400'\"\n [alt]=\"picture.display_name\"\n (click)=\"onToggleImgSelected()\"\n (error)=\"picture.imgNotLoaded=true;onPictureNotLoading($event);\"\n />\n <div\n class=\"img-card__container__config\"\n *ngIf=\"!picture.deleted && stateDisplayed !== 'small'\"\n >\n <button class=\"size\"><i class=\"fal fa-image-polaroid\"></i><span>{{picture.raw_height}}x{{picture.raw_width}}</span></button>\n <button class=\"dl\" (click)=\"onDownloadImg(picture.display_name, picture.file_name)\"><i class=\"fal fa-download\"></i><span>{{ 'ImgManager.ImgCard.download' | translate }}</span></button>\n <button class=\"edit\" (click)=\"onEdit(picture)\"><i class=\"far fa-crop-alt\"></i><span>{{ 'ImgManager.ImgCard.edit' | translate }}</span></button>\n <button class=\"deleted\" (click)=\"onRemoveImg(picture)\"><i class=\"fal fa-times\"></i><span>{{ 'ImgManager.ImgCard.del' | translate }}</span></button>\n <button class=\"selected\" (click)=\"onToggleImgSelected()\" *ngIf=\"stateDisplayed !== 'window'\">\n <i *ngIf=\"!picture.selected\" class=\"fal fa-square\"></i>\n <i *ngIf=\"picture.selected\" class=\"fas fa-check-square checked\"></i>\n <span>{{ 'ImgManager.ImgCard.select' | translate }}</span>\n </button>\n </div>\n <div class=\"img-card__container__valid\" *ngIf=\"stateDisplayed === 'small' && tabDisplayed == 'img-upload'\">\n <i class=\"far fa-check\"></i>\n <span>{{ 'ImgManager.ImgCard.validImgSmall' | translate }}</span>\n </div>\n <div\n *ngIf=\"picture.imgNotLoaded\"\n class=\"img-card__container__overlay\"\n [ngClass]=\"{'img-card__container__overlay--smallDisplay': stateDisplayed === 'small' || isUploadSection}\">\n <i (click)=\"onToggleImgSelected()\" class=\"fad fa-folder-times\"></i>\n </div>\n <span btnLoadingAnim class=\"btnLoadingAnnimation\" *ngIf=\"picture.deleted\"></span>\n\n </div>\n <div\n class=\"img-card__nameContainer\"\n [ngClass]=\"{'smallNameDisplay': stateDisplayed === 'small' || isUploadSection, 'focus': focusInput}\">\n <input\n type=\"text\"\n class=\"wzImgMngInput img-card__nameContainer__name\"\n [(ngModel)]=\"picture.display_name\"\n (ngModelChange)=\"onNameChange(picture.id_file)\"\n (focus)=\"previousName=picture.display_name;focusInput = true;\"\n (blur)=\"focusInput = false;\"\n >\n <span>{{picture.display_name}}</span>\n </div>\n\n </div>\n</div>\n",
1755
1759
  animations: [
1756
1760
  easeInOut
1757
1761
  ]
@@ -1763,7 +1767,8 @@ var ImgCardComponent = /** @class */ (function (_super) {
1763
1767
  ImgEventService,
1764
1768
  AlertService,
1765
1769
  TranslateService,
1766
- ImgManagerConfigService])
1770
+ ImgManagerConfigService,
1771
+ NwbDialogService])
1767
1772
  ], ImgCardComponent);
1768
1773
  return ImgCardComponent;
1769
1774
  }(ImagesActionHandler));
@@ -2011,7 +2016,7 @@ var CanvaBtnComponent = /** @class */ (function () {
2011
2016
  CanvaBtnComponent = __decorate([
2012
2017
  Component({
2013
2018
  selector: 'canva-btn',
2014
- template: "<div class=\"canva dropdown is-right\"\n [ngClass]=\"{'is-up': stateDisplayed === 'small', 'is-hoverable noTooltip': stateDisplayed !== 'small'}\"\n >\n <div class=\"dropdown-trigger\">\n <button\n class=\"button canva-btn\"\n aria-haspopup=\"true\"\n aria-controls=\"dropdown-menuCanva\"\n (click)=\"openDropDownMenu = true\"\n [nwbToolTip]=\"'ImgManager.CanvaBtn.createImg.title' | translate\" nwbToolTipPosition=\"left\"\n >\n <span>{{'ImgManager.CanvaBtn.createImg' | translate}}</span>\n <img [src]=\"canvaLogoRouteAssets\" class=\"canva-btn__logo\">\n\n <span btnLoadingAnim class=\"btnLoadingAnnimation\" *ngIf=\"imgLoading\"></span>\n </button>\n </div>\n <div\n wzAutoHide (clickOutside)=\"openDropDownMenu = false;\" [triggerElement]=\"'canva-btn'\"\n class=\"dropdown-menu dropDownShadow\"\n [ngClass]=\"{'displayDropDownMenu': openDropDownMenu }\"\n id=\"dropdown-menuCanva\"\n role=\"menu\">\n <ng-scrollbar\n #scrollable\n [visibility]=\"'hover'\"\n class=\"smallScroll\"\n >\n <div class=\"dropdown-content\">\n <div class=\"dropdownTitle\">\n <p>{{'ImgManager.CanvaBtn.createImg.title' | translate}}</p>\n </div>\n\n <div class=\"infoItem\">\n <p>{{'ImgManager.CanvaBtn.info' | translate}}</p>\n </div>\n\n <ng-container >\n <div\n *ngIf=\"expectedWidth && expectedHeight\"\n class=\"dropdown-item-wrapper\"\n >\n <div class=\"dropdown-item expectedSizes\" (click)=\"onOpenCanva(expectedWidth, expectedHeight)\">\n <p>{{'ImgManager.CanvaBtn.recommanded' | translate}}</p><p>{{expectedWidth}}*{{expectedHeight}}</p>\n </div>\n </div>\n </ng-container>\n\n <div\n *ngFor=\"let format of availableFormat| keyvalue\"\n class=\"dropdown-item-wrapper\">\n <div\n (click)=\"onOpenCanva(format.value.width, format.value.height)\"\n class=\"dropdown-item\">\n <p>{{format.key | translate}}</p><p>{{format.value.width}}*{{format.value.height}}</p>\n </div>\n </div>\n </div>\n </ng-scrollbar>\n </div>\n</div>\n"
2019
+ template: "<div class=\"canva dropdown is-right\"\n [ngClass]=\"{'is-up': stateDisplayed === 'small', 'is-hoverable noTooltip': stateDisplayed !== 'small'}\"\n >\n <div class=\"dropdown-trigger\">\n <button\n class=\"button canva-btn\"\n aria-controls=\"dropdown-menuCanva\"\n (click)=\"openDropDownMenu = true\"\n >\n <span>{{'ImgManager.CanvaBtn.createImg' | translate}}</span>\n <img [src]=\"canvaLogoRouteAssets\" class=\"canva-btn__logo\">\n\n <span btnLoadingAnim class=\"btnLoadingAnnimation\" *ngIf=\"imgLoading\"></span>\n </button>\n </div>\n <div\n wzAutoHide (clickOutside)=\"openDropDownMenu = false;\" [triggerElement]=\"'canva-btn'\"\n class=\"dropdown-menu dropDownShadow\"\n [ngClass]=\"{'displayDropDownMenu': openDropDownMenu }\"\n id=\"dropdown-menuCanva\"\n role=\"menu\">\n <ng-scrollbar\n #scrollable\n [visibility]=\"'hover'\"\n class=\"smallScroll\"\n >\n <div class=\"dropdown-content\">\n <div class=\"dropdownTitle\">\n <p>{{'ImgManager.CanvaBtn.createImg.title' | translate}}</p>\n </div>\n\n <div class=\"infoItem\">\n <p>{{'ImgManager.CanvaBtn.info' | translate}}</p>\n </div>\n\n <ng-container >\n <div\n *ngIf=\"expectedWidth && expectedHeight\"\n class=\"dropdown-item-wrapper\"\n >\n <div class=\"dropdown-item expectedSizes\" (click)=\"onOpenCanva(expectedWidth, expectedHeight)\">\n <p>{{'ImgManager.CanvaBtn.recommanded' | translate}}</p><p>{{expectedWidth}}*{{expectedHeight}}</p>\n </div>\n </div>\n </ng-container>\n\n <div\n *ngFor=\"let format of availableFormat| keyvalue\"\n class=\"dropdown-item-wrapper\">\n <div\n (click)=\"onOpenCanva(format.value.width, format.value.height)\"\n class=\"dropdown-item\">\n <p>{{format.key | translate}}</p><p>{{format.value.width}}*{{format.value.height}}</p>\n </div>\n </div>\n </div>\n </ng-scrollbar>\n </div>\n</div>\n"
2015
2020
  }),
2016
2021
  __metadata("design:paramtypes", [CanvaService,
2017
2022
  ImgManagerService,
@@ -3074,8 +3079,8 @@ var ImagesViewComponent = /** @class */ (function () {
3074
3079
 
3075
3080
  var MosaicViewComponent = /** @class */ (function (_super) {
3076
3081
  __extends(MosaicViewComponent, _super);
3077
- function MosaicViewComponent(imgManager, imgSelectionService, http, imgCDNService, imgEventCardService, alertService, translateService, externalService) {
3078
- var _this = _super.call(this, imgManager, imgSelectionService, http, imgCDNService, imgEventCardService, alertService, translateService, externalService) || this;
3082
+ function MosaicViewComponent(imgManager, imgSelectionService, http, imgCDNService, imgEventCardService, alertService, translateService, externalService, nwbDialogService) {
3083
+ var _this = _super.call(this, imgManager, imgSelectionService, http, imgCDNService, imgEventCardService, alertService, translateService, externalService, nwbDialogService) || this;
3079
3084
  _this.nbFakeImg = 0;
3080
3085
  return _this;
3081
3086
  }
@@ -3099,7 +3104,8 @@ var MosaicViewComponent = /** @class */ (function (_super) {
3099
3104
  { type: ImgEventService },
3100
3105
  { type: AlertService },
3101
3106
  { type: TranslateService },
3102
- { type: ImgManagerConfigService }
3107
+ { type: ImgManagerConfigService },
3108
+ { type: NwbDialogService }
3103
3109
  ]; };
3104
3110
  __decorate([
3105
3111
  Input(),
@@ -3116,7 +3122,7 @@ var MosaicViewComponent = /** @class */ (function (_super) {
3116
3122
  MosaicViewComponent = __decorate([
3117
3123
  Component({
3118
3124
  selector: 'mosaic-view',
3119
- template: "<div class=\"mosaic\" [ngClass]=\"{'fullSize': fullSize, 'small': stateDisplayed === 'small', 'mosaic--displayPexelsImg': displayPexelsResults}\">\n <!-- Search section -->\n <div\n class=\"mosaic__search\"\n [ngClass]=\"{'mosaic__search--small': stateDisplayed === 'small'}\"\n *ngIf=\"tabDisplayed !== 'img-upload'\">\n <wz-input-search\n [(ngModel)]=\"tableFilters.searchValue\"\n (changeDebounced)=\"onSearchChange($event)\"\n [placeholder]=\"'ImgManager.SearchBar.placeholder' | translate\"\n [smallPadding]=\"stateDisplayed === 'small'\"\n ></wz-input-search>\n </div>\n\n <!-- Cards section -->\n <div\n class=\"mosaic__container__cards\"\n [@listAnimation]=\"picturesList.length\"\n *ngIf=\"!isLoading && !displayPexelsResults\"\n >\n <img-card\n *ngFor=\"let picture of picturesList; let index = index;\"\n [picture]=\"picture\"\n [stateDisplayed]=\"stateDisplayed\"\n [tabDisplayed]=\"tabDisplayed\"\n [disable]=\"disable\"\n (toggleImgSelected)=\"onToggleSelectImg(index)\"\n (pictureNameChange)=\"onCardRenamePicture($event)\"\n [fullSize]=\"fullSize\"\n ></img-card>\n <div\n *ngFor=\"let fakeImg of nbFakeImg | numberToArray\"\n class=\"mosaic__container__cards__fakeImg\"\n [ngClass]=\"{'mosaic__container__cards__fakeImg--smallFakeImg': stateDisplayed === 'small' || tabDisplayed === 'img-upload'}\">\n </div>\n </div>\n <!-- Loader section -->\n <div class=\"mosaic__container__loader\" *ngIf=\"isLoading\">\n <wz-loader [small]=\"true\"></wz-loader>\n </div>\n\n <!-- Pagination section -->\n <div class=\"mosaic__pagination\" *ngIf=\"picturesList.length && tabDisplayed !== 'img-upload' && !displayPexelsResults\" >\n <wz-pagination\n [pagination]=\"tableFilters\"\n (pageChange)=\"onFiltersChange()\"\n >\n </wz-pagination>\n </div>\n\n</div>\n",
3125
+ template: "<div class=\"mosaic\" [ngClass]=\"{'fullSize': fullSize, 'small': stateDisplayed === 'small', 'mosaic--displayPexelsImg': displayPexelsResults}\">\n <!-- Search section -->\n <div\n class=\"mosaic__search\"\n [ngClass]=\"{'mosaic__search--small': stateDisplayed === 'small'}\"\n *ngIf=\"tabDisplayed !== 'img-upload'\">\n <wz-input-search\n [(ngModel)]=\"tableFilters.searchValue\"\n (changeDebounced)=\"onSearchChange($event)\"\n [placeholder]=\"'ImgManager.SearchBar.placeholder' | translate\"\n [smallPadding]=\"stateDisplayed === 'small'\"\n ></wz-input-search>\n </div>\n\n <!-- Cards section -->\n <div\n class=\"mosaic__container__cards\"\n [ngClass]=\"{'mosaic__container__cards--padding': stateDisplayed !== 'window'}\"\n [@listAnimation]=\"picturesList.length\"\n *ngIf=\"!isLoading && !displayPexelsResults\"\n >\n <img-card\n *ngFor=\"let picture of picturesList; let index = index;\"\n [picture]=\"picture\"\n [stateDisplayed]=\"stateDisplayed\"\n [tabDisplayed]=\"tabDisplayed\"\n [disable]=\"disable\"\n (toggleImgSelected)=\"onToggleSelectImg(index)\"\n (pictureNameChange)=\"onCardRenamePicture($event)\"\n [fullSize]=\"fullSize\"\n ></img-card>\n <div\n *ngFor=\"let fakeImg of nbFakeImg | numberToArray\"\n class=\"mosaic__container__cards__fakeImg\"\n [ngClass]=\"{'mosaic__container__cards__fakeImg--smallFakeImg': stateDisplayed === 'small' || tabDisplayed === 'img-upload'}\">\n </div>\n </div>\n <!-- Loader section -->\n <div class=\"mosaic__container__loader\" *ngIf=\"isLoading\">\n <wz-loader [small]=\"true\"></wz-loader>\n </div>\n\n <!-- Pagination section -->\n <div class=\"mosaic__pagination\" *ngIf=\"picturesList.length && tabDisplayed !== 'img-upload' && !displayPexelsResults\" >\n <wz-pagination\n [pagination]=\"tableFilters\"\n (pageChange)=\"onFiltersChange()\"\n >\n </wz-pagination>\n </div>\n\n</div>\n",
3120
3126
  animations: [
3121
3127
  listAnnimation
3122
3128
  ]
@@ -3128,15 +3134,16 @@ var MosaicViewComponent = /** @class */ (function (_super) {
3128
3134
  ImgEventService,
3129
3135
  AlertService,
3130
3136
  TranslateService,
3131
- ImgManagerConfigService])
3137
+ ImgManagerConfigService,
3138
+ NwbDialogService])
3132
3139
  ], MosaicViewComponent);
3133
3140
  return MosaicViewComponent;
3134
3141
  }(ImagesActionHandler));
3135
3142
 
3136
3143
  var TableViewComponent = /** @class */ (function (_super) {
3137
3144
  __extends(TableViewComponent, _super);
3138
- function TableViewComponent(imgManager, imgSelectionService, http, imgCDNService, imgEventCardService, alertService, translateService, externalService) {
3139
- var _this = _super.call(this, imgManager, imgSelectionService, http, imgCDNService, imgEventCardService, alertService, translateService, externalService) || this;
3145
+ function TableViewComponent(imgManager, imgSelectionService, http, imgCDNService, imgEventCardService, alertService, translateService, externalService, nwbDialogService) {
3146
+ var _this = _super.call(this, imgManager, imgSelectionService, http, imgCDNService, imgEventCardService, alertService, translateService, externalService, nwbDialogService) || this;
3140
3147
  _this.dataTableName = 'imgagesView'; // Name of your table
3141
3148
  return _this;
3142
3149
  }
@@ -3150,12 +3157,13 @@ var TableViewComponent = /** @class */ (function (_super) {
3150
3157
  { type: ImgEventService },
3151
3158
  { type: AlertService },
3152
3159
  { type: TranslateService },
3153
- { type: ImgManagerConfigService }
3160
+ { type: ImgManagerConfigService },
3161
+ { type: NwbDialogService }
3154
3162
  ]; };
3155
3163
  TableViewComponent = __decorate([
3156
3164
  Component({
3157
3165
  selector: 'table-view',
3158
- template: "<div class=\"table-view\" [@listAnimation]=\"picturesList.length\">\n <wz-table\n [checkbox]=\"true\"\n (toggleAllCheckBox)=\"onToggleAllCheckBoxRow($event)\"\n [(tableFilters)]=\"tableFilters\"\n (tableFiltersChange)=\"onFiltersChange()\"\n [placeholder]=\"'ImgManager.SearchBar.placeholder' | translate\"\n [disablePagniation]=\"displayPexelsResults\"\n [isLoading]=\"isLoading\"\n >\n <!-- Header Section -->\n <div\n headerCell\n [headerName]=\"'ImgManager.ImgList.titleImgName' | translate\"\n columnSize=\"2\"\n sortName=\"name\"\n ></div>\n <div\n headerCell\n centerCell=\"center\"\n [headerName]=\"'ImgManager.ImgList.titleResolution' | translate\"\n ></div>\n <div headerCell columnSize=\"0\"></div>\n\n <!-- Body Section -->\n <div\n tableRow\n checkBoxRow\n [checkBoxValue]=\"picture.delSelected\"\n (checkBoxValueChange)=\"onToggleDelSelection(index)\"\n *ngFor=\"let picture of picturesList; let index = index\"\n >\n\n <div tableColumn columnSize=\"2\">\n <div class=\"table-view__row__container\">\n <div\n class=\"table-view__row__container__imgContainer\"\n [ngClass]=\"{'imgSelected': picture.selected}\"\n (click)=\"onToggleSelectImg(index)\">\n <img\n class=\"table-view__row__container__imgContainer__img\"\n [src]=\"picture.file_name | imgSrc : '100'\"\n alt=\"picture.display_name\"\n [ngClass]=\"{'pictureDeletion': picture.deleted}\"\n (error)=\"picture.imgNotLoaded=true;onPictureNotLoading($event);\"\n />\n <!-- If the img is not loaded, or the link is broken, an icon is displayed -->\n <div\n *ngIf=\"picture.imgNotLoaded\"\n class=\"table-view__row__container__imgContainer__overlay\"\n >\n <i class=\"fad fa-folder-times\"></i>\n </div>\n </div>\n <input\n type=\"text\"\n class=\"wzImgMngInput table-view__row__container__name\"\n [(ngModel)]=\"picture.display_name\"\n (focus)=\"previousName=picture.display_name\"\n (ngModelChange)=\"onNameChange(picture.id_file)\"\n (click)=\"onToggleDelSelection(index)\"\n [ngClass]=\"{'desabled': picture.deleted}\"\n [disabled]=\"picture.deleted\"\n >\n </div>\n </div>\n\n <div\n tableColumn\n centerCell=\"center\"\n (click)=\"onToggleDelSelection(index)\"\n >\n <p>{{picture.raw_height}}x{{picture.raw_width}}</p>\n </div>\n\n <div tableColumn centerCell=\"center\" columnSize=\"0\" class=\"table-view__dropdown-options\">\n <!-- Dropdown -->\n <dropdown dropdownId=\"dropdown-options\" [disable]=\"picture.deleted\">\n <ng-container label>\n <div class=\"table-view__dropdown-options__label rotate\">\n <span> <i class=\"far fa-ellipsis-h is-size-4\" aria-haspopup=\"true\" aria-controls=\"dropdown-menu\"> </i> </span>\n </div>\n </ng-container>\n <ng-container item>\n <div\n class=\"dropdown-item\"\n (click)=\"onDownloadImg(picture.display_name, picture.file_name)\"\n >\n <i class=\"far fa-download download\"></i>&nbsp;\n <p>{{ 'ImgManager.ImgList.download' | translate }}</p>\n </div>\n </ng-container>\n <ng-container item>\n <div\n class=\"dropdown-item\"\n (click)=\"onEdit(picture)\"\n >\n <i class=\"far fa-crop-alt edit\"></i>&nbsp;\n <p>{{ 'ImgManager.ImgList.edit' | translate }}</p>\n </div>\n </ng-container>\n <ng-container item>\n <div\n class=\"dropdown-item\"\n (click)=\"onRemoveImg(picture)\"\n >\n <i class=\"fal fa-times deleted\"></i>&nbsp;\n <p>{{ 'ImgManager.ImgList.remove' | translate }}</p>\n </div>\n </ng-container>\n </dropdown>\n </div>\n </div>\n </wz-table>\n</div>",
3166
+ template: "<div class=\"table-view\" [@listAnimation]=\"picturesList.length\">\n <wz-table\n [checkbox]=\"true\"\n (toggleAllCheckBox)=\"onToggleAllCheckBoxRow($event)\"\n [(tableFilters)]=\"tableFilters\"\n (tableFiltersChange)=\"onFiltersChange()\"\n [placeholder]=\"'ImgManager.SearchBar.placeholder' | translate\"\n [disablePagniation]=\"displayPexelsResults\"\n [isLoading]=\"isLoading\"\n >\n <!-- Header Section -->\n <div\n headerCell\n [headerName]=\"'ImgManager.ImgList.titleImgName' | translate\"\n columnSize=\"2\"\n sortName=\"name\"\n ></div>\n <div\n headerCell\n centerCell=\"center\"\n [headerName]=\"'ImgManager.ImgList.titleResolution' | translate\"\n ></div>\n <div headerCell columnSize=\"0\"></div>\n\n <!-- Body Section -->\n <div\n tableRow\n checkBoxRow\n [checkBoxValue]=\"picture.delSelected\"\n (checkBoxValueChange)=\"onToggleDelSelection(index)\"\n *ngFor=\"let picture of picturesList; let index = index\"\n >\n\n <div tableColumn columnSize=\"2\">\n <div class=\"table-view__row__container\">\n <div\n class=\"table-view__row__container__imgContainer\"\n [ngClass]=\"{'imgSelected': picture.selected}\"\n (click)=\"onToggleSelectImg(index)\">\n <img\n class=\"table-view__row__container__imgContainer__img\"\n [src]=\"picture.file_name | imgSrc : '100'\"\n alt=\"picture.display_name\"\n [ngClass]=\"{'pictureDeletion': picture.deleted}\"\n (error)=\"picture.imgNotLoaded=true;onPictureNotLoading($event);\"\n />\n <!-- If the img is not loaded, or the link is broken, an icon is displayed -->\n <div\n *ngIf=\"picture.imgNotLoaded\"\n class=\"table-view__row__container__imgContainer__overlay\"\n >\n <i class=\"fad fa-folder-times\"></i>\n </div>\n </div>\n <input\n type=\"text\"\n class=\"wzImgMngInput table-view__row__container__name\"\n [(ngModel)]=\"picture.display_name\"\n (focus)=\"previousName=picture.display_name\"\n (blur)=\"onNameChange(picture.id_file)\"\n (click)=\"onToggleDelSelection(index)\"\n [ngClass]=\"{'desabled': picture.deleted}\"\n [disabled]=\"picture.deleted\"\n >\n </div>\n </div>\n\n <div\n tableColumn\n centerCell=\"center\"\n (click)=\"onToggleDelSelection(index)\"\n >\n <p class=\"grey\">{{picture.raw_height}}x{{picture.raw_width}}</p>\n </div>\n\n <div tableColumn centerCell=\"center\" columnSize=\"0\" class=\"table-view__dropdown-options\">\n <!-- Dropdown -->\n <dropdown dropdownId=\"dropdown-options\" [disable]=\"picture.deleted\">\n <ng-container label>\n <div class=\"table-view__dropdown-options__label rotate\">\n <span> <i class=\"far fa-ellipsis-h is-size-4\" aria-haspopup=\"true\" aria-controls=\"dropdown-menu\"> </i> </span>\n </div>\n </ng-container>\n <ng-container item>\n <div\n class=\"dropdown-item\"\n (click)=\"onDownloadImg(picture.display_name, picture.file_name)\"\n >\n <i class=\"far fa-download download\"></i>&nbsp;\n <p>{{ 'ImgManager.ImgList.download' | translate }}</p>\n </div>\n </ng-container>\n <ng-container item>\n <div\n class=\"dropdown-item\"\n (click)=\"onEdit(picture)\"\n >\n <i class=\"far fa-crop-alt edit\"></i>&nbsp;\n <p>{{ 'ImgManager.ImgList.edit' | translate }}</p>\n </div>\n </ng-container>\n <ng-container item>\n <div\n class=\"dropdown-item\"\n (click)=\"onRemoveImg(picture)\"\n >\n <i class=\"fal fa-times deleted\"></i>&nbsp;\n <p>{{ 'ImgManager.ImgList.remove' | translate }}</p>\n </div>\n </ng-container>\n </dropdown>\n </div>\n </div>\n </wz-table>\n</div>\n",
3159
3167
  animations: [
3160
3168
  listAnnimation
3161
3169
  ]
@@ -3167,7 +3175,8 @@ var TableViewComponent = /** @class */ (function (_super) {
3167
3175
  ImgEventService,
3168
3176
  AlertService,
3169
3177
  TranslateService,
3170
- ImgManagerConfigService])
3178
+ ImgManagerConfigService,
3179
+ NwbDialogService])
3171
3180
  ], TableViewComponent);
3172
3181
  return TableViewComponent;
3173
3182
  }(ImagesActionHandler));
@@ -3495,7 +3504,7 @@ var PaginationComponent = /** @class */ (function () {
3495
3504
  PaginationComponent = __decorate([
3496
3505
  Component({
3497
3506
  selector: 'wz-pagination',
3498
- template: "<div class=\"wz-pagination\" *ngIf=\"pagination && pagination.itemsPerPage\">\n <div class=\"wz-pagination__wrapper\">\n <div class=\"wz-pagination__wrapper__page\">\n <p>{{ 'PaginationComponent.page' | translate }}</p>\n\n <select name=\"page\" (change)=\"onGotoPageChange($event)\">\n <ng-container *ngFor=\"let pageIndex of pagination.totalItems | ArrayTotalPages: pagination.itemsPerPage\">\n <option [selected]=\"pageIndex === pagination.currentPage\" [value]=\"pageIndex\">\n {{ pageIndex }}\n </option>\n </ng-container>\n </select>\n </div>\n\n <div class=\"wz-pagination__wrapper__elements\">\n <p>{{ pagination.currentPage | customPagniationText: pagination.totalItems:pagination.itemsPerPage }}</p>\n </div>\n\n <div class=\"wz-pagination__wrapper__arrows\">\n <div\n (click)=\"decrementPage()\"\n class=\"wz-pagination__wrapper__arrows__arrow wz-pagination__wrapper__arrows__arrow--left\"\n [ngClass]=\"{ 'wz-pagination__wrapper__arrows__arrow--disabled': pagination.currentPage === 1 }\"\n >\n <span class=\"wz-pagination__wrapper__arrows__arrow__icon\"></span>\n </div>\n <div\n (click)=\"incrementPage()\"\n class=\"wz-pagination__wrapper__arrows__arrow wz-pagination__wrapper__arrows__arrow--right\"\n [ngClass]=\"{\n 'wz-pagination__wrapper__arrows__arrow--disabled':\n pagination.currentPage | IsLastPage: pagination.totalItems:pagination.itemsPerPage\n }\"\n >\n <span class=\"wz-pagination__wrapper__arrows__arrow__icon\"></span>\n </div>\n </div>\n </div>\n</div>\n"
3507
+ template: "<div class=\"wz-pagination\" *ngIf=\"pagination && pagination.itemsPerPage\">\n <div class=\"wz-pagination__wrapper\">\n <div class=\"wz-pagination__wrapper__page\">\n <p>{{ 'PaginationComponent.page' | translate }}</p>\n\n <select name=\"page\" (change)=\"onGotoPageChange($event)\" [ngStyle]=\"{'width': 40 + (10*pagination.currentPage.toString().length) + 'px'}\">\n <ng-container *ngFor=\"let pageIndex of pagination.totalItems | ArrayTotalPages: pagination.itemsPerPage\">\n <option [selected]=\"pageIndex === pagination.currentPage\" [value]=\"pageIndex\">\n {{ pageIndex }}\n </option>\n </ng-container>\n </select>\n </div>\n\n <div class=\"wz-pagination__wrapper__elements\">\n <p>{{ pagination.currentPage | customPagniationText: pagination.totalItems:pagination.itemsPerPage }}</p>\n </div>\n\n <div class=\"wz-pagination__wrapper__arrows\">\n <div\n (click)=\"decrementPage()\"\n class=\"wz-pagination__wrapper__arrows__arrow wz-pagination__wrapper__arrows__arrow--left\"\n [ngClass]=\"{ 'wz-pagination__wrapper__arrows__arrow--disabled': pagination.currentPage === 1 }\"\n >\n <span class=\"wz-pagination__wrapper__arrows__arrow__icon\"></span>\n </div>\n <div\n (click)=\"incrementPage()\"\n class=\"wz-pagination__wrapper__arrows__arrow wz-pagination__wrapper__arrows__arrow--right\"\n [ngClass]=\"{\n 'wz-pagination__wrapper__arrows__arrow--disabled':\n pagination.currentPage | IsLastPage: pagination.totalItems:pagination.itemsPerPage\n }\"\n >\n <span class=\"wz-pagination__wrapper__arrows__arrow__icon\"></span>\n </div>\n </div>\n </div>\n</div>\n"
3499
3508
  }),
3500
3509
  __metadata("design:paramtypes", [])
3501
3510
  ], PaginationComponent);