UNPKG

@obliczeniowo/elementary

Version:
140 lines (132 loc) 6.34 kB
import * as i0 from '@angular/core'; import { Renderer2, ElementRef, AfterContentInit, EventEmitter } from '@angular/core'; import { SsrService } from '@obliczeniowo/elementary/ssr'; import * as i5 from '@angular/common'; import * as i6 from '@obliczeniowo/elementary/buttons'; import * as i7 from '@obliczeniowo/elementary/icons'; import * as i8 from '@obliczeniowo/elementary/animations'; import * as i9 from '@obliczeniowo/elementary/text-pipes'; declare class InputDirective { outlined: boolean; constructor(renderer: Renderer2, elementRef: ElementRef<HTMLInputElement>); static ɵfac: i0.ɵɵFactoryDeclaration<InputDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<InputDirective, "input[oblInput]", ["oblInput"], { "outlined": { "alias": "outlined"; "required": false; }; }, {}, never, never, false, never>; } declare class InputWrappersDefaultSettingsService { labelAnimation: { inputWrapper: boolean; editInput: boolean; select: boolean; filters: boolean; sort: boolean; }; static ɵfac: i0.ɵɵFactoryDeclaration<InputWrappersDefaultSettingsService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<InputWrappersDefaultSettingsService>; } declare class InputWrapperComponent implements AfterContentInit { elementRef: ElementRef<HTMLElement>; private readonly ssr; private readonly settings; protected files: File[]; /** * Label text to display */ label: i0.InputSignal<string | undefined>; /** * Style of displayed input */ display: i0.InputSignal<"none" | "outlined" | "underlined">; /** * If you want to display button for clear input (only for input:not([type=file])) */ cancellable: i0.InputSignal<boolean>; /** * step for numeric only */ step: i0.InputSignal<number | undefined>; /** * errors keys from form control */ errors: { [name: string]: boolean | { [param: string]: number | string; }; } | null | undefined; /** * translations */ translations: i0.InputSignal<{ [name: string]: string; }>; /** * Enable type text animation for label */ labelAnimation: boolean; small?: boolean; disable?: any; /** * Emit array of files when it's change, work only with input[type=file] */ loaded: EventEmitter<File[]>; input: HTMLInputElement | undefined | null; observer?: any; get touched(): boolean | undefined; protected get invalid(): boolean | undefined; constructor(elementRef: ElementRef<HTMLElement>, ssr: SsrService, settings: InputWrappersDefaultSettingsService); protected onBlur: () => void | undefined; ngAfterContentInit(): void; ngOnDestroy(): void; onChange: () => void; stepUp(): void; stepDown(): void; type(): string | undefined | null; min(): number | undefined; max(): number | undefined | null; inputStep(): string | undefined | null; disabled(): any | undefined; checkErrors(): boolean; valid(): boolean | undefined; reset(): void; getValue(): string; clicked(): void; delete(index: number): void; static ɵfac: i0.ɵɵFactoryDeclaration<InputWrapperComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<InputWrapperComponent, "obl-input-wrapper", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "display": { "alias": "display"; "required": false; "isSignal": true; }; "cancellable": { "alias": "cancellable"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; }; "translations": { "alias": "translations"; "required": false; "isSignal": true; }; "labelAnimation": { "alias": "labelAnimation"; "required": false; }; "small": { "alias": "small"; "required": false; }; }, { "loaded": "loaded"; }, never, ["[prefix]", "*", "[suffix]"], false, never>; } declare class TextAreaDirective { outlined: boolean; noResize: boolean; constructor(renderer: Renderer2, elementRef: ElementRef<HTMLInputElement>); static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<TextAreaDirective, "textarea[oblTextArea]", ["oblTextArea"], { "outlined": { "alias": "outlined"; "required": false; }; "noResize": { "alias": "noResize"; "required": false; }; }, {}, never, never, false, never>; } declare class TextAreaWrapperComponent { elementRef: ElementRef<HTMLElement>; private readonly settings; /** * Label text to display */ label: i0.InputSignal<string | undefined>; /** * Style of displayed input */ display: i0.InputSignal<"none" | "outlined" | "underlined">; /** * reference to textarea element */ textArea: HTMLTextAreaElement | undefined | null; /** * Enable type text animation for label */ labelAnimation: boolean; constructor(elementRef: ElementRef<HTMLElement>, settings: InputWrappersDefaultSettingsService); ngAfterContentInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaWrapperComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TextAreaWrapperComponent, "obl-textarea-wrapper", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "display": { "alias": "display"; "required": false; "isSignal": true; }; "labelAnimation": { "alias": "labelAnimation"; "required": false; }; }, {}, never, ["*"], false, never>; } declare class InputModule { static ɵfac: i0.ɵɵFactoryDeclaration<InputModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<InputModule, [typeof InputDirective, typeof InputWrapperComponent, typeof TextAreaDirective, typeof TextAreaWrapperComponent], [typeof i5.CommonModule, typeof i6.ButtonsModule, typeof i7.IconsModule, typeof i8.AnimationsModule, typeof i8.AnimationsModule, typeof i9.TextPipesModule], [typeof InputDirective, typeof TextAreaDirective, typeof InputWrapperComponent, typeof TextAreaWrapperComponent]>; static ɵinj: i0.ɵɵInjectorDeclaration<InputModule>; } export { InputDirective, InputModule, InputWrapperComponent, InputWrappersDefaultSettingsService, TextAreaDirective, TextAreaWrapperComponent };