{"version":3,"file":"primeng-inputtext.umd.js","sources":["../../src/app/components/inputtext/inputtext.ts","../../src/app/components/inputtext/primeng-inputtext.ts"],"sourcesContent":["import {NgModule,Directive,ElementRef,HostListener,DoCheck,Optional} from '@angular/core';\nimport {NgModel} from '@angular/forms';\nimport {CommonModule} from '@angular/common';\n\n@Directive({\n selector: '[pInputText]',\n host: {\n '[class.p-inputtext]': 'true',\n '[class.p-component]': 'true',\n '[class.p-filled]': 'filled'\n }\n})\nexport class InputText implements DoCheck {\n\n filled: boolean;\n\n constructor(public el: ElementRef, @Optional() public ngModel: NgModel) {}\n \n ngDoCheck() {\n this.updateFilledState();\n }\n \n @HostListener('input', ['$event']) \n onInput(e) {\n this.updateFilledState();\n }\n \n updateFilledState() {\n this.filled = (this.el.nativeElement.value && this.el.nativeElement.value.length) ||\n (this.ngModel && this.ngModel.model);\n }\n}\n\n@NgModule({\n imports: [CommonModule],\n exports: [InputText],\n declarations: [InputText]\n})\nexport class InputTextModule { }","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["Directive","ElementRef","NgModel","Optional","HostListener","NgModule","CommonModule"],"mappings":";;;;;;;QAgBI,mBAAmB,EAAc,EAAqB,OAAgB;YAAnD,OAAE,GAAF,EAAE,CAAY;YAAqB,YAAO,GAAP,OAAO,CAAS;SAAI;QAE1E,6BAAS,GAAT;YACI,IAAI,CAAC,iBAAiB,EAAE,CAAC;SAC5B;QAGD,2BAAO,GAAP,UAAQ,CAAC;YACL,IAAI,CAAC,iBAAiB,EAAE,CAAC;SAC5B;QAED,qCAAiB,GAAjB;YACI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,IAAI,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM;iBAC/D,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;SACxD;;;;gBA1BJA,cAAS,SAAC;oBACP,QAAQ,EAAE,cAAc;oBACxB,IAAI,EAAE;wBACF,qBAAqB,EAAE,MAAM;wBAC7B,qBAAqB,EAAE,MAAM;wBAC7B,kBAAkB,EAAE,QAAQ;qBAC/B;iBACJ;;;gBAX0BC,eAAU;gBAC7BC,aAAO,uBAeyBC,aAAQ;;;0BAM3CC,iBAAY,SAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;;;QAgBrC;;;;;gBALCC,aAAQ,SAAC;oBACN,OAAO,EAAE,CAACC,mBAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,SAAS,CAAC;oBACpB,YAAY,EAAE,CAAC,SAAS,CAAC;iBAC5B;;;ICrCD;;;;;;;;;;;;;"}