{"version":3,"file":"primeng-inputtext.mjs","sources":["../../src/app/components/inputtext/inputtext.ts","../../src/app/components/inputtext/primeng-inputtext.ts"],"sourcesContent":["import { NgModule, Directive, ElementRef, HostListener, DoCheck, Optional, ChangeDetectorRef, AfterViewInit } from '@angular/core';\nimport { NgModel } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { LicenseManager } from 'primeng/api';\n\n@Directive({\n selector: '[pInputText]',\n host: {\n class: 'p-inputtext p-component p-element',\n '[class.p-filled]': 'filled'\n }\n})\nexport class InputText implements DoCheck, AfterViewInit {\n filled: boolean;\n\n constructor(public el: ElementRef, @Optional() public ngModel: NgModel, private cd: ChangeDetectorRef) {}\n\n ngAfterViewInit() {\n this.updateFilledState();\n this.cd.detectChanges();\n\n LicenseManager.check();\n }\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) || (this.ngModel && this.ngModel.model);\n }\n}\n\n@NgModule({\n imports: [CommonModule],\n exports: [InputText],\n declarations: [InputText]\n})\nexport class InputTextModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;MAYa,SAAS,CAAA;AAGlB,IAAA,WAAA,CAAmB,EAAc,EAAqB,OAAgB,EAAU,EAAqB,EAAA;AAAlF,QAAA,IAAE,CAAA,EAAA,GAAF,EAAE,CAAY;AAAqB,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAS;AAAU,QAAA,IAAE,CAAA,EAAA,GAAF,EAAE,CAAmB;KAAI;IAEzG,eAAe,GAAA;QACX,IAAI,CAAC,iBAAiB,EAAE,CAAC;AACzB,QAAA,IAAI,CAAC,EAAE,CAAC,aAAa,EAAE,CAAC;QAExB,cAAc,CAAC,KAAK,EAAE,CAAC;KAC1B;IAED,SAAS,GAAA;QACL,IAAI,CAAC,iBAAiB,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