type ColumnDefinition = { /** * @description Field property of the column */ field: string; /** * @description Header text of the column */ header: string; /** * @description Whether the column is sortable */ sortable?: boolean; /** * @description CSS style to apply to the column */ style?: string; /** * @description Whether this column displays the built-in expand/collapse button */ expander?: boolean; }; export interface CuiDataTableProps { /** * @description The array of objects to display in the table */ value: any[]; /** * @description Column definitions array (alternative to using Column components) */ columns?: ColumnDefinition[]; /** * @description Whether to enable pagination */ paginator?: boolean; /** * @description Paginator layout template. Defaults to 'basic'. */ paginatorTemplate?: "basic" | "currentPageReport" | "tablet" | "mobile"; /** * @description Number of rows to display per page when pagination is enabled */ rows?: number; /** * @description Whether to enable row selection */ selectionMode?: "single" | "multiple" | undefined; /** * @description Selected row(s) */ modelValue?: any | any[]; /** * @description CSS class for the table */ tableClass?: string; /** * @description Whether to show grid lines */ showGridlines?: boolean; /** * @description Whether to enable sorting */ sortable?: boolean; /** * @description Whether to enable striped rows */ stripedRows?: boolean; /** * @description Whether to enable row hover effect */ rowHover?: boolean; /** * @description Whether table is currently loading data */ loading?: boolean; /** * @description Function to determine row class based on data */ rowClass?: (data: any) => string | string[] | object; /** * @description Unique identifier field for each row. Required for row expansion functionality. */ dataKey?: string; /** * @description Object tracking expanded rows by dataKey. Use with v-model:expandedRows for two-way binding. */ expandedRows?: Record; /** * @description Layout of the filter elements. 'menu' shows filter in a popup, 'row' shows filter input below the column header. */ filterDisplay?: "menu" | "row"; /** * @description An object with field names as keys and filter metadata as values for column filtering. Use with v-model:filters for two-way binding. */ filters?: Record; /** * @description An array of field names to use in global filtering. */ globalFilterFields?: string[]; /** * @description Whether to show the column visibility toggle button in the header. * Requires the `columns` prop to be set. */ columnToggle?: boolean; /** * @description Array of visible column field names. Use with v-model:visibleColumns for two-way binding. * When not provided, all columns are visible by default. */ visibleColumns?: string[]; } declare function __VLS_template(): { attrs: Partial<{}>; slots: Readonly<{ /** * @description Default slot for custom content */ default?: () => any; /** * @description Custom header content */ header?: () => any; /** * @description Custom footer content */ footer?: () => any; /** * @description Custom empty message when no records are found */ empty?: () => any; /** * @description Custom loading content */ loading?: () => any; /** * @description Slot for expanded row content. Native PrimeVue expansion slot. * @arg {object} slotProps - The slot properties * @arg {any} slotProps.data - The row data object * @arg {number} slotProps.index - The index of the row */ expansion?: (props: { data: any; index: number; }) => any; /** * @description Slot for custom content in the table controls area (right side of header). * Use this to add custom buttons, settings, or controls alongside the built-in column toggle. */ controls?: () => any; }> & { /** * @description Default slot for custom content */ default?: () => any; /** * @description Custom header content */ header?: () => any; /** * @description Custom footer content */ footer?: () => any; /** * @description Custom empty message when no records are found */ empty?: () => any; /** * @description Custom loading content */ loading?: () => any; /** * @description Slot for expanded row content. Native PrimeVue expansion slot. * @arg {object} slotProps - The slot properties * @arg {any} slotProps.data - The row data object * @arg {number} slotProps.index - The index of the row */ expansion?: (props: { data: any; index: number; }) => any; /** * @description Slot for custom content in the table controls area (right side of header). * Use this to add custom buttons, settings, or controls alongside the built-in column toggle. */ controls?: () => any; }; refs: {}; rootEl: any; }; type __VLS_TemplateResult = ReturnType; declare const __VLS_component: import('vue').DefineComponent any; "update:modelValue": (value: any) => any; page: (event: any) => any; "update:expandedRows": (value: Record) => any; "update:filters": (value: Record) => any; "update:visibleColumns": (value: string[]) => any; rowSelect: (event: any) => any; rowUnselect: (event: any) => any; rowMouseEnter: (event: { data: any; index: number; originalEvent: MouseEvent; }) => any; rowMouseLeave: (event: { data: any; index: number; originalEvent: MouseEvent; }) => any; }, string, import('vue').PublicProps, Readonly & Readonly<{ onSort?: ((event: any) => any) | undefined; "onUpdate:modelValue"?: ((value: any) => any) | undefined; onPage?: ((event: any) => any) | undefined; "onUpdate:expandedRows"?: ((value: Record) => any) | undefined; "onUpdate:filters"?: ((value: Record) => any) | undefined; "onUpdate:visibleColumns"?: ((value: string[]) => any) | undefined; onRowSelect?: ((event: any) => any) | undefined; onRowUnselect?: ((event: any) => any) | undefined; onRowMouseEnter?: ((event: { data: any; index: number; originalEvent: MouseEvent; }) => any) | undefined; onRowMouseLeave?: ((event: { data: any; index: number; originalEvent: MouseEvent; }) => any) | undefined; }>, { value: any[]; modelValue: any | any[]; loading: boolean; filters: Record; columns: ColumnDefinition[]; dataKey: string; rows: number; paginator: boolean; filterDisplay: "menu" | "row"; globalFilterFields: string[]; selectionMode: "multiple" | "single"; rowHover: boolean; expandedRows: Record; rowClass: (data: any) => string | string[] | object; showGridlines: boolean; stripedRows: boolean; tableClass: string; sortable: boolean; columnToggle: boolean; visibleColumns: string[]; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; declare const _default: __VLS_WithTemplateSlots; export default _default; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; };