import { type CSSProperties } from 'vue'; // Vue also defines the `class` attribute as any, that's why we use `any` here as well. /* eslint-disable @typescript-eslint/no-explicit-any */ export type ThAttrs = { style?: string | CSSProperties; class?: any; title?: string }; export type HeaderCellAttrs = { style?: string | CSSProperties; class?: any; 'text-class'?: string }; /* eslint-enable @typescript-eslint/no-explicit-any */ export type TableCol = { id: number | string; name: string; title: string; filterable?: boolean; sortable?: boolean; borderColor?: string; style?: Record; filterActive?: boolean; thAttrs?: ThAttrs; headerCellAttrs?: HeaderCellAttrs; tooltip?: string; }; export const colsInjectionKey = Symbol('cols'); export const isFirstColFixedInjectionKey = Symbol('isFirstColFixed'); export const isLastColFixedInjectionKey = Symbol('isLastColFixed'); export const isColsResizableInjectionKey = Symbol('isColsResizable'); export const MIN_WIDTH_COL_RESIZE = 80; export const HEADER_CELL_ONE_LINE_HEIGHT = 20;