@wizishop/angular-components 0.0.69 → 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.
- package/angular-components.scss +3886 -3886
- package/bundles/wizishop-angular-components.umd.js +11 -4
- 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/inputs/input/input.component.js +13 -6
- package/fesm2015/wizishop-angular-components.js +11 -4
- 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.70.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.69.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 = "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 (
|
|
1847
|
-
|
|
1848
|
-
|
|
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 () {
|