@ionic/angular 8.5.7-dev.11747094257.1dd7476b → 8.5.7-dev.11747676931.1d53b808

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.
@@ -60,7 +60,7 @@ class NumericValueAccessorDirective extends ValueAccessor {
60
60
  this.handleValueChange(el, el.value);
61
61
  }
62
62
  registerOnChange(fn) {
63
- if (this.el.nativeElement.tagName === 'ION-INPUT') {
63
+ if (this.el.nativeElement.tagName === 'ION-INPUT' || this.el.nativeElement.tagName === 'ION-INPUT-OTP') {
64
64
  super.registerOnChange((value) => {
65
65
  fn(value === '' ? null : parseFloat(value));
66
66
  });
@@ -70,7 +70,7 @@ class NumericValueAccessorDirective extends ValueAccessor {
70
70
  }
71
71
  }
72
72
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumericValueAccessorDirective, deps: [{ token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
73
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: NumericValueAccessorDirective, selector: "ion-input[type=number],ion-range", host: { listeners: { "ionInput": "handleInputEvent($event.target)" } }, providers: [
73
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: NumericValueAccessorDirective, selector: "ion-input[type=number],ion-input-otp:not([type=text]),ion-range", host: { listeners: { "ionInput": "handleInputEvent($event.target)" } }, providers: [
74
74
  {
75
75
  provide: NG_VALUE_ACCESSOR,
76
76
  useExisting: NumericValueAccessorDirective,
@@ -81,7 +81,7 @@ class NumericValueAccessorDirective extends ValueAccessor {
81
81
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumericValueAccessorDirective, decorators: [{
82
82
  type: Directive,
83
83
  args: [{
84
- selector: 'ion-input[type=number],ion-range',
84
+ selector: 'ion-input[type=number],ion-input-otp:not([type=text]),ion-range',
85
85
  providers: [
86
86
  {
87
87
  provide: NG_VALUE_ACCESSOR,
@@ -137,7 +137,7 @@ class TextValueAccessorDirective extends ValueAccessor {
137
137
  this.handleValueChange(el, el.value);
138
138
  }
139
139
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextValueAccessorDirective, deps: [{ token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
140
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TextValueAccessorDirective, selector: "ion-input:not([type=number]),ion-textarea,ion-searchbar", host: { listeners: { "ionInput": "_handleInputEvent($event.target)" } }, providers: [
140
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TextValueAccessorDirective, selector: "ion-input:not([type=number]),ion-input-otp[type=text],ion-textarea,ion-searchbar", host: { listeners: { "ionInput": "_handleInputEvent($event.target)" } }, providers: [
141
141
  {
142
142
  provide: NG_VALUE_ACCESSOR,
143
143
  useExisting: TextValueAccessorDirective,
@@ -148,7 +148,7 @@ class TextValueAccessorDirective extends ValueAccessor {
148
148
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextValueAccessorDirective, decorators: [{
149
149
  type: Directive,
150
150
  args: [{
151
- selector: 'ion-input:not([type=number]),ion-textarea,ion-searchbar',
151
+ selector: 'ion-input:not([type=number]),ion-input-otp[type=text],ion-textarea,ion-searchbar',
152
152
  providers: [
153
153
  {
154
154
  provide: NG_VALUE_ACCESSOR,