import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; import * as wjcGrid from '@grapecity/wijmo.grid'; import * as wjcGridDetail from '@grapecity/wijmo.grid.detail'; import * as wjcFilter from '@grapecity/wijmo.grid.filter'; import { ListBox } from '@grapecity/wijmo.input'; import { ODataCollectionView, ODataVirtualCollectionView } from '@grapecity/wijmo.odata'; import { HttpClient } from '@angular/common/http'; import { Selector } from '@grapecity/wijmo.grid.selector'; import { TranslateService } from '@ngx-translate/core'; import { GridColumnDataTypes } from '../../../enums/grid-column-data-types'; import { GeneralActionInterface, GeneralIconActionInterface } from '../../../models/general-action.interface'; import { GridColumnFilterInterface } from '../../../models/grid-column-filter.interface'; import { GridColumnInterface } from '../../../models/grid-column.interface'; import { GridConfigInterface } from '../../../models/grid-config.interface'; import { GridDetailColumnInterface } from '../../../models/grid-detail-column.interface'; import { FararuToastService } from '../../toast/fararu-toast.service'; import { Sizes } from '../icon/icon.component'; import { ColumnCustomFilterInterface, CustomFilterInterface, GridCellFormatCallbackOutputInterface } from './grid.component.models'; import { WijmoRestCollectionView } from './wijmo-rest-collcetion-view'; import * as i0 from "@angular/core"; export declare class GridComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy { private cd; private toast; private translateService; private http; iconSize: typeof Sizes; identityFieldName: string; oDataServer: string; oDataTable: string; oDataEntity: string; oDataHttpHeaders: { [key: string]: string; }; oDataFilters: GridColumnFilterInterface[]; defaultFilters: GridColumnFilterInterface[]; oDataFilterDefinition?: string; oDataIsFullLoad: boolean; quickFilterKeys: string[]; config: GridConfigInterface | undefined; items: any[]; childItemsPath: string[] | string; customIconName: string; /** deprecated */ moreActions: { title: string; callback: any; }[]; moreMenuItems: GeneralActionInterface[]; iconActions: GeneralIconActionInterface[]; isReorderActive: boolean; reorderFieldName: string; reorderCondition: (item: any, item2: any) => boolean; collapseRows?: boolean; collapseLevel?: number; gridId: string; showGroupingPanel: boolean; hideODataDefaultLoading: boolean; hasRowNumber: boolean; hideCheckboxInCheckableGrid: boolean; multipleSelect: boolean; gridHasColumnPicker: boolean; footerAggregateData: { [key: string]: number; }; hideHeaderCustomFilter?: boolean; showDeleteButton: boolean; showEditButton: boolean; transformer?: (response: any) => any; apiServer?: string; apiUrl?: string; apiHeaders?: { [name: string]: string; }; showFilters: boolean; getDetailItemsCallBack: (data: any, rowIndex: number) => any[]; rowHasDetailCallBack: (data: any) => boolean; detailColumnsConfig: GridDetailColumnInterface[]; multiExpand: boolean; mode: 'default' | 'menu'; isActive: boolean; rowFormatCallback: (data: any) => GridCellFormatCallbackOutputInterface | null; cellFormatCallback: (config: GridColumnInterface, cellData: any, rowData: any) => GridCellFormatCallbackOutputInterface | null; columnPickerInMenu?: boolean; editCallback: EventEmitter; deleteCallback: EventEmitter; customCallback: EventEmitter; loadStartCallback: EventEmitter; loadCallback: EventEmitter; loadErrorCallback: EventEmitter; checkCallback: EventEmitter; rowSelectCallback: EventEmitter; rowDeleteCallback: EventEmitter; cellEditCallback: EventEmitter; rowsClickedItemCalback: EventEmitter; rowsDoubleClicked: EventEmitter; filterAppliedCallback: EventEmitter; keydownCallback: EventEmitter; onRowOrderChange: EventEmitter<{ [key: string]: any; [key: number]: any; }>; columnsListChange: EventEmitter; _oldSelection: number; reviewCurrentTabKey: string; isOData: boolean; hasEditButton: boolean; hasExpandButton: boolean; hasDeleteButton: boolean; hasCustomButton: boolean; hasRowSelection: boolean; hasAggregation: boolean; hasCheckbox: boolean; isGridEditMode: boolean; expandRows: boolean; showEmptyMessage: boolean; showLoading: boolean; oDataItems: ODataCollectionView; oDataVirtualItems: ODataVirtualCollectionView; selector: Selector; dataMaps: any; gridItems: any[]; readonly defaultRowNumberColumnName: string; readonly actionColumnName: string; readonly endPlaceholderColumnName: string; columnsList: GridColumnInterface[]; gridFilter: wjcFilter.FlexGridFilter; columnCustomFilter: ColumnCustomFilterInterface; tplImage: wjcGrid.ICellTemplateFunction; grid: wjcGrid.FlexGrid; columnPicker: ListBox; gridColumnMeasureElementRef: ElementRef; private _isDragEnabled; private _dragSrc; private _dragDst; private columnPickerProgrssing; private filterAppliedCallbackTimeout; private lastSelectedRowIndex?; private onReloadSelectedRowIndex?; private _lastSelectedRows?; private _columnListLastChangedTime?; restCollectionView: WijmoRestCollectionView; isTree: boolean; dragIndex: number; isColumnPickerShow: boolean; selectionMode: wjcGrid.SelectionMode; get GridColumnDataTypes(): typeof GridColumnDataTypes; constructor(cd: ChangeDetectorRef, toast: FararuToastService, translateService: TranslateService, http: HttpClient); ngOnInit(): Promise; ngOnDestroy(): void; ngOnChanges(changes: SimpleChanges): void; createRestCollectionView(): void; ngAfterViewInit(): void; columnCustomFilterChangeHandler(columnData: GridColumnInterface, filterData: CustomFilterInterface): void; originalItems: any[]; searchTree(columnData: GridColumnInterface, search: string): void; recursiveSearch(tree: any, search: string, column: string): any; getODataFilters(): GridColumnFilterInterface[]; getODataFiltersEncoded(): string; getColumnDataType(cell: any): GridColumnDataTypes; getRows(): any[]; getSelectedRows(): any[]; getOdataCount(): { isNull: number; isFetched: number; isSelected: number; all: number; }; collapseGroupsToLevel(level: number): void; setRowAsSelected(index: number): boolean; flexInitialized(flexgrid: wjcGrid.FlexGrid): void; generateColumnClassName(config: GridColumnInterface): string | null; private tooltipElement; private handleTooltipMouseOver; private handleTooltipMouseOut; private tooltipTimeout; private setupTooltipEventDelegation; private showTooltip; private hideTooltip; hasActionColumn(): boolean; selectionChangeHandler(): void; editHandler(item?: any): void; deleteHandler(item?: any): void; customeEvent(item?: any, e?: any): void; resetRequestHeader: () => Promise; reload: () => Promise; clear(): void; filter(e: any): void; handleDragStart(e: DragEvent): void; handleDragOver(e: DragEvent): void; handleDrop(e: DragEvent): void; handleDragEnd(e: DragEvent): void; onLoadedRows(e: wjcGrid.CellRangeEventArgs): void; onRowsClicked: (grid: wjcGrid.FlexGrid) => void; onRowDoubleclicked: (grid: wjcGrid.FlexGrid) => void; dragColumnHandler(args: { col: number; data: { col: number; }; }): void; resizeColumnHandler(args: { col: number; data: { newSize: number; }; }): void; refreshGridWithPersistingExpandState: (items: any) => void; assignGridItemsAsync: (items: any) => Promise; getGridLayout(): GridConfigInterface; restoreGridLayout(obj: GridConfigInterface | null): void; autoSizeColumns(): void; autoSizeRowNumberColumn(): void; getVirtualODataFilterDefinition(): string; clearFilter(): void; togglePopup(ref: any): void; appendColumnPickerMenuIn(container: HTMLElement): void; exportToExcel(): void; focus(): void; private _exportFormatItem; private removeScrollPositionChangedHandler; private addScrollPositionChangedHandler; private scrollPositionChangedHandler; private checkKeys; private createODataFilterDefinition; private _getDropDownItems; private initColumnPicker; private _removeDropMarker; private _getElementIndex; private _addDropMarker; private _enableDragItem; private oDataErrorHandler; private showErrorMessage; private updateColumnCustomFilter; columnPickerCheckedItemsChanged($event: any): void; rowHasDetailFn: (item: any) => boolean; detailVisibilityMode: wjcGridDetail.DetailVisibilityMode; detailProvider: wjcGridDetail.FlexGridDetailProvider; getDetailItemsByCallbackFunction(item: any, row: any): any[]; orderMap: { [key: number | string]: any; }; reordered: Set; reorder(dest: 'up' | 'down'): void; findItemInTreeByIndex(item: any, src: number, index: { value: number; siblings: any[]; }): any; private _setColumnList; private _getColumnTextWidth; private _getTotalCountText; private _removeActionAndDefaultRowNumberColumns; private _emitColumnsListChange; private _hidePlaceholderColumnFilter; private _hideActionColumnFilter; private _hideRowNumberColumnFilter; resetColumnFilters(): void; checkRowsByIndex(rows: number[]): void; uncheckRowsByIndex(rows: number[]): void; checkRowsByCondition(condition: (row: any) => boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }