@lucasheight/angular-controls
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -12,4 +12,5 @@ (function (global, factory) { | ||
var NumberInputComponent = /** @class */ (function () { | ||
function NumberInputComponent() { | ||
function NumberInputComponent(cdr) { | ||
var _this = this; | ||
this.cdr = cdr; | ||
this.numberReg = /\d+/g; | ||
@@ -135,2 +136,3 @@ this.showInput = false; | ||
})); | ||
_this.cdr.markForCheck(); | ||
})); | ||
@@ -149,2 +151,3 @@ rxjs.fromEvent(this._input.nativeElement, "input").pipe(operators.takeUntil(this.destroy$), operators.debounceTime(100), operators.distinctUntilChanged()) | ||
_this.onChanged(v || null); | ||
_this.cdr.markForCheck(); | ||
})); | ||
@@ -160,2 +163,3 @@ rxjs.fromEvent(this._input.nativeElement, "blur").pipe(operators.takeUntil(this.destroy$)) | ||
_this.blurOutput.emit(s); | ||
_this.cdr.markForCheck(); | ||
// this._input.nativeElement.focus() | ||
@@ -194,2 +198,3 @@ })); | ||
} | ||
this.cdr.markForCheck(); | ||
} | ||
@@ -248,3 +253,5 @@ }; | ||
/** @nocollapse */ | ||
NumberInputComponent.ctorParameters = function () { return []; }; | ||
NumberInputComponent.ctorParameters = function () { return [ | ||
{ type: core.ChangeDetectorRef } | ||
]; }; | ||
NumberInputComponent.propDecorators = { | ||
@@ -251,0 +258,0 @@ placeholder: [{ type: core.Input }], |
@@ -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,o){"use strict";var r=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.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(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).toFixed(this.decimals)),this._display&&t&&(this._display.nativeElement.value=this.formatDisplay((t*this._factor).toFixed(this.decimals)))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.ngAfterViewInit=function(){var t=this;n.fromEvent(this._display.nativeElement,"focus").pipe(o.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(o.takeUntil(this.destroy$),o.debounceTime(100),o.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)}),n.fromEvent(this._input.nativeElement,"blur").pipe(o.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).toFixed(this.decimals)),this._display&&(this._display.nativeElement.value=this.formatDisplay((t*this._factor).toFixed(this.decimals)))}},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}],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:[r],imports:[],exports:[r]}]}],t}();t.LhControlsModule=s,t.NumberInputComponent=r,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(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)},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).toFixed(this.decimals)),this._display&&t&&(this._display.nativeElement.value=this.formatDisplay((t*this._factor).toFixed(this.decimals)))},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})}); | ||
//# sourceMappingURL=lucasheight-angular-controls.umd.min.js.map |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
import { Component, Input, ViewChild, ElementRef, forwardRef, Output, EventEmitter } from '@angular/core'; | ||
import { Component, Input, ViewChild, ElementRef, forwardRef, Output, EventEmitter, ChangeDetectorRef } from '@angular/core'; | ||
import { NG_VALUE_ACCESSOR } from "@angular/forms"; | ||
@@ -11,3 +11,7 @@ import { fromEvent, Subject } from 'rxjs'; | ||
export class NumberInputComponent { | ||
constructor() { | ||
/** | ||
* @param {?} cdr | ||
*/ | ||
constructor(cdr) { | ||
this.cdr = cdr; | ||
this.numberReg = /\d+/g; | ||
@@ -113,2 +117,3 @@ this.showInput = false; | ||
})); | ||
this.cdr.markForCheck(); | ||
})); | ||
@@ -127,2 +132,3 @@ fromEvent(this._input.nativeElement, "input").pipe(takeUntil(this.destroy$), debounceTime(100), distinctUntilChanged()) | ||
this.onChanged(v || null); | ||
this.cdr.markForCheck(); | ||
})); | ||
@@ -138,2 +144,3 @@ fromEvent(this._input.nativeElement, "blur").pipe(takeUntil(this.destroy$)) | ||
this.blurOutput.emit(s); | ||
this.cdr.markForCheck(); | ||
// this._input.nativeElement.focus() | ||
@@ -171,2 +178,3 @@ })); | ||
} | ||
this.cdr.markForCheck(); | ||
} | ||
@@ -214,3 +222,5 @@ } | ||
/** @nocollapse */ | ||
NumberInputComponent.ctorParameters = () => []; | ||
NumberInputComponent.ctorParameters = () => [ | ||
{ type: ChangeDetectorRef } | ||
]; | ||
NumberInputComponent.propDecorators = { | ||
@@ -283,2 +293,7 @@ placeholder: [{ type: Input }], | ||
NumberInputComponent.prototype.formatDisplay; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NumberInputComponent.prototype.cdr; | ||
/* Skipping unhandled member: ;*/ | ||
@@ -288,2 +303,2 @@ /* Skipping unhandled member: ;*/ | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BsdWNhc2hlaWdodC9hbmd1bGFyLWNvbnRyb2xzLyIsInNvdXJjZXMiOlsibGliL251bWJlci1pbnB1dC9udW1iZXItaW5wdXQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBZ0IsU0FBUyxFQUE0QixVQUFVLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQWUsTUFBTSxlQUFlLENBQUM7QUFDdkssT0FBTyxFQUF3QixpQkFBaUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3pFLE9BQU8sRUFBRSxTQUFTLEVBQUUsT0FBTyxFQUFRLE1BQU0sTUFBTSxDQUFDO0FBQ2hELE9BQU8sRUFBRSxTQUFTLEVBQVEsb0JBQW9CLEVBQUUsWUFBWSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFnQnJGLE1BQU0sT0FBTyxvQkFBb0I7SUEyQy9CO1FBMUNRLGNBQVMsR0FBRyxNQUFNLENBQUM7UUFDM0IsY0FBUyxHQUFZLEtBQUssQ0FBQztRQUMzQixjQUFTLEdBQVksS0FBSyxDQUFDO1FBQ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sdWUgPSAoKG9iaiBhcyBudW1iZXIpICogdGhpcy5fZmFjdG9yKS50b0ZpeGVkKHRoaXMuZGVjaW1hbHMpO1xuICAgICAgfVxuICAgICAgaWYgKHRoaXMuX2Rpc3BsYXkpIHtcbiAgICAgICAgdGhpcy5fZGlzcGxheS5uYXRpdmVFbGVtZW50LnZhbHVlID0gdGhpcy5mb3JtYXREaXNwbGF5KCgob2JqIGFzIG51bWJlcikgKiB0aGlzLl9mYWN0b3IpLnRvRml4ZWQodGhpcy5kZWNpbWFscykpO1xuICAgICAgfVxuICAgICAgdGhpcy5jZHIubWFya0ZvckNoZWNrKCk7XG5cbiAgICB9XG4gIH1cbiAgcmVnaXN0ZXJPbkNoYW5nZShmbjogYW55KTogdm9pZCB7XG4gICAgdGhpcy5vbkNoYW5nZWQgPSBmbjtcbiAgfVxuICByZWdpc3Rlck9uVG91Y2hlZChmbjogYW55KTogdm9pZCB7XG4gICAgdGhpcy5vblRvdWNoZWQgPSBmbjtcbiAgfVxuICBzZXREaXNhYmxlZFN0YXRlPyhpc0Rpc2FibGVkOiBib29sZWFuKTogdm9pZCB7XG4gICAgdGhpcy5fZGlzYWJsZWQgPSBpc0Rpc2FibGVkO1xuICB9XG4gIHByaXZhdGUgZm9ybWF0RGlzcGxheSA9ICh2YWw6IHN0cmluZyB8IG51bWJlcik6IHN0cmluZyA9PiB7XG4gICAgcmV0dXJuIHZhbCA/IGAke3RoaXMucHJlZml4fSR7dmFsLnRvU3RyaW5nKCl9JHt0aGlzLnBvc3RmaXh9YCA6IFwiTnVsbFwiO1xuICB9XG59XG4iXX0= |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
import { Component, Input, ViewChild, ElementRef, forwardRef, Output, EventEmitter } from '@angular/core'; | ||
import { Component, Input, ViewChild, ElementRef, forwardRef, Output, EventEmitter, ChangeDetectorRef } from '@angular/core'; | ||
import { NG_VALUE_ACCESSOR } from "@angular/forms"; | ||
@@ -11,4 +11,5 @@ import { fromEvent, Subject } from 'rxjs'; | ||
var NumberInputComponent = /** @class */ (function () { | ||
function NumberInputComponent() { | ||
function NumberInputComponent(cdr) { | ||
var _this = this; | ||
this.cdr = cdr; | ||
this.numberReg = /\d+/g; | ||
@@ -137,2 +138,3 @@ this.showInput = false; | ||
})); | ||
_this.cdr.markForCheck(); | ||
})); | ||
@@ -151,2 +153,3 @@ fromEvent(this._input.nativeElement, "input").pipe(takeUntil(this.destroy$), debounceTime(100), distinctUntilChanged()) | ||
_this.onChanged(v || null); | ||
_this.cdr.markForCheck(); | ||
})); | ||
@@ -162,2 +165,3 @@ fromEvent(this._input.nativeElement, "blur").pipe(takeUntil(this.destroy$)) | ||
_this.blurOutput.emit(s); | ||
_this.cdr.markForCheck(); | ||
// this._input.nativeElement.focus() | ||
@@ -202,2 +206,3 @@ })); | ||
} | ||
this.cdr.markForCheck(); | ||
} | ||
@@ -256,3 +261,5 @@ }; | ||
/** @nocollapse */ | ||
NumberInputComponent.ctorParameters = function () { return []; }; | ||
NumberInputComponent.ctorParameters = function () { return [ | ||
{ type: ChangeDetectorRef } | ||
]; }; | ||
NumberInputComponent.propDecorators = { | ||
@@ -328,2 +335,7 @@ placeholder: [{ type: Input }], | ||
NumberInputComponent.prototype.formatDisplay; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NumberInputComponent.prototype.cdr; | ||
/* Skipping unhandled member: ;*/ | ||
@@ -333,2 +345,2 @@ /* Skipping unhandled member: ;*/ | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BsdWNhc2hlaWdodC9hbmd1bGFyLWNvbnRyb2xzLyIsInNvdXJjZXMiOlsibGliL251bWJlci1pbnB1dC9udW1iZXItaW5wdXQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0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bWJlcikgKiB0aGlzLl9mYWN0b3IpLnRvRml4ZWQodGhpcy5kZWNpbWFscykpO1xuICAgICAgfVxuICAgICAgdGhpcy5jZHIubWFya0ZvckNoZWNrKCk7XG5cbiAgICB9XG4gIH1cbiAgcmVnaXN0ZXJPbkNoYW5nZShmbjogYW55KTogdm9pZCB7XG4gICAgdGhpcy5vbkNoYW5nZWQgPSBmbjtcbiAgfVxuICByZWdpc3Rlck9uVG91Y2hlZChmbjogYW55KTogdm9pZCB7XG4gICAgdGhpcy5vblRvdWNoZWQgPSBmbjtcbiAgfVxuICBzZXREaXNhYmxlZFN0YXRlPyhpc0Rpc2FibGVkOiBib29sZWFuKTogdm9pZCB7XG4gICAgdGhpcy5fZGlzYWJsZWQgPSBpc0Rpc2FibGVkO1xuICB9XG4gIHByaXZhdGUgZm9ybWF0RGlzcGxheSA9ICh2YWw6IHN0cmluZyB8IG51bWJlcik6IHN0cmluZyA9PiB7XG4gICAgcmV0dXJuIHZhbCA/IGAke3RoaXMucHJlZml4fSR7dmFsLnRvU3RyaW5nKCl9JHt0aGlzLnBvc3RmaXh9YCA6IFwiTnVsbFwiO1xuICB9XG59XG4iXX0= |
@@ -1,2 +0,2 @@ | ||
import { EventEmitter, Component, forwardRef, Input, Output, ViewChild, NgModule } from '@angular/core'; | ||
import { EventEmitter, Component, forwardRef, ChangeDetectorRef, Input, Output, ViewChild, NgModule } from '@angular/core'; | ||
import { NG_VALUE_ACCESSOR } from '@angular/forms'; | ||
@@ -11,3 +11,7 @@ import { Subject, fromEvent } from 'rxjs'; | ||
class NumberInputComponent { | ||
constructor() { | ||
/** | ||
* @param {?} cdr | ||
*/ | ||
constructor(cdr) { | ||
this.cdr = cdr; | ||
this.numberReg = /\d+/g; | ||
@@ -113,2 +117,3 @@ this.showInput = false; | ||
})); | ||
this.cdr.markForCheck(); | ||
})); | ||
@@ -127,2 +132,3 @@ fromEvent(this._input.nativeElement, "input").pipe(takeUntil(this.destroy$), debounceTime(100), distinctUntilChanged()) | ||
this.onChanged(v || null); | ||
this.cdr.markForCheck(); | ||
})); | ||
@@ -138,2 +144,3 @@ fromEvent(this._input.nativeElement, "blur").pipe(takeUntil(this.destroy$)) | ||
this.blurOutput.emit(s); | ||
this.cdr.markForCheck(); | ||
// this._input.nativeElement.focus() | ||
@@ -165,2 +172,3 @@ })); | ||
} | ||
this.cdr.markForCheck(); | ||
} | ||
@@ -208,3 +216,5 @@ } | ||
/** @nocollapse */ | ||
NumberInputComponent.ctorParameters = () => []; | ||
NumberInputComponent.ctorParameters = () => [ | ||
{ type: ChangeDetectorRef } | ||
]; | ||
NumberInputComponent.propDecorators = { | ||
@@ -211,0 +221,0 @@ placeholder: [{ type: Input }], |
@@ -1,2 +0,2 @@ | ||
import { Component, forwardRef, Input, Output, ViewChild, EventEmitter, NgModule } from '@angular/core'; | ||
import { Component, forwardRef, ChangeDetectorRef, Input, Output, ViewChild, EventEmitter, NgModule } from '@angular/core'; | ||
import { NG_VALUE_ACCESSOR } from '@angular/forms'; | ||
@@ -11,4 +11,5 @@ import { fromEvent, Subject } from 'rxjs'; | ||
var NumberInputComponent = /** @class */ (function () { | ||
function NumberInputComponent() { | ||
function NumberInputComponent(cdr) { | ||
var _this = this; | ||
this.cdr = cdr; | ||
this.numberReg = /\d+/g; | ||
@@ -134,2 +135,3 @@ this.showInput = false; | ||
})); | ||
_this.cdr.markForCheck(); | ||
})); | ||
@@ -148,2 +150,3 @@ fromEvent(this._input.nativeElement, "input").pipe(takeUntil(this.destroy$), debounceTime(100), distinctUntilChanged()) | ||
_this.onChanged(v || null); | ||
_this.cdr.markForCheck(); | ||
})); | ||
@@ -159,2 +162,3 @@ fromEvent(this._input.nativeElement, "blur").pipe(takeUntil(this.destroy$)) | ||
_this.blurOutput.emit(s); | ||
_this.cdr.markForCheck(); | ||
// this._input.nativeElement.focus() | ||
@@ -193,2 +197,3 @@ })); | ||
} | ||
this.cdr.markForCheck(); | ||
} | ||
@@ -247,3 +252,5 @@ }; | ||
/** @nocollapse */ | ||
NumberInputComponent.ctorParameters = function () { return []; }; | ||
NumberInputComponent.ctorParameters = function () { return [ | ||
{ type: ChangeDetectorRef } | ||
]; }; | ||
NumberInputComponent.propDecorators = { | ||
@@ -250,0 +257,0 @@ placeholder: [{ type: Input }], |
@@ -1,4 +0,5 @@ | ||
import { OnInit, OnDestroy, AfterViewInit, ElementRef, EventEmitter } from '@angular/core'; | ||
import { OnInit, OnDestroy, AfterViewInit, ElementRef, EventEmitter, ChangeDetectorRef } from '@angular/core'; | ||
import { ControlValueAccessor } from "@angular/forms"; | ||
export declare class NumberInputComponent implements OnInit, OnDestroy, AfterViewInit, ControlValueAccessor { | ||
private cdr; | ||
private numberReg; | ||
@@ -25,3 +26,3 @@ showInput: boolean; | ||
private destroy$; | ||
constructor(); | ||
constructor(cdr: ChangeDetectorRef); | ||
ngOnInit(): void; | ||
@@ -28,0 +29,0 @@ ngAfterViewInit(): void; |
@@ -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":32,"character":3}}]}],"prefix":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"postfix":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"decimals":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3},"arguments":["value"]}]}],"valueOutput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":55,"character":3},"arguments":["valueChange"]}]}],"blurOutput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":56,"character":3},"arguments":["blur"]}]}],"focusOutput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":57,"character":3},"arguments":["focus"]}]}],"_input":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":58,"character":3},"arguments":["inputCtr",{"static":true}]}]}],"_display":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":59,"character":3},"arguments":["displayCtr",{"static":true}]}]}],"__ctor__":[{"__symbolic":"constructor"}],"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":32,"character":3}}]}],"prefix":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"postfix":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"decimals":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3},"arguments":["value"]}]}],"valueOutput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":55,"character":3},"arguments":["valueChange"]}]}],"blurOutput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":56,"character":3},"arguments":["blur"]}]}],"focusOutput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":57,"character":3},"arguments":["focus"]}]}],"_input":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":58,"character":3},"arguments":["inputCtr",{"static":true}]}]}],"_display":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":59,"character":3},"arguments":["displayCtr",{"static":true}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":62,"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"} |
{ | ||
"name": "@lucasheight/angular-controls", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"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
139434
1591