ngx-i18n-input
Version:
Angular library for internationalized input fields
36 lines (35 loc) • 1.92 kB
TypeScript
import { AfterViewInit, EventEmitter, ViewContainerRef } from '@angular/core';
import { ControlValueAccessor, FormControl } from '@angular/forms';
import { Lang, NgxI18nInputConfig, NgxI18nInputContext } from '../types';
import * as i0 from "@angular/core";
export declare class NgxI18nInputSingleLangInputComponent<T> implements AfterViewInit, ControlValueAccessor {
/*************************************** Dependencies ***************************************/
private readonly cd;
private readonly injector;
readonly onCustomEvent: EventEmitter<{
lang: Lang;
name: string;
value: any;
}>;
/*************************************** Instance variables ***************************************/
container?: ViewContainerRef;
readonly control: FormControl<T | null>;
injectableContext: NgxI18nInputContext | null;
/*************************************** Inputs and configs ***************************************/
inputId: string;
configs: NgxI18nInputConfig;
lang: Lang | null;
/*************************************** Angular Lifecycle hoooks ***************************************/
ngAfterViewInit(): void;
writeValue(obj: any): void;
registerOnChange(fn: any): void;
registerOnTouched(fn: any): void;
setDisabledState?(isDisabled: boolean): void;
ngOnChanges(): void;
/*************************************** Public methods ***************************************/
renderComponent(): void;
inputTouched(): void;
detectChanges(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxI18nInputSingleLangInputComponent<any>, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NgxI18nInputSingleLangInputComponent<any>, "lib-ngx-i18n-input-single-lang-input", never, { "inputId": "inputId"; "configs": "configs"; "lang": "lang"; }, { "onCustomEvent": "onCustomEvent"; }, never, never, false, never>;
}