@wizishop/angular-components 0.0.108 → 0.0.111

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.
@@ -2489,7 +2489,6 @@ $wac-color-success-popup-alert: #6DCC95!default;
2489
2489
  position: fixed;
2490
2490
  top: 0;
2491
2491
  left: 0;
2492
- z-index: 9999;
2493
2492
 
2494
2493
  &__wrapper {
2495
2494
  background-color: white;
@@ -3612,6 +3611,7 @@ a.wac-link {
3612
3611
  position: fixed;
3613
3612
  top: 0;
3614
3613
  left: 0;
3614
+ z-index: 9999;
3615
3615
 
3616
3616
  &__wrapper {
3617
3617
  background-color: white;
@@ -927,7 +927,8 @@
927
927
  this.confirmDeleteText = '';
928
928
  this.confirmDeletePosition = 'right';
929
929
  this.click = new i0.EventEmitter();
930
- this.isLoading = false;
930
+ this.isLoadingChange = new i0.EventEmitter();
931
+ this._isLoading = false;
931
932
  this.interval = null;
932
933
  this.waitForConfirmDelete = false;
933
934
  this.buttonMaxWidth = '0px';
@@ -936,6 +937,20 @@
936
937
  this.buttonWidthDelete = '0px';
937
938
  this.currentLoading = 0;
938
939
  }
940
+ Object.defineProperty(ButtonComponent.prototype, "isLoading", {
941
+ get: function () {
942
+ return this._isLoading;
943
+ },
944
+ set: function (isLoading) {
945
+ if (isLoading) {
946
+ this.launchLoading();
947
+ }
948
+ this._isLoading = isLoading;
949
+ this.isLoadingChange.next(isLoading);
950
+ },
951
+ enumerable: false,
952
+ configurable: true
953
+ });
939
954
  ButtonComponent.prototype.ngOnInit = function () {
940
955
  if (this.confirmDelete) {
941
956
  this.waitForConfirmDelete = true;
@@ -976,20 +991,21 @@
976
991
  };
977
992
  ButtonComponent.prototype.onButtonClick = function (event) {
978
993
  event.stopPropagation();
979
- if (!this.disabled) {
980
- if (this.hasLoader) {
981
- this.launchLoading();
982
- }
983
- if (!this.waitForConfirmDelete) {
984
- this.click.emit(event);
985
- if (this.confirmDelete) {
986
- this.resetMaxWidthDelete();
987
- }
988
- }
989
- else {
990
- this.waitForConfirmDelete = false;
994
+ if (this.disabled) {
995
+ return;
996
+ }
997
+ if (this.hasLoader) {
998
+ this.launchLoading();
999
+ }
1000
+ if (!this.waitForConfirmDelete) {
1001
+ this.click.emit(event);
1002
+ if (this.confirmDelete) {
1003
+ this.resetMaxWidthDelete();
991
1004
  }
992
1005
  }
1006
+ else {
1007
+ this.waitForConfirmDelete = false;
1008
+ }
993
1009
  };
994
1010
  ButtonComponent.prototype.ngAfterViewInit = function () {
995
1011
  var _this = this;
@@ -1030,6 +1046,8 @@
1030
1046
  confirmDeleteText: [{ type: i0.Input }],
1031
1047
  confirmDeletePosition: [{ type: i0.Input }],
1032
1048
  click: [{ type: i0.Output }],
1049
+ isLoading: [{ type: i0.Input }],
1050
+ isLoadingChange: [{ type: i0.Output }],
1033
1051
  calculWidth: [{ type: i0.ViewChild, args: ['calculWidth',] }],
1034
1052
  calculWidthDelete: [{ type: i0.ViewChild, args: ['calculWidthDelete',] }]
1035
1053
  };
@@ -3288,7 +3306,6 @@
3288
3306
  this.visibleChange = new i0.EventEmitter();
3289
3307
  this.response = new i0.EventEmitter();
3290
3308
  this.background = true;
3291
- this.zIndex = 9999;
3292
3309
  this.firstOpen = true;
3293
3310
  }
3294
3311
  PopinComponent.prototype.ngOnInit = function () {
@@ -3317,7 +3334,7 @@
3317
3334
  PopinComponent.decorators = [
3318
3335
  { type: i0.Component, args: [{
3319
3336
  selector: 'wac-popin',
3320
- template: "<div class=\"wac-free\" *ngIf=\"visible\" [ngStyle]=\"{'z-index': zIndex}\">\n <div class=\"wac-free__wrapper\" wzAutoHide (clickOutside)=\"closePopin()\">\n <a class=\"wac-free__wrapper__button-close\" (click)=\"closePopin()\">\n <i class=\"fas fa-times\"></i>\n </a>\n <div class=\"wac-free__wrapper__content\">\n <perfect-scrollbar [config]=\"{ suppressScrollX: true }\">\n <img [src]=\"imgSrc\" alt=\"barre admin\" />\n\n <h2 class=\"wac-popin__wrapper__title\" [innerHTML]=\"title\"></h2>\n\n <p class=\"wac-popin__wrapper__text\" [innerHTML]=\"content\"></p>\n </perfect-scrollbar>\n </div>\n <div class=\"wac-free__wrapper__buttons\">\n <div class=\"wac-free__wrapper__buttons__button\" *ngIf=\"okButtonLabel\">\n <wac-button [extraClasses]=\"'is-success'\" [label]=\"okButtonLabel\" hasLoader=\"true\" (click)=\"validatePopin()\"></wac-button>\n </div>\n <div class=\"wac-free__wrapper__buttons__button\" *ngIf=\"koButtonLabel\">\n <wac-button [extraClasses]=\"'is-danger is-outlined'\" [label]=\"koButtonLabel\" hasLoader=\"true\" (click)=\"refusePopin()\"></wac-button>\n </div>\n </div>\n </div>\n <div class=\"wac-free__background\" *ngIf=\"background\"></div>\n</div>\n"
3337
+ template: "<div class=\"wac-free\" *ngIf=\"visible\">\n <div class=\"wac-free__wrapper\" wzAutoHide (clickOutside)=\"closePopin()\">\n <a class=\"wac-free__wrapper__button-close\" (click)=\"closePopin()\">\n <i class=\"fas fa-times\"></i>\n </a>\n <div class=\"wac-free__wrapper__content\">\n <perfect-scrollbar [config]=\"{ suppressScrollX: true }\">\n <img [src]=\"imgSrc\" alt=\"barre admin\" />\n\n <h2 class=\"wac-popin__wrapper__title\" [innerHTML]=\"title\"></h2>\n\n <p class=\"wac-popin__wrapper__text\" [innerHTML]=\"content\"></p>\n </perfect-scrollbar>\n </div>\n <div class=\"wac-free__wrapper__buttons\">\n <div class=\"wac-free__wrapper__buttons__button\" *ngIf=\"okButtonLabel\">\n <wac-button [extraClasses]=\"'is-success'\" [label]=\"okButtonLabel\" hasLoader=\"true\" (click)=\"validatePopin()\"></wac-button>\n </div>\n <div class=\"wac-free__wrapper__buttons__button\" *ngIf=\"koButtonLabel\">\n <wac-button [extraClasses]=\"'is-danger is-outlined'\" [label]=\"koButtonLabel\" hasLoader=\"true\" (click)=\"refusePopin()\"></wac-button>\n </div>\n </div>\n </div>\n <div class=\"wac-free__background\" *ngIf=\"background\"></div>\n</div>\n"
3321
3338
  },] }
3322
3339
  ];
3323
3340
  PopinComponent.ctorParameters = function () { return [
@@ -3334,8 +3351,7 @@
3334
3351
  visible: [{ type: i0.Input }],
3335
3352
  visibleChange: [{ type: i0.Output }],
3336
3353
  response: [{ type: i0.Output }],
3337
- background: [{ type: i0.Input }],
3338
- zIndex: [{ type: i0.Input }]
3354
+ background: [{ type: i0.Input }]
3339
3355
  };
3340
3356
 
3341
3357
  var FreePopinComponent = /** @class */ (function () {
@@ -3346,6 +3362,7 @@
3346
3362
  this.visibleChange = new i0.EventEmitter();
3347
3363
  this.response = new i0.EventEmitter();
3348
3364
  this.background = true;
3365
+ this.zIndex = 9999;
3349
3366
  this.firstOpen = true;
3350
3367
  }
3351
3368
  FreePopinComponent.prototype.ngOnInit = function () {
@@ -3374,7 +3391,7 @@
3374
3391
  FreePopinComponent.decorators = [
3375
3392
  { type: i0.Component, args: [{
3376
3393
  selector: 'wac-free-popin',
3377
- template: "<div class=\"wac-free-popin\" *ngIf=\"visible\">\n\n\n <div class=\"wac-free-popin__wrapper\" wzAutoHide (clickOutside)=\"!disableCloseOutside ? closePopin() : ''\">\n <a class=\"wac-free-popin__wrapper__button-close\" (click)=\"closePopin()\">\n <i class=\"fas fa-times\"></i>\n </a>\n <div class=\"wac-free-popin__wrapper__content\">\n <perfect-scrollbar [config]=\"{ suppressScrollX: true }\">\n <ng-content></ng-content>\n </perfect-scrollbar>\n </div>\n <div class=\"wac-free-popin__wrapper__buttons\">\n <div class=\"wac-free-popin__wrapper__buttons__button\" *ngIf=\"okButtonLabel\">\n <wac-button [extraClasses]=\"'is-success'\" [label]=\"okButtonLabel\" hasLoader=\"true\" (click)=\"validatePopin()\"></wac-button>\n </div>\n <div class=\"wac-free-popin__wrapper__buttons__button\" *ngIf=\"koButtonLabel\">\n <wac-button [extraClasses]=\"'is-danger is-outlined'\" [label]=\"koButtonLabel\" hasLoader=\"true\" (click)=\"refusePopin()\"></wac-button>\n </div>\n </div>\n </div>\n <div class=\"wac-free-popin__background\" *ngIf=\"background\"></div>\n</div>\n"
3394
+ template: "<div class=\"wac-free-popin\" *ngIf=\"visible\" [ngStyle]=\"{'z-index': zIndex}\">\n <div class=\"wac-free-popin__wrapper\" wzAutoHide (clickOutside)=\"!disableCloseOutside ? closePopin() : ''\">\n <a class=\"wac-free-popin__wrapper__button-close\" (click)=\"closePopin()\">\n <i class=\"fas fa-times\"></i>\n </a>\n <div class=\"wac-free-popin__wrapper__content\">\n <perfect-scrollbar [config]=\"{ suppressScrollX: true }\">\n <ng-content></ng-content>\n </perfect-scrollbar>\n </div>\n <div class=\"wac-free-popin__wrapper__buttons\">\n <div class=\"wac-free-popin__wrapper__buttons__button\" *ngIf=\"okButtonLabel\">\n <wac-button [extraClasses]=\"'is-success'\" [label]=\"okButtonLabel\" hasLoader=\"true\" (click)=\"validatePopin()\"></wac-button>\n </div>\n <div class=\"wac-free-popin__wrapper__buttons__button\" *ngIf=\"koButtonLabel\">\n <wac-button [extraClasses]=\"'is-danger is-outlined'\" [label]=\"koButtonLabel\" hasLoader=\"true\" (click)=\"refusePopin()\"></wac-button>\n </div>\n </div>\n </div>\n <div class=\"wac-free-popin__background\" *ngIf=\"background\"></div>\n</div>\n"
3378
3395
  },] }
3379
3396
  ];
3380
3397
  FreePopinComponent.ctorParameters = function () { return [
@@ -3387,7 +3404,8 @@
3387
3404
  disableCloseOutside: [{ type: i0.Input }],
3388
3405
  visibleChange: [{ type: i0.Output }],
3389
3406
  response: [{ type: i0.Output }],
3390
- background: [{ type: i0.Input }]
3407
+ background: [{ type: i0.Input }],
3408
+ zIndex: [{ type: i0.Input }]
3391
3409
  };
3392
3410
 
3393
3411
  var BlockComponent = /** @class */ (function () {