@colijnit/corecomponents_v12 256.1.13 → 256.1.15
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 +9 -0
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/base/base-input.component.js +4 -1
- package/esm2015/lib/components/input-search/input-search.component.js +7 -1
- package/fesm2015/colijnit-corecomponents_v12.js +9 -0
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/base/base-input.component.d.ts +1 -0
- package/lib/components/input-search/input-search.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2267,6 +2267,7 @@
|
|
|
2267
2267
|
this.modelChange = new i0.EventEmitter();
|
|
2268
2268
|
this.userModelChange = new i0.EventEmitter();
|
|
2269
2269
|
this.hiddenChange = new i0.EventEmitter();
|
|
2270
|
+
this.cancelClicked = new i0.EventEmitter();
|
|
2270
2271
|
this.focused = false;
|
|
2271
2272
|
this.formInput = true;
|
|
2272
2273
|
this.customWidth = false;
|
|
@@ -2693,6 +2694,7 @@
|
|
|
2693
2694
|
this.model = this._initialModel;
|
|
2694
2695
|
}
|
|
2695
2696
|
this.keepFocus = false;
|
|
2697
|
+
this.cancelClicked.emit();
|
|
2696
2698
|
};
|
|
2697
2699
|
BaseInputComponent.prototype.showValidationError = function (error) {
|
|
2698
2700
|
this.validationError = error;
|
|
@@ -3166,6 +3168,7 @@
|
|
|
3166
3168
|
modelChange: [{ type: i0.Output }],
|
|
3167
3169
|
userModelChange: [{ type: i0.Output }],
|
|
3168
3170
|
hiddenChange: [{ type: i0.Output }],
|
|
3171
|
+
cancelClicked: [{ type: i0.Output }],
|
|
3169
3172
|
focused: [{ type: i0.HostBinding, args: ['class.cc-input-focused',] }],
|
|
3170
3173
|
formInput: [{ type: i0.HostBinding, args: ['class.form-input',] }],
|
|
3171
3174
|
customWidth: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.custom-width',] }],
|
|
@@ -8273,6 +8276,9 @@
|
|
|
8273
8276
|
var enterKeys = ['Enter', 'NumpadEnter', 'Go'];
|
|
8274
8277
|
if (enterKeys.includes(event.key)) {
|
|
8275
8278
|
event.preventDefault();
|
|
8279
|
+
if (this.isMobileDevice()) {
|
|
8280
|
+
event.target.blur();
|
|
8281
|
+
}
|
|
8276
8282
|
this.search.next(this.model);
|
|
8277
8283
|
}
|
|
8278
8284
|
};
|
|
@@ -8280,6 +8286,9 @@
|
|
|
8280
8286
|
this.model = model;
|
|
8281
8287
|
this.modelChange.next(this.model);
|
|
8282
8288
|
};
|
|
8289
|
+
InputSearchComponent.prototype.isMobileDevice = function () {
|
|
8290
|
+
return /Android|iPhone|iPad|iPod/i.test(navigator.userAgent);
|
|
8291
|
+
};
|
|
8283
8292
|
return InputSearchComponent;
|
|
8284
8293
|
}(BaseInputComponent));
|
|
8285
8294
|
InputSearchComponent.decorators = [
|