@lucasheight/angular-controls
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -9,3 +9,3 @@ (function (global, factory) { | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -62,2 +62,3 @@ var NumberInputComponent = /** @class */ (function () { | ||
}); | ||
; | ||
Object.defineProperty(NumberInputComponent.prototype, "disabled", { | ||
@@ -92,2 +93,3 @@ set: /** | ||
}); | ||
; | ||
Object.defineProperty(NumberInputComponent.prototype, "value", { | ||
@@ -116,2 +118,3 @@ set: /** | ||
}); | ||
; | ||
/** | ||
@@ -196,5 +199,11 @@ * @return {?} | ||
function (obj) { | ||
/** @type {?} */ | ||
var _num = null; | ||
if (obj) { | ||
if (typeof obj == "number") ; | ||
else if (typeof obj == "string") ; | ||
if (typeof obj == "number") { | ||
_num = (/** @type {?} */ (obj)); | ||
} | ||
else if (typeof obj == "string") { | ||
_num = parseFloat(obj); | ||
} | ||
else { | ||
@@ -289,6 +298,65 @@ throw "Unable to cast input to number"; | ||
}()); | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NumberInputComponent.prototype.numberReg; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.showInput; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype._disabled; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype._factor; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype._width; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.placeholder; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.title; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.tabindex; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.prefix; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.postfix; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.decimals; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.valueOutput; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.blurOutput; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.focusOutput; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype._input; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype._display; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NumberInputComponent.prototype.destroy$; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.onChanged; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.onTouched; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NumberInputComponent.prototype.formatDisplay; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NumberInputComponent.prototype.cdr; | ||
/* Skipping unhandled member: ;*/ | ||
/* Skipping unhandled member: ;*/ | ||
/* Skipping unhandled member: ;*/ | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -295,0 +363,0 @@ var LhControlsModule = /** @class */ (function () { |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/forms"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@lucasheight/angular-controls",["exports","@angular/core","@angular/forms","rxjs","rxjs/operators"],e):e(((t=t||self).lucasheight=t.lucasheight||{},t.lucasheight["angular-controls"]={}),t.ng.core,t.ng.forms,t.rxjs,t.rxjs.operators)}(this,function(t,e,i,n,r){"use strict";var s=function(){function t(t){var i=this;this.cdr=t,this.numberReg=/\d+/g,this.showInput=!1,this._disabled=!1,this._factor=1,this._width=undefined,this.placeholder="",this.title="",this.tabindex=0,this.prefix="",this.postfix="",this.decimals=0,this.valueOutput=new e.EventEmitter,this.blurOutput=new e.EventEmitter,this.focusOutput=new e.EventEmitter,this.destroy$=new n.Subject,this.onChanged=function(t){},this.onTouched=function(t){},this.formatDisplay=function(t){return t?""+i.prefix+t.toString()+i.postfix:"Null"}}return Object.defineProperty(t.prototype,"factor",{set:function(t){this._factor=Math.round(t),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{set:function(t){this._disabled=t,this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{set:function(t){parseFloat(t.toString())?this._width=t+"px":this._width=t.toString(),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._input&&t?this._input.nativeElement.value=(t*this._factor).toFixed(this.decimals):this._input.nativeElement.value=null,this._display&&t?this._display.nativeElement.value=this.formatDisplay((t*this._factor).toFixed(this.decimals)):this._display.nativeElement.value=null,this.cdr.markForCheck()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.ngAfterViewInit=function(){var t=this;n.fromEvent(this._display.nativeElement,"focus").pipe(r.takeUntil(this.destroy$)).subscribe(function(e){t.showInput=!0,setTimeout(function(){t._input.nativeElement.focus(),t.onTouched(e),t.focusOutput.emit(e)}),t.cdr.markForCheck()}),n.fromEvent(this._input.nativeElement,"input").pipe(r.takeUntil(this.destroy$),r.debounceTime(100),r.distinctUntilChanged()).subscribe(function(e){var i=parseFloat(t._input.nativeElement.value)/t._factor;t._display.nativeElement.value=t._input.nativeElement.value?t.formatDisplay(parseFloat(t._input.nativeElement.value).toFixed(t.decimals)):null,t.valueOutput.emit(i||null),t.onChanged(i||null),t.cdr.markForCheck()}),n.fromEvent(this._input.nativeElement,"blur").pipe(r.takeUntil(this.destroy$)).subscribe(function(e){t.showInput=!1,t.blurOutput.emit(e),t.cdr.markForCheck()})},t.prototype.ngOnDestroy=function(){this.destroy$.next()},t.prototype.writeValue=function(t){if(t){if("number"==typeof t);else if("string"!=typeof t)throw"Unable to cast input to number";this._input&&(this._input.nativeElement.value=(t*this._factor).toFixed(this.decimals)),this._display&&(this._display.nativeElement.value=this.formatDisplay((t*this._factor).toFixed(this.decimals)))}else this._input.nativeElement.value=null,this._display.nativeElement.value=null;this.cdr.markForCheck()},t.prototype.registerOnChange=function(t){this.onChanged=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._disabled=t},t.decorators=[{type:e.Component,args:[{selector:"lh-numberInput",template:'<span class="lh-wrapper">\n <input #inputCtr [disabled]="_disabled" class="lh-input" [type]="showInput?\'number\':\'hidden\'" [tabindex]="tabindex" />\n <input #displayCtr [disabled]="_disabled" [title]="title" [placeholder]="placeholder" class="lh-display" [type]="showInput?\'hidden\':\'text\'" [tabindex]="tabindex" /> \n</span>\n',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return t}),multi:!0}],host:{"[style.width]":"_width"},styles:[":host{padding:0 7px 0 1px;display:block}.lh-wrapper{padding:2px;display:inline-block;width:100%}input{width:100%;display:inline-block;padding:.375em;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;border-radius:.25rem;border:1px solid rgba(33,37,41,.15)}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:none}"]}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},t.propDecorators={placeholder:[{type:e.Input}],title:[{type:e.Input}],tabindex:[{type:e.Input}],factor:[{type:e.Input}],disabled:[{type:e.Input}],prefix:[{type:e.Input}],postfix:[{type:e.Input}],width:[{type:e.Input}],decimals:[{type:e.Input}],value:[{type:e.Input,args:["value"]}],valueOutput:[{type:e.Output,args:["valueChange"]}],blurOutput:[{type:e.Output,args:["blur"]}],focusOutput:[{type:e.Output,args:["focus"]}],_input:[{type:e.ViewChild,args:["inputCtr",{"static":!0}]}],_display:[{type:e.ViewChild,args:["displayCtr",{"static":!0}]}]},t}(),o=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[s],imports:[],exports:[s]}]}],t}();t.LhControlsModule=o,t.NumberInputComponent=s,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/forms"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@lucasheight/angular-controls",["exports","@angular/core","@angular/forms","rxjs","rxjs/operators"],e):e(((t=t||self).lucasheight=t.lucasheight||{},t.lucasheight["angular-controls"]={}),t.ng.core,t.ng.forms,t.rxjs,t.rxjs.operators)}(this,function(t,e,i,n,r){"use strict";var s=function(){function t(t){var i=this;this.cdr=t,this.numberReg=/\d+/g,this.showInput=!1,this._disabled=!1,this._factor=1,this._width=void 0,this.placeholder="",this.title="",this.tabindex=0,this.prefix="",this.postfix="",this.decimals=0,this.valueOutput=new e.EventEmitter,this.blurOutput=new e.EventEmitter,this.focusOutput=new e.EventEmitter,this.destroy$=new n.Subject,this.onChanged=function(t){},this.onTouched=function(t){},this.formatDisplay=function(t){return t?""+i.prefix+t.toString()+i.postfix:"Null"}}return Object.defineProperty(t.prototype,"factor",{set:function(t){this._factor=Math.round(t),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{set:function(t){this._disabled=t,this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{set:function(t){parseFloat(t.toString())?this._width=t+"px":this._width=t.toString(),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._input&&t?this._input.nativeElement.value=(t*this._factor).toFixed(this.decimals):this._input.nativeElement.value=null,this._display&&t?this._display.nativeElement.value=this.formatDisplay((t*this._factor).toFixed(this.decimals)):this._display.nativeElement.value=null,this.cdr.markForCheck()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.ngAfterViewInit=function(){var t=this;n.fromEvent(this._display.nativeElement,"focus").pipe(r.takeUntil(this.destroy$)).subscribe(function(e){t.showInput=!0,setTimeout(function(){t._input.nativeElement.focus(),t.onTouched(e),t.focusOutput.emit(e)}),t.cdr.markForCheck()}),n.fromEvent(this._input.nativeElement,"input").pipe(r.takeUntil(this.destroy$),r.debounceTime(100),r.distinctUntilChanged()).subscribe(function(e){var i=parseFloat(t._input.nativeElement.value)/t._factor;t._display.nativeElement.value=t._input.nativeElement.value?t.formatDisplay(parseFloat(t._input.nativeElement.value).toFixed(t.decimals)):null,t.valueOutput.emit(i||null),t.onChanged(i||null),t.cdr.markForCheck()}),n.fromEvent(this._input.nativeElement,"blur").pipe(r.takeUntil(this.destroy$)).subscribe(function(e){t.showInput=!1,t.blurOutput.emit(e),t.cdr.markForCheck()})},t.prototype.ngOnDestroy=function(){this.destroy$.next()},t.prototype.writeValue=function(t){if(t){if("number"==typeof t)t;else{if("string"!=typeof t)throw"Unable to cast input to number";parseFloat(t)}this._input&&(this._input.nativeElement.value=(t*this._factor).toFixed(this.decimals)),this._display&&(this._display.nativeElement.value=this.formatDisplay((t*this._factor).toFixed(this.decimals)))}else this._input.nativeElement.value=null,this._display.nativeElement.value=null;this.cdr.markForCheck()},t.prototype.registerOnChange=function(t){this.onChanged=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._disabled=t},t.decorators=[{type:e.Component,args:[{selector:"lh-numberInput",template:'<span class="lh-wrapper">\n <input #inputCtr [disabled]="_disabled" class="lh-input" [type]="showInput?\'number\':\'hidden\'" [tabindex]="tabindex" />\n <input #displayCtr [disabled]="_disabled" [title]="title" [placeholder]="placeholder" class="lh-display" [type]="showInput?\'hidden\':\'text\'" [tabindex]="tabindex" /> \n</span>\n',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return t}),multi:!0}],host:{"[style.width]":"_width"},styles:[":host{padding:0 7px 0 1px;display:block}.lh-wrapper{padding:2px;display:inline-block;width:100%}input{width:100%;display:inline-block;padding:.375em;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;border-radius:.25rem;border:1px solid rgba(33,37,41,.15)}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:none}"]}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},t.propDecorators={placeholder:[{type:e.Input}],title:[{type:e.Input}],tabindex:[{type:e.Input}],factor:[{type:e.Input}],disabled:[{type:e.Input}],prefix:[{type:e.Input}],postfix:[{type:e.Input}],width:[{type:e.Input}],decimals:[{type:e.Input}],value:[{type:e.Input,args:["value"]}],valueOutput:[{type:e.Output,args:["valueChange"]}],blurOutput:[{type:e.Output,args:["blur"]}],focusOutput:[{type:e.Output,args:["focus"]}],_input:[{type:e.ViewChild,args:["inputCtr",{static:!0}]}],_display:[{type:e.ViewChild,args:["displayCtr",{static:!0}]}]},t}();var o=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[s],imports:[],exports:[s]}]}],t}();t.LhControlsModule=o,t.NumberInputComponent=s,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=lucasheight-angular-controls.umd.min.js.map |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ import { NgModule } from '@angular/core'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ import { Component, Input, ViewChild, ElementRef, forwardRef, Output, EventEmitter, ChangeDetectorRef } from '@angular/core'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /** |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /* |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ import { NgModule } from '@angular/core'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ import { Component, Input, ViewChild, ElementRef, forwardRef, Output, EventEmitter, ChangeDetectorRef } from '@angular/core'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /** |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /* |
@@ -8,3 +8,3 @@ import { EventEmitter, Component, forwardRef, ChangeDetectorRef, Input, Output, ViewChild, NgModule } from '@angular/core'; | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -167,5 +167,11 @@ class NumberInputComponent { | ||
writeValue(obj) { | ||
/** @type {?} */ | ||
let _num = null; | ||
if (obj) { | ||
if (typeof obj == "number") ; | ||
else if (typeof obj == "string") ; | ||
if (typeof obj == "number") { | ||
_num = (/** @type {?} */ (obj)); | ||
} | ||
else if (typeof obj == "string") { | ||
_num = parseFloat(obj); | ||
} | ||
else { | ||
@@ -247,6 +253,65 @@ throw "Unable to cast input to number"; | ||
}; | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NumberInputComponent.prototype.numberReg; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.showInput; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype._disabled; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype._factor; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype._width; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.placeholder; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.title; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.tabindex; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.prefix; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.postfix; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.decimals; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.valueOutput; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.blurOutput; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.focusOutput; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype._input; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype._display; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NumberInputComponent.prototype.destroy$; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.onChanged; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.onTouched; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NumberInputComponent.prototype.formatDisplay; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NumberInputComponent.prototype.cdr; | ||
/* Skipping unhandled member: ;*/ | ||
/* Skipping unhandled member: ;*/ | ||
/* Skipping unhandled member: ;*/ | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -263,3 +328,13 @@ class LhControlsModule { | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
export { LhControlsModule, NumberInputComponent }; | ||
//# sourceMappingURL=lucasheight-angular-controls.js.map |
@@ -1,4 +0,4 @@ | ||
import { Component, forwardRef, ChangeDetectorRef, Input, Output, ViewChild, EventEmitter, NgModule } from '@angular/core'; | ||
import { EventEmitter, Component, forwardRef, ChangeDetectorRef, Input, Output, ViewChild, NgModule } from '@angular/core'; | ||
import { NG_VALUE_ACCESSOR } from '@angular/forms'; | ||
import { fromEvent, Subject } from 'rxjs'; | ||
import { Subject, fromEvent } from 'rxjs'; | ||
import { takeUntil, debounceTime, distinctUntilChanged } from 'rxjs/operators'; | ||
@@ -8,3 +8,3 @@ | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -61,2 +61,3 @@ var NumberInputComponent = /** @class */ (function () { | ||
}); | ||
; | ||
Object.defineProperty(NumberInputComponent.prototype, "disabled", { | ||
@@ -91,2 +92,3 @@ set: /** | ||
}); | ||
; | ||
Object.defineProperty(NumberInputComponent.prototype, "value", { | ||
@@ -115,2 +117,3 @@ set: /** | ||
}); | ||
; | ||
/** | ||
@@ -195,5 +198,11 @@ * @return {?} | ||
function (obj) { | ||
/** @type {?} */ | ||
var _num = null; | ||
if (obj) { | ||
if (typeof obj == "number") ; | ||
else if (typeof obj == "string") ; | ||
if (typeof obj == "number") { | ||
_num = (/** @type {?} */ (obj)); | ||
} | ||
else if (typeof obj == "string") { | ||
_num = parseFloat(obj); | ||
} | ||
else { | ||
@@ -288,6 +297,65 @@ throw "Unable to cast input to number"; | ||
}()); | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NumberInputComponent.prototype.numberReg; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.showInput; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype._disabled; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype._factor; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype._width; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.placeholder; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.title; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.tabindex; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.prefix; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.postfix; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.decimals; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.valueOutput; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.blurOutput; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.focusOutput; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype._input; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype._display; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NumberInputComponent.prototype.destroy$; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.onChanged; | ||
/** @type {?} */ | ||
NumberInputComponent.prototype.onTouched; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NumberInputComponent.prototype.formatDisplay; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NumberInputComponent.prototype.cdr; | ||
/* Skipping unhandled member: ;*/ | ||
/* Skipping unhandled member: ;*/ | ||
/* Skipping unhandled member: ;*/ | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -307,3 +375,13 @@ var LhControlsModule = /** @class */ (function () { | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
export { LhControlsModule, NumberInputComponent }; | ||
//# sourceMappingURL=lucasheight-angular-controls.js.map |
{ | ||
"name": "@lucasheight/angular-controls", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"author": { | ||
@@ -23,5 +23,5 @@ "name": "Lynden Garrett", | ||
"peerDependencies": { | ||
"@angular/common": "^8.0.1", | ||
"@angular/core": "^8.0.1", | ||
"rxjs": "~6.4.0" | ||
"@angular/common": "^8", | ||
"@angular/core": "^8", | ||
"rxjs": "^6" | ||
}, | ||
@@ -28,0 +28,0 @@ "main": "bundles/lucasheight-angular-controls.umd.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
155142
1879