import { Injector, OnInit } from '@angular/core'; import { Subject } from 'rxjs'; import { DataSetItem } from '@wm/components/base'; import { BaseFormCustomComponent } from './base-form-custom.component'; export declare abstract class DatasetAwareFormComponent extends BaseFormCustomComponent implements OnInit { groupby?: string; dataset: any; datafield: string; displayfield: string; displaylabel: string; displayimagesrc: string; displayexpression: string; usekeys: boolean; orderby: string; multiple: boolean; readonly: boolean; content: string; collapsible: boolean; datePipe: any; handleHeaderClick: ($event: any) => void; private toggleAllHeaders; appDefaults: any; binddisplayexpression: string; binddisplayimagesrc: string; binddisplaylabel: string; displayValue: Array | string; datasetItems: DataSetItem[]; acceptsArray: boolean; protected dataset$: Subject; protected datavalue$: Subject; protected match: string; protected dateformat: string; groupedData: any[]; protected _modelByKey: any; _modelByValue: any; _defaultQueryInvoked: boolean; toBeProcessedDatavalue: any; private readonly _debouncedInitDatasetItems; protected allowempty: boolean; compareby: any; get modelByKey(): any; set modelByKey(val: any); get datavalue(): any; set datavalue(val: any); protected constructor(inj: Injector, WIDGET_CONFIG: any, groupby?: string); /** * This function sets the _datavalue value from the model and sets the selected flag when item is found. * Here model is the value obtained from ngModel. * @param keys represent the model. */ protected selectByKey(keys: any): void; /** * This function sets the _model value from the datavalue (selectedvalues) and sets the selected flag when item is found. * datavalue is the default value or a value representing the displayField (for suppose: object in case of ALLFIELDS). * If acceptsArray is true, the model always accepts an array. * For example, select always accepts model as array whether multiple select is true or false. * @param values represent the datavalue. */ protected selectByValue(values: Array | any): void; protected readonly _debounceDatavalueUpdation: any; protected initDisplayValues(): void; protected initDatasetItems(): void; protected postDatasetItemsInit(): void; protected resetDatasetItems(): void; protected setTemplate(partialName: any): void; private getGroupedData; private datasetSubscription; protected setGroupData(): void; onPropertyChange(key: string, nv: any, ov?: any): void; ngOnInit(): void; }