import { IObservableArray } from "mobx"; import { TypeVPage, PageItems } from 'tonva-tools'; import { Sheet, StateCount } from "../../entities"; import { CEntity, EntityUI } from "../CVEntity"; export interface SheetActionUI { label: string; } export interface StateUI { label: string; actions: { [name: string]: SheetActionUI; }; } export interface SheetUI extends EntityUI { CSheet?: typeof CSheet; states?: { [name: string]: StateUI; }; main?: TypeVPage; sheetNew?: TypeVPage; sheetSaved?: TypeVPage; sheetEdit?: TypeVPage; sheetAction?: TypeVPage; listRow?: (row: any) => JSX.Element; sheetTitle?: (sheetValues: any, x: any) => string; } export interface SheetData { brief: any; data: any; flows: any[]; } export declare class CSheet extends CEntity { statesCount: IObservableArray; curState: string; pageStateItems: PageItems; protected internalStart(): Promise; protected onMessage(msg: any): Promise; private onSheet; private sheetActPreState; private sheetActState; private changeStateCount; protected readonly VSheetMain: TypeVPage; protected readonly VSheetNew: TypeVPage; protected readonly VSheetSaved: TypeVPage; protected readonly VSheetEdit: TypeVPage; protected readonly VSheetSchema: TypeVPage; protected readonly VArchives: TypeVPage; protected readonly VArchived: TypeVPage; protected readonly VSheetList: TypeVPage; protected readonly VSheetAction: TypeVPage; protected readonly VSheetProcessing: TypeVPage; protected onEvent(type: string, value: any): Promise; startSheet(sheetId: number): Promise; showAction(sheetId: number): Promise; showProcessing(sheetId: number): Promise; editSheet(sheetData: SheetData): Promise; showArchived(inBrief: any): Promise; onSave: (values: any, valuesWithBox: any) => Promise; showSaved(sheetData: any): Promise; private getStateUI; getStateLabel(stateName: string): any; getActionLabel(stateName: string, actionName: string): any; private loadStateSheetCount; getSheetData(sheetId: number): Promise; getArchived(sheetId: number): Promise; saveSheet(values: any, valuesWithBox: any): Promise; action(id: number, flow: number, state: string, actionName: string): Promise; }