|
| 1 | +import { |
| 2 | + QueryList, |
| 3 | + ChangeDetectorRef, |
| 4 | + EventEmitter |
| 5 | +} from '@angular/core'; |
| 6 | + |
| 7 | +import { IgxOverlayOutletDirective } from '../directives/toggle/toggle.directive'; |
| 8 | + |
| 9 | +import { ISortingExpression } from '../data-operations/sorting-expression.interface'; |
| 10 | +import { IFilteringExpressionsTree } from '../data-operations/filtering-expressions-tree'; |
| 11 | +import { IFilteringOperation } from '../data-operations/filtering-condition'; |
| 12 | + |
| 13 | +import { IgxColumnComponent } from './column.component'; |
| 14 | +import { IgxGridHeaderComponent } from './grid-header.component'; |
| 15 | +import { IgxRowComponent } from './row.component'; |
| 16 | + |
| 17 | +import { IgxForOfDirective } from '../directives/for-of/for_of.directive'; |
| 18 | + |
| 19 | +import { IgxSelectionAPIService } from '../core/selection'; |
| 20 | + |
| 21 | +import { IColumnVisibilityChangedEventArgs } from './column-hiding/column-hiding-item.directive'; |
| 22 | +import { |
| 23 | + IGridComponent, |
| 24 | + ISearchInfo, |
| 25 | + IGridEditEventArgs, |
| 26 | + IRowDataEventArgs, |
| 27 | + IColumnMovingStartEventArgs, |
| 28 | + IColumnMovingEventArgs, |
| 29 | + IColumnMovingEndEventArgs, |
| 30 | + IGridToolbarExportEventArgs |
| 31 | +} from './grid-interfaces'; |
| 32 | + |
| 33 | +export class EmptyMockGrid implements IGridComponent { |
| 34 | + columns: IgxColumnComponent[]; |
| 35 | + data: any[]; |
| 36 | + filteredSortedData: any[]; |
| 37 | + primaryKey: string; |
| 38 | + rowList: QueryList<any>; |
| 39 | + dataRowList: QueryList<IgxRowComponent<IGridComponent>>; |
| 40 | + sortingExpressions: ISortingExpression[]; |
| 41 | + paging: boolean; |
| 42 | + page: number; |
| 43 | + perPage: number; |
| 44 | + isLastPage: boolean; |
| 45 | + filteringExpressionsTree: IFilteringExpressionsTree; |
| 46 | + lastSearchInfo: ISearchInfo; |
| 47 | + summariesHeight: number; |
| 48 | + columnsWithNoSetWidths: IgxColumnComponent[]; |
| 49 | + hasMovableColumns: boolean; |
| 50 | + pinnedColumns: IgxColumnComponent[]; |
| 51 | + unpinnedColumns: IgxColumnComponent[]; |
| 52 | + pinnedColumnsText: string; |
| 53 | + visibleColumns: IgxColumnComponent[]; |
| 54 | + headerList: QueryList<IgxGridHeaderComponent>; |
| 55 | + draggedColumn: IgxColumnComponent; |
| 56 | + isColumnResizing: boolean; |
| 57 | + isColumnMoving: boolean; |
| 58 | + evenRowCSS: string; |
| 59 | + oddRowCSS: string; |
| 60 | + displayDensity: string; |
| 61 | + outletDirective: IgxOverlayOutletDirective; |
| 62 | + hiddenColumnsCount: number; |
| 63 | + hiddenColumnsText: string; |
| 64 | + columnHiding: boolean; |
| 65 | + columnPinning: boolean; |
| 66 | + rowSelectable: boolean; |
| 67 | + allRowsSelected: boolean; |
| 68 | + selectionAPI: IgxSelectionAPIService; |
| 69 | + unpinnedWidth: number; |
| 70 | + calcHeight: number; |
| 71 | + calcPinnedContainerMaxWidth: number; |
| 72 | + rowHeight: number; |
| 73 | + defaultRowHeight: number; |
| 74 | + onEditDone: EventEmitter<IGridEditEventArgs>; |
| 75 | + onRowDeleted: EventEmitter<IRowDataEventArgs>; |
| 76 | + onColumnMovingStart: EventEmitter<IColumnMovingStartEventArgs>; |
| 77 | + onColumnMoving: EventEmitter<IColumnMovingEventArgs>; |
| 78 | + onColumnMovingEnd: EventEmitter<IColumnMovingEndEventArgs>; |
| 79 | + id = 'mock-grid'; |
| 80 | + nativeElement: any; |
| 81 | + cdr: ChangeDetectorRef; |
| 82 | + exportExcel: boolean; |
| 83 | + exportCsv: boolean; |
| 84 | + toolbarTitle: string; |
| 85 | + exportText: string; |
| 86 | + exportExcelText: string; |
| 87 | + exportCsvText: string; |
| 88 | + columnHidingTitle: string; |
| 89 | + columnPinningTitle: string; |
| 90 | + onToolbarExporting: EventEmitter<IGridToolbarExportEventArgs>; |
| 91 | + verticalScrollContainer: IgxForOfDirective<any>; |
| 92 | + parentVirtDir: IgxForOfDirective<any>; |
| 93 | + headerContainer: IgxForOfDirective<any>; |
| 94 | + filteredData: any[]; |
| 95 | + onFilteringDone: EventEmitter<IFilteringExpressionsTree>; |
| 96 | + reflow() { |
| 97 | + throw new Error('Method not implemented.'); |
| 98 | + } |
| 99 | + markForCheck() { |
| 100 | + throw new Error('Method not implemented.'); |
| 101 | + } |
| 102 | + deselectRows(rowIDs: any[]) { |
| 103 | + throw new Error('Method not implemented.'); |
| 104 | + } |
| 105 | + selectRows(rowIDs: any[], clearCurrentSelection?: boolean) { |
| 106 | + throw new Error('Method not implemented.'); |
| 107 | + } |
| 108 | + triggerRowSelectionChange(newSelectionAsSet: Set<any>, row?: IgxRowComponent<IGridComponent>, event?: Event, headerStatus?: boolean) { |
| 109 | + throw new Error('Method not implemented.'); |
| 110 | + } |
| 111 | + getPinnedWidth(takeHidden?: boolean) { |
| 112 | + throw new Error('Method not implemented.'); |
| 113 | + } |
| 114 | + moveColumn(column: IgxColumnComponent, dropTarget: IgxColumnComponent) { |
| 115 | + throw new Error('Method not implemented.'); |
| 116 | + } |
| 117 | + getCellByKey(rowSelector: any, columnField: string) { |
| 118 | + throw new Error('Method not implemented.'); |
| 119 | + } |
| 120 | + trackColumnChanges(index: any, col: any) { |
| 121 | + throw new Error('Method not implemented.'); |
| 122 | + } |
| 123 | + checkHeaderCheckboxStatus(headerStatus?: boolean) { |
| 124 | + throw new Error('Method not implemented.'); |
| 125 | + } |
| 126 | + toggleColumnVisibility(args: IColumnVisibilityChangedEventArgs) { |
| 127 | + throw new Error('Method not implemented.'); |
| 128 | + } |
| 129 | + clearFilter(name?: string) { |
| 130 | + throw new Error('Method not implemented.'); |
| 131 | + } |
| 132 | + filter(name: string, value: any, conditionOrExpressionTree?: IFilteringExpressionsTree | IFilteringOperation, ignoreCase?: boolean) { |
| 133 | + throw new Error('Method not implemented.'); |
| 134 | + } |
| 135 | + |
| 136 | + |
| 137 | +} |
0 commit comments