@wizishop/angular-components 0.0.68 → 0.0.71

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 = "Enter";
1806
1808
  this.id = 'wz-input_' +
1807
1809
  Math.random()
1808
1810
  .toString(36)
@@ -1843,9 +1845,12 @@
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
+ if (this.keyPreventDefault.includes(event.key)) {
1850
+ event.preventDefault();
1851
+ }
1852
+ if (event.key === this.KEYPRESS_ENTER) {
1853
+ this.keypressEnter.next(true);
1849
1854
  }
1850
1855
  };
1851
1856
  return InputComponent;
@@ -1887,7 +1892,8 @@
1887
1892
  padding: [{ type: i0.Input }],
1888
1893
  disabled: [{ type: i0.Input }],
1889
1894
  indication: [{ type: i0.Input }],
1890
- success: [{ type: i0.Input }]
1895
+ success: [{ type: i0.Input }],
1896
+ keypressEnter: [{ type: i0.Output }]
1891
1897
  };
1892
1898
 
1893
1899
  var LinkComponent = /** @class */ (function () {
@@ -3319,16 +3325,13 @@
3319
3325
  this.closePopin();
3320
3326
  };
3321
3327
  FreePopinComponent.prototype.closePopin = function () {
3322
- console.log('ici');
3323
- if (!this.firstOpen) {
3328
+ if (!this.firstOpen || this.disableCloseOutside) {
3324
3329
  this.visible = false;
3325
3330
  this.visibleChange.emit(this.visible);
3326
3331
  this.firstOpen = true;
3327
- console.log('ici2');
3328
3332
  }
3329
3333
  else {
3330
3334
  this.firstOpen = false;
3331
- console.log('ici3');
3332
3335
  }
3333
3336
  };
3334
3337
  return FreePopinComponent;