import { TemplateRef } from '@angular/core'; import { SelectionModel } from '@angular/cdk/collections'; export interface OGTableEmitter { type: string; element: any; } export interface OGListSettings { id?: string; expandable?: boolean; expandableTemplate?: TemplateRef; selectionKey?: string; columns: Array; actionColumns?: OGActionColumns; customActions?: Array; pagingData: OGListPaging; orderSettings?: OGListOrderSettings; search: string; selectedElements?: SelectionModel; selection: Array; selectFullRow?: boolean; selectAllFn?: (element: any) => boolean; queryParams?: any; path?: string; getData?: boolean; cache?: boolean; } export interface OGListColumns { column: string; column2?: string; path?: string; path2?: string; name: string; style: OGListStyleType; sort?: any; headerDisabled?: boolean; template?: TemplateRef; eventType?: string; bold?: boolean; colorName?: string; textColorName?: string; minWidth?: string; class?: string; width?: string; tooltipName?: string; translate?: boolean; align?: 'left' | 'center' | 'right'; visible?: () => boolean; } export interface OGActionColumns { disabled?: boolean; selection?: boolean; edit?: boolean; delete?: boolean; drag?: boolean; dragCondition?: (element: any) => boolean; width?: string; align?: 'left' | 'center' | 'right'; } export interface CutomActionColumns { name: string; type: string; icon: string; translate?: boolean; condition?: (element: any) => boolean; } export interface OGListPaging { total: number; page: number; order: string; sort: string; pageSize: number; enabled?: boolean; } export interface OGListOrderSettings { orderColumnKey?: string; orderPreventedTitle?: string; orderPreventedPhrase?: string; orderPreventedButton?: string; } export declare enum OGListStyleType { 'CUSTOM' = 0, 'BOLD' = 1, 'NORMAL' = 2, 'BOLD_LINK' = 3, 'CHIP' = 4, 'IMAGE' = 5, 'MULTILINES' = 6 }