Icard/angular-clarity-master(work.../node_modules/primeng/inputtextarea/inputtextarea.d.ts

54 lines
2.3 KiB
TypeScript
Raw Permalink Normal View History

2024-07-16 15:23:22 +00:00
import { ElementRef, EventEmitter, AfterViewInit, OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core';
import { NgModel, NgControl } from '@angular/forms';
import { Subscription } from 'rxjs';
import { PrimeNGConfig } from 'primeng/api';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
/**
* InputTextarea adds styling and autoResize functionality to standard textarea element.
* @group Components
*/
export declare class InputTextarea implements OnInit, AfterViewInit, OnDestroy {
el: ElementRef;
ngModel: NgModel;
control: NgControl;
private cd;
config: PrimeNGConfig;
/**
* When present, textarea size changes as being typed.
* @group Props
*/
autoResize: boolean | undefined;
/**
* Specifies the input variant of the component.
* @group Props
*/
variant: 'filled' | 'outlined';
/**
* Callback to invoke on textarea resize.
* @param {(Event | {})} event - Custom resize event.
* @group Emits
*/
onResize: EventEmitter<Event | {}>;
filled: boolean | undefined;
cachedScrollHeight: number | undefined;
ngModelSubscription: Subscription | undefined;
ngControlSubscription: Subscription | undefined;
constructor(el: ElementRef, ngModel: NgModel, control: NgControl, cd: ChangeDetectorRef, config: PrimeNGConfig);
ngOnInit(): void;
ngAfterViewInit(): void;
onInput(e: Event): void;
updateFilledState(): void;
resize(event?: Event): void;
updateState(): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<InputTextarea, [null, { optional: true; }, { optional: true; }, null, null]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<InputTextarea, "[pInputTextarea]", never, { "autoResize": { "alias": "autoResize"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, { "onResize": "onResize"; }, never, never, false, never>;
static ngAcceptInputType_autoResize: unknown;
}
export declare class InputTextareaModule {
static ɵfac: i0.ɵɵFactoryDeclaration<InputTextareaModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<InputTextareaModule, [typeof InputTextarea], [typeof i1.CommonModule], [typeof InputTextarea]>;
static ɵinj: i0.ɵɵInjectorDeclaration<InputTextareaModule>;
}