primeng
Version:
[](https://opensource.org/licenses/MIT) [](https://badge.fury.io/js/primeng) [ • 23.8 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("primeng/inputtext"),require("primeng/button"),require("@angular/forms")):"function"==typeof define&&define.amd?define("primeng/inputnumber",["exports","@angular/core","@angular/common","primeng/inputtext","primeng/button","@angular/forms"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).primeng=t.primeng||{},t.primeng.inputnumber={}),t.ng.core,t.ng.common,t.primeng.inputtext,t.primeng.button,t.ng.forms)}(this,(function(t,e,n,i,r,u){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */Object.create;function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,u=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(i=u.next()).done;)o.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}return o}Object.create;var s={provide:u.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return a})),multi:!0},a=function(){function t(t,n){this.el=t,this.cd=n,this.showButtons=!1,this.format=!0,this.buttonLayout="stacked",this.incrementButtonIcon="pi pi-angle-up",this.decrementButtonIcon="pi pi-angle-down",this.step=1,this.onInput=new e.EventEmitter,this.onFocus=new e.EventEmitter,this.onBlur=new e.EventEmitter,this.onKeyDown=new e.EventEmitter,this.onModelChange=function(){},this.onModelTouched=function(){},this.groupChar="",this.prefixChar="",this.suffixChar="",this._modeOption="decimal",this._useGroupingOption=!0}return Object.defineProperty(t.prototype,"locale",{get:function(){return this._localeOption},set:function(t){this._localeOption=t,this.updateConstructParser()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localeMatcher",{get:function(){return this._localeMatcherOption},set:function(t){this._localeMatcherOption=t,this.updateConstructParser()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this._modeOption},set:function(t){this._modeOption=t,this.updateConstructParser()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this._currencyOption},set:function(t){this._currencyOption=t,this.updateConstructParser()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currencyDisplay",{get:function(){return this._currencyDisplayOption},set:function(t){this._currencyDisplayOption=t,this.updateConstructParser()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this._useGroupingOption},set:function(t){this._useGroupingOption=t,this.updateConstructParser()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minFractionDigits",{get:function(){return this._minFractionDigitsOption},set:function(t){this._minFractionDigitsOption=t,this.updateConstructParser()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxFractionDigits",{get:function(){return this._maxFractionDigitsOption},set:function(t){this._maxFractionDigitsOption=t,this.updateConstructParser()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"prefix",{get:function(){return this._prefixOption},set:function(t){this._prefixOption=t,this.updateConstructParser()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"suffix",{get:function(){return this._suffixOption},set:function(t){this._suffixOption=t,this.updateConstructParser()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){t&&(this.focused=!1),this._disabled=t,this.timer&&this.clearTimer()},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.constructParser(),this.initialized=!0},t.prototype.getOptions=function(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits}},t.prototype.constructParser=function(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());var t=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t}(new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)).reverse(),e=new Map(t.map((function(t,e){return[t,e]})));this._numeral=new RegExp("["+t.join("")+"]","g"),this._decimal=this.getDecimalExpression(),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=function(t){return e.get(t)}},t.prototype.updateConstructParser=function(){this.initialized&&this.constructParser()},t.prototype.escapeRegExp=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},t.prototype.getDecimalExpression=function(){var t=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp("["+t.format(1.1).trim().replace(this._numeral,"")+"]","g")},t.prototype.getGroupingExpression=function(){var t=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=t.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp("["+this.groupChar+"]","g")},t.prototype.getMinusSignExpression=function(){var t=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp("["+t.format(-1).trim().replace(this._numeral,"")+"]","g")},t.prototype.getCurrencyExpression=function(){if(this.currency){var t=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay});return new RegExp("["+t.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._decimal,"").replace(this._group,"")+"]","g")}return new RegExp("[]","g")},t.prototype.getPrefixExpression=function(){if(this.prefix)this.prefixChar=this.prefix;else{var t=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=t.format(1).split("1")[0]}return new RegExp(""+this.escapeRegExp(this.prefixChar||""),"g")},t.prototype.getSuffixExpression=function(){if(this.suffix)this.suffixChar=this.suffix;else{var t=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=t.format(1).split("1")[1]}return new RegExp(""+this.escapeRegExp(this.suffixChar||""),"g")},t.prototype.formatValue=function(t){if(null!=t){if("-"===t)return t;if(this.format){var e=new Intl.NumberFormat(this.locale,this.getOptions()).format(t);return this.prefix&&(e=this.prefix+e),this.suffix&&(e+=this.suffix),e}return t.toString()}return""},t.prototype.parseValue=function(t){var e=t.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(e){if("-"===e)return e;var n=+e;return isNaN(n)?null:n}return null},t.prototype.repeat=function(t,e,n){var i=this,r=e||500;this.clearTimer(),this.timer=setTimeout((function(){i.repeat(t,40,n)}),r),this.spin(t,n)},t.prototype.spin=function(t,e){var n=this.step*e,i=this.parseValue(this.input.nativeElement.value)||0,r=this.validateValue(i+n);this.maxlength&&this.maxlength<this.formatValue(r).length||(this.updateInput(r,null,"spin"),this.updateModel(t,r),this.handleOnInput(t,i,r))},t.prototype.onUpButtonMouseDown=function(t){this.input.nativeElement.focus(),this.repeat(t,null,1),t.preventDefault()},t.prototype.onUpButtonMouseUp=function(){this.clearTimer()},t.prototype.onUpButtonMouseLeave=function(){this.clearTimer()},t.prototype.onUpButtonKeyDown=function(t){32!==t.keyCode&&13!==t.keyCode||this.repeat(t,null,1)},t.prototype.onUpButtonKeyUp=function(){this.clearTimer()},t.prototype.onDownButtonMouseDown=function(t){this.input.nativeElement.focus(),this.repeat(t,null,-1),t.preventDefault()},t.prototype.onDownButtonMouseUp=function(){this.clearTimer()},t.prototype.onDownButtonMouseLeave=function(){this.clearTimer()},t.prototype.onDownButtonKeyUp=function(){this.clearTimer()},t.prototype.onDownButtonKeyDown=function(t){32!==t.keyCode&&13!==t.keyCode||this.repeat(t,null,-1)},t.prototype.onUserInput=function(t){this.isSpecialChar&&(t.target.value=this.lastValue),this.isSpecialChar=!1},t.prototype.onInputKeyDown=function(t){if(this.lastValue=t.target.value,t.shiftKey||t.altKey)this.isSpecialChar=!0;else{var e=t.target.selectionStart,n=t.target.selectionEnd,i=t.target.value,r=null;switch(t.altKey&&t.preventDefault(),t.which){case 38:this.spin(t,1),t.preventDefault();break;case 40:this.spin(t,-1),t.preventDefault();break;case 37:this.isNumeralChar(i.charAt(e-1))||t.preventDefault();break;case 39:this.isNumeralChar(i.charAt(e))||t.preventDefault();break;case 13:var u=this.validateValue(this.parseValue(this.input.nativeElement.value));this.input.nativeElement.value=this.formatValue(u),this.input.nativeElement.setAttribute("aria-valuenow",u),this.updateModel(t,u);break;case 8:if(t.preventDefault(),e===n){var o=i.charAt(e-1),s=i.search(this._decimal);this._decimal.lastIndex=0,this.isNumeralChar(o)&&(this._group.test(o)?(this._group.lastIndex=0,r=i.slice(0,e-2)+i.slice(e-1)):this._decimal.test(o)?(this._decimal.lastIndex=0,this.input.nativeElement.setSelectionRange(e-1,e-1)):s>0&&e>s?r=i.slice(0,e-1)+"0"+i.slice(e):s>0&&1===s?(r=i.slice(0,e-1)+"0"+i.slice(e),r=this.parseValue(r)>0?r:""):r=i.slice(0,e-1)+i.slice(e)),this.updateValue(t,r,null,"delete-single")}else r=this.deleteRange(i,e,n),this.updateValue(t,r,null,"delete-range");break;case 46:if(t.preventDefault(),e===n){o=i.charAt(e),s=i.search(this._decimal);this._decimal.lastIndex=0,this.isNumeralChar(o)&&(this._group.test(o)?(this._group.lastIndex=0,r=i.slice(0,e)+i.slice(e+2)):this._decimal.test(o)?(this._decimal.lastIndex=0,this.input.nativeElement.setSelectionRange(e+1,e+1)):s>0&&e>s?r=i.slice(0,e)+"0"+i.slice(e+1):s>0&&1===s?(r=i.slice(0,e)+"0"+i.slice(e+1),r=this.parseValue(r)>0?r:""):r=i.slice(0,e)+i.slice(e+1)),this.updateValue(t,r,null,"delete-back-single")}else r=this.deleteRange(i,e,n),this.updateValue(t,r,null,"delete-range")}this.onKeyDown.emit(t)}},t.prototype.onInputKeyPress=function(t){t.preventDefault();var e=t.which||t.keyCode,n=String.fromCharCode(e),i=this.isDecimalSign(n),r=this.isMinusSign(n);(48<=e&&e<=57||r||i)&&this.insert(t,n,{isDecimalSign:i,isMinusSign:r})},t.prototype.onPaste=function(t){t.preventDefault();var e=(t.clipboardData||window.clipboardData).getData("Text");if(e){var n=this.parseValue(e);null!=n&&this.insert(t,n.toString())}},t.prototype.isMinusSign=function(t){return!!this._minusSign.test(t)&&(this._minusSign.lastIndex=0,!0)},t.prototype.isDecimalSign=function(t){return!!this._decimal.test(t)&&(this._decimal.lastIndex=0,!0)},t.prototype.insert=function(t,e,n){void 0===n&&(n={isDecimalSign:!1,isMinusSign:!1});var i=this.input.nativeElement.selectionStart,r=this.input.nativeElement.selectionEnd,u=this.input.nativeElement.value.trim(),o=u.search(this._decimal);this._decimal.lastIndex=0;var s,a=u.search(this._minusSign);if(this._minusSign.lastIndex=0,n.isMinusSign)0===i&&(s=u,-1!==a&&0===r||(s=this.insertText(u,e,0,r)),this.updateValue(t,s,e,"insert"));else if(n.isDecimalSign)o>0&&i===o?this.updateValue(t,u,e,"insert"):o>i&&o<r&&(s=this.insertText(u,e,i,r),this.updateValue(t,s,e,"insert"));else{var p=this.numberFormat.resolvedOptions().maximumFractionDigits,l=i!==r?"range-insert":"insert";o>0&&i>o?i+e.length-(o+1)<=p&&(s=u.slice(0,i)+e+u.slice(i+e.length),this.updateValue(t,s,e,l)):(s=this.insertText(u,e,i,r),this.updateValue(t,s,e,l))}},t.prototype.insertText=function(t,e,n,i){if(2==e.split(".").length){var r=t.slice(n,i).search(this._decimal);return this._decimal.lastIndex=0,r>0?t.slice(0,n)+this.formatValue(e)+t.slice(i):t||this.formatValue(e)}return i-n===t.length?this.formatValue(e):0===n?e+t.slice(i):i===t.length?t.slice(0,n)+e:t.slice(0,n)+e+t.slice(i)},t.prototype.deleteRange=function(t,e,n){return n-e===t.length?"":0===e?t.slice(n):n===t.length?t.slice(0,e):t.slice(0,e)+t.slice(n)},t.prototype.initCursor=function(){var t=this.input.nativeElement.selectionStart,e=this.input.nativeElement.value,n=e.length,i=null,r=e.charAt(t);if(!this.isNumeralChar(r)){for(var u=t-1;u>=0;){if(r=e.charAt(u),this.isNumeralChar(r)){i=u;break}u--}if(null!==i)this.input.nativeElement.setSelectionRange(i+1,i+1);else{for(u=t+1;u<n;){if(r=e.charAt(u),this.isNumeralChar(r)){i=u;break}u++}null!==i&&this.input.nativeElement.setSelectionRange(i,i)}}},t.prototype.onInputClick=function(){this.initCursor()},t.prototype.isNumeralChar=function(t){return!(1!==t.length||!(this._numeral.test(t)||this._decimal.test(t)||this._group.test(t)||this._minusSign.test(t)))&&(this.resetRegex(),!0)},t.prototype.resetRegex=function(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0},t.prototype.updateValue=function(t,e,n,i){var r=this.input.nativeElement.value,u=null;null!=e&&(u=this.parseValue(e),this.updateInput(u,n,i)),this.handleOnInput(t,r,u)},t.prototype.handleOnInput=function(t,e,n){this.isValueChanged(e,n)&&this.onInput.emit({originalEvent:t,value:n})},t.prototype.isValueChanged=function(t,e){return null===e&&null!==t||null!=e&&e!==("string"==typeof t?this.parseValue(t):t)},t.prototype.validateValue=function(t){return null!==this.min&&t<this.min?this.min:null!==this.max&&t>this.max?this.max:"-"===t?null:t},t.prototype.updateInput=function(t,e,n){e=e||"";var i=this.input.nativeElement.value,r=this.formatValue(t),u=i.length;if(0===u){this.input.nativeElement.value=r,this.input.nativeElement.setSelectionRange(0,0),this.initCursor();var o=(this.prefixChar||"").length+e.length;this.input.nativeElement.setSelectionRange(o,o)}else{var s=this.input.nativeElement.selectionStart;o=this.input.nativeElement.selectionEnd;if(this.maxlength&&this.maxlength<r.length)return;this.input.nativeElement.value=r;var a=r.length;if("range-insert"===n){var p=this.parseValue((i||"").slice(0,s)),l=(null!==p?p.toString():"").split("").join("("+this.groupChar+")?"),c=new RegExp(l,"g");c.test(r);var h=e.split("").join("("+this.groupChar+")?"),m=new RegExp(h,"g");m.test(r.slice(c.lastIndex)),o=c.lastIndex+m.lastIndex,this.input.nativeElement.setSelectionRange(o,o)}else if(a===u)"insert"===n||"delete-back-single"===n?this.input.nativeElement.setSelectionRange(o+1,o+1):"delete-single"===n?this.input.nativeElement.setSelectionRange(o-1,o-1):"delete-range"!==n&&"spin"!==n||this.input.nativeElement.setSelectionRange(o,o);else if("delete-back-single"===n){var d=i.charAt(o-1),f=i.charAt(o),g=u-a,b=this._group.test(f);b&&1===g?o+=1:!b&&this.isNumeralChar(d)&&(o+=-1*g+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(o,o)}else o+=a-u,this.input.nativeElement.setSelectionRange(o,o)}this.input.nativeElement.setAttribute("aria-valuenow",t)},t.prototype.onInputFocus=function(t){this.focused=!0,this.onFocus.emit(t)},t.prototype.onInputBlur=function(t){this.focused=!1;var e=this.validateValue(this.parseValue(this.input.nativeElement.value));this.input.nativeElement.value=this.formatValue(e),this.input.nativeElement.setAttribute("aria-valuenow",e),this.updateModel(t,e),this.onBlur.emit(t)},t.prototype.formattedValue=function(){return this.formatValue(this.value)},t.prototype.updateModel=function(t,e){this.value!==e&&(this.value=e,this.onModelChange(e)),this.onModelTouched()},t.prototype.writeValue=function(t){this.value=t,this.cd.markForCheck()},t.prototype.registerOnChange=function(t){this.onModelChange=t},t.prototype.registerOnTouched=function(t){this.onModelTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t,this.cd.markForCheck()},Object.defineProperty(t.prototype,"filled",{get:function(){return null!=this.value&&this.value.toString().length>0},enumerable:!1,configurable:!0}),t.prototype.clearTimer=function(){this.timer&&clearInterval(this.timer)},t}();a.decorators=[{type:e.Component,args:[{selector:"p-inputNumber",template:'\n <span [ngClass]="{\'p-inputnumber p-component\': true,\'p-inputnumber-buttons-stacked\': this.showButtons && this.buttonLayout === \'stacked\',\n \'p-inputnumber-buttons-horizontal\': this.showButtons && this.buttonLayout === \'horizontal\', \'p-inputnumber-buttons-vertical\': this.showButtons && this.buttonLayout === \'vertical\'}"\n [ngStyle]="style" [class]="styleClass">\n <input #input [ngClass]="\'p-inputnumber-input\'" [ngStyle]="inputStyle" [class]="inputStyleClass" pInputText [value]="formattedValue()" [attr.placeholder]="placeholder" [attr.title]="title" [attr.id]="inputId"\n [attr.size]="size" [attr.name]="name" [attr.autocomplete]="autocomplete" [attr.maxlength]="maxlength" [attr.tabindex]="tabindex" [attr.aria-label]="ariaLabel"\n [attr.aria-required]="ariaRequired" [disabled]="disabled" [attr.required]="required" [attr.aria-valumin]="min" [attr.aria-valuemax]="max"\n (input)="onUserInput($event)" (keydown)="onInputKeyDown($event)" (keypress)="onInputKeyPress($event)" (paste)="onPaste($event)" (click)="onInputClick()"\n (focus)="onInputFocus($event)" (blur)="onInputBlur($event)">\n <span class="p-inputnumber-button-group" *ngIf="showButtons && buttonLayout === \'stacked\'">\n <button type="button" pButton [ngClass]="{\'p-inputnumber-button p-inputnumber-button-up\': true}" [class]="incrementButtonClass" [icon]="incrementButtonIcon" [disabled]="disabled"\n (mousedown)="this.onUpButtonMouseDown($event)" (mouseup)="onUpButtonMouseUp()" (mouseleave)="onUpButtonMouseLeave()" (keydown)="onUpButtonKeyDown($event)" (keyup)="onUpButtonKeyUp()"></button>\n <button type="button" pButton [ngClass]="{\'p-inputnumber-button p-inputnumber-button-down\': true}" [class]="decrementButtonClass" [icon]="decrementButtonIcon" [disabled]="disabled"\n (mousedown)="this.onDownButtonMouseDown($event)" (mouseup)="onDownButtonMouseUp()" (mouseleave)="onDownButtonMouseLeave()" (keydown)="onDownButtonKeyDown($event)" (keyup)="onDownButtonKeyUp()"></button>\n </span>\n <button type="button" pButton [ngClass]="{\'p-inputnumber-button p-inputnumber-button-up\': true}" [class]="incrementButtonClass" [icon]="incrementButtonIcon" *ngIf="showButtons && buttonLayout !== \'stacked\'" [disabled]="disabled"\n (mousedown)="this.onUpButtonMouseDown($event)" (mouseup)="onUpButtonMouseUp()" (mouseleave)="onUpButtonMouseLeave()" (keydown)="onUpButtonKeyDown($event)" (keyup)="onUpButtonKeyUp()"></button>\n <button type="button" pButton [ngClass]="{\'p-inputnumber-button p-inputnumber-button-down\': true}" [class]="decrementButtonClass" [icon]="decrementButtonIcon" *ngIf="showButtons && buttonLayout !== \'stacked\'" [disabled]="disabled"\n (mousedown)="this.onDownButtonMouseDown($event)" (mouseup)="onDownButtonMouseUp()" (mouseleave)="onDownButtonMouseLeave()" (keydown)="onDownButtonKeyDown($event)" (keyup)="onDownButtonKeyUp()"></button>\n </span>\n ',changeDetection:e.ChangeDetectionStrategy.OnPush,providers:[s],encapsulation:e.ViewEncapsulation.None,host:{"[class.p-inputwrapper-filled]":"filled","[class.p-inputwrapper-focus]":"focused"},styles:[".p-inputnumber{display:inline-flex}.p-inputnumber-button{align-items:center;display:flex;flex:0 0 auto;justify-content:center}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-bottom-right-radius:0;border-top-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{border-bottom-left-radius:0;border-top-left-radius:0;order:3}.p-inputnumber-buttons-horizontal .p-inputnumber-input{border-radius:0;order:2}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{border-bottom-right-radius:0;border-top-right-radius:0;order:1}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{border-bottom-left-radius:0;border-bottom-right-radius:0;order:1;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{border-radius:0;order:2;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;order:3;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}"]}]}],a.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef}]},a.propDecorators={showButtons:[{type:e.Input}],format:[{type:e.Input}],buttonLayout:[{type:e.Input}],inputId:[{type:e.Input}],styleClass:[{type:e.Input}],style:[{type:e.Input}],placeholder:[{type:e.Input}],size:[{type:e.Input}],maxlength:[{type:e.Input}],tabindex:[{type:e.Input}],title:[{type:e.Input}],ariaLabel:[{type:e.Input}],ariaRequired:[{type:e.Input}],name:[{type:e.Input}],required:[{type:e.Input}],autocomplete:[{type:e.Input}],min:[{type:e.Input}],max:[{type:e.Input}],incrementButtonClass:[{type:e.Input}],decrementButtonClass:[{type:e.Input}],incrementButtonIcon:[{type:e.Input}],decrementButtonIcon:[{type:e.Input}],step:[{type:e.Input}],inputStyle:[{type:e.Input}],inputStyleClass:[{type:e.Input}],input:[{type:e.ViewChild,args:["input"]}],onInput:[{type:e.Output}],onFocus:[{type:e.Output}],onBlur:[{type:e.Output}],onKeyDown:[{type:e.Output}],locale:[{type:e.Input}],localeMatcher:[{type:e.Input}],mode:[{type:e.Input}],currency:[{type:e.Input}],currencyDisplay:[{type:e.Input}],useGrouping:[{type:e.Input}],minFractionDigits:[{type:e.Input}],maxFractionDigits:[{type:e.Input}],prefix:[{type:e.Input}],suffix:[{type:e.Input}],disabled:[{type:e.Input}]};var p=function(){};p.decorators=[{type:e.NgModule,args:[{imports:[n.CommonModule,i.InputTextModule,r.ButtonModule],exports:[a],declarations:[a]}]}],t.INPUTNUMBER_VALUE_ACCESSOR=s,t.InputNumber=a,t.InputNumberModule=p,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=primeng-inputnumber.umd.min.js.map