import { ISurfaceContext, Rectangle } from '@devexpress/analytics-core/analytics-elements'; import { ISelectionProvider, ISelectionTarget } from '@devexpress/analytics-core/analytics-internal'; import { ModelSerializer } from '@devexpress/analytics-core/analytics-utils'; import { IExpressionEditorCategory, ITreeListItemViewModel, Tools } from '@devexpress/analytics-core/analytics-widgets-internal'; import * as ko from 'knockout'; import { ICrossTabCell } from './crossTab/cellCreator'; import { CellKind, DataFieldLayout } from './crossTab/enums'; import { XRControlViewModel } from './xrControl'; import { CrossTabFieldModel, XRCrossTabSurface, XRCrossTabViewModel } from './xrCrossTab'; import { XRTextControlSurfaceBase } from './xrTextControl'; export declare function kindToString(kind: CellKind): string; export declare class XRCrossTabCellViewModel extends XRControlViewModel implements ICrossTabCell { private parent; get namePrefix(): string; static cellKinds: { Header: CellKind[]; Total: CellKind[]; Data: CellKind[]; }; private get _width(); private get _height(); private get _left(); private get _top(); private _text; private _textFormatString; private _showCellCode; private _oldFieldName; private _getDefaultName; private _testFieldName; private _createParametersExpressionCategory; get _rowVisible(): boolean; set _rowVisible(value: boolean); get _columnVisible(): boolean; set _columnVisible(value: boolean); constructor(model: object, parent: XRCrossTabViewModel, serializer?: ModelSerializer); getPath: (propertyName: string) => string; reset(): void; canRemove(): boolean; canDropDown(): boolean; canDropRight(): boolean; canDropUp(): boolean; canDropLeft(): boolean; getExpressionBinding(property: string, event: string): string; isPropertyVisible(name: string, isPopularProperty?: boolean): boolean; isPropertyModified(name: string): boolean; isPropertyDisabled(name: string): boolean; isBindable(): boolean; isIndependant(): boolean; isEditable(): boolean; createAndAssignNewField(fieldName: string, insertBefore: boolean, dataFieldLayout?: DataFieldLayout): void; customizeExpressionCategories(tools: Tools, categories: IExpressionEditorCategory[]): void; cellRows: ko.Computed>; fieldName: ko.Observable | ko.Computed; summaryType: any; summaryDisplayType: any; sortOrder: any; crossTabGroupInterval: any; crossTabGroupIntervalNumericRange: any; crossTabSortBySummaryInfo: any; _columnIndex: ko.Observable; _rowIndex: ko.Observable; _columnSpan: ko.Observable; _rowSpan: ko.Observable; name: ko.Observable | ko.Computed; text: ko.Observable | ko.Computed; dataLevel?: number; rowLevel?: number; columnLevel?: number; kind: ko.Observable; field: ko.Observable; dependentFields: CrossTabFieldModel[]; textFormatString: ko.Observable | ko.Computed; rowVisible: ko.Observable; columnVisible: ko.Observable; rowAutoHeightMode: ko.Observable; columnAutoWidthMode: ko.Observable; fieldNameAreValid: ko.Observable; } export declare class XRCellsurface extends XRTextControlSurfaceBase { constructor(control: XRCrossTabCellViewModel, context: ISurfaceContext); checkParent(surfaceParent: ISelectionTarget): boolean; selectLine(selection: ISelectionProvider, event?: { ctrlKey: boolean; metaKey: boolean; }, isRow?: boolean): void; cellClick(): void; isEditable(): boolean; private _getDropCallback; private _canSetFieldName; getAdornTemplate(): string; dragCallback(item: ITreeListItemViewModel): void; findNextSelection(): XRCrossTabSurface; controls: any; contenttemplate: string; showDropSurface: ko.Computed; dropRect: Rectangle; isDropTarget: ko.Observable; dragCss: ko.Observable; dropCallback: (treeListItem: ITreeListItemViewModel) => void; }