@ionic/angular
Advanced tools
Comparing version 4.0.0-beta.14 to 4.0.0-beta.15-0
@@ -8,7 +8,3 @@ import { ElementRef } from '@angular/core'; | ||
onTouched: () => void; | ||
/** | ||
* Whether onChange should be mutted (not be fired). Will be true only when writeValue was called, which | ||
* means that value changed inside angular form (e.g. calling setValue on a control). | ||
*/ | ||
private muteOnChange; | ||
private lastValue; | ||
writeValue(value: any): void; | ||
@@ -15,0 +11,0 @@ _handleIonChange(value: any): void; |
@@ -7,7 +7,2 @@ import { Directive, ElementRef, HostListener } from '@angular/core'; | ||
this.element = element; | ||
/** | ||
* Whether onChange should be mutted (not be fired). Will be true only when writeValue was called, which | ||
* means that value changed inside angular form (e.g. calling setValue on a control). | ||
*/ | ||
this.muteOnChange = false; | ||
this.onChange = function () { }; | ||
@@ -17,4 +12,3 @@ this.onTouched = function () { }; | ||
BooleanValueAccessor.prototype.writeValue = function (value) { | ||
this.muteOnChange = true; | ||
this.element.nativeElement.checked = value; | ||
this.element.nativeElement.checked = this.lastValue = value; | ||
setIonicClasses(this.element); | ||
@@ -24,6 +18,6 @@ }; | ||
var _this = this; | ||
if (!this.muteOnChange) { | ||
if (value !== this.lastValue) { | ||
this.lastValue = value; | ||
this.onChange(value); | ||
} | ||
this.muteOnChange = false; | ||
requestAnimationFrame(function () { | ||
@@ -30,0 +24,0 @@ setIonicClasses(_this.element); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"BooleanValueAccessor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"ion-checkbox,ion-toggle","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":10,"character":15},"useExisting":{"__symbolic":"reference","name":"BooleanValueAccessor"},"multi":true}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":18,"character":31}]}],"writeValue":[{"__symbolic":"method"}],"_handleIonChange":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":38,"character":3},"arguments":["ionChange",["$event.target.checked"]]}]}],"_handleBlurEvent":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":51,"character":3},"arguments":["ionBlur"]}]}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"BooleanValueAccessor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"ion-checkbox,ion-toggle","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":10,"character":15},"useExisting":{"__symbolic":"reference","name":"BooleanValueAccessor"},"multi":true}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":18,"character":31}]}],"writeValue":[{"__symbolic":"method"}],"_handleIonChange":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":32,"character":3},"arguments":["ionChange",["$event.target.checked"]]}]}],"_handleBlurEvent":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":44,"character":3},"arguments":["ionBlur"]}]}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}}}}] |
@@ -8,7 +8,3 @@ import { ElementRef } from '@angular/core'; | ||
onTouched: () => void; | ||
/** | ||
* Whether onChange should be mutted (not be fired). Will be true only when writeValue was called, which | ||
* means that value changed inside angular form (e.g. calling setValue on a control). | ||
*/ | ||
private muteOnChange; | ||
private lastValue; | ||
writeValue(value: any): void; | ||
@@ -15,0 +11,0 @@ _handleInputEvent(value: any): void; |
@@ -7,7 +7,2 @@ import { Directive, ElementRef, HostListener } from '@angular/core'; | ||
this.element = element; | ||
/** | ||
* Whether onChange should be mutted (not be fired). Will be true only when writeValue was called, which | ||
* means that value changed inside angular form (e.g. calling setValue on a control). | ||
*/ | ||
this.muteOnChange = false; | ||
this.onChange = function () { }; | ||
@@ -17,6 +12,5 @@ this.onTouched = function () { }; | ||
NumericValueAccessor.prototype.writeValue = function (value) { | ||
this.muteOnChange = true; | ||
// The value needs to be normalized for IE9, otherwise it is set to 'null' when null | ||
// Probably not an issue for us, but it doesn't really cost anything either | ||
this.element.nativeElement.value = value == null ? '' : value; | ||
this.element.nativeElement.value = this.lastValue = value == null ? '' : value; | ||
setIonicClasses(this.element); | ||
@@ -26,6 +20,6 @@ }; | ||
var _this = this; | ||
if (!this.muteOnChange) { | ||
if (value !== this.lastValue) { | ||
this.lastValue = value; | ||
this.onChange(value); | ||
} | ||
this.muteOnChange = false; | ||
requestAnimationFrame(function () { | ||
@@ -32,0 +26,0 @@ setIonicClasses(_this.element); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"NumericValueAccessor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"ion-input[type=number]","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":10,"character":15},"useExisting":{"__symbolic":"reference","name":"NumericValueAccessor"},"multi":true}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":18,"character":31}]}],"writeValue":[{"__symbolic":"method"}],"_handleInputEvent":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":41,"character":3},"arguments":["ionChange",["$event.target.value"]]}]}],"_handleBlurEvent":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":54,"character":3},"arguments":["ionBlur"]}]}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"NumericValueAccessor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"ion-input[type=number]","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":10,"character":15},"useExisting":{"__symbolic":"reference","name":"NumericValueAccessor"},"multi":true}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":18,"character":31}]}],"writeValue":[{"__symbolic":"method"}],"_handleInputEvent":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":34,"character":3},"arguments":["ionChange",["$event.target.value"]]}]}],"_handleBlurEvent":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":46,"character":3},"arguments":["ionBlur"]}]}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}}}}] |
@@ -8,8 +8,4 @@ import { ElementRef } from '@angular/core'; | ||
onTouched: () => void; | ||
private lastValue; | ||
constructor(element: ElementRef); | ||
/** | ||
* Whether onChange should be mutted (not be fired). Will be true only when writeValue was called, which | ||
* means that value changed inside angular form (e.g. calling setValue on a control). | ||
*/ | ||
private muteOnChange; | ||
writeValue(value: any): void; | ||
@@ -16,0 +12,0 @@ _handleIonSelect(value: any): void; |
@@ -7,7 +7,2 @@ import { Directive, ElementRef, HostListener, Input } from '@angular/core'; | ||
this.element = element; | ||
/** | ||
* Whether onChange should be mutted (not be fired). Will be true only when writeValue was called, which | ||
* means that value changed inside angular form (e.g. calling setValue on a control). | ||
*/ | ||
this.muteOnChange = false; | ||
this.onChange = function () { }; | ||
@@ -18,4 +13,3 @@ this.onTouched = function () { }; | ||
var _this = this; | ||
this.muteOnChange = true; | ||
this.element.nativeElement.checked = this.value = value; | ||
this.element.nativeElement.checked = this.lastValue = this.value = value; | ||
requestAnimationFrame(function () { | ||
@@ -27,6 +21,6 @@ setIonicClasses(_this.element); | ||
var _this = this; | ||
if (!this.muteOnChange) { | ||
if (value !== this.lastValue) { | ||
this.lastValue = value; | ||
this.onChange(value); | ||
} | ||
this.muteOnChange = false; | ||
requestAnimationFrame(function () { | ||
@@ -33,0 +27,0 @@ setIonicClasses(_this.element); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"RadioValueAccessor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"ion-radio","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":10,"character":15},"useExisting":{"__symbolic":"reference","name":"RadioValueAccessor"},"multi":true}]}]}],"members":{"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":22,"character":31}]}],"writeValue":[{"__symbolic":"method"}],"_handleIonSelect":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":42,"character":3},"arguments":["ionSelect",["$event.target.checked"]]}]}],"_handleBlurEvent":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":55,"character":3},"arguments":["ionBlur"]}]}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"RadioValueAccessor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"ion-radio","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":10,"character":15},"useExisting":{"__symbolic":"reference","name":"RadioValueAccessor"},"multi":true}]}]}],"members":{"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":23,"character":31}]}],"writeValue":[{"__symbolic":"method"}],"_handleIonSelect":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":36,"character":3},"arguments":["ionSelect",["$event.target.checked"]]}]}],"_handleBlurEvent":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":48,"character":3},"arguments":["ionBlur"]}]}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}}}}] |
@@ -8,7 +8,3 @@ import { ElementRef } from '@angular/core'; | ||
onTouched: () => void; | ||
/** | ||
* Whether onChange should be mutted (not be fired). Will be true only when writeValue was called, which | ||
* means that value changed inside angular form (e.g. calling setValue on a control). | ||
*/ | ||
private muteOnChange; | ||
private lastValue; | ||
writeValue(value: any): void; | ||
@@ -15,0 +11,0 @@ _handleChangeEvent(value: any): void; |
@@ -7,7 +7,2 @@ import { Directive, ElementRef, HostListener } from '@angular/core'; | ||
this.element = element; | ||
/** | ||
* Whether onChange should be mutted (not be fired). Will be true only when writeValue was called, which | ||
* means that value changed inside angular form (e.g. calling setValue on a control). | ||
*/ | ||
this.muteOnChange = false; | ||
this.onChange = function () { }; | ||
@@ -18,4 +13,3 @@ this.onTouched = function () { }; | ||
var _this = this; | ||
this.muteOnChange = true; | ||
this.element.nativeElement.value = value; | ||
this.element.nativeElement.value = this.lastValue = value; | ||
requestAnimationFrame(function () { | ||
@@ -27,6 +21,6 @@ setIonicClasses(_this.element); | ||
var _this = this; | ||
if (!this.muteOnChange) { | ||
if (value !== this.lastValue) { | ||
this.lastValue = value; | ||
this.onChange(value); | ||
} | ||
this.muteOnChange = false; | ||
requestAnimationFrame(function () { | ||
@@ -33,0 +27,0 @@ setIonicClasses(_this.element); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"SelectValueAccessor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"ion-range, ion-select, ion-radio-group, ion-segment, ion-datetime","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":10,"character":15},"useExisting":{"__symbolic":"reference","name":"SelectValueAccessor"},"multi":true}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":18,"character":31}]}],"writeValue":[{"__symbolic":"method"}],"_handleChangeEvent":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":41,"character":3},"arguments":["ionChange",["$event.target.value"]]}]}],"_handleBlurEvent":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":54,"character":3},"arguments":["ionBlur"]}]}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"SelectValueAccessor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"ion-range, ion-select, ion-radio-group, ion-segment, ion-datetime","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":10,"character":15},"useExisting":{"__symbolic":"reference","name":"SelectValueAccessor"},"multi":true}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":18,"character":31}]}],"writeValue":[{"__symbolic":"method"}],"_handleChangeEvent":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":35,"character":3},"arguments":["ionChange",["$event.target.value"]]}]}],"_handleBlurEvent":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":47,"character":3},"arguments":["ionBlur"]}]}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}}}}] |
@@ -8,7 +8,3 @@ import { ElementRef } from '@angular/core'; | ||
onTouched: () => void; | ||
/** | ||
* Whether onChange should be mutted (not be fired). Will be true only when writeValue was called, which | ||
* means that value changed inside angular form (e.g. calling setValue on a control). | ||
*/ | ||
private muteOnChange; | ||
private lastValue; | ||
writeValue(value: any): void; | ||
@@ -15,0 +11,0 @@ _handleInputEvent(value: any): void; |
@@ -7,7 +7,2 @@ import { Directive, ElementRef, HostListener } from '@angular/core'; | ||
this.element = element; | ||
/** | ||
* Whether onChange should be mutted (not be fired). Will be true only when writeValue was called, which | ||
* means that value changed inside angular form (e.g. calling setValue on a control). | ||
*/ | ||
this.muteOnChange = false; | ||
this.onChange = function () { }; | ||
@@ -18,4 +13,3 @@ this.onTouched = function () { }; | ||
var _this = this; | ||
this.muteOnChange = true; | ||
this.element.nativeElement.value = value; | ||
this.element.nativeElement.value = this.lastValue = value; | ||
requestAnimationFrame(function () { | ||
@@ -27,6 +21,6 @@ setIonicClasses(_this.element); | ||
var _this = this; | ||
if (!this.muteOnChange) { | ||
if (value !== this.lastValue) { | ||
this.lastValue = value; | ||
this.onChange(value); | ||
} | ||
this.muteOnChange = false; | ||
requestAnimationFrame(function () { | ||
@@ -33,0 +27,0 @@ setIonicClasses(_this.element); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"TextValueAccessor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"ion-input:not([type=number]),ion-textarea,ion-searchbar","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":10,"character":15},"useExisting":{"__symbolic":"reference","name":"TextValueAccessor"},"multi":true}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":18,"character":31}]}],"writeValue":[{"__symbolic":"method"}],"_handleInputEvent":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":41,"character":3},"arguments":["ionChange",["$event.target.value"]]}]}],"_handleBlurEvent":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":54,"character":3},"arguments":["ionBlur"]}]}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"TextValueAccessor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"ion-input:not([type=number]),ion-textarea,ion-searchbar","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":10,"character":15},"useExisting":{"__symbolic":"reference","name":"TextValueAccessor"},"multi":true}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":18,"character":31}]}],"writeValue":[{"__symbolic":"method"}],"_handleInputEvent":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":35,"character":3},"arguments":["ionChange",["$event.target.value"]]}]}],"_handleBlurEvent":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":47,"character":3},"arguments":["ionBlur"]}]}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}}}}] |
{ | ||
"name": "@ionic/angular", | ||
"version": "4.0.0-beta.14", | ||
"version": "4.0.0-beta.15-0", | ||
"description": "Angular specific wrappers for @ionic/core", | ||
@@ -47,3 +47,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@ionic/core": "4.0.0-beta.14" | ||
"@ionic/core": "4.0.0-beta.15-0" | ||
}, | ||
@@ -50,0 +50,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31
359838
5014
4
+ Added@ionic/core@4.0.0-beta.15-0(transitive)
- Removed@ionic/core@4.0.0-beta.14(transitive)
Updated@ionic/core@4.0.0-beta.15-0