@wizishop/angular-components 0.0.67 → 0.0.70

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.
@@ -1803,6 +1803,8 @@
1803
1803
  this.disabled = false;
1804
1804
  this.indication = false;
1805
1805
  this.success = false;
1806
+ this.keypressEnter = new i0.EventEmitter();
1807
+ this.KEYPRESS_ENTER = "13";
1806
1808
  this.id = 'wz-input_' +
1807
1809
  Math.random()
1808
1810
  .toString(36)
@@ -1843,9 +1845,13 @@
1843
1845
  this.checkNumberValue(this.value);
1844
1846
  }
1845
1847
  };
1846
- InputComponent.prototype.keyPress = function ($event) {
1847
- if (this.keyPreventDefault.includes($event.key)) {
1848
- $event.preventDefault();
1848
+ InputComponent.prototype.keyPress = function (event) {
1849
+ console.log('event', event);
1850
+ if (this.keyPreventDefault.includes(event.key)) {
1851
+ event.preventDefault();
1852
+ }
1853
+ if (event.key === this.KEYPRESS_ENTER) {
1854
+ this.keypressEnter.next(true);
1849
1855
  }
1850
1856
  };
1851
1857
  return InputComponent;
@@ -1887,7 +1893,8 @@
1887
1893
  padding: [{ type: i0.Input }],
1888
1894
  disabled: [{ type: i0.Input }],
1889
1895
  indication: [{ type: i0.Input }],
1890
- success: [{ type: i0.Input }]
1896
+ success: [{ type: i0.Input }],
1897
+ keypressEnter: [{ type: i0.Output }]
1891
1898
  };
1892
1899
 
1893
1900
  var LinkComponent = /** @class */ (function () {
@@ -3301,6 +3308,7 @@
3301
3308
  function FreePopinComponent(domService) {
3302
3309
  this.domService = domService;
3303
3310
  this.visible = false;
3311
+ this.disableCloseOutside = false;
3304
3312
  this.visibleChange = new i0.EventEmitter();
3305
3313
  this.response = new i0.EventEmitter();
3306
3314
  this.background = true;
@@ -3318,7 +3326,7 @@
3318
3326
  this.closePopin();
3319
3327
  };
3320
3328
  FreePopinComponent.prototype.closePopin = function () {
3321
- if (!this.firstOpen) {
3329
+ if (!this.firstOpen || this.disableCloseOutside) {
3322
3330
  this.visible = false;
3323
3331
  this.visibleChange.emit(this.visible);
3324
3332
  this.firstOpen = true;
@@ -3332,7 +3340,7 @@
3332
3340
  FreePopinComponent.decorators = [
3333
3341
  { type: i0.Component, args: [{
3334
3342
  selector: 'wac-free-popin',
3335
- template: "<div class=\"wac-free-popin\" *ngIf=\"visible\">\n\n\n <div class=\"wac-free-popin__wrapper\" wzAutoHide (clickOutside)=\"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"
3343
+ 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"
3336
3344
  },] }
3337
3345
  ];
3338
3346
  FreePopinComponent.ctorParameters = function () { return [
@@ -3342,6 +3350,7 @@
3342
3350
  okButtonLabel: [{ type: i0.Input }],
3343
3351
  koButtonLabel: [{ type: i0.Input }],
3344
3352
  visible: [{ type: i0.Input }],
3353
+ disableCloseOutside: [{ type: i0.Input }],
3345
3354
  visibleChange: [{ type: i0.Output }],
3346
3355
  response: [{ type: i0.Output }],
3347
3356
  background: [{ type: i0.Input }]