@tetacom/ng-components 1.0.64 → 1.0.65

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.
@@ -3767,18 +3767,26 @@ class TextFieldComponent {
3767
3767
  this.placeholder = '';
3768
3768
  this.disabled = false;
3769
3769
  this.onlyNumber = false;
3770
+ // @HostBinding('attr.tabindex')
3771
+ // private get tabindex() {
3772
+ // return this.disabled ? null : 0;
3773
+ // }
3770
3774
  this.textField = true;
3771
3775
  this.value = '';
3772
3776
  }
3773
- get tabindex() {
3774
- return this.disabled ? null : 0;
3775
- }
3776
3777
  onFocus() {
3777
3778
  if (this.disabled) {
3778
3779
  return;
3779
3780
  }
3780
3781
  this.input.nativeElement.focus();
3781
3782
  }
3783
+ //
3784
+ // @HostListener('focus') focus() {
3785
+ // if (this.disabled) {
3786
+ // return;
3787
+ // }
3788
+ // this.input.nativeElement.focus();
3789
+ // }
3782
3790
  keyPress(event) {
3783
3791
  if (event.key === 'Enter' || event.keyCode === 13) {
3784
3792
  this.input.nativeElement.blur();
@@ -3807,7 +3815,7 @@ class TextFieldComponent {
3807
3815
  }
3808
3816
  }
3809
3817
  TextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: TextFieldComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
3810
- TextFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: TextFieldComponent, selector: "teta-text-field", inputs: { placeholder: "placeholder", leftIconName: "leftIconName", disabled: "disabled", onlyNumber: "onlyNumber", invalid: "invalid" }, host: { listeners: { "click": "onFocus()" }, properties: { "class.text-field_disabled": "this.disabled", "class.text-field_invalid": "this.invalid", "attr.tabindex": "this.tabindex", "class.text-field": "this.textField" } }, providers: [
3818
+ TextFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: TextFieldComponent, selector: "teta-text-field", inputs: { placeholder: "placeholder", leftIconName: "leftIconName", disabled: "disabled", onlyNumber: "onlyNumber", invalid: "invalid" }, host: { listeners: { "click": "onFocus()" }, properties: { "class.text-field_disabled": "this.disabled", "class.text-field_invalid": "this.invalid", "class.text-field": "this.textField" } }, providers: [
3811
3819
  {
3812
3820
  provide: NG_VALUE_ACCESSOR,
3813
3821
  useExisting: forwardRef(() => TextFieldComponent),
@@ -3842,9 +3850,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
3842
3850
  }], input: [{
3843
3851
  type: ViewChild,
3844
3852
  args: ['input', { static: false }]
3845
- }], tabindex: [{
3846
- type: HostBinding,
3847
- args: ['attr.tabindex']
3848
3853
  }], textField: [{
3849
3854
  type: HostBinding,
3850
3855
  args: ['class.text-field']