Icard/angular-clarity-master(work.../node_modules/primeng/fesm2022/primeng-inputtext.mjs.map

1 line
4.2 KiB
Plaintext

{"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, Input } from '@angular/core';\nimport { NgModel } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { Nullable } from 'primeng/ts-helpers';\nimport { PrimeNGConfig } from 'primeng/api';\n\n/**\n * InputText directive is an extension to standard input element with theming.\n * @group Components\n */\n@Directive({\n selector: '[pInputText]',\n host: {\n class: 'p-inputtext p-component p-element',\n '[class.p-filled]': 'filled',\n '[class.p-variant-filled]': 'variant === \"filled\" || config.inputStyle() === \"filled\"'\n }\n})\nexport class InputText implements DoCheck, AfterViewInit {\n /**\n * Specifies the input variant of the component.\n * @group Props\n */\n @Input() variant: 'filled' | 'outlined' = 'outlined';\n\n filled: Nullable<boolean>;\n\n constructor(public el: ElementRef, @Optional() public ngModel: NgModel, private cd: ChangeDetectorRef, public config: PrimeNGConfig) {}\n\n ngAfterViewInit() {\n this.updateFilledState();\n this.cd.detectChanges();\n }\n\n ngDoCheck() {\n this.updateFilledState();\n }\n\n @HostListener('input', ['$event'])\n onInput() {\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":";;;;;;AAMA;;;AAGG;MASU,SAAS,CAAA;AASC,IAAA,EAAA,CAAA;AAAmC,IAAA,OAAA,CAAA;AAA0B,IAAA,EAAA,CAAA;AAA8B,IAAA,MAAA,CAAA;AAR9G;;;AAGG;IACM,O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