import type { FieldData, DataType } from '@/types'; import type { Base, Title } from '@/components/types'; export interface FieldSelectData { name: string; dataType: DataType; disabled: boolean; } export interface Fields { rows: string[]; columns: string[]; values: string[]; valueInCols?: boolean; } export interface FiledSelectorProps { value: Fields; isMobile?: boolean; isEditor?: boolean; onChange: (value: Fields) => void; fieldDataList: FieldSelectData[]; titleTextColor?: string; } export interface Meta { field: string; name: string; } export interface FiledSelectorItemProps { data: FieldSelectData[]; value: string[]; filter?: string[]; onChange: (value: string[]) => void; title: string; placeholder?: string; type: 'row' | 'column' | 'value'; isEditor?: boolean; titleTextColor?: string; } interface BaseProps { hasRowTotal?: boolean; totalPosition?: string; hasColTotal?: boolean; colTotalPosition?: string; mainColor?: string; headerTextColor?: string; contentTextColor?: string; headerBorderColor?: string; borderColor?: string; contentTextAlign?: 'left' | 'center' | 'right'; tableSize?: 'small' | 'middle' | 'large'; optionTitleColor?: string; isPagination?: boolean; paginationSize?: 'default' | 'small'; pageSize?: number; hasOption: boolean; showSerialNum: boolean; } export interface SheetProps extends Base, Title, BaseProps { defaultFields?: Fields; yAxisData?: FieldData[]; optionFilterList?: any[]; } export interface SheetComponentProps extends Base, BaseProps { dataDimensionList: FieldData[]; dataIndicatorsList: FieldData[]; optionFilterList?: any[]; meta: Meta[]; fields: Fields; height: number; showSerialNum: boolean; } export {};