@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.
- package/angular-components.scss +3886 -3886
- package/bundles/wizishop-angular-components.umd.js +11 -8
- package/bundles/wizishop-angular-components.umd.js.map +1 -1
- package/bundles/wizishop-angular-components.umd.min.js +1 -1
- package/bundles/wizishop-angular-components.umd.min.js.map +1 -1
- package/esm2015/lib/components/free-popin/free-popin.component.js +2 -5
- package/esm2015/lib/components/inputs/input/input.component.js +12 -6
- package/fesm2015/wizishop-angular-components.js +11 -8
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/inputs/input/input.component.d.ts +4 -1
- package/package.json +1 -1
- package/wizishop-angular-components-0.0.71.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.68.tgz +0 -0
|
@@ -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 (
|
|
1847
|
-
if (this.keyPreventDefault.includes(
|
|
1848
|
-
|
|
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
|
-
|
|
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;
|