import { TemplateRef } from '@angular/core'; export declare class ExportColumnConfig { /** * Unchanged -> element will be present, with the same exact text. * Remove -> remove and forget about it. * Modify -> use, but have some parsing on the value beforehand (supply modifyFn). */ action: 'unchanged' | 'remove' | 'modify'; /** Provide if action == 'modify'. In this case, the whole object is passed: the supplied key is ignored */ modifyFn: undefined | ((object: T) => string); /** * Supply this if you want something other than "null" to display when an element is null. * This value is ignored when a modifyFn is provided. */ nullValuePlaceholder?: string; } export declare class DataColumn { key: string | keyof T; colText: string; custom?: boolean | undefined; width?: string | undefined; minWidth?: string | undefined; maxWidth?: string | undefined; type?: ColumnDataType; visible?: boolean | undefined; fixed?: boolean | undefined; isStickAble?: boolean | undefined; sortEnable?: boolean | undefined; cellClass?: string | null; tdElementClasses?: string[] | null; tableHeaderColumnClasses?: string[] | null; colspan?: number | undefined; templateHeader?: TemplateRef>; singleSearchPlaceHolder?: string | undefined; hideOnBreakpointMatch?: string | null; onColumnFilter?: (val: string, row: T, col?: DataColumn, colKey?: keyof T | string) => boolean; text?: SNTableText; onCellClick?: ((col?: DataColumn, row?: T, value?: any, event?: MouseEvent | TouchEvent, tableInstance?: any) => void) | null; onStickMenuClick?: (isChecked: boolean, col?: DataColumn) => void; /** * Without passing this, column will be left as-is. Pass config to remove, or modify values that will be exported. */ exportColumnConfig?: ExportColumnConfig; constructor(init?: DataColumn); } export interface SNTableText { truncate?: boolean; type?: 'normal' | 'truncate'; truncateAtChar?: number; toolTip?: boolean; tooltipText?: string; tooltipHeaderText?: string | null; truncateOnComfortView?: boolean; } export interface ColumnDataType { colType: string; } /** * Handle Empty string as N/A */ export declare class DefaultTypeColumn implements ColumnDataType { readonly colType = "default"; } export declare class AnyTypeColumn implements ColumnDataType { readonly colType = "any"; } export declare class DateTypeColumn implements ColumnDataType { readonly colType = "date"; format: string | undefined; constructor(d?: Partial); }