primeng-extensions
Version:
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] []() [![Dependency Status][daviddm-image]][daviddm-url] .push([[7],{"36pN":function(n,l,e){"use strict";e.r(l);var u=e("CcnG"),t=function(){return function(){}}(),i=e("pMnS"),o=e("gIcY"),s=(Object(u.forwardRef)(function(){return s}),function(){function n(n){this.cd=n,this.min=0,this.max=10,this.step=1,this.vertical=!1,this.disabled=!1,this.decrementLabel="-",this.incrementLabel="+",this.styleClass=null,this.onInputChange=new u.EventEmitter,this.value=0,this.inputValue=0,this.onModelChange=function(){},this.onModelTouched=function(){}}return n.prototype.writeValue=function(n){this.inputValue=n,this.cd.detectChanges()},n.prototype.isIncrement=function(){return this.inputValue+this.step<=this.max},n.prototype.isDecrement=function(){return this.inputValue-this.step>=this.min},n.prototype.getButtonClass=function(n){var l="";return n?this.isDecrement()||(l+=" ui-state-disabled"):this.isIncrement()||(l+=" ui-state-disabled"),l},n.prototype.increment=function(){this.isIncrement()&&(this.inputValue=this.inputValue+this.step,this.onModelChange(this.inputValue),this.onModelTouched(),this.onInputChange.emit(this.inputValue))},n.prototype.decrement=function(){this.isDecrement()&&(this.inputValue=this.inputValue-this.step,this.onModelChange(this.inputValue),this.onModelTouched(),this.onInputChange.emit(this.inputValue))},n.prototype.ngOnDestroy=function(){},n.prototype.ngOnInit=function(){this.inputValue=this.value,this.step<1&&(this.step=1)},n.prototype.registerOnChange=function(n){this.onModelChange=n},n.prototype.registerOnTouched=function(n){this.onModelTouched=n},n}()),a=function(){return function(){}}(),d=e("Ip0R"),r=e("VSng"),c=u["\u0275crt"]({encapsulation:2,styles:[],data:{}});function g(n){return u["\u0275vid"](0,[(n()(),u["\u0275eld"](0,0,null,null,11,"div",[],null,null,null,null,null)),u["\u0275did"](1,278528,null,0,d.NgClass,[u.IterableDiffers,u.KeyValueDiffers,u.ElementRef,u.Renderer2],{ngClass:[0,"ngClass"]},null),u["\u0275pod"](2,{styleClass:0,"ui-minusplus ui-widget ui-widget-content ui-corner-all":1,"ui-minusplus-vertical":2,"ui-state-disabled":3}),(n()(),u["\u0275eld"](3,0,null,null,2,"button",[["pButton",""]],null,[[null,"click"]],function(n,l,e){var u=!0;return"click"===l&&(u=!1!==n.component.decrement()&&u),u},null,null)),u["\u0275did"](4,278528,null,0,d.NgClass,[u.IterableDiffers,u.KeyValueDiffers,u.ElementRef,u.Renderer2],{ngClass:[0,"ngClass"]},null),u["\u0275did"](5,4341760,null,0,r.ButtonDirective,[u.ElementRef],{label:[0,"label"]},null),(n()(),u["\u0275eld"](6,0,null,null,2,"div",[["class","ui-minusplus-value"]],null,null,null,null,null)),u["\u0275ncd"](null,0),(n()(),u["\u0275ted"](8,null,[" "," "])),(n()(),u["\u0275eld"](9,0,null,null,2,"button",[["pButton",""]],null,[[null,"click"]],function(n,l,e){var u=!0;return"click"===l&&(u=!1!==n.component.increment()&&u),u},null,null)),u["\u0275did"](10,278528,null,0,d.NgClass,[u.IterableDiffers,u.KeyValueDiffers,u.ElementRef,u.Renderer2],{ngClass:[0,"ngClass"]},null),u["\u0275did"](11,4341760,null,0,r.ButtonDirective,[u.ElementRef],{label:[0,"label"]},null)],function(n,l){var e=l.component,u=n(l,2,0,!0,!0,e.vertical,e.disabled);n(l,1,0,u),n(l,4,0,e.getButtonClass(!0)),n(l,5,0,e.decrementLabel),n(l,10,0,e.getButtonClass(!1)),n(l,11,0,e.incrementLabel)},function(n,l){n(l,8,0,l.component.inputValue)})}var p=function(){return function(){this.value1=10,this.value2=5,this.value3=10,this.inputHeader="Total points are:",this.decrementDesc="Win",this.incrementDesc="Loss"}}(),m=u["\u0275crt"]({encapsulation:2,styles:[],data:{}});function h(n){return u["\u0275vid"](0,[(n()(),u["\u0275eld"](0,0,null,null,5,"div",[["class","content-section introduction"]],null,null,null,null,null)),(n()(),u["\u0275eld"](1,0,null,null,4,"div",[],null,null,null,null,null)),(n()(),u["\u0275eld"](2,0,null,null,1,"span",[["class","feature-title"]],null,null,null,null,null)),(n()(),u["\u0275ted"](-1,null,["MinusPlusInput"])),(n()(),u["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),u["\u0275ted"](-1,null,["MinusPlusInput is an input element with increment and decrement controls."])),(n()(),u["\u0275eld"](6,0,null,null,27,"div",[["class","content-section implementation"]],null,null,null,null,null)),(n()(),u["\u0275eld"](7,0,null,null,26,"div",[],null,null,null,null,null)),(n()(),u["\u0275eld"](8,0,null,null,25,"div",[["id","wrapper"]],null,null,null,null,null)),(n()(),u["\u0275eld"](9,0,null,null,1,"h3",[["class","first"]],null,null,null,null,null)),(n()(),u["\u0275ted"](-1,null,["Basic"])),(n()(),u["\u0275eld"](11,0,null,null,5,"pe-minusplusinput",[["name","basic"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(n,l,e){var u=!0;return"ngModelChange"===l&&(u=!1!==(n.component.value1=e)&&u),u},g,c)),u["\u0275did"](12,245760,null,0,s,[u.ChangeDetectorRef],{min:[0,"min"],max:[1,"max"],step:[2,"step"]},null),u["\u0275prd"](1024,null,o.NG_VALUE_ACCESSOR,function(n){return[n]},[s]),u["\u0275did"](14,671744,null,0,o.NgModel,[[8,null],[8,null],[8,null],[6,o.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),u["\u0275prd"](2048,null,o.NgControl,null,[o.NgModel]),u["\u0275did"](16,16384,null,0,o.NgControlStatus,[[4,o.NgControl]],null,null),(n()(),u["\u0275eld"](17,0,null,null,1,"h3",[],null,null,null,null,null)),(n()(),u["\u0275ted"](-1,null,["Vertical"])),(n()(),u["\u0275eld"](19,0,null,null,5,"pe-minusplusinput",[["name","vertical"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(n,l,e){var u=!0;return"ngModelChange"===l&&(u=!1!==(n.component.value2=e)&&u),u},g,c)),u["\u0275did"](20,245760,null,0,s,[u.ChangeDetectorRef],{min:[0,"min"],max:[1,"max"],vertical:[2,"vertical"]},null),u["\u0275prd"](1024,null,o.NG_VALUE_ACCESSOR,function(n){return[n]},[s]),u["\u0275did"](22,671744,null,0,o.NgModel,[[8,null],[8,null],[8,null],[6,o.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),u["\u0275prd"](2048,null,o.NgControl,null,[o.NgModel]),u["\u0275did"](24,16384,null,0,o.NgControlStatus,[[4,o.NgControl]],null,null),(n()(),u["\u0275eld"](25,0,null,null,1,"h3",[],null,null,null,null,null)),(n()(),u["\u0275ted"](-1,null,["Custom"])),(n()(),u["\u0275eld"](27,0,null,null,6,"pe-minusplusinput",[["name","custom"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(n,l,e){var u=!0;return"ngModelChange"===l&&(u=!1!==(n.component.value3=e)&&u),u},g,c)),u["\u0275did"](28,245760,null,0,s,[u.ChangeDetectorRef],{min:[0,"min"],max:[1,"max"],step:[2,"step"],decrementLabel:[3,"decrementLabel"],incrementLabel:[4,"incrementLabel"]},null),u["\u0275prd"](1024,null,o.NG_VALUE_ACCESSOR,function(n){return[n]},[s]),u["\u0275did"](30,671744,null,0,o.NgModel,[[8,null],[8,null],[8,null],[6,o.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),u["\u0275prd"](2048,null,o.NgControl,null,[o.NgModel]),u["\u0275did"](32,16384,null,0,o.NgControlStatus,[[4,o.NgControl]],null,null),(n()(),u["\u0275ted"](33,0,[" "," "]))],function(n,l){var e=l.component;n(l,12,0,0,20,1),n(l,14,0,"basic",e.value1),n(l,20,0,0,9,!0),n(l,22,0,"vertical",e.value2),n(l,28,0,0,30,2,e.decrementDesc,e.incrementDesc),n(l,30,0,"custom",e.value3)},function(n,l){var e=l.component;n(l,11,0,u["\u0275nov"](l,16).ngClassUntouched,u["\u0275nov"](l,16).ngClassTouched,u["\u0275nov"](l,16).ngClassPristine,u["\u0275nov"](l,16).ngClassDirty,u["\u0275nov"](l,16).ngClassValid,u["\u0275nov"](l,16).ngClassInvalid,u["\u0275nov"](l,16).ngClassPending),n(l,19,0,u["\u0275nov"](l,24).ngClassUntouched,u["\u0275nov"](l,24).ngClassTouched,u["\u0275nov"](l,24).ngClassPristine,u["\u0275nov"](l,24).ngClassDirty,u["\u0275nov"](l,24).ngClassValid,u["\u0275nov"](l,24).ngClassInvalid,u["\u0275nov"](l,24).ngClassPending),n(l,27,0,u["\u0275nov"](l,32).ngClassUntouched,u["\u0275nov"](l,32).ngClassTouched,u["\u0275nov"](l,32).ngClassPristine,u["\u0275nov"](l,32).ngClassDirty,u["\u0275nov"](l,32).ngClassValid,u["\u0275nov"](l,32).ngClassInvalid,u["\u0275nov"](l,32).ngClassPending),n(l,33,0,e.inputHeader)})}function C(n){return u["\u0275vid"](0,[(n()(),u["\u0275eld"](0,0,null,null,1,"ng-component",[],null,null,null,h,m)),u["\u0275did"](1,49152,null,0,p,[],null,null)],null,null)}var v=u["\u0275ccf"]("ng-component",p,C,{},{},[]),f=e("ZYCi"),M=function(){return function(){}}(),_=e("xhcO");e.d(l,"MinusPlusInputDemoModuleNgFactory",function(){return b});var b=u["\u0275cmf"](t,[],function(n){return u["\u0275mod"]([u["\u0275mpd"](512,u.ComponentFactoryResolver,u["\u0275CodegenComponentFactoryResolver"],[[8,[i.a,v]],[3,u.ComponentFactoryResolver],u.NgModuleRef]),u["\u0275mpd"](4608,d.NgLocalization,d.NgLocaleLocalization,[u.LOCALE_ID,[2,d["\u0275angular_packages_common_common_a"]]]),u["\u0275mpd"](4608,o["\u0275angular_packages_forms_forms_j"],o["\u0275angular_packages_forms_forms_j"],[]),u["\u0275mpd"](1073742336,d.CommonModule,d.CommonModule,[]),u["\u0275mpd"](1073742336,o["\u0275angular_packages_forms_forms_bc"],o["\u0275angular_packages_forms_forms_bc"],[]),u["\u0275mpd"](1073742336,o.FormsModule,o.FormsModule,[]),u["\u0275mpd"](1073742336,f.RouterModule,f.RouterModule,[[2,f["\u0275angular_packages_router_router_a"]],[2,f.Router]]),u["\u0275mpd"](1073742336,M,M,[]),u["\u0275mpd"](1073742336,r.ButtonModule,r.ButtonModule,[]),u["\u0275mpd"](1073742336,a,a,[]),u["\u0275mpd"](1073742336,_.CodeHighlighterModule,_.CodeHighlighterModule,[]),u["\u0275mpd"](1073742336,t,t,[]),u["\u0275mpd"](1024,f.ROUTES,function(){return[[{path:"",component:p}]]},[])])})}}]);