1 |
|
2 | import { ReactPortal } from 'react';
|
3 | import { ComponentType, IComponent, WrappableInterface } from 'ag-grid-community';
|
4 | import { PortalManager } from './portalManager';
|
5 | declare abstract class BaseReactComponent implements IComponent<any>, WrappableInterface {
|
6 | abstract getGui(): HTMLElement;
|
7 | abstract getFrameworkComponentInstance(): any;
|
8 | abstract rendered(): boolean;
|
9 | abstract getReactComponentName(): string;
|
10 | abstract hasMethod(name: string): boolean;
|
11 | abstract callMethod(name: string, args: IArguments): void;
|
12 | abstract addMethod(name: string, callback: Function): void;
|
13 | }
|
14 | export declare abstract class ReactComponent extends BaseReactComponent {
|
15 | protected eParentElement: HTMLElement;
|
16 | protected componentInstance: any;
|
17 | protected reactComponent: any;
|
18 | protected portalManager: PortalManager;
|
19 | protected portal: ReactPortal | null;
|
20 | protected statelessComponent: boolean;
|
21 | protected componentType: ComponentType;
|
22 | constructor(reactComponent: any, portalManager: PortalManager, componentType: ComponentType);
|
23 | getGui(): HTMLElement;
|
24 | destroy(): void;
|
25 | protected createParentElement(params: any): HTMLElement;
|
26 | protected addParentContainerStyleAndClasses(): void;
|
27 | statelessComponentRendered(): boolean;
|
28 | getFrameworkComponentInstance(): any;
|
29 | isStatelessComponent(): boolean;
|
30 | getReactComponentName(): string;
|
31 | getMemoType(): symbol | 60115;
|
32 | private hasSymbol;
|
33 | protected isStateless(Component: any): boolean;
|
34 | hasMethod(name: string): boolean;
|
35 | callMethod(name: string, args: IArguments): void;
|
36 | addMethod(name: string, callback: Function): void;
|
37 | protected abstract fallbackMethod(name: string, params: any): any;
|
38 | protected abstract fallbackMethodAvailable(name: string): boolean;
|
39 | abstract isNullValue(): boolean;
|
40 | }
|
41 | export {};
|