import { Component } from '@angular/core'; import { IccGroupHeader } from './group-header'; import { IccValidation } from './validation'; import { IccType, IccTextType, IccNumberType, IccSelectType, IccRadioType } from './type'; import { IccField } from '../items'; export declare type IccSortField = boolean | string; export declare type IccFilterField = boolean | string; export declare type IccGroupField = boolean | string; export declare type IccRendererType = string | Function | Component; export declare type IccEditField = boolean | string; export interface IccItemConfig { name?: string; type?: string | IccType | IccTextType | IccNumberType | IccSelectType | IccRadioType; title?: string; titleClass?: string; icon?: string; index?: number; hidden?: boolean | string; disabled?: boolean; action?: string; checked?: boolean; } export interface IccFieldConfig extends IccItemConfig { dateFormat?: string; validations?: IccValidation[]; align?: string; width?: number; editField?: IccEditField; labelPosition?: 'before' | 'after'; value?: any; orgValue?: any; defaultValue?: any; placeholder?: string; readonly?: boolean; children?: IccFieldConfig[] | IccField[]; } export interface IccColumnConfig extends IccFieldConfig { sortField?: IccSortField; filterField?: IccFilterField; groupField?: IccGroupField; renderer?: IccRendererType; style?: {}; cellReadonly?: boolean | Function; fixedWidth?: boolean | 'auto'; minWidth?: number; dragDisabled?: boolean; priority?: number; stickyable?: boolean; sticky?: boolean; stickyEnd?: boolean; menu?: boolean | IccFieldConfig; cellMenu?: boolean | IccFieldConfig; groupHeader?: IccGroupHeader; left?: string | 'auto'; right?: string | 'auto'; }