@colijnit/corecomponents_v12 260.1.22 → 260.1.23
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/bundles/colijnit-corecomponents_v12.umd.js +4 -0
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/esm2015/lib/components/input-text/input-text.component.js +5 -1
- package/fesm2015/colijnit-corecomponents_v12.js +4 -0
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/package.json +1 -1
|
@@ -6465,6 +6465,7 @@
|
|
|
6465
6465
|
this.clearIconClick.emit(event);
|
|
6466
6466
|
};
|
|
6467
6467
|
InputTextComponent.prototype.handleKeyDownInput = function (event) {
|
|
6468
|
+
var _a;
|
|
6468
6469
|
var key = event.key.toLowerCase();
|
|
6469
6470
|
if (this.type === 'date') {
|
|
6470
6471
|
if (key === 'w') {
|
|
@@ -6503,6 +6504,9 @@
|
|
|
6503
6504
|
event.preventDefault();
|
|
6504
6505
|
}
|
|
6505
6506
|
}
|
|
6507
|
+
if (this.type === 'number' && ((_a = this.model) === null || _a === void 0 ? void 0 : _a.length) === this.maxLength && /^\d$/.test(key)) {
|
|
6508
|
+
event.preventDefault();
|
|
6509
|
+
}
|
|
6506
6510
|
};
|
|
6507
6511
|
InputTextComponent.prototype.convertWeekToDate = function (weekStr) {
|
|
6508
6512
|
var match = weekStr.match(/^w0*(\d{1,2})$/i);
|