import { IInitialStateParams } from '@mjcloud/redux'; import { XmlNode, XmlList, IDictionary, IControlSetConfig } from '@mjcloud/types'; import { ContainerDataControlEventType, ContainerDataControlActionType } from '@mjcloud/instance/dist/containerDataInstanceBase'; import { IDataState, IDataControlLoadedParams } from '@mjcloud/instance/dist/dataInstanceBase'; export declare type TimelineEventType = ContainerDataControlEventType | 'rowAfterClick' | 'rowBeforeClick'; export declare type TimelineActionType = ContainerDataControlActionType | 'rowClickAfter' | 'clickDone'; export declare type handleColorCommandFn = (colorCommand: string, row: IDictionary) => string; export interface ITimelineColumn { id: string; index: number; width?: string | number; width2rem?: string | number; field: string; control: any; colorCommand: string; } export interface ITimelineConfigItem extends XmlNode { id: string; width?: number; title?: string; index?: number; field?: string; control: any; colorCommand: string; } export interface ITimelineConfigTypeItem { id: string; backgroundColorCommand?: string; } export interface ITimelineConfigType { title: ITimelineConfigTypeItem[]; date: ITimelineConfigTypeItem[]; status: ITimelineConfigTypeItem[]; } export interface ITimelineConfig extends IControlSetConfig { rowClickController?: string; horizontal?: ITimelineConfigType; items?: XmlList; } export interface ITimelineState extends IDataState { dataSource: any[]; clickLoading: boolean; rowClickController?: string; columns: ITimelineColumn[]; horizontal: ITimelineConfigType | undefined; } export interface ITimelineInitialStateParams extends IInitialStateParams { } export interface ITimelineLoadedParams extends IDataControlLoadedParams { handleColorCommand: handleColorCommandFn; }