import { EventEmitter, OnChanges } from '@angular/core'; import { CoreCommonService } from '../../providers/services/common.service'; import { CoreHttpService } from '../../utilities/services/http.service'; import { CoreUtilityService } from '../../utilities/services/utility.service'; export declare class DropdownComponent implements OnChanges { private coreCommonService; private coreHttpService; environment: any; private coreUtilityService; field: any; form: any; type: any; parentScope: any; dynamicControlScope: any; isBundle?: boolean; subdomain: any; options: any[]; controlReady: EventEmitter; private eventSubscriptionsList; constructor(coreCommonService: CoreCommonService, coreHttpService: CoreHttpService, environment: any, coreUtilityService: CoreUtilityService); /** * A callback method that is invoked if any data-bound properties change */ ngOnChanges(): void; /** * This method will handle control load * NOTE: Sequence of function calls need to be exactly same as below */ private handleControlLoad; /** * This method will register the events */ private registerEvents; /** * getter function to check mandatory fields */ get isMandatory(): boolean; /** * This method will notify when control is ready */ private notifyControlLoadComplete; /** * This method will register dropdown value changes */ private registerChangeEmitterEvent; /** * This method will register dropdown value change */ private registerDropdownValueChange; /** * This methid will check options array * @param logicalName - logical name of field */ optionsArray(logicalName: string): any[]; /** * Dynamic function to call the function by name */ callFunctionByName(fnName: string, ...params: any): Promise; /** * This method will load the dropdown options * @param form - form * @param field - field */ private loadDropdownOptionsList; /** * This method will listen for update in dropdown fields */ private updateListenerDropdownField; /** * The trackBy function takes the index and the current item as arguments * and needs to return the unique identifier for this item * @param index - item index */ trackByFn(index: number, item: any): number; }