@wizishop/angular-components 0.0.193 → 0.0.195

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.
@@ -4377,6 +4377,7 @@
4377
4377
  this.confirm = new i0.EventEmitter();
4378
4378
  this.backgroundColor = '#fff';
4379
4379
  this.borderRadius = '0px';
4380
+ this.hideText = false;
4380
4381
  }
4381
4382
  ConfirmDeleteComponent.prototype.ngOnInit = function () {
4382
4383
  };
@@ -4388,12 +4389,29 @@
4388
4389
  this.confirm.emit(true);
4389
4390
  this.open = false;
4390
4391
  };
4392
+ ConfirmDeleteComponent.prototype.responsiveControl = function (size) {
4393
+ if (size < 342) {
4394
+ this.hideText = true;
4395
+ }
4396
+ else {
4397
+ this.hideText = false;
4398
+ }
4399
+ };
4400
+ ConfirmDeleteComponent.prototype.onResize = function () {
4401
+ this.responsiveControl(this.container.nativeElement.offsetWidth);
4402
+ };
4403
+ ConfirmDeleteComponent.prototype.ngAfterViewInit = function () {
4404
+ var _this = this;
4405
+ setTimeout(function () {
4406
+ _this.responsiveControl(_this.container.nativeElement.offsetWidth);
4407
+ }, 100);
4408
+ };
4391
4409
  return ConfirmDeleteComponent;
4392
4410
  }());
4393
4411
  ConfirmDeleteComponent.decorators = [
4394
4412
  { type: i0.Component, args: [{
4395
4413
  selector: 'wac-confirm-delete',
4396
- template: "<div class=\"wac-confirm-delete\" [ngClass]=\"{'is-open': open}\" [style.backgroundColor]=\"backgroundColor\" [style.borderRadius]=\"borderRadius\">\n <div>\n <span [innerHTML]=\"label\"></span>\n </div>\n <div>\n <div><wac-button [label]=\"labelCancel\" [extraClasses]=\"'is-outlined is-grey'\" (click)=\"eventCancel($event)\"></wac-button></div>\n <div><wac-button [label]=\"labelConfirm\" [extraClasses]=\"'is-danger'\" (click)=\"eventConfirm($event)\"></wac-button></div>\n </div>\n</div>\n"
4414
+ template: "<div class=\"wac-confirm-delete\" #container [ngClass]=\"{'is-open': open, 'hide-text': hideText}\" [style.backgroundColor]=\"backgroundColor\" [style.borderRadius]=\"borderRadius\">\n <div>\n <span [innerHTML]=\"label\"></span>\n </div>\n <div>\n <div><wac-button [label]=\"labelCancel\" [extraClasses]=\"'is-outlined is-grey'\" (click)=\"eventCancel($event)\"></wac-button></div>\n <div><wac-button [label]=\"labelConfirm\" [extraClasses]=\"'is-danger'\" (click)=\"eventConfirm($event)\"></wac-button></div>\n </div>\n</div>\n"
4397
4415
  },] }
4398
4416
  ];
4399
4417
  ConfirmDeleteComponent.ctorParameters = function () { return []; };
@@ -4404,7 +4422,9 @@
4404
4422
  labelConfirm: [{ type: i0.Input }],
4405
4423
  confirm: [{ type: i0.Output }],
4406
4424
  backgroundColor: [{ type: i0.Input }],
4407
- borderRadius: [{ type: i0.Input }]
4425
+ borderRadius: [{ type: i0.Input }],
4426
+ container: [{ type: i0.ViewChild, args: ['container',] }],
4427
+ onResize: [{ type: i0.HostListener, args: ['window:resize',] }]
4408
4428
  };
4409
4429
 
4410
4430
  var MosaicComponent = /** @class */ (function () {