primeng
Version:
PrimeNG is an open source UI library for Angular featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeB
90 lines (86 loc) • 3.03 kB
TypeScript
import * as i0 from '@angular/core';
import { DoCheck, AfterViewInit } from '@angular/core';
import { NgControl } from '@angular/forms';
import { BaseModelHolder } from 'primeng/basemodelholder';
import { Fluid } from 'primeng/fluid';
import { BaseStyle } from 'primeng/base';
/**
*
* InputText renders a text field to enter data.
*
* [Live Demo](https://www.primeng.org/inputtext/)
*
* @module inputtextstyle
*
*/
declare enum InputTextClasses {
/**
* The class of root element
*/
root = "p-inputtext"
}
declare class InputTextStyle extends BaseStyle {
name: string;
theme: string;
classes: {
root: ({ instance }: {
instance: any;
}) => (string | {
'p-filled': any;
'p-inputtext-sm': boolean;
'p-inputtext-lg': boolean;
'p-invalid': any;
'p-variant-filled': boolean;
'p-inputtext-fluid': any;
})[];
};
static ɵfac: i0.ɵɵFactoryDeclaration<InputTextStyle, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<InputTextStyle>;
}
interface InputTextStyle extends BaseStyle {
}
/**
* InputText directive is an extension to standard input element with theming.
* @group Components
*/
declare class InputText extends BaseModelHolder implements DoCheck, AfterViewInit {
ngControl: NgControl;
pcFluid: Fluid;
/**
* Defines the size of the component.
* @group Props
*/
pSize: 'large' | 'small';
/**
* Specifies the input variant of the component.
* @defaultValue undefined
* @group Props
*/
variant: i0.InputSignal<"filled" | "outlined">;
/**
* Spans 100% width of the container when enabled.
* @defaultValue undefined
* @group Props
*/
fluid: i0.InputSignalWithTransform<boolean, unknown>;
/**
* When present, it specifies that the component should have invalid state style.
* @defaultValue false
* @group Props
*/
invalid: i0.InputSignalWithTransform<boolean, unknown>;
$variant: i0.Signal<"filled" | "outlined">;
_componentStyle: InputTextStyle;
ngAfterViewInit(): void;
ngDoCheck(): void;
onInput(): void;
get hasFluid(): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<InputText, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<InputText, "[pInputText]", never, { "pSize": { "alias": "pSize"; "required": false; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
}
declare class InputTextModule {
static ɵfac: i0.ɵɵFactoryDeclaration<InputTextModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<InputTextModule, never, [typeof InputText], [typeof InputText]>;
static ɵinj: i0.ɵɵInjectorDeclaration<InputTextModule>;
}
export { InputText, InputTextClasses, InputTextModule, InputTextStyle };