@lucasheight/angular-controls
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -91,6 +91,6 @@ (function (global, factory) { | ||
function (val) { | ||
if (this._input && val !== undefined) { | ||
if (this._input && val) { | ||
this._input.nativeElement.value = val * this._factor; | ||
} | ||
if (this._display && val !== undefined) { | ||
if (this._display && val) { | ||
this._display.nativeElement.value = this.formatDisplay(val * this._factor); | ||
@@ -97,0 +97,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(){var t=this;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.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(e){return e?""+t.prefix+e.toString()+t.postfix:"Null"}}return Object.defineProperty(t.prototype,"factor",{set:function(t){this._factor=Math.round(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{set:function(t){this._disabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{set:function(t){parseFloat(t.toString())?this._width=t+"px":this._width=t.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._input&&t!==undefined&&(this._input.nativeElement.value=t*this._factor),this._display&&t!==undefined&&(this._display.nativeElement.value=this.formatDisplay(t*this._factor))},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)})}),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.formatDisplay(parseFloat(t._input.nativeElement.value)||null),t.valueOutput.emit(i||null),t.onChanged(i||null)}),n.fromEvent(this._input.nativeElement,"blur").pipe(r.takeUntil(this.destroy$)).subscribe(function(e){t.showInput=!1,t.blurOutput.emit(e)})},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),this._display&&(this._display.nativeElement.value=this.formatDisplay(t*this._factor))}},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[]},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}],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 o=function(){function t(){var t=this;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.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(e){return e?""+t.prefix+e.toString()+t.postfix:"Null"}}return Object.defineProperty(t.prototype,"factor",{set:function(t){this._factor=Math.round(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{set:function(t){this._disabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{set:function(t){parseFloat(t.toString())?this._width=t+"px":this._width=t.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._input&&t&&(this._input.nativeElement.value=t*this._factor),this._display&&t&&(this._display.nativeElement.value=this.formatDisplay(t*this._factor))},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)})}),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.formatDisplay(parseFloat(t._input.nativeElement.value)||null),t.valueOutput.emit(i||null),t.onChanged(i||null)}),n.fromEvent(this._input.nativeElement,"blur").pipe(r.takeUntil(this.destroy$)).subscribe(function(e){t.showInput=!1,t.blurOutput.emit(e)})},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),this._display&&(this._display.nativeElement.value=this.formatDisplay(t*this._factor))}},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[]},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}],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})}); | ||
//# sourceMappingURL=lucasheight-angular-controls.umd.min.js.map |
@@ -77,6 +77,6 @@ /** | ||
set value(val) { | ||
if (this._input && val !== undefined) { | ||
if (this._input && val) { | ||
this._input.nativeElement.value = val * this._factor; | ||
} | ||
if (this._display && val !== undefined) { | ||
if (this._display && val) { | ||
this._display.nativeElement.value = this.formatDisplay(val * this._factor); | ||
@@ -277,2 +277,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BsdWNhc2hlaWdodC9hbmd1bGFyLWNvbnRyb2xzLyIsInNvdXJjZXMiOlsibGliL251bWJlci1pbnB1dC9udW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JqIGFzIG51bWJlcikgKiB0aGlzLl9mYWN0b3IpO1xuICAgICAgfVxuXG5cbiAgICB9XG4gIH1cbiAgcmVnaXN0ZXJPbkNoYW5nZShmbjogYW55KTogdm9pZCB7XG4gICAgdGhpcy5vbkNoYW5nZWQgPSBmbjtcbiAgfVxuICByZWdpc3Rlck9uVG91Y2hlZChmbjogYW55KTogdm9pZCB7XG4gICAgdGhpcy5vblRvdWNoZWQgPSBmbjtcbiAgfVxuICBzZXREaXNhYmxlZFN0YXRlPyhpc0Rpc2FibGVkOiBib29sZWFuKTogdm9pZCB7XG4gICAgdGhpcy5fZGlzYWJsZWQgPSBpc0Rpc2FibGVkO1xuICB9XG4gIHByaXZhdGUgZm9ybWF0RGlzcGxheSA9ICh2YWw6IHN0cmluZyB8IG51bWJlcik6IHN0cmluZyA9PiB7XG4gICAgcmV0dXJuIHZhbCA/IGAke3RoaXMucHJlZml4fSR7dmFsLnRvU3RyaW5nKCl9JHt0aGlzLnBvc3RmaXh9YCA6IFwiTnVsbFwiO1xuICB9XG59XG4iXX0= |
@@ -91,6 +91,6 @@ /** | ||
function (val) { | ||
if (this._input && val !== undefined) { | ||
if (this._input && val) { | ||
this._input.nativeElement.value = val * this._factor; | ||
} | ||
if (this._display && val !== undefined) { | ||
if (this._display && val) { | ||
this._display.nativeElement.value = this.formatDisplay(val * this._factor); | ||
@@ -322,2 +322,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BsdWNhc2hlaWdodC9hbmd1bGFyLWNvbnRyb2xzLyIsInNvdXJjZXMiOlsibGliL251bWJlci1pbnB1dC9udW1iZXItaW5wdXQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBZ0Is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YXMgbnVtYmVyKSAqIHRoaXMuX2ZhY3RvcjtcbiAgICAgIH1cbiAgICAgIGlmICh0aGlzLl9kaXNwbGF5KSB7XG4gICAgICAgIHRoaXMuX2Rpc3BsYXkubmF0aXZlRWxlbWVudC52YWx1ZSA9IHRoaXMuZm9ybWF0RGlzcGxheSgob2JqIGFzIG51bWJlcikgKiB0aGlzLl9mYWN0b3IpO1xuICAgICAgfVxuXG5cbiAgICB9XG4gIH1cbiAgcmVnaXN0ZXJPbkNoYW5nZShmbjogYW55KTogdm9pZCB7XG4gICAgdGhpcy5vbkNoYW5nZWQgPSBmbjtcbiAgfVxuICByZWdpc3Rlck9uVG91Y2hlZChmbjogYW55KTogdm9pZCB7XG4gICAgdGhpcy5vblRvdWNoZWQgPSBmbjtcbiAgfVxuICBzZXREaXNhYmxlZFN0YXRlPyhpc0Rpc2FibGVkOiBib29sZWFuKTogdm9pZCB7XG4gICAgdGhpcy5fZGlzYWJsZWQgPSBpc0Rpc2FibGVkO1xuICB9XG4gIHByaXZhdGUgZm9ybWF0RGlzcGxheSA9ICh2YWw6IHN0cmluZyB8IG51bWJlcik6IHN0cmluZyA9PiB7XG4gICAgcmV0dXJuIHZhbCA/IGAke3RoaXMucHJlZml4fSR7dmFsLnRvU3RyaW5nKCl9JHt0aGlzLnBvc3RmaXh9YCA6IFwiTnVsbFwiO1xuICB9XG59XG4iXX0= |
@@ -78,6 +78,6 @@ import { EventEmitter, Component, forwardRef, Input, Output, ViewChild, NgModule } from '@angular/core'; | ||
set value(val) { | ||
if (this._input && val !== undefined) { | ||
if (this._input && val) { | ||
this._input.nativeElement.value = val * this._factor; | ||
} | ||
if (this._display && val !== undefined) { | ||
if (this._display && val) { | ||
this._display.nativeElement.value = this.formatDisplay(val * this._factor); | ||
@@ -84,0 +84,0 @@ } |
@@ -90,6 +90,6 @@ import { Component, forwardRef, Input, Output, ViewChild, EventEmitter, NgModule } from '@angular/core'; | ||
function (val) { | ||
if (this._input && val !== undefined) { | ||
if (this._input && val) { | ||
this._input.nativeElement.value = val * this._factor; | ||
} | ||
if (this._display && val !== undefined) { | ||
if (this._display && val) { | ||
this._display.nativeElement.value = this.formatDisplay(val * this._factor); | ||
@@ -96,0 +96,0 @@ } |
{ | ||
"name": "@lucasheight/angular-controls", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"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
129669