@lucasheight/angular-controls
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -99,5 +99,11 @@ (function (global, factory) { | ||
} | ||
else { | ||
this._input.nativeElement.value = null; | ||
} | ||
if (this._display && val) { | ||
this._display.nativeElement.value = this.formatDisplay((val * this._factor).toFixed(this.decimals)); | ||
} | ||
else { | ||
this._display.nativeElement.value = null; | ||
} | ||
this.cdr.markForCheck(); | ||
@@ -199,4 +205,8 @@ }, | ||
} | ||
this.cdr.markForCheck(); | ||
} | ||
else { | ||
this._input.nativeElement.value = null; | ||
this._display.nativeElement.value = null; | ||
} | ||
this.cdr.markForCheck(); | ||
}; | ||
@@ -203,0 +213,0 @@ /** |
@@ -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 o=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._display&&t&&(this._display.nativeElement.value=this.formatDisplay((t*this._factor).toFixed(this.decimals))),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))),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}(),s=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[o],imports:[],exports:[o]}]}],t}();t.LhControlsModule=s,t.NumberInputComponent=o,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=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})}); | ||
//# sourceMappingURL=lucasheight-angular-controls.umd.min.js.map |
@@ -88,5 +88,11 @@ /** | ||
} | ||
else { | ||
this._input.nativeElement.value = null; | ||
} | ||
if (this._display && val) { | ||
this._display.nativeElement.value = this.formatDisplay((val * this._factor).toFixed(this.decimals)); | ||
} | ||
else { | ||
this._display.nativeElement.value = null; | ||
} | ||
this.cdr.markForCheck(); | ||
@@ -178,4 +184,8 @@ } | ||
} | ||
this.cdr.markForCheck(); | ||
} | ||
else { | ||
this._input.nativeElement.value = null; | ||
this._display.nativeElement.value = null; | ||
} | ||
this.cdr.markForCheck(); | ||
} | ||
@@ -301,2 +311,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BsdWNhc2hlaWdodC9hbmd1bGFyLWNvbnRyb2xzLyIsInNvdXJjZXMiOlsibGliL251bWJlci1pbnB1dC9udW1iZXItaW5wdXQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBZ0IsU0FBUyxFQUE0QixVQUFVLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQWUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUwsT0FBTyxFQUF3QixpQkFBaUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3pFL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5 +99,11 @@ /** | ||
} | ||
else { | ||
this._input.nativeElement.value = null; | ||
} | ||
if (this._display && val) { | ||
this._display.nativeElement.value = this.formatDisplay((val * this._factor).toFixed(this.decimals)); | ||
} | ||
else { | ||
this._display.nativeElement.value = null; | ||
} | ||
this.cdr.markForCheck(); | ||
@@ -206,4 +212,8 @@ }, | ||
} | ||
this.cdr.markForCheck(); | ||
} | ||
else { | ||
this._input.nativeElement.value = null; | ||
this._display.nativeElement.value = null; | ||
} | ||
this.cdr.markForCheck(); | ||
}; | ||
@@ -343,2 +353,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BsdWNhc2hlaWdodC9hbmd1bGFyLWNvbnRyb2xzLyIsInNvdXJjZXMiOlsibGliL251bWJlci1pbnB1dC9udW1iZXItaW5wdXQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBZ0IsU0FBUyxFQUE0QixVQUFVLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQWUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUwsT0FBTyxFQUF3QixpQkFBaUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3pFLE9BQU8sRUFBRSxTQUFTLEVBQUUsT0FBTyxFQUFRLE1BQU0sTUFBTSxDQUFDO0FBQ2hELE9BQU8sRUFBRSxTQUFTLEVBQVEsb0JBQW9CLEVBQUUsWUFBWSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFJckY7SUEyREUsOEJBQW9CLEdBQXFCO1FBQXpDLGlCQUE4QztRQUExQixRQUFHLEdBQUgsR0FBRyxDQUFrQjtRQTlDakMsY0FBUyxHQUFHLE1B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AgcmV0dXJuIHZhbCA/IGAke3RoaXMucHJlZml4fSR7dmFsLnRvU3RyaW5nKCl9JHt0aGlzLnBvc3RmaXh9YCA6IFwiTnVsbFwiO1xuICB9XG59XG4iXX0= |
@@ -89,5 +89,11 @@ import { EventEmitter, Component, forwardRef, ChangeDetectorRef, Input, Output, ViewChild, NgModule } from '@angular/core'; | ||
} | ||
else { | ||
this._input.nativeElement.value = null; | ||
} | ||
if (this._display && val) { | ||
this._display.nativeElement.value = this.formatDisplay((val * this._factor).toFixed(this.decimals)); | ||
} | ||
else { | ||
this._display.nativeElement.value = null; | ||
} | ||
this.cdr.markForCheck(); | ||
@@ -173,4 +179,8 @@ } | ||
} | ||
this.cdr.markForCheck(); | ||
} | ||
else { | ||
this._input.nativeElement.value = null; | ||
this._display.nativeElement.value = null; | ||
} | ||
this.cdr.markForCheck(); | ||
} | ||
@@ -177,0 +187,0 @@ /** |
@@ -98,5 +98,11 @@ import { Component, forwardRef, ChangeDetectorRef, Input, Output, ViewChild, EventEmitter, NgModule } from '@angular/core'; | ||
} | ||
else { | ||
this._input.nativeElement.value = null; | ||
} | ||
if (this._display && val) { | ||
this._display.nativeElement.value = this.formatDisplay((val * this._factor).toFixed(this.decimals)); | ||
} | ||
else { | ||
this._display.nativeElement.value = null; | ||
} | ||
this.cdr.markForCheck(); | ||
@@ -198,4 +204,8 @@ }, | ||
} | ||
this.cdr.markForCheck(); | ||
} | ||
else { | ||
this._input.nativeElement.value = null; | ||
this._display.nativeElement.value = null; | ||
} | ||
this.cdr.markForCheck(); | ||
}; | ||
@@ -202,0 +212,0 @@ /** |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"NumberInputComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"lh-numberInput","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":12,"character":15},"useExisting":{"__symbolic":"reference","name":"NumberInputComponent"},"multi":true}],"host":{"[style.width]":"_width","$quoted$":["[style.width]"]},"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","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}"]}]}],"members":{"placeholder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":3}}]}],"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"tabindex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3}}]}],"factor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"prefix":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"postfix":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":38,"character":3}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}}]}],"decimals":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3},"arguments":["value"]}]}],"valueOutput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":59,"character":3},"arguments":["valueChange"]}]}],"blurOutput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":60,"character":3},"arguments":["blur"]}]}],"focusOutput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":61,"character":3},"arguments":["focus"]}]}],"_input":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":62,"character":3},"arguments":["inputCtr",{"static":true}]}]}],"_display":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":63,"character":3},"arguments":["displayCtr",{"static":true}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":66,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}},"LhControlsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NumberInputComponent"}],"imports":[],"exports":[{"__symbolic":"reference","name":"NumberInputComponent"}]}]}],"members":{}}},"origins":{"NumberInputComponent":"./lib/number-input/number-input.component","LhControlsModule":"./lib/lh-controls.module"},"importAs":"@lucasheight/angular-controls"} | ||
{"__symbolic":"module","version":4,"metadata":{"NumberInputComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"lh-numberInput","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":12,"character":15},"useExisting":{"__symbolic":"reference","name":"NumberInputComponent"},"multi":true}],"host":{"[style.width]":"_width","$quoted$":["[style.width]"]},"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","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}"]}]}],"members":{"placeholder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":3}}]}],"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"tabindex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3}}]}],"factor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"prefix":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"postfix":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":38,"character":3}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}}]}],"decimals":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3},"arguments":["value"]}]}],"valueOutput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":65,"character":3},"arguments":["valueChange"]}]}],"blurOutput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":66,"character":3},"arguments":["blur"]}]}],"focusOutput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":67,"character":3},"arguments":["focus"]}]}],"_input":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":68,"character":3},"arguments":["inputCtr",{"static":true}]}]}],"_display":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":69,"character":3},"arguments":["displayCtr",{"static":true}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":72,"character":27}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}},"LhControlsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NumberInputComponent"}],"imports":[],"exports":[{"__symbolic":"reference","name":"NumberInputComponent"}]}]}],"members":{}}},"origins":{"NumberInputComponent":"./lib/number-input/number-input.component","LhControlsModule":"./lib/lh-controls.module"},"importAs":"@lucasheight/angular-controls"} |
{ | ||
"name": "@lucasheight/angular-controls", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Lynden Garrett", |
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
146924
1662