import { AnyObject } from "../_util/type.js"; import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js"; import "../_util/hooks/index.js"; import { SizeType } from "../config-provider/SizeContext.js"; import { PaginationSemanticClassNames, PaginationSemanticStyles } from "../pagination/interface.js"; import { SpinProps } from "../spin/index.js"; import { ColumnType, ColumnsType, FilterDropdownProps, FilterValue, GetPopupContainer, Key, SortOrder, SorterResult, SorterTooltipProps, TableCurrentDataSource, TableLocale, TablePaginationConfig, TableRowSelection } from "./interface.js"; import { ComponentBaseProps } from "../config-provider/context.js"; import * as vue753 from "vue"; import { CSSProperties, SlotsType } from "vue"; import { Reference, TableProps as TableProps$1 } from "@v-c/table"; //#region src/table/InternalTable.d.ts type TableSemanticName = keyof TableSemanticClassNames & keyof TableSemanticStyles; interface TableSemanticClassNames { root?: string; section?: string; title?: string; footer?: string; content?: string; } interface TableSemanticStyles { root?: CSSProperties; section?: CSSProperties; title?: CSSProperties; footer?: CSSProperties; content?: CSSProperties; } type ComponentsSemantic = keyof ComponentsSemanticClassNames & keyof ComponentsSemanticStyles; interface ComponentsSemanticClassNames { wrapper?: string; cell?: string; row?: string; } interface ComponentsSemanticStyles { wrapper?: CSSProperties; cell?: CSSProperties; row?: CSSProperties; } type TableClassNamesType = SemanticClassNamesType, TableSemanticClassNames, { body?: ComponentsSemanticClassNames; header?: ComponentsSemanticClassNames; pagination?: PaginationSemanticClassNames; }>; type TableStylesType = SemanticStylesType, TableSemanticStyles, { body?: ComponentsSemanticStyles; header?: ComponentsSemanticStyles; pagination?: PaginationSemanticStyles; }>; interface TableProps extends ComponentBaseProps, Omit, 'transformColumns' | 'internalHooks' | 'internalRefs' | 'data' | 'columns' | 'scroll' | 'emptyText' | 'className' | 'style' | 'classNames' | 'styles' | 'getPopupContainer' | 'onUpdate:expandedRowKeys' | 'onScroll'> { classes?: TableClassNamesType; styles?: TableStylesType; dropdownPrefixCls?: string; dataSource?: TableProps$1['data']; columns?: ColumnsType; pagination?: false | TablePaginationConfig; loading?: boolean | SpinProps; size?: SizeType; bordered?: boolean; locale?: TableLocale; rowSelection?: TableRowSelection; getPopupContainer?: GetPopupContainer; scroll?: TableProps$1['scroll'] & { scrollToFirstRowOnChange?: boolean; }; sortDirections?: SortOrder[]; showSorterTooltip?: boolean | SorterTooltipProps; virtual?: boolean; } interface InternalTableProps extends TableProps, TableEmitsProps { _renderTimes: number; } interface TableEmits { 'change': (pagination: TablePaginationConfig, filters: Record, sorter: SorterResult | SorterResult[], extra: TableCurrentDataSource) => void; 'update:expandedRowKeys': (keys: readonly Key[]) => void; 'scroll': NonNullable; } interface TableExpose extends Reference {} interface TableEmitsProps { onChange?: TableEmits['change']; 'onUpdate:expandedRowKeys'?: TableEmits['update:expandedRowKeys']; onScroll?: TableEmits['scroll']; } interface TableSlots { default?: () => any; title?: (data: readonly RecordType[]) => any; footer?: (data: readonly RecordType[]) => any; summary?: (data: readonly RecordType[]) => any; emptyText?: () => any; expandIcon?: (info: any) => any; expandedRowRender?: (ctx: { record: RecordType; index: number; indent: number; expanded: boolean; }) => any; headerCell?: (ctx: { column: ColumnType; index: number; text: any; }) => any; bodyCell?: (ctx: { column: ColumnType; index: number; text: any; record: RecordType; }) => any; filterDropdown?: (ctx: FilterDropdownProps & { column: ColumnType; }) => any; filterIcon?: (ctx: { column: ColumnType; filtered: boolean; }) => any; } declare const InternalTable: vue753.DefineSetupFnComponent, TableEmits, SlotsType>, InternalTableProps, vue753.PublicProps>; //#endregion export { ComponentsSemantic, ComponentsSemanticClassNames, ComponentsSemanticStyles, InternalTableProps, TableClassNamesType, TableEmits, TableEmitsProps, TableExpose, TableProps, TableSemanticClassNames, TableSemanticName, TableSemanticStyles, TableSlots, TableStylesType, InternalTable as default };