import { AfterContentInit, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges } from '@angular/core'; import { NzMessageService } from 'ng-zorro-antd'; import { NgxExcelColumn } from '../../models/models'; import { NgxExcelController } from '../../services/services'; import { NgxExcelComponent } from '../ngx-excel/ngx-excel.component'; import { NgxExcelCellComponent } from '../ngx-excel-cell/ngx-excel-cell.component'; import { NgxExcelHeadCellComponent } from '../ngx-excel-cell/ngx-excel-head-cell.component'; import { Observable } from 'rxjs'; export declare class NgxExcelContextComponent implements OnInit, OnChanges, AfterContentInit { protected message: NzMessageService; protected controller: NgxExcelController; protected excelComponent: NgxExcelComponent; protected selectedExcelCellComponent: any; private _initialed; private _readonly; private _compact; context: any; excel: NgxExcelComponent; attachSelectTo: NgxExcelContextComponent; attachTo: NgxExcelContextComponent; scene: 'list' | 'table'; readonly: boolean; compact: boolean; contextChange: EventEmitter; excelContextClass: boolean; normalClass: boolean; protected excelCellComponents: QueryList; protected excelHeadCellComponents: QueryList; constructor(message: NzMessageService, controller: NgxExcelController, excelComponent: NgxExcelComponent); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngAfterContentInit(): void; /** * 初始化单元格组件 * @param cellComponent 单元格组件 */ initialCellComponent(cellComponent: NgxExcelHeadCellComponent | NgxExcelCellComponent): void; /** * 获得控制器 */ getController(): NgxExcelController; /** * 当单元格值变化时应同步传出 context * @param column 当前变化的列组件或上下文模型键名 * @param newValue 变化后的值 * @param ignoreReload 忽略刷新 */ protected handleValueChanged(column: NgxExcelColumn, newValue: any): Observable; /** * 绑定单元格的回调函数 * @param cellComponent 单元格组件 */ private _bindExcelCellCallbackFns; /** * 获得错误处理函数 */ private _getErrorHandles; /** * 获得 Excel 组件 */ private _getExcelComponent; }