/** * Base Control Component * * @copyright NIIT Technologies Ltd. 2017-18 */ import { NgZone, ElementRef, OnChanges, SimpleChanges, Renderer } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { BaseComponent } from './base.component'; import { FunctionAccessControl } from '../../core/common/access.data'; /** * Base Control Component for All Control Component */ export declare class ControlComponent extends BaseComponent implements ControlValueAccessor, OnChanges { protected controlZone: NgZone; protected controlElement: ElementRef; protected controlRenderer: Renderer; protected modelTouched: () => void; protected modelUpdated: (_: any) => void; private _functionId; private _subFunctionId; private _error; private _access; private _disabled; private _visible; private _value; /** * Initialize */ constructor(controlZone: NgZone, controlElement: ElementRef, controlRenderer: Renderer); /** * Sets Function Id * * @param functionId Function Id */ functionId: string; /** * Sets Sub Function Id * * @param subFunctionId Sub Function Id */ subFunctionId: string; /** * Update Permission */ private updatePermission(); /** * Gets Error */ /** * Update Error Message * * @param error Error Message */ error: string; /** * Update Access Control * * @param access Function Access Control */ access: FunctionAccessControl; /** * Gets Disabled State */ /** * Sets Visibility */ visible: boolean; /** * Gets Disabled */ /** * Sets Disabled State */ disabled: boolean; /** * Calls on Disabled State Update */ disabledUpdateCallback(): void; /** * Gets Value */ /** * Sets Value */ value: any; /** * Calls on Value Update */ valueUpdateCallback(): void; /** * Write Value (Initial) */ writeValue(value: any): void; /** * Register On Model Changed */ registerOnChange(fn: any): void; /** * Register On Model Touched */ registerOnTouched(fn: any): void; /** * On Change * * @param changes Change */ ngOnChanges(changes: SimpleChanges): void; /** * Convert to Upper, If the Text Field is to be Converted to Upper */ protected convertToUpper(): void; }