UNPKG

1.83 kBJavaScriptView Raw
1!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define("primeng/inputtext",["exports","@angular/core","@angular/forms","@angular/common"],t):t(((e=e||self).primeng=e.primeng||{},e.primeng.inputtext={}),e.ng.core,e.ng.forms,e.ng.common)}(this,(function(e,t,n,o){"use strict";var r=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,u=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(u=(i<3?r(u):i>3?r(t,n,u):r(t,n))||u);return i>3&&u&&Object.defineProperty(t,n,u),u},i=this&&this.__param||function(e,t){return function(n,o){t(n,o,e)}},u=function(){function e(e,t){this.el=e,this.ngModel=t}return e.prototype.ngDoCheck=function(){this.updateFilledState()},e.prototype.onInput=function(e){this.updateFilledState()},e.prototype.updateFilledState=function(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model},e.ctorParameters=function(){return[{type:t.ElementRef},{type:n.NgModel,decorators:[{type:t.Optional}]}]},r([t.HostListener("input",["$event"])],e.prototype,"onInput",null),e=r([t.Directive({selector:"[pInputText]",host:{"[class.ui-inputtext]":"true","[class.ui-corner-all]":"true","[class.ui-state-default]":"true","[class.ui-widget]":"true","[class.ui-state-filled]":"filled"}}),i(1,t.Optional())],e)}(),l=function(){function e(){}return e=r([t.NgModule({imports:[o.CommonModule],exports:[u],declarations:[u]})],e)}();e.InputText=u,e.InputTextModule=l,Object.defineProperty(e,"__esModule",{value:!0})}));
2//# sourceMappingURL=primeng-inputtext.umd.min.js.map
\No newline at end of file